ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.25k stars 10.03k forks source link

Can't download english version on multilingual videos on france.tv #26133

Open Skiski opened 4 years ago

Skiski commented 4 years ago

Hi,

I'm trying to download the english version of Doctor Who on france.tv (for example: https://www.france.tv/series-et-fictions/series-fantastiques/doctor-who/doctor-who-saison-11/1829347-la-femme-qui-venait-d-ailleurs.html). If you watch the video in the embedded player, you have to clic on a button to choose the language and the subs. When I list all the available formats, I can see that there are 2 versions for each quality:

[fedoski@fixe tmp]$ youtube-dl -F https://www.france.tv/series-et-fictions/series-fantastiques/doctor-who/doctor-who-saison-11/1829347-la-femme-qui-venait-d-ailleurs.html
[FranceTVSite] 1829347-la-femme-qui-venait-d-ailleurs: Downloading webpage
[FranceTV] 5e09b855-e310-4f98-b702-bfe53e3419ef: Downloading video JSON
[FranceTV] 5e09b855-e310-4f98-b702-bfe53e3419ef: Downloading geo restriction info
[FranceTV] 5e09b855-e310-4f98-b702-bfe53e3419ef: Downloading signed m3u8-download manifest URL
[FranceTV] 5e09b855-e310-4f98-b702-bfe53e3419ef: Downloading m3u8 information
[FranceTV] 5e09b855-e310-4f98-b702-bfe53e3419ef: Downloading signed hls_v5_os manifest URL
[FranceTV] 5e09b855-e310-4f98-b702-bfe53e3419ef: Downloading m3u8 information
[info] Available formats for 5e09b855-e310-4f98-b702-bfe53e3419ef:
format code         extension  resolution note
hls_v5_os-517       mp4        384x216     517k , avc1.66.30, mp4a.40.2
m3u8-download-517   mp4        384x216     517k , avc1.66.30, mp4a.40.2
hls_v5_os-1078      mp4        640x360    1078k , avc1.77.30, mp4a.40.2
m3u8-download-1078  mp4        640x360    1078k , avc1.77.30, mp4a.40.2
hls_v5_os-1532      mp4        960x540    1532k , avc1.77.30, mp4a.40.2
m3u8-download-1532  mp4        960x540    1532k , avc1.77.30, mp4a.40.2
hls_v5_os-2134      mp4        1280x720   2134k , avc1.64001f, mp4a.40.2
m3u8-download-2134  mp4        1280x720   2134k , avc1.64001f, mp4a.40.2 (best)

I've tried downloading both version for a given quality and both have french audio. Is it possible to have the english version of the audio, or is it something that can only be obtained through the embedded player?

Anyway, thanks for your awesome tool.

LRGH commented 3 years ago

Still the case for the new season. e.g. https://www.france.tv/series-et-fictions/series-fantastiques/doctor-who/1874141-la-chute-des-espions-partie-1.html I think that the reason is that youtube-dl is dowloading a m3u8 which contains segments in .ts format with video muxed with French audio. But when using the embedded player, video and audio are received separately and in chunks of dash files. youtube-dl does not use the same source as the embedded player.

LRGH commented 3 years ago

More details: The embedded player appears to first get a manifest.mpd file such as the one attached. The URL to get this file can be seen with Firefox debug tools. It contains a key that changes, but the manifest does not change. youtube-dl or ffmpeg with this URL as an argument can download the video and the two audio tracks. I don't know (yet) how to download the subtitles too.