[FFmpeg-trac] #977(undetermined:new): F4v Cutted output video duration incaccurate, Why?

FFmpeg trac at avcodec.org
Sat Feb 4 12:55:05 CET 2012


#977: F4v Cutted output video duration incaccurate,Why?
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  overclokkato                       |                   Status:  new
                 Type:  defect       |                Component:
             Priority:  normal       |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by overclokkato):

 Hi,
 of course :

 C:\ffmpeg-r26400-swscale-r32676-mingw32-static\bin>ffmpeg.exe -ss 00:20:13
 -t 00
 :00:57 -i tagliato.f4v -vcodec copy -acodec copy -f flv -async 1 -y
 tagliato_out
 _test1.f4v
 FFmpeg version SVN-r26400, Copyright (c) 2000-2011 the FFmpeg developers
   built on Jan 18 2011 04:07:05 with gcc 4.4.2
   configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-
 libvorb
 is --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-
 libopenjpeg
  --enable-libschroedinger --enable-libopencore_amrwb --enable-
 libopencore_amrnb
 --enable-libvpx --disable-decoder=libvpx --arch=x86 --enable-runtime-
 cpudetect -
 -enable-libxvid --enable-libx264 --enable-librtmp --extra-libs='-lrtmp
 -lpolarss
 l -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisynth --enable-
 w32threads --
 cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-
 memalign-hack

   libavutil     50.36. 0 / 50.36. 0
   libavcore      0.16. 1 /  0.16. 1
   libavcodec    52.108. 0 / 52.108. 0
   libavformat   52.93. 0 / 52.93. 0
   libavdevice   52. 2. 3 / 52. 2. 3
   libavfilter    1.74. 0 /  1.74. 0
   libswscale     0.12. 0 /  0.12. 0
 [flv @ 02dc1380] Estimating duration from bitrate, this may be inaccurate

 Seems stream 0 codec frame rate differs from container frame rate: 24.00
 (24/1)
 -> 25.00 (25/1)
 Input #0, flv, from 'tagliato.f4v':
   Metadata:
     duration        : 1757
     width           : 352
     height          : 288
     videodatarate   : 244
     framerate       : 1000
     videocodecid    : 7
     audiodatarate   : 31
     audiosamplerate : 22050
     audiosamplesize : 16
     stereo          : false
     audiocodecid    : 2
     major_brand     : f4v
     minor_version   : 0
     compatible_brands: isommp42m4v
     creation_time   : 2033-01-13 05:07:24
     encoder         : Lavf53.12.0
     filesize        : 63495036
   Duration: 00:29:17.01, start: 0.080000, bitrate: 281 kb/s
     Stream #0.0: Video: h264, yuv420p, 352x288 [PAR 1:1 DAR 11:9], 249
 kb/s, 25
 tbr, 1k tbn, 24 tbc
     Stream #0.1: Audio: mp3, 22050 Hz, 1 channels, s16, 32 kb/s
 Output #0, flv, to 'tagliato_out_test1.f4v':
   Metadata:
     duration        : 1757
     width           : 352
     height          : 288
     videodatarate   : 244
     framerate       : 1000
     videocodecid    : 7
     audiodatarate   : 31
     audiosamplerate : 22050
     audiosamplesize : 16
     stereo          : false
     audiocodecid    : 2
     major_brand     : f4v
     minor_version   : 0
     compatible_brands: isommp42m4v
     creation_time   : 2033-01-13 05:07:24
     filesize        : 63495036
     encoder         : Lavf52.93.0
     Stream #0.0: Video: libx264, yuv420p, 352x288 [PAR 1:1 DAR 11:9],
 q=2-31, 24
 9 kb/s, 1k tbn, 12 tbc
     Stream #0.1: Audio: libmp3lame, 22050 Hz, 1 channels, 32 kb/s
 Stream mapping:
   Stream #0.0 -> #0.0
   Stream #0.1 -> #0.1
 Press [q] to stop encoding
 frame=  716 fps=  0 q=-1.0 Lsize=    2114kB time=56.94 bitrate=
 304.2kbits/s

 video:1832kB audio:232kB global headers:0kB muxing overhead 2.444589%

 C:\ffmpeg-r26400-swscale-r32676-mingw32-static\bin>


 And the duration is 59 second instead of 57 second. below the output


 C:\ffmpeg-r26400-swscale-r32676-mingw32-static\bin>ffmpeg -i
 tagliato_out_test1.
 f4v
 FFmpeg version SVN-r26400, Copyright (c) 2000-2011 the FFmpeg developers
   built on Jan 18 2011 04:07:05 with gcc 4.4.2
   configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-
 libvorb
 is --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-
 libopenjpeg
  --enable-libschroedinger --enable-libopencore_amrwb --enable-
 libopencore_amrnb
 --enable-libvpx --disable-decoder=libvpx --arch=x86 --enable-runtime-
 cpudetect -
 -enable-libxvid --enable-libx264 --enable-librtmp --extra-libs='-lrtmp
 -lpolarss
 l -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisynth --enable-
 w32threads --
 cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-
 memalign-hack

   libavutil     50.36. 0 / 50.36. 0
   libavcore      0.16. 1 /  0.16. 1
   libavcodec    52.108. 0 / 52.108. 0
   libavformat   52.93. 0 / 52.93. 0
   libavdevice   52. 2. 3 / 52. 2. 3
   libavfilter    1.74. 0 /  1.74. 0
   libswscale     0.12. 0 /  0.12. 0
 [flv @ 01a6bc50] Estimating duration from bitrate, this may be inaccurate

 Seems stream 0 codec frame rate differs from container frame rate: 24.00
 (24/1)
 -> 25.00 (25/1)
 Input #0, flv, from 'tagliato_out_test1.f4v':
   Metadata:
     stereo          : false
     duration        : 1757
     width           : 352
     height          : 288
     videodatarate   : 244
     framerate       : 1000
     videocodecid    : 7
     audiodatarate   : 31
     audiosamplerate : 22050
     audiosamplesize : 16
     audiocodecid    : 2
     major_brand     : f4v
     minor_version   : 0
     compatible_brands: isommp42m4v
     creation_time   : 2033-01-13 05:07:24
     encoder         : Lavf52.93.0
     filesize        : 2165108
   Duration: 00:00:59.76, start: 0.025000, bitrate: 281 kb/s
     Stream #0.0: Video: h264, yuv420p, 352x288 [PAR 1:1 DAR 11:9], 249
 kb/s, 25
 tbr, 1k tbn, 24 tbc
     Stream #0.1: Audio: mp3, 22050 Hz, 1 channels, s16, 32 kb/s
 At least one output file must be specified

 C:\ffmpeg-r26400-swscale-r32676-mingw32-static\bin>

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/977#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list