Log in

View Full Version : Audio stumble while Dissolve()


egochnpp
3rd February 2012, 14:27
Hello. I have problem on this (http://www.mediafire.com/?z7gphh6g50btpj4)video with next simple script:
clip = directshowsource("mvi_5433.mov")
part1 = clip.trim(0, 100)
part2 = clip.trim(200, 300)
part3 = clip.trim(400, 500)
return part1 + dissolve(part2, part3, 100) #Audio stumbled
#return dissolve(part2, part3, 100) #Audio OK

This is an example script, in dissolve area sound is stumbled.
Source:
h264, unkompressed audio 44 kHz/16 bit
Result:
xvid, unkompressed audio 44 kHz/16 bit
Encoding with VirtualDub
Thanks.
P.S. Sorry for my bad english.

Gavino
4th February 2012, 12:18
What do you mean by 'stumbled'?

If you mean there is an audio glitch or click, and only at the transition between part1 and the rest, try using a very short (eg 1 frame) dissolve instead of a hard splice for that join.
part23 = dissolve(part2, part3, 50)
return dissolve(part1, part23, 1)

On the other hand, if you mean the audio is out of sync during all of the second part, it could be a problem with DirectShowSource, which is not guaranteed to be frame-accurate. In that case, try another source filter like ffms2.

egochnpp
4th February 2012, 13:47
To Gavino:
Thanks, I see your answer in forum.videohelp.com. There is also my answer.
link (http://forum.videohelp.com/threads/343259-Avisynth-Stumbled-audion-while-Dissolve%28%29?p=2138907&viewfull=1#post2138907)
To other users:
You can see/hear the part of result of encoding (1,9 MB)
link (http://www.mediafire.com/?dwroa1belzfz8d5)