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

GnuTLS breaks HTTPS connections with YouTube #13532

Closed
siddht4 opened this issue Jul 1, 2017 · 29 comments
Closed

GnuTLS breaks HTTPS connections with YouTube #13532

siddht4 opened this issue Jul 1, 2017 · 29 comments
Labels

Comments

@siddht4
Copy link

@siddht4 siddht4 commented Jul 1, 2017

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

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

  • [x ] I've verified and I assure that I'm running youtube-dl 2017.06.25

Before submitting an issue make sure you have:

  • [ x] At least skimmed through README and most notably FAQ and BUGS sections
  • [ x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • [ x] 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)
  • [ x] Question
  • Other

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 <your command line>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2017.06.25
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.


Hey there I was just downloading a youtube video but youtube-dl kept giving error code,this is the whole verbose of the problem i faced: youtube-dl https://www.youtube.com/watch?v=Cx1uJUVCLto -f 93 -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://www.youtube.com/watch?v=Cx1uJUVCLto', u'-f', u'93', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.25
[debug] Python version 2.7.12 - Linux-4.10.0-21-generic-x86_64-with-LinuxMint-18.1-serena
[debug] exe versions: avconv 2.8.11-0ubuntu0.16.04.1, avprobe 2.8.11-0ubuntu0.16.04.1, ffmpeg 2.8.11-0ubuntu0.16.04.1, ffprobe 2.8.11-0ubuntu0.16.04.1
[debug] Proxy map: {}
[youtube] Cx1uJUVCLto: Downloading webpage
[youtube] Cx1uJUVCLto: Downloading video info webpage
[youtube] Cx1uJUVCLto: Extracting video information
[youtube] Cx1uJUVCLto: Downloading m3u8 information
[youtube] Cx1uJUVCLto: Downloading MPD manifest
[debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/Cx1uJUVCLto.1/itag/93/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D134/hls_chunk_host/r1---sn-gwpa-gq2l.googlevideo.com/ei/KuxWWdW8NsaNoAP8rK1A/gcr/in/playlist_type/DVR/mm/32/mn/sn-gwpa-gq2l/ms/lv/mv/m/pl/22/dover/6/mt/1498868718/ip/47.15.9.230/ipbits/0/expire/1498890377/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl/signature/96E2DB8417DEF3A420ECC42CF17CCD688B310FDD.696630EB61AFCFCE3968BA1A1FC8397AC11A8668/key/dg_yt0/playlist/index.m3u8'
[download] Destination: Pokemon Sun and Moon Episode 32 English Sub-Cx1uJUVCLto.mp4
[debug] avconv command line: avconv -y -loglevel verbose -headers 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7
Accept-Language: en-us,en;q=0.5
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)
' -i 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/Cx1uJUVCLto.1/itag/93/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D134/hls_chunk_host/r1---sn-gwpa-gq2l.googlevideo.com/ei/KuxWWdW8NsaNoAP8rK1A/gcr/in/playlist_type/DVR/mm/32/mn/sn-gwpa-gq2l/ms/lv/mv/m/pl/22/dover/6/mt/1498868718/ip/47.15.9.230/ipbits/0/expire/1498890377/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl/signature/96E2DB8417DEF3A420ECC42CF17CCD688B310FDD.696630EB61AFCFCE3968BA1A1FC8397AC11A8668/key/dg_yt0/playlist/index.m3u8' -c copy -f mp4 'file:Pokemon Sun and Moon Episode 32 English Sub-Cx1uJUVCLto.mp4.part'
ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-version3 --disable-doc --disable-programs --disable-avdevice --disable-avfilter --disable-avformat --disable-avresample --disable-postproc --disable-swscale --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_aacenc --enable-libvo_amrwbenc
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[tls @ 0x1460ea0] The TLS connection was non-properly terminated.
[tls @ 0x1460ea0] The specified session has been invalidated for some reason.
[hls,applehttp @ 0x145e620] HLS request for url 'https://r1---sn-gwpa-gq2l.googlevideo.com/videoplayback/id/Cx1uJUVCLto.1/itag/93/source/yt_live_broadcast/sq/17510/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-gwpa-gq2l.googlevideo.com&ei=KuxWWdW8NsaNoAP8rK1A&gcr=in&playlist_type=DVR&mm=32&mn=sn-gwpa-gq2l&ms=lv&mv=m&pl=22&mt=1498868718&ip=47.15.9.230&ipbits=0&expire=1498890377&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=96E2DB8417DEF3A420ECC42CF17CCD688B310FDD.696630EB61AFCFCE3968BA1A1FC8397AC11A8668&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=80970;lmt=1498868778268654&govp=clen=57077;lmt=1498868778268654&dur=5.000', offset 0, playlist 0
[h264 @ 0x1bd2ae0] Current profile doesn't provide more RBSP data in PPS, skipping
Input #0, hls,applehttp, from 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/Cx1uJUVCLto.1/itag/93/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D134/hls_chunk_host/r1---sn-gwpa-gq2l.googlevideo.com/ei/KuxWWdW8NsaNoAP8rK1A/gcr/in/playlist_type/DVR/mm/32/mn/sn-gwpa-gq2l/ms/lv/mv/m/pl/22/dover/6/mt/1498868718/ip/47.15.9.230/ipbits/0/expire/1498890377/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl/signature/96E2DB8417DEF3A420ECC42CF17CCD688B310FDD.696630EB61AFCFCE3968BA1A1FC8397AC11A8668/key/dg_yt0/playlist/index.m3u8':
Duration: N/A, start: 87237.665333, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s
Stream #0:1: Video: h264 (Main), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 640x360 (640x368) [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
[mp4 @ 0x1bd52e0] Codec for stream 0 does not use global headers but container format requires global headers
[mp4 @ 0x1bd52e0] Codec for stream 1 does not use global headers but container format requires global headers
Output #0, mp4, to 'file:Pokemon Sun and Moon Episode 32 English Sub-Cx1uJUVCLto.mp4.part':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: h264, 1 reference frame ([33][0][0][0] / 0x0021), yuv420p, 640x360 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 127 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0x1bd52e0] Malformed AAC bitstream detected: use the audio bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg)
av_interleaved_write_frame(): Operation not permitted
No more output streams to write to, finishing.
[mp4 @ 0x1bd52e0] Malformed AAC bitstream detected: use the audio bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg)
frame= 1 fps=0.0 q=-1.0 Lsize= 8kB time=00:00:00.04 bitrate=1621.1kbits/s
video:8kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.307419%
Input file #0 (https://manifest.googlevideo.com/api/manifest/hls_playlist/id/Cx1uJUVCLto.1/itag/93/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D134/hls_chunk_host/r1---sn-gwpa-gq2l.googlevideo.com/ei/KuxWWdW8NsaNoAP8rK1A/gcr/in/playlist_type/DVR/mm/32/mn/sn-gwpa-gq2l/ms/lv/mv/m/pl/22/dover/6/mt/1498868718/ip/47.15.9.230/ipbits/0/expire/1498890377/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl/signature/96E2DB8417DEF3A420ECC42CF17CCD688B310FDD.696630EB61AFCFCE3968BA1A1FC8397AC11A8668/key/dg_yt0/playlist/index.m3u8):
Input stream #0:0 (audio): 2 packets read (605 bytes);
Input stream #0:1 (video): 1 packets read (7846 bytes);
Total: 3 packets (8451 bytes) demuxed
Output file #0 (file:Pokemon Sun and Moon Episode 32 English Sub-Cx1uJUVCLto.mp4.part):
Output stream #0:0 (video): 1 packets muxed (7846 bytes);
Output stream #0:1 (audio): 2 packets muxed (605 bytes);
Total: 3 packets (8451 bytes) muxed
Conversion failed!

