Open ghost opened 4 years ago
I re-ran the above command with the added options --no-post-overwrites -k --keep-fragments --fixup never
, and now it keeps the entire 170MB file, but ffprobe still shows a tiny duration:
$ ls -l These\ guys\ remixed\ my\ videos...\ wow\ \(LIVE\ STREAM\)-zauGZfKosJQ.m4a
-rw-rw-r-- 1 bp bp 170750241 Jan 27 00:53 'These guys remixed my videos... wow (LIVE STREAM)-zauGZfKosJQ.m4a'
$ ffprobe These\ guys\ remixed\ my\ videos...\ wow\ \(LIVE\ STREAM\)-zauGZfKosJQ.m4a 2>&1 | grep Duration
Duration: 00:00:04.99, start: 0.000000, bitrate: 273638 kb/s
I see a problem that might be related (youtube-dl 2020.03.24
, archlinux, up-to-date) when downloading from https://www.france.tv/france-5/c-dans-l-air/
, e.g. this link.
When I try to download the audio only (-x
flag) with the following command: youtube-dl -x https://www.france.tv/france-5/c-dans-l-air/1354929-alors-on-sort-quand-et-comment.html
, the resulting audio file is a few minutes long, whereas it should be 65 minutes.
Interestingly, if I specify both -x
and --format=worst
to retrieve the video as well, then convert to audio only, with youtube-dl --format=worst -x https://www.france.tv/france-5/c-dans-l-air/1354929-alors-on-sort-quand-et-comment.html
, the resulting audio file has the correct length.
Weird. :thinking:
Checklist
Verbose log
Description
Sometimes an archived live stream which plays just fine in a browser (both audio and video) has no audio when downloaded via youtube-dl. Either there is an error and the file is zero or near-empty, or it acts like it downloads the entire thing but then when you try to play it back, it is 99% silence except for occasionally a few seconds somewhere randomly in the file... seems to change with each video. I do not have any more examples currently besides this one, as the other ones that have had problems have since been removed by the author, usually due to the audio eventually starting to appear empty in a browser as well. I am trying to archive this one too on behalf of the author before it disappears as well.
In this case, the final audio file shows up as being only 80k in size and 5 seconds long, even though youtube-dl says it took 13 minutes and downloaded 162MB.
Potentially related: #15641 which was closed without resolution.