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:
The audio stream is still the same length as before.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
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!!
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
Problem padding with ffmpeg
By joesphroth in forum Video ConversionReplies: 8Last Post: 6th Dec 2011, 17:56 -
Audio does not match with the video
By c018279 in forum Blu-ray RippingReplies: 1Last Post: 31st Mar 2009, 04:10 -
Video and Audio does not match
By hzgg2 in forum Authoring (DVD)Replies: 1Last Post: 1st Aug 2008, 19:50 -
cant get audio to match video
By loa909 in forum Newbie / General discussionsReplies: 4Last Post: 31st Mar 2008, 06:35 -
Conversion of audio to match video
By deltaromeo in forum AudioReplies: 11Last Post: 29th Jan 2008, 12:01