So Bad It's Good FoRuM
https://sbig.dead-donkey.com/

avs2xvid.bat with Lux presets
https://sbig.dead-donkey.com/viewtopic.php?f=31&t=8128
Page 1 of 20

Author:  Lux Delux [ Sat Jun 16, 2007 2:58 am ]
Post subject:  avs2xvid.bat with Lux presets

All right, you should switch from virtualdubmod encoding cause this nails it's ass :D

It's pretty simple and you can have 6 encodes running at the same time if you want! :pooper:

Anyways this basically the same thing as originally posted here

http://forum.doom9.org/showthread.php?t=119500

so all credit to henryho_hk and also teegadeck for the great preset ideas. I simply added my own presets and changed some things inside avs2xvid.bat which henryho_hk said we should change but he forgot to add it himself cause it was late.

-----------------------------------------------------------------------------------

Soooo here it is

<a href="http://www.bad-good.org/avs2qxvid.bat.rar"> DOWNLOAD</a>

Just extract the folder somewhere, you don't need install anything, just avisynth 2.5.7 if you don't already have it

http://downloads.sourceforge.net/avisyn ... g_mirror=0

-----------------------------------------------------------------------------------

The steps should be simple, first you run a comptest and then select one of the presets based on the test!

How do I make the comptest Lux?!!?! :wtf:

1) you make an .avs for your movie, with the filtering etc. you want. So it's the usual stuff here.

2) create a simple text file in the same folder. You name it depending on your .avs name so if your .avs is called

Code:
smellymovie.avs


the text file will be

Code:
smellymovie.enc.txt


3) inside the .txt file write

Code:
COMPTEST sizeMB


where size is the size of your video, like 1162MB for example.

4) Drag the .avs file onto avs2qxvid_25h.bat

that's it! Your comptest should start running!

tip: run the comptest in a different folder so you have the log file with the result later on ;)

-----------------------------------------------------------------------------------

Here's what preset to choose depending on the comptest percent.
If you get an oversize file choose the next higher preset, and if undersize choose the lower one.

Though if you don't get much over/under sizing (under 100mb), perhaps it's better to just slightly decrease/increase
resolution, sharpening if you use it etc.

Anyways here they are...

"<"49 - LUX-40
50-59 - LUX-50
60-69 - LUX-55
70-79 - LUX-60
80-86 - LUX-70
87-100 - LUX-80
101-109 - LUX-85
110-130 - LUX-90
131-145- LUX-95
146-160 - LUX-97
160">" - LUX-99

if you get undersizing with LUX-95 then feel free to ue LUX-99 :eek:

now in the yourmovie.enc.txt you write the preset name and the video size

EXAMPLE
Code:
LUX-90 1124MB


and just like the comptest, simply drag it onto the .bat and you have an encode running!

!Or you can enter
Code:
LUX-CT yoursizeMB
and have it run the comptest and choose the preset for you! Thanks to elguaxo.

still testing, especially the ones under 90 and over 85, I'll update the percent ranges more in detail when I have some results.

Author:  Lux Delux [ Sat Jun 16, 2007 2:58 am ]
Post subject: 

I'll format the post better later on. I need to now write the beta preset choosing :teeth:

Author:  Pure [ Sat Jun 16, 2007 3:00 am ]
Post subject: 

I'll have a go probably tomorrow night
:cheer:

Author:  Lux Delux [ Sat Jun 16, 2007 3:37 am ]
Post subject: 

Added not fully tested preset percent choosing options. Happy testing :)

These were mostly out of my head, still don't have too much sources tested to be more precise :beh:

Author:  elguaxo [ Sat Jun 16, 2007 5:01 am ]
Post subject: 

Gonna start testing tomorrow!

Edit: one little trick. With this .bat thingy you will be using xvid_encraw and the xvid version you have installed in your system. But you can encode with newer versions of Xvid, just downloading the latest version here and extracting xvidcore.dll to the same directory of xvid_encraw.exe included in avs2qxvid.bat.rar.

Why would you want to try a newer version of Xvid? Via xvid_encraw you can access some new features not supported by your regular Xvid forntend. For example I am running SSIM with all my encodes. SSIM is another little number that tell us about the quality of the resulting encode.

Author:  Lux Delux [ Sat Jun 16, 2007 1:38 pm ]
Post subject: 

I had no idea about that SSIM thingie! Do I have to add a line for it in the .txt file? :)

BTW I removed -3 for b-frame sensitivity in my presets. I had Beowulf running with it and the DRF values are great, with V3 but it looks crappy.

DRF4 is only 7% but DRF3 is 59% so I guess it had a lot of P3 frames, didn't look very good with V3. Gonna test it with SixOfNine now, hope Bloodrayne will look better with heini, although it also used the old one with -3 b-frames... damn :beh:

Author:  elguaxo [ Sat Jun 16, 2007 1:53 pm ]
Post subject: 

Code:
 -ssim_file filename            : outputs the ssim stats into a file

Author:  Lux Delux [ Sat Jun 16, 2007 1:58 pm ]
Post subject: 

Ah so that's in encraw, damn gotta update the presets then :sham:

Author:  Lux Delux [ Sat Jun 16, 2007 3:53 pm ]
Post subject: 

I'll probably be dropping V3, running tests currently.

For SSIM, I just add the line to the end of the 2nd pass settings?

Author:  elguaxo [ Sat Jun 16, 2007 3:57 pm ]
Post subject: 

Yep. SSIM is not necessary for the presets, but I'm sure you like to have another little stat about your encodes! :nose:

Author:  Lux Delux [ Sat Jun 16, 2007 4:00 pm ]
Post subject: 

Yes I like more stats :furlick:

Interesting revelation.

J2CD 1/1/0 gives better compression than V3 at 1/1/1 :beh: I hope heini_mr at 1/1/0 will be the same as V3 at 1/1/1 so that would be it's replacement :teeth:

Author:  Lux Delux [ Sat Jun 16, 2007 4:54 pm ]
Post subject: 

Made a few changes so wait a bit for the updated package.

V6 matrix replaced with MPEG, makes more sense concerning compression etc. under J2CD.


V3HR replaced with heini_mr-sap but this one has -3 b-vops to have the same compression level. Hope that will make sense in the encodes :fishy:

I guess V3 stays for now. Need to see how it works on different sources! :fishy:

Author:  Lux Delux [ Sat Jun 16, 2007 5:08 pm ]
Post subject: 

New shit is up. Let's make some encodes with it :cum:

Author:  elguaxo [ Sat Jun 16, 2007 5:24 pm ]
Post subject: 

Ok. I have the VOBs of V for Vendetta in my HD. Already done by many people, that's why it is nice test! Let's see...

Edit: has anyone the version by UnSeen? Could you post the AVInaptic stats?

Author:  Lux Delux [ Sat Jun 16, 2007 6:25 pm ]
Post subject: 

Shit, I had it but deleted it I think cause of space issues :teeth:

Maybe it's on one of my externals, gonna look :cum:

Author:  Lux Delux [ Sat Jun 16, 2007 6:31 pm ]
Post subject: 

Yup I don't have it :teeth:

Author:  elguaxo [ Sat Jun 16, 2007 6:33 pm ]
Post subject: 

Anyone else?

Comptest ready. I aimed for a 1/3DVD
Code:
H:\dvd\new5_v>avs2qxvid_25f.bat v.avs

"Checking Source...."
Streaming frame 0 (of 1, 0.00%)
1

start "3% Compressibility Test - Single Pass" /b /wait /belownormal "H:\dvd\new5
_v\bin\xvid_encraw_20070203.exe"  -zones 0,w,1,KO -threads 1 -progress 100 -max_
key_interval 240 -nopacked -quality 4 -vhqmode 0 -max_bframes 2 -bquant_ratio 16
2 -bquant_offset 0 -qtype 1 -qmatrix "H:\dvd\new5_v\matrix\Didees-SixOfNine.cqm"
 -nochromame -turbo -single -cq 3 -stats "H:\dvd\new5_v\tmp\v.ct.stats" -type 2
-i "H:\dvd\new5_v\v.ct.avs" -avi "H:\dvd\new5_v\v.ct.avi"

xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003


xvid [info]: outputting statistics to H:\dvd\new5_v\tmp\v.ct.stats
Trying to retrieve width and height from input header
xvid [info]: Avisynth detected
xvid [info]: Input colorspace is YV12
xvid [info]: Input is 720 x 304, 23.976fps (24000/1001), starting from frame 0
xvid [info]: Number of frames to encode: 5740
xvid [info]: xvidcore build version: xvid-1.2.0-dev
xvid [info]: Bitstream version: 1.2.-127
xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 3DNOW 3DNOWEXT TSC
xvid [info]: Detected cpus = 1, threads requested = 1, threads in use = 1
   5701 frames( 99%) encoded,   2.05 fps, Average Bitrate =  1291kbps
