Ad-Detective... Split and save video file at markers automatically

jmc

Active member
I have no idea if this would be easy or impossible.

It seems to detect the breaks in the video file. I would love it if it could also
automatically split the file at those points and save each segment off as a separate file.

I do not want anything deleted. I want everything saved but separately.

Thanks,
jmc
 
Last edited:

Dan203

Senior Developer
Staff member
We've talked about adding this before. Because of the way our output works it's a little difficult to do because each muxer would either need to be changed to be aware of the splitting or we'd have to create a new output graph for each segment, neither of which is really easy. This is actually something that could be done pretty easily using a script and the COM interface though. Right now with no changes from us.
 

jmc

Active member
We've talked about adding this before. Because of the way our output works it's a little difficult to do because each muxer would either need to be changed to be aware of the splitting or we'd have to create a new output graph for each segment, neither of which is really easy. This is actually something that could be done pretty easily using a script and the COM interface though. Right now with no changes from us.
"script and the COM interface"...Ouch.

Thank you tho,
jmc
 

tobyW

Member
Attached: a script that saves scenes as separate files

Scary, yes! But, this capability is one of the great strengths of VideoRedo.:)

The COM interface, with an example, is documented in VRD's Help->Contents->Contents->Reference->COMinterface.

That documentation does have a few misguidances, and anyway writing a VBScript is strewn with pitfalls for a novice like me.

So, curiosity leads me to summon my courage and tackle your request, as a learning exercise.

Luckily your request is simple to implement. Basically there are 2 steps:-
- Step 1. Run VRD and do your ad-scan, to arrive at a list of "scenes", then save the project file.
- Step 2. Run a script that uses the COM interface to read the list of scenes and then loads each scene singly
into VRD and writes it to a separate file.

I attach a script "AdSplit.vbs" that I've cooked up. At the top of the file I've put some notes on how to use it.

This script seems to work OK for me, but feel free to improve it if you like!

TobyW
 

Attachments

jmc

Active member
I downloaded the AdSplit.zip.
Will see if I get in an experimental mood.

thanks,
jmc
 
Top Bottom