Selur's Little Message Board

Full Version: letterboxing 1 pixel on top...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i'm capturing PAL VHS using a blackmagic intensity pro.. and on every clip i have just 1 pixel on the top with b/w bars
usually i leave this 1 pixel line because removing pair pixels on top (2) .. mean losing 1 line of good signal.

[Image: 2pixels.jpg]

also...using cropping of 2 pixels... looking at the preview seems that these are not 2 pixels ... but 4 (or more?)

maybe there is way to automatically place 1 black line on top after deinterlacing ? (use not pair numbers? because using 1 on top and 9 on bottom crashes the cropping preview)

thank you for any help!

P.S. this is a sample: www.wcn.it/sample.avi

[Image: 4pix.jpg]

if necessary... debug: www.wcn.it/deb.txt
1. I would use Filtering->Vapoursynth->Line->Misc->EdgeFixer for that 1 pixel line
2. I could not reproduce your problem with the 1pixel crop looking like 2 pixel etc.
I used 'Fixed ratio' 'x12' and 'nearest neighbor' to check in Vapousynth preview. No clue what you used, but I suspect it might the cause of the problem.


Looking at the debug output:
Code:
clip = core.std.CropRel(clip=clip, left=4, right=10, top=2, bottom=6)# cropping to 706x568
# removing grain using TemporalDegrain2
clip = G41Fun.TemporalDegrain2(clip=clip, degrainPlane=4, meAlgPar=False, postFFT=0, fftThreads=1)
# letterboxing 706x568 to 720x842
clip = core.std.AddBorders(clip=clip, left=4, right=10, top=2, bottom=6)
and
Code:
clip = core.std.CropRel(clip=clip, left=2, right=10, top=2, bottom=6)# cropping to 708x568
# removing grain using TemporalDegrain2
clip = G41Fun.TemporalDegrain2(clip=clip, degrainPlane=4, meAlgPar=False, postFFT=0, fftThreads=1)
# letterboxing 708x568 to 720x842
clip = core.std.AddBorders(clip=clip, left=2, right=10, top=2, bottom=6)
seem like correct values, but the comment in the letterbox seems wrong.

Also: Please do not pack everything in one debug output.

Cu Selur
(21.08.2024, 05:32)Selur Wrote: [ -> ]
Code:
# letterboxing 708x568 to 720x842
clip = core.std.AddBorders(clip=clip, left=2, right=10, top=2, bottom=6)
seem like correct values, but the comment in the letterbox seems wrong.
just see now.. 720x842?
my original footgae is 720x576
and the output MKV i retrieved is 720x576

what is this 842?
Probably, just a mistake in the comment.
nope i dont' think so... i saw this number on debug log ... and yesterday using same version of Hybrid on the debug is clearly written 720x576...
i managed a little bit, changing letterboxing flags and other vlaues and in a certain time.. the preview window was showing a vertical stretched images  (that for what i can see was with height similar to this strange 842 )

launched the rendering and final ouput was right (576) .. but preview is showing this strange vertical value.

i will investigate if if this can be reproducible easly.
(21.08.2024, 05:32)Selur Wrote: [ -> ]1. I would use Filtering->Vapoursynth->Line->Misc->EdgeFixer for that 1 pixel line

better lose 1 more pixel  Sad  the result with edgefixer is not so good.
Always depends on the source. Tongue
Quote:and what about this:
Quote:This is a simple filter that fills the borders of a clip, without changing the clip's dimensions.
Use it if you want.
Hybrid has custom sections which allow adding custom scripts additions.
According to the README.md it seems simple enough to use.
Code:
core.std.LoadPlugin(path="PATH TO libfillborders.dll")
clip = core.fb.FillBorders(clip=clip, left=0, right=0, top=0, bottom=0, mode="repeat", interlaced=0)

You could even integrate it into the GUI, like mentioned here.

Cu Selur
i tried..and well..  i discovered that the actual amount of lines to remove are  2 (nor repeat nor mirror are doing a great job) ... (this mean that i can use the 2pixels top cropping)

very thank you for the answer Selur! have a nice weekend