Log in

View Full Version : cutting and sync


jmac698
18th December 2006, 19:19
I'm using
dgindex, demux
v=mpegsource(.d2v)
a=nicac3source(.ac3)
audiodub(v,a)
a=trim(9,12002)
b=trim(150023,26003)
a+b
should this be all that's necessary to keep sync?
a test encode was not in sync. do I need to apply
delayaudio according to the filename produced by dgindex? Do I need to use a++b?
I plan to encode to mpeg4 asp, mp3, .mp4.

krieger2005
18th December 2006, 19:36
Does the ac3-file have a delay? As i understand the AC3-File is from the movie of the d2v-file... If the ac3-file does not have a delay it should be in sync.

manolito
18th December 2006, 19:51
Do I need to use a++b?
Yes you do. It is called "Aligned Splice" because it takes care of audio sync at the transition point.

Cheers
manolito

jmac698
18th December 2006, 23:49
yes there's a delay, it's part of the filename created by dgindex: -528ms.ac3
thanks, I will try ++, that would explain alot..

IanB
19th December 2006, 04:49
I am not sure if nicac3source can do sample exact seeking. If you have sync problems after the splice add .EnsureVBRMp3Sync() to the end of you nicac3source(...) line. This filter will ensure linear access to the input stream an avoid the need to have exact seeking at the expense of linearly reading the whole stream.

tebasuna51
20th December 2006, 18:05
I'm using
dgindex, demux
v=mpegsource(.d2v)
a=nicac3source(.ac3)
audiodub(v,a)
a=trim(9,12002)
b=trim(150023,26003)
a+b
should this be all that's necessary to keep sync?
a test encode was not in sync. do I need to apply
delayaudio according to the filename produced by dgindex? Do I need to use a++b?
I plan to encode to mpeg4 asp, mp3, .mp4.
You need only use the delay at:
a=NicAc3Source(.ac3).DelayAudio(-0.528)

a++b or EnsureVBRMp3Sync() aren't necessary because ac3 is CBR and NicAc3Source supply exact uncompressed audio.