digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   SansGrip Filters: Need an aternative resize to GripFit (http://www.digitalfaq.com/archives/avisynth/10630-sansgrip-filters-aternative.html)

Zyphon 07-01-2004 09:29 AM

SansGrip Filters: Need an aternative resize to GripFit
 
Hi Guys,

I am making a KDVD and backing up Shrek1 and Monster's Inc to one DVD for my kids.

Recently AOL send a CD through my door and on it had some movie trailers and making of from Shrek 2.

Now to stop the kids bothering me to keep playing it on my PC I wanted to convert it to KDVD and have it as say extras on the Shrek1 menu when I author it.

The mpegs were of PAL VCD size 325 x 288. Now I know converting this to KDVD @ DVD res will produce cr#p results but my kids are not really bothered about the quality they just wanted to watch it on their TV.

I used QuEnc to make the m2v files all went well except for one file.

Here is the script used its the 2 VCD to KVCD one.
Code:

directshowsource("E:\Movies\Convert\trailer2.mpg").killaudio()

ConvertToYV12()
BlindPP(cpu=4)
Blockbuster(method="noise",detail_min=1,detail_max=3,variance=0.1,seed=1)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
GripCrop(720, 576, overscan=2, source_anamorphic=false)
GripSize(resizer="LanczosResize")
Undot()
TemporalSoften(2,7,7,3,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
#Blockbuster(method="noise",detail_min=1,detail_max=10,variance=0.3,seed=5623)
GripBorders()
MonitorFilter

All 5 mpegs are PAL VCD res @25fps and all convert fine except for this one.

I get the 'AviSynth caught an access violation blah blah blah'

I was wondering if someone could give me an alternative resize script for this movie other than GripFit.

Thanks in advance. :)

Dialhot 07-01-2004 09:38 AM

Of course ! Use Moviestacker or, if you don't have it yet on your HD (the DL is link is removed for GPL issue) look for FitCD on the net.

This tool will compute the correct value to use with any internal resizer of avisynth (bilinear, bicubuc, lanczos...)

Prodater64 07-01-2004 09:38 AM

You can use Moviestacker and Bicubicresize or Lanczosresize.
If you post your original resolution, I could help you further.

Zyphon 07-01-2004 09:42 AM

Wow thanks guys that's what I call a quick response. :D

I do have MovieStacker I was one of the lucky one's who got the last version before it was removed.

@Pro

My original resolution was PAL VCD 352 x 288

My target res is 720 x 576.

What is the best resize method to use in MS bicubic presize or lanczos?

EDIT: I just fired up MS and got the following resize params:
Code:

Lanczos:
LanczosResize(688, 382, 68, 144, 344, 288)

Code:

BicubicResize:
BicubicResize(688, 382, 0, 0.6, 68, 144, 344, 288)

Which method is best or is it just a matter of personal taste and preference?

Or indeed does it make any difference. :D

Info would be really appreciated guys. :)

Dialhot 07-01-2004 10:23 AM

Quote:

Originally Posted by Zyphon
What is the best resize method to use in MS bicubic presize or lanczos?

For VCD -> DVD enlargement lanczosresize can produce too much artefacts. So let stick to bicubic precise.

Quote:

Which method is best or is it just a matter of personal taste and preference?
Generally it's a matter of taste. But generally we NEVER enlarge a video but always reduce it :-).

Quote:

Or indeed does it make any difference. :D
Lanczos generates a picture with edged more sharper. I personally prefer that but others give their choice to the couple Bicubic + asharp. Personnaly I do not like asharp results !

Note: taken alone, bicubic gives a file up to 10% smaller than lanczos.

Prodater64 07-01-2004 10:25 AM

Lanczos sharper than Bicubic sharper than Bilinear.
Is really a taste question.
Somebody tell me that if your source es avi = Bicubic, if your source is DVD = Lanczos. (but i don't know if this can be a generalization)

Zyphon 07-01-2004 10:39 AM

Thank you very much Phil and Pro for the info provided on resizing I have learned a lot here today, I really appreciate you taking the time to explain these things to me. :)

I shall use Bicubic to resize then. :D

jorel 07-01-2004 10:53 AM

Quote:

