2020-09-11, 10:48 AM
(2017-04-23, 11:27 PM)spoRv Wrote: OK, I should warn everyone: avisynth is a nightmare, for a beginner!!!
Said so, luckily this task is one of the easiest to make with it, so any absolute beginner, with a bit of patience, would be able (in theory) to put a soundtrack in sync with video; it's just a matter of "trim" commands, that's all... easy, huh?
Example:
trackA is the main one, trackB is the one to put in sync
trackA video |01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|
trackA audio |01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|
trackB video |01|02|03|04|05|XX|XX|06|07|08|09|__|11|12|13|14|__|16|17|18|19|20|
trackB audio |01|02|03|04|05|XX|XX|06|07|08|09|__|11|12|13|14|__|16|17|18|19|20|
XX are frames not present in the trackA, while __ are missing frames... so, you have to remove XX frames, and replace __ frames from trackA; when in sync, they will be as following
trackA video |01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|
trackA audio |01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|
trackB video |01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|
trackB audio |01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|
got the point?
I usually use this method, and going with Audacity when something more to the audio should be made.
I started looking at Avisynth last night. Interesting stuff!
I've now managed to load two movies side by side as a test.
So trims are clips you want to keep. I've been making trims to "trackB video" and adding the result and playing alongside the source "trackA video". Now the question is how do I keep track of which frame(s) to cut from the original source of trackB? Should I open the original in another virtualdub2 instance? Or is there a smarter math formula to use?
For videos, I converting them to .d2v and using mpeg2source to load them. Whats the best way to load audio and have them playback in virtualdub?
And once I've got the video in sync, how do I apply those cuts to the audio?





