Log in

View Full Version : MeGUI - how to use fgo x264 ??


chandragupta
20th July 2008, 20:24
I was trying to encode using dark shikari's fgo x264 build, but could only use the cli interface of x264.

Is there a way to use it using MeGUI, i.e. editing the x264 command in MeGUI to include --fgo ??

Sharktooth
21st July 2008, 01:41
yes, but it's not recommended since the x264 builf that comes with megui includes other patches to ensure the compatibility with Blu-Rays (when using the blu-tay profiles).
also the next megui x264 update (ahould be tomorrow) will include Psy-RDO 0.5 that does help a lot encoding film grain too.

chandragupta
21st July 2008, 13:47
well i was using it for DVD -> avisynth -> fft3d + gradfun -> x264 fgo

anyways, since Psy-RDO is incuded in next update....this will not be a problem then...

Thanks for ur time Sharktooth ! :thanks:

Sharktooth
21st July 2008, 13:48
the update is online.
just let it get it.

elguaxo
21st July 2008, 13:56
Psy RDO is great and it also improves grainy sources, but FGO still has a little advantage if the source has really lots of grain. The latest FGO build I know of is 886 by techhouse: http://x264.tk/

Replace your \megui\tools\x264\x264.exe with this FGO build and that's all. FGO is on by default and you can tweak it using for example --fgo 10 under Profile -> Custom Command Line. But remember Psy RDO works on any kind of sources and FGO is only optimized for grain.

chandragupta
21st July 2008, 14:01
Psy-RDO is on by default.. but is there a way to adjust the strength using --psy-rd ???

i don't see it in megui (there was no GUI update)... how do i change the strength then???

i know it's to be kept at it's default value..but just curious...Thanks!



ok...elguaxo answered my question!

many thanks for help!

Sharktooth
21st July 2008, 14:06
using the custom command line option (in the advanced tab of the profile config window)
regarding FGO, it is not as good for general use as Psy-RDO.
the optimal solution would be having both in the same build and choose (exclusively) one or the other in function of the source. but we havent a build with both so.... and i dont even know it if can be done....
So, to me, the best compromise seems to be Psy-RDO.

chandragupta
21st July 2008, 14:28
using the custom command line option (in the advanced tab of the profile config window)
regarding FGO, it is not as good for general use as Psy-RDO.
the optimal solution would be having both in the same build and choose (exclusively) one or the other in function of the source. but we havent a build with both so.... and i dont even know it if can be done....
So, to me, the best compromise seems to be Psy-RDO.


i have a lot of banding problem using fft3dfilter...
before i had no option for it....as even when i used gradfun to remove the banding, it would reappear after encoding to x264.

so what do you suppose wold be better FGO or Psy-RDO for keeping the debanding by gradfun??(a lot of flim grain is already removed by fft3dfilter)

Sharktooth
21st July 2008, 14:37
FGO is not a debanding filter... and neither Psy-RDO.
Banding happens due to some factors, both Psy-RDO and FGO help mitigating banding if there is enuough noise/grain/detail/etc to hide it (a dithering effect).
i suggest Psy-RDO though since you REMOVED the film grain with fft3d and in that case FGO will kill the encoder efficiency.
the idea is FGO was made for ultra grainy sources (like 300). if there's no or almost no grain FGO should not be used.

Dark Shikari
21st July 2008, 14:45
I'm pretty sure the default MeGUI build has psy RDO anyways...

Sharktooth
21st July 2008, 14:46
yes. now version 0.5.

chandragupta
21st July 2008, 15:03
FGO is not a debdning filter... and nither Psy-RDO.
Banding happens due to some factors, both Psy-RDO and FGO help mitigating banding if there is enuough noise/grain/detail/etc to hide it (a dithering effect).
i suggest Psy-RDO though since you REMOVED the film grain with fft3d and in that case FGO will kill the encoder efficiency.
the idea is FGO was made for ultra grainy sources (like 300). if there's no or almost no grain FGO should not be used.

Oh... i guess you misunderstood me Sharktooth...

what i meant was this....
i have the foll script
MPEG2Source("C:\Documents and Settings\Administrator\Desktop\aam.d2v", info=3, cpu=4, idct=5)
LoadCplugin("C:\Program Files\AviSynth 2.5\plugins\yadif.dll")
import("C:\Program Files\AviSynth 2.5\plugins\mrestore.avs")

trim(2000,4000)

colormatrix(hints=true)

Yadif(mode=1)
mrestore()

crop(0,58,-12,-68)
spline36resize(688,352)

FFT3DFilter(sigma=1.2, plane=4, bt=3, ow=16, oh=16,interlaced=false,sharpen=0.5,ncpu=2)

gradfun2db()
now i gave this avs as input to x264...
so which of the two i.e. FGO or Psy-RDO will better keep intact the debanding already done by gradfun2db??

Sharktooth
21st July 2008, 15:07
Psy-RDO.

chandragupta
21st July 2008, 16:47
i encoded using the above script....here r the results...
--------------------------------------------------------------
Original (from AVS):
http://i34.tinypic.com/oaccow.jpg

Psy-RDO (x264 build 915):
http://i33.tinypic.com/350jrb9.png

FGO (x264.826.fgo):
http://i38.tinypic.com/21l0p7b.png

x264 settings are (MeGUI):
--pass 2 --bitrate 1730 --stats ".stats" --ref 3 --mixed-refs --no-fast-pskip --bframes 16 --b-pyramid --b-rdo --bime --weightb --direct auto --filter -2,-1 --subme 6 --trellis 1 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --threads auto --thread-input --progress --no-psnr --no-ssim --output "output" "input"
--fgo 10 for the FGO one.
--------------------------------------------------------------

banding is produced in both Psy-RDO and FGO.
fgo is a little better.

what must i do to ge minimum banding in the output ???

Sharktooth
21st July 2008, 17:13
Add more grain/noise. Also consider lowering the TV/Monitor contrast.