6

I'm making mp4 (libx264 + aac) videos that have just one static image throughout the whole video. It's basically a narrated text with a nice background.

The question I've is how could I speed up encoding of such videos? Currently the videos are encoding at 50fps which is very, very slow. I can only encode 2000 videos on a single computer in one day.

Any particular settings I could specify to ffmpeg or lib264 library to suggest that there is no motion, and it's just a single image that has to b

For comparison, I was doing .avi (divx + mp3) videos before I moved to mp4, and I was able to encode 6000 - 8000 videos per day.

1
  • First, ideally this question should have the command and the ffmpeg output; second, divx is a much simpler codec than h264, all other things being equal you will inevitably get longer encode times with h264 (but smaller and/or better-quality output files).
    – evilsoup
    Commented Jan 18, 2013 at 22:44

1 Answer 1

1

Give this a try:

ffmpeg -i audio.m4a -loop 1 -r 2 -i image.jpg -c:a copy -c:v libx264 -preset ultrafast -shortest out.mp4

-r 2 sets the frame rate to 2 fps (some players seem to have problems with 1 fps).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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