Log in

View Full Version : AviSynth 2.06 new resizing filter


Nozomi
29th September 2002, 02:49
When would GKnot support this or how can I done it manaully?

manono
29th September 2002, 03:33
Hi-

Which filter is that-Lanczos? If you have the new AviSynth installed, then just open up your .avs with Notepad and replace the current resizer with LanczosResize(640,272) or whatever. If you don't have the new AviSynth installed, then you'll have to get the .dll and do the LoadPlugin thing also. Then go ahead with the encoding. Real easy.

jggimi
29th September 2002, 03:40
GKnot allows for manually editing the .avs scripts before encoding. On the "Save&Encode" window that you select filters on: resizing, noise reduction, and others....there's an "Edit" button at the bottom.

bond@doom9
10th October 2002, 21:05
How can I make a compressibility test with LanczosResize?

manono
10th October 2002, 22:35
Hi-

Yep, I just discovered that you can't edit the .avs and still push the "Now" button to do the compressibility test. I see 2 workarounds. For purposes of doing the Compress Test, use the Sharp Bicubic resizer. It's similar in compressibility to LanczosResize (but Lanczos is better in my opinion).

The other way is to edit the .avs with "Use" ticked under the Compressibility Check area. When editing, add LancosResize(640,272) or whatever your resolution is and just Save. Then go to the Encoder Tab and Add Job and tick "First Pass" only. Fill in the Audio information just like you're going to do the 2 passes. When done, hit "Add Job To Encoding Queue" and "Yes" to start encoding now. When it's done after 5-15 minutes, go back to the Encoding Tab and hit "Load" at the bottom. Then you'll see a couple of files. Double Click the movie.log (not the movie_GKnot.log), and you'll see another box appear. Hit "Yes", and an "Average Quant=x.xxx" for the Compress test will appear. Now, if, and it's a big if, the percentage is figured the same way as for DivX3.11, then you divide that quant number into 200, and you get your percentage figure. That is, if the average quant is 3, then the percentage will be 66.667%. I'll check with TheWEF about this. Thanks for bringing this to my attention.

bond@doom9
11th October 2002, 11:44
Hi manono!

First of all thank you for your answer

I tried your suggestion for the compressibility test but there is one problem: There is no "movie.log" file (just "movie_gknot.log").
GKnot produces three files movie_gknot.log, movie.avi and movie.stats. You may find it interesting that the movie.stats file has the same filesize as the other, regular comp-test stats files!

By using this stats-file i got the following result:

Matrix 700mb 640x256
Little Noise + Sharp Bicubic -> 58.4%
Little Noise + LanczosResize -> 57.4%

jggimi
11th October 2002, 13:55
Stats files are produced by DivX 3. Manono's instructions were for DivX 5.

bond@doom9
11th October 2002, 14:19
Thank you for the info!

I am using DivX3 -> Is the statsfile produced by gknot (firstpass only) the right comp-test file?

manono
11th October 2002, 14:58
Hi bond@doom9-

As jggimi stated, that was for DivX5. I'm not sure why I assumed it was for DivX5 (maybe because of the ongoing results of the codec poll in the General Discussion Forum-the odds were it was DivX5.) But since you already figured the workaround for my workaround (:)), then you got the results even more easily. GKnot can read the DivX3 .stats file to give you the percentage directly.

By the way, when I was testing this, I already had the audio file done for MP3. Of course if GKnot does the audio along with the Compress Test First Pass, then the Audio conversion time must be added onto the 10 minutes or so to do the first pass alone.

Also, if you intend to use the same .avs to do the subsequent real 2 passes later on after the compress test, don't forget to remove the SelectRangeEvery(280,14) line from it (or make a new one), or else you're going to get a very strange looking movie.

And thanks bond, for comparing the compressibility of LanczosResize with Sharp Bicubic. Now we know it's very slightly less compressible. A little valuable independent research that might benefit lots of us.

bond@doom9
11th October 2002, 20:38
:)

manono
12th October 2002, 08:17
Hi-

I got a reply from TheWEF about how to do a Compress Test using DivX5 after editing the .avs. His way is more accurate than mine (mine was a couple of per cent different). If you're using DivX3, then my way combined with bond's will give you the correct figure.

1. When setting up the .avs, press the Use button so that you'll be doing only 5% of the full First Pass and then Edit the .avs. You can substitute LanczosResize, add in Convolution3D or any other filters not offered by GKnot and then hit Save.

2. In the Bit Rate Tab, under Total File Size, give it an impossibly high number (like 10000 MB). This is not necessary if using DivX3. The idea is to force GKnot-DivX5 to do the Compress Test with Quant 2. DivX3 does its first pass in Quant 2, but DivX5 ordinarily doesn't. If you did the Audio in advance fill in the File Size and Overhead.

3. Go to the Encoder Tab and hit Add Job. In the upper left, tick First Pass and make sure the 3 Select buttons are pointed to the correct places (they should be by default).

4. Hit the Audio 1 Tab. If you did the Audio in advance, then point the Select button to it and select Just Mux. If GKnot's going to do it, then set up the Audio as you would normally.

5. Add Job To Encoding Queue and Start Encoding. This may take 10 minutes or so for just the First Pass, and an additional 20-30 minutes or so if also doing the Audio.

6. When done, go back to the Bit Rate Tab. My Audio was done in advance, but you'll have to fill in the Audio File Size and Interleaving (get it from the Encoder Tab or from the MP3 created in your movie folder). Hit Load, and load the movie.log (and not movie_GKnot.log), and say Yes to the new window that pops up. If you performed IVTC, don't forget to switch to 23.976fps. You'll see the Load Percentage in red and an impossibly high figure. But, return the Total File Size to it's intended final figure (like 700MB, or 1390MB) and you'll get the correct percentage figure.

7. If you intend to use the same .avs for the real two passes, remove the SelectRangeEvery(280,14) line or make a new .avs.

8. Now, if the percentage figure is to your liking, go ahead and run the 2 passes normally (you can Just Mux the audio now, without doing it over).

My thanks to TheWEF for pointing the way.