Celeb Glow
updates | March 21, 2026

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 32k

How should I proceed?

1

2 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.mpeg

Add extra goodies as desired.

8

That would do it

ffmpeg -loop 1 -i picture.jpg -i audio.mp3 -shortest -c:v libx264 -c:a copy -tune stillimage output.mp4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy