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.31k stars 9.95k forks source link

Some M3U8 Downloads frozen indefinitely #12740

Open Sna54cas opened 7 years ago

Sna54cas 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.04.14. 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?


The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to 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:

Add -v flag to your command line you run youtube-dl with, 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 -v http://1253467418.vod2.myqcloud.com/2e2c2ce8vodgzp1253467418/b8840dca9031868222906143597/playlist.m3u8
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'http://1253467418.vod2.myqcloud.com/2e2c2ce8vodgzp1253467418/b8840dca9031868222906143597/playlist.m3u8']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2017.04.14
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-85091-g23ae3cc, ffprobe N-85091-g23ae3cc, rtmpdump 2.4
[debug] Proxy map: {}
[generic] playlist: Requesting header
WARNING: Falling back on generic information extractor.
[generic] playlist: Downloading webpage
[generic] playlist: Downloading m3u8 information
[debug] Invoking downloader on 'http://1253467418.vod2.myqcloud.com/2e2c2ce8vodgzp1253467418/b8840dca9031868222906143597/playlist.m3u8'
[download] Destination: playlist-playlist.mp4
[debug] ffmpeg command line: ffmpeg -y -headers '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:10.0) Gecko/20150101 Firefox/47.0 (Chrome)
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Language: en-us,en;q=0.5
' -i http://1253467418.vod2.myqcloud.com/2e2c2ce8vodgzp1253467418/b8840dca9031868222906143597/playlist.m3u8 -c copy -f mp4 -bsf:a aac_adtstoasc file:playlist-playlist.mp4.part
ffmpeg version N-85091-g23ae3cc Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 6.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-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-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --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. 57.100 / 55. 57.100
  libavcodec     57. 88.100 / 57. 88.100
  libavformat    57. 70.100 / 57. 70.100
  libavdevice    57.  5.100 / 57.  5.100
  libavfilter     6. 81.100 /  6. 81.100
  libswscale      4.  5.100 /  4.  5.100
  libswresample   2.  6.100 /  2.  6.100
  libpostproc    54.  4.100 / 54.  4.100

Description of your issue, suggested solution and other information

The download in this case don't start and stay indefinitely waiting. Was hoping for a successful download or an error after some minutes trying to download. In some other links from same domain i have problems like this, but in most cases the download starts and get stuck at some point never returning an error. When i try to download the m3u8 itself it works fine, so as the ts linked inside. I can use HLS live player to watch then too. Another example on this URL: http://1253467418.vod2.myqcloud.com/2e2c2ce8vodgzp1253467418/c681f12a9031868222906741782/playlist.m3u8

decrypt3723 commented 2 years ago

I would like to give suggestion for you, since I experienced same situation and I solved it. In my case, ffmpeg's hls downloader was all that made trouble. Using youtube-dl's native hls downloader just solved the problem. To force using the native hls downloader, add --hls-prefer-native option.