Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #15631 > unrolled thread
| Started by | lbrt chx _ gemale |
|---|---|
| First post | 2011-11-12 19:06 +0000 |
| Last post | 2011-11-21 22:14 +0100 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.python
youtube-dl: way to deal with the size cap issue + new errors + issues ... lbrt chx _ gemale - 2011-11-12 19:06 +0000
Re: youtube-dl: way to deal with the size cap issue + new errors + issues ... Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-12 23:54 +0000
Re: youtube-dl: way to deal with the size cap issue + new errors + issues ... Philipp Hagemeister <phihag@phihag.de> - 2011-11-21 22:14 +0100
| From | lbrt chx _ gemale |
|---|---|
| Date | 2011-11-12 19:06 +0000 |
| Subject | youtube-dl: way to deal with the size cap issue + new errors + issues ... |
| Message-ID | <1321124792.454176@nntp.aceinnovative.com> |
~
I did find my way (through a silly hack) to get all files within a size range without waiting for youtube-dl to be "enhanced". You could simply run youtube-dl in simulate mode and then parse that data to get the info
~
$ youtube-dl --help | grep simulate
-s, --simulate do not download the video and do not write anything to disk
-g, --get-url simulate, quiet but print URL
-e, --get-title simulate, quiet but print title
--get-thumbnail simulate, quiet but print thumbnail URL
--get-description simulate, quiet but print video description
--get-filename simulate, quiet but print output filename
--get-format simulate, quiet but print output format
~
it turns out I needed the data anyway and %(uploader)s %(stitle)s and %(ext)s are helpful as well, for example, in case you decide to skip a certain uploader
~
I have also been getting errors reporting:
~
RTMP download detected but "rtmpdump" could not be run
~
What does it mean? Is it a youtube thing or a python/youtube-dl one (or both)? Could you fix that with some flag?
~
It would be very helpful if you could redirect youtube-dl errors to a separate file you would indicate via a flag
~
lbrtchx
comp.lang.python: youtube-dl: way to deal with the size cap issue + new errors + issues ...
~
// __ ERROR: RTMP download detected but "rtmpdump" could not be run
~
downloading: http://www.youtube.com/watch?v=TD-66LHJF9E
[youtube] Setting language
[youtube] TD-66LHJF9E: Downloading video webpage
[youtube] TD-66LHJF9E: Downloading video info webpage
[youtube] TD-66LHJF9E: Extracting video information
[youtube] RTMP download detected
[download] Destination: ./LionsgateMovies-TD-66LHJF9E_Trading_Mom.flv
ERROR: RTMP download detected but "rtmpdump" could not be run
~
downloading: http://www.youtube.com/watch?v=Ft5fFOktUno
[youtube] Setting language
[youtube] Ft5fFOktUno: Downloading video webpage
[youtube] Ft5fFOktUno: Downloading video info webpage
[youtube] Ft5fFOktUno: Extracting video information
[youtube] RTMP download detected
[download] Destination: ./LionsgateMovies-Ft5fFOktUno_Speed_Racer_The_Movie.flv
ERROR: RTMP download detected but "rtmpdump" could not be run
~
downloading: http://www.youtube.com/watch?v=wRbAGrIjCr4
[youtube] Setting language
[youtube] wRbAGrIjCr4: Downloading video webpage
[youtube] wRbAGrIjCr4: Downloading video info webpage
[youtube] wRbAGrIjCr4: Extracting video information
[youtube] RTMP download detected
[download] Destination: ./LionsgateMovies-wRbAGrIjCr4_Jonah_A_VeggieTales_Movie.flv
ERROR: RTMP download detected but "rtmpdump" could not be run
~
downloading: http://www.youtube.com/watch?v=yU0KpRBkeMY
[youtube] Setting language
[youtube] yU0KpRBkeMY: Downloading video webpage
[youtube] yU0KpRBkeMY: Downloading video info webpage
[youtube] yU0KpRBkeMY: Extracting video information
[youtube] RTMP download detected
[download] Destination: ./LionsgateMovies-yU0KpRBkeMY_Hercules_In_New_York.flv
ERROR: RTMP download detected but "rtmpdump" could not be run
~
[toc] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2011-11-12 23:54 +0000 |
| Message-ID | <4ebf0718$0$29970$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #15631 |
On Sat, 12 Nov 2011 19:06:32 +0000, lbrt chx _ gemale wrote: > I have also been getting errors reporting: > ~ > RTMP download detected but "rtmpdump" could not be run > ~ > What does it mean? Is it a youtube thing or a python/youtube-dl one (or > both)? Could you fix that with some flag? Try installing rtmpdump. BTW, your first call before asking here about random problems should be to use the search engine of your choice to google for more information: https://duckduckgo.com/html/?q=rtmpdump -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Philipp Hagemeister <phihag@phihag.de> |
|---|---|
| Date | 2011-11-21 22:14 +0100 |
| Message-ID | <mailman.2934.1321911509.27778.python-list@python.org> |
| In reply to | #15631 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 As a general rule, feel free to contact youtube-dl developers and users at https://github.com/rg3/youtube-dl/issues/ . youtube-dl is just one application, which happens to be written in Python. lbrt@mail.python.org wrote: > I did find my way (through a silly hack) to get all files within a size range without waiting for youtube-dl to be "enhanced". You may be able to send a HEAD request to the URL, but there's no guarantee the response will contain a Content-Length header. In fact, there will never be a Content-Lenght header for infinite HTTP streams. Also, RTMP URLs are way more complicated. > I have also been getting errors reporting: > RTMP download detected but "rtmpdump" could not be run You need rtmpdump. See http://rtmpdump.mplayerhq.hu/ for instructions on how to install it. > It would be very helpful if you could redirect youtube-dl errors to a separate file you would indicate via a flag If you think so, please open an issue. Do not forget to consider the usefulness not only for your specific application, but also of other applications. I think the command-line API (https://github.com/rg3/youtube-dl/issues/152) will be your best shot. Note that you can already redirect youtube-dl's output to a file, just like any other shell program: $ youtube-dl uHlDtZ6Oc3s > log will write a file log that contains all of youtube-dl's output. If the return code is not 0, an error has occured. Cheers, Philipp youtube-dl developer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEAREKAAYFAk7KvygACgkQ9eq1gvr7CFw6GwCfeaF0TPNonTCaXVBDnmDBPio2 qVQAn2/JQzTbBYs+pe50t4qVCjxY+BLy =o6uC -----END PGP SIGNATURE-----
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web