This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

letterboxing 1 pixel on top...
#1
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
Reply
#2
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:
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
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
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#3
(21.08.2024, 05:32)Selur Wrote:
# 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?
Reply
#4
Probably, just a mistake in the comment.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#5
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.
Reply
#6
(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.
Reply
#7
Always depends on the source. Tongue
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#8
Smile and what about this: ?  https://github.com/dubhater/vapoursynth-fillborders
Reply
#9
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.
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
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#10
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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)