ERROR: ffmpeg exited with code 1
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/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
youtube_dl.main()
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 465, in main
_real_main(argv)
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 455, in _real_main
retcode = ydl.download(all_urls)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1927, in download
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 773, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 827, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1570, in process_video_result
self.process_info(new_info)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1834, in process_info
success = dl(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1776, in dl
return fd.download(name, info)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 361, in download
return self.real_download(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/external.py", line 57, in real_download
self.get_basename(), retval))
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 163, in report_error
self.ydl.report_error(*args, **kargs)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 602, in report_error
self.trouble(error_message, tb)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 564, in trouble
tb_data = traceback.format_list(traceback.extract_stack())

@JtokohZohl
Copy link

@JtokohZohl JtokohZohl commented Jul 2, 2017

I confirm, I have a similar error. Appeared 2-3 days ago
** Message: [ffmpeg] tls: The TLS connection was non-properly terminated.

@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 2, 2017

i am not sure which side is breaking youtube-dl,ffmpeg or its an problem with hls

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 2, 2017

Oops https://www.youtube.com/watch?v=Cx1uJUVCLto has been removed. Any other example?

@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 2, 2017

i see the problem is with all live stream and videos, 2nd example is an live stream. youtube-dl https://www.youtube.com/watch?v=f3dvRuzjLHE -f 93 -v>1.tt
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://www.youtube.com/watch?v=f3dvRuzjLHE', u'-f', u'93', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out None, pref UTF-8
[debug] youtube-dl version 2017.07.02
[debug] Python version 2.7.12 - Linux-4.10.0-21-generic-x86_64-with-LinuxMint-18.1-serena
[debug] exe versions: avconv 2.8.11-0ubuntu0.16.04.1, avprobe 2.8.11-0ubuntu0.16.04.1, ffmpeg 2.8.11-0ubuntu0.16.04.1, ffprobe 2.8.11-0ubuntu0.16.04.1
[debug] Proxy map: {}
ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-version3 --disable-doc --disable-programs --disable-avdevice --disable-avfilter --disable-avformat --disable-avresample --disable-postproc --disable-swscale --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_aacenc --enable-libvo_amrwbenc
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[tls @ 0x1fb4ea0] The TLS connection was non-properly terminated.
[tls @ 0x1fb4ea0] The specified session has been invalidated for some reason.
[hls,applehttp @ 0x1fb2620] HLS request for url 'https://r1---sn-gwpa-jj0l.googlevideo.com/videoplayback/id/f3dvRuzjLHE.1/itag/93/source/yt_live_broadcast/sq/1600/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-gwpa-jj0l.googlevideo.com&ei=xjJZWaSROsSHowO5joM4&playlist_type=DVR&gcr=in&mm=32&mn=sn-gwpa-jj0l&ms=lv&mv=m&pl=22&mt=1499017816&ip=47.15.12.217&ipbits=0&expire=1499039525&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,playlist_type,gcr,mm,mn,ms,mv,pl&signature=788957C2A823E45ADAFF48BE129DE1A50871F56A.4582AAC7825AC9369914CB71ED00575120EB479A&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81367;lmt=1499017916787359&govp=clen=94986;lmt=1499017916787359&dur=5.000', offset 0, playlist 0
[h264 @ 0x2ac1700] Current profile doesn't provide more RBSP data in PPS, skipping
Input #0, hls,applehttp, from 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/f3dvRuzjLHE.1/itag/93/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D134/hls_chunk_host/r1---sn-gwpa-jj0l.googlevideo.com/ei/xjJZWaSROsSHowO5joM4/playlist_type/DVR/gcr/in/mm/32/mn/sn-gwpa-jj0l/ms/lv/mv/m/pl/22/dover/6/mt/1499017816/ip/47.15.12.217/ipbits/0/expire/1499039525/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,playlist_type,gcr,mm,mn,ms,mv,pl/signature/788957C2A823E45ADAFF48BE129DE1A50871F56A.4582AAC7825AC9369914CB71ED00575120EB479A/key/dg_yt0/playlist/index.m3u8':
Duration: N/A, start: 7999.959333, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 122 kb/s
Stream #0:1: Video: h264 (Main), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 640x360 (640x368) [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
[mp4 @ 0x2c4dfc0] Codec for stream 0 does not use global headers but container format requires global headers
[mp4 @ 0x2c4dfc0] Codec for stream 1 does not use global headers but container format requires global headers
Output #0, mp4, to 'file:Dota 2 Live _ Penta vs DB _ Bo5 Grand Final _ ProDota Cup EU 2017-f3dvRuzjLHE.mp4.part':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: h264, 1 reference frame ([33][0][0][0] / 0x0021), yuv420p, 640x360 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 122 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0x2c4dfc0] Malformed AAC bitstream detected: use the audio bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg)
av_interleaved_write_frame(): Operation not permitted
No more output streams to write to, finishing.
[mp4 @ 0x2c4dfc0] Malformed AAC bitstream detected: use the audio bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg)
frame= 2 fps=0.0 q=-1.0 Lsize= 19kB time=00:00:00.08 bitrate=1903.3kbits/s
video:19kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (https://manifest.googlevideo.com/api/manifest/hls_playlist/id/f3dvRuzjLHE.1/itag/93/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D134/hls_chunk_host/r1---sn-gwpa-jj0l.googlevideo.com/ei/xjJZWaSROsSHowO5joM4/playlist_type/DVR/gcr/in/mm/32/mn/sn-gwpa-jj0l/ms/lv/mv/m/pl/22/dover/6/mt/1499017816/ip/47.15.12.217/ipbits/0/expire/1499039525/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,playlist_type,gcr,mm,mn,ms,mv,pl/signature/788957C2A823E45ADAFF48BE129DE1A50871F56A.4582AAC7825AC9369914CB71ED00575120EB479A/key/dg_yt0/playlist/index.m3u8):
Input stream #0:0 (audio): 3 packets read (1068 bytes);
Input stream #0:1 (video): 2 packets read (18997 bytes);
Total: 5 packets (20065 bytes) demuxed
Output file #0 (file:Dota 2 Live _ Penta vs DB _ Bo5 Grand Final _ ProDota Cup EU 2017-f3dvRuzjLHE.mp4.part):
Output stream #0:0 (video): 2 packets muxed (18997 bytes);
Output stream #0:1 (audio): 3 packets muxed (1068 bytes);
Total: 5 packets (20065 bytes) muxed
Conversion failed!
ERROR: ffmpeg exited with code 1
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/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
youtube_dl.main()
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 465, in main
_real_main(argv)
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 455, in _real_main
retcode = ydl.download(all_urls)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1927, in download
url, force_generic_extractor=self.params.get('force_generic_extractor', False))
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 773, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 827, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1570, in process_video_result
self.process_info(new_info)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1834, in process_info
success = dl(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1776, in dl
return fd.download(name, info)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 361, in download
return self.real_download(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/external.py", line 57, in real_download
self.get_basename(), retval))
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 163, in report_error
self.ydl.report_error(*args, **kargs)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 602, in report_error
self.trouble(error_message, tb)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 564, in trouble
tb_data = traceback.format_list(traceback.extract_stack())

