[FFmpeg-trac] #3859(undetermined:new): mp4: start_time never zero

FFmpeg trac at avcodec.org
Sat Aug 16 12:14:03 CEST 2014


#3859: mp4: start_time never zero
-------------------------------------+-------------------------------------
             Reporter:  blacktrash   |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 How to reproduce:
 {{{
 $ ffprobe -show_entries format=start_time BigBuckBunny_640x360.m4v
 ffprobe version N-65628-g6c36b3a Copyright (c) 2007-2014 the FFmpeg
 developers
   built on Aug 14 2014 15:21:41 with Apple LLVM version 5.1
 (clang-503.0.40) (based on LLVM 3.4svn)
   configuration: --enable-gpl --enable-version3 --enable-nonfree
 --disable-ffserver --enable-shared --enable-libfdk-aac --enable-libx265
 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame
 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab
 --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
   libavutil      54.  3.100 / 54.  3.100
   libavcodec     56.  0.100 / 56.  0.100
   libavformat    56.  1.100 / 56.  1.100
   libavdevice    56.  0.100 / 56.  0.100
   libavfilter     5.  0.100 /  5.  0.100
   libswscale      3.  0.100 /  3.  0.100
   libswresample   1.  0.100 /  1.  0.100
   libpostproc    53.  0.100 / 53.  0.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'BigBuckBunny_640x360.m4v':
   Metadata:
     major_brand     : M4V
     minor_version   : 1
     compatible_brands: M4V M4A mp42isom
     creation_time   : 2008-06-03 05:23:28
     copyright       : © 2008 Blender Foundation | www.bigbuckbunny.org
     title           : Big Buck Bunny
     artist          : Peach Open Movie Team
     composer        : Sacha Goedegebure / Ton Roosendaal
     date            : 2008
   Duration: 00:09:56.46, start: 0.000000, bitrate: 1626 kb/s
     Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
 fltp, 127 kb/s (default)
     Metadata:
       creation_time   : 2008-06-03 05:23:28
       handler_name    : Apple Sound Media Handler
     Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 /
 0x31637661), yuv420p(tv, smpte170m), 640x360, 1495 kb/s, 24 fps, 24 tbr,
 2400 tbn, 4800 tbc (default)
     Metadata:
       creation_time   : 2008-06-03 05:23:28
       handler_name    : Apple Video Media Handler
 [FORMAT]
 start_time=0.000000
 [/FORMAT]
 $ ffmpeg -i BigBuckBunny_640x360.m4v test.mp4
 ffmpeg version N-65628-g6c36b3a Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Aug 14 2014 15:21:41 with Apple LLVM version 5.1
 (clang-503.0.40) (based on LLVM 3.4svn)
   configuration: --enable-gpl --enable-version3 --enable-nonfree
 --disable-ffserver --enable-shared --enable-libfdk-aac --enable-libx265
 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame
 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab
 --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
   libavutil      54.  3.100 / 54.  3.100
   libavcodec     56.  0.100 / 56.  0.100
   libavformat    56.  1.100 / 56.  1.100
   libavdevice    56.  0.100 / 56.  0.100
   libavfilter     5.  0.100 /  5.  0.100
   libswscale      3.  0.100 /  3.  0.100
   libswresample   1.  0.100 /  1.  0.100
   libpostproc    53.  0.100 / 53.  0.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'BigBuckBunny_640x360.m4v':
   Metadata:
     major_brand     : M4V
     minor_version   : 1
     compatible_brands: M4V M4A mp42isom
     creation_time   : 2008-06-03 05:23:28
     copyright       : © 2008 Blender Foundation | www.bigbuckbunny.org
     title           : Big Buck Bunny
     artist          : Peach Open Movie Team
     composer        : Sacha Goedegebure / Ton Roosendaal
     date            : 2008
   Duration: 00:09:56.46, start: 0.000000, bitrate: 1626 kb/s
     Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
 fltp, 127 kb/s (default)
     Metadata:
       creation_time   : 2008-06-03 05:23:28
       handler_name    : Apple Sound Media Handler
     Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 /
 0x31637661), yuv420p(tv, smpte170m), 640x360, 1495 kb/s, 24 fps, 24 tbr,
 2400 tbn, 4800 tbc (default)
     Metadata:
       creation_time   : 2008-06-03 05:23:28
       handler_name    : Apple Video Media Handler
 [libx264 @ 0x7fe2e8826200] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX
 [libx264 @ 0x7fe2e8826200] profile High, level 3.0
 [libx264 @ 0x7fe2e8826200] 264 - core 142 r2453 ea0ca51 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options:
 cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
 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=3 b_pyramid=2 b_adapt=1
 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=24
 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
 Output #0, mp4, to 'test.mp4':
   Metadata:
     major_brand     : M4V
     minor_version   : 1
     compatible_brands: M4V M4A mp42isom
     date            : 2008
     copyright       : © 2008 Blender Foundation | www.bigbuckbunny.org
     title           : Big Buck Bunny
     artist          : Peach Open Movie Team
     composer        : Sacha Goedegebure / Ton Roosendaal
     encoder         : Lavf56.1.100
     Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021),
 yuv420p, 640x360, q=-1--1, 24 fps, 12288 tbn, 24 tbc (default)
     Metadata:
       creation_time   : 2008-06-03 05:23:28
       handler_name    : Apple Video Media Handler
       encoder         : Lavc56.0.100 libx264
     Stream #0:1(eng): Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100
 Hz, stereo, s16, 128 kb/s (default)
     Metadata:
       creation_time   : 2008-06-03 05:23:28
       handler_name    : Apple Sound Media Handler
       encoder         : Lavc56.0.100 libfaac
 Stream mapping:
   Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
   Stream #0:0 -> #0:1 (aac (native) -> aac (libfaac))
 Press [q] to stop, [?] for help
 frame=14316 fps=292 q=-1.0 Lsize=   48159kB time=00:09:56.47 bitrate=
 661.4kbits/s
 video:38397kB audio:9320kB subtitle:0kB other streams:0kB global
 headers:0kB muxing overhead: 0.926535%
 [libx264 @ 0x7fe2e8826200] frame I:154   Avg QP:17.40  size: 37708
 [libx264 @ 0x7fe2e8826200] frame P:5550  Avg QP:22.44  size:  4792
 [libx264 @ 0x7fe2e8826200] frame B:8612  Avg QP:27.20  size:   803
 [libx264 @ 0x7fe2e8826200] consecutive B-frames: 12.4% 17.7% 13.4% 56.4%
 [libx264 @ 0x7fe2e8826200] mb I  I16..4: 35.4% 26.7% 37.9%
 [libx264 @ 0x7fe2e8826200] mb P  I16..4:  3.2%  4.2%  1.7%  P16..4: 33.3%
 7.3%  4.9%  0.0%  0.0%    skip:45.3%
 [libx264 @ 0x7fe2e8826200] mb B  I16..4:  0.2%  0.5%  0.2%  B16..8: 24.6%
 1.7%  0.5%  direct: 0.8%  skip:71.6%  L0:49.5% L1:44.9% BI: 5.6%
 [libx264 @ 0x7fe2e8826200] 8x8 transform intra:42.7% inter:49.6%
 [libx264 @ 0x7fe2e8826200] coded y,uvDC,uvAC intra: 61.4% 65.7% 32.2%
 inter: 9.7% 10.2% 2.1%
 [libx264 @ 0x7fe2e8826200] i16 v,h,dc,p: 22% 27% 23% 28%
 [libx264 @ 0x7fe2e8826200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 19% 26%  4%
 5%  7%  5%  6%  6%
 [libx264 @ 0x7fe2e8826200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 23% 19%  4%
 6%  6%  6%  5%  5%
 [libx264 @ 0x7fe2e8826200] i8c dc,h,v,p: 48% 23% 18% 11%
 [libx264 @ 0x7fe2e8826200] Weighted P-Frames: Y:3.7% UV:2.4%
 [libx264 @ 0x7fe2e8826200] ref P L0: 70.7% 13.5% 11.6%  4.2%  0.1%
 [libx264 @ 0x7fe2e8826200] ref B L0: 91.2%  7.6%  1.2%
 [libx264 @ 0x7fe2e8826200] ref B L1: 94.8%  5.2%
 [libx264 @ 0x7fe2e8826200] kb/s:527.31
 $ ffprobe -show_entries format=start_time test.mp4
 ffprobe version N-65628-g6c36b3a Copyright (c) 2007-2014 the FFmpeg
 developers
   built on Aug 14 2014 15:21:41 with Apple LLVM version 5.1
 (clang-503.0.40) (based on LLVM 3.4svn)
   configuration: --enable-gpl --enable-version3 --enable-nonfree
 --disable-ffserver --enable-shared --enable-libfdk-aac --enable-libx265
 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame
 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab
 --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
   libavutil      54.  3.100 / 54.  3.100
   libavcodec     56.  0.100 / 56.  0.100
   libavformat    56.  1.100 / 56.  1.100
   libavdevice    56.  0.100 / 56.  0.100
   libavfilter     5.  0.100 /  5.  0.100
   libswscale      3.  0.100 /  3.  0.100
   libswresample   1.  0.100 /  1.  0.100
   libpostproc    53.  0.100 / 53.  0.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     title           : Big Buck Bunny
     artist          : Peach Open Movie Team
     composer        : Sacha Goedegebure / Ton Roosendaal
     date            : 2008
     encoder         : Lavf56.1.100
     copyright       : © 2008 Blender Foundation | www.bigbuckbunny.org
   Duration: 00:09:56.50, start: 0.023220, bitrate: 661 kb/s
     Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 640x360, 527 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
 fltp, 127 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 [FORMAT]
 start_time=-0.023220
 [/FORMAT]
 }}}

 Even using {{{-filter_complex [v]setpts=PTS-STARTPTS;[a]asetpts=PTS-
 STARTPTS}}} does not make a difference. I haven't found any input where
 this does not happen.

 Just remuxing with {{{-c copy}}} is ok.

 This can result in other apps warning about failing lipsync.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3859>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list