Remove audio, increase speed, remove gaps

queensoft wrote on 5/24/2025, 1:08 AM

Here is my manual process right now (Vegas Pro 14.00):

- one video track + one audio track - grouped using "G" key

- make a few splits, using "S" key, video and audio are always split at the same time marker

- ungroup a few segments (not all, green arrow preserved as is), using "U" key - this may not be necessary, see below

- remove audio for said segments (red arrow)

- increase speed of corresponding video segments

- move all to the left, no gaps (I think I already have a script for this somewhere)

I have a script which only removes audio (no ungroup needed), if audio is already selected - I can post it if you want, it's ugly.

I don't know how to select the corresponding video segments, increase speed, remove gaps.

I need script for: remove audio, increase video speed, remove gaps.

I do NOT need script for: making splits using "S" key.

Thank you very much.

Comments

jetdv wrote on 5/24/2025, 8:30 AM

Ok, after removing the audio events, here's a tutorial showing how to change the "speed" of an event.

You'll need to change the length as well to match the new speed. So, for example, you change the speed to 200%, just cut the length in half.

Then there's a couple of series on removing gaps:

First series:

Second series:

queensoft wrote on 5/24/2025, 8:32 AM

All right, I'll take a look, thanks.

queensoft wrote on 5/26/2025, 10:50 AM

The first video/script just changes speed. It doesn't show how it reads multiple selections, removes audio, then selects the corresponding videos.

That's what I need most.

I will try a different approach: read video+audio under the cursor, remove audio, select video, change speed..... so one at a time, not multiple selected at once.

jetdv wrote on 5/26/2025, 12:45 PM

You stated you already had code to "remove" the audio events. Apparently you were only selecting the audio events?

Select both the audio and video events. Then, go through all selected events. IF it is an audio event, remove it like you are now. If it is a video event, then ignore it.

Now go through all selected events again - you will only have video events now. As you stated, the first tutorial shows how to change the speed. Then you need to adjust the length of the event to match the new speed. Or, you could go ahead and adjust the speed/length the same time you are removing the audio events instead of just ignoring the video events.

Once all the speed changes are done, then go through and remove the gaps.

queensoft wrote on 5/27/2025, 9:51 AM

Yes, it was selecting only audio or video, I never managed to select both.

Yes, I used IsAudio / IsVideo, but it never worked.

I'll keep trying.