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

[Issue] TeamCoco: broken selection with default bestvideo+bestaudio #11995

Closed
wiiaboo opened this issue Feb 6, 2017 · 0 comments
Closed

[Issue] TeamCoco: broken selection with default bestvideo+bestaudio #11995

wiiaboo opened this issue Feb 6, 2017 · 0 comments
Labels
bug

Comments

@wiiaboo
Copy link
Contributor

@wiiaboo wiiaboo commented Feb 6, 2017

  • I've verified and I assure that I'm running youtube-dl 2017.02.04.1
  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

$ youtube-dl -v --ignore-config "http://teamcoco.com/video/clueless-gamer-super-bowl-for-honor"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--ignore-config', 'http://teamcoco.com/video/clueless-gamer-super-bowl-for-honor']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2017.02.04.1
[debug] Python version 3.6.0 - Windows-10-10.0.14393-SP0
[debug] exe versions: ffmpeg N-83415-g012dd8c99a, ffprobe N-83415-g012dd8c99a, rtmpdump 2.4-20151223-gfa8646d-LibreSSL_2.3.4-x86_64-static
[debug] Proxy map: {}
[Teamcoco] clueless-gamer-super-bowl-for-honor: Downloading webpage
[Teamcoco] Try to compute possible data sequence. This may take some time.
[Teamcoco] 98599: Downloading m3u8 information
ERROR: Both formats 2374 and 71 are video-only, you must specify "-f video+audio"
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Ricardo\AppData\Local\Programs\Python\Python36\Scripts\youtube-dl.exe\__main__.py", line 9, in <module>
    sys.exit(main())
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\__init__.py", line 452, in main
    _real_main(argv)
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\__init__.py", line 442, in _real_main
    retcode = ydl.download(all_urls)
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\YoutubeDL.py", line 1796, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\YoutubeDL.py", line 707, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\YoutubeDL.py", line 753, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\YoutubeDL.py", line 1429, in process_video_result

    formats_to_download = list(format_selector(ctx))
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\YoutubeDL.py", line 1074, in selector_function
    for format in f(ctx):
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\YoutubeDL.py", line 1193, in final_selector
    return selector_function(ctx_copy)
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\YoutubeDL.py", line 1084, in selector_function
    picked_formats = list(f(ctx))
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\YoutubeDL.py", line 1185, in selector_function
    yield _merge(pair)
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\YoutubeDL.py", line 1157, in _merge
    % (format_1, format_2))
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\YoutubeDL.py", line 570, in report_error
    self.trouble(error_message, tb)
  File "c:\users\ricardo\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\YoutubeDL.py", line 532, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

Looking at -F output and -j/-J output, default -f bestvideo+bestaudio is likely failing because format_id 71 has both acodec="none" and vcodec="none":

$ youtube-dl --ignore-config -F "http://teamcoco.com/video/clueless-gamer-super-bowl-for-honor"
[Teamcoco] clueless-gamer-super-bowl-for-honor: Downloading webpage
[Teamcoco] Try to compute possible data sequence. This may take some time.
[Teamcoco] 98599: Downloading m3u8 information
[info] Available formats for 98599:
format code      extension  resolution note
meta             mp4        multiple   Quality selection URL
audio-0-Default  mp4        audio only
audio-1-Default  mp4        audio only
71               mp4        audio only   71k , video only
413              mp4        400x224     413k , avc1.42001e, video only
522              mp4        400x224     522k , avc1.42001e, video only
1205             mp4        640x360    1205k , avc1.4d001e, video only
2374             mp4        1024x576   2374k , avc1.4d001f, video only
false-0          mp4        unknown
false-1          mp4        unknown
false-2          mp4        unknown
500k             mp4        unknown    (best)
@yan12125 yan12125 added the bug label Feb 6, 2017
@dstftw dstftw closed this in 242a14a Feb 6, 2017
dstftw added a commit that referenced this issue Apr 22, 2017
* Extract m3u8 parsing to separate method
* Improve rendition groups extraction
* Build stream name according stream GROUP-ID
* Ignore reference to AUDIO group without URI when stream has no CODECS
+ Add test coverage for parsing m3u8 from #11507, #11995, #12211 and twitch vod
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
2 participants
You can’t perform that action at this time.