#5435 closed defect (invalid)

youtube live stream channel is brorken

Reported by: mobifon Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

All live youtube streams take off after a few seconds.
Likewise they are stopped after a few seconds.
Stage fright youtube live channels is not possible.
With ffmpeg 2.8.6 works very well.
show https://trac.ffmpeg.org/ticket/5348#ticket
How to reproduce:

/ffplay 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/q4KD1Jk_7K4.3/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/itag%3D140/sgovp/itag%3D136/hls_chunk_host/r1---sn-4g57knk7.googlevideo.com/playlist_type/LIVE/gcr/de/mm/32/mn/sn-4g57knk7/ms/lv/mv/m/nh/IgpwcjA2LmZyYTE1KgkxMjcuMC4wLjE/pl/15/dover/3/fexp/9405963,9416126,9416891,9417368,9420452,9421341,9421544,9422596,9426927,9427902,9428222,9428398,9429148,9429739,9429743,9431366,9431828,9432395,9432650,9433260,9434173/sver/3/keepalive/yes/upn/45Q4Wx4nt2s/mt/1460550910/ip/80.60.60.56/ipbits/0/expire/1460572556/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,mm,mn,ms,mv,nh,pl/signature/20FD032E902C10DCC954729EA5DEF3806E3A6BD7.1E34400EDF5BBF15F209F256666D4BDB852C6C8F/key/dg_yt0/playlist/index.m3u8' -loglevel debug
ffplay version N-79379-gc890bcb Copyright (c) 2003-2016 the FFmpeg developers
  built with gcc 5.3.0 (Gentoo 5.3.0 p1.0, pie-0.6.5)
  configuration: --enable-static --enable-gpl --enable-openssl --enable-nonfree
  libavutil      55. 20.100 / 55. 20.100
  libavcodec     57. 34.100 / 57. 34.100
  libavformat    57. 34.100 / 57. 34.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 41.101 /  6. 41.101
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[https @ 0x7fd6f0001260] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[https @ 0x7fd6f0001260] request: GET /api/manifest/hls_playlist/id/q4KD1Jk_7K4.3/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/itag%3D140/sgovp/itag%3D136/hls_chunk_host/r1---sn-4g57knk7.googlevideo.com/playlist_type/LIVE/gcr/de/mm/32/mn/sn-4g57knk7/ms/lv/mv/m/nh/IgpwcjA2LmZyYTE1KgkxMjcuMC4wLjE/pl/15/dover/3/fexp/9405963,9416126,9416891,9417368,9420452,9421341,9421544,9422596,9426927,9427902,9428222,9428398,9429148,9429739,9429743,9431366,9431828,9432395,9432650,9433260,9434173/sver/3/keepalive/yes/upn/45Q4Wx4nt2s/mt/1460550910/ip/80.60.60.56/ipbits/0/expire/1460572556/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,mm,mn,ms,mv,nh,pl/signature/20FD032E902C10DCC954729EA5DEF3806E3A6BD7.1E34400EDF5BBF15F209F256666D4BDB852C6C8F/key/dg_yt0/playlist/index.m3u8 HTTP/1.1                                                                                                                                        
User-Agent: Lavf/57.34.100                                                                                                                                                                                      
Accept: */*                                                                                                                                                                                                     
Range: bytes=0-                                                                                                                                                                                                 
Connection: close                                                                                                                                                                                               
Host: manifest.googlevideo.com                                                                                                                                                                                  
Icy-MetaData: 1                                                                                                                                                                                                 


[hls,applehttp @ 0x7fd6f0000920] Format hls,applehttp probed with size=2048 and score=100                                                                                                                       
[hls,applehttp @ 0x7fd6f0000920] HLS request for url 'https://r1---sn-4g57knk7.googlevideo.com/videoplayback/id/q4KD1Jk_7K4.3/itag/95/source/yt_live_broadcast/sq/873635/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=itag=140&sgovp=itag=136&hls_chunk_host=r1---sn-4g57knk7.googlevideo.com&playlist_type=LIVE&gcr=de&mm=32&mn=sn-4g57knk7&ms=lv&mv=m&nh=IgpwcjA2LmZyYTE1KgkxMjcuMC4wLjE&pl=15&fexp=9405963,9416126,9416891,9417368,9420452,9421341,9421544,9422596,9426927,9427902,9428222,9428398,9429148,9429739,9429743,9431366,9431828,9432395,9432650,9433260,9434173&sver=3&keepalive=yes&upn=45Q4Wx4nt2s&mt=1460550910&ip=80.60.60.56&ipbits=0&expire=1460572556&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,mm,mn,ms,mv,nh,pl&signature=20FD032E902C10DCC954729EA5DEF3806E3A6BD7.1E34400EDF5BBF15F209F256666D4BDB852C6C8F&key=dg_yt0&playlist=index.m3u8&live=1&goap=cnr=11;lmt=1460552058809866&govp=cnr=11;lmt=1460552058809866&dur=5.000', offset 0, playlist 0                                                                                                                                                                                                        
[https @ 0x7fd6f0009400] request: GET /videoplayback/id/q4KD1Jk_7K4.3/itag/95/source/yt_live_broadcast/sq/873635/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=itag=140&sgovp=itag=136&hls_chunk_host=r1---sn-4g57knk7.googlevideo.com&playlist_type=LIVE&gcr=de&mm=32&mn=sn-4g57knk7&ms=lv&mv=m&nh=IgpwcjA2LmZyYTE1KgkxMjcuMC4wLjE&pl=15&fexp=9405963,9416126,9416891,9417368,9420452,9421341,9421544,9422596,9426927,9427902,9428222,9428398,9429148,9429739,9429743,9431366,9431828,9432395,9432650,9433260,9434173&sver=3&keepalive=yes&upn=45Q4Wx4nt2s&mt=1460550910&ip=80.60.60.56&ipbits=0&expire=1460572556&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,mm,mn,ms,mv,nh,pl&signature=20FD032E902C10DCC954729EA5DEF3806E3A6BD7.1E34400EDF5BBF15F209F256666D4BDB852C6C8F&key=dg_yt0&playlist=index.m3u8&live=1&goap=cnr=11;lmt=1460552058809866&govp=cnr=11;lmt=1460552058809866&dur=5.000 HTTP/1.1                                                              
User-Agent: Lavf/57.34.100                                                                                                                                                                                      
Accept: */*                                                                                                                                                                                                     
Connection: close                                                                                                                                                                                               
Host: r1---sn-4g57knk7.googlevideo.com                                                                                                                                                                          
Icy-MetaData: 1                                                                                                                                                                                                 


