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

The TLS connection was non-properly terminated prevents working video #17212

Closed
ejonesss opened this issue Aug 11, 2018 · 4 comments
Closed

The TLS connection was non-properly terminated prevents working video #17212

ejonesss opened this issue Aug 11, 2018 · 4 comments
Labels

Comments

@ejonesss
Copy link

@ejonesss ejonesss commented Aug 11, 2018

you really make reporting complicated

yes i do have everything updated i am using linux on raspberry pi and i am using the libav tools i could not install ffmpeg alone.

i filled out the form the best that i could but if i missed anything please let me know

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 this: [x])
  • Use the Preview tab to see what your issue will actually look like

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

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

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 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 ```):

pi@raspberrypi:~ $ sudo /usr/local/bin/youtube-dl -v https://www.youtube.com/watch?v=ytJb-xDl69U[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=ytJb-xDl69U']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.08.04
[debug] Python version 2.7.13 (CPython) - Linux-4.14.52-v7+-armv7l-with-debian-9.4
[debug] exe versions: avconv 3.2.10-1, avprobe 3.2.10-1, ffmpeg 3.2.10-1, ffprobe 3.2.10-1
[debug] Proxy map: {}
[youtube] ytJb-xDl69U: Downloading webpage
[youtube] ytJb-xDl69U: Downloading video info webpage
[youtube] ytJb-xDl69U: Downloading m3u8 information
[youtube] ytJb-xDl69U: Downloading MPD manifest
[youtube] ytJb-xDl69U: Downloading MPD manifest
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/ytJb-xDl69U.0/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-2xouxaxq5u5-5cxl.googlevideo.com/ei/OgBvW-vqLob_8gT3pb-4CA/playlist_type/DVR/gcr/us/initcwndbps/12740/mm/32/mn/sn-2xouxaxq5u5-5cxl/ms/lv/mv/m/pl/22/dover/10/keepalive/yes/mt/1534001175/disable_polymer/true/ip/75.97.176.9/ipbits/0/expire/1534022810/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,playlist_type,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/8C82E31DB1ABF8039AC59402F1AEFE5CBC5F209F.7FFD3299096872AA718D6EB8471DAF714B30EF0D/key/dg_yt0/playlist/index.m3u8'
[download] Destination: lofi hip hop radio - beats to relax_study to-ytJb-xDl69U.mp4
[debug] ffmpeg command line: ffmpeg -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:59.0) Gecko/20100101 Firefox/59.0 (Chrome)
' -i 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/ytJb-xDl69U.0/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-2xouxaxq5u5-5cxl.googlevideo.com/ei/OgBvW-vqLob_8gT3pb-4CA/playlist_type/DVR/gcr/us/initcwndbps/12740/mm/32/mn/sn-2xouxaxq5u5-5cxl/ms/lv/mv/m/pl/22/dover/10/keepalive/yes/mt/1534001175/disable_polymer/true/ip/75.97.176.9/ipbits/0/expire/1534022810/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,playlist_type,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/8C82E31DB1ABF8039AC59402F1AEFE5CBC5F209F.7FFD3299096872AA718D6EB8471DAF714B30EF0D/key/dg_yt0/playlist/index.m3u8' -c copy -f mp4 'file:lofi hip hop radio - beats to relax_study to-ytJb-xDl69U.mp4.part'
ffmpeg version 3.2.10-1~deb9u1+rpt2 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
  configuration: --prefix=/usr --extra-version='1~deb9u1+rpt2' --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --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-libzmq --enable-libzvbi --enable-omx-rpi --enable-mmal --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --arch=armhf --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[tls @ 0x23a4e30] The TLS connection was non-properly terminated.
[tls @ 0x23a4e30] The specified session has been invalidated for some reason.
[hls,applehttp @ 0x23a2720] HLS request for url 'https://r3---sn-2xouxaxq5u5-5cxl.googlevideo.com/videoplayback/id/ytJb-xDl69U.0/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-2xouxaxq5u5-5cxl.googlevideo.com/ei/OgBvW-vqLob_8gT3pb-4CA/playlist_type/DVR/gcr/us/initcwndbps/12740/mm/32/mn/sn-2xouxaxq5u5-5cxl/ms/lv/mv/m/pl/22/keepalive/yes/mt/1534001175/disable_polymer/true/ip/75.97.176.9/ipbits/0/expire/1534022810/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,playlist_type,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/8C82E31DB1ABF8039AC59402F1AEFE5CBC5F209F.7FFD3299096872AA718D6EB8471DAF714B30EF0D/key/dg_yt0/playlist/index.m3u8/sq/148888/goap/clen%3D48972%3Blmt%3D1533971163679901/govp/clen%3D523708%3Blmt%3D1533971163679908/dur/2.000/file/seg.ts', offset 0, playlist 0
[hls,applehttp @ 0x23a2720] Opening 'https://r3---sn-2xouxaxq5u5-5cxl.googlevideo.com/videoplayback/id/ytJb-xDl69U.0/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-2xouxaxq5u5-5cxl.googlevideo.com/ei/OgBvW-vqLob_8gT3pb-4CA/playlist_type/DVR/gcr/us/initcwndbps/12740/mm/32/mn/sn-2xouxaxq5u5-5cxl/ms/lv/mv/m/pl/22/keepalive/yes/mt/1534001175/disable_polymer/true/ip/75.97.176.9/ipbits/0/expire/1534022810/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,playlist_type,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/8C82E31DB1ABF8039AC59402F1AEFE5CBC5F209F.7FFD3299096872AA718D6EB8471DAF714B30EF0D/key/dg_yt0/playlist/index.m3u8/sq/148888/goap/clen%3D48972%3Blmt%3D1533971163679901/govp/clen%3D523708%3Blmt%3D1533971163679908/dur/2.000/file/seg.ts' for reading
[h264 @ 0x2a1d4d0] Reinit context to 1920x1088, pix_fmt: yuv420p
Input #0, hls,applehttp, from 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/ytJb-xDl69U.0/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-2xouxaxq5u5-5cxl.googlevideo.com/ei/OgBvW-vqLob_8gT3pb-4CA/playlist_type/DVR/gcr/us/initcwndbps/12740/mm/32/mn/sn-2xouxaxq5u5-5cxl/ms/lv/mv/m/pl/22/dover/10/keepalive/yes/mt/1534001175/disable_polymer/true/ip/75.97.176.9/ipbits/0/expire/1534022810/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,playlist_type,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/8C82E31DB1ABF8039AC59402F1AEFE5CBC5F209F.7FFD3299096872AA718D6EB8471DAF714B30EF0D/key/dg_yt0/playlist/index.m3u8':
  Duration: N/A, start: 11444.889600, 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), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
    Metadata:
      variant_bitrate : 0
Output #0, mp4, to 'file:lofi hip hop radio - beats to relax_study to-ytJb-xDl69U.mp4.part':
  Metadata:
    encoder         : Lavf57.56.101
    Stream #0:0: Video: h264 (Main), 1 reference frame ([33][0][0][0] / 0x0021), yuv420p(left), 1920x1080 (0x0) [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
    Metadata:
      variant_bitrate : 0
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
Automatically inserted bitstream filter 'aac_adtstoasc'; args=''
[tls @ 0x2a0a0f0] The TLS connection was non-properly terminated.
[tls @ 0x2a46a90] The TLS connection was non-properly terminated.
[tls @ 0x2a46a90] The specified session has been invalidated for some reason.
[hls,applehttp @ 0x23a2720] HLS request for url 'https://r3---sn-2xouxaxq5u5-5cxl.googlevideo.com/videoplayback/id/ytJb-xDl69U.0/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-2xouxaxq5u5-5cxl.googlevideo.com/ei/OgBvW-vqLob_8gT3pb-4CA/playlist_type/DVR/gcr/us/initcwndbps/12740/mm/32/mn/sn-2xouxaxq5u5-5cxl/ms/lv/mv/m/pl/22/keepalive/yes/mt/1534001175/disable_polymer/true/ip/75.97.176.9/ipbits/0/expire/1534022810/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,playlist_type,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/8C82E31DB1ABF8039AC59402F1AEFE5CBC5F209F.7FFD3299096872AA718D6EB8471DAF714B30EF0D/key/dg_yt0/playlist/index.m3u8/sq/148889/goap/clen%3D48529%3Blmt%3D1533971163679909/govp/clen%3D485221%3Blmt%3D1533971163679916/dur/2.000/file/seg.ts', offset 0, playlist 0
[hls,applehttp @ 0x23a2720] Opening 'https://r3---sn-2xouxaxq5u5-5cxl.googlevideo.com/videoplayback/id/ytJb-xDl69U.0/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-2xouxaxq5u5-5cxl.googlevideo.com/ei/OgBvW-vqLob_8gT3pb-4CA/playlist_type/DVR/gcr/us/initcwndbps/12740/mm/32/mn/sn-2xouxaxq5u5-5cxl/ms/lv/mv/m/pl/22/keepalive/yes/mt/1534001175/disable_polymer/true/ip/75.97.176.9/ipbits/0/expire/1534022810/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,playlist_type,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/8C82E31DB1ABF8039AC59402F1AEFE5CBC5F209F.7FFD3299096872AA718D6EB8471DAF714B30EF0D/key/dg_yt0/playlist/index.m3u8/sq/148889/goap/clen%3D48529%3Blmt%3D1533971163679909/govp/clen%3D485221%3Blmt%3D1533971163679916/dur/2.000/file/seg.ts' for reading
frame=   59 fps=1.9 q=-1.0 size=     530kB time=00:00:02.02 bitrate=2141.9kbits/^C[tls @ 0x2eacc30] The TLS connection was non-properly terminated.
    Last message repeated 1 times
[tls @ 0x2eacc30] The specified session has been invalidated for some reason.
[hls,applehttp @ 0x23a2720] HLS request for url 'https://r3---sn-2xouxaxq5u5-5cxl.googlevideo.com/videoplayback/id/ytJb-xDl69U.0/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-2xouxaxq5u5-5cxl.googlevideo.com/ei/OgBvW-vqLob_8gT3pb-4CA/playlist_type/DVR/gcr/us/initcwndbps/12740/mm/32/mn/sn-2xouxaxq5u5-5cxl/ms/lv/mv/m/pl/22/keepalive/yes/mt/1534001175/disable_polymer/true/ip/75.97.176.9/ipbits/0/expire/1534022810/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,playlist_type,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/8C82E31DB1ABF8039AC59402F1AEFE5CBC5F209F.7FFD3299096872AA718D6EB8471DAF714B30EF0D/key/dg_yt0/playlist/index.m3u8/sq/148890/goap/clen%3D48690%3Blmt%3D1533971163679917/govp/clen%3D509649%3Blmt%3D1533971163679924/dur/2.000/file/seg.ts', offset 0, playlist 0
[hls,applehttp @ 0x23a2720] Opening 'https://r3---sn-2xouxaxq5u5-5cxl.googlevideo.com/videoplayback/id/ytJb-xDl69U.0/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-2xouxaxq5u5-5cxl.googlevideo.com/ei/OgBvW-vqLob_8gT3pb-4CA/playlist_type/DVR/gcr/us/initcwndbps/12740/mm/32/mn/sn-2xouxaxq5u5-5cxl/ms/lv/mv/m/pl/22/keepalive/yes/mt/1534001175/disable_polymer/true/ip/75.97.176.9/ipbits/0/expire/1534022810/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,playlist_type,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/8C82E31DB1ABF8039AC59402F1AEFE5CBC5F209F.7FFD3299096872AA718D6EB8471DAF714B30EF0D/key/dg_yt0/playlist/index.m3u8/sq/148890/goap/clen%3D48690%3Blmt%3D1533971163679917/govp/clen%3D509649%3Blmt%3D1533971163679924/dur/2.000/file/seg.ts' for reading
frame=  119 fps=1.9 q=-1.0 Lsize=    1030kB time=00:00:03.98 bitrate=2115.3kbits/s speed=0.0639x    
video:964kB audio:67kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (https://manifest.googlevideo.com/api/manifest/hls_playlist/id/ytJb-xDl69U.0/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-2xouxaxq5u5-5cxl.googlevideo.com/ei/OgBvW-vqLob_8gT3pb-4CA/playlist_type/DVR/gcr/us/initcwndbps/12740/mm/32/mn/sn-2xouxaxq5u5-5cxl/ms/lv/mv/m/pl/22/dover/10/keepalive/yes/mt/1534001175/disable_polymer/true/ip/75.97.176.9/ipbits/0/expire/1534022810/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,ei,playlist_type,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/8C82E31DB1ABF8039AC59402F1AEFE5CBC5F209F.7FFD3299096872AA718D6EB8471DAF714B30EF0D/key/dg_yt0/playlist/index.m3u8):
  Input stream #0:0 (audio): 188 packets read (68486 bytes); 
  Input stream #0:1 (video): 119 packets read (987112 bytes); 
  Total: 307 packets (1055598 bytes) demuxed
Output file #0 (file:lofi hip hop radio - beats to relax_study to-ytJb-xDl69U.mp4.part):
  Output stream #0:0 (video): 119 packets muxed (987112 bytes); 
  Output stream #0:1 (audio): 188 packets muxed (68486 bytes); 
  Total: 307 packets (1055598 bytes) muxed
Exiting normally, received signal 2.
[ffmpeg] Interrupted by user
[ffmpeg] Downloaded 1054832 bytes
[download] 100% of 1.01MiB in 01:08
pi@raspberrypi:~ $ 




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.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 11, 2018

ffmpeg issue. Update to the latest.

@dstftw dstftw closed this Aug 11, 2018
@ejonesss
Copy link
Author

@ejonesss ejonesss commented Aug 11, 2018

@ejonesss
Copy link
Author

@ejonesss ejonesss commented Aug 11, 2018

@ejonesss
Copy link
Author

@ejonesss ejonesss commented Aug 11, 2018

update: i gave up trying to install this on linux on raspberry pi so i tried my mac running osx 10.12 with brew and it works

brew (home brew) and youtube-dl installed ok and i used brew install ffmpeg and now i can capture live streams.

i guess debian repository does not carry the latest ffmpg however brew does

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.