nem.ec

Programming Information Security Recipes Personal Code Snippets

Combine an audio file and a static image into a video

ffmpeg -loop 1 -i image.jpg -i audio.wav \
    -c:v libx264 -tune stillimage \
    -c:a aac -b:a 192k -pix_fmt yuv420p -shortest \
    out.mp4

via https://superuser.com/a/1041818/91462

Copied!

Use your own input

If you have values you'd like to use instead of the provided variables, type or paste your data into the variable inputs below. If Javascript is enabled, your text will automatically be added to the command and you can click to copy.