digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Interesting Avisynth resizing thread at doom9.org (http://www.digitalfaq.com/archives/avisynth/8149-interesting-avisynth-resizing.html)

jorel 03-26-2004 07:22 AM

Quote:

Originally Posted by Dialhot
Quote:

Originally Posted by jorel
something wrong in the script?
please, show the corrections!

A
HUGE problem !

You redefine the Hybrid function into your script so the original one is never used ! That is yours that is used, and this one does... NOTHING !

Why do you have this line ?
Code:

Function HybridFupp(clip input, int "width", int "height", int "E_Thr", int "ST_Str", int "SP_Str", int "sharp_x", \
int"sharp_y", int "M_Thr", int "M_SCD",int "Nresizer", int "Eresizer", bool "chroma", bool "dering", \
bool "special", int "special_Thr", string "preset", int "debug")
{
}

:?: :?: :?:

Note : preset "Hight" use Lanczosresize as resizer. You use that in common with asharp and level. Don't you find this "ants" you don't like in lanczos when you encode with that ?
I love lanczos but I found "Hight" preset too much. I rather use "medium".

because if i remove or use # in this lines i got in vdubmod or vdubmpeg2::

Avisynth open failure
cript error: there is no function named "MotionMask"
(Hibrv,line 127)
(Hybrv,line 100)
(Hybrv,line 88)
(D:\toystory1\1.D2V......."

:?
and now?

Dialhot 03-26-2004 07:26 AM

Quote:

Originally Posted by jorel
because if i remove or use # in this lines i got in vdubmod or vdubmpeg2::

Avisynth open failure
cript error: there is no function named "MotionMask"
(Hibrv,line 127)
(Hybrv,line 100)
(Hybrv,line 88)
(D:\toystory1\1.D2V......."

:rotf: You never used HybridFupp so !

Jorel, my pal, it's not the first script you do ! Come on ! When you have a such error that means that you miss a plugin :?

You have to install the correct version of MaskTools ! Look at into the tread, it is provided more than once !
See my first post on page 4 http://www.kvcd.net/forum/viewtopic....r=asc&start=48

jorel 03-26-2004 07:41 AM

yes Phil, i never used before,

:arrow: and don't post that i was used before!

i only download the Kwag's samples to compare, remember?
(i was busy with my kid and don't had time)

the FuPP's link to download masktools 1.4.9 (yesterday and today too)
don't work and i can't find another place!
i'm using the 146 version!
:cry:

this is one of the reasons that i posted:
"something wrong in the script?
please, show the corrections!"

:wink:

audioslave 03-26-2004 07:50 AM

@jorel
Try here my friend:
http://hea.port5.com/filters/masktools-v1.4.9.zip
Just uploaded the zip file to my website :wink:

jorel 03-26-2004 08:12 AM

audioslave.....thanks :!:
:)

now the script after some corrections:

Asharp(1,3)
Levels(0,1.04,255,0,255)

HybridFuPP(720, 480, Preset="medium", Chroma=False)

GripCrop(720,480,overscan=1,source_anamorphic=true ,dest_anamorphic=false)
BicubicResize(GripFit_resize_width,GripFit_resize_ height,0,0.6)

GripBorders()
ConvertToYUY2()
#trim(13000,14000)

more errors in the script?

please,correct!
:wink:

Abond 03-26-2004 08:19 AM

http://forum.doom9.org/showthread.ph...threadid=67232
The last version of MaskTools 1.4.15

jorel 03-26-2004 08:22 AM

Quote:

Originally Posted by Abond
http://forum.doom9.org/showthread.ph...threadid=67232
The last version of MaskTools 1.4.15

thanks Abond but i got:
"we all who" page file not found!
:?

<edited>
ok Abond!
was needed "right click-save as"..

thanks!
:D

Dialhot 03-26-2004 08:31 AM

Quote:

Originally Posted by jorel
more errors in the script?

I didn't understood that was your first try with FuPP. Your script seems correct.
Tell us about your results.

Abond 03-26-2004 08:36 AM

Mmm.. two times resizing, well, I don't know... I would not do this.

jorel 03-26-2004 08:40 AM

Quote:

Originally Posted by Abond
Mmm.. two times resizing, well, I don't know... I would not do this.

@ Phil
yes thanks i read your last post , but Abond found something wrong ....

@ Abond:
how can i use Gripresize with FuPP
:arrow: without loose the aspect radio and using overscan 1?
:?

Dialhot 03-26-2004 08:43 AM

Quote:

Originally Posted by jorel
how can i use Gripresize with FuPP
:arrow: without loose the aspect radio and using overscan 1?
:?

You can't, that's why I didn't tell anything even if I had noticed what abond said.
BTW you don't exactly do two resizing as with Hybrid you resize at the orginal resolution of your source. So that is a "blind" resize.

:arrow: note that your hybrid line will work on the black borders that are in the source :-(

You should proably drop the Gripcrop line, use Moviestacker, and give to Hybrid exact parameters needed to handle bot A/R and overscan.
That thing we already do when we don't use gripfit !

Abond 03-26-2004 08:46 AM

That is! :wink:
Edit: BTW I don't know what if one doesn't put some values for resizing in HybridFupp - does it pass the original resolution or throw an error?

jorel 03-26-2004 08:58 AM

right Phil, :wink:
please "check" again:

Asharp(1,3)
Levels(0,1.04,255,0,255)

HybridFuPP(704, 352, Preset="medium", Chroma=False)

AddBorders(8, 64, 8, 64)
ConvertToYUY2()
#trim(13000,14000)

seems ok for me,don't change the aspect radio and/or overscan or borders!

and....?
is ok?

@ Abond:
thanks too!
:wink:

Dialhot 03-26-2004 09:02 AM

Quote:

Originally Posted by jorel
right Phil, :wink:
please "check" again:

You need to crop the borders before working and then add them at the end :

Code:

Asharp(1,3)
Levels(0,1.04,255,0,255)
Crop(0,64,0,-64)
HybridFuPP(704, 352, Preset="medium", Chroma=False)
AddBorders(8, 64, 8, 64)


jorel 03-26-2004 09:07 AM

Phil:

Asharp(1,3)
Levels(0,1.04,255,0,255)
Crop(0,64,0,-64)
HybridFuPP(704, 352, Preset="medium", Chroma=False)
AddBorders(8, 64, 8, 64)

using Crop(0,64,0,-64) give "big egg head" and cup part of the image top/bottom.

8O

Abond 03-26-2004 09:24 AM

This is cause 64 is with the overscan, I believe. Now you should determine how big are the black borders in the source and to crop them in the crop line
Oops. I mean to put the correct parameters for the film pixels in MovieStacker

jorel 03-26-2004 09:25 AM

8O

no matter what value i use for crop,
i still loose part of the picture...even using

Crop(0,2,0,-2)

give me error!

maybe
Crop(0,0,0,-0)
:lol:

Abond 03-26-2004 09:30 AM

I am sorry, just now I realize your source is anamorphic - in this case you don't need to crop anything.

jorel 03-26-2004 09:35 AM

Quote:

Originally Posted by Abond
I am sorry, just now I realize your source is anamorphic - in this case you don't need to crop anything.

ok Abond !
i "detonate" the line with crop and seems right!

Asharp(1,3)
Levels(0,1.04,255,0,255)

HybridFuPP(704, 352, Preset="medium", Chroma=False)

AddBorders(8, 64, 8, 64)
ConvertToYUY2()
#trim(13000,14000)

seems everything ok now?
if yes,i re start the sample test !

:wink:

Abond 03-26-2004 09:37 AM

Seems ok. Ready! Start! :D

Dialhot 03-26-2004 09:52 AM

Quote:

Originally Posted by Abond
I am sorry, just now I realize your source is anamorphic - in this case you don't need to crop anything.

THAT'S TRUE ONLY WITH 1.77 SOURCES !

Movies in 1.85 A/R have a 16 pixel borders encoded into the video that have to be removed.

Movies in 2.35 have a 72 pixel borders.

And I'm talking about ANAMORPHIC source. Borders a bigger if the source is 4:3.

@jorel
That is you that put "64" in your example, I can't know what is the exact size of your borders :-)
Find the border size with the preview in DVD2AVI. Then use this paremeter in Moviestacker and it will gives your the exact parameters of the Crop command and the Addborders one.

Abond 03-26-2004 10:21 AM

Quote:

Originally Posted by Dialhot
THAT'S TRUE ONLY WITH 1.77 SOURCES !

There is really not need to shout at me... :? :(

Dialhot 03-26-2004 10:50 AM

When I tell the the borders have to be removed and read in the next post that there is no borders to cut because the source is anamorphic, it gives me the mood to shout.

But I don't shout against you in particular :-)
That is a commonly believed thing that anamorphic = fullscreen. And anamorphic DVD = no borders. And that is not true.

Don't take that bad, it really wasn't my goal to offend you. :drunkard:

Abond 03-26-2004 10:54 AM

Quote:

Originally Posted by Abond
This is cause 64 is with the overscan, I believe. Now you should determine how big are the black borders in the source and to crop them in the crop line
Oops. I mean to put the correct parameters for the film pixels in MovieStacker

You probably missed my earlier post... :roll:

Dialhot 03-26-2004 11:09 AM

oh oh .... :oops: :oops: :oops:

:grenade: :heee: Sorry

FuPP 03-26-2004 12:57 PM

I will have a look very soon to know if I can incorporate Gripxxx in HybridFuPP for automatic cropping and so on... As an optional possibility though.

BUT I don't know at all these tools as I personnaly Use fitcd to do the calculations, and use crop() and addborders().

If someone can take me a brief description or a link with explanation and examples (and a link to download the tools)...

FuPP

@Jorel : please, be kind enough not to use chroma=false. You made me correct chroma smoothing... so, unless you want my heart to stop... :D

FuPP

jorel 03-26-2004 01:07 PM

FuPP:
i was out and only now i read the last five posts!

what's your recomendations for that script?

Asharp(1,3)
Levels(0,1.04,255,0,255)

HybridFuPP(704, 352, Preset="medium", Chroma=False)

AddBorders(8, 64, 8, 64)
ConvertToYUY2()
trim(13000,15000)

:)

ps:
"look very soon to know if I can incorporate Gripxxx in HybridFuPP for automatic cropping..."
wow ,it will be cool!
:wink:

Dialhot 03-26-2004 01:10 PM

Quote:

Originally Posted by FuPP
If someone can take me a brief description or a link with explanation and examples (and a link to download the tools)...

Go there :

http://www.kvcd.net/forum/viewtopic.php?t=2292

The filter Gripfit is now cutting in 3 part : GripCrop, GripSize and GripBorders (I guess you will understand easly what each command do :-)) but the idea and parameters are still the same.

@Jorel
I'm very surprise about your request for Gripfit into Hybrid.
You know it has a lot of problems (including "avisynth access violation" taht make the encoder crash at half way :-() and you know that we give that in script only to avoid tons of newbies questions but that we don't use it in our personnal encodings.
So I'm not sure what is the purpose; But as Fupp said it will be an option, why not...

jorel 03-26-2004 01:21 PM

Phil
:arrow: this is for tests...see the "trim" in the script!

i will try with lanczos, bicubic, asharp, deen, unfilter ....
with and/or without everything changing the positions in the script
to see what happen with the colors, aspect radio, sizes, time of each encode....all.

means.....lots of scripts and tests with the same source!

:wink:

FuPP 03-26-2004 03:48 PM

Quote:

Originally Posted by Dialhot
I'm very surprise about your request for Gripfit into Hybrid.
You know it has a lot of problems (including "avisynth access violation" taht make the encoder crash at half way :-()

Oops ! You mean Gripfit is definitively not stable ?

FuPP 03-26-2004 03:49 PM

@Jorel

HybridFuPP(704, 352, Preset="medium")
Levels(0,1.04,255,0,255)
AddBorders(8, 64, 8, 64)
ConvertToYUY2()
trim(13000,15000)

should be enough :)

FuPP

jorel 03-26-2004 03:55 PM

Quote:

Originally Posted by FuPP
@Jorel

HybridFuPP(704, 352, Preset="medium")
Levels(0,1.04,255,0,255)
AddBorders(8, 64, 8, 64)
ConvertToYUY2()
trim(13000,15000)

should be enough :)

FuPP

thanks...starting tests!
:D

FuPP,
Gripfit is "sometimes" not stable, not all the time!

FuPP 03-26-2004 04:03 PM

Quote:

Originally Posted by jorel
Quote:

Originally Posted by FuPP
@Jorel

HybridFuPP(704, 352, Preset="medium")
Levels(0,1.04,255,0,255)
AddBorders(8, 64, 8, 64)
ConvertToYUY2()
trim(13000,15000)

should be enough :)

FuPP

thanks...starting tests!
:D

FuPP,
Gripfit is "sometimes" not stable, not all the time!

Jorel, what version are you using for your tests ?

jorel 03-26-2004 04:11 PM

"Jorel, what version are you using for your tests ?"

everything new (last versions).....avisynth,filters...all!
:wink:

FuPP 03-26-2004 04:12 PM

Quote:

Originally Posted by jorel
"Jorel, what version are you using for your tests ?"

everything new (last versions).....avisynth,filters...all!
:wink:

was talking about HybridFuPP version :)

kwag 03-26-2004 04:14 PM

:arrow: jorel, :stickeye: :lol:

-kwag

jorel 03-26-2004 04:21 PM

Quote:

Originally Posted by FuPP
Quote:

Originally Posted by jorel
"Jorel, what version are you using for your tests ?"

everything new (last versions).....avisynth,filters...all!
:wink:

was talking about HybridFuPP version :)

Kwag:
:lol:

FuPP:
if i remember,you "Kill" the 085a, :lol:
then i'm using HybridFuPP version 084b..is the last don't?
:?

FuPP 03-26-2004 04:27 PM

ok :D This the reason why you use chroma = false, I guess...

If you can wait a few minutes, I have maybe (maybe I've said) something for you, using Gripfit... If only I could find a place where to download it !!! :angryfire:

edit : ok found one on incredible web site. Hope this is the last one...

jorel 03-26-2004 04:43 PM

i'm still waiting..... :lol:
=no problem...i can wait!
:wink:

FuPP 03-26-2004 05:04 PM

ok, there is even no modification to do in order to use Gripxxx.

Simply do (for instance)

Code:

GripCrop(480,576,overscan=2,source_anamorphic=true,dest_anamorphic=false)
HybridFuPP(preset="medium",width = GripFit_resize_width, height = GripFit_resize_height)
GripBorders()

I though would appreciate if you can wait a few minutes, as I'm going to post you a new alpha...

FuPP


All times are GMT -5. The time now is 09:12 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.