Jay Taylor's notes

back to listing index

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

[web search]
Original source (lists.ffmpeg.org)
Tags: video-editing video-encoding video ffmpeg lists.ffmpeg.org
Clipped on: 2016-12-10

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

Lou lou at lrcd.com
Tue Jun 12 20:02:12 CEST 2012

On Tue, 12 Jun 2012 14:50:29 +0000
bat guano <batguano999 at hotmail.com> wrote:

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

Also of interest when using libx264 for something like this is "-tune stillimage".

More information about the ffmpeg-user mailing list