[FFmpeg-trac] #5307(undetermined:new): HLS start_time and duration incorrect

FFmpeg trac at avcodec.org
Mon Mar 7 13:13:33 CET 2016


#5307: HLS start_time and duration incorrect
-------------------------------------+-------------------------------------
             Reporter:  ronag        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by ronag):

 I want to report that the duration and start_time are incorrect after
 transcoding to HLS.

 Let my try again to provide everything:

 {{{
 ffprobe -v warning -print_format json -show_format -i jellyfish.webm
 {
     "format": {
         "filename": "jellyfish.webm",
         "nb_streams": 1,
         "nb_programs": 0,
         "format_name": "matroska,webm",
         "format_long_name": "Matroska / WebM",
         "start_time": "0.000000",
         "duration": "30.030000",
         "size": "8707794",
         "bit_rate": "2319758",
         "probe_score": 100,
         "tags": {
             "encoder": "Lavf56.40.101"
         }
     }
 }
 }}}

 {{{
 ffmpeg -i jellyfish.webm jellyfish.m3u8
 ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers
   built with Apple LLVM version 7.0.2 (clang-700.1.81)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/3.0 --enable-shared
 --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-
 opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-
 libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-
 libfaac --enable-libass --enable-ffplay --enable-libfdk-aac --enable-
 openssl --enable-libopus --enable-libwebp --enable-nonfree --enable-vda
   libavutil      55. 17.103 / 55. 17.103
   libavcodec     57. 24.102 / 57. 24.102
   libavformat    57. 25.100 / 57. 25.100
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 31.100 /  6. 31.100
   libavresample   3.  0.  0 /  3.  0.  0
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, matroska,webm, from 'jellyfish.webm':
   Metadata:
     encoder         : Lavf56.40.101
   Duration: 00:00:30.03, start: 0.000000, bitrate: 2319 kb/s
     Stream #0:0(eng): Video: vp8, yuv420p, 1024x576, SAR 1:1 DAR 16:9,
 29.97 fps, 29.97 tbr, 1k tbn, 1k tbc (default)
 [libx264 @ 0x7fbbab816a00] using SAR=1/1
 [libx264 @ 0x7fbbab816a00] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
 [libx264 @ 0x7fbbab816a00] profile High, level 3.1
 Output #0, hls, to 'jellyfish.m3u8':
   Metadata:
     encoder         : Lavf57.25.100
     Stream #0:0(eng): Video: h264 (libx264), yuv420p, 1024x576 [SAR 1:1
 DAR 16:9], q=-1--1, 29.97 fps, 90k tbn, 29.97 tbc (default)
     Metadata:
       encoder         : Lavc57.24.102 libx264
     Side data:
       unknown side data type 10 (24 bytes)
 Stream mapping:
   Stream #0:0 -> #0:0 (vp8 (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 frame=  900 fps= 70 q=-1.0 Lsize=N/A time=00:00:29.96 bitrate=N/A
 speed=2.34x
 video:11070kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 [libx264 @ 0x7fbbab816a00] frame I:4     Avg QP:23.21  size: 33682
 [libx264 @ 0x7fbbab816a00] frame P:891   Avg QP:24.76  size: 12530
 [libx264 @ 0x7fbbab816a00] frame B:5     Avg QP:26.61  size:  7414
 [libx264 @ 0x7fbbab816a00] consecutive B-frames: 98.9%  1.1%  0.0%  0.0%
 [libx264 @ 0x7fbbab816a00] mb I  I16..4: 10.9% 72.9% 16.2%
 [libx264 @ 0x7fbbab816a00] mb P  I16..4:  3.7% 12.4%  0.6%  P16..4: 53.2%
 13.7%  4.9%  0.0%  0.0%    skip:11.6%
 [libx264 @ 0x7fbbab816a00] mb B  I16..4:  1.2%  2.0%  0.1%  B16..8: 47.2%
 8.0%  1.7%  direct:12.1%  skip:27.5%  L0:31.8% L1:52.0% BI:16.1%
 [libx264 @ 0x7fbbab816a00] 8x8 transform intra:74.4% inter:56.7%
 [libx264 @ 0x7fbbab816a00] coded y,uvDC,uvAC intra: 24.7% 31.7% 10.0%
 inter: 40.3% 27.3% 2.7%
 [libx264 @ 0x7fbbab816a00] i16 v,h,dc,p: 32% 18% 39% 12%
 [libx264 @ 0x7fbbab816a00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 10% 55%  2%
 2%  3%  2%  3%  3%
 [libx264 @ 0x7fbbab816a00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 13% 30%  6%
 7%  7%  5%  6%  4%
 [libx264 @ 0x7fbbab816a00] i8c dc,h,v,p: 52% 16% 30%  3%
 [libx264 @ 0x7fbbab816a00] Weighted P-Frames: Y:11.2% UV:0.2%
 [libx264 @ 0x7fbbab816a00] ref P L0: 64.3% 24.7%  8.0%  2.8%  0.2%
 [libx264 @ 0x7fbbab816a00] ref B L0: 91.5%  8.5%
 [libx264 @ 0x7fbbab816a00] kb/s:3019.87
 }}}


 {{{
 ffprobe -v warning -print_format json -show_format -i jellyfish.m3u8
 {
     "format": {
         "filename": "jellyfish.m3u8",
         "nb_streams": 1,
         "nb_programs": 1,
         "format_name": "hls,applehttp",
         "format_long_name": "Apple HTTP Live Streaming",
         "start_time": "1.466733",
         "duration": "29.996632",
         "size": "216",
         "bit_rate": "57",
         "probe_score": 100
     }
 }
 }}}


 {{{
 cat jellyfish.m3u8
 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-TARGETDURATION:9
 #EXT-X-MEDIA-SEQUENCE:0
 #EXTINF:8.341667,
 jellyfish0.ts
 #EXTINF:6.639967,
 jellyfish1.ts
 #EXTINF:8.341667,
 jellyfish2.ts
 #EXTINF:6.673333,
 jellyfish3.ts
 #EXT-X-ENDLIST
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5307#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list