I have a set of video frames saved as images in a directory, and I'm trying to encode these to a good quality video, however every setting and every format I try produces very noticeable artifacts.
The basic command is this:
ffmpeg -r 25 -i %4d.png myvideo.mpg
and I've tried the minrate and maxrate flags. Any of {mpg, avi, mov, flv} formats will do.
Any suggestions for settings? Final file size is not an issue.
ffmpeg -r 20 -f image2 -i myImage%04d.png -f mp4 -q:v 0 -vcodec mpeg4 -r 20 myVideo.mp4
. I found that to force the framerate, I had to specify it for both the input and the output files. This codec seems to work for me -- you may not need to specify it. I just wanted to include what I did because I've spent a lot of time working on it. The only downside is that my input images are high-contrast (blue and red balls against a white background) and later in the movie, the balls begin to all become the same dark color -- an unwanted contrast effect.