combine audio and photo using command line in Ubuntu
What is the best way that I can make a video from one photo and one audio file like Mp3
I’m using an Ubuntu headless server, so I need a command line version for this... I tried with avconv but I couldn't find any good documentation for it
I used this command but actually it's not what I need because I get something else:
sudo avconv -i filename_1.png -b:v 1000k test.mp4 -b:a 32kHow should I proceed?
12 Answers
This command will create a video that displays the picture for the duration of the supplied audio file:
ffmpeg -loop 1 -i picture.png -i audio.ogg -shortest output.mpegAdd extra goodies as desired.
8That would do it
ffmpeg -loop 1 -i picture.jpg -i audio.mp3 -shortest -c:v libx264 -c:a copy -tune stillimage output.mp4