Score:0

FFmpeg - how to convert pictures to mp4?

nr flag

i´m using ubuntu and want to create a .mp4 file with some pictures I have this error:

width not divisible by 2 (5333x3000)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

I try to convert with this :

unoconv -f pdf test1.pptx && convert -density 400 test1.pdf picture.png && ffmpeg -y -r 1/5 -i picture-%01d.png -c:v libx264 -vf fps=25 -pix_fmt yuv420p test.mp4
Score:1
bo flag

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
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.