[FFmpeg-user] last frame missing from mpeg2 and mpeg1 encodes
Carl Eugen Hoyos
cehoyos at ag.or.at
Fri Feb 22 16:26:32 CET 2013
Chris Vincze <chris-v <at> moving-picture.com> writes:
> > Is this also reproducible if you use a ten-frame input file?
> > If yes, please provide such a sample.
>
> With a ten-frame input I'm getting the right length, but a
> green bar over the end frame. With a 100 frame input i'm
> getting the same result as with 1000 frames, one missing
> frame, a 99 frame output. I'm enclosing both here, with
> their outputs:
>
> ftp://ftp6.moving-picture.com/private/ffmpeg/
(The mov files you uploaded have completely different
properties than the one you described in your
original post.)
> ffmpeg -i ten_frame.mov' -r 25.0
> -vf 'scale=312:176, pad=320:176:4.0:0' -c:v mpeg1video
> -pix_fmt yuv420p -q:v 1 -c:a mp2 -b:a 192k -r:a 48000
> -y 'ten_frame.mpg'
(Why do you define audio encoding for a video-only file?)
I tested this command line for the sample you uploaded
and the output file has ten frames (and no green bar) here.
> ffmpeg -i 'hundred_frame.mov' -r 25.0
> -vf 'scale=312:176, pad=320:176:4.0:0' -c:v mpeg1video
> -pix_fmt yuv420p -q:v 1 -c:a mp2 -b:a 192k -r:a 48000
> -y 'hundred_frame.mov'
I tested this command line and the output file has 100
frames here, this is also what your console output shows:
> frame= 100 fps=0.0 q=1.0 Lsize= 120kB time=00:00:03.96 bitrate= 248.2kbits/s
I downloaded the mpg files from the ftp server, one
has ten frames (no green bar), the other one contains
100 frames.
Carl Eugen
More information about the ffmpeg-user
mailing list