Scripting request: Solving ugly portrait video

Post » Fri Jun 05, 2015 11:25 pm

Hey everyone, I'm a video editor at a company that primarily transfers older media, but there are plenty of customers that come my way to get their phone videos put onto a DVD. As I'm sure many of you know, this means a vertical-orientation video. I've in the past solved this by either cropping it to a proper frame or keeping it vertical with the ugly black bars.

Recently, I've found it pleasing to copy and layer the video with the copies oriented to the left/right with a Gaussian blur applied for a background, possibly slightly darker or with a slight vignette as well. This hasn't been a problem until a recent project where there are around 300 clips to apply this sort of thing to. I was curious if it'd be possible to write a script to solve this issue as it could be quite the time-consuming, mind-numbing project otherwise. Thanks in advance!
User avatar
Eileen Collinson
Posts: 480
Joined: Wed Dec 27, 2006 8:42 pm

Post » Fri Jun 05, 2015 10:57 pm

Ah, its probably good to know that I'm on a Windows 7 system using Vegas Pro 10.0. It'd be nice (but isn't necessary) if the script also worked with Windows XP systems using Vegas Studio 10.0.

Thanks again!
User avatar
Justin Bywater
Posts: 530
Joined: Tue Sep 11, 2007 4:44 pm

Post » Fri Jun 05, 2015 11:34 pm

As I see it, you need to copy entire track down to background track and apply identical filters to each video: pan/crop with orientation change, gaussian blur, custom borders filter etc.
If it's all you need there is no real need in script:
1) Create background track
2) Turn on Ignore Event Grouping option in toolbar
3) Select video events on track you need to copy
4) Press Ctrl+C to copy event into clipboard (without audio)
5) Select background track
6) Press Ctrl+V to paste events on background track in the same order and placement as they were, align them if needed
7) Turn off Ignore Event Grouping on toolbar
8) Set up first event on background track as you please - pan/crop, blur, etc.
9) Select this first event on background track, press Ctrl+C
10) Select all events on background track, deselect first event
11) Right click on one of selected events, use Paste event attributes from custom menu
Now you have every event on background track with identical filters applied to it
User avatar
Laurenn Doylee
Posts: 542
Joined: Sun Dec 03, 2006 5:48 am

Return to Vegas Pro Forum