FFmpeg - how to convert pictures to mp4?

Solution 1:

Remove the unnecessary ffmpeg options.

#!/bin/bash
unoconv -f pdf test1.pptx
convert -density 400 test1.pdf picture.png
ffmpeg -r 1/5 -i picture-%01d.png test.mp4

or

unoconv -f pdf test1.pptx; convert -density 400 test1.pdf picture.png; ffmpeg -r 1/5 -i picture-%01d.png test.mp4

Instead of this:

ffmpeg -y -r 1/5 -i picture-%01d.png -c:v libx264 -vf fps=25 -pix_fmt yuv420p test.mp4

use this instead:

ffmpeg -r 1/5 -i picture-%01d.png test.mp4