-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FranceTV: hlsnative corrupts soundtrack in videos with separate "audio only" HLS playlist #22674
Comments
Any news about this issue ? All my videos have no sound after 10 seconds, quite disturbing... |
Exact same issue here. |
With youtube-dl version 2019.11.28, it works. Now, I get this message among the logs: These videos use a separate audio file which is not a single file but a ".m3u8" playlist of 10 seconds ".aac" audio fragments. With youtube-dl version 2019.09.28, the download was done by hlsnative and the merged file is corrupted every 10 seconds. But with youtube-dl version 2019.11.28 using ffmpeg do download and merge, it's OK. If think that this bug can be closed and that it is related to another closed bug. |
I can't find which closed issue is related to this one, but as now, youtube-dl detects that it can't use hlsnative, this problem is solved. I close my bug report. |
With youtube-dl 2019.11.28, it still doesn't work for me. For example with this link : |
Hello, I can't reproduce your problem with this URL. It works for me with youtube-dl version 2019.11.28. Here's the log :
Then, I can extract the audio track with: and it is complete (88MB) and not 120kB when it was only 10 seconds long. Can you please run this command and copy youtube-dl.log here ? |
My logs of the command you asked : |
Sorry. I can reproduce the bug. It's not solved in 2019.11.28, I reopen this issue. I've done the above tests on another computer with a better internet connection and the same youtube-dl version. But it doesn't have a lot of libraries installed and it is missing python-crypto. That is the reason why I get the message "WARNING: hlsnative has detected features it does not support, extraction will be delegated to ffmpeg". If I install python-crypto, it uses hlsnative and the bug appears. On my main computer (used for the initial bug report), I have python-crypto installed and youtube-dl uses hlsnative. If I remove python-crypto, it uses ffmpeg and it works. I confirm that there is a bug, the same that is described in the first message, which appears only when using hlsnative. Here's a new log with the bug. As you can see with the following "ls" command, the file is shrinked by ffmpeg when fixup, because it is corrupted.
A workaround to download the video with its sound track is to use the
|
python-crypto isn't installed on my machine, still not working |
The option --hls-prefer-ffmpeg seems to work for me. |
Some links only provide separate audio and video files, both with the same name and extension (mp4). A single download provides a video with truncated sound (a few minutes). This therefore requires in order:
Could you specify the ffmpeg commands used by youtube-dl allowing:
Thanks. Examples : |
I confirm this worked as well for me. |
Hi everyone. I have the same issue: I only have the 10 first audio seconds for France TV videos (last week-end however, it worked perfectly). I have the latest youtube-dl release. And in my case, the --hls-prefer-ffmpeg option does not avoid that issue. Do you have some advices?
|
Thanks : confirmed on https://www.francetvinfo.fr/replay-magazine/france-3/pieces-a-conviction/pieces-a-conviction-du-mercredi-5-fevrier-2020_3787051.html |
Hi, |
A link because with same workaround seems to work for me. |
Hi, Here the URL with the command : |
Hello |
It's weird because mine finish with a timeout like this And at the beginning of the download, I have this stack : It's not something related to a ffmpeg issue ? |
Hi, i'm running version 2020.02.16 and had the same issue.
|
yeah, it works with option But, you have to wait for the entire file to download : option |
Do you have any update on this issue ? |
--hls-prefer-ffmpeg saved my live too ;) Any way to have youtube-dl discover by itself if this option is needed ? Update : i've forgotten to thanks you for your work :) |
In several videos from www.france.tv, including all recent from "Passion Outremer" but also some others, there are several video only files and an audio only file. But the other video files are video+audio. This audio file triggers an error of ffmpeg after 10 seconds when merging, thus the video+audio merged file doesn't have sound included after these seconds. For an original sound file of about 20 MB, the sound extracted from the merged file is only 80 KB, including only these 10 seconds.
This problem is not strictly related to youtube-dl and maybe not to ffmpeg. I think that it comes from a basic copy protection system which includes an error in the file. In the browser, it works well, but with youtube-dl the sound track is truncated.
Please note that if I download the audio only file with "-f bestaudio", the sound track is also cut, because of the postprocessing with ffmpeg.
I found a workaround to keep the entire sound track for further postprocessing by using this option: "--fixup never", combined with "-f bestaudio".
I first tried to hear the sound with VLC or mplayer, it stops at 10s. Then I installed ffplay 4.1.4 (Debian package from deb-multimedia.org), which works, but I hear a very short pause in the sound at 10 seconds, then at 30s and maybe every 30s. I haven't tried with ffmpeg 4.2 or 4.2.1. Of course, I use the latest youtube-dl, which is 2019.09.28.
Maybe with ffmpeg options I can merge the video only file and the audio only file but I'm not an expert of ffmpeg and haven't found it in the documentation. If a fix is found with ffmpeg options, it would be useful to include it in youtube-dl code.
Here are some examples of these videos:
https://www.france.tv/documentaires/voyages/1073909-montagne-pelee-un-volcan-sous-haute-surveillance.html
https://www.france.tv/france-o/antilles-les-volcans-se-reveillent/1020287-montserrat-la-pompei-des-caraibes.html
https://www.france.tv/documentaires/voyages/1083115-soufriere-la-vieille-dame-indomptable.html
https://www.france.tv/france-o/antilles-les-volcans-se-reveillent/1084769-dominique-une-ile-en-ebullition.html
https://www.france.tv/documentaires/animaux-nature/1085375-des-volcans-aux-lagons.html
https://www.france.tv/documentaires/animaux-nature/1085373-reunion-le-volcan-rouge.html
https://www.france.tv/france-o/passion-outre-mer/763831-passion-outre-mer.html
For the concerned videos, "youtube-dl -F" gives for example:
format code extension resolution note
hls_v5_os-audio-aacl-64-Audio_Français mp4 audio only [fr]
hls_v5_os-191 mp4 256x144 191k , avc1.42C01E, 25.0fps, video only
hls_v5_os-321 mp4 320x180 321k , avc1.42C01E, 25.0fps, video only
hls_v5_os-609 mp4 512x288 609k , avc1.42C01E, 25.0fps, video only
hls_v5_os-880 mp4 704x396 880k , avc1.4D401F, 25.0fps, video only
hls_v5_os-1554 mp4 1024x576 1554k , avc1.4D401F, 25.0fps, video only (best)
Other videos with audio merged are OK.
I attach a log of youtube-dl downloading the audio only file, with the file cut by postprocessing, as you can see in the following "ls".
rapport_de_bug_youtube-dl.log
The text was updated successfully, but these errors were encountered: