EDIT: I fixed it, I'm a happy camper
Hi guys,
I'm creating a movie from images and trying to add audio. The movie comes out perfectly but when I add audio it's not only way out of sync but the movie comes out longer than it should be.
Here is the setup:
300 bitmaps at 30 fps make a 10 sec video perfectly
a .wav file that's exactly 10 secs at sample rate 44100 with 2 channels and 16-bit (standard CD PCM)
When I add in the audio the movie becomes 12 secs and the sound events occur much too early.
Here is the code:
This is killing me, please help. Thank you.Code:// this works great: ffmpeg -r 30 -i frame_%d.bmp -vcodec rawvideo -y movie.avi // trying to add audio: ffmpeg -r 30 -i frame_%d.bmp -i audio.wav -vcodec rawvideo -acodec copy -y movie.avi
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
Last edited by Endemoniada; 30th Jan 2013 at 20:31. Reason: Solved
-
You could try mux the audio after
Code:ffmpeg -i movie.avi -i audio.wav -vcodec copy -acodec copy newmovie.avi
-
I see you solved it.....it would would be good if you told how also. It might help others who searches for same problem.
-
untested:
Code:ffmpeg -r 30 -i frame_%d.bmp -i audio.wav -map 0:0 -map 1:1 -c:v:0 rawvideo -c:a:1 copy -y movie.avi
Similar Threads
-
Let ffmpeg show used audio and video codec inside a (.mp4) video file?
By pxstein in forum Newbie / General discussionsReplies: 1Last Post: 26th Jan 2013, 02:47 -
ffmpeg: getting quality loss of avi when adding audio back in
By vidgem in forum AudioReplies: 2Last Post: 15th Mar 2012, 23:39 -
FFMPEG adding audio to mpg video => QT bug
By Tom2me in forum MacReplies: 3Last Post: 6th Aug 2011, 05:27 -
svcd2dvd ffmpeg has stopped working adding dvr-ms
By Pooch917 in forum SVCD2DVD & VOB2MPGReplies: 2Last Post: 1st Mar 2010, 09:00 -
Need Help With Cineform NEOScene Conversion Working Correctly in Adobe Premiere CS4
By kasprsez in forum Video ConversionReplies: 5Last Post: 29th Jan 2010, 10:38