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

[youtube] live streams broken #15247

Closed
kickerofelves opened this issue Jan 13, 2018 · 6 comments
Closed

[youtube] live streams broken #15247

kickerofelves opened this issue Jan 13, 2018 · 6 comments
Labels

Comments

@kickerofelves
Copy link

@kickerofelves kickerofelves commented Jan 13, 2018

  • [x ] I've verified and I assure that I'm running youtube-dl 2018.01.14
  • [x ] At least skimmed through the README, most notably the 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)
  • Question
  • Other

youtube-dl -v --hls-prefer-native --hls-use-mpegts --no-resize-buffer --buffer-size 2M -f93 --ignore-config -o - https://www.youtube.com/watch?v=wwMDvPCGeE0 |mpv -
Playing: -
[file] Reading from stdin...
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--hls-prefer-native', u'--hls-use-mpegts', u'--no-resize-buffer', u'--buffer-size', u'2M', u'-f93', u'--ignore-config', u'-o', u'-', u'https://www.youtube.com/watch?v=wwMDvPCGeE0']
[debug] Encodings: locale UTF-8, fs UTF-8, out None, pref UTF-8
[debug] youtube-dl version 2018.01.14
[debug] Python version 2.7.14+ (CPython) - Linux-4.13.0-1-amd64-x86_64-with-debian-buster-sid
[debug] exe versions: ffmpeg 3.4.1-1, ffprobe 3.4.1-1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] wwMDvPCGeE0: Downloading webpage
[youtube] wwMDvPCGeE0: Downloading video info webpage
[youtube] wwMDvPCGeE0: Extracting video information
[youtube] wwMDvPCGeE0: Downloading m3u8 information
[youtube] wwMDvPCGeE0: Downloading MPD manifest
[debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/wwMDvPCGeE0.2/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/r3---sn-vgqsknee.googlevideo.com/playlist_type/DVR/gcr/us/ei/KGlaWpv7K5e2D6bVgagJ/mm/32/mn/sn-vgqsknee/ms/lv/mv/u/pl/19/dover/8/keepalive/yes/mt/1515874051/ip/75.34.160.2/ipbits/0/expire/1515896200/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,ei,mm,mn,ms,mv,pl/signature/65EA0F0E63F34A94BF08E6704B1A5C64F2E7040D.459F7F3F3C40A6037B450FE03619E0CCBC450856/key/dg_yt0/playlist/index.m3u8'
[download] Destination: -
[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:10.0) Gecko/20150101 Firefox/47.0 (Chrome)
' -i 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/wwMDvPCGeE0.2/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/r3---sn-vgqsknee.googlevideo.com/playlist_type/DVR/gcr/us/ei/KGlaWpv7K5e2D6bVgagJ/mm/32/mn/sn-vgqsknee/ms/lv/mv/u/pl/19/dover/8/keepalive/yes/mt/1515874051/ip/75.34.160.2/ipbits/0/expire/1515896200/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,ei,mm,mn,ms,mv,pl/signature/65EA0F0E63F34A94BF08E6704B1A5C64F2E7040D.459F7F3F3C40A6037B450FE03619E0CCBC450856/key/dg_yt0/playlist/index.m3u8' -c copy -f mpegts -
ffmpeg version 3.4.1-1+b1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7 (Debian 7.2.0-18)
  configuration: --prefix=/usr --extra-version=1+b1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --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-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --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-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
[hls,applehttp @ 0x55d5abf98600] HLS request for url 'https://r3---sn-vgqsknee.googlevideo.com/videoplayback/id/wwMDvPCGeE0.2/itag/93/source/yt_live_broadcast/sq/3052322/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r3---sn-vgqsknee.googlevideo.com&playlist_type=DVR&gcr=us&ei=KGlaWpv7K5e2D6bVgagJ&mm=32&mn=sn-vgqsknee&ms=lv&mv=u&pl=19&keepalive=yes&mt=1515874051&ip=75.34.160.2&ipbits=0&expire=1515896200&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,ei,mm,mn,ms,mv,pl&signature=65EA0F0E63F34A94BF08E6704B1A5C64F2E7040D.459F7F3F3C40A6037B450FE03619E0CCBC450856&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=82148;lmt=1515874612405645&govp=clen=207852;lmt=1515874612405645&dur=5.005', offset 0, playlist 0                                                                                                                                                                                                                            
[hls,applehttp @ 0x55d5abf98600] Opening 'https://r3---sn-vgqsknee.googlevideo.com/videoplayback/id/wwMDvPCGeE0.2/itag/93/source/yt_live_broadcast/sq/3052322/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r3---sn-vgqsknee.googlevideo.com&playlist_type=DVR&gcr=us&ei=KGlaWpv7K5e2D6bVgagJ&mm=32&mn=sn-vgqsknee&ms=lv&mv=u&pl=19&keepalive=yes&mt=1515874051&ip=75.34.160.2&ipbits=0&expire=1515896200&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,ei,mm,mn,ms,mv,pl&signature=65EA0F0E63F34A94BF08E6704B1A5C64F2E7040D.459F7F3F3C40A6037B450FE03619E0CCBC450856&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=82148;lmt=1515874612405645&govp=clen=207852;lmt=1515874612405645&dur=5.005' for reading
[h264 @ 0x55d5ac618080] Reinit context to 640x368, pix_fmt: yuv420p
Input #0, hls,applehttp, from 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/wwMDvPCGeE0.2/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/r3---sn-vgqsknee.googlevideo.com/playlist_type/DVR/gcr/us/ei/KGlaWpv7K5e2D6bVgagJ/mm/32/mn/sn-vgqsknee/ms/lv/mv/u/pl/19/dover/8/keepalive/yes/mt/1515874051/ip/75.34.160.2/ipbits/0/expire/1515896200/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,ei,mm,mn,ms,mv,pl/signature/65EA0F0E63F34A94BF08E6704B1A5C64F2E7040D.459F7F3F3C40A6037B450FE03619E0CCBC450856/key/dg_yt0/playlist/index.m3u8':
  Duration: N/A, start: 85174.388911, 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(tv, bt709, left), 640x360 (640x368) [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
    Metadata:
      variant_bitrate : 0
[mpegts @ 0x55d5ac645aa0] muxrate VBR, pcr every 9000 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'pipe:':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: h264 (Main), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, left), 640x360 (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) ([15][0][0][0] / 0x000F), 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
 (+) Video --vid=1 (h264 640x360 30.000fps)
 (+) Audio --aid=1 (aac 2ch 48000Hz)
AO: [pulse] 48000Hz stereo 2ch float
VO: [opengl] 640x360 yuv420p
[hls,applehttp @ 0x55d5abf98600] HLS request for url 'https://r3---sn-vgqsknee.googlevideo.com/videoplayback/id/wwMDvPCGeE0.2/itag/93/source/yt_live_broadcast/sq/3052323/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=134&hls_chunk_host=r3---sn-vgqsknee.googlevideo.com&playlist_type=DVR&gcr=us&ei=KGlaWpv7K5e2D6bVgagJ&mm=32&mn=sn-vgqsknee&ms=lv&mv=u&pl=19&keepalive=yes&mt=1515874051&ip=75.34.160.2&ipbits=0&expire=1515896200&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,ei,mm,mn,ms,mv,pl&signature=65EA0F0E63F34A94BF08E6704B1A5C64F2E7040D.459F7F3F3C40A6037B450FE03619E0CCBC450856&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=81472;lmt=1515874616461935&govp=clen=197538;lmt=1515874616461935&dur=4.971', offset 0, playlist 0
[last line repeats]

Description of your issue, suggested solution and other information

Any link from the Youtube Live page https://www.youtube.com/channel/UC4R8DWoMoI7CAwX8_LjQHig plays for 4-5 seconds then pauses for 30 seconds then starts again. This used to play smoothly. There is no other application using bandwidth. Watching from the website works fine. Included is a sample command line. I tried various combinations of buffer and -hls-* options without success.

@m0hamedessam
Copy link

@m0hamedessam m0hamedessam commented Jan 13, 2018

same problem here even with latest build of ffmpeg or vlc

@Bangaio65
Copy link

@Bangaio65 Bangaio65 commented Jan 14, 2018

I had issues with the old versions of ffmpeg/ffplay I was using, but with the latest build N-89788-g1eb7c1d49d (Windows 7 x64) it runs smoothly.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 14, 2018

ffmpeg issue.

@dstftw dstftw closed this Jan 14, 2018
@m0hamedessam
Copy link

@m0hamedessam m0hamedessam commented Jan 14, 2018

anyone confirm with windows 10 x64 as i face the problem using it

@marabu88
Copy link

@marabu88 marabu88 commented Jan 14, 2018

i also have some problems with live streams. and have one idea. i think don't need add live stream ID in archive-file. if i download all new videos and live-stream download not full - it don't downloaded again after stream is end. it possible downloada different versions streams - live and recorded (with one ID) if i use archive? maybe possible add some option for skip live streams?

sorry for my english

@ethaniel
Copy link

@ethaniel ethaniel commented Jun 7, 2018

Same problem on mac:

[tls @ 0x7f933d4a8520] IO Error: -980640kB time=00:00:30.03 bitrate=2793.2kbits/s speed=0.158x
[hls,applehttp @ 0x7f933d802e00] Opening 'https://r1---sn-w5nuxa-0guz.googlevideo.com/videoplayback/id/GyuETYRYEfA.5/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D136/hls_chunk_host/r1---sn-w5nuxa-0guz.googlevideo.com/playlist_type/DVR/gcr/th/ei/9_kYW9HwMqyYz7sPuKGX-AE/initcwndbps/7410/mm/32/mn/sn-w5nuxa-0guz/ms/lv/mv/m/pl/21/keepalive/yes/beids/%5B9466594%5D/mt/1528363402/ip/223.205.84.54/ipbits/0/expire/1528385111/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,ei,initcwndbps,mm,mn,ms,mv,pl/signature/354D947DC0E6AE4A258A4B9C46F035D240021BD8.12F3AAA6DC1AD7B550168EA7E2E8E8742857AC35/key/dg_yt0/playlist/index.m3u8/sq/175723/goap/clen%3D81737%3Blmt%3D1528363556679581/govp/clen%3D1661458%3Blmt%3D1528363556679581/dur/5.000/file/seg.ts' for reading
^@[tls @ 0x7f933d7349c0] IO Error: -9806kB time=00:00:35.02 bitrate=2814.3kbits/s speed=0.157x
[hls,applehttp @ 0x7f933d802e00] Opening 'https://r1---sn-w5nuxa-0guz.googlevideo.com/videoplayback/id/GyuETYRYEfA.5/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D136/hls_chunk_host/r1---sn-w5nuxa-0guz.googlevideo.com/playlist_type/DVR/gcr/th/ei/9_kYW9HwMqyYz7sPuKGX-AE/initcwndbps/7410/mm/32/mn/sn-w5nuxa-0guz/ms/lv/mv/m/pl/21/keepalive/yes/beids/%5B9466594%5D/mt/1528363402/ip/223.205.84.54/ipbits/0/expire/1528385111/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,ei,initcwndbps,mm,mn,ms,mv,pl/signature/354D947DC0E6AE4A258A4B9C46F035D240021BD8.12F3AAA6DC1AD7B550168EA7E2E8E8742857AC35/key/dg_yt0/playlist/index.m3u8/sq/175724/goap/clen%3D81601%3Blmt%3D1528363561862166/govp/clen%3D1678929%3Blmt%3D1528363561862166/dur/5.000/file/seg.ts' for reading
frame= 1200 fps=4.7 q=-1.0 size=   13568kB time=00:00:40.01 bitrate=2777.6kbits/s speed=0.157x
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
6 participants
You can’t perform that action at this time.