Hello everyone.
Currently I am working at some video files including some small gaps or drop-outs. Luckily for some of those I have a second source that actually has the same problem but with the gaps at different positions. Thus, I can combine both sources to a complete video.
Since this is a lot of work doing it manually I could realize an automatic choice of source with ScriptClip (gaps are marked with unicolor frames). My problem now is that ScriptClip always will copy audio from the reference clip and not from the chosen clip. Is there any alternative that can either select one clip (audio and video) to copy from? Or is there soem conditional filter to chose from two audio clips e.g. if one is mute, use the other?
For reference here is my current code:
Code:
VidTest = Blackness(VidS,1,color=$555555)
Vid = Import("Source1.avs")
VidT = Import("Source2.avs")
VidO = Overlay(Vid,VidT,mode="blend",opacity=0.5)
VidF1 = ScriptClip(VidT,"a = ChromaUDifference(Vid, VidTest)"+chr(13)+"a == 0 ? VidT : VidO")
ScriptClip(Vid,"b = ChromaUDifference(VidT, VidTest)"+chr(13)+"b == 0 ? Vid : VidF1")