Originally Posted by Prodater64
Lanczos sharper than Bicubic sharper than Bilinear.
Is really a taste question.
Somebody tell me that if your source es avi = Bicubic, if your source is DVD = Lanczos. (but i don't know if this can be a generalization)

no,it's not the same!

from avisynth overview:
LanczosResize is an alternative to BicubicResize with high values of c about 0.6 ... 0.75 which produces quite strong sharpening.
It usually offers better quality (fewer artifacts) and a sharp image.

remember that the max c (acceptable) value in Bicubic is 0.6! :wink:
From c>0.6 the filter starts to "ring". You won't get real sharpness,
what you'll get is crispening like on a TV set.No negative values are allowed for b. Then stay on b=0.

and in the last avisynth we have:
Lanczos4Resize (added in v2.55) is closely related to LanczosResize (correct name: Lanczos3Resize). The latter uses a 6-tap filter and the former a 8-tap filter to do the resizing. The result is that Lanczos4Resize produces sharper images. Especially usefull when upsizing a clip.

it's not (only) a question of taste (i did "billions" of tests), is from what source you have to what target you want,...
Phil posted very cool explanations with very good taste! :wink:

Prodater64 07-01-2004 11:15 AM

Quote:

Originally Posted by jorel
Phil posted very cool explanations with very good taste! :wink:

Quote:

Originally Posted by Dialhot
Cuando ? Cuando vorrei !

Il resizer non e una problema di rizzoluzione della sorgente neancche quella della targetta ! E solo una domanda di piacere e di necessita di "compressibilita".

Bilinear da un file piu piccolo che bicubic, che da une file piu piccolo che Lanczos.

Pero ...

Lanczos da una imagine piu "sharpen" (scuzzi, no so la parola italiana) che bicubic, e bicubic da una imagine piu "sharpen" che bilinear.

Capisci ?

Quote:

Originally Posted by Translation
The resizer is not a problem related to source neither target. It is related only with the taste and with "compresibility".
Bilinear gives a file smaller than bicubic. Last one gives a file little bit smaller than Lanczos.

But...

Lanczos gives a picture sharper than bicubic. Last one gives a picture sharper than bilinear.

Do you understand?


Dialhot 07-01-2004 11:30 AM

Quote:

Originally Posted by Prodater64
Somebody tell me that if your source es avi = Bicubic, if your source is DVD = Lanczos. (but i don't know if this can be a generalization)

Like I was saying in the italian post that you quoted, this is wrong. As you can see in my V4 script (and all other scripts I did here) I use Lanczos anytime.

But I don't know to which test Jorel refers or what he was exactly saying. May be he was talking about the source and target resolution ?

Prodater64 07-01-2004 11:51 AM

Quote:

Originally Posted by Dialhot
Quote:

Originally Posted by Prodater64
Somebody tell me that if your source es avi = Bicubic, if your source is DVD = Lanczos. (but i don't know if this can be a generalization)

Like I was saying in the italian post that you quoted, this is wrong. As you can see in my V4 script (and all other scripts I did here) I use Lanczos anytime.

But I don't know to which test Jorel refers or what he was exactly saying. May be he was talking about the source and target resolution ?

Well, you can read text between parenthesis. I mean I don't know if what he said me is for all encodes or only for what I asked for. When I found out your Italian forum answer, it was clear for me, and I quoted you because Jorel "quoted" you but with other meaning, and I don't know what jorel is exactly saying too.
Now, i don't know what is the correct answer to the question, as things can change with time, and I don't know resizers named for Jorel.

jorel 07-01-2004 04:51 PM

are we crazy? 8O
first i was not answering anything in italian forum,i don't read there...
then don't matter what have in Italian forum about the same or seamless topic, i was answering for what i read here in THIS thread!

Quote:

Originally Posted by Prodater64
Lanczos sharper than Bicubic sharper than Bilinear.
Is really a taste question.

i was trying to explain exact what i wrote. quoting myself:
Quote:

Originally Posted by jorel
no,it's not the same!...
it's not (only) a question of taste (i did "billions" of tests), is from what source you have to what target you want,...

what you don't understand in my answer!?!?!? :?: :!: :?
please, now i'm more confuse than you!(and feeling stup)

Dialhot 07-01-2004 05:00 PM

Quote:

Originally Posted by jorel
first i was not answering anything in italian forum,i don't read there...

We never told you read the italian forum :-)
Quote:

what you don't understand in my answer!?!?!? :?: :!: :?
We understand that after a lot of test you did, you arrived to the conclusion that the resizer to use depend on what is the source and what is the target.
And I tell exactly the opposite.

So can you explain a little more your point of view ?

jorel 07-01-2004 05:58 PM

Quote:

Originally Posted by Dialhot
We never told you read the italian forum :-)

then i don't understand why Pro quote part of my answer and use the Italian post in his answer for me here! forgeting all that was quoted from Italian forum after my answer now i'm trying to explain:
http://www.digitalfaq.com/archives/i.../2003/06/1.gif :arrow: my answers are for what i read here in this thread only :!:
Quote:

Originally Posted by Zyphon
Which method is best or is it just a matter of personal taste and preference?

Quote:

Originally Posted by Dialhot
Generally it's a matter of taste.

Quote:

Originally Posted by jorel
it's not (only) a question of taste,..

atention here, i wrote: it's not ->ONLY<-a question of taste"
Quote:

Originally Posted by Prodater64
Lanczos sharper than Bicubic sharper than Bilinear.
Is really a taste question.

Lanczos,lanczos4 and bicubic sharp the pictures in differents ways and the result is not the same it's not a question of taste ONLY. :arrow: don't need to copy everything again from the avisynth manual explaining the differences of that resizes,parameters and how lanczos work different of bicubic, need? for this reason i wrote:
Quote:

Originally Posted by jorel
no,it's not the same!...it's not (only) a question of taste,..

atention here again, i wrote: it's not ->ONLY<-a question of taste"


...opposite?
Quote:

Originally Posted by Dialhot
Lanczos generates a picture with edged more sharper. I personally prefer that but others give their choice to the couple Bicubic + asharp. Personnaly I do not like asharp results !

Note: taken alone, bicubic gives a file up to 10% smaller than lanczos.

Quote:

Originally Posted by jorel
Phil posted very cool explanations with very good taste! :wink:

i agree with that!.... :arrow: where i posted the the opposite of you :?: :?

http://www.digitalfaq.com/archives/i.../2003/06/1.gif forget the Italian post that was quoted AFTER my answer!

Prodater64 07-01-2004 06:17 PM

[quote="jorelPhil posted very cool explanations with very good taste! :wink: [/quote]

Don't be angry Jorel. You said one thing and call Phil in the sentence over here, and I had read Dialhot that said other thing than you. I translated Italian forum because is the first post that I found. But Dialhot said that is a taste question many times. I saw others post from you where was said that you like this resizer and no other (but only for taste questions), then I would want to know what is the real thing. Don't be angry Jorel. Excuse me if I offense you in any way.

jorel 07-01-2004 06:40 PM

Quote:

Originally Posted by Prodater64
Quote:

Originally Posted by jorel
Phil posted very cool explanations with very good taste! :wink:

Don't be angry Jorel. You said one thing and call Phil in the sentence over here, and I had read Dialhot that said other thing than you. I translated Italian forum because is the first post that I found. But Dialhot said that is a taste question many times. I saw others post from you where was said that you like this resizer and no other (but only for taste questions), then I would want to know what is the real thing. Don't be angry Jorel. Excuse me if I offense you in any way.

i'm not angry dear friend Pro,you don't offend me, i was only confused after you quote the Italian forum! :)
like i wrote,i think that it's not only a question of taste, it's a question of good results...this is our target!
i don't like lanczos for 320x240,i see "moving ants"(as i call) in the edges.
i like asharp(1,2) but depend of the source and i not use in all cases.
for Kdvd,i don't use any resize(no more),i think that 704*480(ntsc) give just a little more compression than without resize(ntsc dvd is always 720*480,right?).....see that here i'm posting my taste but the result is not a question of taste only, we check the quality of the source to know what resize can give better result before encode...well,i always do tons of tests before encode,i don't choose as "blind" X resize and filter standards to encode as "blind"...at the same time seems question of taste but it's not ONLY,depend of the quality of the source and the target that you want!
i'm confuse but clear .....and not clever! :lol:

Dialhot 07-01-2004 07:10 PM

Quote:

Originally Posted by jorel
then i don't understand why Pro quote part of my answer and use the Italian post in his answer for me here!

:?: :?:
Look at just above the italian part, that is wrote "Dialhot wrote:" :!: :!: :!:
Quote:

i agree with that!.... :arrow: where i posted the the opposite of you :?: :?
For sure if you refuse to take in account what was typed in an other thread you will never understand where you are telling something opposite to what I said !

You said there : "is from what source you have to what target you want"
I said in italian forum AND I CONFIRM HERE NOW AND AGAIN AND NEVERTHELESS : "The (choice of) resizer is not a problem related to source neither target"

:arrow: There is the opposite !

We never said you are telling HERE the opposite to something I also said HERE ! When a discussion is progressing new things can appears and sometimes they can come FROM OUTSIDE the present discussion.

So can continue the discussion furtehr yes or not ?

The problem is still the same : EXPLAIN YOUR POINT BETTER PLEASE ! And plese do not just copy/paste a manual for that because it's clear that you are understanding it in a different way I am !

So when you say " from what source you have to what target you want" what are you talking about ? What is the words "what" represent ? The format (avi, DVD, KVCD, KDVD) ? The resolution ? What ?

EDIT : forget the question, I read that you anwsered to all that in your last post to Pro.
[/b]

Zyphon 07-02-2004 07:50 AM

Hi Guys,

I removed all the GripFit commands from my script and put in the values for Bicubic resize given by MS, now I get this error:

'Evaluate: Unrecognised exception!
(E:\Movies\Convert\SHREK~1.AVS, Line 17)'.

Judging from my script below to me this points to the 'DCTFilter' line.

What have I done wrong guys??? :cry:

Code:

LoadPlugin("C:\Program Files\MovieStacker\Filters\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\Undot.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\Convolution3DYV12.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\BlockBuster.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\GripFit_YV12.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\DctFilter.dll")

directshowsource("E:\Movies\Convert\trailer2.mpg").killaudio()
ConvertToYV12()
BlindPP(cpu=4)
Blockbuster(method="noise",detail_min=1,detail_max=3,variance=0.1,seed=1)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
BicubicResize(688, 382, 0, 0.6, 68, 144, 344, 288)
Undot()
TemporalSoften(2,7,7,3,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
#Blockbuster(method="noise",detail_min=1,detail_max=10,variance=0.3,seed=5623)
MonitorFilter


jorel 07-02-2004 07:51 AM

monitorfilter? :?

Zyphon 07-02-2004 07:58 AM

Hi Jorge,

No my friend I dont think it's the MonitorFilter as I removed it after your last post just to eliminate it and the error was still there.

Im sure it has something to do with the DCTFilter as when I counted down to 17 lines I encluded the empty lines also.

I could be wrong though and I usually am lol. :D

Prodater64 07-02-2004 08:42 AM

Check your Moviestacker resize values. Are they divisibles by 16?
Is it checked crop round to 2, resize round to 16?

Dialhot 07-02-2004 08:46 AM

Excuse me but this :
Code:

BicubicResize(688, 382, 0, 0.6, 68, 144, 344, 288)
produces a 688*382 frame. And you don't have any addborder line in your script. So you are missing something :-)

Second : I'm not sure but DCTFilterworks in mod16 dim and 382 is not divisible by 16. That is perhaps why you have an error.
(edit: seems that Pro has the same idea than me :-))

Zyphon 07-02-2004 08:54 AM

@Pro
Thanks for the help buddy.

@Phil
I had a feeling I was missing an AddBorder command but im not to sure where in my script to add it or what params I should use could you please guide me in this, is there a forumla im sure I read a post of yours ages ago of a little formula.

jorel 07-02-2004 08:57 AM

Quote:

Originally Posted by Dialhot
(edit: seems that Pro has the same idea than me :-))

