esmop.blogg.se

Ffmpeg crop is dropping frames
Ffmpeg crop is dropping frames





ffmpeg crop is dropping frames

I played with this some more, and I'm dependably get dropped frames using standard animation options.

#Ffmpeg crop is dropping frames movie#

I can't comment on whether this solution does not work for other movie players. For vlc, any combination where -framerate matches -r works fine (and minimizes final size), thus solving A above. Using ffmpeg -framerate 30 -i Rplot%d.png -c:v libx264 -r 30 out.mp4 correctly makes a 30fps video with no dropped frames. If one wants 24fps with 48 plots per second ("fast forward"), ffmpeg will drop frames. output varies slower than input, "slow motion"), ffmpeg will duplicate frames to achieve the desired effect. B: Some players might be more picky about framerate? If one needs standard 24fps (ffmpeg default?), with 2 plots per second (i.e.This always works in "good" players like vlc. A: When using still images to make video (as in saveVideo), one can simply specify both input and output to be the same, equal to the desired framerate.My understanding is that there are 2 related issues.

ffmpeg crop is dropping frames

To be honest, ffmpeg's behavior in the case of -r for both input and output is confusing and poorly documented, and should perhaps be avoided altogether.

ffmpeg crop is dropping frames

If -r is used for both and input -r does not equal output -r, ffmpeg discards large (contiguous) blocks of frames to achieve a correct final ratio. The docs for ffmpeg are not great in this respect, but encourage the use of -framerate for input and -r for output rates ("If in doubt use -framerate instead of the input option -r").







Ffmpeg crop is dropping frames