Opened 3 years ago

Closed 3 years ago

#5348 closed defect (worksforme)

hls url stopt after after a few seconds

Reported by: mobifon Owned by:
Priority: important Component: avformat
Version: git-master Keywords: hls regression
Cc: michael Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
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-4g57knzd.googlevideo.com/gcr/de/playlist_type/LIVE/mm/32/mn/sn-4g57knzd/ms/lv/mv/u/nh/IgpwcjA2LmZyYTE1KgkxMjcuMC4wLjE/pl/17/dover/3/keepalive/yes/fexp/9407002,9408086,9416126,9418356,9420452,9422596,9423661,9423662,9425348,9425429,9425791,9425968,9427902,9428222,9428274,9428327,9428735,9428988,9429393/sver/3/upn/korQNFeJ5ec/mt/1458219735/ip/84.62.129.80/ipbits/0/expire/1458242017/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,gcr,playlist_type,mm,mn,ms,mv,nh,pl/signature/99298D7E9DB758E23467E4A57DD0C871E833EBD7.274843952951DFA30693C4B1B186878F107680A5/key/dg_yt0/playlist/index.m3u8' -loglevel debug 
ffplay version N-79072-g83df0a8 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. 19.100 / 55. 19.100
  libavcodec     57. 28.103 / 57. 28.103
  libavformat    57. 28.102 / 57. 28.102
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 39.102 /  6. 39.102
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[https @ 0x7f1540001260] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[https @ 0x7f1540001260] 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-4g57knzd.googlevideo.com/gcr/de/playlist_type/LIVE/mm/32/mn/sn-4g57knzd/ms/lv/mv/u/nh/IgpwcjA2LmZyYTE1KgkxMjcuMC4wLjE/pl/17/dover/3/keepalive/yes/fexp/9407002,9408086,9416126,9418356,9420452,9422596,9423661,9423662,9425348,9425429,9425791,9425968,9427902,9428222,9428274,9428327,9428735,9428988,9429393/sver/3/upn/korQNFeJ5ec/mt/1458219735/ip/84.62.129.80/ipbits/0/expire/1458242017/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,gcr,playlist_type,mm,mn,ms,mv,nh,pl/signature/99298D7E9DB758E23467E4A57DD0C871E833EBD7.274843952951DFA30693C4B1B186878F107680A5/key/dg_yt0/playlist/index.m3u8 HTTP/1.1                                                                                                  
User-Agent: Lavf/57.28.102                                                                                                                                                                           
Accept: */*                                                                                                                                                                                          
Range: bytes=0-                                                                                                                                                                                      
Connection: close                                                                                                                                                                                    
Host: manifest.googlevideo.com                                                                                                                                                                       
Icy-MetaData: 1                                                                                                                                                                                      


[hls,applehttp @ 0x7f1540000920] Format hls,applehttp probed with size=2048 and score=100                                                                                                            
[hls,applehttp @ 0x7f1540000920] HLS request for url 'https://r1---sn-4g57knzd.googlevideo.com/videoplayback/id/q4KD1Jk_7K4.3/itag/95/source/yt_live_broadcast/sq/410820/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=itag=140&sgovp=itag=136&hls_chunk_host=r1---sn-4g57knzd.googlevideo.com&gcr=de&playlist_type=LIVE&mm=32&mn=sn-4g57knzd&ms=lv&mv=u&nh=IgpwcjA2LmZyYTE1KgkxMjcuMC4wLjE&pl=17&keepalive=yes&fexp=9407002,9408086,9416126,9418356,9420452,9422596,9423661,9423662,9425348,9425429,9425791,9425968,9427902,9428222,9428274,9428327,9428735,9428988,9429393&sver=3&upn=korQNFeJ5ec&mt=1458219735&ip=84.62.129.80&ipbits=0&expire=1458242017&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,gcr,playlist_type,mm,mn,ms,mv,nh,pl&signature=99298D7E9DB758E23467E4A57DD0C871E833EBD7.274843952951DFA30693C4B1B186878F107680A5&key=dg_yt0&playlist=index.m3u8&live=1&goap=cnr=11;lmt=1458237448868284&govp=cnr=11;lmt=1458237448868284&dur=5.000', offset 0, playlist 0                                                                                                                                                       
[https @ 0x7f1540009400] request: GET /videoplayback/id/q4KD1Jk_7K4.3/itag/95/source/yt_live_broadcast/sq/410820/file/seg.ts?requiressl=yes&ratebypass=yes&cmbypass=yes&goi=160&sgoap=itag=140&sgovp=itag=136&hls_chunk_host=r1---sn-4g57knzd.googlevideo.com&gcr=de&playlist_type=LIVE&mm=32&mn=sn-4g57knzd&ms=lv&mv=u&nh=IgpwcjA2LmZyYTE1KgkxMjcuMC4wLjE&pl=17&keepalive=yes&fexp=9407002,9408086,9416126,9418356,9420452,9422596,9423661,9423662,9425348,9425429,9425791,9425968,9427902,9428222,9428274,9428327,9428735,9428988,9429393&sver=3&upn=korQNFeJ5ec&mt=1458219735&ip=84.62.129.80&ipbits=0&expire=1458242017&sparams=ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,gcr,playlist_type,mm,mn,ms,mv,nh,pl&signature=99298D7E9DB758E23467E4A57DD0C871E833EBD7.274843952951DFA30693C4B1B186878F107680A5&key=dg_yt0&playlist=index.m3u8&live=1&goap=cnr=11;lmt=1458237448868284&govp=cnr=11;lmt=1458237448868284&dur=5.000 HTTP/1.1                        
User-Agent: Lavf/57.28.102                                                                                                                                                                           
Accept: */*                                                                                                                                                                                          
Connection: close                                                                                                                                                                                    
Host: r1---sn-4g57knzd.googlevideo.com                                                                                                                                                               
Icy-MetaData: 1                                                                                                                                                                                      


