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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th March 2014, 17:22   #1  |  Link
heyt
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")
heyt is offline   Reply With Quote
Reply

Tags
audio, scriptclip

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:31.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.