[FFmpeg-user] Creating video with single JPG + MP3 file?

bat guano batguano999 at hotmail.com
Tue Jun 12 16:50:29 CEST 2012




----------------------------------------

>
> Is this still the best way to get the most compact file with a single
> JPG?
>
> ffmpeg -loop_input -i imagine.jpg -i audio.mp3 -y -r 30 -b 2500k
> -acodec ac3 -ab 384k -vcodec mpeg4 result.mp4
>

No, you can do better than that.
Example:-
ffmpeg -loop 1 -i image.jpg -i audio.mp3 -shortest -c:v libx264 -c:a copy result.mkv

 		 	   		  


More information about the ffmpeg-user mailing list