Format mpegts probed with size=2048 and score=100 sq=    0B f=0/0   
[mpegts @ 0x7fd6f00161c0] stream=0 stream_type=f pid=101 prog_reg_desc=                                                                                                                                         
[mpegts @ 0x7fd6f00161c0] stream=1 stream_type=1b pid=100 prog_reg_desc=                                                                                                                                        
[mpegts @ 0x7fd6f00161c0] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0                                                                                                                    
[h264 @ 0x7fd6f0033c40] Current profile doesn't provide more RBSP data in PPS, skipping                                                                                                                         
[AVIOContext @ 0x7fd6f0048440] Statistics: 283128 bytes read, 0 seeks                                                                                                                                           
[https @ 0x7fd6f0048b40] request: GET /api/manifest/hls_playlist/id/q4KD1Jk_7K4.3/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/itag%3D140/sgovp/itag%3D136/hls_chunk_host/r1---sn-4g57knk7.googlevideo.com/playlist_type/LIVE/gcr/de/mm/32/mn/sn-4g57knk7/ms/lv/mv/m/nh/IgpwcjA2LmZyYTE1KgkxMjcuMC4wLjE/pl/15/dover/3/fexp/9405963,9416126,9416891,9417368,9420452,9421341,9421544,9422596,9426927,9427902,9428222,9428398,9429148,9429739,9429743,9431366,9431828,9432395,9432650,9433260,9434173/sver/3/keepalive/yes/upn/45Q4Wx4nt2s/mt/1460550910/ip/80.60.60.56/ipbits/0/expire/1460572556/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,mm,mn,ms,mv,nh,pl/signature/20FD032E902C10DCC954729EA5DEF3806E3A6BD7.1E34400EDF5BBF15F209F256666D4BDB852C6C8F/key/dg_yt0/playlist/index.m3u8 HTTP/1.1                                                                                                                                        
User-Agent: Lavf/57.34.100                                                                                                                                                                                      
Accept: */*                                                                                                                                                                                                     
Connection: close                                                                                                                                                                                               
Host: manifest.googlevideo.com                                                                                                                                                                                  
Icy-MetaData: 1                                                                                                                                                                                                 


[AVIOContext @ 0x7fd6f0050160] Statistics: 3103 bytes read, 0 seeks 
skipping 5 segments ahead, expired from playlists
[hls,applehttp @ 0x7fd6f0000920] HLS request for url 'https://r1---sn-4g57knk7.googlevideo.com/videoplayback/id/q4KD1Jk_7K4.3/itag/95/source/yt_live_broadcast/sq/873641/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=itag=140&sgovp=itag=136&hls_chunk_host=r1---sn-4g57knk7.googlevideo.com&playlist_type=LIVE&gcr=de&mm=32&mn=sn-4g57knk7&ms=lv&mv=m&nh=IgpwcjA2LmZyYTE1KgkxMjcuMC4wLjE&pl=15&fexp=9405963,9416126,9416891,9417368,9420452,9421341,9421544,9422596,9426927,9427902,9428222,9428398,9429148,9429739,9429743,9431366,9431828,9432395,9432650,9433260,9434173&sver=3&keepalive=yes&upn=45Q4Wx4nt2s&mt=1460550910&ip=80.60.60.56&ipbits=0&expire=1460572556&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,mm,mn,ms,mv,nh,pl&signature=20FD032E902C10DCC954729EA5DEF3806E3A6BD7.1E34400EDF5BBF15F209F256666D4BDB852C6C8F&key=dg_yt0&playlist=index.m3u8&live=1&goap=cnr=11;lmt=1460552087563480&govp=cnr=11;lmt=1460552087563480&dur=5.000', offset 0, playlist 0                                                                                                                                                                                                        
[https @ 0x7fd6f0048b40] request: GET /videoplayback/id/q4KD1Jk_7K4.3/itag/95/source/yt_live_broadcast/sq/873641/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=itag=140&sgovp=itag=136&hls_chunk_host=r1---sn-4g57knk7.googlevideo.com&playlist_type=LIVE&gcr=de&mm=32&mn=sn-4g57knk7&ms=lv&mv=m&nh=IgpwcjA2LmZyYTE1KgkxMjcuMC4wLjE&pl=15&fexp=9405963,9416126,9416891,9417368,9420452,9421341,9421544,9422596,9426927,9427902,9428222,9428398,9429148,9429739,9429743,9431366,9431828,9432395,9432650,9433260,9434173&sver=3&keepalive=yes&upn=45Q4Wx4nt2s&mt=1460550910&ip=80.60.60.56&ipbits=0&expire=1460572556&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,mm,mn,ms,mv,nh,pl&signature=20FD032E902C10DCC954729EA5DEF3806E3A6BD7.1E34400EDF5BBF15F209F256666D4BDB852C6C8F&key=dg_yt0&playlist=index.m3u8&live=1&goap=cnr=11;lmt=1460552087563480&govp=cnr=11;lmt=1460552087563480&dur=5.000 HTTP/1.1                                                              
User-Agent: Lavf/57.34.100                                                                                                                                                                                      
Accept: */*                                                                                                                                                                                                     
Connection: close                                                                                                                                                                                               
Host: r1---sn-4g57knk7.googlevideo.com                                                                                                                                                                          
Icy-MetaData: 1                                                                                                                                                                                                 


