digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: help with Lanczos Resize in FitCD ? (http://www.digitalfaq.com/archives/avisynth/13749-avisynth-lanczos-resize.html)

incredible 08-16-2005 05:45 PM

I also got that Red Planet DVD too :)

Here is version 0.13b where I did some corrections on the pixelparser and also I corrected the second crop value info that it outputs a crop() variant without negative values. Also it should be a bit faster now as I do parse the sides using 1/6 of the total width from each direction and the height 1/4 from each direction as I dont think that Movies using Top/Bottom Border with more than 144px each will be used as source.

rds_correia 08-16-2005 07:15 PM

This is getting a very interesting thread :D.
Will try autocrop as soon as possible.
Thanks for sharing it with us Andrej :D.
Cheers

Zyphon 08-17-2005 02:57 AM

Hi Andrej,

Thanks for the update. :D

I don't what you did but it seems to have done the trick with regard to Red Planet. ;) It is good that you also have this DVD to test. :D

http://www.digitalfaq.com/archives/i...2005/08/31.jpg
Thanks to ImageShack for Free Image Hosting

If you look now at the above picture the cropping on Alien3 looks perfect. :D

I had to hit the Autocrop button twice because when I first loaded Alien3 and let it play for a bit and hit the Autocrop it messed up slightly in the left hand side on the first go, see picture below:

http://www.digitalfaq.com/archives/i...2005/08/32.jpg
Thanks to ImageShack for Free Image Hosting

The first picture is after I hit the Autocrop button twice. You will notice on the first picture the first value is 0 and the the left hand side on the crop is undershot.

The first picture after hitting the Autocrop for a second time it correct this and add a left value of 10.

I hope these tests of mine help you out in some way Andrej, for me this workaround of hitting the autocrop twice is o.k. :D

Thanks for updating and the changes that you have made to this excellent tool. :D

EDIT: Btw I love the fact that your tool give two different ways of adding crop values to your AviSynth script. :) In my case this is:

Crop(10,76,0,-76) or use
Crop(10,76,720,424)

Thanks again Andrej this is excelent work. :D

Dialhot 08-17-2005 04:41 AM

Quote:

Originally Posted by Zyphon
Crop(10,76,0,-76) or use
Crop(10,76,720,424)

Do remember that you should not use directly any of that lines but put the values from the first one (ie 10 for left border, 76 for top, 0 for right and 76 for bottom) into FitCD and let it compute the correct Crop/Resize values.
Or wait to see if Inc decides to merge Mencalc and Autocrop as he planed to do :)

Zyphon 08-17-2005 10:24 AM

Quote:

Originally Posted by Dialhot
Quote:

Originally Posted by Zyphon
Crop(10,76,0,-76) or use
Crop(10,76,720,424)

Do remember that you should not use directly any of that lines but put the values from the first one (ie 10 for left border, 76 for top, 0 for right and 76 for bottom) into FitCD and let it compute the correct Crop/Resize values.
Or wait to see if Inc decides to merge Mencalc and Autocrop as he planed to do :)

Thanks for the info Phil, I shall bear that in mind and do it via FitCD. :D

Entering those values into FitCD I get:
http://www.digitalfaq.com/archives/error.gif
Thanks to ImageShack for Free Image Hosting

Should the AddBorders line be used to replace the LetterBox command?

In DVD-RB I use as per your suggestion LetterBox(16,16,16,16), do the LetterBox and AddBorders work completely different?

Or could I use LetterBox(8,80,8,80)? Sorry for the dumb question but I still need to learn the differences between these two filters.

I take it if I use AddBorders that I don't need to add a LetterBox to my script is this true?

Also I agree I hope Inc does merge the MenCalc tool with this it will be awesome when that happens. :D

@Incredible

Btw my tests in my previous post was done using the latest version of your tool, I think I forgot to mention that. ;)

Dialhot 08-17-2005 11:32 AM

Quote:

Originally Posted by Zyphon
In DVD-RB I use as per your suggestion LetterBox(16,16,16,16), do the LetterBox and AddBorders work completely different?

Yes they are. Letterbox put the border ON the picture, Addborder put it ARROUND the picture.
We have to use letterbox in DVD-RB because we can't resize. So the picture is the size of the source, that is 720*576. Then we "paint" the 16 pixels on each side in black, to gain some compressibility.

When you can use a resizer, it's a better idea to resize to something smaller than the targetted size (here your target 704*576) and add a border all arround to picture to reach the correct size.
That is exactly what FitCD does for you : it resizes to 688*416 than add 8+8 pixels on left/right (688 + 8 + 8 = 704) and 80+80 on top/bottom (416 + 160 = 576).

Quote:

I take it if I use AddBorders that I don't need to add a LetterBox to my script is this true?
Yes it is. It either resize to target size + letterbox OR resize to a smaller res and addborder.

Quote:

Btw my tests in my previous post was done using the latest version of your tool, I think I forgot to mention that. ;)
Did you notice that your last picture shows diffrent values than what you exposed ?
You said :
Quote:

my case this is:

Crop(10,76,0,-76) or use
Crop(10,76,720,424)
But your snapshot http://img291.imageshack.us/my.php?image=alien350hv.jpg shows that the values are Crop(10,72,-4,-74) 8O

Zyphon 08-17-2005 11:43 AM

Quote:

Originally Posted by Dialhot
Did you notice that your last picture shows diffrent values than what you exposed ?
You said :
Quote:

my case this is:

Crop(10,76,0,-76) or use
Crop(10,76,720,424)
But your snapshot http://img291.imageshack.us/my.php?image=alien350hv.jpg shows that the values are Crop(10,72,-4,-74) 8O