8O
:bowdown: thanks GOD....it's a miracle! :rotf:

Dialhot 07-02-2004 08:58 AM

Quote:

Originally Posted by Zyphon
@Phil
I had a feeling I was missing an AddBorder command but im not to sure where in my script to add it or what params I should use could you please guide me in this, is there a forumla im sure I read a post of yours ages ago of a little formula.

:?: But... moviestacker gives it to you also ! And you can see what is its correct place in moviestacker too :-)
BTW, the correct place is generally the last line of the script.

Prodater64 07-02-2004 09:03 AM

Yes, same idea.
And for sure, only if you don't want overscan, Moviestacker always give you an Addborders or a Letterbox values, relatet to overscan method.
You need to put Addborders line as last one, just in place of monitorfilter.
BTW: As it seems, Jorel neither me, know what is monitorfilter, can you explain us.

Zyphon 07-02-2004 09:03 AM

Hi Phil,

The trouble I have Phil is that MS wont accept an Mpeg1 as a source only a D2v or Avi file.

So I dont know if I have done wrong I just edited the film pixel to 352 x 288 and got the values from that.

If I try to use the wildcard *.* and enter that in MS it still wont accept the Mpeg1 stream.

Is there a way to input a Mpeg stream so that I can get my resize params and should I not use any of the presets in MS?

