PDA

View Full Version : x264 Help


Prim3
30th June 2007, 11:39
Hi! I had some questions and was wondering if anyone had the answers :).

I'm encoding an ova (part of it) and in VDUB, my .avs looks good but when I end up encoding it, it doesn't look as good as in VDUB. Is there something wrong with the settings I'm using?

I've tried it with XviD, DivX and they both have given me horrible quality. I recently encoded it with x264 and it gave me better quality than the other two.

Here is my .AVS:



LoadPlugin("C:\Documents and Settings\user\Desktop\YATTA\plugins\decomb.dll")
LoadPlugin("C:\Documents and Settings\user\Desktop\YATTA\plugins\mpeg2dec3.dll")
LoadPlugin("C:\Documents and Settings\user\Desktop\YATTA\plugins\fieldhint.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DustV5.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\LoadPluginEx.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Convolution3D.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\FFT3DFilter.dll")
LoadPLugin("C:\Documents and Settings\user\Desktop\YATTA\plugins\Decomb.dll")


function Preset0(clip c) {
#Name: POT SAMPLE TEST WITH YATTA #1
c


return last
}

Mpeg2Dec3_Mpeg2Source("C:\Documents and Settings\user\Desktop\pot.d2v")
SetPlanarLegacyAlignment(true)

FieldHint(ovr="C:\Documents and Settings\userDesktop\pot.d2v.fh.txt")
AssumeTFF()
Telecide(guide=1,post=2,vthresh=30)




PresetClip0=Preset0()

PresetClip0.Trim(0,7258)

FreezeFrame(1083,1083,1080)
FreezeFrame(1084,1084,1081)
FreezeFrame(1085,1085,1082)
FreezeFrame(3239,3239,3238)
FreezeFrame(3407,3407,3406)
FreezeFrame(3409,3409,3408)
FreezeFrame(3431,3431,3430)
FreezeFrame(3486,3486,3485)
FreezeFrame(3489,3489,3490)
FreezeFrame(3493,3493,3494)
FreezeFrame(3528,3528,3527)
FreezeFrame(3531,3531,3532)
FreezeFrame(3533,3533,3532)
FreezeFrame(3536,3536,3537)
FreezeFrame(3938,3938,3939)
FreezeFrame(3963,3963,3966)
FreezeFrame(3984,3984,3985)
FreezeFrame(4044,4044,4045)
FreezeFrame(4053,4053,4054)
FreezeFrame(4058,4058,4059)
FreezeFrame(4078,4078,4079)
FreezeFrame(4083,4083,4084)
FreezeFrame(4104,4104,4105)
FreezeFrame(4192,4192,4191)
FreezeFrame(4219,4219,4220)
FreezeFrame(4311,4311,4310)
FreezeFrame(4446,4446,4447)
FreezeFrame(4659,4659,4660)
FreezeFrame(4664,4664,4665)
FreezeFrame(4674,4674,4675)
FreezeFrame(4679,4679,4680)
FreezeFrame(4689,4689,4690)
FreezeFrame(4694,4694,4695)
FreezeFrame(4699,4699,4700)
FreezeFrame(4709,4709,4710)
FreezeFrame(4734,4734,4735)
FreezeFrame(4744,4744,4746)
FreezeFrame(4749,4749,4750)
FreezeFrame(4764,4764,4765)
FreezeFrame(4769,4769,4770)
FreezeFrame(4789,4789,4790)
FreezeFrame(4799,4799,4800)
FreezeFrame(4809,4809,4810)
FreezeFrame(4814,4814,4815)
FreezeFrame(4819,4819,4820)
FreezeFrame(4824,4824,4825)
FreezeFrame(5144,5144,5145)
FreezeFrame(5159,5159,5160)
FreezeFrame(5448,5448,5451)
FreezeFrame(5449,5449,5450)
FreezeFrame(5646,5646,5644)
FreezeFrame(5885,5885,5886)
FreezeFrame(5890,5890,5889)
FreezeFrame(6126,6126,6125)
FreezeFrame(6367,6367,6368)
FreezeFrame(7141,7141,7142)


ConvertToYuY2()
pixiedust(limit=5)
Convolution3D (0, 32, 128, 32, 128, 10, 0)
TemporalSoften(3, 6, 8)
fft3dfilter(sigma=1.5, bt=5, bw=32, bh=32, ow=16, oh=16, sharpen=0.4)



Decimate(cycle=5,quality=3,ovr="C:\Documents and Settings\user\Desktop\pot.d2v.dec.txt")



Lanczos4Resize(640,480)

ConvertToYV12()



My final output with x264: http://rapidshare.com/files/40196307/final.mkv
My source (the vob segment): http://rapidshare.com/files/38627912/VTS_01_1zz.demuxed.rar

And the x264 settings I'm using are from Sharktooths profiles for x264 labelled "AE-MaxQuality."

I had another question too if you wouldn't mind answering.

What is a good codec to use right now? XviD, DivX or x264? (And this isn't working for me so I asked: http://www.doom9.org/index.html?/codecs-203-1.htm)

Any help is greatly appreciated.
Thanks

PuzZLeR
30th June 2007, 12:16
As far as good codecs to use right now:

Short term: DivX, Xvid - wider compatibility and great support today, faster encoding. Still great quality.

Long term: x264 -even better quality but also an implementation of H.264, which is the standard of the future, better hardware support and chipsets suited for it coming up, and better future-proofed video

Take you pick...

Dark Shikari
30th June 2007, 14:57
x264 needs drastically fewer bits to keep the same quality as xvid/divx, especially on anime.

The advantage is that you can either go with a much smaller file or get a large file with very good quality.

To give you an idea of what many people do with H.264 and why: many fansub groups have released 720p fansubs with smaller file sizes than the regular standard-definition subs by using x264. Other groups have stuck to the large file sizes but moved to x264 for increased quality.

Its also a lot easier to avoid blocking with H.264 in anime, in my experience.

foxyshadis
30th June 2007, 19:17
Are you basically just choosing the codec from the list and hoping for the best without configuring anything? Because that's pretty likely to give you wretched quality no matter what you choose. There are quite a few guides for setting them up, or you can use a gui like megui with pre-built profiles to control the codec settings.

Prim3
1st July 2007, 00:08
Ahh thanks PuzZLeR and Dark Shikari. I'll keep that in mind.

I followed two guides for XviD and DivX and still I'm getting bad quality. I'm configuring the settings but still bad quality. What guides for you recommend for XviD and DivX that give you good quality?

Thanks and btw, is my AVS okay?

PuzZLeR
1st July 2007, 01:20
Noticed the first two posts here, including mine, were edited by a mod because of violation to rule 12.

Nobody was hasty or insultive. And about what's best, we all know that x264 has better quality per file size than Xvid/DivX. This is not subjective, but fact.

Ok then, maybe I should have stated it as opinion about what's best for the future. That was opinion then. If that is the case then I apologize.

Thanks.
Geordie.

Dark Shikari
1st July 2007, 21:22
Ahh thanks PuzZLeR and Dark Shikari. I'll keep that in mind.

I followed two guides for XviD and DivX and still I'm getting bad quality. I'm configuring the settings but still bad quality. What guides for you recommend for XviD and DivX that give you good quality?

Thanks and btw, is my AVS okay?
For Xvid, try Constant Quantizer 2 or 3 maybe, along with max motion search settings and "Cartoon Mode" enabled, using Advanced Simple @ L5 profile.

Prim3
2nd July 2007, 09:19
I'll try that.

I apologize as well.

Furthermore, if anyone has any comments that they'd like to make towards my post, please do.