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

CNN video: Error: Protocol not found / ERROR: ffmpeg exited with code 1 #16781

Closed
jm3 opened this issue Jun 20, 2018 · 6 comments
Closed

CNN video: Error: Protocol not found / ERROR: ffmpeg exited with code 1 #16781

jm3 opened this issue Jun 20, 2018 · 6 comments
Labels

Comments

@jm3
Copy link

@jm3 jm3 commented Jun 20, 2018

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

  • I've verified and I assure that I'm running youtube-dl 2018.06.19

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

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

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:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

> youtube-dl -U
youtube-dl is up-to-date (2018.06.19)

> youtube-dl -v "https://www.cnn.com/videos/travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.cnn.com/videos/travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.06.19
[debug] Python version 2.7.15 (CPython) - Darwin-17.6.0-x86_64-i386-64bit
[debug] exe versions: avconv 12.3, avprobe 12.3, ffmpeg 4.0.1, ffprobe 4.0.1
[debug] Proxy map: {}
[CNN] explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4: Downloading XML
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading SMIL file
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading f4m manifest
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading m3u8 information
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading m3u8 information
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading m3u8 information
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading m3u8 information
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading m3u8 information
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading m3u8 information
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading m3u8 information
WARNING: Failed to download m3u8 information: HTTP Error 404: Not Found
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading SMIL file
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://cnnios-f.akamaihd.net/i/cnn/big/travel/2018/04/10/caption/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms_2047212_ios_,440,650,840,1240,3000,5500,.mp4.csmil/index_5_av.m3u8?null=0'
[download] Destination: Little Los Angeles - Little Armenia-travel_2018_04_10_explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms.mp4
[debug] avconv command line: avconv -y -loglevel verbose -headers 'Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0 (Chrome)
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Cookie: _alid_=LTYq5J5AiWgLulkIvgiaTg==
' -i 'https://cnnios-f.akamaihd.net/i/cnn/big/travel/2018/04/10/caption/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms_2047212_ios_,440,650,840,1240,3000,5500,.mp4.csmil/index_5_av.m3u8?null=0' -c copy -f mp4 'file:Little Los Angeles - Little Armenia-travel_2018_04_10_explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms.mp4.part'
avconv version 12.3, Copyright (c) 2000-2018 the Libav developers
  built on Feb 13 2018 11:14:42 with Apple LLVM version 9.0.0 (clang-900.0.39.2)
  configuration: --disable-debug --disable-shared --disable-indev=jack --prefix=/usr/local/Cellar/libav/12.3 --enable-gpl --enable-nonfree --enable-version3 --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libfaac --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
  libavutil     55. 20. 0 / 55. 20. 0
  libavcodec    57. 25. 0 / 57. 25. 0
  libavformat   57.  7. 2 / 57.  7. 2
  libavdevice   56.  1. 0 / 56.  1. 0
  libavfilter    6.  7. 0 /  6.  7. 0
  libavresample  3.  0. 0 /  3.  0. 0
  libswscale     4.  0. 0 /  4.  0. 0
https://cnnios-f.akamaihd.net/i/cnn/big/travel/2018/04/10/caption/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms_2047212_ios_,440,650,840,1240,3000,5500,.mp4.csmil/index_5_av.m3u8?null=0: Protocol not found


ERROR: ffmpeg exited with code 1
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 472, in main
    _real_main(argv)
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 462, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 803, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 857, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1635, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1908, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1847, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 364, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/external.py", line 64, in real_download
    self.get_basename(), retval))
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 165, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 620, in report_error
    self.trouble(error_message, tb)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 582, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())


Description of your issue, suggested solution and other information

Error: Protocol not found / ERROR: ffmpeg exited with code 1

Note: this issue is different than #12972 and #15110 and #13666

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 21, 2018

avconv is built without https support. Either fix or use ffmpeg.

@dstftw dstftw closed this Jun 21, 2018
@dstftw dstftw added the invalid label Jun 21, 2018
@jm3
Copy link
Author