Yeah sorry Phil I think I made a mistake when I inputted the values into FitCD, I don't know where my brains were at when I did that. :oops:

The correct values should have been: Crop(10,72,-4,-74)

Again thank you so much Phil for helping me understand how and when to use AddBorders and when to use LetterBox and for explaining why we use them a certain way. I now have a better understanding of how to go about manual encoding with these cropping values.

So thanks again. :D

Dialhot 08-17-2005 11:45 AM

You're welcome.

Zyphon 08-17-2005 12:00 PM

@Dialhot

Sorry Phil to bother you again, on one final note.

I was also doing some tests with Karl's MA optimal script, I know this uses GripFit and I thought if you enter these values in via MS then it would crop automatically for you.

However I notice near the end of the MA Script is the LetterBox command but with a # in front. I knows this turns it into a remark line and it will not be executed, it says depends on situation use MS.

Does this mean then if you choose not to use GripFit and do a manual resize via say FitCD or MS then you need to the values MS gives you for AddBorders and input that into the LetterBox params in the script?

I will use the FitCD method of resizing and do my script that way but I would appreciate some clarification with regard to matter please.

Thanks in advance.

Dialhot 08-17-2005 02:01 PM

Quote:

Originally Posted by Zyphon
Does this mean then if you choose not to use GripFit and do a manual resize via say FitCD or MS then you need to the values MS gives you for AddBorders and input that into the LetterBox params in the script?

Moviestacker let you choose between using addborders (resized overscan) OR using Letterbox (overlap overscan). You have to use exactly what is given by Moviestacker according to how you set it. FitCD manages only Addborders method.

Zyphon 08-17-2005 03:51 PM

Quote:

Originally Posted by Dialhot
Moviestacker let you choose between using addborders (resized overscan) OR using Letterbox (overlap overscan). You have to use exactly what is given by Moviestacker according to how you set it. FitCD manages only Addborders method.

Thanks for the added info Phil. :D

rds_correia 08-18-2005 03:26 AM

Quote:

Originally Posted by Dialhot
... FitCD manages only Addborders method.

Which is a big pain in the a**.
That's one of the big reasons why I always liked MS better than FitCD.
I hope Andrej can go for a similar project as FitCD.
And since I know Andrej love's using overlaped resizing on his anamorphic KDVD encodes...
That means that he would add that feature to his project for sure.
I guess we'll have to wait and see where it all goes down to.
Cheers

Dialhot 08-18-2005 03:41 AM

Quote:

Originally Posted by rds_correia
Quote:

Originally Posted by Dialhot
... FitCD manages only Addborders method.

Which is a big pain in the a**.
That's one of the big reasons why I always liked MS better than FitCD.

8O
Letterbox just masks existing pixels so you loose them for ever ! Addborders is a lot better as you do not loose anything, but resize the frame to a lower res then add a border arround it. I really don't find letterbox better than addborders.

incredible 08-18-2005 05:00 AM

Well it depends actually I do prefer an overlapping Overscan.
Cause I want to maintain the size of the visible borders in case of 1.78 or 2.35:1 movies on my 16:9 Tv.

Dialhot 08-18-2005 05:35 AM

Quote:

Originally Posted by incredible
Well it depends actually I do prefer an overlapping Overscan.
Cause I want to maintain the size of the visible borders in case of 1.78 or 2.35:1 movies on my 16:9 Tv.

Does that mean that you don't mind to lose pixels on right/left side ?
(pixels that you don't see on the original DVD BTW, but as we are doing a resize, why not having all the pixels on the screen ?).

incredible 08-18-2005 07:52 AM

Right Phil, I see your taste as you want to "compensate" the TV's overscan for watching all the movietreatment of the original DVD Moviedata.

In case of 4:3 Sources I totally agree (btw. Im just talking about my taste not a suggestion or recommendation ;) ) But as said I like for my taste the compromise that I gonna loose Pixels on the side, but on the other hand I dont have larger top/bottom-borders when watching 1.78:1 or 2.35:1 stuff on my 16:9 tv. So the 16px Overlayed Overscan in this case is just a compression advantage for me.

Dialhot 08-18-2005 08:03 AM

I understood. Some times ago I prefered to use letterbox that to introduce artifacts in the source by resizing it. And I changed my mind finally. Nothing is for ever :)

Note: on a Philipps plasma screen I saw recently a "zoomed 16:9" mode that stretches vertically a 2.35 into a 2.21 (and probably a 2.21 into a 1.85). This is perfect for people that don't like when bars are too big :)
(the distortion in A/R, even if noticiable, is not too strong).

incredible 08-18-2005 08:35 AM

These zooming modes on displaydevices are nice.

I got 2 options: One on my DVD player where the Image can be zoomed continuously by keeping the PAR. And the Other is the Panasonic 16:9 itself. But there the zooms are fixed, means I can see 4:3 as 14:9 (top/bottom are a little cropped) and zooming for example a 2.35:1 to 1.788:1 (16:9 Full screen pan-scan).
What I dont like is the autoZoom mode on the Panasonic 16:9 in 4:3 input. There the TV keeps the middle as unstretched as possible and stretches only the sides. So a tall Man in the Middle becomes a fat boy if he moves to a side :lol:

incredible 08-18-2005 03:51 PM

Well this is it how it "should" look. But dont expect me to release it the next days as I gotta lot of work.

http://www.digitalfaq.com/archives/error.gif
Thanks to ImageShack for Free Image Hosting

;)

digitall.doc 08-18-2005 05:58 PM

Andrej,

....shhhh...

looks GrEaT :wink:

I'll be sitting in front of PC monitor, waiting for the release... :D


All times are GMT -5. The time now is 03:31 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.