Skip to content
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

Swedish public service SVT's news section can't handle "--format=best" #22389

Closed
b9AcE opened this issue Sep 12, 2019 · 4 comments
Closed

Swedish public service SVT's news section can't handle "--format=best" #22389

b9AcE opened this issue Sep 12, 2019 · 4 comments
Labels

Comments

@b9AcE
Copy link

@b9AcE b9AcE commented Sep 12, 2019

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2019.09.12.1
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

~$ ytdl --format=best -v -- 'https://www.svt.se/nyheter/har-slapps-36-ton-bomber-over-is-on'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--format=best', u'-v', u'--', u'https://www.svt.se/nyheter/har-slapps-36-ton-bomber-over-is-on']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.05.20
[debug] Python version 2.7.13 (CPython) - Linux-4.14.91-feral-x86_64-with-debian-9.11
[debug] exe versions: ffmpeg 3.2.14-1, ffprobe 3.2.14-1
[debug] Proxy map: {}
[SVTPage] har-slapps-36-ton-bomber-over-is-on: Downloading webpage
[download] Downloading playlist: Här släpps 36 ton bomber över IS-ön
[SVTPage] playlist Här släpps 36 ton bomber över IS-ön: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[debug] Using fake IP 78.79.140.15 (SE) as X-Forwarded-For.
[SVTPlay] 23633742: Downloading JSON metadata
[SVTPlay] 23633742: Downloading m3u8 information
[SVTPlay] 23633742: Downloading m3u8 information
[SVTPlay] 23633742: Downloading m3u8 information
[SVTPlay] 23633742: Downloading m3u8 information
[SVTPlay] 23633742: Downloading MPD manifest
ERROR: requested format not available
Traceback (most recent call last):
  File "/media/sdb1/b9ace/bin/ytdl/youtube_dl/YoutubeDL.py", line 807, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/media/sdb1/b9ace/bin/ytdl/youtube_dl/YoutubeDL.py", line 861, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/media/sdb1/b9ace/bin/ytdl/youtube_dl/YoutubeDL.py", line 1634, in process_video_result
    expected=True)
ExtractorError: requested format not available

Description

When requesting "--format=best" from the videos in the news section of SVT.se, youtube-dl seems to be unable to decide which of the many streams for a particular video is best and just decides to claim it is "not available" then quit.
When run without that parameter, it doesn't.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 12, 2019

There is no best format as clearly stated in the error message.

@dstftw dstftw closed this Sep 12, 2019
@dstftw dstftw added the invalid label Sep 12, 2019
@b9AcE
Copy link
Author

@b9AcE b9AcE commented Sep 12, 2019

There is a "best" format just as much as there is a "best" format when using the exact same parameters with YouTube, Vimeo or other URLs, where instead youtube-dl picks the best format out of those available and youtube-dl would be reasonably expected to do the same here, as it used to do before SVT restructured the streams.

@IRGC
Copy link

@IRGC IRGC commented Sep 12, 2019

@b9AcE
Copy link
Author

@b9AcE b9AcE commented Sep 12, 2019

Yes. There are, as there used to be when this worked, very many streams for each URL, with a predictable pattern of names, and one is declared by youtube-dl as "(best)".
In this example:

