[FFmpeg-user] Wrong duration detection by ffmpeg

Andrew Gora master at io.ua
Wed May 23 08:27:30 CEST 2012


Hi,

Please, explain whats wrong with the duration detection: "12:08:10.44"?

There are two outputs from the same video below: ffmpeg and MediaInfo.
MediaInfo gives "1h 56mn" for the duration - its OK.

Thanks in advance!

--------

On server: ffmpeg -i video.flv 2>&1

ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
  built on Apr 18 2012 10:24:03 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3)
  configuration: --prefix=/usr/local/ffmpeg-0.10.2 --enable-shared --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-nonfree
--enable-gpl --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-libfaac --enable-libx264 --enable-avfilter --enable-postproc --enable-version3
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[flv @ 0x228e3a0] Skiping duplicate index
Input #0, flv, from '/farm-video/img_v/mp4/0014/41/00144178.flv':
  Metadata:
    videosize       : 107014668
    hasMetadata     : true
    canSeekToEnd    : true
    hasVideo        : true
    hasCuePoints    : false
    metadatacreator : Yet Another Metadata Injector for FLV - Version 1.8
    hasAudio        : true
    hasKeyframes    : true
    lastkeyframetimestamp: 2734
    lasttimestamp   : 2734
    audiosize       : 23129491
    datasize        : 130836255
    totalframes     : 1092306
    lastkeyframelocation: 130863506
  Duration: 12:08:10.44, start: 0.040000, bitrate: 385 kb/s
    Stream #0:0: Video: h264 (High), yuv420p, 720x384 [SAR 1:1 DAR 15:8], 310 kb/s, 25 tbr, 1k tbn, 50 tbc
    Stream #0:1: Audio: mp3, 44100 Hz, mono, s16, 64 kb/s


Local MEDIAINFO:

General
Complete name                            : D:\video.flv
Format                                   : Flash Video
File size                                : 319 MiB
Duration                                 : 1h 56mn
Overall bit rate                         : 384 Kbps
Tagged date                              : UTC 2012-04-10 02:44:18
Tagging application                      : flvtool++ (Facebook, Motion project, dweatherford) / Yet Another Metadata Injector for FLV - Version 1.8
totalframes                              : 1092306.000

Video
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High at L3.0
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : 7
Duration                                 : 1h 56mn
Bit rate                                 : 295 Kbps
Nominal bit rate                         : 312 Kbps
Width                                    : 720 pixels / 720 pixels
Original width                           : 720 pixels
Height                                   : 384 pixels / 384 pixels
Original height                          : 384 pixels
Display aspect ratio                     : 1.875
Frame rate mode                          : Constant / CFR
Frame rate                               : 25.000 fps / 25.001 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.043
Stream size                              : 246 MiB (77%)
Writing library                          : x264 core 118
Encoding settings                        : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=6 / 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=36 / 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=50 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=30 / rc=abr / mbtree=1 / bitrate=312 / ratetol=1.0 / qcomp=0.60 /
qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.41 / aq=1:1.00

Audio
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Codec ID                                 : 2
Codec ID/Hint                            : MP3
Duration                                 : 1h 56mn
Bit rate mode                            : Constant
Bit rate                                 : 64.0 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Delay relative to video                  : 40ms
Stream size                              : 53.3 MiB (17%)


Sincerely,
Andrew Gora



More information about the ffmpeg-user mailing list