[https @ 0x7f1540009400] request: GET /videoplayback/id/q4KD1Jk_7K4.3/itag/95/source/yt_live_broadcast/sq/410820/requiressl/yes/ratebypass/yes/cmbypass/yes/goi/160/sgoap/itag%3D140/sgovp/itag%3D136/hls_chunk_host/r1---sn-4g57knzd.googlevideo.com/gcr/de/playlist_type/LIVE/pl/17/keepalive/yes/fexp/9407002,9408086,9416126,9418356,9420452,9422596,9423661,9423662,9425348,9425429,9425791,9425968,9427902,9428222,9428274,9428327,9428735,9428988,9429393/sver/3/upn/korQNFeJ5ec/ip/84.62.135.98/ipbits/0/expire/1458242017/sparams/cmbypass,expire,gcr,goi,hls_chunk_host,id,ip,ipbits,itag,live,mm,mn,ms,mv,nh,pl,playlist_type,ratebypass,requiressl,sgoap,sgovp,source/signature/E13F43458DD33C38C50787EA331DCE6ADF0E78.3F561000C9DDD9F3BFD75141DBA181FA53830A9A/key/cms1/playlist/index.m3u8/live/1/goap/cnr%3D11%3Blmt%3D1458237448868284/govp/cnr%3D11%3Blmt%3D1458237448868284/dur/5.000/redirect_counter/1/req_id/2188f75aab3ba3ee/cms_redirect/yes/mm/30/mn/sn-i5h7ln7k/ms/nxu/mt/1458237378/mv/m?file=seg.ts HTTP/1.1                                                                                                                                                                                       
User-Agent: Lavf/57.28.102                                                                                                                                                                           
Accept: */*                                                                                                                                                                                          
Connection: close                                                                                                                                                                                    
Host: r1---sn-i5h7ln7k.googlevideo.com                                                                                                                                                               
Icy-MetaData: 1                                                                                                                                                                                      


Format mpegts probed with size=2048 and score=100 sq=    0B f=0/0   
[mpegts @ 0x7f1540016160] stream=0 stream_type=f pid=101 prog_reg_desc=                                                                                                                              
[mpegts @ 0x7f1540016160] stream=1 stream_type=1b pid=100 prog_reg_desc=                                                                                                                             
[mpegts @ 0x7f1540016160] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0                                                                                                         
[h264 @ 0x7f154000b5a0] Current profile doesn't provide more RBSP data in PPS, skipping                                                                                                              
[mpegts @ 0x7f1540016160] All info foundq=    0KB sq=    0B f=0/0   
[mpegts @ 0x7f1540016160] After avformat_find_stream_info() pos: 121636 bytes read:131072 seeks:0 frames:54                                                                                          
[hls,applehttp @ 0x7f1540000920] Before avformat_find_stream_info() pos: 3052 bytes read:3052 seeks:0                                                                                                
[hls,applehttp @ 0x7f1540000920] All info foundKB sq=    0B f=0/0   
[hls,applehttp @ 0x7f1540000920] After avformat_find_stream_info() pos: 3052 bytes read:3052 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-4g57knzd.googlevideo.com/gcr/de/playlist_type/LIVE/mm/32/mn/sn-4g57knzd/ms/lv/mv/u/nh/IgpwcjA2LmZyYTE1KgkxMjcuMC4wLjE/pl/17/dover/3/keepalive/yes/fexp/9407002,9408086,9416126,9418356,9420452,9422596,9423661,9423662,9425348,9425429,9425791,9425968,9427902,9428222,9428274,9428327,9428735,9428988,9429393/sver/3/upn/korQNFeJ5ec/mt/1458219735/ip/84.62.129.80/ipbits/0/expire/1458242017/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,gcr,playlist_type,mm,mn,ms,mv,nh,pl/signature/99298D7E9DB758E23467E4A57DD0C871E833EBD7.274843952951DFA30693C4B1B186878F107680A5/key/dg_yt0/playlist/index.m3u8':
  Duration: N/A, start: 85686.908000, 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, 124 kb/s
    Stream #0:1, 21, 1/90000: Video: h264 (Main), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(left), 1280x720 [SAR 1:1 DAR 16:9], 1/60, 30 fps, 30 tbr, 90k tbn, 60 tbc
detected 4 logical cores
[ffplay_abuffer @ 0x7f15400aca20] Setting 'sample_rate' to value '48000'
[ffplay_abuffer @ 0x7f15400aca20] Setting 'sample_fmt' to value 'fltp'
[ffplay_abuffer @ 0x7f15400aca20] Setting 'channels' to value '2'
[ffplay_abuffer @ 0x7f15400aca20] Setting 'time_base' to value '1/48000'
[ffplay_abuffer @ 0x7f15400aca20] Setting 'channel_layout' to value '0x3'
[ffplay_abuffer @ 0x7f15400aca20] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
[ffplay_abuffersink @ 0x7f15400fda60] auto-inserting filter 'auto-inserted resampler 0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
[AVFilterGraph @ 0x7f15400fe8e0] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x7f154010ddc0] [SWR @ 0x7f15400d9f60] Using fltp internally between filters
[auto-inserted resampler 0 @ 0x7f154010ddc0] ch:2 chl:stereo fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz
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 @ 0x7f15380053c0] Setting 'sample_rate' to value '48000'
[ffplay_abuffer @ 0x7f15380053c0] Setting 'sample_fmt' to value 'fltp'
[ffplay_abuffer @ 0x7f15380053c0] Setting 'channels' to value '2'
[ffplay_abuffer @ 0x7f15380053c0] Setting 'time_base' to value '1/48000'
[ffplay_abuffer @ 0x7f15380053c0] Setting 'channel_layout' to value '0x3'
[ffplay_abuffer @ 0x7f15380053c0] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
[ffplay_abuffersink @ 0x7f15380064e0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
[AVFilterGraph @ 0x7f1538004f80] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x7f15380077c0] [SWR @ 0x7f1538007b80] Using fltp internally between filters
[auto-inserted resampler 0 @ 0x7f15380077c0] ch:2 chl:stereo fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz
Video frame changed from size:0x0 format:none serial:-1 to size:1280x720 format:yuv420p serial:1
[ffplay_buffer @ 0x7f1530106960] Setting 'video_size' to value '1280x720'
[ffplay_buffer @ 0x7f1530106960] Setting 'pix_fmt' to value '0'
[ffplay_buffer @ 0x7f1530106960] Setting 'time_base' to value '1/90000'
[ffplay_buffer @ 0x7f1530106960] Setting 'pixel_aspect' to value '1/1'
[ffplay_buffer @ 0x7f1530106960] Setting 'frame_rate' to value '30/1'
[ffplay_buffer @ 0x7f1530106960] w:1280 h:720 pixfmt:yuv420p tb:1/90000 fr:30/1 sar:1/1 sws_param:
[ffplay_crop @ 0x7f153015e9c0] Setting 'out_w' to value 'floor(in_w/2)*2'
[ffplay_crop @ 0x7f153015e9c0] Setting 'out_h' to value 'floor(in_h/2)*2'
[AVFilterGraph @ 0x7f153015db40] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed
[ffplay_crop @ 0x7f153015e9c0] w:1280 h:720 sar:1/1 -> w:1280 h:720 sar:1/1
[NULL @ 0x7f154000b5a0] Current profile doesn't provide more RBSP data in PPS, skipping
[AVIOContext @ 0x7f1540048440] Statistics: 595960 bytes read, 0 seeks
[hls,applehttp @ 0x7f1540000920] Failed to reload playlist 0
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.0/work/alsa-lib-1.1.0/src/pcm/pcm.c:7963:(snd_pcm_recover) underrun occurred
[AVIOContext @ 0x7f154001eb60] Statistics: 3052 bytes read, 0 seeks

last working git id with hls is a588c7ac13bce3ef327ae2490e0974b65242c01f
After Merge commit 'hls: eliminate ffurl_* usage' * commit 'hls: eliminate ffurl_* usage': hls: eliminate ffurl_* usage Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
ist hls play broken.

Change History (12)

comment:1 Changed 3 years ago by mobifon

  • Version changed from unspecified to git-master

comment:2 Changed 3 years ago by mobifon

  • Summary changed from hls url stopt after some second to hls url stopt after after a few seconds

comment:3 in reply to: ↑ description Changed 3 years ago by cehoyos

  • Component changed from ffplay to avformat
  • Keywords hls regression added
  • Priority changed from normal to important

Replying to mobifon:

last working git id with hls is a588c7ac13bce3ef327ae2490e0974b65242c01f

Do you mean this is a regression since d0fc5de3a643fe7f974ed14e410c2ac2f4147d7e?

comment:4 Changed 3 years ago by mobifon

Yes, commit 'd0fc5de3a643fe7f974ed14e410c2ac2f4147d7e?' make play hls broken.

Last edited 3 years ago by mobifon (previous) (diff)

comment:5 Changed 3 years ago by mobifon

No one can check live google channels ?
https://www.youtube.com/watch?v=q4KD1Jk_7K4

comment:6 Changed 3 years ago by mobifon

Pleas fix this Bug or revert to old code.

comment:7 Changed 3 years ago by mobifon

The ticket can be closed.
Looks like that it was up to other lib.

comment:8 Changed 3 years ago by cehoyos

Could you elaborate?

comment:9 Changed 3 years ago by michael

  • Cc michael added

comment:10 Changed 3 years ago by cehoyos

Iiuc, the following command can be used to get test urls:

$ curl $(youtube-dl https://www.youtube.com/watch?v=q4KD1Jk_7K4 --youtube-include-dash-manifest --dump-intermediate-pages -s | grep manifest.google | cut -d ' ' -f 5)

comment:11 Changed 3 years ago by michael

I cannot reproduce this, listening to minutes of live video works, the quoted urls are dead though so i had to use a different youtube live video
can someoen still reproduce this ?

comment:12 Changed 3 years ago by cehoyos

  • Resolution set to worksforme
  • Status changed from new to closed

I do see underruns but I cannot reproduce a regression.

Note: See TracTickets for help on using tickets.