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
131.78k stars 9.98k forks source link

[srgssr] Not all videos are extracted correctly + missing subtitle support #14717

Closed goggle closed 3 years ago

goggle commented 6 years ago

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.11.06. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

Before submitting an issue make sure you have:

What is the purpose of your issue?


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Some [srgssr] videos are not extracted correctly, e.g. if we want to use youtube-dl on the video https://www.srf.ch/play/tv/tagesschau/video/150-jahre-reclam-buecher?id=5ec276f8-451b-4d60-9751-71e9e1edd7ef&station=69e8ac16-4327-4af4-b873-fd5cd6e895a7, it will extract the whole show https://www.srf.ch/play/tv/tagesschau/video/tagesschau-vom-10-11-2017-1930?id=96c125e5-e8c2-423f-a1a0-3638fa15d58e, and not the relevant segment of this show.

To illustrate this, I append the youtube-dl logs of these two different videos:

[debug] System config: []
[debug] User config: ['--netrc']
[debug] Custom config: []
[debug] Command-line args: ['https://www.srf.ch/play/tv/tagesschau/video/tagesschau-vom-10-11-2017-1930?id=96c125e5-e8c2-423f-a1a0-3638fa15d58e', '-F', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.11.06
[debug] Python version 3.6.3 - Linux-4.13.11-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.4, ffprobe 3.4, rtmpdump 2.4
[debug] Proxy map: {}
[SRGSSR] 96c125e5-e8c2-423f-a1a0-3638fa15d58e: Downloading JSON metadata
[SRGSSR] 96c125e5-e8c2-423f-a1a0-3638fa15d58e: Downloading HTTP-HDS-HD token
[SRGSSR] 96c125e5-e8c2-423f-a1a0-3638fa15d58e: Downloading f4m manifest
[SRGSSR] 96c125e5-e8c2-423f-a1a0-3638fa15d58e: Downloading HTTP-HDS-SD token
[SRGSSR] 96c125e5-e8c2-423f-a1a0-3638fa15d58e: Downloading f4m manifest
[SRGSSR] 96c125e5-e8c2-423f-a1a0-3638fa15d58e: Downloading HTTP-HLS-SD token
[SRGSSR] 96c125e5-e8c2-423f-a1a0-3638fa15d58e: Downloading m3u8 information
[SRGSSR] 96c125e5-e8c2-423f-a1a0-3638fa15d58e: Downloading HTTP-HLS-HD token
[SRGSSR] 96c125e5-e8c2-423f-a1a0-3638fa15d58e: Downloading m3u8 information
[info] Available formats for 96c125e5-e8c2-423f-a1a0-3638fa15d58e:
format code       extension  resolution note
HTTP-HLS-HD-46    mp4        audio only   46k , mp4a.40.2
HTTP-HLS-SD-46    mp4        audio only   46k , mp4a.40.2
HTTP-HLS-HD-146   mp4        320x180     146k , avc1.66.30, mp4a.40.2
HTTP-HLS-SD-146   mp4        320x180     146k , avc1.66.30, mp4a.40.2
HTTP-HLS-HD-346   mp4        480x272     346k , avc1.66.30, mp4a.40.2
HTTP-HLS-SD-346   mp4        480x272     346k , avc1.66.30, mp4a.40.2
HTTP-HLS-HD-693   mp4        512x288     693k , avc1.77.30, mp4a.40.2
HTTP-HLS-SD-693   mp4        512x288     693k , avc1.77.30, mp4a.40.2
HTTP-HLS-HD-1325  mp4        640x360    1325k , avc1.77.30, mp4a.40.2
HTTP-HLS-SD-1325  mp4        640x360    1325k , avc1.77.30, mp4a.40.2
HTTP-HLS-HD-2125  mp4        960x544    2125k , avc1.77.30, mp4a.40.2
HTTP-HLS-HD-3626  mp4        1280x720   3626k , avc1.77.30, mp4a.40.2
HTTP-SD           mp4        unknown    
HTTP-HD           mp4        unknown    (best)
[debug] System config: []
[debug] User config: ['--netrc']
[debug] Custom config: []
[debug] Command-line args: ['https://www.srf.ch/play/tv/tagesschau/video/150-jahre-reclam-buecher?id=5ec276f8-451b-4d60-9751-71e9e1edd7ef', '-F', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.11.06
[debug] Python version 3.6.3 - Linux-4.13.11-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.4, ffprobe 3.4, rtmpdump 2.4
[debug] Proxy map: {}
[SRGSSR] 5ec276f8-451b-4d60-9751-71e9e1edd7ef: Downloading JSON metadata
[SRGSSR] 5ec276f8-451b-4d60-9751-71e9e1edd7ef: Downloading HTTP-HDS-HD token
[SRGSSR] 5ec276f8-451b-4d60-9751-71e9e1edd7ef: Downloading f4m manifest
[SRGSSR] 5ec276f8-451b-4d60-9751-71e9e1edd7ef: Downloading HTTP-HDS-SD token
[SRGSSR] 5ec276f8-451b-4d60-9751-71e9e1edd7ef: Downloading f4m manifest
[SRGSSR] 5ec276f8-451b-4d60-9751-71e9e1edd7ef: Downloading HTTP-HLS-SD token
[SRGSSR] 5ec276f8-451b-4d60-9751-71e9e1edd7ef: Downloading m3u8 information
[SRGSSR] 5ec276f8-451b-4d60-9751-71e9e1edd7ef: Downloading HTTP-HLS-HD token
[SRGSSR] 5ec276f8-451b-4d60-9751-71e9e1edd7ef: Downloading m3u8 information
[info] Available formats for 5ec276f8-451b-4d60-9751-71e9e1edd7ef:
format code       extension  resolution note
HTTP-HLS-HD-46    mp4        audio only   46k , mp4a.40.2
HTTP-HLS-SD-46    mp4        audio only   46k , mp4a.40.2
HTTP-HLS-HD-146   mp4        320x180     146k , avc1.66.30, mp4a.40.2
HTTP-HLS-SD-146   mp4        320x180     146k , avc1.66.30, mp4a.40.2
HTTP-HLS-HD-346   mp4        480x272     346k , avc1.66.30, mp4a.40.2
HTTP-HLS-SD-346   mp4        480x272     346k , avc1.66.30, mp4a.40.2
HTTP-HLS-HD-693   mp4        512x288     693k , avc1.77.30, mp4a.40.2
HTTP-HLS-SD-693   mp4        512x288     693k , avc1.77.30, mp4a.40.2
HTTP-HLS-HD-1325  mp4        640x360    1325k , avc1.77.30, mp4a.40.2
HTTP-HLS-SD-1325  mp4        640x360    1325k , avc1.77.30, mp4a.40.2
HTTP-HLS-HD-2125  mp4        960x544    2125k , avc1.77.30, mp4a.40.2
HTTP-HLS-HD-3626  mp4        1280x720   3626k , avc1.77.30, mp4a.40.2
HTTP-SD           mp4        unknown    
HTTP-HD           mp4        unknown    (best)

The logs are the same, this should not be the case!

Furthermore, it would be nice to have subtitle support, since almost all [srgssr] videos provide them.

I am working on solving these issues, you can expect a pull request soon.

enigmaquip commented 6 years ago

subtitles should be pretty easy to add, they're are the end of the json metadata