@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 2, 2017

@yan12125 i even have upgraded youtube-dl i.e 2nd july`17 so the problem still exists in the new version too.As I noticed both times ffmpeg throwed error as "ffmpeg exited with code 1". So do you have an idea what the flag 1 means or does it mean ffmpeg returning 0 is ffmpeg sucessfully transcoded/converted the media format and 1 means its exited with failure i.e exit(1)

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 2, 2017

YouTube says https://www.youtube.com/watch?v=f3dvRuzjLHE is unavailable. Seems this bug occurs on videos that are to be gone?

@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 3, 2017

@yan12125 i surely agree because they are live feeds,once the live feed is over youtube will soon began to merge all the peices/fragment of the file.So it means youtube-dl can`t download live videos.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 3, 2017

Oh thanks I can reproduce it. There are indeed endless "The TLS connection was non-properly terminated." errors from ffmpeg. It doesn't seem to affect the downloaded file as I can watch the .mp4.part file with mpv by feeding --hls-use-mpegts to youtube-dl. Seems another ffmpeg bug.

By the way, avconv doesn't report such errors:

[debug] System config: []
[debug] User config: ['-v', '--add-metadata', '--xattrs', '-o', '~/tmp/%(title)s-%(id)s.%(ext)s']
[debug] Custom config: []
[debug] Command-line args: ['-f', '93', 'https://www.youtube.com/watch?v=E07WI7WxVZY', '--hls-use-mpegts', '--prefer-avconv']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.25
[debug] Git HEAD: 72d256c43
[debug] Python version 3.6.1 - Linux-4.11.5-1-ARCH-x86_64-with-arch
[debug] exe versions: avconv v13_dev0-1201-g61f589e31, avprobe v13_dev0-1201-g61f589e31, ffmpeg 3.3.2, ffprobe 3.3.2
[debug] Proxy map: {}
[youtube] E07WI7WxVZY: Downloading webpage
[youtube] E07WI7WxVZY: Downloading video info webpage
[youtube] E07WI7WxVZY: Extracting video information
[youtube] E07WI7WxVZY: Downloading m3u8 information
[youtube] E07WI7WxVZY: Downloading MPD manifest
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D134/hls_chunk_host/r1---sn-u5oxu-un5e.googlevideo.com/ei/aD5aWZCIFs-g4AK2_YyYCQ/gcr/tw/playlist_type/LIVE/mm/32/mn/sn-u5oxu-un5e/ms/lv/mv/m/pl/22/dover/6/mt/1499086334/ip/140.112.28.103/ipbits/0/expire/1499108040/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl/signature/8B3B0B1D7AF5369D6A644458D86F2CEE5647ED7B.6EA188D6FDFE6ABA589B079104F475E4721F7349/key/dg_yt0/playlist/index.m3u8'
[download] Destination: /home/yen/tmp/EBC 東森新聞 51 頻道 24 小時線上直播 | Taiwan EBC 24h live news| 台湾 EBC ニュース24 時間オンライン放送| 대만 뉴스 생방송|-E07WI7WxVZY.mp4
[debug] avconv command line: avconv -y -loglevel verbose -headers '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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
' -i https://manifest.googlevideo.com/api/manifest/hls_playlist/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D134/hls_chunk_host/r1---sn-u5oxu-un5e.googlevideo.com/ei/aD5aWZCIFs-g4AK2_YyYCQ/gcr/tw/playlist_type/LIVE/mm/32/mn/sn-u5oxu-un5e/ms/lv/mv/m/pl/22/dover/6/mt/1499086334/ip/140.112.28.103/ipbits/0/expire/1499108040/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl/signature/8B3B0B1D7AF5369D6A644458D86F2CEE5647ED7B.6EA188D6FDFE6ABA589B079104F475E4721F7349/key/dg_yt0/playlist/index.m3u8 -c copy -f mpegts 'file:/home/yen/tmp/EBC 東森新聞 51 頻道 24 小時線上直播 | Taiwan EBC 24h live news| 台湾 EBC ニュース24 時間オンライン放送| 대만 뉴스 생방송|-E07WI7WxVZY.mp4.part'
avconv version v13_dev0-1201-g61f589e31, Copyright (c) 2000-2017 the Libav developers
  built on Jul  3 2017 20:48:05 with gcc 7.1.1 (GCC) 20170528
  configuration: --prefix=/usr --enable-openssl --enable-nonfree
  libavutil     56.  2. 0 / 56.  2. 0                                                                                                   
  libavcodec    58.  4. 0 / 58.  4. 0                                                                                                   
  libavformat   58.  0. 0 / 58.  0. 0                                                                                                   
  libavdevice   57.  0. 0 / 57.  0. 0                                                                                                   
  libavfilter    7.  0. 0 /  7.  0. 0                                                                                                   
  libavresample  4.  0. 0 /  4.  0. 0                                                                                                   
  libswscale     5.  0. 0 /  5.  0. 0                                                                                                   
[h264 @ 0x237d9e0] Reinit context to 640x368, pix_fmt: 0                                                                                
[mpegts @ 0x236bfa0] Estimating duration from bitrate, this may be inaccurate                                                           
[h264 @ 0x24e91c0] Reinit context to 640x368, pix_fmt: 0                                                                                
[hls,applehttp @ 0x2349a80] Estimating duration from bitrate, this may be inaccurate                                                    
Input #0, hls,applehttp, from 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D134/hls_chunk_host/r1---sn-u5oxu-un5e.googlevideo.com/ei/aD5aWZCIFs-g4AK2_YyYCQ/gcr/tw/playlist_type/LIVE/mm/32/mn/sn-u5oxu-un5e/ms/lv/mv/m/pl/22/dover/6/mt/1499086334/ip/140.112.28.103/ipbits/0/expire/1499108040/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl/signature/8B3B0B1D7AF5369D6A644458D86F2CEE5647ED7B.6EA188D6FDFE6ABA589B079104F475E4721F7349/key/dg_yt0/playlist/index.m3u8':
  Duration: 00:00:00.15, start: 44510.033000, bitrate: 129 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (LC) [[15][0][0][0] / 0x000F]
      48000 Hz, stereo, fltp, 132 kb/s
    Stream #0:1: Video: h264 (Main) [[27][0][0][0] / 0x001B]
      yuv420p, tv, bt709/bt709/bt709
      640x360 (0x0) [PAR 1:1 DAR 16:9]
      30 fps, 90k tbn
