Skip to main content
6 of 6
added 120 characters in body

Use both -framerate and -r

E.g., to have a final video that looks like 1FPS:

ffmpeg -framerate 1 -pattern_type glob -i '*.png' \ -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 

This is similar to what Converting PNG frames to video at 1 FPS | Unix & Linux Stack Exchange says, but I needed -framerate instead of -r for it to work.

This is mentioned on the wiki at: http://trac.ffmpeg.org/wiki/Slideshow#Framerates

It sets the output framerate to 30, which VLC can handle, and copies each images 30 times, so that the output video appears to be at 1 FPS. See also: Playback issues in VLC with low fps video from images using ffmpeg | Stack Overflow

VLC is then able to play the video normally.

Tested on Ubuntu 16.10, VLC 2.2.4, ffmpeg 3.0.5, in a directory with 10 PNGs.

See also: https://stackoverflow.com/questions/19267443/vlc-freezes-for-low-1-fps-video-created-from-images-with-ffmpeg