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.46k stars 9.96k forks source link

CNC World Live HTTP Error 404: Not Found #13732

Open johnthecracker opened 7 years ago

johnthecracker commented 7 years ago

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.07.23. 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?


CNC World News live broadcast, should be live but I am not so sure.

On youtube website there is no live broadcat of this news channel.

Would it be possible to make youtube-dl to work with:

http://www.news.cn/2015wlds/enindex.htm

C:\>youtube-dl.exe -v -F --no-check-certificate http://www.news.cn/2015wlds/enindex.htm
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-F', '--no-check-certificate', 'http://www.news.cn/2015wlds/enindex.htm']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.07.23
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 3.3.2, ffprobe 3.3.2, rtmpdump 2.4
[debug] Proxy map: {}
[generic] enindex: Requesting header
WARNING: Falling back on generic information extractor.
[generic] enindex: Downloading webpage
[generic] enindex: Extracting information
[generic] enindex: Downloading m3u8 information
ERROR: Failed to download m3u8 information: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpu6zpd7mk\build\youtube_dl\extractor\common.py", line 502, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpu6zpd7mk\build\youtube_dl\YoutubeDL.py", line 2166, in urlopen
  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default
johnthecracker commented 7 years ago

Just found out that youtube-dl works with one variety of m3u8,

http://livecdn1.news.cn/cncen/manifest.m3u8

I found that url on some other forum and I don't know how it was obtained.

http://stream-recorder.com/forum/cnc-world-live-t23311.html

C:>youtube-dl.exe -v -F --no-check-certificate http://livecdn1.news.cn/cncen/manifest.m3u8 [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['-v', '-F', '--no-check-certificate', 'http://livecdn1.news.cn/cncen/manifest.m3u8'] [debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252 [debug] youtube-dl version 2017.07.23 [debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1 [debug] exe versions: ffmpeg 3.3.2, ffprobe 3.3.2, rtmpdump 2.4 [debug] Proxy map: {} [generic] manifest: Requesting header [generic] manifest: Downloading m3u8 information [info] Available formats for manifest: format code extension resolution note 0 mp4 unknown

youtube-dl.exe --no-check-certificate --no-overwrites -v http://livecdn1.news.cn/cncen/manifest.m3u8

[debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['--no-check-certificate', '--no-overwrites', '-v', ' http://livecdn1.news.cn/cncen/manifest.m3u8'] [debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252 [debug] youtube-dl version 2017.07.23 [debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1 [debug] exe versions: ffmpeg 3.3.2, ffprobe 3.3.2, rtmpdump 2.4 [debug] Proxy map: {} [generic] manifest: Requesting header [generic] manifest: Downloading m3u8 information [debug] Default format spec: bestvideo+bestaudio/best [debug] Invoking downloader on 'http://livecdn1.news.cn/cncen/manifest.m3u8' [download] Destination: manifest-manifest.mp4 [debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers "User-Agent: M ozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome) Accept-Encoding: gzip, deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/*;q=0.8 Accept-Language: en-us,en;q=0.5 " -i "http://livecdn1.news.cn/cncen/manifest.m3u8" -c copy -f mp4 "file:manifest -manifest.mp4.part" ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.1.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --e nable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth -- enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-li bfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug - -enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enabl e-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li bsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolam e --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable -libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100 [hls,applehttp @ 000000000057a400] HLS request for url 'http://livecdn1.news.cn/ cncen/1465505/1500677777.ts', offset 0, playlist 0 [hls,applehttp @ 000000000057a400] Opening 'http://livecdn1.news.cn/cncen/146550 5/1500677777.ts' for reading [h264 @ 00000000005821a0] Reinit context to 720x576, pix_fmt: yuv420p Input #0, hls,applehttp, from 'http://livecdn1.news.cn/cncen/manifest.m3u8': Duration: N/A, start: 31646.530422, bitrate: N/A Program 0 Metadata: variant_bitrate : 0 Stream #0:0: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, left), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn , 50 tbc Metadata: variant_bitrate : 0 Stream #0:1: Audio: aac (HE-AACv2) ([15][0][0][0] / 0x000F), 44100 Hz, stere o, fltp Metadata: variant_bitrate : 0 Output #0, mp4, to 'file:manifest-manifest.mp4.part': Metadata: encoder : Lavf57.71.100 Stream #0:0: Video: h264 (High), 1 reference frame ([33][0][0][0] / 0x0021), yuv420p(tv, bt709, left), 720x576 (0x0) [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 2 5 tbr, 90k tbn, 90k tbc Metadata: variant_bitrate : 0 Stream #0:1: Audio: aac (HE-AACv2) ([64][0][0][0] / 0x0040), 44100 Hz, stere o, fltp Metadata: variant_bitrate : 0 Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help Automatically inserted bitstream filter 'aac_adtstoasc'; args='' [hls,applehttp @ 000000000057a400] HLS request for url 'http://livecdn1.news.cn/ cncen/1465505/1500677778.ts', offset 0, playlist 0 [hls,applehttp @ 000000000057a400] Opening 'http://livecdn1.news.cn/cncen/146550 5/1500677778.ts' for reading frame= 43 fps=0.0 q=-1.0 size= 139kB time=00:00:01.66 bitrate= 681.3kbits/ frame= 66 fps= 54 q=-1.0 size= 222kB time=00:00:02.58 bitrate= 701.1kbits/ frame= 202 fps=117 q=-1.0 size= 567kB time=00:00:08.02 bitrate= 578.3kbits/ [hls,applehttp @ 000000000057a400] HLS request for url 'http://livecdn1.news.cn/ cncen/1465505/1500677779.ts', offset 0, playlist 0 [hls,applehttp @ 000000000057a400] Opening 'http://livecdn1.news.cn/cncen/146550 5/1500677779.ts' for reading frame= 293 fps=102 q=-1.0 size= 829kB time=00:00:11.66 bitrate= 582.1kbits/ frame= 344 fps=101 q=-1.0 size= 1001kB time=00:00:13.70 bitrate= 598.3kbits/ frame= 527 fps=134 q=-1.0 size= 1643kB time=00:00:21.02 bitrate= 640.2kbits/ s speed=5.36x