[FFmpeg-trac] #6067(avformat:open): HLS segment length not equal with what m3u8 reports, when ffmpeg restarts
FFmpeg
trac at avcodec.org
Mon Jan 9 01:42:55 EET 2017
#6067: HLS segment length not equal with what m3u8 reports, when ffmpeg restarts
------------------------------------+-------------------------------------
Reporter: pero | Owner: stevenliu
Type: defect | Status: open
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+-------------------------------------
Comment (by stevenliu):
localhost:ffmpeg StevenLiu$ ffmpeg -i ~/Movies/objectC/facebook.mp4 -c:v
libx264 -g 50 -an -f hls -hls_time 4 -hls_flags
+delete_segments+append_list+omit_endlist -t 14 output_test.m3u8
ffmpeg version N-82254-g75a1311 Copyright (c) 2000-2016 the FFmpeg
developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --enable-libass --enable-opengl --enable-libx264
--enable-libmp3lame --enable-gpl --enable-nonfree --prefix=/usr/local
--enable-libopencv --enable-libtesseract --enable-libspeex --enable-
libfreetype --enable-libfontconfig --enable-libfdk-aac
libavutil 55. 35.100 / 55. 35.100
libavcodec 57. 66.101 / 57. 66.101
libavformat 57. 57.100 / 57. 57.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 66.100 / 6. 66.100
libswscale 4. 3.100 / 4. 3.100
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/Users/StevenLiu/Movies/objectC/facebook.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.22.102
description : This File is Created by Easy RealMedia Tools@!
Duration: 02:00:27.85, start: 0.000000, bitrate: 893 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x480, 797 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 87 kb/s (default)
Metadata:
handler_name : SoundHandler
[libx264 @ 0x7fc349007800] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x7fc349007800] profile High, level 3.0
Output #0, hls, to 'output_test.m3u8':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
description : This File is Created by Easy RealMedia Tools@!
encoder : Lavf57.57.100
Stream #0:0(und): Video: h264 (libx264), yuv420p, 640x480, q=-1--1, 25
fps, 90k tbn, 25 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc57.66.101 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 350 fps= 79 q=-1.0 Lsize=N/A time=00:00:13.88 bitrate=N/A
speed=3.15x
video:627kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
[libx264 @ 0x7fc349007800] frame I:7 Avg QP:16.85 size: 21811
[libx264 @ 0x7fc349007800] frame P:130 Avg QP:20.10 size: 3050
[libx264 @ 0x7fc349007800] frame B:213 Avg QP:20.62 size: 436
[libx264 @ 0x7fc349007800] consecutive B-frames: 16.3% 6.3% 4.3% 73.1%
[libx264 @ 0x7fc349007800] mb I I16..4: 42.3% 37.9% 19.8%
[libx264 @ 0x7fc349007800] mb P I16..4: 6.8% 4.8% 0.3% P16..4: 27.1%
9.3% 3.5% 0.0% 0.0% skip:48.2%
[libx264 @ 0x7fc349007800] mb B I16..4: 0.1% 0.0% 0.0% B16..8: 18.4%
0.9% 0.1% direct: 0.5% skip:80.0% L0:34.5% L1:61.7% BI: 3.8%
[libx264 @ 0x7fc349007800] 8x8 transform intra:39.3% inter:79.6%
[libx264 @ 0x7fc349007800] coded y,uvDC,uvAC intra: 29.2% 51.2% 14.4%
inter: 5.7% 8.9% 0.2%
[libx264 @ 0x7fc349007800] i16 v,h,dc,p: 38% 17% 4% 41%
[libx264 @ 0x7fc349007800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 19% 18% 4%
7% 8% 6% 6% 5%
[libx264 @ 0x7fc349007800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 28% 12% 5%
6% 6% 6% 6% 5%
[libx264 @ 0x7fc349007800] i8c dc,h,v,p: 59% 24% 12% 4%
[libx264 @ 0x7fc349007800] Weighted P-Frames: Y:1.5% UV:0.0%
[libx264 @ 0x7fc349007800] ref P L0: 69.8% 16.6% 10.8% 2.8% 0.0%
[libx264 @ 0x7fc349007800] ref B L0: 92.9% 6.3% 0.9%
[libx264 @ 0x7fc349007800] ref B L1: 97.9% 2.1%
[libx264 @ 0x7fc349007800] kb/s:366.88
localhost:ffmpeg StevenLiu$ ffmpeg -i ~/Movies/objectC/facebook.mp4 -c:v
libx264 -g 50 -an -f hls -hls_time 4 -hls_flags
+delete_segments+append_list+omit_endlist -t 10 output_test.m3u8
ffmpeg version N-82254-g75a1311 Copyright (c) 2000-2016 the FFmpeg
developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --enable-libass --enable-opengl --enable-libx264
--enable-libmp3lame --enable-gpl --enable-nonfree --prefix=/usr/local
--enable-libopencv --enable-libtesseract --enable-libspeex --enable-
libfreetype --enable-libfontconfig --enable-libfdk-aac
libavutil 55. 35.100 / 55. 35.100
libavcodec 57. 66.101 / 57. 66.101
libavformat 57. 57.100 / 57. 57.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 66.100 / 6. 66.100
libswscale 4. 3.100 / 4. 3.100
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/Users/StevenLiu/Movies/objectC/facebook.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.22.102
description : This File is Created by Easy RealMedia Tools@!
Duration: 02:00:27.85, start: 0.000000, bitrate: 893 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x480, 797 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 87 kb/s (default)
Metadata:
handler_name : SoundHandler
[libx264 @ 0x7f8fda80e400] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x7f8fda80e400] profile High, level 3.0
Output #0, hls, to 'output_test.m3u8':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
description : This File is Created by Easy RealMedia Tools@!
encoder : Lavf57.57.100
Stream #0:0(und): Video: h264 (libx264), yuv420p, 640x480, q=-1--1, 25
fps, 90k tbn, 25 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc57.66.101 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 250 fps= 86 q=-1.0 Lsize=N/A time=00:00:09.88 bitrate=N/A
speed=3.39x
video:486kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
[libx264 @ 0x7f8fda80e400] frame I:5 Avg QP:17.56 size: 21163
[libx264 @ 0x7f8fda80e400] frame P:104 Avg QP:20.44 size: 3004
[libx264 @ 0x7f8fda80e400] frame B:141 Avg QP:21.53 size: 565
[libx264 @ 0x7f8fda80e400] consecutive B-frames: 21.2% 8.8% 6.0% 64.0%
[libx264 @ 0x7f8fda80e400] mb I I16..4: 48.9% 34.1% 17.0%
[libx264 @ 0x7f8fda80e400] mb P I16..4: 8.3% 5.8% 0.4% P16..4: 27.8%
8.1% 2.6% 0.0% 0.0% skip:47.0%
[libx264 @ 0x7f8fda80e400] mb B I16..4: 0.1% 0.0% 0.0% B16..8: 19.7%
1.3% 0.2% direct: 0.7% skip:78.0% L0:30.7% L1:64.4% BI: 4.9%
[libx264 @ 0x7f8fda80e400] 8x8 transform intra:38.6% inter:82.3%
[libx264 @ 0x7f8fda80e400] coded y,uvDC,uvAC intra: 25.2% 49.4% 10.5%
inter: 6.3% 10.4% 0.1%
[libx264 @ 0x7f8fda80e400] i16 v,h,dc,p: 38% 15% 3% 43%
[libx264 @ 0x7f8fda80e400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 17% 20% 4%
7% 8% 6% 6% 4%
[libx264 @ 0x7f8fda80e400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 24% 15% 4%
6% 6% 5% 6% 5%
[libx264 @ 0x7f8fda80e400] i8c dc,h,v,p: 61% 22% 13% 4%
[libx264 @ 0x7f8fda80e400] Weighted P-Frames: Y:1.9% UV:0.0%
[libx264 @ 0x7f8fda80e400] ref P L0: 68.6% 17.8% 10.8% 2.8% 0.0%
[libx264 @ 0x7f8fda80e400] ref B L0: 93.2% 6.0% 0.8%
[libx264 @ 0x7f8fda80e400] ref B L1: 98.0% 2.0%
[libx264 @ 0x7f8fda80e400] kb/s:398.29
localhost:ffmpeg StevenLiu$
localhost:ffmpeg StevenLiu$ ffmpeg -i output_test
localhost:ffmpeg StevenLiu$ cat output_test.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:4
#EXT-X-MEDIA-SEQUENCE:2
#EXTINF:4.000000,
output_test2.ts
#EXTINF:1.960000,
output_test3.ts
#EXTINF:4.000000,
output_test4.ts
#EXTINF:4.000000,
output_test5.ts
#EXTINF:1.960000,
output_test6.ts
localhost:ffmpeg StevenLiu$ ffmpeg -i output_test2.ts -i output_test3.ts
-i output_test4.ts -i output_test5.ts -i output_test6.ts
ffmpeg version N-82254-g75a1311 Copyright (c) 2000-2016 the FFmpeg
developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --enable-libass --enable-opengl --enable-libx264
--enable-libmp3lame --enable-gpl --enable-nonfree --prefix=/usr/local
--enable-libopencv --enable-libtesseract --enable-libspeex --enable-
libfreetype --enable-libfontconfig --enable-libfdk-aac
libavutil 55. 35.100 / 55. 35.100
libavcodec 57. 66.101 / 57. 66.101
libavformat 57. 57.100 / 57. 57.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 66.100 / 6. 66.100
libswscale 4. 3.100 / 4. 3.100
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
Input #0, mpegts, from 'output_test2.ts':
Duration: 00:00:04.00, start: 9.480000, bitrate: 380 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(progressive), 640x480, 25 fps, 25 tbr, 90k tbn, 50 tbc
Input #1, mpegts, from 'output_test3.ts':
Duration: 00:00:02.00, start: 13.480000, bitrate: 306 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #1:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(progressive), 640x480, 25 fps, 25 tbr, 90k tbn, 50 tbc
Input #2, mpegts, from 'output_test4.ts':
Duration: 00:00:04.00, start: 1.480000, bitrate: 345 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #2:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(progressive), 640x480, 25 fps, 25 tbr, 90k tbn, 50 tbc
Input #3, mpegts, from 'output_test5.ts':
Duration: 00:00:04.00, start: 5.480000, bitrate: 527 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #3:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(progressive), 640x480, 25 fps, 25 tbr, 90k tbn, 50 tbc
Input #4, mpegts, from 'output_test6.ts':
Duration: 00:00:02.00, start: 9.480000, bitrate: 424 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #4:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(progressive), 640x480, 25 fps, 25 tbr, 90k tbn, 50 tbc
At least one output file must be specified
localhost:ffmpeg StevenLiu$
I cannot reproduce it here
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6067#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list