[mpegts @ 0x7fd6f00161c0] Continuity check failed for pid 0 expected 1 got 0                                                                                                                                    
[mpegts @ 0x7fd6f00161c0] Continuity check failed for pid 4095 expected 1 got 0                                                                                                                                 
[mpegts @ 0x7fd6f00161c0] DTS discontinuity in stream 0: packet 234 with DTS 5573774096, packet 235 with DTS 5576024336
[h264 @ 0x7fd6f0033c40] Current profile doesn't provide more RBSP data in PPS, skipping
[h264 @ 0x7fd6f0033c40] Current profile doesn't provide more RBSP data in PPS, skipping                                                                                                                         
[mpegts @ 0x7fd6f00161c0] max_analyze_duration 7000000 reached at 7018667 microseconds st:0                                                                                                                     
[mpegts @ 0x7fd6f00161c0] After avformat_find_stream_info() pos: 682816 bytes read:709112 seeks:0 frames:542                                                                                                    
[hls,applehttp @ 0x7fd6f0000920] Before avformat_find_stream_info() pos: 3103 bytes read:3103 seeks:0                                                                                                           
[hls,applehttp @ 0x7fd6f0000920] All info found                                                                                                                                                                 
[hls,applehttp @ 0x7fd6f0000920] After avformat_find_stream_info() pos: 3103 bytes read:3103 seeks:0 frames:54                                                                                                  
Input #0, hls,applehttp, from 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/q4KD1Jk_7K4.3/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/itag%3D140/sgovp/itag%3D136/hls_chunk_host/r1---sn-4g57knk7.googlevideo.com/playlist_type/LIVE/gcr/de/mm/32/mn/sn-4g57knk7/ms/lv/mv/m/nh/IgpwcjA2LmZyYTE1KgkxMjcuMC4wLjE/pl/15/dover/3/fexp/9405963,9416126,9416891,9417368,9420452,9421341,9421544,9422596,9426927,9427902,9428222,9428398,9429148,9429739,9429743,9431366,9431828,9432395,9432650,9433260,9434173/sver/3/keepalive/yes/upn/45Q4Wx4nt2s/mt/1460550910/ip/80.60.60.56/ipbits/0/expire/1460572556/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr,mm,mn,ms,mv,nh,pl/signature/20FD032E902C10DCC954729EA5DEF3806E3A6BD7.1E34400EDF5BBF15F209F256666D4BDB852C6C8F/key/dg_yt0/playlist/index.m3u8':
  Duration: N/A, start: 61925.824622, bitrate: N/A
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0, 33, 1/90000: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 126 kb/s
    Stream #0:1, 21, 1/90000: Video: h264 (Main), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(left), 1280x720 (0x0) [SAR 1:1 DAR 16:9], 0/1, 30 fps, 30 tbr, 90k tbn