[mpegts @ 0x25d4900] muxrate VBR, pcr every 9000 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'file:/home/yen/tmp/EBC 東森新聞 51 頻道 24 小時線上直播 | Taiwan EBC 24h live news| 台湾 EBC ニュース24 時間オ ンライン放送| 대만 뉴스 생방송|-E07WI7WxVZY.mp4.part':
  Metadata:
    encoder         : Lavf58.0.0
    Stream #0:0: Video: h264 (Main) [[27][0][0][0] / 0x001B]
      yuv420p, tv, bt709/bt709/bt709
      640x360 (0x0) [PAR 1:1 DAR 16:9], q=2-31, PAR 1:1 DAR 16:9
      90k tbn
    Stream #0:1: Audio: aac (LC) [[15][0][0][0] / 0x000F]
      48000 Hz, stereo, fltp, 132 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press ctrl-c to stop encoding
[mpegts @ 0x236bfa0] Continuity check failed for pid 0 expected 1 got 0
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
[mpegts @ 0x236bfa0] Continuity check failed for pid 0 expected 1 got 0                                                                 
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
[mpegts @ 0x236bfa0] Continuity check failed for pid 0 expected 1 got 0                                                                 
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
Continuity check failed for pid 0 expected 1 got 0.96 bitrate= 609.9kbits/s                                                             
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
Continuity check failed for pid 0 expected 1 got 0.97 bitrate= 586.6kbits/s                                                             
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
Continuity check failed for pid 0 expected 1 got 0.97 bitrate= 593.1kbits/s                                                             
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
Continuity check failed for pid 0 expected 1 got 0.97 bitrate= 593.6kbits/s                                                             
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
Continuity check failed for pid 0 expected 1 got 0.97 bitrate= 600.6kbits/s                                                             
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
[mpegts @ 0x236bfa0] Continuity check failed for pid 0 expected 1 got 0                                                                 
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
Continuity check failed for pid 0 expected 1 got 0.97 bitrate= 606.9kbits/s                                                             
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
Continuity check failed for pid 0 expected 1 got 0.97 bitrate= 633.7kbits/s                                                             
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
Continuity check failed for pid 0 expected 1 got 0.97 bitrate= 638.4kbits/s                                                             
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
Continuity check failed for pid 0 expected 1 got 0.95 bitrate= 608.3kbits/s                                                             
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
Continuity check failed for pid 0 expected 1 got 0.97 bitrate= 604.6kbits/s                                                             
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
Continuity check failed for pid 0 expected 1 got 0.00 bitrate= 591.5kbits/s                                                             
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
Continuity check failed for pid 0 expected 1 got 0.97 bitrate= 586.5kbits/s                                                             
[mpegts @ 0x236bfa0] Continuity check failed for pid 4095 expected 1 got 0                                                              
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 3, 2017

