Log in

View Full Version : Cut a clip in n pieces, but scene change aware


hanfrunz
24th May 2012, 17:04
Hello everyone,

i have a situation here, where it is faster to encode 8 scripts parallel instead of using one big script (quicktime slows it down, but that's a different story). I use a batch file to produce 8 avs scripts. Each contains a trim command to only use a part of the whole clip. Something with abs(lenghts/8) and the last script takes the rest. After finishing encoding i put the 8 files together.
This works fine, but i would like to make it perfect and cut on scene changes near the calculated point.
Any idea how i could do it inside the scripts?

hanfrunz

smok3
24th May 2012, 19:51
you would make it search for cut point N frames before and N frames after this point and adapt previous and next script to trim that way (using the point that is closer).

If 1st try fails, you could search from N+N to N and so on.


p.s. You can steal the scene detection script from ffdrop probably (It is (ab)using the x264 engine).