View Single Post
Old 20th March 2014, 03:24   #3  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
Is it noise/speech vs silence ?

One way to do it is with conditionalfilter() and minmaxaudio.dll using AudioRMS()

You need 4 invididual sets of audio & video , and you can combine them after with stackhorizontal/stackvertical

The replacement "layer" can be anything, you can overlay a logo, make a pointer, overlay a border like skype, change the color whenever audio is detected above a threshold value

In this example , I used the alternating audio on/off from colorbars() channel 2 as the audio source, and the "replacement" whenever audio is detected is just a darkened version

Code:
colorbars(pixel_type="yv12")
trim(0,300)
getchannel(2)
orig=last

replace=orig.levels(0,0.2,255,0,255,false)

ConditionalFilter(orig,replace,orig,"AudioRMS(0)", ">", "-50", show=true)
poisondeathray is offline   Reply With Quote