detected 4 logical cores
[ffplay_abuffer @ 0x7fd6f015d120] Setting 'sample_rate' to value '48000'
[ffplay_abuffer @ 0x7fd6f015d120] Setting 'sample_fmt' to value 'fltp'
[ffplay_abuffer @ 0x7fd6f015d120] Setting 'channels' to value '2'
[ffplay_abuffer @ 0x7fd6f015d120] Setting 'time_base' to value '1/48000'
[ffplay_abuffer @ 0x7fd6f015d120] Setting 'channel_layout' to value '0x3'
[ffplay_abuffer @ 0x7fd6f015d120] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
[ffplay_abuffersink @ 0x7fd6f0153420] auto-inserting filter 'auto-inserted resampler 0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
[AVFilterGraph @ 0x7fd6f0036aa0] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x7fd6f0025dc0] [SWR @ 0x7fd6f00a1820] Using fltp internally between filters
[auto-inserted resampler 0 @ 0x7fd6f0025dc0] ch:2 chl:stereo fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz
SDL_OpenAudio (2 channels, 48000 Hz): Couldn't set hardware audio parameters: Success
Audio frame changed from rate:48000 ch:2 fmt:fltp layout:stereo serial:-1 to rate:48000 ch:2 fmt:fltp layout:stereo serial:1
[ffplay_abuffer @ 0x7fd6e80053c0] Setting 'sample_rate' to value '48000'
[ffplay_abuffer @ 0x7fd6e80053c0] Setting 'sample_fmt' to value 'fltp'
[ffplay_abuffer @ 0x7fd6e80053c0] Setting 'channels' to value '2'
[ffplay_abuffer @ 0x7fd6e80053c0] Setting 'time_base' to value '1/48000'
[ffplay_abuffer @ 0x7fd6e80053c0] Setting 'channel_layout' to value '0x3'
[ffplay_abuffer @ 0x7fd6e80053c0] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
[ffplay_abuffersink @ 0x7fd6e80064e0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
[AVFilterGraph @ 0x7fd6e8004f80] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x7fd6e80077c0] [SWR @ 0x7fd6e8007b80] Using fltp internally between filters
[auto-inserted resampler 0 @ 0x7fd6e80077c0] [SWR @ 0x7fd6e8007b80] Matrix coefficients:
[auto-inserted resampler 0 @ 0x7fd6e80077c0] [SWR @ 0x7fd6e8007b80] FC: FL:0.500000 FR:0.500000 
[auto-inserted resampler 0 @ 0x7fd6e80077c0] ch:2 chl:stereo fmt:fltp r:48000Hz -> ch:1 chl:mono fmt:s16 r:48000Hz
Video frame changed from size:0x0 format:none serial:-1 to size:1280x720 format:yuv420p serial:1
[ffplay_buffer @ 0x7fd6e00af800] Setting 'video_size' to value '1280x720'
[ffplay_buffer @ 0x7fd6e00af800] Setting 'pix_fmt' to value '0'
[ffplay_buffer @ 0x7fd6e00af800] Setting 'time_base' to value '1/90000'
[ffplay_buffer @ 0x7fd6e00af800] Setting 'pixel_aspect' to value '1/1'
[ffplay_buffer @ 0x7fd6e00af800] Setting 'frame_rate' to value '30/1'
[ffplay_buffer @ 0x7fd6e00af800] w:1280 h:720 pixfmt:yuv420p tb:1/90000 fr:30/1 sar:1/1 sws_param:
[ffplay_crop @ 0x7fd6e015dfe0] Setting 'out_w' to value 'floor(in_w/2)*2'
[ffplay_crop @ 0x7fd6e015dfe0] Setting 'out_h' to value 'floor(in_h/2)*2'
[AVFilterGraph @ 0x7fd6e015db40] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed
[ffplay_crop @ 0x7fd6e015dfe0] w:1280 h:720 sar:1/1 -> w:1280 h:720 sar:1/1
[AVIOContext @ 0x7fd6f004e940] Statistics: 746360 bytes read, 0 seeks
[hls,applehttp @ 0x7fd6f0000920] Failed to reload playlist 0
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.1/work/alsa-lib-1.1.1/src/pcm/pcm.c:7963:(snd_pcm_recover) underrun occurred
[AVIOContext @ 0x7fd6f001ebe0] Statistics: 3103 bytes read, 0 seeks

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (1)

comment:1 Changed 19 months ago by cehoyos

  • Component changed from avformat to undetermined
  • Keywords hls applehttp removed
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.