Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

How do I generate a movie using ffmpeg using single image(image1.png) for duration of 15 seconds with specific resolution,

so when i play video image will be appear on screen for 15 seconds .

Thanks

share|improve this question
up vote 7 down vote accepted

Use this

ffmpeg -loop 1 -i image.png -c:v libx264 -t 15 -pix_fmt yuv420p \ 
-vf scale=320:240 out.mp4

-t 15 -> for 15 seconds
-vf scale=320:240 -> for video width/height

Make sure to use a actual ffmpeg version e.g. http://johnvansickle.com/ffmpeg/

share|improve this answer
    
This works as intended thanks a ton for Quick response :-) – Dharmesh Sep 18 '14 at 6:57
    
Unable to find a suitable output format for 'scale=1280:1024' scale=1280:1024: Invalid argument Any idea why? – Agey Jun 23 '15 at 12:45
    
@Agey Can you please post the complete command? – Equanox Jun 23 '15 at 16:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.