[libav-tools] Create mp from one single JPG file

Werner Detter werner at aloah-from-hell.de
Mon Aug 26 21:30:44 CEST 2013


Dear Libav-Community, 

I want to create a single MP4 video from just one JPG image. Well that's working so far
_but_ I am not able to set the length of the mp4 video. For example let's say I want 
to create a video from image.jpg, the video shouls show this single image for about, 
let's say, one minute. 

I've tried so many stuff but just cant get this working, like 

avconv -y -r 1 -t 00:00:59 -f image2 -i image.png -vcodec libx264 -crf 18 -preset slower -vf scale=\"trunc(oh*a/2)*2:1024\" image.mp4
avconv -y -r 1/59 -t 00:00:59 -f image2 -i image.png -vcodec libx264 -crf 18 -preset slower -vf scale=\"trunc(oh*a/2)*2:1024\" image.mp4
... 
and so on

The Video is created but it's onle 1 sec in duration. Please, can you tell me what i 
am doing wrong here? This drives me nuts :)

Thanks,
Werner


More information about the libav-tools mailing list