Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have one mp3 song song.mp3 and 2 jpg files 1.jpg 2.jpg Now, I want to make video from mp3 with jpgs as a background, but in a way so that 1.jpg streams for first 5 seconds then 2.jpg till the rest of the song.

This is not working

ffmpeg -i 1.jpg -t 5 -loop_input 2.jpg -i song.mp3 -shortest -acodec copy video.flv

I know there is a way to do it when you get length of the song, but prefered way would be without knowing the length, if it exists.

share|improve this question

closed as too localized by Luis Alvarado Apr 9 '13 at 13:15

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

Browse other questions tagged or ask your own question.