Log in

View Full Version : Settings for Divx Plus HD in x264 questions


supadupaninja
16th June 2011, 21:37
Hi!
I'm on it to set up an x264 preset to encode my videos Divx Plus HD conform in .mkv.

At the moment i'm so far:

program --level 4 --tune film --crf 18 --keyint 100 --b-adapt 2 --qpmin 10 --qpmax 51 --vbv-bufsize 25000 --vbv-maxrate 20000 --merange 24 --me umh --subme 10 --trellis 2 --no-fast-pskip --aud --nal-hrd vbr --colorprim bt709 --transfer bt709 --colormatrix bt709 --output "output" "input"

crf18 is fine for me regarding the quality and filesize.

I read as much as i find here, but still have a few questions.

Is there anything else i coul'd do better to increase the quality in the settings and still be conform?
And are "--aud --nal-hrd vbr" necessary due to be conform to divx+ hd?
Does divx+hd allow "--ref 4"?

Thank you for your help
supadupaninja

Dark Shikari
16th June 2011, 21:47
--b-adapt 2 --qpmin 10 --qpmax 51 --merange 24 --me umh --subme 10 --trellis 2 --no-fast-pskipThese settings are pointless. Use a --preset if you want to change the speed/compression tradeoff.

sneaker_ger
16th June 2011, 21:54
--aud and --nal-hrd are not necessary.
--ref 4 should be allowed even for 1080p as it complies with level 4.0.
--qpmin 0 is currently the standard setting of x264, don't change it to 10 if you don't have a reason to do so. (Or basically: don't touch any setting you don't know about and just stick to the presets + tunings + DivX HD requirements)

http://labs.divx.com/node/16598

/edit:
slow sneaker is slow

supadupaninja
17th June 2011, 07:03
Thank you for your help guys..

@sneaker_ger: --qpmin 10 is the setting megui gave me i don't touch it, but i will change it to default. thx
@Dark Shikari: I woul'd of course use preset as you say, thats what they are for. Maybe i'm wrong but when i choose let me say --veryslow then there are a few setting witch are don't divx+hd conform i think, like --bref, --ref ? Have you a suggestion for me how to do it better? I know there is no ultimate perfect setting. But what woul'd be the best option if encodingtime is not important and i still wan't to be conform for divx+hd hw with best quality x264 can give me?

I hope you can help me clarify my questions.

BR
supadupaninja

kypec
17th June 2011, 12:13
Have you a suggestion for me how to do it better?

Yes, sneaker_ger gave you perfect suggestion already - have you read the article at DivX labs? Everything is explained there, all you need to do isx264 --preset <your preference> --tune <your preference> --vbv-maxrate 20000 --vbv-bufsize 25000 --level 40 --bframes 3 --keyint <4*FPS> -o <output file> <input file>

supadupaninja
17th June 2011, 12:50
OK thank you. I will go further with:

program --level 4 --preset veryslow --tune film --crf 18 --keyint 100 --bframes 3 --vbv-bufsize 25000 --vbv-maxrate 20000 --output "output" "input"

THX for you patience an help.


br
ninja