Tot: enctime(ms) =2797635.00,               length(bytes) =    38839826
Avg: enctime(ms) = 487.22, fps =   2.05, length(bytes) =        6764, psnr y = 4
5.97, psnr u = 49.65, psnr v = 51.02
I frames:    320 frames, size =  23664/    7572790, quants =  3 / 3.00 /  3
P frames:   2193 frames, size =  10079/   22104488, quants =  3 / 3.00 /  3
B frames:   3226 frames, size =   2840/    9162541, quants =  4 / 4.00 /  4
N frames:      1 frames, size =      7/          7

Source FPS              = 24000/1001
No. of frames for CT    = 3280
Size of selected frames = 17860910
Target Bitrate          = 1118kbps
Compressibility Test    = 107
Selected Level          = 90


Should I pick LUX-99?

Author:  Lux Delux [ Sat Jun 16, 2007 6:35 pm ]
Post subject: 

elguaxo wrote:
Should I pick LUX-99?


:eek: off course not, that's if you get undersizing with 6of9, which is very unlikely :D

Try LUX-85, that's heini_mr but with b-vop sensitivity -3, I still haven't tested it yet :teeth:

Author:  elguaxo [ Sat Jun 16, 2007 6:37 pm ]
Post subject: 

Heh, forgot to read your comptest-lux table. Ok, starting with LUX-85.

Author:  Lux Delux [ Sat Jun 16, 2007 6:43 pm ]
Post subject: 

Looking forward to the results, I'm not sure about 85, since it's the same as 80 but with sensitivity -3 to lower compression. Supposedly it should be better qualty wise but I'm not too sure.

Oh well, we'll see :!

Author:  elguaxo [ Sat Jun 16, 2007 7:05 pm ]
Post subject: 

What about using the same LUX-80 settings and the eqm_v3hr matrix?
Gonna do 2 encodes, one with your current LUX-85 and anoteher with LUX-80 but using eqm_v3hr.

The b-vop sensitivity is pumping more quality in the B-Frames area, but perhaps a higher bitrate matrix would improve the overall quality.

We'll see :!

Author:  Lux Delux [ Sat Jun 16, 2007 7:07 pm ]
Post subject: 

If v3hr turns out better I'll put it back in, it was there in the first place.

Gonna be interesting. I'll have Bloodrayne soon done with heini and -3 :spank:

Author:  Lux Delux [ Sun Jun 17, 2007 12:16 pm ]
Post subject: 

still encoding? ^^

It seems Bloodrayne turned out smashing. Checking it out now. It had -3 sensitivity with heini.. :beh:

Author:  elguaxo [ Sun Jun 17, 2007 12:26 pm ]
Post subject: 

It's a ~3 fps encode and the 1st pass is done. I think it is going to undersize.

Author:  Lux Delux [ Sun Jun 17, 2007 12:29 pm ]
Post subject: 

:eek: Interesting :eek:

You're also running one with V3HR?

Hmmm I guess maybe V3 matrix then :beh:

Author:  elguaxo [ Sun Jun 17, 2007 12:31 pm ]
Post subject: 

nopo, I'm running your original LUX-85, the test with the modified version comes next.

Author:  Lux Delux [ Sun Jun 17, 2007 1:00 pm ]
Post subject: 

Kewl, can't wait for the results :ele:

I personally can't decide if I should release Bloodrayne. It looks great at 100% size but FS I don't like it :grrr: Im such an anus :beh:

Author:  elguaxo [ Sun Jun 17, 2007 1:14 pm ]
Post subject: 

:spank:

I never wanted to watch Bloodrayne in the first place. Now with all your stories I am feeling this is the most awaited encode of the year! :poop:

Author:  El Mariachi [ Sun Jun 17, 2007 1:30 pm ]
Post subject: 

elguaxo wrote:
:spank:

I never wanted to watch Bloodrayne in the first place. Now with all your stories I am feeling this is the most awaited encode of the year! :poop:


actually, it's quite entertaining. Lots of blood and some boobs. Storywise, actingwise, costumewise, Uwewise it's a piece of crap

Author:  elguaxo [ Sun Jun 17, 2007 1:35 pm ]
Post subject: 

:bearsy:

Page 1 of 20 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
https://www.phpbb.com/