Zyphon 07-02-2004 09:08 AM

@Pro

It is an AviSynth filter created by Johann langhofer. What it does is when using QuEnc as I sometimes to or indeed CCE it gives you a preview window in which to view the progress of your encode. :)

EDIT: Check out Johann site >>>HERE<<<

Prodater64 07-02-2004 09:11 AM

I don't understand. If you have already mpg pal 352*288, just demultiplex it and give it to de DVD authoring program. Related to that sofware, maybe you don't need to demux it.
mpeg1 or mpeg2 352*288 is a valid DVD resolution.

Zyphon 07-02-2004 09:15 AM

Hi Pro,

Unfortunately my standalone when trying to author a DVD with VCD or SVCD I get the picture viewed in a box in the sort of top right of the screen.

My DVD plays VCD's and SVCD's perfect but like I said if I try to author those res as DVD I get a boxed picture.

I wanted to resize this mpeg so that I could have some extras for a DVD im working on. :)

Prodater64 07-02-2004 09:15 AM

But answering your question you can add by hand your source resolution values (in Moviestacker), near yellow folder icon (up and left). Then press icon with arrow pointing down and these values will be copied to film pixel boxes.

Dialhot 07-02-2004 09:20 AM

Quote:

Originally Posted by Zyphon
So I dont know if I have done wrong I just edited the film pixel to 352 x 288 and got the values from that.

