Script + Script + Script

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Post by Qyot27 » Thu Aug 21, 2008 1:05 pm

Audio is generally trivial to match between scripts with one major exception (channel numbers - I've still not found a good, simple solution to convert Mono to Stereo like I can with dBpoweramp, which I think just uses channel duplication to do it; there are Stereo to Mono downsampling filters, just none that do the reverse without huge amounts of secondary work).

With AssumeFPS(xx.xxx,sync_audio=true), you'll probably need to latch on an SSRC command to restabilize the sample frequency (forewarning: sometimes it can get really bitchy about this and you have to resample more than one time - once before the AssumeFPS command and once after, and sometimes the initial one needs to be resampled higher than the intended frequency - I've noticed this countless times when converting AMVs to DVD when the videos use a non-compliant framerate - upsample to 56000, 52000, or 49000 Hz, and then back down to 48000 after the fps has been corrected). At that point you can make the frequencies of however many audio streams match among scripts.


Another thing to consider, depending on the circumstances, is the possibility of using DGPulldown to do irregular pulldown patterns (the most famous example of using it is probably the scenario of pulling down 25fps footage to 29.97fps, but it can do other patterns, as long as both the source and destination framerates are legal for MPEG-2 - I have tested this on several DVD players and they don't have problems with it).

Mosc
Joined: Mon Oct 30, 2006 8:13 am
Org Profile

Post by Mosc » Thu Aug 21, 2008 2:49 pm

Qyot27 wrote:(channel numbers - I've still not found a good, simple solution to convert Mono to Stereo like I can with dBpoweramp, which I think just uses channel duplication to do it; there are Stereo to Mono downsampling filters, just none that do the reverse without huge amounts of secondary work)

Code: Select all

Import("mono_audio.avs")
MergeChannels(last,last)

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Post by Qyot27 » Fri Aug 22, 2008 2:44 pm

Mosc wrote:
Qyot27 wrote:(channel numbers - I've still not found a good, simple solution to convert Mono to Stereo like I can with dBpoweramp, which I think just uses channel duplication to do it; there are Stereo to Mono downsampling filters, just none that do the reverse without huge amounts of secondary work)

Code: Select all

Import("mono_audio.avs")
MergeChannels(last,last)
I stand corrected. I don't know why I didn't see that sooner.

Locked

Return to “AviSynth Help”