Re-linking video & audio

andyrpsmith wrote on 8/9/2019, 8:57 AM

Is there a script that will re-link video & its audio for all clips on the timeline?

When I change from 25fps to 24fps I stretch the video & audio back to the same number of frames in the 24fps timeline. I use the stretch tool. In order to do this I group everything together. But when I un-group all the video & audio clips are un-linked. I normally have to link up again by selecting each vid & audio clip and use G. I would like to re-link all clips on the timeline in one go via a script if possible?

Thanks Andy

Comments

Marco. wrote on 8/9/2019, 9:48 AM

There's already such a core script in the Vegas Pro Script Menu.

andyrpsmith wrote on 8/9/2019, 10:05 AM

Thanks Marco, which one is it?

(Intel 3rd gen i5@4.1GHz, 32GB RAM, SSD, 1080Ti GPU, Windows 10) Not now used with Vegas.

13th gen i913900K - water cooled, 96GB RAM, 4TB M2 drive, 4TB games SSD, 2TB video SSD, GPU RTX 4080 Super, Windows 11 pro

Marco. wrote on 8/9/2019, 10:06 AM

It's called "Group Video and Audio Events".

andyrpsmith wrote on 8/9/2019, 10:12 AM

Thanks I'll give it a try when I get home. 😁

(Intel 3rd gen i5@4.1GHz, 32GB RAM, SSD, 1080Ti GPU, Windows 10) Not now used with Vegas.

13th gen i913900K - water cooled, 96GB RAM, 4TB M2 drive, 4TB games SSD, 2TB video SSD, GPU RTX 4080 Super, Windows 11 pro

andyrpsmith wrote on 8/9/2019, 12:29 PM

Group Video and Audio Events: Tried curser at start - does nothing, tried at end does nothing, selected clips still does not work. Any idea what I'm doing wrong?

(Intel 3rd gen i5@4.1GHz, 32GB RAM, SSD, 1080Ti GPU, Windows 10) Not now used with Vegas.

13th gen i913900K - water cooled, 96GB RAM, 4TB M2 drive, 4TB games SSD, 2TB video SSD, GPU RTX 4080 Super, Windows 11 pro

Marco. wrote on 8/9/2019, 12:32 PM

Select all Events that should be affected (no matter where the cursor is), then run the script.

It certainly can only re-group such events which video and audio belonged together in the very source file.

andyrpsmith wrote on 8/9/2019, 12:43 PM

Not working, clips still not linked.

 

(Intel 3rd gen i5@4.1GHz, 32GB RAM, SSD, 1080Ti GPU, Windows 10) Not now used with Vegas.

13th gen i913900K - water cooled, 96GB RAM, 4TB M2 drive, 4TB games SSD, 2TB video SSD, GPU RTX 4080 Super, Windows 11 pro

Marco. wrote on 8/9/2019, 12:46 PM

Do you have – by chance – grouping disabled via the timeline toolbar?

andyrpsmith wrote on 8/9/2019, 12:53 PM

OK it does not work if clips have been stretched by time streched tool

(Intel 3rd gen i5@4.1GHz, 32GB RAM, SSD, 1080Ti GPU, Windows 10) Not now used with Vegas.

13th gen i913900K - water cooled, 96GB RAM, 4TB M2 drive, 4TB games SSD, 2TB video SSD, GPU RTX 4080 Super, Windows 11 pro

Marco. wrote on 8/9/2019, 12:56 PM

Even this works fine here. How exactly did you do the time-stretching? By mouse-dragging the event edge? That's the way I tested it.

And which Vegas version and which build of it do you use?

andyrpsmith wrote on 8/9/2019, 1:05 PM

I'm using Vegas 17 and mouse dragging all the clips by event edge (I link all the clips together via a group and extend the length all together and then un group all. I then need to link together the all individual events video & audio.)

(Intel 3rd gen i5@4.1GHz, 32GB RAM, SSD, 1080Ti GPU, Windows 10) Not now used with Vegas.

13th gen i913900K - water cooled, 96GB RAM, 4TB M2 drive, 4TB games SSD, 2TB video SSD, GPU RTX 4080 Super, Windows 11 pro

