Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
16th March 2014, 17:22 | #1 | Link |
Registered User
Join Date: Jan 2007
Location: Hamburg, Germany
Posts: 6
|
ScriptClip for choosing different audio clips
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") |
Tags |
audio, scriptclip |
Thread Tools | Search this Thread |
Display Modes | |
|
|