Update: the culprit is GnuTLS rather than ffmpeg. If I rebulid ffmpeg with OpenSSL, everything works:

$ youtube-dl --ignore-config E07WI7WxVZY -f 93 --prefer-ffmpeg 
[youtube] E07WI7WxVZY: Downloading webpage
[youtube] E07WI7WxVZY: Downloading video info webpage
[youtube] E07WI7WxVZY: Extracting video information
[youtube] E07WI7WxVZY: Downloading m3u8 information
[youtube] E07WI7WxVZY: Downloading MPD manifest
[download] Destination: EBC 東森新聞 51 頻道 24 小時線上直播 | Taiwan EBC 24h live news| 台湾 EBC ニュース24 時間オンライン放送| 대만 뉴스 생방송|-E07WI7WxVZY.mp4
ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.1.1 (GCC) 20170528
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-openssl --enable-shared --enable-version3
  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
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149469/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81664;lmt=1499089157002711&govp=clen=263622;lmt=1499089157002711&dur=5.001' for reading
Input #0, hls,applehttp, from 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D134/hls_chunk_host/r1---sn-u5oxu-un5e.googlevideo.com/ei/_khaWfyXAdie4AKmkbbgDg/gcr/tw/playlist_type/LIVE/mm/32/mn/sn-u5oxu-un5e/ms/lv/mv/u/pl/22/dover/6/mt/1499089072/ip/140.112.28.103/ipbits/0/expire/1499110749/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl/signature/08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825/key/dg_yt0/playlist/index.m3u8':
  Duration: N/A, start: 47220.032000, bitrate: N/A
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 640x360 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
    Metadata:
      variant_bitrate : 0
Output #0, mp4, to 'file:EBC 東森新聞 51 頻道 24 小時線上直播 | Taiwan EBC 24h live news| 台湾 EBC ニュース24 時間オンライン放送| 대만 뉴스 생방송|-E07WI7WxVZY.mp4.part':
  Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0: Video: h264 (Main) ([33][0][0][0] / 0x0021), yuv420p(tv, bt709), 640x360 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149470/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81730;lmt=1499089160517895&govp=clen=330576;lmt=1499089160517895&dur=4.999' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149471/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=82201;lmt=1499089167875523&govp=clen=287317;lmt=1499089167875523&dur=5.001' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149472/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81907;lmt=1499089171688554&govp=clen=334559;lmt=1499089171688554&dur=4.999' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149473/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81713;lmt=1499089177369290&govp=clen=262470;lmt=1499089177369290&dur=5.001' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149474/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=82009;lmt=1499089181493949&govp=clen=183077;lmt=1499089181493949&dur=5.000' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149475/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81583;lmt=1499089186834455&govp=clen=130905;lmt=1499089186834455&dur=4.967' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149476/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81717;lmt=1499089190738430&govp=clen=272790;lmt=1499089190738430&dur=5.000' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149477/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=82583;lmt=1499089198820532&govp=clen=202953;lmt=1499089198820532&dur=5.032' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149478/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81751;lmt=1499089201117531&govp=clen=339203;lmt=1499089201117531&dur=5.000' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149479/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81352;lmt=1499089205075105&govp=clen=206179;lmt=1499089205075105&dur=4.968' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149480/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=82569;lmt=1499089210099960&govp=clen=166001;lmt=1499089210099960&dur=5.032' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149481/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81563;lmt=1499089215072852&govp=clen=202557;lmt=1499089215072852&dur=4.968' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149482/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=82401;lmt=1499089220713167&govp=clen=149104;lmt=1499089220713167&dur=5.032' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149483/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81953;lmt=1499089224393183&govp=clen=118577;lmt=1499089224393183&dur=5.000' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149484/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81851;lmt=1499089231041025&govp=clen=361310;lmt=1499089231041025&dur=5.001' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149485/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=82136;lmt=1499089236693455&govp=clen=403677;lmt=1499089236693455&dur=4.999' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149486/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81121;lmt=1499089243116992&govp=clen=390043;lmt=1499089243116992&dur=4.968' for reading
[hls,applehttp @ 0xc1e8c0] Opening 'https://r1---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/E07WI7WxVZY.0/itag/93/source/yt_live_broadcast/sq/149487/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r1---sn-u5oxu-un5e.googlevideo.com&ei=_khaWfyXAdie4AKmkbbgDg&gcr=tw&playlist_type=LIVE&mm=32&mn=sn-u5oxu-un5e&ms=lv&mv=u&pl=22&mt=1499089072&ip=140.112.28.103&ipbits=0&expire=1499110749&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,gcr,playlist_type,mm,mn,ms,mv,pl&signature=08EE5D96FDF8D63A7306FC655B6D6DC6F31BF9BF.25B5F85E1DA51CC58B57FB2C5E2DFDB878AE1825&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81797;lmt=1499089246322905&govp=clen=377797;lmt=1499089246322905&dur=5.000' for reading
@yan12125 yan12125 changed the title cant download live videos from youtube and ffmpeg shows error GnuTLS breaks HTTPS connections with YouTube Jul 3, 2017
@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 3, 2017