~$ ytdl -v -F -- 'https://www.svt.se/nyheter/har-slapps-36-ton-bomber-over-is-on'                                              [debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-F', u'--', u'https://www.svt.se/nyheter/har-slapps-36-ton-bomber-over-is-on']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.05.20
[debug] Python version 2.7.13 (CPython) - Linux-4.14.91-feral-x86_64-with-debian-9.11
[debug] exe versions: ffmpeg 3.2.14-1, ffprobe 3.2.14-1
[debug] Proxy map: {}
[SVTPage] har-slapps-36-ton-bomber-over-is-on: Downloading webpage
[download] Downloading playlist: Här släpps 36 ton bomber över IS-ön
[SVTPage] playlist Här släpps 36 ton bomber över IS-ön: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[debug] Using fake IP 78.64.90.126 (SE) as X-Forwarded-For.
[SVTPlay] 23633742: Downloading JSON metadata
[SVTPlay] 23633742: Downloading m3u8 information
[SVTPlay] 23633742: Downloading m3u8 information
[SVTPlay] 23633742: Downloading m3u8 information
[SVTPlay] 23633742: Downloading m3u8 information
[SVTPlay] 23633742: Downloading MPD manifest
[info] Available formats for 23633742:
format code                 extension  resolution note
hls-cmaf-lb-stereo-Svenska  mp4        audio only [sv]
hls-cmaf-stereo-Svenska     mp4        audio only [sv]
hls-lb-stereo-Svenska       mp4        audio only [sv]
hls-stereo-Svenska          mp4        audio only [sv]
dashhbbtv-6                 m4a        audio only [sv] DASH audio  127k , m4a_dash container, mp4a.40.2 (48000Hz)
dashhbbtv-3                 mp4        512x288    DASH video  150k , mp4_dash container, avc1.42c015, video only
dashhbbtv-7                 mp4        512x288    DASH video  266k , mp4_dash container, avc1.42c015, video only
hls-cmaf-273                mp4        512x288     273k , avc1.42c015, 25.0fps, video only
hls-cmaf-lb-273             mp4        512x288     273k , avc1.42c015, 25.0fps, video only
hls-300                     mp4        512x288     300k , avc1.42c015, 25.0fps, video only
hls-lb-300                  mp4        512x288     300k , avc1.42c015, 25.0fps, video only
hls-cmaf-381                mp4        512x288     381k , avc1.42c015, 25.0fps, video only
hls-cmaf-lb-381             mp4        512x288     381k , avc1.42c015, 25.0fps, video only
dashhbbtv-4                 mp4        512x288    DASH video  383k , mp4_dash container, avc1.42c015, video only
hls-411                     mp4        512x288     411k , avc1.42c015, 25.0fps, video only
hls-lb-411                  mp4        512x288     411k , avc1.42c015, 25.0fps, video only
hls-cmaf-490                mp4        512x288     490k , avc1.42c015, 25.0fps, video only
hls-cmaf-lb-490             mp4        512x288     490k , avc1.42c015, 25.0fps, video only
hls-522                     mp4        512x288     522k , avc1.42c015, 25.0fps, video only
hls-lb-522                  mp4        512x288     522k , avc1.42c015, 25.0fps, video only
dashhbbtv-5                 mp4        512x288    DASH video  574k , mp4_dash container, avc1.42c015, video only
hls-cmaf-671                mp4        512x288     671k , avc1.42c015, 25.0fps, video only
hls-706                     mp4        512x288     706k , avc1.42c015, 25.0fps, video only
hls-lb-706                  mp4        512x288     706k , avc1.42c015, 25.0fps, video only
dashhbbtv-0                 mp4        768x432    DASH video  912k , mp4_dash container, avc1.4d401e, video only
hls-cmaf-1035               mp4        768x432    1035k , avc1.4d401e, 25.0fps, video only
hls-cmaf-lb-1035            mp4        768x432    1035k , avc1.4d401e, 25.0fps, video only
hls-1078                    mp4        768x432    1078k , avc1.4d401e, 25.0fps, video only
dashhbbtv-1                 mp4        1024x576   DASH video 1626k , mp4_dash container, avc1.4d401f, video only
hls-cmaf-1735               mp4        1024x576   1735k , avc1.4d401f, 25.0fps, video only
hls-1793                    mp4        1024x576   1793k , avc1.4d401f, 25.0fps, video only
dashhbbtv-2                 mp4        1280x720   DASH video 2802k , mp4_dash container, avc1.64001f, video only
hls-cmaf-2878               mp4        1280x720   2878k , avc1.64001f, 25.0fps, video only
hls-2960                    mp4        1280x720   2960k , avc1.64001f, 25.0fps, video only (best)
[download] Finished downloading playlist: Här släpps 36 ton bomber över IS-ön
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.