Marco. wrote on 8/9/2019, 1:13 PM

I do same way in Vegas Pro 17.

Which kind of source media do you use?

andyrpsmith wrote on 8/9/2019, 1:49 PM

I can do it with Vegasaur make groups but not with vegas script. I'm using 4K Sony XAVC

 

 

Last changed by andyrpsmith on 8/9/2019, 2:03 PM, changed a total of 1 times.

(Intel 3rd gen i5@4.1GHz, 32GB RAM, SSD, 1080Ti GPU, Windows 10) Not now used with Vegas.

13th gen i913900K - water cooled, 96GB RAM, 4TB M2 drive, 4TB games SSD, 2TB video SSD, GPU RTX 4080 Super, Windows 11 pro

vkmast wrote on 8/9/2019, 1:50 PM

@Marco. Ctrl+A > G > Time Stretch (Tool) > Ctrl+U > Run the Script

 Does this work for you as well?

 

andyrpsmith wrote on 8/9/2019, 2:05 PM

Marco, when you time stretch are you doing all clips together or just one clip?

 

(Intel 3rd gen i5@4.1GHz, 32GB RAM, SSD, 1080Ti GPU, Windows 10) Not now used with Vegas.

13th gen i913900K - water cooled, 96GB RAM, 4TB M2 drive, 4TB games SSD, 2TB video SSD, GPU RTX 4080 Super, Windows 11 pro

andyrpsmith wrote on 8/9/2019, 2:07 PM

@Marco. Ctrl+A > G > Time Stretch (Tool) > Ctrl+U > Run the Script

 Does this work for you as well?

 

I'm just trying this

(Intel 3rd gen i5@4.1GHz, 32GB RAM, SSD, 1080Ti GPU, Windows 10) Not now used with Vegas.

13th gen i913900K - water cooled, 96GB RAM, 4TB M2 drive, 4TB games SSD, 2TB video SSD, GPU RTX 4080 Super, Windows 11 pro

andyrpsmith wrote on 8/9/2019, 2:10 PM

It leaves the last clip un-linked

(Intel 3rd gen i5@4.1GHz, 32GB RAM, SSD, 1080Ti GPU, Windows 10) Not now used with Vegas.

13th gen i913900K - water cooled, 96GB RAM, 4TB M2 drive, 4TB games SSD, 2TB video SSD, GPU RTX 4080 Super, Windows 11 pro

andyrpsmith wrote on 8/9/2019, 2:23 PM

Looks like I will need to buy Vegasaur

(Intel 3rd gen i5@4.1GHz, 32GB RAM, SSD, 1080Ti GPU, Windows 10) Not now used with Vegas.

13th gen i913900K - water cooled, 96GB RAM, 4TB M2 drive, 4TB games SSD, 2TB video SSD, GPU RTX 4080 Super, Windows 11 pro

vkmast wrote on 8/9/2019, 2:31 PM

Yes, I noticed that at times, but not in the last few tests. Need still to confirm what was different.

vkmast wrote on 8/9/2019, 2:47 PM

Seems that the last clip needed to be synchronized before running the script, at least here.

andyrpsmith wrote on 8/9/2019, 3:42 PM

Many thanks for your help.

(Intel 3rd gen i5@4.1GHz, 32GB RAM, SSD, 1080Ti GPU, Windows 10) Not now used with Vegas.

13th gen i913900K - water cooled, 96GB RAM, 4TB M2 drive, 4TB games SSD, 2TB video SSD, GPU RTX 4080 Super, Windows 11 pro

Marco. wrote on 8/9/2019, 4:31 PM

It works perfectly for me (same way as you did) if there is only one pair of track with the events in it.

It leaves the last event ungrouped if the events are spread over more than one pair of tracks.

Marco. wrote on 8/9/2019, 4:42 PM

Seems like if I use the Selection Tool instead of Ctrl.+A (to select all events before running the script) it works fine even over several pairs of tracks.

vkmast wrote on 8/9/2019, 5:18 PM

Thanks Marco. I did not use Selection Tool here and it seemed to work OK, the last event not ungrouped. Just the clicks I quoted earlier. (For the screengrab below the events were moved afterwards.)