how to make .avi from .jpegs and add mp3 sound

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
mercier

how to make .avi from .jpegs and add mp3 sound

Post by mercier »

images to avi:

1. make all .jpeg files same resolution in the same folder
2. open folder in terminal
3. run:

Code: Select all

mencoder mf://\*.jpg -mf w=704:h=520:fps=1:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o output.avi 
where "w" and "h" represent the width and heights of your photos, and "fps" means frames per second. fps=1 means 1 frame (photo) per second. if you want them to move slower, 0,5 would mean 1 frame/ 2 seconds, and so on.

you'll get "output.avi" file with your photos.

add mp3 to avi:

4. copy mp3 file to the same folder
5. run:

Code: Select all

mencoder output.avi -oac copy -ovc copy -audiofile YOURPATHAUDIOFILE.mp3 -o final.avi
and thats it :D

you can play with the number of photos and fps value to make the file as long as the mp3 file.

i spent the best part of the last two days trying to master different programs like avidemux, kino, kdenlive, LiVES, images2mpeg etc. but this is what is so great about linux. some simple commands i found on the net.

hope this will help you. credit goes to the authors.
tavta

Re: how to make .avi from .jpegs and add mp3 sound

Post by tavta »

Thanks, man! Exactly what I was looking for.
Post Reply

Return to “Tutorials”