Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
2nd July 2009, 04:56 | #1 | Link |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
x264 presets, profiles, and tuning system
Presets will be used as follows:
--preset name and apply before all other options. In other words, they override the x264 defaults, which, with the default changes, will be: --subme 7 --bframes 3 --weightb --8x8dct --ref 3 --mixed-refs --trellis 1 --crf 23 --threads auto As such, all options that you set will act on top of the preset you choose, regardless of the option order. ultrafast: --ref 1 --scenecut 0 --nf --no-cabac --bframes 0 --partitions none --no-8x8dct --me dia --subme 0 --aq-mode 0 veryfast: --partitions i8x8,i4x4 --subme 1 --me dia --ref 1 --trellis 0 fast: --mixed-refs 0 --ref 2 --subme 5 medium: <defaults> slow: --me umh --subme 8 --ref 5 --b-adapt 2 --direct auto slower: --me umh --subme 9 --ref 8 --b-adapt 2 --direct auto --partitions all --trellis 2 placebo: --me tesa --subme 9 --merange 24 --ref 16 --b-adapt 2 --direct auto --partitions all --no-fast-pskip --trellis 2 --bframes 16 For all encodes, regardless of preset or not, using --pass 1 will automatically trigger "turbo" settings, which are as follows and override all commandline options: --trellis 0 --no-8x8dct --partitions none --me dia --ref 1 --subme MIN(2, previous subme) This can be disabled using --slow-firstpass. For all encodes, if you don't set your own --ref option and instead use the default or a preset, x264 will automatically lower --ref if the --level you set conflicts with it. If you set --ref explicitly, it will not override what you set. Profiles will be used as follows: --profile name The options will be baseline, main, and high, which do what you think they do. Note that these override all other options no matter what, with two exceptions.. Because interlaced and lossless coding are options with very explicit meanings, the encoder will terminate with an error if you attempt to use them with an incompatible profile. Tunings will be used as follows: --tune name The options will be "film" and "animation", and will tweak AQ strength, psy-rd/trellis strength, deblock, refs, and so forth: film: --deblock -1:-1 --psy-rd 1.0:0.15 animation: --ref (previousref==1?1:MIN(previousref*2,16)) --deblock 1:1 --psy-rd 0.4:0 --aq-strength 0.6 --bframes 5 All of this is subject to change before final release, and suggestions are welcome. If you don't use any of the new presets, the only changes for you will be the new defaults, and the automatic fast first pass.
__________________
Follow x264 development progress | akupenguin quotes | x264 git status ffmpeg and x264-related consulting/coding contracts | Doom10 Last edited by Dark Shikari; 2nd July 2009 at 06:51. |
2nd July 2009, 06:29 | #4 | Link | ||
Registered User
Join Date: Feb 2008
Posts: 733
|
Quote:
Quote:
I will not be able to tweek psy-rd and vaq/autovaq on my own ? These new option seem k for gui but not for cmd users. Last edited by juGGaKNot; 2nd July 2009 at 06:36. |
||
2nd July 2009, 09:14 | #8 | Link |
Registered User
Join Date: Feb 2008
Posts: 733
|
"x264.exe --profile placebo --tune film" replaces any following cvar with "--me tesa --subme 9 --merange 24 --ref 16 --b-adapt 2 --direct auto --partitions all --no-fast-pskip --trellis 2 --bframes 16 --deblock -1:-1 --psy-rd 1.0:0.15" i guess.
Last edited by juGGaKNot; 2nd July 2009 at 09:21. |
2nd July 2009, 09:27 | #9 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Quote:
profile main will disable 8x8dct and CQMs no matter what. profile high will do nothing as that's default. All will error out on lossless. |
|
2nd July 2009, 10:39 | #10 | Link | |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
Quote:
I hope for the latter...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
|
2nd July 2009, 10:52 | #12 | Link |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
2nd July 2009, 14:11 | #14 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Why does '--presets' will only change the defaults?
Will '--tune' also only change the defaults? Wouldn't it be better to replace all the settings which are defined through the preset with the preset? Cu Selur Ps.: Sorry, but personally I don't like the idea to have 'presets&tune' in the cl interface, but I think that is mainly because the cl interface for me is something that's far more connected to the library itself, for me they belong into a gui. |
2nd July 2009, 14:17 | #15 | Link |
Registered User
Join Date: Nov 2003
Posts: 1,281
|
I agree. However, I tend to see a lot of people thinking that megui is x264.
And so these same people complain to the x264 devs when megui does something stupid in a profile. I see this as the x264 devs trying to minimize time wasted.
__________________
http://www.7-zip.org/ |
2nd July 2009, 14:20 | #16 | Link | |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
Quote:
If the preset would overwrite your custom options, you couldn't make use of presets anymore, as soon as you need to adjust one single parameter! Also it would be very confusing to have parameters in the command-line that are valid, but will be ignored by x264...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
|
2nd July 2009, 14:39 | #18 | Link | |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Quote:
Also when the options just override the defaults it's always a pain to look up the presets to know which of my options would not be changed. I would prefer them to override not just the defaults and throw an error if some one added a parameter which tries to change them. This would also notify one if one presets changes in a manner that it covers a new variable. Cu Selur |
|
2nd July 2009, 14:44 | #19 | Link | |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
Quote:
With the method that is planned, all command-line parameters that a specified explicitly will work as expected. Only parameters that are left out will default to the selected preset/profile. Why should it be possible to specify valid parameters that will be ignored? Why should it be forbidden to select a preset and adjust single parameters ???
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 2nd July 2009 at 14:53. |
|
2nd July 2009, 14:54 | #20 | Link | |||
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Did you miss:
"I would prefer them to override not just the defaults and throw an error if some one added a parameter which tries to change them. This would also notify one if one presets changes in a manner that it covers a new variable." or did you ignore it on purpose? Quote:
Quote:
Quote:
- I think it is a bad idea to have 'changing' defaults. - I think such syntactic sugar should not be included in the cl interface Cu Selur |
|||
Tags |
development, interface, x264 |
Thread Tools | Search this Thread |
Display Modes | |
|
|