@jm3 jm3 commented Jun 21, 2018

OK. The supported sites list includes CNN, a site that serves assets over HTTPS, like increasingly all high traffic sites do. Should CNN then be removed from the supported sites list, then, if youtube-dl can't currently download videos from it?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 21, 2018

Have you even read my post? It has nothing to do with youtube-dl.

@jm3
Copy link
Author

@jm3 jm3 commented Jun 21, 2018

Sorry, I read your post but the meaning wasn't very clear to me. It sounded like you were asking me to fix how avconv works, a tool I'm not familiar with. I added --prefer-ffmpeg and it worked. Thanks.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 21, 2018

Yes, you should "fix" how avconv works if you want to use it. Namely you should build it with https support or obtain one built with https from somewhere else. Alternatively, you can select non HLS format that does not involve avconv/ffmpeg at all, see format selection.

@jm3
Copy link
Author

@jm3 jm3 commented Jun 21, 2018

Great. FYI, after rebuilding avconv with brew install libav --with-openssl, the error is:

av_interleaved_write_frame(): Invalid argument
Application provided invalid, non monotonically increasing dts to muxer in stream 1:

> youtube-dl "https://www.cnn.com/videos/travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms"
[CNN] explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4: Downloading XML
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading SMIL file
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading f4m manifest
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading m3u8 information
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading m3u8 information
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading m3u8 information
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading m3u8 information
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading m3u8 information
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading m3u8 information
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading m3u8 information
WARNING: Failed to download m3u8 information: HTTP Error 404: Not Found
[CNN] travel/2018/04/10/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms: Downloading SMIL file
[download] Destination: Little Los Angeles - Little Armenia-travel_2018_04_10_explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms.mp4
avconv version 12.3, Copyright (c) 2000-2018 the Libav developers
  built on Jun 21 2018 11:25:03 with Apple LLVM version 9.1.0 (clang-902.0.39.2)
[mpegts @ 0x7fb6f7023000] max_analyze_duration 5000000 reached
[mpegts @ 0x7fb6f7023000] Estimating duration from bitrate, this may be inaccurate
Input #0, hls,applehttp, from 'https://cnnios-f.akamaihd.net/i/cnn/big/travel/2018/04/10/caption/explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms_2047212_ios_,440,650,840,1240,3000,5500,.mp4.csmil/index_5_av.m3u8?null=0':
  Duration: 00:05:38.33, start: 0.100511, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (High) [[27][0][0][0] / 0x001B]
      yuv420p, 1920x1080 [PAR 1:1 DAR 16:9]
      29.97 fps, 90k tbn
    Stream #0:1: Audio: aac (LC) [[15][0][0][0] / 0x000F]
      44100 Hz, mono, fltp, 128 kb/s
Output #0, mp4, to 'file:Little Los Angeles - Little Armenia-travel_2018_04_10_explore-parts-unknown-bourdain-little-los-angeles-little-armenia-episode-4.roads--kingdoms.mp4.part':
  Metadata:
    encoder         : Lavf57.7.2
    Stream #0:0: Video: h264 (High) [[33][0][0][0] / 0x0021]
      yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, PAR 1:1 DAR 16:9
      90k tbn
    Stream #0:1: Audio: aac (LC) [[64][0][0][0] / 0x0040]
      44100 Hz, mono, fltp, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press ctrl-c to stop encoding
Non-monotonous DTS in output stream 0:1; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7fb6f7a0c800] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
Non-monotonous DTS in output stream 0:1; previous: 1, current: 0; changing to 2. This may result in incorrect timestamps in the output file.
Non-monotonous DTS in output stream 0:1; previous: 6269, current: 6269; changing to 6270. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7fb6f7a0c800] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 3072 >= 3072
av_interleaved_write_frame(): Invalid argument


ERROR: ffmpeg exited with code 1
@w10dd w10dd mentioned this issue May 21, 2020
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.