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

David Fire ddfire at gmail.com
Mon Aug 26 21:41:55 CEST 2013


hi
i think the trick is -loop 1
i just tryed this and worked...
avconv -y  -loop 1 -i snapshoot8.png -t 30 video.mp4
the result is a 30 seconds long video with the same image... not very funny
:P



2013/8/26 Werner Detter <werner at aloah-from-hell.de>

> 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
> _______________________________________________
> libav-tools mailing list
> libav-tools at libav.org
> https://lists.libav.org/mailman/listinfo/libav-tools
>



-- 
 (\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-tools/attachments/20130826/c42a56b2/attachment.html>


More information about the libav-tools mailing list