View Full Version : Cropping different frames?


Dot50Cal
4th July 2007, 13:35
I've looked around and I cant really find an answer for my problem. Im looking to crop various frames at different degrees. I initially was using this:

A = EARTHSOFTDV("K:\BOB.dv").changefps(29.970).trim(150, 65713).trim(0,388).crop( 14, 4, -10, -17).LanczosResize(640,480)
B = EARTHSOFTDV("K:\BOB.dv").changefps(29.970).trim(150, 65713).trim(389,6048).crop( 8, 0, -8, -8).LanczosResize(640,480)
C = EARTHSOFTDV("K:\BOB.dv").changefps(29.970).trim(150, 65713).trim(6049,8902).crop( 46, 0, -34, -9).LanczosResize(640,480)
D = EARTHSOFTDV("K:\BOB.dv").changefps(29.970).trim(150, 65713).trim(8903,11006).crop( 10, 0, -10, -8).LanczosResize(640,480)
E = EARTHSOFTDV("K:\BOB.dv").changefps(29.970).trim(150, 65713).trim(11007,11401).crop( 46, 0, -34, -9).LanczosResize(640,480)
F = EARTHSOFTDV("K:\BOB.dv").changefps(29.970).trim(150, 65713).trim(11402,11803).crop( 10, 0, -10, -8).LanczosResize(640,480)
G = EARTHSOFTDV("K:\BOB.dv").changefps(29.970).trim(150, 65713).trim(11804,12325).crop( 46, 0, -34, -9).LanczosResize(640,480)
(A+B+C+D+E+F+G)

But using this keeps giving me crashes since it loads the video each time, consuming more and more memory. Is there any easier way to do what Im trying to accomplish? Any help is appreciated!

Leak
4th July 2007, 13:42
But using this keeps giving me crashes since it loads the video each time, consuming more and more memory. Is there any easier way to do what Im trying to accomplish? Any help is appreciated!
source=EARTHSOFTDV("K:\BOB.dv").changefps(29.970).trim(150, 65713)

A = source.trim(0,388).crop( 14, 4, -10, -17).LanczosResize(640,480)
B = source.trim(389,6048).crop( 8, 0, -8, -8).LanczosResize(640,480)
C = source.trim(6049,8902).crop( 46, 0, -34, -9).LanczosResize(640,480)
D = source.trim(8903,11006).crop( 10, 0, -10, -8).LanczosResize(640,480)
E = source.trim(11007,11401).crop( 46, 0, -34, -9).LanczosResize(640,480)
F = source.trim(11402,11803).crop( 10, 0, -10, -8).LanczosResize(640,480)
G = source.trim(11804,12325).crop( 46, 0, -34, -9).LanczosResize(640,480)

(A+B+C+D+E+F+G)
I really would be surprised if opening the same file several times at once wouldn't be highly crash-prone...

Dot50Cal
4th July 2007, 13:45
Ahaha, Thank you :) Im still learning the scripting so I appreciate it much!