You can enter the size of the source by hand even if the fileds seem to be grayed. Moviestacker don't need to really read the source :-) Try it !

Note: for your VCd res problem on a DVD that is not normal : VCD IS in the DVD standard ! You surely do something wrong with your authoring software.

Edit: Pro get out of my head :!: :-D

Prodater64 07-02-2004 09:25 AM

:lol: :oops: :lol:

Quote:

Note: for your VCd res problem on a DVD that is not normal : VCD IS in the DVD standard ! You surely do something wrong with your authoring software.
I thought too about that but I leave it for you. :D

Zyphon 07-02-2004 09:30 AM

Thanks for the tip Pro. :)

EDIT: I just checked the set-up on my Standalone and I have the following TV Screen setup:

4:3 (Letterbox)
4:3 (Pan&Scan)
16:9 (wide)

I was told the Pan & Scan was the best set up for my 4:3 TV is this true? The reason I ask maybe this is the reason when I author SVCD res into a DVD authoring Tool I get a display in a small box. :?

Dialhot 07-02-2004 09:38 AM

Quote:

Originally Posted by Zyphon
I was told the Pan & Scan was the best set up for my 4:3 TV is this true?

Catch the guy that told you that and launch him from the roof of Big Ben. Next time he will not say craps :-)

4;3 letterbox, anytime.

Quote:

The reason I ask maybe this is the reason when I author SVCD res into a DVD authoring Tool I get a display in a small box. :?
SVCD (480*576) is not in the DVD standard. VCD (352*288) and 1/2DVD (352*576) are.

kwag 07-02-2004 10:01 AM

Quote:

Originally Posted by Dialhot
Catch the guy that told you that and launch him from the roof of Big Ben.

:rotf:

Zyphon 07-02-2004 10:02 AM

Thanks for the info on the Ratio Phil I shall build my launcher on top of Big Ben and strap him to it. :D

Also thank you Phil and Pro for informing me about the res of 352 x 288 res I shall try to make a KSVCD with a res of 352 x 288 and author it and see the results in my standalone. :)

Thanks very much for your help guys.

incredible 07-02-2004 10:30 AM

If you wanna see how Phil looks in PanScan to 4:3 .....
www.incredible.de.tf/aspectratios.html

.... you see ... he will loose all his friends :!:
Thats why launching that guy from the top of the roof of big ben makes sense

:wink:

Dialhot 07-02-2004 10:33 AM

Quote:

Originally Posted by incredible
.... you see ... he will loose all his friends :!:

I have friends ? :smileysex: :hopline:
:lol:
Excellent post Inc :-)

Zyphon 07-02-2004 10:36 AM

I understand what you mean now by Pan & Scan thanks for the link to your site very informative. :)


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