Opened 6 years ago
Closed 12 days ago
#7359 closed defect (fixed)
Seeking in an M3u8 fragmented MP4 playlist causes no frames to be sent to output
Reported by: | Jonathan Viney | Owned by: | vectronic |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | hls seek |
Cc: | R. Linden | Blocked By: | |
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
Using input seeking with an HLS fragmented MP4 playlist does not write anything to the output.
It works when the -ss option is removed.
ffmpeg started on 2018-08-16 at 13:35:27 Report written to "ffmpeg-20180816-133527.log" Command line: ffmpeg -report -loglevel debug -ss 48:00 -i https://gloryleague.com/onsen/v1/video_versions/18f4ebc9-157a-4b6c-b4b7-eabc23cf124c.m3u8 -c copy -f mpegts -y out.ts ffmpeg version N-91612-g2612431d1b Copyright (c) 2000-2018 the FFmpeg developers built with Apple LLVM version 9.1.0 (clang-902.0.39.2) configuration: --enable-shared --disable-doc --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-ffplay libavutil 56. 19.100 / 56. 19.100 libavcodec 58. 22.101 / 58. 22.101 libavformat 58. 17.101 / 58. 17.101 libavdevice 58. 4.101 / 58. 4.101 libavfilter 7. 26.100 / 7. 26.100 libswscale 5. 2.100 / 5. 2.100 libswresample 3. 2.100 / 3. 2.100 libpostproc 55. 2.100 / 55. 2.100 Splitting the commandline. Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '48:00'. Reading option '-i' ... matched as input url with argument 'https://gloryleague.com/onsen/v1/video_versions/18f4ebc9-157a-4b6c-b4b7-eabc23cf124c.m3u8'. Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'. Reading option '-f' ... matched as option 'f' (force format) with argument 'mpegts'. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option 'out.ts' ... matched as output url. Finished splitting the commandline. Parsing a group of options: global . Applying option report (generate a report) with argument 1. Applying option loglevel (set logging level) with argument debug. Applying option y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input url https://gloryleague.com/onsen/v1/video_versions/18f4ebc9-157a-4b6c-b4b7-eabc23cf124c.m3u8. Applying option ss (set the start time offset) with argument 48:00. Successfully parsed a group of options. Opening an input file: https://gloryleague.com/onsen/v1/video_versions/18f4ebc9-157a-4b6c-b4b7-eabc23cf124c.m3u8. [NULL @ 0x7f9ae3801200] Opening 'https://gloryleague.com/onsen/v1/video_versions/18f4ebc9-157a-4b6c-b4b7-eabc23cf124c.m3u8' for reading [https @ 0x7f9ae2507780] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy' [https @ 0x7f9ae2507780] request: GET /onsen/v1/video_versions/18f4ebc9-157a-4b6c-b4b7-eabc23cf124c.m3u8 HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Range: bytes=0- Connection: close Host: gloryleague.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] Format hls,applehttp probed with size=2048 and score=100 [https @ 0x7f9ae2507780] Last chunk received, closing conn [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/init.mp4', offset 0, playlist 0 [hls,applehttp @ 0x7f9ae3801200] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/init.mp4' for reading [https @ 0x7f9ae2707280] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/init.mp4 HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] Downloading an initialization section of size 965 [AVIOContext @ 0x7f9ae2418dc0] Statistics: 965 bytes read, 0 seeks [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-1.m4s', offset 0, playlist 0 [hls,applehttp @ 0x7f9ae3801200] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-1.m4s' for reading [https @ 0x7f9ae2707280] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-1.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-2.m4s', offset 0, playlist 0 [hls,applehttp @ 0x7f9ae3801200] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-2.m4s' for reading [https @ 0x7f9ae27082c0] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-2.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9ae4001800] ISO: File Type Major Brand: isom [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9ae4001800] Unknown dref type 0x206c7275 size 12 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9ae4001800] found tfdt time -1024, using it for dts [hls,applehttp @ 0x7f9ae3801200] Before avformat_find_stream_info() pos: 98874 bytes read:98874 seeks:0 nb_streams:1 [h264 @ 0x7f9ae3001000] nal_unit_type: 7(SPS), nal_ref_idc: 3 [h264 @ 0x7f9ae3001000] nal_unit_type: 8(PPS), nal_ref_idc: 3 [h264 @ 0x7f9ae3001000] nal_unit_type: 6(SEI), nal_ref_idc: 0 [h264 @ 0x7f9ae3001000] nal_unit_type: 5(IDR), nal_ref_idc: 3 [h264 @ 0x7f9ae3001000] Format yuv420p chosen by get_format(). [h264 @ 0x7f9ae3001000] Reinit context to 1280x720, pix_fmt: yuv420p [h264 @ 0x7f9ae3001000] no picture [hls,applehttp @ 0x7f9ae3801200] All info found [hls,applehttp @ 0x7f9ae3801200] Setting avg frame rate based on r frame rate [hls,applehttp @ 0x7f9ae3801200] After avformat_find_stream_info() pos: 98874 bytes read:98874 seeks:0 frames:21 [AVIOContext @ 0x7f9ae2708180] Statistics: 189953 bytes read, 0 seeks [AVIOContext @ 0x7f9ae26168c0] Statistics: 0 bytes read, 0 seeks Input #0, hls,applehttp, from 'https://gloryleague.com/onsen/v1/video_versions/18f4ebc9-157a-4b6c-b4b7-eabc23cf124c.m3u8': Duration: 00:49:47.23, start: 0.000000, bitrate: N/A Program 0 Metadata: variant_bitrate : 0 Stream #0:0, 21, 1/15360: Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1280x720 [SAR 1:1 DAR 16:9], 0/1, 1524 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc Metadata: variant_bitrate : 0 encoder : Lavf57.83.100 major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41iso5 title : cam-wasb-d album_artist : ffmpeg=0911ca6bd5,mc=b830c1d3 comment : rtsp-server Successfully opened the file. Parsing a group of options: output url out.ts. Applying option c (codec name) with argument copy. Applying option f (force format) with argument mpegts. Successfully parsed a group of options. Opening an output file: out.ts. [file @ 0x7f9ae2623800] Setting default whitelist 'file,crypto' Successfully opened the file. [mpegts @ 0x7f9ae3001600] muxrate VBR, pcr every 1536 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to 'out.ts': Metadata: encoder : Lavf58.17.101 Stream #0:0, 0, 1/90000: Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1280x720 (0x0) [SAR 1:1 DAR 16:9], 0/1, q=2-31, 1524 kb/s, 30 fps, 30 tbr, 90k tbn, 15360 tbc Metadata: variant_bitrate : 0 encoder : Lavf57.83.100 major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41iso5 title : cam-wasb-d album_artist : ffmpeg=0911ca6bd5,mc=b830c1d3 comment : rtsp-server Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help cur_dts is invalid (this is harmless if it occurs once at the start per stream) [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-576.m4s', offset 0, playlist 0 [hls,applehttp @ 0x7f9ae3801200] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-576.m4s' for reading [https @ 0x7f9ae26234c0] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-576.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-577.m4s', offset 0, playlist 0 [hls,applehttp @ 0x7f9ae3801200] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-577.m4s' for reading [https @ 0x7f9ae2708180] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-577.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-578.m4s', offset 0, playlist 0 [https @ 0x7f9ae3015c00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-578.m4s' for reading [https @ 0x7f9ae26234c0] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-578.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-579.m4s', offset 0, playlist 0 [https @ 0x7f9ae4022e00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-579.m4s' for reading [https @ 0x7f9ae2708180] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-579.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-580.m4s', offset 0, playlist 0 [https @ 0x7f9ae3015c00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-580.m4s' for reading [https @ 0x7f9ae26234c0] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-580.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-581.m4s', offset 0, playlist 0 [https @ 0x7f9ae4022e00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-581.m4s' for reading [https @ 0x7f9ae2708180] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-581.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-582.m4s', offset 0, playlist 0 [https @ 0x7f9ae3015c00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-582.m4s' for reading [https @ 0x7f9ae26234c0] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-582.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-583.m4s', offset 0, playlist 0 [https @ 0x7f9ae4022e00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-583.m4s' for reading [https @ 0x7f9ae2708180] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-583.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-584.m4s', offset 0, playlist 0 [https @ 0x7f9ae3015c00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-584.m4s' for reading [https @ 0x7f9ae26234c0] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-584.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-585.m4s', offset 0, playlist 0 [https @ 0x7f9ae4022e00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-585.m4s' for reading [https @ 0x7f9ae2708180] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-585.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-586.m4s', offset 0, playlist 0 [https @ 0x7f9ae3015c00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-586.m4s' for reading [https @ 0x7f9ae26234c0] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-586.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-587.m4s', offset 0, playlist 0 [https @ 0x7f9ae4022e00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-587.m4s' for reading [https @ 0x7f9ae2708180] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-587.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-588.m4s', offset 0, playlist 0 [https @ 0x7f9ae3015c00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-588.m4s' for reading [https @ 0x7f9ae26234c0] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-588.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-589.m4s', offset 0, playlist 0 [https @ 0x7f9ae4022e00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-589.m4s' for reading [https @ 0x7f9ae2708180] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-589.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-590.m4s', offset 0, playlist 0 [https @ 0x7f9ae3015c00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-590.m4s' for reading [https @ 0x7f9ae26234c0] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-590.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-591.m4s', offset 0, playlist 0 [https @ 0x7f9ae4022e00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-591.m4s' for reading [https @ 0x7f9ae2708180] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-591.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-592.m4s', offset 0, playlist 0 [https @ 0x7f9ae3015c00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-592.m4s' for reading [https @ 0x7f9ae26234c0] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-592.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-593.m4s', offset 0, playlist 0 [https @ 0x7f9ae4022e00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-593.m4s' for reading [https @ 0x7f9ae2708180] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-593.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-594.m4s', offset 0, playlist 0 [https @ 0x7f9ae3015c00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-594.m4s' for reading [https @ 0x7f9ae26234c0] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-594.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-595.m4s', offset 0, playlist 0 [https @ 0x7f9ae4022e00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-595.m4s' for reading [https @ 0x7f9ae2708180] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-595.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-596.m4s', offset 0, playlist 0 [https @ 0x7f9ae3015c00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-596.m4s' for reading [https @ 0x7f9ae26234c0] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-596.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-597.m4s', offset 0, playlist 0 [https @ 0x7f9ae4022e00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-597.m4s' for reading [https @ 0x7f9ae2708180] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-597.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 [hls,applehttp @ 0x7f9ae3801200] HLS request for url 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-598.m4s', offset 0, playlist 0 [https @ 0x7f9ae3015c00] Opening 'https://gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com/3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-598.m4s' for reading [https @ 0x7f9ae26234c0] request: GET /3/6/363e1b38-5653-4787-9912-fa6c73e73e85/20180403131129/fmp4/mc-720-low/seg-598.m4s HTTP/1.1 User-Agent: Lavf/58.17.101 Accept: */* Connection: keep-alive Host: gloryleague-vid-encoded-syd.s3-ap-southeast-2.amazonaws.com Icy-MetaData: 1 No more output streams to write to, finishing. frame= 0 fps=0.0 q=-1.0 Lsize= 0kB time=00:00:00.00 bitrate=N/A speed= 0x video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (https://gloryleague.com/onsen/v1/video_versions/18f4ebc9-157a-4b6c-b4b7-eabc23cf124c.m3u8): Input stream #0:0 (video): 0 packets read (0 bytes); Total: 0 packets (0 bytes) demuxed Output file #0 (out.ts): Output stream #0:0 (video): 0 packets muxed (0 bytes); Total: 0 packets (0 bytes) muxed 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x7f9ae2605ac0] Statistics: 0 seeks, 0 writeouts [AVIOContext @ 0x7f9ae2707fc0] Statistics: 12901468 bytes read, 0 seeks [AVIOContext @ 0x7f9ae240cc40] Statistics: 12353178 bytes read, 0 seeks [AVIOContext @ 0x7f9ae2702e00] Statistics: 98874 bytes read, 0 seeks
Change History (20)
comment:1 by , 6 years ago
Summary: | Unable to stream copy from M3u8 fragmented MP4 playlist when using input seeking → Input seeking with an M3u8 fragmented MP4 playlist causes no frames to be sent to output |
---|
comment:2 by , 6 years ago
Component: | undetermined → avformat |
---|---|
Keywords: | seek added; input seeking removed |
Reproduced by developer: | set |
Status: | new → open |
Summary: | Input seeking with an M3u8 fragmented MP4 playlist causes no frames to be sent to output → Seeking in an M3u8 fragmented MP4 playlist causes no frames to be sent to output |
comment:3 by , 6 years ago
This patch seems to solve the issue:
https://patchwork.ffmpeg.org/patch/10767/
which also seems to solve:
comment:4 by , 5 years ago
Patch has been reworked based on comments and resubmitted:
https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=1018
http://ffmpeg.org/pipermail/ffmpeg-devel/2020-April/261341.html
comment:5 by , 3 years ago
TS at least is fixed with e78d0810d1741535c95e5ae0f198977626b1cdff and fmp4 should still be fixed using https://ffmpeg.org/pipermail/ffmpeg-devel/2020-April/261343.html
comment:6 by , 3 years ago
Still broken after 92053aa26053b941a027a4fc56674d7d86ba1e5 that fixed #6850. It is now even worse, seeking forward does not work.
comment:7 by , 3 years ago
Owner: | set to |
---|
The ts patch was applied and seeking by bytes was disallowed that thus fully fixed your ts link. Now we need to apply fmp4 patch, please rework it if needed and resend.
comment:8 by , 2 years ago
Owner: | removed |
---|---|
Priority: | normal → critical |
It is now even worse, seeking forward does not work.
This indeed broke latest fmp4 stream of apple. Need to fix ASAP by applying fmp4 patches above.
It ALSO APPEARS to cause a DOS and horrible crash of terminal app on windows. Older version of fmpeg works good enough.
Older also does not work:
https://events-delivery.apple.com/1402uekefjejgldkvaqrqxgjmtehwhez/m3u8/vod_index-VEPhheWQmQZLrgakajRXoUbKAmmjVXxZ.m3u8
comment:9 by , 2 years ago
Owner: | set to |
---|
Can you look into it? This is IMHO critical status, seeking in fmp4 is completly broken after 92053aa26053b941a027a4fc56674d7d86ba1e58 which was needed to fix fragmented ts.
comment:10 by , 2 years ago
Priority: | critical → normal |
---|
comment:12 by , 2 years ago
Cc: | added |
---|---|
Priority: | normal → critical |
Any Update onto this issue? I basically thought for months that this issue was related to VideoJS as ts segments were working fine! The problem is that HEVC/AV1 and/or 4k HDR content does not work properly with .ts segments. Basically blocking any new format to be streamed as long as this issue isn't fixed! Urgently requesting a fix.
Thanks in advance
comment:13 by , 2 years ago
Priority: | critical → normal |
---|
comment:14 by , 19 months ago
The problem is that HEVC/AV1 and/or 4k HDR content does not work properly with .ts segments.
That is simply untrue.
comment:16 by , 10 months ago
Any updates on this? This should be fixed ASAP as it breaks seeking of FMP4 HLS streams on players like MPV.
comment:17 by , 4 weeks ago
comment:18 by , 4 weeks ago
I'm applying this old patch for 4 years now. Why this never been committed?
Update: It seems that the patch introduces new issues with vp9 seeking (but generally vp9 has issues as well even without the patch)
comment:19 by , 12 days ago
comment:20 by , 12 days ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
Also reproducible with FFplay, no network input required.