czerro
16th December 2008, 21:18
I want to use StackHorizontal() for a split screen (rather than side-by-side) comparison. The issue I have, is that the videos will not stay in sync. I'm thinking it has something to do with TIVTC and how I'm employing it. Here is what the script looks like. I apologize for the mess:
#Chain for Split-Screen Comparison
original = DGDecode_MPEG2Source("source.d2v").tfm().tdecimate(cycle=25)
target = DirectShowSource("source_ivtc_filtered.m2v")
# Determine Filtered/Target Video width and height
# variable "modifier" assumes YV12 mod4
width = target.Width
height = target.Height
modifier = width/2
StackHorizontal(original.Spline36Resize(width,height).Crop(0,0,-modifier,0).Subtitle("Source"),target.Crop(modifier,0,0,0).Subtitle("Filtered")
# End
The Framerates of the clips are identical, but for some reason the clips fall rapidly out of sync. I'm guessing StackHorizontal does a frame by frame call of the input clips which results in a wierd interaction with TIVTC, but I'm not sure how to correct for this.
#Chain for Split-Screen Comparison
original = DGDecode_MPEG2Source("source.d2v").tfm().tdecimate(cycle=25)
target = DirectShowSource("source_ivtc_filtered.m2v")
# Determine Filtered/Target Video width and height
# variable "modifier" assumes YV12 mod4
width = target.Width
height = target.Height
modifier = width/2
StackHorizontal(original.Spline36Resize(width,height).Crop(0,0,-modifier,0).Subtitle("Source"),target.Crop(modifier,0,0,0).Subtitle("Filtered")
# End
The Framerates of the clips are identical, but for some reason the clips fall rapidly out of sync. I'm guessing StackHorizontal does a frame by frame call of the input clips which results in a wierd interaction with TIVTC, but I'm not sure how to correct for this.