yes got it,but still did not understand lot of things though as "ffmpeg -protocols" dumped these protocols installed "Supported file protocols:
Input:
async
bluray
cache
concat
crypto
data
file
ftp
gopher
hls
http
httpproxy
https
mmsh
mmst
pipe
rtp
sctp
srtp
subfile
tcp
tls
udp
udplite
unix
rtmp
rtmpe
rtmps
rtmpt
rtmpte
sftp
Output:
crypto
file
ftp
gopher
http
httpproxy
https
icecast
md5
pipe
rtp
sctp
srtp
tcp
tls
udp
udplite
unix
rtmp
rtmpe
rtmps
rtmpt
rtmpte
sftp
" which has https,dont know wheter they are using a Proprietary ssl library or open ss.So removed the existing ffmpeg and tried two different methods.1.building from source itself.Steps :- 1. download source of ffmpeg from url "http://ffmpeg.org/releases/ffmpeg-3.3.2.tar.bz2" or cloning from https://git.ffmpeg.org/gitweb/ffmpeg.git. 2. cd to the directory.3. type the command "./configure --enable-gnutls".4. "make" the installer by the comamnd "make" or "./make" .5.last step "make install" or "install" it. Method 2: 1. download or install homebrew package.2. install it by the command "brew install ffmpeg --with-openssl" as documented here. Homebrew/legacy-homebrew#21107

@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 3, 2017

@yan12125 I have not tested it against live feeds as I have exhausted by daily internet quota.So would try after 4 hours when the next day quota is started

@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 3, 2017

@yan12125 i simply added gnutls-bin i.e "sudo apt install gnutls-bin" and found it to be working fine youtube-dl https://www.youtube.com/watch?v=PmCkBPm7ICk
[youtube] PmCkBPm7ICk: Downloading webpage
[youtube] PmCkBPm7ICk: Downloading video info webpage
[youtube] PmCkBPm7ICk: Extracting video information
[youtube] PmCkBPm7ICk: Downloading m3u8 information
[youtube] PmCkBPm7ICk: Downloading MPD manifest
[download] Destination: World Famous Horseshoe Curve Cam - Virtual Railfan LIVE-PmCkBPm7ICk.mp4
ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-version3 --disable-doc --disable-programs --disable-avdevice --disable-avfilter --disable-avformat --disable-avresample --disable-postproc --disable-swscale --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_aacenc --enable-libvo_amrwbenc
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[tls @ 0xa2ce60] The TLS connection was non-properly terminated.
[tls @ 0xa2ce60] The specified session has been invalidated for some reason.
Input #0, hls,applehttp, from 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/PmCkBPm7ICk.1/itag/96/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D137/hls_chunk_host/r3---sn-gwpa-jj0z.googlevideo.com/ei/9pRaWbDSMsq-owOJ8IX4Ag/playlist_type/DVR/gcr/in/mm/32/mn/sn-gwpa-jj0z/ms/lv/mv/m/pl/22/dover/6/mt/1499108536/ip/47.15.7.130/ipbits/0/expire/1499130194/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,playlist_type,gcr,mm,mn,ms,mv,pl/signature/704FECD6193526B46608D98843378A4290D09907.3C82915BCB5A2762D61372712D4C5433CAA65D4E/key/dg_yt0/playlist/index.m3u8':
Duration: N/A, start: 89073.554444, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 126 kb/s
Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
[mp4 @ 0x11a5b80] Codec for stream 0 does not use global headers but container format requires global headers
[mp4 @ 0x11a5b80] Codec for stream 1 does not use global headers but container format requires global headers
Output #0, mp4, to 'file:World Famous Horseshoe Curve Cam - Virtual Railfan LIVE-PmCkBPm7ICk.mp4.part':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 126 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[tls @ 0x11a6e20] The TLS connection was non-properly terminated.te=2067.1kbits/s
[tls @ 0x11a6e20] The specified session has been invalidated for some reason.
^Came= 286 fps=4.3 q=-1.0 size= 2515kB time=00:00:09.55 bitrate=2155.7kbits/s

@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 3, 2017

@yan12125 i think to close the issue as its geeting external but I am unsure wheter to modify the ffmpeg.py file to have --enable-gnutls as an parameter i.e https://github.com/rg3/youtube-dl/blob/master/youtube_dl/postprocessor/ffmpeg.py

@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 3, 2017

quite frankly i have no idea about parameter in ffmpeg

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 5, 2017

FYI: --enable-openssl is used when compiling ffmpeg. Change the step 3 of method 1 in #13532 (comment) from:

./configure --enable-gnutls

