Opened 6 years ago

Last modified 6 years ago

#1621 new defect

Converted flash video has longer duration than the source — at Version 1

Reported by: agowad Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by cehoyos)

### WHAT
I am trying to convert a video to flv format maintaining its (almost exact = less than 0,5s) duration.

### THE PROBLEM
Generated flash is longer than the input file.
Input file duration: 00:01:46.02
Output file duration: 00:01:47.24
I can make the difference smaller by reducing -ar 44100 to 11025, but still it is larger than 0,5s (which is much for me).

### COMMAND LINE

ffmpeg.exe -i "Dolphins_720.wmv"  -vf "scale=500:281,pad=500:500:0:109,setdar=500:500"  -y -b:v 1000k -r 23.98 -ar 44100  -ab 384 -acodec libmp3lame -ac 2 "Dolphins_7202_TMP.flv"

### THE INPUT FILE

ffmpeg version N-43206-gf857465 Copyright (c) 2000-2012 the FFmpeg developers
  built on Aug  4 2012 16:10:39 with gcc 4.7.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
 --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --e
nable-zlib
  libavutil      51. 66.100 / 51. 66.100
  libavcodec     54. 49.100 / 54. 49.100
  libavformat    54. 22.100 / 54. 22.100
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3.  5.102 /  3.  5.102
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[asf @ 01f37a20] Format asf probed with size=2048 and score=100
[asf @ 01f37a20] gpos mismatch our pos=24, end=26
[asf @ 01f37a20] gpos mismatch our pos=24, end=1042
[asf @ 01f37a20] gpos mismatch our pos=24, end=38
[asf @ 01f37a20] gpos mismatch our pos=24, end=314
[asf @ 01f37a20] gpos mismatch our pos=24, end=38
[asf @ 01f37a20] File position before avformat_find_stream_info() is 2856
[asf @ 01f37a20] parser not found for codec wmapro, packets or times may be inva
lid.
[wmv3 @ 01f3e100] Header: 4BF10A01
[wmv3 @ 01f3e100] Profile 1:
frmrtq_postproc=5, bitrtq_postproc=31
LoopFilter=0, MultiRes=0, FastUVMC=0, Extended MV=0
Rangered=0, VSTransform=1, Overlap=1, SyncMarker=0
DQuant=0, Quantizer mode=0, Max B frames=0
[asf @ 01f37a20] parser not found for codec wmapro, packets or times may be inva
lid.
[asf @ 01f37a20] All info found
rfps: 23.750000 0.011882
rfps: 23.833333 0.004763
rfps: 23.916667 0.000862
    Last message repeated 1 times
rfps: 24.000000 0.000182
    Last message repeated 1 times
rfps: 24.083333 0.002721
    Last message repeated 1 times
rfps: 24.166667 0.008479
    Last message repeated 1 times
rfps: 24.250000 0.017456
rfps: 47.666667 0.019050
rfps: 47.750000 0.009640
rfps: 47.833333 0.003450
    Last message repeated 1 times
rfps: 47.916667 0.000479
    Last message repeated 1 times
rfps: 48.000000 0.000727
    Last message repeated 1 times
rfps: 48.083333 0.004195
    Last message repeated 1 times
rfps: 48.166667 0.010882
rfps: 23.976024 0.000048
    Last message repeated 1 times
rfps: 47.952048 0.000191
    Last message repeated 1 times
[asf @ 01f37a20] File position after avformat_find_stream_info() is 1427237
Input #0, asf, from 'Dolphins_720.wmv':
  Metadata:
    WMFSDKVersion   : 9.00.00.2980
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 00:01:46.02, start: 0.000000, bitrate: 6576 kb/s
    Stream #0:0(eng), 11, 1/1000: Audio: wmapro (b[1][0][0] / 0x0162), 48000 Hz,
 5.1, flt, 384 kb/s
    Stream #0:1(eng), 41, 1/1000: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420
p, 1280x720, 1/1000, 6000 kb/s, 23.98 tbr, 1k tbn, 1k tbc
At least one output file must be specified
[AVIOContext @ 01f3ff60] Statistics: 1441792 bytes read, 0 seeks

Change History (1)

comment:1 Changed 6 years ago by cehoyos

  • Description modified (diff)

Is the scale filter needed to reproduce the problem?
Please provide a minimal - as short as possible - command line to reproduce the problem together with complete, uncut console output.

If the problem is also reproducible without external libraries (in this case: lame), please provide a command line that does not use an external library.

Note: See TracTickets for help on using tickets.