[FFmpeg-user] last frame missing from mpeg2 and mpeg1 encodes

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Feb 22 17:26:13 CET 2013

Chris Vincze <chris-v <at> moving-picture.com> writes:

> > (Why do you define audio encoding for a video-only file?)
> This a general case for any input. I need to create a 
> resultant file with audio even if it's silence.

But the command line you posted does not do that...

> > I tested this command line for the sample you uploaded
> > and the output file has ten frames (and no green bar) here.
> > I tested this command line and the output file has 100
> > frames here,
> Do you think you could upload the files you made so I can 
> see it on my system?

I don't think they are different from your output files.

> > 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
> That's the strange thing. I get the same frame=100 
> readout, yet when I analyse the resulting file I get a
> short output.

(The useful "analysis" is ffmpeg -vsync 0 -i in out%4d.png)
Do you get a "short output" or "last frame missing"?

I am not saying there is no issue (I don't know), but the 
issue is certainly not that the last frame is missing.

(I cannot comment on the ffprobe output.)

> are you seeing the 100 frames visually?

Yes, and so will you if you try ffplay ;-)

Please fix your quoting!

Carl Eugen

More information about the ffmpeg-user mailing list