Script Request: Trim Video to Audio (for GH bug)

NickHope wrote on 6/2/2014, 2:36 AM
There is a bug with some formats from some Panasonic cameras that causes the video stream of each event to be extended way beyond the audio stream. The extended part is simply the final frame repeated. The video stream is around four or five times longer than the audio.

One format this happens with is C4K (4096x2160) .mov footage from the Panasonic GH4. This is likely to become a pretty popular format with Vegas Pro users in the future. I am seeing this bug in VP10 but I understand it still exists in VP13.

When such clips are placed on the timeline, the result looks like this:



Would it be possible for one of you scripting gurus to write a script that trims the unwanted portion of each video event, and preferably ripples the timeline to close the gaps? The audio stream is correct, so the trim point would either be the end of the audio stream of each event, or alternatively the first duplicate video frame.

I'm guessing this would be reasonably straightforward and would be hugely appreciated by me and other GH users.

Thanks!

Comments

Warper wrote on 6/2/2014, 3:16 AM
Nick Hope
What versions of Vegas are affected?
Can you upload a couple of clips for testing purposes?
NickHope wrote on 6/2/2014, 5:41 AM
I'm seeing it in Vegas Pro 10.0e but according to the thread I linked to, it's still happening in VP13 build 310.

Here are a couple of short C4K .mov files from the GH4 for testing:

[url=https://dl.dropboxusercontent.com/u/21489814/P1000015.MOV]
[url=https://dl.dropboxusercontent.com/u/21489814/P1000093.MOV]
Warper wrote on 6/3/2014, 2:08 PM
Here you are
Use on selected track(s) with video events.
https://drive.google.com/file/d/0B6uTBvu2vGGXbVVhaVZXNkFtREE/edit?usp=sharing

Ripple is below basic needs, don't use effects, keyframes, regions, envelopes etc. before running this script.
Chris H wrote on 6/3/2014, 9:30 PM
Wow. Thanks so much. My GH4 was delivered today and I was having the same problem. Thanks for taking the time to write this script.
NickHope wrote on 6/4/2014, 1:29 AM
Thank you very much indeed Warper. The script works perfectly and is exactly what I wanted.
NickHope wrote on 6/4/2014, 3:07 AM
I established a proxy editing workflow for a slow computer that includes use of the script.
homeworld wrote on 9/14/2014, 8:54 AM
It's sad that Sony won't address this issue that has been occurring for years.