Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[tf1] Additional audio streams and subtitles (described in MPD) not detected in tf1.fr videos #22379
Comments
|
Due to an issue with my Github account, which took a bit of time to be solved, this bug report was not visible until yesterday. |
|
For the sake of completeness, I should mention that there are both DRM-(partially)-protected videos and unprotected videos on tf1.fr. However, in the case of DRM-(partially)-protected videos, the MPD approach fails (youtube-dl says it could not detect any video format) and one should probably keep relying on the current approach which enables at least to download the video with the French-dubbed audio.
As you can see, both video and French-dubbed audio ("hls-X" and "dash-audio_fra=X") are detected and downloaded. And, as mentioned, trying to use youtube-dl on this MPD manifest does not enable to detect any stream (although there are in fact streams described in the MPD file but maybe due to the DRM-protection, youtube-dl says that no stream is available?):
If multiple stream detection approaches can be combined for a same website in a youtube-dl "plugin", maybe always using both approaches for all tf1.fr videos could be the easiest way to cover all cases, with no need of detecting whether there are DRM beforehand:
Hope it helps investigating the issue. |
Checklist
Description
After a recent evolution of "MyTF1" (tf1.fr), some videos are now available with original audio (in addition to the French dub, which is the default), with French subtitles and hearing-impaired French subtitles.
An example of such a video is:
https://www.tf1.fr/tmc/hercule-poirot/videos/hercule-poirot-saison-02-episode-02-la-femme-voilee-57210428.html
(with geo-restrictiction and time-limited availability)
The new player enables the viewer to choose the audio language and subtitle, however youtube-dl does not currently detect the additional languages (only the French audio, identified as "dash-audio_fra=XXX") nor subtitles:
Moreover, as shown above, youtube-dl is not able to download the MPD manifest:
However, with the help of "Stream Detector" Firefox extension, there was no problem identifying the MPD manifest of the example video, which is:
https://das-q1-ssl.tf1.fr/2/USP-0x0/94/88/13659488/ssm/036dc9a4353cb3e7ffd68e2391505272fcf13e208ba027358f785857bb8e3077.ism/13659488.mpd?e=1568330605&max_bitrate=2800000&st=ovfrLm4zqeCI2_EBwBcIMg&vk=MTM2NTk0ODgubXBk
Using youtube-dl on this url enables detecting the additional audio streams (identified as "audio_eng=XXX" for the example video, the original audio of which is in English) and downloading them:
but not the subtitles:
However, downloading the MPD manifest and checking its content shows that the subtitles are described in the MPD manifest:
Here is the downloaded MPD manifest:
13659488.mpd.txt
Subtitles sections seem to be described from line 80 in this example file.
Therefore, would it be possible to add support in youtube-dl for the additional audio and subtitles of tf1.fr videos, either through an improved detection and use of the MPD manifest or through any other approach?
Thanks in advance for your help.