I have a x264 avi file with no sound and a wav file. Is there a software that will sync and mux these two together without re-encoding the video? The audio can be encoded to other formats such as AAC, AC3.
+ Reply to Thread
Results 1 to 18 of 18
-
-
Code:
ffmpeg -i video.avi -i audio.wav -map 0:v -map 1:a -c:v copy -c:a aac -b:a 160k output.mp4
-
It depends on whether it's just an offset problem, or whether it drifts progressively worse ...
-
It's not an offset problem I just need to put the audio at some point in time in the video like in Adobe Premiere. I'll try Adobe Premiere and see if it won't re-encode.
-
-
i don't know the numbers. I have to visually sync people's lips to the works spoken.
-
I've used MPC-HC to determine the sync offset, if that is your problem. Play the video and use the + and - keyboard keypad keys as the video plays.
When you get the audio synced, write down the offset and add it to your encoder/editor program.
But if the sync changes during the playback, then you would need to adjust the length of the audio.
Or if you are unfortunate, you might have a combination of both sync errors. -
I tried that before, it's time consuming and have to go through many trial and error. It's better if I can visually see the wave forms and the video and then align them together. I'm currently trying Adobe After Effects but it's a complicated software, so I'm watching some tutorials.
-
I use AviSynth's AudioGraph filter to do just that:
https://forum.videohelp.com/threads/383349-Cropping-the-top-of-frame-in-Handbrake/page4#post2487503 -
Looks like the video and audio are at different frame rates. The video is exactly 18 fps and the audio is slightly under 18 fps. Video duration is 16min 17s and the audio duration is 16min 38s. How do I change the frame rate of the audio so it syncs with the video? I assume Avisynth can do this.
-
Audio doesn't have a framerate. But, yes, audio can be stretched using AviSynth. I do my audio work in Audacity, but AviSynth's TimeStretch command might suit you.
-
How about if we change the video frame rate to suite the audio's duration time? ChangeFPS() or ConvertFPS() will do? Is this better than TimeStretch?
I will try audacity first and change the speed.Last edited by digicube; 22nd Jun 2017 at 11:31.
-
Neither ChangeFPS() nor ConvertFPS() change video duration, only AssumeFPS() does. But:
- VirtualDub should be able to do that without re-encoding. (AviSynth() implies reencoding)
- matching video to audio duration doesn't always guarantee sync. (only with constant frame rate and lengths of the tracks matching)
Similar Threads
-
VirtualDub audio out of sync, other video players all in sync
By a1s2d3f4 in forum Newbie / General discussionsReplies: 7Last Post: 11th Apr 2016, 21:36 -
fixing audio sync without changing the video/audio quality of mp4 video
By aruwin in forum AudioReplies: 3Last Post: 7th Aug 2014, 23:10 -
Can you recommend the best mac software for this...?
By lapsang in forum MacReplies: 12Last Post: 7th Jun 2014, 04:56 -
Recommend a video editing software program for me.
By LifewithOden in forum Newbie / General discussionsReplies: 15Last Post: 13th Mar 2014, 18:15 -
Need a simple tool to sync up badly out of sync audio and video
By CompVid in forum EditingReplies: 16Last Post: 26th May 2013, 06:55