Hey everyone,

Got a himdinger of a problem this time around.

I'm using FFMPEG to create a video clip from a PNG image, and a wave file. I'm setting the video rate to 1 fps, because it's just a static image after all, and that keeps my video VERY small (it's destination is .flv for web).

The problem here is that my audio stream is for example, 38.541 seconds long. FFMPEG rounds the video stream up to 39 seconds, because it's only 1 frame per second. After I concatenate 30, 40, 50 of these clips together, things start to get wildly out of sync, because a half second here, a quarter second there start to add up.

What I would like to do, rather than up the fps, is pad the audio up to the next second.

I've tried a command like this, but it does not have the desired effect:
Code:
ffmpeg -r 1 -loop_input -i image.png -s 656x492 -t 00:00:39 -i audio.wav -t 00:00:39 -r 1 -qscale 1 -acodec pcm_s16le outvid.avi
The audio stream is still the same length as before.

Does anyone know of any tool I can use to pad the wav? (Must be commandline linux) Or, is there a way to generate an empty wav file of a specified length, and pass that in to FFMPEG to level the audio stream out?

Any help is greatly appreciated! Thanks in advance!!