21.02.2021, 21:19
(21.02.2021, 10:03)Selur Wrote:Quote:But if change settings, for example 264>Frame changing Min/Max GOP, when applying medium preset it changes the values.Yes, medium preset changes all to the x264 defaults.
Quote:Can you try this sequence to set the following?
· Start Hybrid, apply default Configuration: X264 Hybrid Default.
· X264>Base> Set encoding mode to CRF 1-pass, Hardware (mark-up box) – BluRay/AVCHD
· Apply medium preset (set 'x264->Base->Restriction Settings->Preset' to 'medium' , press 'x264->Base->Restriction Settings->Preset->Apply Preset')
· Go to X264>Frames, Setting GOP Size Min = 1, Max = 50.
· Save configuration under new name.
· Save a Global Profile (Config->Profiles->Global profile->Save global profile)
Okay, I did:I then looked at the x264 Configuration and it shows:
- Start Hybrid
- Set Hybrids default x264 settings (Apply 'x264->Configuration->x264 Hybrid defaul')
- Set "x264->Base->General Settings->Encoding mode" to "constant rate factor (1-pass)"
- Enable '264->Base->Restriction Settings->Hardware'
- Select '264->Base->Restriction Settings->Hardware->Blu-ray/AVCHD'
- Enable 'x264->Base->Restriction Settings->Preset' to 'medium'
- Apply the preset ('x264->Base->Restriction Settings->Preset->Apply Preset')
- Command line now is:
x264 --crf 18.00 --profile high --level 4.1 --bluray-compat --keyint 50 --b-pyramid strict --sync-lookahead 1 --slices 4 --qpmax 51 --mvrange 511 --weightp 1 --vbv-maxrate 40000 --vbv-bufsize 30000 --nal-hrd cbr --sar 1:1 --qpfile GENERATED_QP_FILE --non-deterministic --range tv --colormatrix bt470bg --demuxer raw --input-res 48x48 --input-csp i420 --input-range tv --input-depth 8 --fps 25/1 --output-depth 8 --output OUTPUTFILE -
- Set 'x264->Frames->General Frame Settings->GOP size min/max' to '1/50' (only min needed to be changed'
- Command line now is:
x264 --crf 18.00 --profile high --level 4.1 --bluray-compat --keyint 50 --min-keyint 1 --b-pyramid strict --sync-lookahead 1 --slices 4 --qpmax 51 --mvrange 511 --weightp 1 --vbv-maxrate 40000 --vbv-bufsize 30000 --nal-hrd cbr --sar 1:1 --qpfile GENERATED_QP_FILE --non-deterministic --range tv --colormatrix bt470bg --demuxer raw --input-res 48x48 --input-csp i420 --input-range tv --input-depth 8 --fps 25/1 --output-depth 8 --output OUTPUTFILE -
- Save a Global Profile (Config->Profiles->Global profile->Save global profile)
- Closed Hybrid
- Started Hybrid
- Apply the Global Profile (Config->Profiles->Global profile->Aplly global profile)
x264 --crf 18.00 --profile high --level 4.1 --bluray-compat --keyint 50 --min-keyint 1 --b-pyramid strict --sync-lookahead 1 --rc-lookahead 25 --slices 4 --qpmax 51 --mvrange 511 --weightp 1 --vbv-maxrate 40000 --vbv-bufsize 30000 --nal-hrd cbr --sar 1:1 --qpfile GENERATED_QP_FILE --non-deterministic --range tv --colormatrix bt470bg --demuxer raw --input-res 48x48 --input-csp i420 --input-range tv --input-depth 8 --fps 25/1 --output-depth 8 --output OUTPUTFILE -
I also tried;I then looked at the x264 Configuration and it shows:
- Start Hybrid
- Reset and restart Hybrid ('Config->Reset->Defaults->All->Reset selected')
- Set Hybrids default x264 settings (Apply 'x264->Configuration->x264 Hybrid defaul')
- Set "x264->Base->General Settings->Encoding mode" to "constant rate factor (1-pass)"
- Enable '264->Base->Restriction Settings->Hardware'
- Select '264->Base->Restriction Settings->Hardware->Blu-ray/AVCHD'
- Enable 'x264->Base->Restriction Settings->Preset' to 'medium'
- Apply the preset ('x264->Base->Restriction Settings->Preset->Apply Preset')
- Command line now is:
x264 --crf 18.00 --profile high --level 4.1 --bluray-compat --keyint 50 --min-keyint 1 --b-pyramid strict --sync-lookahead 1 --slices 4 --qpmax 51 --mvrange 511 --weightp 1 --vbv-maxrate 40000 --vbv-bufsize 30000 --nal-hrd cbr --sar 1:1 --qpfile GENERATED_QP_FILE --non-deterministic --range tv --colormatrix bt470bg --demuxer raw --input-res 48x48 --input-csp i420 --input-range tv --input-depth 8 --fps 25/1 --output-depth 8 --output OUTPUTFILE -
- Save a Global Profile (Config->Profiles->Global profile->Save global profile)
- Closed Hybrid
- Started Hybrid
- Apply the Global Profile (Config->Profiles->Global profile->Aplly global profile)
x264 --crf 18.00 --profile high --level 4.1 --bluray-compat --keyint 50 --min-keyint 1 --b-pyramid strict --sync-lookahead 1 --rc-lookahead 25 --slices 4 --qpmax 51 --mvrange 511 --weightp 1 --vbv-maxrate 40000 --vbv-bufsize 30000 --nal-hrd cbr --sar 1:1 --qpfile GENERATED_QP_FILE --non-deterministic --range tv --colormatrix bt470bg --demuxer raw --input-res 48x48 --input-csp i420 --input-range tv --input-depth 8 --fps 25/1 --output-depth 8 --output OUTPUTFILE -
Quote:They are different:Okay, that should not be. And is not the case here.
X264>Frames, Max GOP = 25 (instead of 50), no way to change it 50 the values do not go above 25.
Looking at code to when Hybrid changes the max allowed gop size:
So the restriction to '1-sec gop' should only be set by Hybrid if the bit rate is > 15000 kbit/s.int bitrate = model->intValue(QString("bitrate"));
int gopMax = model->intValue(QString("gopMaximum")); //gopMaximum is the keyint value
int max;
if (hardware == QString("Blu-ray/AVCHD")) {
if (bitrate <= 15000) {
max = (2 * gopMax < 1) ? 1 : 2 * int(model->doubleValue(QString("videoFramerate")) + 0.5); // 2 sec GOP
} else {
max = (gopMax < 1) ? 1 : int(model->doubleValue(QString("videoFramerate")) + 0.5); // 1 sec GOP
}
} else if (hardware == QString("AVC-Intra")) {
max = 1;
} else {
max = 10000;
}
this->doSet(model, QString("gopMaximum"), MAXIMUM, QVariant(max)); //gopMaximum is the keyint value
Quote:And X264>Base>Restriction Settings->Preset-None, not Medium.Like I wrote before the preset setting in the drop-down is not saved since it it's not a strict restriction but something that get's applied. So this is as intended.
Quote:Also you mentioned as an option to enable 'Config->Profiles->Auto save', this way Hybrid will remember all the settings. It looks like does not work either. After restarting Hybrid the Preset is None, settings show accordingly: x264 --preset fast -. If I press/apply Medium, settings change, but X264>Frames Min/Max GOP values change to defaults. If I change them, the settings window shows : x264 --preset fast -. But Preset stays at Medium. It all jumping back and forth.The preset selection is NOT saved, since it caused to much confusion with users, that setting only does something when 'Apply preset' is used.
No clue what you are doing, I again need details, to try to reproduce what you are doing.
My guess is that you changed some setting that is influencing Hybrids settings. May be it helps to reset the Hybrid defaults ('Config->Reset->Defaults->All->Reset selected').
Sadly unless I can reproduce what your are doing I can't fix a potential bug.
Cu Selur
Ps.: Please do not reply inside quotes, it really is annoying having to read through quotes to see whether you added something to them.