Log in

View Full Version : x264 Mediainfo to MeGUI x264 Settings


shagratt71
1st January 2012, 12:05
Hi Guys, I have a bunch of x 264 settings taken from MediaInfo, could someone tell me how I can insert these into MeGUI's x264 settings without having to adjust each setting manually?:

Encoding settings : cabac=1 / ref=16 / deblock=1:-2:-2 / analyse=0x3:0x133 / me=tesa / subme=10 / psy=1 / psy_rd=1.1:0.2 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-3 / threads=6 / nr=0 / decimate=0 / mbaff=0 / bframes=8 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=1386 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.16

:thanks:

smok3
1st January 2012, 12:34
looks similar to --preset veryslow with --tune grain perhaps,
try x264 --fullhelp to see whats in there.

szabi
1st January 2012, 12:43
Hi

If you set this in megui:
Encoding mode: automated 2pass
Bitrate: your decision
Preset: very slow
Tuning: Grain
AVC profile:High
AVC Level: 4.1
Device: Default
This will be the result:
cabac=1 / ref=16 / deblock=1:-2:-2 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.25 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=6,6 / fast_pskip=1 / chroma_qp_offset=-4 / threads=12 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=10 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=11000 / ratetol=1.0 / qcomp=0.80 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.10 / aq=1:0.50

cabac=1 / ref=16 / deblock=1:-2:-2 / analyse=0x3:0x133 / me=tesa / subme=10 / psy=1 / psy_rd=1.1:0.2 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-3 / threads=6 / nr=0 / decimate=0 / mbaff=0 / bframes=8 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=1386 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.16

I do not know which revision of x264 and megui were used, mine x264:2106, megui:2070.
Because if you use older the setting can be different from new one.
I do not know what materials you wish to encode, but i recommend to use preset.
Also you set motion estimation to tesa, which makes the encoding really slow.
Setting me_range=32 is ok.
For DXVA compatibility changement of bframes an ref can be nessessary, but it depends of the resolution.
For the rest, preset usage is the best you can do.

Happy new year. :D

bye
szabi

meshaun
14th January 2012, 04:38
cabac=1 / ref=8 / deblock=1:-3:-3 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=0.50:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=6 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=2774 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00

What's the profile used to get these settings?

the_weirdo
14th January 2012, 06:43
What's the profile used to get these settings?

Your posted settings are heavily customized. For a beginner, you should use appreciate --tune and --preset. If you want to customize these settings yourself, at least you should learn the effect of each setting, instead of blindly copy them from "someone"'s encode.

meshaun
14th January 2012, 09:42
Looks like --slower in x264.
yeah right, I have to do it and learn on my own

the_weirdo
14th January 2012, 10:58
Looks like --slower in x264.
Here is command line to produce the almost same settings as your posted settings:
x264 --ref 8 --bframes 6 --deblock -3:-3 --psy-rd 0.5:0.0 --me umh --subme 9 --merange 32 --b-adapt 2 --partitions all --no-fast-pskip --no-dct-decimate --bitrate xxx --pass x input -o output

DjDiabolik
22nd August 2015, 13:18
Very interesting thread...... i have a similar question and i thinks i can use this thread instead to open a newest:
Yestarday using MeGUI i have encoded a mpeg2 to x264 and used the "scratch" setting to obtain this:
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=2509 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=17500 / vbv_bufsize=17500 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00

The only setting i have changed inside the encoder it's the select level to HIGH@L3.1 and i have used the 2auto pass whit a bitrate calculated using the bitrate calculator. The output file it's maintain a good quality and it's played whitout problems on my standalone player (a raspberry 2 whit oscm).....

I'm curiosity about this setting because for example i have looked a KYR file and some value it's little different:
cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=13 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=24.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

At this point... i can make some change on my default encoder setting for example for obtain a little speed encoding maintaint the same good quality ?

tebasuna51
23rd August 2015, 13:31
Each movie need different parameters to optimize output then copy parameters it's not always recommended.

BTW, talking only about the diferences there are some parameters better, and slow, in KYR encode:
ref=5 / me=umh / subme=8 / b_adapt=2 / direct=3 / rc_lookahead=50

but there are a different strategy in encode with:
rc=crf / crf=24.0
thats need only 1 pass and need less time than your 2 pass method.

That is the only change than I can recommend you to speed up your encode (with very basic parameters than can't be lowered without lose quality).
Of course you must select the desired crf value than match the required quality. For me crf=24 is very low quality (I use 18 most the times).
Take in mind than fix the average bitrate don't guarantee the same quality for all your encodes, each movie need a different average bitrate.