Opened 7 years ago
Closed 7 years ago
#6868 closed defect (fixed)
HLS segmenter doesn't cut properly with AVC Baseline level 3.0
Reported by: | beloko | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | HLS |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
For a better Apple HLS compatibility with older devices, it's better to provide LD and SD quality streams into MPEG2-TS AVC Baseline Level 3.0. And it requires less CPU charge to decode with an old mobile processor.
Source : https://developer.apple.com/library/content/technotes/tn2224/_index.html
So I would like to produce HLS streams compliant with the Baseline 3.0 profile using FFMPEG.
In my FFMPEG command line, I use -vprofile baseline and -vlevel 3.0 arguments to provide this specification to the libx264. Like this :
ffmpeg.exe -i "D:\Video Samples\Sony_Alpha_7R_II_video-test-4K.mp4" -loglevel verbose -threads 0 -c:a libfdk_aac -sn -vcodec libx264 -vprofile baseline -vlevel 3.0 -force_key_frames "expr:gte(t,n_forced*4)" -r 25 -f hls -hls_time 4 -hls_list_size 99999 -start_number 1 -hls_segment_type mpegts "C:\Users\Beloko\Desktop\Sony_Alpha_7R_II_video-test-4K.m3u8"
To be sure the HLS segmenter works properly and create perfect TS files, I use the -force_key_frame parameter and I fix the framerate. Each TS file should be exactly 4 second long.
But unfortunately the first TS, and only the first TS hasn't the good time length. Here is the .M3U8 content.
#EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:5 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:4.042667, Sony_Alpha_7R_II_video-test-4K1.ts #EXTINF:4.000000, Sony_Alpha_7R_II_video-test-4K2.ts #EXTINF:4.000000, Sony_Alpha_7R_II_video-test-4K3.ts #EXTINF:4.000000, Sony_Alpha_7R_II_video-test-4K4.ts #EXTINF:4.000000, Sony_Alpha_7R_II_video-test-4K5.ts #EXTINF:4.000000, Sony_Alpha_7R_II_video-test-4K6.ts ...
The #EXT-X-TARGETDURATION: value should be 4 and not 5. And the first #EXTINF: value should be 4.000000 and not 4.042667.
And FFPROBE detect a duration of 00:00:04.05 instead of 00:00:04.00.
To solve this issue I found two ways :
. replace -c:a libfdk_aac by -an (this means no audio)
. or replace -vprofile baseline by -vprofile main (this means enable BFrames)
But old HLS players don't support BFrames and separated audio tracks (like multiple audio language).
I tested to encode audio with -c:a aac and -c:a libmp3lame with no more luck. And I also tested with many other video files. It produce the same issue.
Change History (12)
comment:2 by , 7 years ago
My FFMPEG build is now up to date.
I git last sources from : https://git.ffmpeg.org/ffmpeg.git
Compilation finished 20 minutes ago...
Unfortunately the first TS isn't cut properly.
Here is the command line and its verbose output :
C:\Users\Beloko\Desktop\FFMPEG>ffmpeg.exe -i "D:\Video Samples\Sony_Alpha_7R_II_video-test-4K.mp4" -loglevel verbose -threads 0 -c:a libfdk_aac -sn -vcodec libx264 -vprofile baseline -vlevel 3.0 -force_key_frames "expr:gte(t,n_forced*4)" -r 25 -f hls -hls_time 4 -hls_list_size 99999 -start_number 1 -hls_segment_type mpegts -t 10 "C:\Users\Beloko\Desktop\Sony_Alpha_7R_II_video-test-4K.m3u8" ffmpeg version N-89257-g2779d33-Reino Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.1.0 (GCC) configuration: --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Reino --enable-gray --enable-version3 --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-gpl --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libmfx --enable-avresample --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-nonfree --enable-decklink --enable-libfdk-aac libavutil 56. 3.100 / 56. 3.100 libavcodec 58. 3.105 / 58. 3.105 libavformat 58. 2.102 / 58. 2.102 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 5.100 / 7. 5.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 [h264 @ 0000014bc898de20] Reinit context to 3840x2160, pix_fmt: yuv420p Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Video Samples\Sony_Alpha_7R_II_video-test-4K.mp4': Metadata: major_brand : XAVC minor_version : 16785407 compatible_brands: XAVCiso2mp42 creation_time : 2015-06-04T10:40:51.000000Z Duration: 00:01:34.55, start: 0.000000, bitrate: 98373 kb/s Stream #0:0(eng): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/iec61966-2-4, left), 3840x2160 [SAR 1:1 DAR 16:9], 96631 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default) Metadata: creation_time : 2015-06-04T10:40:51.000000Z handler_name : Video Media Handler encoder : AVC Coding Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: creation_time : 2015-06-04T10:40:51.000000Z handler_name : Sound Media Handler Stream #0:2(eng): Data: none (rtmd / 0x646D7472), 196 kb/s (default) Metadata: creation_time : 2015-06-04T10:40:51.000000Z handler_name : Timed Metadata Media Handler timecode : 00:00:00:00 Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (pcm_s16be (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help [h264 @ 0000014bca7581c0] Reinit context to 3840x2160, pix_fmt: yuv420p [graph 0 input from stream 0:0 @ 0000014bd0a7a300] w:3840 h:2160 pixfmt:yuv420p tb:1/24000 fr:24000/1001 sar:1/1 sws_param:flags=2 [libx264 @ 0000014bc899c9a0] using SAR=1/1 [libx264 @ 0000014bc899c9a0] frame MB size (240x135) > level limit (1620) [libx264 @ 0000014bc899c9a0] DPB size (1 frames, 32400 mbs) > level limit (0 frames, 8100 mbs) [libx264 @ 0000014bc899c9a0] MB rate (810000) > level limit (40500) [libx264 @ 0000014bc899c9a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 0000014bc899c9a0] profile Constrained Baseline, level 3.0 [libx264 @ 0000014bc899c9a0] 264 - core 148 r2795M aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [graph_1_in_0_1 @ 0000014bd0a7ab20] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 [hls @ 0000014bc897d5c0] Opening 'C:\Users\Beloko\Desktop\Sony_Alpha_7R_II_video-test-4K1.ts' for writing [mpegts @ 0000014bd797d1e0] muxrate VBR, pcr every 2 pkts, sdt every 2147483647, pat/pmt every 2147483647 pkts Output #0, hls, to 'C:\Users\Beloko\Desktop\Sony_Alpha_7R_II_video-test-4K.m3u8': Metadata: major_brand : XAVC minor_version : 16785407 compatible_brands: XAVCiso2mp42 encoder : Lavf58.2.102 Stream #0:0(eng): Video: h264 (libx264), 1 reference frame, yuv420p(progressive, left), 3840x2160 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 90k tbn, 25 tbc (default) Metadata: creation_time : 2015-06-04T10:40:51.000000Z handler_name : Video Media Handler encoder : Lavc58.3.105 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1(eng): Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, delay 2048, 139 kb/s (default) Metadata: creation_time : 2015-06-04T10:40:51.000000Z handler_name : Sound Media Handler encoder : Lavc58.3.105 libfdk_aac *** 1 dup! Last message repeated 1 times *** 1 dup!5 fps= 54 q=28.0 size=N/A time=00:00:02.41 bitrate=N/A dup=2 drop=0 speed=2.37x *** 1 dup!9 fps= 52 q=28.0 size=N/A time=00:00:03.41 bitrate=N/A dup=3 drop=0 speed=2.23x *** 1 dup!2 fps= 50 q=28.0 size=N/A time=00:00:03.96 bitrate=N/A dup=4 drop=0 speed=1.94x *** 1 dup!7 fps= 50 q=28.0 size=N/A time=00:00:04.94 bitrate=N/A dup=5 drop=0 speed=1.94x [hls @ 0000014bc897d5c0] Opening 'C:\Users\Beloko\Desktop\Sony_Alpha_7R_II_video-test-4K2.ts' for writing [hls @ 0000014bc897d5c0] Opening 'C:\Users\Beloko\Desktop\Sony_Alpha_7R_II_video-test-4K.m3u8.tmp' for writing [hls muxer @ 0000014bca772980] EXT-X-MEDIA-SEQUENCE:1 *** 1 dup! *** 1 dup!0 fps= 44 q=28.0 size=N/A time=00:00:07.40 bitrate=N/A dup=7 drop=0 speed=1.81x *** 1 dup!5 fps= 42 q=28.0 size=N/A time=00:00:07.95 bitrate=N/A dup=8 drop=0 speed=1.73x *** 1 dup!9 fps= 30 q=28.0 size=N/A time=00:00:09.40 bitrate=N/A dup=9 drop=0 speed=1.24x No more output streams to write to, finishing.:09.42 bitrate=N/A dup=10 drop=0 speed=1.07x [hls @ 0000014bc897d5c0] Opening 'C:\Users\Beloko\Desktop\Sony_Alpha_7R_II_video-test-4K3.ts' for writing [hls @ 0000014bc897d5c0] Opening 'C:\Users\Beloko\Desktop\Sony_Alpha_7R_II_video-test-4K.m3u8.tmp' for writing [hls muxer @ 0000014bca772980] EXT-X-MEDIA-SEQUENCE:1 [hls @ 0000014bc897d5c0] Opening 'C:\Users\Beloko\Desktop\Sony_Alpha_7R_II_video-test-4K.m3u8.tmp' for writing [hls muxer @ 0000014bca772980] EXT-X-MEDIA-SEQUENCE:1 frame= 250 fps= 21 q=-1.0 Lsize=N/A time=00:00:10.00 bitrate=N/A dup=10 drop=0 speed=0.847x video:25931kB audio:172kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (D:\Video Samples\Sony_Alpha_7R_II_video-test-4K.mp4): Input stream #0:0 (video): 250 packets read (59642071 bytes); 242 frames decoded; Input stream #0:1 (audio): 480 packets read (1921920 bytes); 480 frames decoded (480480 samples); Input stream #0:2 (data): 11 packets read (11264 bytes); Total: 741 packets (61575255 bytes) demuxed Output file #0 (C:\Users\Beloko\Desktop\Sony_Alpha_7R_II_video-test-4K.m3u8): Output stream #0:0 (video): 250 frames encoded; 250 packets muxed (26552883 bytes); Output stream #0:1 (audio): 469 frames encoded (480000 samples); 471 packets muxed (175841 bytes); Total: 721 packets (26728724 bytes) muxed [libx264 @ 0000014bc899c9a0] frame I:4 Avg QP:12.68 size:623730 [libx264 @ 0000014bc899c9a0] frame P:246 Avg QP:17.49 size: 97794 [libx264 @ 0000014bc899c9a0] mb I I16..4: 69.4% 0.0% 30.6% [libx264 @ 0000014bc899c9a0] mb P I16..4: 1.8% 0.0% 1.5% P16..4: 16.2% 2.5% 1.4% 0.0% 0.0% skip:76.5% [libx264 @ 0000014bc899c9a0] coded y,uvDC,uvAC intra: 40.9% 47.6% 19.1% inter: 13.5% 15.0% 0.8% [libx264 @ 0000014bc899c9a0] i16 v,h,dc,p: 65% 19% 10% 6% [libx264 @ 0000014bc899c9a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 18% 21% 8% 7% 6% 6% 6% 7% [libx264 @ 0000014bc899c9a0] i8c dc,h,v,p: 66% 19% 12% 3% [libx264 @ 0000014bc899c9a0] kb/s:21241.80 C:\Users\Beloko\Desktop\FFMPEG>type "C:\Users\Beloko\Desktop\Sony_Alpha_7R_II_video-test-4K.m3u8" #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:5 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:4.042667, Sony_Alpha_7R_II_video-test-4K1.ts #EXTINF:4.000000, Sony_Alpha_7R_II_video-test-4K2.ts #EXTINF:2.000000, Sony_Alpha_7R_II_video-test-4K3.ts #EXT-X-ENDLIST
I got the MP4 video source file from here :
http://4kmedia.org/sony-alpha-7r-2-uhd-4k-demo/
comment:3 by , 7 years ago
Now tested with the famous and common Big Buck Bunny movie.
Same issue.
C:\Users\Beloko\Desktop\FFMPEG>ffmpeg.exe -i "http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4" -loglevel verbose -threads 0 -c:a libfdk_aac -sn -vcodec libx264 -vprofile baseline -vlevel 3.0 -force_key_frames "expr:gte(t,n_forced*4)" -r 25 -f hls -hls_time 4 -hls_list_size 99999 -start_number 1 -hls_segment_type mpegts -t 10 "C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8" ffmpeg version N-89257-g2779d33-Reino Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.1.0 (GCC) configuration: --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Reino --enable-gray --enable-version3 --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-gpl --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libmfx --enable-avresample --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-nonfree --enable-decklink --enable-libfdk-aac libavutil 56. 3.100 / 56. 3.100 libavcodec 58. 3.105 / 58. 3.105 libavformat 58. 2.102 / 58. 2.102 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 5.100 / 7. 5.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 [h264 @ 000001c41bfe0000] Reinit context to 1920x1088, pix_fmt: yuv420p Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2013-12-16T17:44:39.000000Z title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation composer : Sacha Goedegebure Duration: 00:10:34.53, start: 0.000000, bitrate: 3481 kb/s Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Side data: audio service type: main Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:2 -> #0:1 (ac3 (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help [h264 @ 000001c41bfca920] Reinit context to 1920x1088, pix_fmt: yuv420p [graph 0 input from stream 0:0 @ 000001c41d65eea0] w:1920 h:1080 pixfmt:yuv420p tb:1/30000 fr:30/1 sar:1/1 sws_param:flags=2 [libx264 @ 000001c41cb59500] using SAR=1/1 [libx264 @ 000001c41cb59500] frame MB size (120x68) > level limit (1620) [libx264 @ 000001c41cb59500] DPB size (1 frames, 8160 mbs) > level limit (0 frames, 8100 mbs) [libx264 @ 000001c41cb59500] MB rate (204000) > level limit (40500) [libx264 @ 000001c41cb59500] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 000001c41cb59500] profile Constrained Baseline, level 3.0 [libx264 @ 000001c41cb59500] 264 - core 148 r2795M aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 *** 2 dup! Past duration 0.666664 too large Past duration 0.833321 too large Past duration 0.999992 too large [graph_1_in_0_2 @ 000001c41cb585c0] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f [format_out_0_1 @ 000001c41cb5b180] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1' [auto_resampler_0 @ 000001c42474b320] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:6 chl:5.1 fmt:s16 r:48000Hz [hls @ 000001c41c8504e0] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts' for writing [mpegts @ 000001c424809d00] muxrate VBR, pcr every 2 pkts, sdt every 2147483647, pat/pmt every 2147483647 pkts Output #0, hls, to 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 composer : Sacha Goedegebure title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation encoder : Lavf58.2.102 Stream #0:0(und): Video: h264 (libx264), 1 reference frame, yuv420p(progressive, left), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 90k tbn, 25 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler encoder : Lavc58.3.105 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1(und): Audio: aac (libfdk_aac), 48000 Hz, 5.1, s16, delay 2048, 488 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler encoder : Lavc58.3.105 libfdk_aac Side data: audio service type: main *** dropping frame 13 from stream 0 at ts 11 *** dropping frame 18 from stream 0 at ts 16 *** dropping frame 23 from stream 0 at ts 21 *** dropping frame 28 from stream 0 at ts 26 *** dropping frame 33 from stream 0 at ts 31 *** dropping frame 38 from stream 0 at ts 36 *** dropping frame 43 from stream 0 at ts 41 *** dropping frame 48 from stream 0 at ts 46 *** dropping frame 53 from stream 0 at ts 51 *** dropping frame 58 from stream 0 at ts 56 *** dropping frame 63 from stream 0 at ts 6100:02.38 bitrate=N/A dup=2 drop=10 speed=4.64x *** dropping frame 68 from stream 0 at ts 66 *** dropping frame 73 from stream 0 at ts 71 *** dropping frame 78 from stream 0 at ts 76 *** dropping frame 83 from stream 0 at ts 81 *** dropping frame 88 from stream 0 at ts 86 *** dropping frame 93 from stream 0 at ts 91 *** dropping frame 98 from stream 0 at ts 96 *** dropping frame 103 from stream 0 at ts 101 *** dropping frame 108 from stream 0 at ts 106 *** dropping frame 113 from stream 0 at ts 111 *** dropping frame 118 from stream 0 at ts 116 *** dropping frame 123 from stream 0 at ts 121:04.77 bitrate=N/A dup=2 drop=22 speed=4.71x *** dropping frame 128 from stream 0 at ts 126 *** dropping frame 133 from stream 0 at ts 131 *** dropping frame 138 from stream 0 at ts 136 *** dropping frame 143 from stream 0 at ts 141 *** dropping frame 148 from stream 0 at ts 146 *** dropping frame 153 from stream 0 at ts 151 [hls @ 000001c41c8504e0] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny2.ts' for writing [hls @ 000001c41c8504e0] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 000001c41cb58720] EXT-X-MEDIA-SEQUENCE:1 *** dropping frame 158 from stream 0 at ts 156 *** dropping frame 163 from stream 0 at ts 161 *** dropping frame 168 from stream 0 at ts 166:06.63 bitrate=N/A dup=2 drop=31 speed=4.38x *** dropping frame 173 from stream 0 at ts 171 *** dropping frame 178 from stream 0 at ts 176 *** dropping frame 183 from stream 0 at ts 181 *** dropping frame 188 from stream 0 at ts 186:07.18 bitrate=N/A dup=2 drop=35 speed=3.56x *** dropping frame 193 from stream 0 at ts 191 *** dropping frame 198 from stream 0 at ts 196 *** dropping frame 203 from stream 0 at ts 201:07.72 bitrate=N/A dup=2 drop=38 speed=3.05x *** dropping frame 208 from stream 0 at ts 206 *** dropping frame 213 from stream 0 at ts 211:08.14 bitrate=N/A dup=2 drop=40 speed=2.68x *** dropping frame 218 from stream 0 at ts 216 *** dropping frame 223 from stream 0 at ts 221:08.61 bitrate=N/A dup=2 drop=42 speed=2.42x *** dropping frame 228 from stream 0 at ts 226 *** dropping frame 233 from stream 0 at ts 231 *** dropping frame 238 from stream 0 at ts 236:09.13 bitrate=N/A dup=2 drop=45 speed=2.25x *** dropping frame 243 from stream 0 at ts 241 *** dropping frame 248 from stream 0 at ts 246 No more output streams to write to, finishing.:09.62 bitrate=N/A dup=2 drop=48 speed= 2.1x [hls @ 000001c41c8504e0] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny3.ts' for writing [hls @ 000001c41c8504e0] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 000001c41cb58720] EXT-X-MEDIA-SEQUENCE:1 [hls @ 000001c41c8504e0] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 000001c41cb58720] EXT-X-MEDIA-SEQUENCE:1 frame= 250 fps= 49 q=-1.0 Lsize=N/A time=00:00:10.00 bitrate=N/A dup=2 drop=48 speed=1.94x video:3605kB audio:599kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4): Input stream #0:0 (video): 307 packets read (3019729 bytes); 298 frames decoded; Input stream #0:1 (audio): 21 packets read (10080 bytes); Input stream #0:2 (audio): 316 packets read (404480 bytes); 316 frames decoded (485376 samples); Total: 644 packets (3434289 bytes) demuxed Output file #0 (C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8): Output stream #0:0 (video): 250 frames encoded; 250 packets muxed (3692000 bytes); Output stream #0:1 (audio): 469 frames encoded (480000 samples); 471 packets muxed (613842 bytes); Total: 721 packets (4305842 bytes) muxed [libx264 @ 000001c41cb59500] frame I:6 Avg QP: 9.61 size: 38284 [libx264 @ 000001c41cb59500] frame P:244 Avg QP:17.75 size: 14187 [libx264 @ 000001c41cb59500] mb I I16..4: 93.2% 0.0% 6.8% [libx264 @ 000001c41cb59500] mb P I16..4: 14.7% 0.0% 0.7% P16..4: 13.5% 2.7% 1.1% 0.0% 0.0% skip:67.3% [libx264 @ 000001c41cb59500] coded y,uvDC,uvAC intra: 3.5% 18.9% 4.6% inter: 4.8% 9.4% 1.9% [libx264 @ 000001c41cb59500] i16 v,h,dc,p: 79% 14% 5% 3% [libx264 @ 000001c41cb59500] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 14% 30% 4% 5% 4% 5% 3% 5% [libx264 @ 000001c41cb59500] i8c dc,h,v,p: 76% 13% 10% 1% [libx264 @ 000001c41cb59500] kb/s:2953.10 C:\Users\Beloko\Desktop\FFMPEG>type "C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8" #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:5 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:4.042667, Big_Buck_Bunny1.ts #EXTINF:4.000000, Big_Buck_Bunny2.ts #EXTINF:2.000000, Big_Buck_Bunny3.ts #EXT-X-ENDLIST
comment:4 by , 7 years ago
Now same FFMPEG command line using BBB as video source file.
Just add the new -hls_flags split_by_time parameter.
C:\Users\Beloko\Desktop\FFMPEG>ffmpeg_x64.exe -i "http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4" -loglevel verbose -threads 0 -c:a libfdk_aac -sn -vcodec libx264 -vprofile baseline -vlevel 3.0 -force_key_frames "expr:gte(t,n_forced*4)" -r 25 -f hls -hls_time 4 -hls_flags split_by_time -hls_list_size 99999 -start_number 1 -hls_segment_type mpegts -t 10 "C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8" ffmpeg version N-88980-g5f1bb25-Reino Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.1.0 (GCC) configuration: --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Reino --enable-gray --enable-version3 --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-gpl --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libmfx --enable-avresample --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-nonfree --enable-decklink --enable-libfdk-aac libavutil 56. 0.100 / 56. 0.100 libavcodec 58. 3.100 / 58. 3.100 libavformat 58. 2.100 / 58. 2.100 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 0.101 / 7. 0.101 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 [h264 @ 0000021ace0610a0] Reinit context to 1920x1088, pix_fmt: yuv420p Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2013-12-16T17:44:39.000000Z title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation composer : Sacha Goedegebure Duration: 00:10:34.53, start: 0.000000, bitrate: 3481 kb/s Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Side data: audio service type: main Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:2 -> #0:1 (ac3 (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help [h264 @ 0000021ace056020] Reinit context to 1920x1088, pix_fmt: yuv420p [graph 0 input from stream 0:0 @ 0000021ace0817a0] w:1920 h:1080 pixfmt:yuv420p tb:1/30000 fr:30/1 sar:1/1 sws_param:flags=2 [libx264 @ 0000021acea912e0] using SAR=1/1 [libx264 @ 0000021acea912e0] frame MB size (120x68) > level limit (1620) [libx264 @ 0000021acea912e0] DPB size (1 frames, 8160 mbs) > level limit (0 frames, 8100 mbs) [libx264 @ 0000021acea912e0] MB rate (204000) > level limit (40500) [libx264 @ 0000021acea912e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 0000021acea912e0] profile Constrained Baseline, level 3.0 [libx264 @ 0000021acea912e0] 264 - core 148 r2795M aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 *** 2 dup! Past duration 0.666664 too large Past duration 0.833321 too large Past duration 0.999992 too large [graph_1_in_0_2 @ 0000021ad239e9c0] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f [format_out_0_1 @ 0000021ad239ece0] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1' [auto_resampler_0 @ 0000021ad239e6e0] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:6 chl:5.1 fmt:s16 r:48000Hz [hls @ 0000021ace7804e0] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts' for writing [mpegts @ 0000021ad6752ca0] muxrate VBR, pcr every 2 pkts, sdt every 2147483647, pat/pmt every 2147483647 pkts Output #0, hls, to 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 composer : Sacha Goedegebure title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation encoder : Lavf58.2.100 Stream #0:0(und): Video: h264 (libx264), 1 reference frame, yuv420p(progressive, left), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 90k tbn, 25 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler encoder : Lavc58.3.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1(und): Audio: aac (libfdk_aac), 48000 Hz, 5.1, s16, delay 2048, 488 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler encoder : Lavc58.3.100 libfdk_aac Side data: audio service type: main *** dropping frame 13 from stream 0 at ts 11 *** dropping frame 18 from stream 0 at ts 16 *** dropping frame 23 from stream 0 at ts 21 *** dropping frame 28 from stream 0 at ts 26 *** dropping frame 33 from stream 0 at ts 31 *** dropping frame 38 from stream 0 at ts 36 *** dropping frame 43 from stream 0 at ts 41 *** dropping frame 48 from stream 0 at ts 46 *** dropping frame 53 from stream 0 at ts 51 *** dropping frame 58 from stream 0 at ts 56 *** dropping frame 63 from stream 0 at ts 6100:02.38 bitrate=N/A dup=2 drop=10 speed=4.71x *** dropping frame 68 from stream 0 at ts 66 *** dropping frame 73 from stream 0 at ts 71 *** dropping frame 78 from stream 0 at ts 76 *** dropping frame 83 from stream 0 at ts 81 *** dropping frame 88 from stream 0 at ts 86 *** dropping frame 93 from stream 0 at ts 91 *** dropping frame 98 from stream 0 at ts 96 *** dropping frame 103 from stream 0 at ts 101 *** dropping frame 108 from stream 0 at ts 106 *** dropping frame 113 from stream 0 at ts 111 *** dropping frame 118 from stream 0 at ts 116 *** dropping frame 123 from stream 0 at ts 121 *** dropping frame 128 from stream 0 at ts 126 *** dropping frame 133 from stream 0 at ts 131:04.82 bitrate=N/A dup=2 drop=24 speed=4.77x *** dropping frame 138 from stream 0 at ts 136 *** dropping frame 143 from stream 0 at ts 141 *** dropping frame 148 from stream 0 at ts 146 [hls @ 0000021ace7804e0] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny2.ts' for writing [hls @ 0000021ace7804e0] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 0000021acea89380] EXT-X-MEDIA-SEQUENCE:1 *** dropping frame 153 from stream 0 at ts 151 *** dropping frame 158 from stream 0 at ts 156 *** dropping frame 163 from stream 0 at ts 161 *** dropping frame 168 from stream 0 at ts 166 *** dropping frame 173 from stream 0 at ts 171:06.69 bitrate=N/A dup=2 drop=32 speed=4.38x *** dropping frame 178 from stream 0 at ts 176 *** dropping frame 183 from stream 0 at ts 181 *** dropping frame 188 from stream 0 at ts 186 *** dropping frame 193 from stream 0 at ts 191 *** dropping frame 198 from stream 0 at ts 196:07.65 bitrate=N/A dup=2 drop=37 speed=3.71x *** dropping frame 203 from stream 0 at ts 201 *** dropping frame 208 from stream 0 at ts 206:08.14 bitrate=N/A dup=2 drop=39 speed=3.13x *** dropping frame 213 from stream 0 at ts 211 *** dropping frame 218 from stream 0 at ts 216:08.61 bitrate=N/A dup=2 drop=41 speed=2.77x *** dropping frame 223 from stream 0 at ts 221 *** dropping frame 228 from stream 0 at ts 226 *** dropping frame 233 from stream 0 at ts 231:09.10 bitrate=N/A dup=2 drop=44 speed=2.48x *** dropping frame 238 from stream 0 at ts 236 *** dropping frame 243 from stream 0 at ts 241 *** dropping frame 248 from stream 0 at ts 246:09.57 bitrate=N/A dup=2 drop=47 speed=2.28x No more output streams to write to, finishing. [hls @ 0000021ace7804e0] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny3.ts' for writing [hls @ 0000021ace7804e0] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 0000021acea89380] EXT-X-MEDIA-SEQUENCE:1 [hls @ 0000021ace7804e0] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 0000021acea89380] EXT-X-MEDIA-SEQUENCE:1 frame= 250 fps= 50 q=-1.0 Lsize=N/A time=00:00:10.00 bitrate=N/A dup=2 drop=48 speed=2.02x video:3605kB audio:599kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4): Input stream #0:0 (video): 307 packets read (3019729 bytes); 298 frames decoded; Input stream #0:1 (audio): 21 packets read (10080 bytes); Input stream #0:2 (audio): 316 packets read (404480 bytes); 316 frames decoded (485376 samples); Total: 644 packets (3434289 bytes) demuxed Output file #0 (C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8): Output stream #0:0 (video): 250 frames encoded; 250 packets muxed (3692000 bytes); Output stream #0:1 (audio): 469 frames encoded (480000 samples); 471 packets muxed (613842 bytes); Total: 721 packets (4305842 bytes) muxed [libx264 @ 0000021acea912e0] frame I:6 Avg QP: 9.61 size: 38284 [libx264 @ 0000021acea912e0] frame P:244 Avg QP:17.75 size: 14187 [libx264 @ 0000021acea912e0] mb I I16..4: 93.2% 0.0% 6.8% [libx264 @ 0000021acea912e0] mb P I16..4: 14.7% 0.0% 0.7% P16..4: 13.5% 2.7% 1.1% 0.0% 0.0% skip:67.3% [libx264 @ 0000021acea912e0] coded y,uvDC,uvAC intra: 3.5% 18.9% 4.6% inter: 4.8% 9.4% 1.9% [libx264 @ 0000021acea912e0] i16 v,h,dc,p: 79% 14% 5% 3% [libx264 @ 0000021acea912e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 14% 30% 4% 5% 4% 5% 3% 5% [libx264 @ 0000021acea912e0] i8c dc,h,v,p: 76% 13% 10% 1% [libx264 @ 0000021acea912e0] kb/s:2953.10
The #EXTINF value of the first TS file has changed to 4.002667 instead of 4.042667.
However it's not 4.000000 as expected.
C:\Users\Beloko\Desktop\FFMPEG>type "C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8" #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:5 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:4.002667, Big_Buck_Bunny1.ts #EXTINF:4.000000, Big_Buck_Bunny2.ts #EXTINF:2.040000, Big_Buck_Bunny3.ts #EXT-X-ENDLIST
But FFPROBE said the TS file is really 4 second long.
C:\Users\Beloko\Desktop\FFMPEG>ffprobe "C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts" ffprobe version N-88980-g5f1bb25-Reino Copyright (c) 2007-2017 the FFmpeg developers built with gcc 7.1.0 (GCC) configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Reino --enable-gray --enable-version3 --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-gpl --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libmfx --enable-avresample --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 --enable-nonfree --enable-decklink --enable-libfdk-aac libavutil 56. 0.100 / 56. 0.100 libavcodec 58. 3.100 / 58. 3.100 libavformat 58. 2.100 / 58. 2.100 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 0.101 / 7. 0.101 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 Input #0, mpegts, from 'C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts': Duration: 00:00:04.00, start: 1.400000, bitrate: 1261 kb/s Program 1 Metadata: service_name : Big Buck Bunny, Sunflower version service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101](und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp, 491 kb/s
comment:5 by , 7 years ago
I am able to reproduce the issue. I have done a quick fix, so that the duration is exactly 4.00000. The patch has been submitted for review. http://ffmpeg.org/pipermail/ffmpeg-devel/2017-November/221077.html
comment:6 by , 7 years ago
Thank you for the fix.
I updated my local repository from the official GIT.
But your fix doesn't appear yet.
So I merged your code in the hlsenc.c of my local repository.
And make a new FFMPEG.
Here is the result detail :
ffmpeg.exe -i "http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4" -loglevel verbose -threads 0 -c:a libmp3lame -sn -vcodec libx264 -vprofile baseline -vlevel 3.0 -force_key_frames "expr:gte(t,n_forced*4)" -r 25 -g 25 -f hls -hls_time 4 -hls_list_size 99999 -start_number 1 -hls_segment_type mpegts -t 10 "C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8" ffmpeg version N-89288-g2ba6d7c-Reino Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.1.0 (GCC) configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Reino --enable-gray --enable-version3 --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-gpl --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libmfx --enable-avresample --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 libavutil 56. 3.100 / 56. 3.100 libavcodec 58. 6.101 / 58. 6.101 libavformat 58. 2.103 / 58. 2.103 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 5.100 / 7. 5.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 [h264 @ 08fb7e60] Reinit context to 1920x1088, pix_fmt: yuv420p Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2013-12-16T17:44:39.000000Z title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation composer : Sacha Goedegebure Duration: 00:10:34.53, start: 0.000000, bitrate: 3481 kb/s Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Side data: audio service type: main Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:2 -> #0:1 (ac3 (native) -> mp3 (libmp3lame)) Press [q] to stop, [?] for help [h264 @ 098ad400] Reinit context to 1920x1088, pix_fmt: yuv420p [graph 0 input from stream 0:0 @ 08fd9d60] w:1920 h:1080 pixfmt:yuv420p tb:1/30000 fr:30/1 sar:1/1 sws_param:flags=2 [libx264 @ 08fbb1c0] using SAR=1/1 [libx264 @ 08fbb1c0] frame MB size (120x68) > level limit (1620) [libx264 @ 08fbb1c0] DPB size (1 frames, 8160 mbs) > level limit (0 frames, 8100 mbs) [libx264 @ 08fbb1c0] MB rate (204000) > level limit (40500) [libx264 @ 08fbb1c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 08fbb1c0] profile Constrained Baseline, level 3.0 [libx264 @ 08fbb1c0] 264 - core 148 r2795M aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 *** 2 dup! Past duration 0.666664 too large Past duration 0.833321 too large Past duration 0.999992 too large [graph_1_in_0_2 @ 08fd9b60] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f [format_out_0_1 @ 08fd9ce0] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1' [auto_resampler_0 @ 08fda460] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:fltp r:48000Hz [hls @ 08fadb80] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts' for writing [mpegts @ 0e3acd80] muxrate VBR, pcr every 2 pkts, sdt every 2147483647, pat/pmt every 2147483647 pkts Output #0, hls, to 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 composer : Sacha Goedegebure title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation encoder : Lavf58.2.103 Stream #0:0(und): Video: h264 (libx264), 1 reference frame, yuv420p(progressive, left), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 90k tbn, 25 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler encoder : Lavc58.6.101 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1(und): Audio: mp3 (libmp3lame), 48000 Hz, stereo, fltp, delay 1105 (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler encoder : Lavc58.6.101 libmp3lame Side data: audio service type: main *** dropping frame 13 from stream 0 at ts 11 *** dropping frame 18 from stream 0 at ts 16 *** dropping frame 23 from stream 0 at ts 21 *** dropping frame 28 from stream 0 at ts 26 *** dropping frame 33 from stream 0 at ts 310:01.29 bitrate=N/A dup=2 drop=4 speed=2.08x *** dropping frame 38 from stream 0 at ts 36 *** dropping frame 43 from stream 0 at ts 41 *** dropping frame 48 from stream 0 at ts 46 *** dropping frame 53 from stream 0 at ts 51 *** dropping frame 58 from stream 0 at ts 56 *** dropping frame 63 from stream 0 at ts 61 *** dropping frame 68 from stream 0 at ts 66 *** dropping frame 73 from stream 0 at ts 71 *** dropping frame 78 from stream 0 at ts 76 *** dropping frame 83 from stream 0 at ts 8100:02.83 bitrate=N/A dup=2 drop=14 speed=2.51x *** dropping frame 88 from stream 0 at ts 86 *** dropping frame 93 from stream 0 at ts 91 *** dropping frame 98 from stream 0 at ts 9600:03.76 bitrate=N/A dup=2 drop=17 speed=2.23x *** dropping frame 103 from stream 0 at ts 101 *** dropping frame 108 from stream 0 at ts 106 *** dropping frame 113 from stream 0 at ts 111:04.24 bitrate=N/A dup=2 drop=20 speed=1.62x *** dropping frame 118 from stream 0 at ts 116 *** dropping frame 123 from stream 0 at ts 121 *** dropping frame 128 from stream 0 at ts 126 *** dropping frame 133 from stream 0 at ts 131 *** dropping frame 138 from stream 0 at ts 136:05.20 bitrate=N/A dup=2 drop=25 speed=1.63x [hls @ 08fadb80] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny2.ts' for writing [hls @ 08fadb80] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 08fab6e0] EXT-X-MEDIA-SEQUENCE:1 *** dropping frame 143 from stream 0 at ts 141 *** dropping frame 148 from stream 0 at ts 146 *** dropping frame 153 from stream 0 at ts 151:05.68 bitrate=N/A dup=2 drop=28 speed=1.53x *** dropping frame 158 from stream 0 at ts 156 *** dropping frame 163 from stream 0 at ts 161 *** dropping frame 168 from stream 0 at ts 166:06.16 bitrate=N/A dup=2 drop=31 speed=1.43x *** dropping frame 173 from stream 0 at ts 171:06.64 bitrate=N/A dup=2 drop=32 speed=1.37x *** dropping frame 178 from stream 0 at ts 176 *** dropping frame 183 from stream 0 at ts 181:07.12 bitrate=N/A dup=2 drop=34 speed= 1.3x *** dropping frame 188 from stream 0 at ts 186:07.12 bitrate=N/A dup=2 drop=35 speed=1.18x *** dropping frame 193 from stream 0 at ts 191:07.60 bitrate=N/A dup=2 drop=36 speed=1.15x *** dropping frame 198 from stream 0 at ts 196:07.60 bitrate=N/A dup=2 drop=37 speed=1.04x *** dropping frame 203 from stream 0 at ts 201:08.08 bitrate=N/A dup=2 drop=38 speed=1.03x *** dropping frame 208 from stream 0 at ts 206:08.08 bitrate=N/A dup=2 drop=39 speed=0.926x *** dropping frame 213 from stream 0 at ts 211:08.08 bitrate=N/A dup=2 drop=40 speed=0.859x *** dropping frame 218 from stream 0 at ts 216:08.56 bitrate=N/A dup=2 drop=41 speed=0.843x *** dropping frame 223 from stream 0 at ts 221:08.56 bitrate=N/A dup=2 drop=42 speed=0.804x *** dropping frame 228 from stream 0 at ts 226 *** dropping frame 233 from stream 0 at ts 231:09.04 bitrate=N/A dup=2 drop=44 speed= 0.8x *** dropping frame 238 from stream 0 at ts 236 [hls @ 08fadb80] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny3.ts' for writing [hls @ 08fadb80] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 08fab6e0] EXT-X-MEDIA-SEQUENCE:1 *** dropping frame 243 from stream 0 at ts 241:09.52 bitrate=N/A dup=2 drop=46 speed=0.796x *** dropping frame 248 from stream 0 at ts 246 No more output streams to write to, finishing.:09.55 bitrate=N/A dup=2 drop=48 speed=0.741x [hls @ 08fadb80] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 08fab6e0] EXT-X-MEDIA-SEQUENCE:1 frame= 250 fps= 19 q=-1.0 Lsize=N/A time=00:00:10.00 bitrate=N/A dup=2 drop=48 speed=0.75x video:4054kB audio:157kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4): Input stream #0:0 (video): 307 packets read (3019729 bytes); 298 frames decoded; Input stream #0:1 (audio): 21 packets read (10080 bytes); Input stream #0:2 (audio): 316 packets read (404480 bytes); 316 frames decoded (485376 samples); Total: 644 packets (3434289 bytes) demuxed Output file #0 (C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8): Output stream #0:0 (video): 250 frames encoded; 250 packets muxed (4151304 bytes); Output stream #0:1 (audio): 417 frames encoded (480000 samples); 418 packets muxed (160512 bytes); Total: 668 packets (4311816 bytes) muxed [libx264 @ 08fbb1c0] frame I:13 Avg QP:11.25 size: 65304 [libx264 @ 08fbb1c0] frame P:237 Avg QP:17.86 size: 13931 [libx264 @ 08fbb1c0] mb I I16..4: 86.5% 0.0% 13.5% [libx264 @ 08fbb1c0] mb P I16..4: 14.9% 0.0% 0.7% P16..4: 13.4% 2.7% 1.1% 0.0% 0.0% skip:67.3% [libx264 @ 08fbb1c0] coded y,uvDC,uvAC intra: 5.1% 21.0% 6.9% inter: 4.7% 9.2% 1.8% [libx264 @ 08fbb1c0] i16 v,h,dc,p: 78% 14% 5% 3% [libx264 @ 08fbb1c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 16% 28% 5% 6% 4% 6% 3% 5% [libx264 @ 08fbb1c0] i8c dc,h,v,p: 75% 13% 10% 1% [libx264 @ 08fbb1c0] kb/s:3320.54 C:\Users\Beloko\Desktop\FFMPEG>type "C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8" #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:5 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:4.023022, Big_Buck_Bunny1.ts #EXTINF:4.000000, Big_Buck_Bunny2.ts #EXTINF:2.000000, Big_Buck_Bunny3.ts #EXT-X-ENDLIST C:\Users\Beloko\Desktop\FFMPEG>ffprobe "C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts" ffprobe version N-88980-g5f1bb25-Reino Copyright (c) 2007-2017 the FFmpeg developers built with gcc 7.1.0 (GCC) configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Reino --enable-gray --enable-version3 --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-gpl --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libmfx --enable-avresample --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 --enable-nonfree --enable-decklink --enable-libfdk-aac libavutil 56. 0.100 / 56. 0.100 libavcodec 58. 3.100 / 58. 3.100 libavformat 58. 2.100 / 58. 2.100 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 0.101 / 7. 0.101 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 Input #0, mpegts, from 'C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts': Duration: 00:00:04.02, start: 1.400000, bitrate: 1112 kb/s Program 1 Metadata: service_name : Big Buck Bunny, Sunflower version service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101](und): Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
follow-up: 8 comment:7 by , 7 years ago
Tested with Zeranoe build give the same result.
ffmpeg.exe -i "http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4" -loglevel verbose -threads 0 -c:a libmp3lame -sn -vcodec libx264 -vprofile baseline -vlevel 3.0 -force_key_frames "expr:gte(t,n_forced*4)" -r 25 -g 25 -f hls -hls_time 4 -hls_list_size 99999 -start_number 1 -hls_segment_type mpegts -t 10 "C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8" ffmpeg version N-89212-ga60b2425c3 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.2.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx libavutil 56. 2.100 / 56. 2.100 libavcodec 58. 3.105 / 58. 3.105 libavformat 58. 2.102 / 58. 2.102 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 2.102 / 7. 2.102 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 [h264 @ 000001e9c64af7e0] Reinit context to 1920x1088, pix_fmt: yuv420p Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2013-12-16T17:44:39.000000Z title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation composer : Sacha Goedegebure Duration: 00:10:34.53, start: 0.000000, bitrate: 3481 kb/s Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Side data: audio service type: main Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:2 -> #0:1 (ac3 (native) -> mp3 (libmp3lame)) Press [q] to stop, [?] for help [h264 @ 000001e9c649a180] Reinit context to 1920x1088, pix_fmt: yuv420p [graph 0 input from stream 0:0 @ 000001e9c701eec0] w:1920 h:1080 pixfmt:yuv420p tb:1/30000 fr:30/1 sar:1/1 sws_param:flags=2 [libx264 @ 000001e9c6c20940] using SAR=1/1 [libx264 @ 000001e9c6c20940] frame MB size (120x68) > level limit (1620) [libx264 @ 000001e9c6c20940] DPB size (1 frames, 8160 mbs) > level limit (0 frames, 8100 mbs) [libx264 @ 000001e9c6c20940] MB rate (204000) > level limit (40500) [libx264 @ 000001e9c6c20940] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 000001e9c6c20940] profile Constrained Baseline, level 3.0 [libx264 @ 000001e9c6c20940] 264 - core 152 r2851 ba24899 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 *** 2 dup! Past duration 0.666664 too large Past duration 0.833321 too large Past duration 0.999992 too large [graph_1_in_0_2 @ 000001e9ca3d8080] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f [format_out_0_1 @ 000001e9ca3d8560] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1' [auto_resampler_0 @ 000001e9ca3d8220] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:fltp r:48000Hz [hls @ 000001e9c652c220] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts' for writing [mpegts @ 000001e9c6f1fb40] muxrate VBR, pcr every 2 pkts, sdt every 2147483647, pat/pmt every 2147483647 pkts Output #0, hls, to 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 composer : Sacha Goedegebure title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation encoder : Lavf58.2.102 Stream #0:0(und): Video: h264 (libx264), 1 reference frame, yuv420p(progressive, left), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 90k tbn, 25 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler encoder : Lavc58.3.105 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1(und): Audio: mp3 (libmp3lame), 48000 Hz, stereo, fltp, delay 1105 (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler encoder : Lavc58.3.105 libmp3lame Side data: audio service type: main *** dropping frame 13 from stream 0 at ts 11 *** dropping frame 18 from stream 0 at ts 16 *** dropping frame 23 from stream 0 at ts 21 *** dropping frame 28 from stream 0 at ts 26 *** dropping frame 33 from stream 0 at ts 31 *** dropping frame 38 from stream 0 at ts 36 *** dropping frame 43 from stream 0 at ts 41 *** dropping frame 48 from stream 0 at ts 46 *** dropping frame 53 from stream 0 at ts 51 *** dropping frame 58 from stream 0 at ts 5600:01.94 bitrate=N/A dup=2 drop=9 speed=3.89x *** dropping frame 63 from stream 0 at ts 61 *** dropping frame 68 from stream 0 at ts 66 *** dropping frame 73 from stream 0 at ts 71 *** dropping frame 78 from stream 0 at ts 76 *** dropping frame 83 from stream 0 at ts 81 *** dropping frame 88 from stream 0 at ts 86 *** dropping frame 93 from stream 0 at ts 91 *** dropping frame 98 from stream 0 at ts 96 *** dropping frame 103 from stream 0 at ts 101:03.76 bitrate=N/A dup=2 drop=18 speed=3.76x *** dropping frame 108 from stream 0 at ts 106 *** dropping frame 113 from stream 0 at ts 111:04.24 bitrate=N/A dup=2 drop=20 speed=2.79x *** dropping frame 118 from stream 0 at ts 116 *** dropping frame 123 from stream 0 at ts 121 *** dropping frame 128 from stream 0 at ts 126 *** dropping frame 133 from stream 0 at ts 131 *** dropping frame 138 from stream 0 at ts 136 [hls @ 000001e9c652c220] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny2.ts' for writing [hls @ 000001e9c652c220] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 000001e9c6f2f4e0] EXT-X-MEDIA-SEQUENCE:1 *** dropping frame 143 from stream 0 at ts 141:05.20 bitrate=N/A dup=2 drop=26 speed= 2.5x *** dropping frame 148 from stream 0 at ts 146 *** dropping frame 153 from stream 0 at ts 151 *** dropping frame 158 from stream 0 at ts 156:06.16 bitrate=N/A dup=2 drop=29 speed=2.37x *** dropping frame 163 from stream 0 at ts 161 *** dropping frame 168 from stream 0 at ts 166 *** dropping frame 173 from stream 0 at ts 171:06.64 bitrate=N/A dup=2 drop=32 speed= 2.1x *** dropping frame 178 from stream 0 at ts 176 *** dropping frame 183 from stream 0 at ts 181:07.12 bitrate=N/A dup=2 drop=34 speed= 1.9x *** dropping frame 188 from stream 0 at ts 186 *** dropping frame 193 from stream 0 at ts 191:07.12 bitrate=N/A dup=2 drop=36 speed=1.67x *** dropping frame 198 from stream 0 at ts 196:07.60 bitrate=N/A dup=2 drop=37 speed=1.59x *** dropping frame 203 from stream 0 at ts 201:08.08 bitrate=N/A dup=2 drop=38 speed=1.53x *** dropping frame 208 from stream 0 at ts 206:08.08 bitrate=N/A dup=2 drop=39 speed=1.39x *** dropping frame 213 from stream 0 at ts 211:08.08 bitrate=N/A dup=2 drop=40 speed=1.26x *** dropping frame 218 from stream 0 at ts 216 *** dropping frame 223 from stream 0 at ts 221:08.56 bitrate=N/A dup=2 drop=42 speed=1.23x *** dropping frame 228 from stream 0 at ts 226 *** dropping frame 233 from stream 0 at ts 231:09.04 bitrate=N/A dup=2 drop=44 speed= 1.2x *** dropping frame 238 from stream 0 at ts 236 [hls @ 000001e9c652c220] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny3.ts' for writing [hls @ 000001e9c652c220] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 000001e9c6f2f4e0] EXT-X-MEDIA-SEQUENCE:1 *** dropping frame 243 from stream 0 at ts 241:09.52 bitrate=N/A dup=2 drop=46 speed=1.16x *** dropping frame 248 from stream 0 at ts 246 No more output streams to write to, finishing.:09.55 bitrate=N/A dup=2 drop=48 speed=1.08x [hls @ 000001e9c652c220] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 000001e9c6f2f4e0] EXT-X-MEDIA-SEQUENCE:1 frame= 250 fps= 27 q=-1.0 Lsize=N/A time=00:00:10.00 bitrate=N/A dup=2 drop=48 speed=1.08x video:4054kB audio:157kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4): Input stream #0:0 (video): 307 packets read (3019729 bytes); 298 frames decoded; Input stream #0:1 (audio): 21 packets read (10080 bytes); Input stream #0:2 (audio): 316 packets read (404480 bytes); 316 frames decoded (485376 samples); Total: 644 packets (3434289 bytes) demuxed Output file #0 (C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8): Output stream #0:0 (video): 250 frames encoded; 250 packets muxed (4151260 bytes); Output stream #0:1 (audio): 417 frames encoded (480000 samples); 418 packets muxed (160512 bytes); Total: 668 packets (4311772 bytes) muxed [libx264 @ 000001e9c6c20940] frame I:13 Avg QP:11.25 size: 65305 [libx264 @ 000001e9c6c20940] frame P:237 Avg QP:17.86 size: 13931 [libx264 @ 000001e9c6c20940] mb I I16..4: 86.5% 0.0% 13.5% [libx264 @ 000001e9c6c20940] mb P I16..4: 14.9% 0.0% 0.7% P16..4: 13.4% 2.7% 1.1% 0.0% 0.0% skip:67.3% [libx264 @ 000001e9c6c20940] coded y,uvDC,uvAC intra: 5.1% 21.0% 6.9% inter: 4.7% 9.2% 1.8% [libx264 @ 000001e9c6c20940] i16 v,h,dc,p: 78% 14% 5% 3% [libx264 @ 000001e9c6c20940] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 16% 28% 5% 6% 4% 6% 3% 5% [libx264 @ 000001e9c6c20940] i8c dc,h,v,p: 75% 13% 10% 1% [libx264 @ 000001e9c6c20940] kb/s:3320.51 C:\Users\Beloko\Desktop\FFMPEG>type "C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8" #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:5 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:4.023022, Big_Buck_Bunny1.ts #EXTINF:4.000000, Big_Buck_Bunny2.ts #EXTINF:2.000000, Big_Buck_Bunny3.ts #EXT-X-ENDLIST C:\Users\Beloko\Desktop\FFMPEG>ffprobe "C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts" ffprobe version N-88980-g5f1bb25-Reino Copyright (c) 2007-2017 the FFmpeg developers built with gcc 7.1.0 (GCC) configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Reino --enable-gray --enable-version3 --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-gpl --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libmfx --enable-avresample --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 --enable-nonfree --enable-decklink --enable-libfdk-aac libavutil 56. 0.100 / 56. 0.100 libavcodec 58. 3.100 / 58. 3.100 libavformat 58. 2.100 / 58. 2.100 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 0.101 / 7. 0.101 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 Input #0, mpegts, from 'C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts': Duration: 00:00:04.02, start: 1.400000, bitrate: 1112 kb/s Program 1 Metadata: service_name : Big Buck Bunny, Sunflower version service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101](und): Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
comment:8 by , 7 years ago
ffprobe -show_packets -of xml C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts > output.xml
attech the output.xml here.
Thanks
Replying to beloko:
Tested with Zeranoe build give the same result.
ffmpeg.exe -i "http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4" -loglevel verbose -threads 0 -c:a libmp3lame -sn -vcodec libx264 -vprofile baseline -vlevel 3.0 -force_key_frames "expr:gte(t,n_forced*4)" -r 25 -g 25 -f hls -hls_time 4 -hls_list_size 99999 -start_number 1 -hls_segment_type mpegts -t 10 "C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8" ffmpeg version N-89212-ga60b2425c3 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.2.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx libavutil 56. 2.100 / 56. 2.100 libavcodec 58. 3.105 / 58. 3.105 libavformat 58. 2.102 / 58. 2.102 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 2.102 / 7. 2.102 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 [h264 @ 000001e9c64af7e0] Reinit context to 1920x1088, pix_fmt: yuv420p Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2013-12-16T17:44:39.000000Z title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation composer : Sacha Goedegebure Duration: 00:10:34.53, start: 0.000000, bitrate: 3481 kb/s Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Side data: audio service type: main Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:2 -> #0:1 (ac3 (native) -> mp3 (libmp3lame)) Press [q] to stop, [?] for help [h264 @ 000001e9c649a180] Reinit context to 1920x1088, pix_fmt: yuv420p [graph 0 input from stream 0:0 @ 000001e9c701eec0] w:1920 h:1080 pixfmt:yuv420p tb:1/30000 fr:30/1 sar:1/1 sws_param:flags=2 [libx264 @ 000001e9c6c20940] using SAR=1/1 [libx264 @ 000001e9c6c20940] frame MB size (120x68) > level limit (1620) [libx264 @ 000001e9c6c20940] DPB size (1 frames, 8160 mbs) > level limit (0 frames, 8100 mbs) [libx264 @ 000001e9c6c20940] MB rate (204000) > level limit (40500) [libx264 @ 000001e9c6c20940] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 000001e9c6c20940] profile Constrained Baseline, level 3.0 [libx264 @ 000001e9c6c20940] 264 - core 152 r2851 ba24899 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 *** 2 dup! Past duration 0.666664 too large Past duration 0.833321 too large Past duration 0.999992 too large [graph_1_in_0_2 @ 000001e9ca3d8080] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f [format_out_0_1 @ 000001e9ca3d8560] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1' [auto_resampler_0 @ 000001e9ca3d8220] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:fltp r:48000Hz [hls @ 000001e9c652c220] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts' for writing [mpegts @ 000001e9c6f1fb40] muxrate VBR, pcr every 2 pkts, sdt every 2147483647, pat/pmt every 2147483647 pkts Output #0, hls, to 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 composer : Sacha Goedegebure title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation encoder : Lavf58.2.102 Stream #0:0(und): Video: h264 (libx264), 1 reference frame, yuv420p(progressive, left), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 90k tbn, 25 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler encoder : Lavc58.3.105 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1(und): Audio: mp3 (libmp3lame), 48000 Hz, stereo, fltp, delay 1105 (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler encoder : Lavc58.3.105 libmp3lame Side data: audio service type: main *** dropping frame 13 from stream 0 at ts 11 *** dropping frame 18 from stream 0 at ts 16 *** dropping frame 23 from stream 0 at ts 21 *** dropping frame 28 from stream 0 at ts 26 *** dropping frame 33 from stream 0 at ts 31 *** dropping frame 38 from stream 0 at ts 36 *** dropping frame 43 from stream 0 at ts 41 *** dropping frame 48 from stream 0 at ts 46 *** dropping frame 53 from stream 0 at ts 51 *** dropping frame 58 from stream 0 at ts 5600:01.94 bitrate=N/A dup=2 drop=9 speed=3.89x *** dropping frame 63 from stream 0 at ts 61 *** dropping frame 68 from stream 0 at ts 66 *** dropping frame 73 from stream 0 at ts 71 *** dropping frame 78 from stream 0 at ts 76 *** dropping frame 83 from stream 0 at ts 81 *** dropping frame 88 from stream 0 at ts 86 *** dropping frame 93 from stream 0 at ts 91 *** dropping frame 98 from stream 0 at ts 96 *** dropping frame 103 from stream 0 at ts 101:03.76 bitrate=N/A dup=2 drop=18 speed=3.76x *** dropping frame 108 from stream 0 at ts 106 *** dropping frame 113 from stream 0 at ts 111:04.24 bitrate=N/A dup=2 drop=20 speed=2.79x *** dropping frame 118 from stream 0 at ts 116 *** dropping frame 123 from stream 0 at ts 121 *** dropping frame 128 from stream 0 at ts 126 *** dropping frame 133 from stream 0 at ts 131 *** dropping frame 138 from stream 0 at ts 136 [hls @ 000001e9c652c220] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny2.ts' for writing [hls @ 000001e9c652c220] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 000001e9c6f2f4e0] EXT-X-MEDIA-SEQUENCE:1 *** dropping frame 143 from stream 0 at ts 141:05.20 bitrate=N/A dup=2 drop=26 speed= 2.5x *** dropping frame 148 from stream 0 at ts 146 *** dropping frame 153 from stream 0 at ts 151 *** dropping frame 158 from stream 0 at ts 156:06.16 bitrate=N/A dup=2 drop=29 speed=2.37x *** dropping frame 163 from stream 0 at ts 161 *** dropping frame 168 from stream 0 at ts 166 *** dropping frame 173 from stream 0 at ts 171:06.64 bitrate=N/A dup=2 drop=32 speed= 2.1x *** dropping frame 178 from stream 0 at ts 176 *** dropping frame 183 from stream 0 at ts 181:07.12 bitrate=N/A dup=2 drop=34 speed= 1.9x *** dropping frame 188 from stream 0 at ts 186 *** dropping frame 193 from stream 0 at ts 191:07.12 bitrate=N/A dup=2 drop=36 speed=1.67x *** dropping frame 198 from stream 0 at ts 196:07.60 bitrate=N/A dup=2 drop=37 speed=1.59x *** dropping frame 203 from stream 0 at ts 201:08.08 bitrate=N/A dup=2 drop=38 speed=1.53x *** dropping frame 208 from stream 0 at ts 206:08.08 bitrate=N/A dup=2 drop=39 speed=1.39x *** dropping frame 213 from stream 0 at ts 211:08.08 bitrate=N/A dup=2 drop=40 speed=1.26x *** dropping frame 218 from stream 0 at ts 216 *** dropping frame 223 from stream 0 at ts 221:08.56 bitrate=N/A dup=2 drop=42 speed=1.23x *** dropping frame 228 from stream 0 at ts 226 *** dropping frame 233 from stream 0 at ts 231:09.04 bitrate=N/A dup=2 drop=44 speed= 1.2x *** dropping frame 238 from stream 0 at ts 236 [hls @ 000001e9c652c220] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny3.ts' for writing [hls @ 000001e9c652c220] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 000001e9c6f2f4e0] EXT-X-MEDIA-SEQUENCE:1 *** dropping frame 243 from stream 0 at ts 241:09.52 bitrate=N/A dup=2 drop=46 speed=1.16x *** dropping frame 248 from stream 0 at ts 246 No more output streams to write to, finishing.:09.55 bitrate=N/A dup=2 drop=48 speed=1.08x [hls @ 000001e9c652c220] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 000001e9c6f2f4e0] EXT-X-MEDIA-SEQUENCE:1 frame= 250 fps= 27 q=-1.0 Lsize=N/A time=00:00:10.00 bitrate=N/A dup=2 drop=48 speed=1.08x video:4054kB audio:157kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4): Input stream #0:0 (video): 307 packets read (3019729 bytes); 298 frames decoded; Input stream #0:1 (audio): 21 packets read (10080 bytes); Input stream #0:2 (audio): 316 packets read (404480 bytes); 316 frames decoded (485376 samples); Total: 644 packets (3434289 bytes) demuxed Output file #0 (C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8): Output stream #0:0 (video): 250 frames encoded; 250 packets muxed (4151260 bytes); Output stream #0:1 (audio): 417 frames encoded (480000 samples); 418 packets muxed (160512 bytes); Total: 668 packets (4311772 bytes) muxed [libx264 @ 000001e9c6c20940] frame I:13 Avg QP:11.25 size: 65305 [libx264 @ 000001e9c6c20940] frame P:237 Avg QP:17.86 size: 13931 [libx264 @ 000001e9c6c20940] mb I I16..4: 86.5% 0.0% 13.5% [libx264 @ 000001e9c6c20940] mb P I16..4: 14.9% 0.0% 0.7% P16..4: 13.4% 2.7% 1.1% 0.0% 0.0% skip:67.3% [libx264 @ 000001e9c6c20940] coded y,uvDC,uvAC intra: 5.1% 21.0% 6.9% inter: 4.7% 9.2% 1.8% [libx264 @ 000001e9c6c20940] i16 v,h,dc,p: 78% 14% 5% 3% [libx264 @ 000001e9c6c20940] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 16% 28% 5% 6% 4% 6% 3% 5% [libx264 @ 000001e9c6c20940] i8c dc,h,v,p: 75% 13% 10% 1% [libx264 @ 000001e9c6c20940] kb/s:3320.51 C:\Users\Beloko\Desktop\FFMPEG>type "C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8" #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:5 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:4.023022, Big_Buck_Bunny1.ts #EXTINF:4.000000, Big_Buck_Bunny2.ts #EXTINF:2.000000, Big_Buck_Bunny3.ts #EXT-X-ENDLIST C:\Users\Beloko\Desktop\FFMPEG>ffprobe "C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts" ffprobe version N-88980-g5f1bb25-Reino Copyright (c) 2007-2017 the FFmpeg developers built with gcc 7.1.0 (GCC) configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Reino --enable-gray --enable-version3 --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-gpl --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libmfx --enable-avresample --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 --enable-nonfree --enable-decklink --enable-libfdk-aac libavutil 56. 0.100 / 56. 0.100 libavcodec 58. 3.100 / 58. 3.100 libavformat 58. 2.100 / 58. 2.100 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 0.101 / 7. 0.101 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 Input #0, mpegts, from 'C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts': Duration: 00:00:04.02, start: 1.400000, bitrate: 1112 kb/s Program 1 Metadata: service_name : Big Buck Bunny, Sunflower version service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101](und): Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
comment:9 by , 7 years ago
It has not been pushed to the main git repo yet, waiting for your response.
Are you sure you applied the patch correctly. I would use the below command in the latest master to apply it
curl https://patchwork.ffmpeg.org/patch/6395/mbox/ | git am
For me it is producing exact 4.00000 as duration
akamai@akamai-1x2-X4-16G:~/karthick/ffmpeg$ ffmpeg -i "http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4" -loglevel verbose -threads 0 -c:a aac -sn -vcodec libx264 -vprofile baseline -vlevel 3.0 -force_key_frames "expr:gte(t,n_forced*4)" -r 25 -g 25 -f hls -hls_time 4 -hls_list_size 99999 -start_number 1 -hls_segment_type mpegts -t 10 /tmp/Big_Buck_Bunny.m3u8 ffmpeg version N-89279-gd120698 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3) configuration: --enable-gpl --enable-libx264 --prefix=/usr --enable-decklink --enable-libfreetype --disable-vaapi --disable-vdpau --enable-nonfree libavutil 56. 3.100 / 56. 3.100 libavcodec 58. 6.101 / 58. 6.101 libavformat 58. 2.102 / 58. 2.102 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 5.100 / 7. 5.100 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 [h264 @ 0x35d7d80] Reinit context to 1920x1088, pix_fmt: yuv420p Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2013-12-16T17:44:39.000000Z title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation composer : Sacha Goedegebure Duration: 00:10:34.53, start: 0.000000, bitrate: 3481 kb/s Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Side data: audio service type: main Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:2 -> #0:1 (ac3 (native) -> aac (native)) Press [q] to stop, [?] for help [h264 @ 0x35fe520] Reinit context to 1920x1088, pix_fmt: yuv420p [graph 0 input from stream 0:0 @ 0x36b1680] w:1920 h:1080 pixfmt:yuv420p tb:1/30000 fr:30/1 sar:1/1 sws_param:flags=2 [libx264 @ 0x3601400] using SAR=1/1 [libx264 @ 0x3601400] frame MB size (120x68) > level limit (1620) [libx264 @ 0x3601400] DPB size (1 frames, 8160 mbs) > level limit (0 frames, 8100 mbs) [libx264 @ 0x3601400] MB rate (204000) > level limit (40500) [libx264 @ 0x3601400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0x3601400] profile Constrained Baseline, level 3.0 [libx264 @ 0x3601400] 264 - core 142 r2389 956c8d8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 *** 2 dup! Past duration 0.666664 too large Past duration 0.833321 too large Past duration 0.999992 too large [graph_1_in_0_2 @ 0x36c1880] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f [aac @ 0x3603aa0] Using a PCE to encode channel layout [hls @ 0x3604500] Opening '/tmp/Big_Buck_Bunny1.ts' for writing [mpegts @ 0x36be920] muxrate VBR, pcr every 2 pkts, sdt every 2147483647, pat/pmt every 2147483647 pkts Output #0, hls, to '/tmp/Big_Buck_Bunny.m3u8': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 composer : Sacha Goedegebure title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation encoder : Lavf58.2.102 Stream #0:0(und): Video: h264 (libx264), 1 reference frame, yuv420p(progressive, left), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 90k tbn, 25 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler encoder : Lavc58.6.101 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1(und): Audio: aac (LC), 48000 Hz, 5.1(side), fltp, delay 1024, 394 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler encoder : Lavc58.6.101 aac Side data: audio service type: main *** dropping frame 13 from stream 0 at ts 11 *** dropping frame 18 from stream 0 at ts 16 *** dropping frame 23 from stream 0 at ts 21 *** dropping frame 28 from stream 0 at ts 26 *** dropping frame 33 from stream 0 at ts 31 *** dropping frame 38 from stream 0 at ts 36 *** dropping frame 43 from stream 0 at ts 4100:01.42 bitrate=N/A dup=2 drop=6 speed=2.85x *** dropping frame 48 from stream 0 at ts 46 *** dropping frame 53 from stream 0 at ts 51 *** dropping frame 58 from stream 0 at ts 56 *** dropping frame 63 from stream 0 at ts 61 *** dropping frame 68 from stream 0 at ts 66 *** dropping frame 73 from stream 0 at ts 71 *** dropping frame 78 from stream 0 at ts 7600:02.85 bitrate=N/A dup=2 drop=13 speed=2.85x *** dropping frame 83 from stream 0 at ts 81 *** dropping frame 88 from stream 0 at ts 86 *** dropping frame 93 from stream 0 at ts 91 *** dropping frame 98 from stream 0 at ts 96 *** dropping frame 103 from stream 0 at ts 101 *** dropping frame 108 from stream 0 at ts 106 *** dropping frame 113 from stream 0 at ts 111 *** dropping frame 118 from stream 0 at ts 116:04.52 bitrate=N/A dup=2 drop=21 speed= 3x *** dropping frame 123 from stream 0 at ts 121 *** dropping frame 128 from stream 0 at ts 126 *** dropping frame 133 from stream 0 at ts 131 *** dropping frame 138 from stream 0 at ts 136 [hls @ 0x3604500] Opening '/tmp/Big_Buck_Bunny2.ts' for writing [hls @ 0x3604500] Opening '/tmp/Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 0x35ff940] EXT-X-MEDIA-SEQUENCE:1 *** dropping frame 143 from stream 0 at ts 141:05.73 bitrate=N/A dup=2 drop=26 speed=2.86x *** dropping frame 148 from stream 0 at ts 146 *** dropping frame 153 from stream 0 at ts 151 *** dropping frame 158 from stream 0 at ts 156 *** dropping frame 163 from stream 0 at ts 161 *** dropping frame 168 from stream 0 at ts 166 *** dropping frame 173 from stream 0 at ts 171:06.69 bitrate=N/A dup=2 drop=32 speed=2.67x *** dropping frame 178 from stream 0 at ts 176 *** dropping frame 183 from stream 0 at ts 181 *** dropping frame 188 from stream 0 at ts 186 *** dropping frame 193 from stream 0 at ts 191 *** dropping frame 198 from stream 0 at ts 196 *** dropping frame 203 from stream 0 at ts 201:08.14 bitrate=N/A dup=2 drop=38 speed= 2.7x *** dropping frame 208 from stream 0 at ts 206 *** dropping frame 213 from stream 0 at ts 211 *** dropping frame 218 from stream 0 at ts 216 *** dropping frame 223 from stream 0 at ts 221 *** dropping frame 228 from stream 0 at ts 226:09.10 bitrate=N/A dup=2 drop=43 speed=2.56x *** dropping frame 233 from stream 0 at ts 231 *** dropping frame 238 from stream 0 at ts 236 [hls @ 0x3604500] Opening '/tmp/Big_Buck_Bunny3.ts' for writing [hls @ 0x3604500] Opening '/tmp/Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 0x35ff940] EXT-X-MEDIA-SEQUENCE:1 *** dropping frame 243 from stream 0 at ts 241 *** dropping frame 248 from stream 0 at ts 246 No more output streams to write to, finishing. [hls @ 0x3604500] Opening '/tmp/Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 0x35ff940] EXT-X-MEDIA-SEQUENCE:1 frame= 250 fps= 55 q=-1.0 Lsize=N/A time=00:00:10.00 bitrate=N/A dup=2 drop=48 speed= 2.2x video:3986kB audio:481kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4): Input stream #0:0 (video): 307 packets read (3019729 bytes); 298 frames decoded; Input stream #0:1 (audio): 21 packets read (10080 bytes); Input stream #0:2 (audio): 316 packets read (404480 bytes); 316 frames decoded (485376 samples); Total: 644 packets (3434289 bytes) demuxed Output file #0 (/tmp/Big_Buck_Bunny.m3u8): Output stream #0:0 (video): 250 frames encoded; 250 packets muxed (4081615 bytes); Output stream #0:1 (audio): 469 frames encoded (480000 samples); 470 packets muxed (492502 bytes); Total: 720 packets (4574117 bytes) muxed [libx264 @ 0x3601400] frame I:13 Avg QP:11.26 size: 65124 [libx264 @ 0x3601400] frame P:237 Avg QP:17.77 size: 13647 [libx264 @ 0x3601400] mb I I16..4: 86.4% 0.0% 13.6% [libx264 @ 0x3601400] mb P I16..4: 14.8% 0.0% 0.7% P16..4: 13.3% 2.6% 1.1% 0.0% 0.0% skip:67.4% [libx264 @ 0x3601400] coded y,uvDC,uvAC intra: 5.1% 21.0% 6.9% inter: 4.5% 9.0% 1.7% [libx264 @ 0x3601400] i16 v,h,dc,p: 78% 14% 5% 3% [libx264 @ 0x3601400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 16% 28% 5% 6% 4% 6% 3% 5% [libx264 @ 0x3601400] i8c dc,h,v,p: 75% 13% 10% 1% [libx264 @ 0x3601400] kb/s:3264.79 [aac @ 0x3603aa0] Qavg: 207.289 akamai@akamai-1x2-X4-16G:~/karthick/ffmpeg$ cat /tmp/Big_Buck_Bunny.m3u8 #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:4 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:4.000000, Big_Buck_Bunny1.ts #EXTINF:4.000000, Big_Buck_Bunny2.ts #EXTINF:2.000000, Big_Buck_Bunny3.ts #EXT-X-ENDLIST akamai@akamai-1x2-X4-16G:~/karthick/ffmpeg$ }}}
comment:10 by , 7 years ago
My apologies for the inconvenience.
The hlsenc.c file was properly up to date with your fix.
But the hlsenc.o wasn't rebuilt by the compiler.
This means FFMPEG was rebuild with the old library.
So now congratulation ! It fixes the M3U8 playlist file.
Here is the result :
C:\Users\Beloko\Desktop\FFMPEG>ffmpeg.exe -i "http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4" -loglevel verbose -threads 0 -c:a libmp3lame -sn -vcodec libx264 -vprofile baseline -vlevel 3.0 -force_key_frames "expr:gte(t,n_forced*4)" -r 25 -g 25 -f hls -hls_time 4 -hls_list_size 99999 -start_number 1 -hls_segment_type mpegts -t 10 "C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8" ffmpeg version N-89288-g2ba6d7c-Reino Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.1.0 (GCC) configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Reino --enable-gray --enable-version3 --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-gpl --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libmfx --enable-avresample --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 libavutil 56. 3.100 / 56. 3.100 libavcodec 58. 6.101 / 58. 6.101 libavformat 58. 2.103 / 58. 2.103 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 5.100 / 7. 5.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 [h264 @ 07977e60] Reinit context to 1920x1088, pix_fmt: yuv420p Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2013-12-16T17:44:39.000000Z title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation composer : Sacha Goedegebure Duration: 00:10:34.53, start: 0.000000, bitrate: 3481 kb/s Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Side data: audio service type: main Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:2 -> #0:1 (ac3 (native) -> mp3 (libmp3lame)) Press [q] to stop, [?] for help [h264 @ 099bd400] Reinit context to 1920x1088, pix_fmt: yuv420p [graph 0 input from stream 0:0 @ 079999e0] w:1920 h:1080 pixfmt:yuv420p tb:1/30000 fr:30/1 sar:1/1 sws_param:flags=2 [libx264 @ 0797b1c0] using SAR=1/1 [libx264 @ 0797b1c0] frame MB size (120x68) > level limit (1620) [libx264 @ 0797b1c0] DPB size (1 frames, 8160 mbs) > level limit (0 frames, 8100 mbs) [libx264 @ 0797b1c0] MB rate (204000) > level limit (40500) [libx264 @ 0797b1c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 0797b1c0] profile Constrained Baseline, level 3.0 [libx264 @ 0797b1c0] 264 - core 148 r2795M aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 *** 2 dup! Past duration 0.666664 too large Past duration 0.833321 too large Past duration 0.999992 too large [graph_1_in_0_2 @ 07999d60] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f [format_out_0_1 @ 07999860] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1' [auto_resampler_0 @ 07999de0] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:fltp r:48000Hz [hls @ 0796db80] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts' for writing [mpegts @ 0e550360] muxrate VBR, pcr every 2 pkts, sdt every 2147483647, pat/pmt every 2147483647 pkts Output #0, hls, to 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 composer : Sacha Goedegebure title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation encoder : Lavf58.2.103 Stream #0:0(und): Video: h264 (libx264), 1 reference frame, yuv420p(progressive, left), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 90k tbn, 25 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler encoder : Lavc58.6.101 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1(und): Audio: mp3 (libmp3lame), 48000 Hz, stereo, fltp, delay 1105 (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler encoder : Lavc58.6.101 libmp3lame Side data: audio service type: main *** dropping frame 13 from stream 0 at ts 11 *** dropping frame 18 from stream 0 at ts 16 *** dropping frame 23 from stream 0 at ts 21 *** dropping frame 28 from stream 0 at ts 26 *** dropping frame 33 from stream 0 at ts 31 *** dropping frame 38 from stream 0 at ts 36 *** dropping frame 43 from stream 0 at ts 41 *** dropping frame 48 from stream 0 at ts 46 *** dropping frame 53 from stream 0 at ts 51 *** dropping frame 58 from stream 0 at ts 56 *** dropping frame 63 from stream 0 at ts 61 *** dropping frame 68 from stream 0 at ts 66 *** dropping frame 73 from stream 0 at ts 7100:02.80 bitrate=N/A dup=2 drop=12 speed=5.62x *** dropping frame 78 from stream 0 at ts 76 *** dropping frame 83 from stream 0 at ts 81 *** dropping frame 88 from stream 0 at ts 86 *** dropping frame 93 from stream 0 at ts 91 *** dropping frame 98 from stream 0 at ts 96 *** dropping frame 103 from stream 0 at ts 101 *** dropping frame 108 from stream 0 at ts 106 *** dropping frame 113 from stream 0 at ts 111 *** dropping frame 118 from stream 0 at ts 116 *** dropping frame 123 from stream 0 at ts 121 *** dropping frame 128 from stream 0 at ts 126 *** dropping frame 133 from stream 0 at ts 131:05.20 bitrate=N/A dup=2 drop=24 speed=5.21x *** dropping frame 138 from stream 0 at ts 136 [hls @ 0796db80] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny2.ts' for writing [hls @ 0796db80] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 0796b6e0] EXT-X-MEDIA-SEQUENCE:1 *** dropping frame 143 from stream 0 at ts 141 *** dropping frame 148 from stream 0 at ts 146 *** dropping frame 153 from stream 0 at ts 151 *** dropping frame 158 from stream 0 at ts 156 *** dropping frame 163 from stream 0 at ts 161 *** dropping frame 168 from stream 0 at ts 166 *** dropping frame 173 from stream 0 at ts 171:06.64 bitrate=N/A dup=2 drop=32 speed=4.41x *** dropping frame 178 from stream 0 at ts 176 *** dropping frame 183 from stream 0 at ts 181 *** dropping frame 188 from stream 0 at ts 186 *** dropping frame 193 from stream 0 at ts 191:07.20 bitrate=N/A dup=2 drop=36 speed=3.59x *** dropping frame 198 from stream 0 at ts 196 *** dropping frame 203 from stream 0 at ts 201 *** dropping frame 208 from stream 0 at ts 206:08.08 bitrate=N/A dup=2 drop=39 speed=2.99x *** dropping frame 213 from stream 0 at ts 211 *** dropping frame 218 from stream 0 at ts 216:08.56 bitrate=N/A dup=2 drop=41 speed=2.64x *** dropping frame 223 from stream 0 at ts 221 *** dropping frame 228 from stream 0 at ts 226 *** dropping frame 233 from stream 0 at ts 231:09.04 bitrate=N/A dup=2 drop=44 speed=2.38x *** dropping frame 238 from stream 0 at ts 236 [hls @ 0796db80] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny3.ts' for writing [hls @ 0796db80] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 0796b6e0] EXT-X-MEDIA-SEQUENCE:1 *** dropping frame 243 from stream 0 at ts 241 *** dropping frame 248 from stream 0 at ts 246:09.52 bitrate=N/A dup=2 drop=47 speed= 2.2x No more output streams to write to, finishing. [hls @ 0796db80] Opening 'C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8.tmp' for writing [hls muxer @ 0796b6e0] EXT-X-MEDIA-SEQUENCE:1 frame= 250 fps= 51 q=-1.0 Lsize=N/A time=00:00:10.00 bitrate=N/A dup=2 drop=48 speed=2.05x video:4054kB audio:157kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4): Input stream #0:0 (video): 307 packets read (3019729 bytes); 298 frames decoded; Input stream #0:1 (audio): 21 packets read (10080 bytes); Input stream #0:2 (audio): 316 packets read (404480 bytes); 316 frames decoded (485376 samples); Total: 644 packets (3434289 bytes) demuxed Output file #0 (C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8): Output stream #0:0 (video): 250 frames encoded; 250 packets muxed (4151304 bytes); Output stream #0:1 (audio): 417 frames encoded (480000 samples); 418 packets muxed (160512 bytes); Total: 668 packets (4311816 bytes) muxed [libx264 @ 0797b1c0] frame I:13 Avg QP:11.25 size: 65304 [libx264 @ 0797b1c0] frame P:237 Avg QP:17.86 size: 13931 [libx264 @ 0797b1c0] mb I I16..4: 86.5% 0.0% 13.5% [libx264 @ 0797b1c0] mb P I16..4: 14.9% 0.0% 0.7% P16..4: 13.4% 2.7% 1.1% 0.0% 0.0% skip:67.3% [libx264 @ 0797b1c0] coded y,uvDC,uvAC intra: 5.1% 21.0% 6.9% inter: 4.7% 9.2% 1.8% [libx264 @ 0797b1c0] i16 v,h,dc,p: 78% 14% 5% 3% [libx264 @ 0797b1c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 16% 28% 5% 6% 4% 6% 3% 5% [libx264 @ 0797b1c0] i8c dc,h,v,p: 75% 13% 10% 1% [libx264 @ 0797b1c0] kb/s:3320.54 C:\Users\Beloko\Desktop\FFMPEG>type "C:\Users\Beloko\Desktop\Big_Buck_Bunny.m3u8" #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:4 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:4.000000, Big_Buck_Bunny1.ts #EXTINF:4.000000, Big_Buck_Bunny2.ts #EXTINF:2.000000, Big_Buck_Bunny3.ts #EXT-X-ENDLIST C:\Users\Beloko\Desktop\FFMPEG>ffprobe "C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts" ffprobe version N-88980-g5f1bb25-Reino Copyright (c) 2007-2017 the FFmpeg developers built with gcc 7.1.0 (GCC) configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Reino --enable-gray --enable-version3 --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-gpl --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libmfx --enable-avresample --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/beloko/FFMpeg_Builder/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 --enable-nonfree --enable-decklink --enable-libfdk-aac libavutil 56. 0.100 / 56. 0.100 libavcodec 58. 3.100 / 58. 3.100 libavformat 58. 2.100 / 58. 2.100 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 0.101 / 7. 0.101 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 Input #0, mpegts, from 'C:\Users\Beloko\Desktop\Big_Buck_Bunny1.ts': Duration: 00:00:04.02, start: 1.400000, bitrate: 1112 kb/s Program 1 Metadata: service_name : Big Buck Bunny, Sunflower version service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101](und): Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
I note the .TS isn't exactly 4s long with FFPROBE.
But 4.02 seconds.
But tested with an HLS adaptive bitrate.
It doesn't affect the playback.
And the Apple Mediastreamvalidator tool doesn't complain anymore with different #EXT-X-TARGETDURATION.
Hope this fix will be merged with the master GIT for everyone.
comment:12 by , 7 years ago
Component: | ffmpeg → avformat |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Try to use the git-master version please.