[FFmpeg-user] how to change the framerate for an MTS file recorded by the Panasonic TM-700 in 60p?

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Dec 8 19:10:39 CET 2012

Christian von Kutzleben <christian.von.kutzleben <at> gmail.com> writes:

> > $ ffmpeg -i input -r 30000/1001 -qscale 2 out.ts

> The result of the conversion using the options you told 
> me looks good enough, of course without knowing the 
> internals of ffmpeg (and my video stream) I don't know, 
> whether this is the most "loss-least" conversion method.

I provided you with (a simple and) most "loss-least" 
conversion method, yes. Usually, this is not what people 
want but it works well if size does not matter.

> I could image, that for this particular conversion, 
> assuming an example sequence of i1p1p2p3p4...
> the conversion could yield i1(p1+p2)(p3+p4), which, 
> give or take rounding issues, would be virtually lossless.

I do not understand this, but -r simply drops (or duplicates) 
frames, I believe the ffmpeg console output tells you more.
(If not, you are most probably using a severely broken 
version of FFmpeg.)
If really no frames get dropped than your input is already 
29.9 fps.

> Just out of curiosity: Is there an ffmpeg option to dump 
> the types of all frames in a video stream?

There are several possibilities iirc, ffprobe should for 
example allow this (there is also a select filter).

Carl Eugen

More information about the ffmpeg-user mailing list