FORUMS: list search recent posts

How to perform automatic action on grouped video+audio track, split to chunks depends from audio level and speed up silence parts.

COW Forums : VEGAS Pro

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Ivan Balalayka
How to perform automatic action on grouped video+audio track, split to chunks depends from audio level and speed up silence parts.
on Nov 1, 2016 at 1:37:24 am

I have long video+audio with pauses on audio, maybe there is tools, that can do automatically 2 things:
1. Scan whole audio track and automatically cut it (including grouped video track) on level edge, where sound switches from below some level (silence) to speech
2. Convert all chunks from 1. to subclips
3. Perform some automatic action on all this track, in my case - speed up video-audio where silence and leave untouched where is speech
4. Do thing like auto ripple to all this chunks (at least I blurry remember script, that could delete gaps in tracks, i.e. some sort "post auto-ripple")

So, do I need to look in script-writing part for this or maybe somebody invented this bicycle already?


Return to posts index

Aleksey Tarasov
Re: How to perform automatic action on grouped video+audio track, split to chunks depends from audio level and speed up silence parts.
on Nov 1, 2016 at 11:07:41 am

Maybe Vegasaur can help you?

1. It has Silence Detector that creates regions. Next, you can adjust them or even completely delete "silent" parts using Markers (if needed). You can also split events at regions.
2. Convert to subclips... why? (just select these events and choose Create Subclip in context menu)
3. Select "silent" events, apply Playback Rate in Quick Properties (note that you can't speed up audio events more than 4X)
4. Finally, run Auditor and delete all gaps (one click)


Return to posts index

Ivan Balalayka
Re: How to perform automatic action on grouped video+audio track, split to chunks depends from audio level and speed up silence parts.
on Nov 10, 2016 at 1:42:18 pm

Thanks, Vegasaur worked for me, just one question left - is there proper way to select all this tagged with "silence" regions on project? I.e. like in Markers-Tools-Keep/delete events-delete inside regions, BUT instead of deleting events it would be selecting it?
For now I found out workaround with Vegasaur - Select Events - filter on every 2 event, but if there will not be even/odd pattern on events?


Return to posts index


Aleksey Tarasov
Re: How to perform automatic action on grouped video+audio track, split to chunks depends from audio level and speed up silence parts.
on Nov 10, 2016 at 2:26:40 pm

you are looking for this script?


Return to posts index

Ivan Balalayka
Re: How to perform automatic action on grouped video+audio track, split to chunks depends from audio level and speed up silence parts.
on Nov 10, 2016 at 5:09:42 pm

I've seen this script, but it did not worked for me in Vegas 14, after some suggestions (adding import ScriptPortal.Vegas; and changing comparsion from <=, >= to <, > it worked! Here it is, just in case:

Select events within regions.js to folder with scripts, something like c:\Program Files\VEGAS\VEGAS Pro 14.0\Script Menu\

import System;
import System.IO;
import System.Windows.Forms;
import Sony.Vegas;
import ScriptPortal.Vegas;

try

{
for (var trackEnum = new Enumerator(Vegas.Project.Tracks); !trackEnum.atEnd(); trackEnum.moveNext())
for (var eventEnum = new Enumerator(Track(trackEnum.item()).Events); !eventEnum.atEnd(); eventEnum.moveNext())
if (!eventEnum.item().Selected)
for (var regionEnum = new Enumerator(Vegas.Project.Regions); !regionEnum.atEnd(); regionEnum.moveNext())
if (eventEnum.item().Start < regionEnum.item().End &&
eventEnum.item().End > regionEnum.item().Position)
{
eventEnum.item().Selected = true;
break; // breaks region loop, continues on next event
}
}
catch (e)
{
Vegas.ShowError(e);
}


Return to posts index

Ivan Balalayka
Re: How to perform automatic action on grouped video+audio track, split to chunks depends from audio level and speed up silence parts.
on Nov 10, 2016 at 5:13:58 pm

hm, strangely thing, could not find how to edit post, wanted to put code in code tags:

http://pastebin.com/QdguEQsd

import System;
import System.IO;
import System.Windows.Forms;
import Sony.Vegas;
import ScriptPortal.Vegas;

try

{
for (var trackEnum = new Enumerator(Vegas.Project.Tracks); !trackEnum.atEnd(); trackEnum.moveNext())
for (var eventEnum = new Enumerator(Track(trackEnum.item()).Events); !eventEnum.atEnd(); eventEnum.moveNext())
if (!eventEnum.item().Selected)
for (var regionEnum = new Enumerator(Vegas.Project.Regions); !regionEnum.atEnd(); regionEnum.moveNext())
if (eventEnum.item().Start < regionEnum.item().End &&
eventEnum.item().End > regionEnum.item().Position)
{
eventEnum.item().Selected = true;
break; // breaks region loop, continues on next event
}
}
catch (e)
{
Vegas.ShowError(e);
}


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]