to

./configure --enable-nonfree --enable-openssl
@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 5, 2017

needed a way to fix ffmpeg.py residing in youtube-dl,less worried with ffmpeg as both --enable-gnutls and --enable-openssl failed due to system library issue which i just fixed with an additional package

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 5, 2017

Do you mean those errors?

[tls @ 0x11a6e20] The TLS connection was non-properly terminated.te=2067.1kbits/s
[tls @ 0x11a6e20] The specified session has been invalidated for some reason.

I don't think modifying ffmpeg.py can fix it. You'll need to build a custom ffmpeg.

@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 6, 2017

@yan12125 i kept on digging in ffmpeg.py to try to understand how the internal call works,well turns out it can be expliclity be forced.PostProcessor can handle it.Just after line 66 an custom error flag can be given inside class FFmpegVideoConvertorPP(FFmpegPostProcessor), and let the process handle it via cmd at line 192.Just not able to figure out which line generates verbose line 162 or 197.So that the flag value can be put here.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 6, 2017

@siddht1 Could you paste relevant code lines? I'm not sure whether I have the same copy of ffmpeg.py as you. I always use git-master, which is newer than the latest stable release.

@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 7, 2017

@yan12125 my copy is the same as the current release version 2017.07.02 ,still i am copy pasting the code and providing a general idea of my approach
line 62 to line 72 are the main part here,declaration will take place in line line,
flag=-1 # -1 means not invoked,0 means return sucessfully,1 means error occured,2 is explicit flag set openssl.

if self._downloader:
flag=1 #(new introduced line)
self._downloader.report_warning(warning)

  1. cmd declaration as a list is at line 186,
    files_cmd = [] #this is line 186
    , line 192 is the main part i am talking about

cmd = ([encodeFilename(self.executable, True), encodeArgument('-y')] + #this is line 192

clearly i can see this would be using subprocess or process so based on flag value it will either set it to 1 i.e returned with error,2 for handling the gnutls.

example 1:
import os
flag=-1
_msg=""
a=os.system('ffmpeg -a -b') # invoking ffmpeg with required parameter and setting our flag
#based on a value the flag is set
if flag == 0:
_msg="ffmpeg executed sucessfully"
elif flag == 1:
_msg="ffmpeg returned error"
elif flag ==2:
_msg="ffmpeg explicit condition satisified"
else :
_msg="ffmpeg either not invoked or not found"
os.system('notify-send '+_msg)

example 2:
import subprocess
def ffmpeg_flag():
command = "ffmpeg --gnutls"#any command
get_flag = subprocess.Popen(["/bin/bash", "-c", command], stdout=subprocess.PIPE)
return get_flag.communicate()[0].decode("utf-8").replace("\n", "")
def action_flag():
while True:
flag=init(ffmpeg_flag())
_msg='"notify-send "'
#based on a value the flag is set
if flag == 0:
_msg+="ffmpeg executed sucessfully"
elif flag == 1:
_msg+="ffmpeg returned error"
elif flag ==2:
_msg+="ffmpeg explicit condition satisified"
else :
_msg+="ffmpeg either not invoked or not found"
subprocess.Popen(["/bin/bash", "-c", _msg])

action_flag()

@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 7, 2017

@yan12125 i think you got an idea what i m trying to do

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 7, 2017

Seems you want to specify --gnutls when youtube-dl runs ffmpeg? That won't work as openssl/gnutls is determined during compile time, not run time.

By the way, if you want to feed additional flags to ffmpeg, just use --external-downloader-args. For example:

youtube-dl -v E07WI7WxVZY --external-downloader-args "-foo"
@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 7, 2017

@yan12125 how does configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv were invoked does ffmpeg.py does that or ffmpeg the main program itself.
@JtokohZohl did your work by adding the external library either by compiling ffmpeg or adding the packages

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 7, 2017

configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 ... are flags used to compile ffmpeg. In this case the ffmpeg team at Ubuntu determine which flags are used.

@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 7, 2017

@yan12125 thanks,as this issue is now clearly not handled by ffmpeg.py,closing the issue,can you just point out where does these verbose come from,

@siddht4 siddht4 closed this Jul 7, 2017
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 7, 2017

Did you mean "The TLS connection was non-properly terminated" messages? Those are from GnuTLS. Also, it affects downloading performance besides extra verbosity.

@siddht4
Copy link
Author

@siddht4 siddht4 commented Jul 7, 2017

@yan12125 yes those message,ffmpeg.py must have that

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 7, 2017

Use the fallback operator /: 'format': '720p/best'

In the future, please open a new issue or ask on IRC for non-issues. Please don't leave unrelated contents on issues.

@siddht4 siddht4 mentioned this issue Jul 10, 2017
4 of 8 tasks complete
hashn0n added a commit to hashn0n/gentoo-x-local that referenced this issue Dec 13, 2018
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.