dollparts
18th November 2008, 15:21
Hello. I've bumped into something really weird while working with the Trim command. The problem I want to solve is a video with varying black boarders, for instance, in the middle of the movie a sequence appears with black boarders even if I crop the rest of the video good. I was told that the Trim command could help me solve this. As it turns out, this have given me far more problems. The line I was told to use was this:
# TRIM
Trim1=Trim(0,17777).crop(12,8,688,560).LanczosResize(512,368)
Trim2=Trim(17778,24949).crop(12,8,688,548).LanczosResize(512,368)
Trim3=Trim(24950,72315).crop(12,8,688,560).LanczosResize(512,368)
Trim1+Trim2+Trim3
By using this line I also was told to disable the universal crop and resizing lines by adding a # before them. In other words, this is the essential in my script:
# SOURCE
mpeg2source("x:\x\x.d2v")
# TRIM
Trim1=Trim(0,17777).crop(12,8,688,560).LanczosResize(512,368)
Trim2=Trim(17778,24949).crop(12,8,688,548).LanczosResize(512,368)
Trim3=Trim(24950,72315).crop(12,8,688,560).LanczosResize(512,368)
Trim1+Trim2+Trim3
# DEINTERLACING (1)
TomsMoComp(1,5,1)
# CROPPING
#crop(12,8,688,560)
# RESIZING
#LanczosResize(512,368)
The video is PAL, 25fps, and without the Trim script it looks great in virtualdub. But with this script I get nasty ghostings! I should also mention that even if I remove the crop/resize part from the Trim script, the ghosting is still there. So the Trim itself seems to be the cause. Why? I don't modify the ivtc in any way with the script, only cropping and resize, so how can it create ghostings like this? I use avisynth 2.5 and I'd be grateful for any inputs on this odd error.
# TRIM
Trim1=Trim(0,17777).crop(12,8,688,560).LanczosResize(512,368)
Trim2=Trim(17778,24949).crop(12,8,688,548).LanczosResize(512,368)
Trim3=Trim(24950,72315).crop(12,8,688,560).LanczosResize(512,368)
Trim1+Trim2+Trim3
By using this line I also was told to disable the universal crop and resizing lines by adding a # before them. In other words, this is the essential in my script:
# SOURCE
mpeg2source("x:\x\x.d2v")
# TRIM
Trim1=Trim(0,17777).crop(12,8,688,560).LanczosResize(512,368)
Trim2=Trim(17778,24949).crop(12,8,688,548).LanczosResize(512,368)
Trim3=Trim(24950,72315).crop(12,8,688,560).LanczosResize(512,368)
Trim1+Trim2+Trim3
# DEINTERLACING (1)
TomsMoComp(1,5,1)
# CROPPING
#crop(12,8,688,560)
# RESIZING
#LanczosResize(512,368)
The video is PAL, 25fps, and without the Trim script it looks great in virtualdub. But with this script I get nasty ghostings! I should also mention that even if I remove the crop/resize part from the Trim script, the ghosting is still there. So the Trim itself seems to be the cause. Why? I don't modify the ivtc in any way with the script, only cropping and resize, so how can it create ghostings like this? I use avisynth 2.5 and I'd be grateful for any inputs on this odd error.