23.02.2021, 04:29
Now it works, but need to follow some sequence when applying settings.
A file that I want to process with Hybrid is 720x576 25i lossless HuffYUV (VHS PAL capture with VirtualDub). I need to deinterlace it, encode with X264 as 50fps with max GOP = 50 at 22500kbps.
After starting Hybrid, in order to change/set x264->Frames-> General Frame Settings-> Max GOP size value to 50, an actual video file has to be loaded and the Deinterlacer QTGMC and Bob are enabled. It has to be done before trying to change Max GOP size.
If video file is not loaded, even the Deinterlacer QTGMC and Bob are enabled, file that goes in to H264 for encoding will be 50fps, but looks like Hybrid does not know about it before the file is loaded/open. Command Line shows that Min GOP is restricted to 25 (keyint 25).
And only after loading a video file, it becomes possible to change Max GOP value to 50.
An initial working sequence has to be as follows:
· Starting Hybrid
· Loading/Opening video file
· 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')
· Apply Filtering->Deinterlace>Preset>enable Bob
Now is OK to change Bitrate:
· 'x264->Base->General Settings>Bitrate set to 22500kbps.
(If Bitrate is set to 22500kbs before Bob is enabled, the Max GOPP value will be restricted to 25, in the Command Line keyint value changed from 50 to 25. )
Command Line:
x264 --preset veryfast --pass 1 --bitrate 22500 --profile high --level 4.1 --bluray-compat --keyint 50 --b-pyramid strict --sync-lookahead 12 --rc-lookahead 25 --slices 4 --mvrange 511 --nal-hrd cbr --sar 1:1 --qpfile GENERATED_QP_FILE --non-deterministic --range tv --stats "PATH TO THE .stats FILE" --demuxer raw --input-res 1280x720 --input-csp i420 --input-range tv --input-depth 8 --fps 50/1 --output-depth 8 --output NUL -
x264 --pass 2 --bitrate 22500 --profile high --level 4.1 --bluray-compat --keyint 50 --b-pyramid strict --sync-lookahead 12 --rc-lookahead 25 --slices 4 --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 --stats "PATH TO THE .stats FILE" --demuxer raw --input-res 1280x720 --input-csp i420 --input-range tv --input-depth 8 --fps 50/1 --output-depth 8 --output OUTPUTFILE –
· Save a Global Profile (Config->Profiles->Global profile->Save global profile)
· Close Hybrid
· Start Hybrid
· Apply the Global Profile (Config->Profiles->Global profile->Aplly global profile)
Since video file was not open yet, the Max GOP value will be restricted to 25.
Global Profile did not set this parameter (the video file has to be opened in order to set Max GOP to 50).
· Loading/Opening video file
Now the Max GOP can be set either manually:
· x264->Frames-> General Frame Settings-> GOP size, set Max value to 50.
Or by applying saved configuration, if there is saved configuration:
· x264->Configuration> Configuration Select>Configuration Apply
Command Line (same as before closing Hybrid):
x264 --preset veryfast --pass 1 --bitrate 22500 --profile high --level 4.1 --bluray-compat --keyint 50 --b-pyramid strict --sync-lookahead 12 --rc-lookahead 25 --slices 4 --mvrange 511 --nal-hrd cbr --sar 1:1 --qpfile GENERATED_QP_FILE --non-deterministic --range tv --stats "PATH TO THE .stats FILE" --demuxer raw --input-res 1280x720 --input-csp i420 --input-range tv --input-depth 8 --fps 50/1 --output-depth 8 --output NUL -
x264 --pass 2 --bitrate 22500 --profile high --level 4.1 --bluray-compat --keyint 50 --b-pyramid strict --sync-lookahead 12 --rc-lookahead 25 --slices 4 --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 --stats "PATH TO THE .stats FILE" --demuxer raw --input-res 1280x720 --input-csp i420 --input-range tv --input-depth 8 --fps 50/1 --output-depth 8 --output OUTPUTFILE -
The Command Line is same as before without even applying Medium.
But we know that Medium cannot be saved under x264->Configuration or Global Profile.
Let’s try to apply Medium.
· Enable 'x264->Base->Restriction Settings->Preset' to 'medium'
No changes, Command Line shows the same.
Looks like Medium was saved somehow under Configuration.
The problem was that the Global Profile (after closing/starting Hybrid) has to be applied with no video loaded, the Max GOP values will not be allowed and applied properly.
This effect and the problem with the command line (that you fixed on 2021.02.21) combined together resulted in bizarre Hybrid behavior that I had trying to save configurations.
It is all good now, just need to follow the sequence when applying settings.
A file that I want to process with Hybrid is 720x576 25i lossless HuffYUV (VHS PAL capture with VirtualDub). I need to deinterlace it, encode with X264 as 50fps with max GOP = 50 at 22500kbps.
After starting Hybrid, in order to change/set x264->Frames-> General Frame Settings-> Max GOP size value to 50, an actual video file has to be loaded and the Deinterlacer QTGMC and Bob are enabled. It has to be done before trying to change Max GOP size.
If video file is not loaded, even the Deinterlacer QTGMC and Bob are enabled, file that goes in to H264 for encoding will be 50fps, but looks like Hybrid does not know about it before the file is loaded/open. Command Line shows that Min GOP is restricted to 25 (keyint 25).
And only after loading a video file, it becomes possible to change Max GOP value to 50.
An initial working sequence has to be as follows:
· Starting Hybrid
· Loading/Opening video file
· 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')
· Apply Filtering->Deinterlace>Preset>enable Bob
Now is OK to change Bitrate:
· 'x264->Base->General Settings>Bitrate set to 22500kbps.
(If Bitrate is set to 22500kbs before Bob is enabled, the Max GOPP value will be restricted to 25, in the Command Line keyint value changed from 50 to 25. )
Command Line:
x264 --preset veryfast --pass 1 --bitrate 22500 --profile high --level 4.1 --bluray-compat --keyint 50 --b-pyramid strict --sync-lookahead 12 --rc-lookahead 25 --slices 4 --mvrange 511 --nal-hrd cbr --sar 1:1 --qpfile GENERATED_QP_FILE --non-deterministic --range tv --stats "PATH TO THE .stats FILE" --demuxer raw --input-res 1280x720 --input-csp i420 --input-range tv --input-depth 8 --fps 50/1 --output-depth 8 --output NUL -
x264 --pass 2 --bitrate 22500 --profile high --level 4.1 --bluray-compat --keyint 50 --b-pyramid strict --sync-lookahead 12 --rc-lookahead 25 --slices 4 --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 --stats "PATH TO THE .stats FILE" --demuxer raw --input-res 1280x720 --input-csp i420 --input-range tv --input-depth 8 --fps 50/1 --output-depth 8 --output OUTPUTFILE –
· Save a Global Profile (Config->Profiles->Global profile->Save global profile)
· Close Hybrid
· Start Hybrid
· Apply the Global Profile (Config->Profiles->Global profile->Aplly global profile)
Since video file was not open yet, the Max GOP value will be restricted to 25.
Global Profile did not set this parameter (the video file has to be opened in order to set Max GOP to 50).
· Loading/Opening video file
Now the Max GOP can be set either manually:
· x264->Frames-> General Frame Settings-> GOP size, set Max value to 50.
Or by applying saved configuration, if there is saved configuration:
· x264->Configuration> Configuration Select>Configuration Apply
Command Line (same as before closing Hybrid):
x264 --preset veryfast --pass 1 --bitrate 22500 --profile high --level 4.1 --bluray-compat --keyint 50 --b-pyramid strict --sync-lookahead 12 --rc-lookahead 25 --slices 4 --mvrange 511 --nal-hrd cbr --sar 1:1 --qpfile GENERATED_QP_FILE --non-deterministic --range tv --stats "PATH TO THE .stats FILE" --demuxer raw --input-res 1280x720 --input-csp i420 --input-range tv --input-depth 8 --fps 50/1 --output-depth 8 --output NUL -
x264 --pass 2 --bitrate 22500 --profile high --level 4.1 --bluray-compat --keyint 50 --b-pyramid strict --sync-lookahead 12 --rc-lookahead 25 --slices 4 --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 --stats "PATH TO THE .stats FILE" --demuxer raw --input-res 1280x720 --input-csp i420 --input-range tv --input-depth 8 --fps 50/1 --output-depth 8 --output OUTPUTFILE -
The Command Line is same as before without even applying Medium.
But we know that Medium cannot be saved under x264->Configuration or Global Profile.
Let’s try to apply Medium.
· Enable 'x264->Base->Restriction Settings->Preset' to 'medium'
No changes, Command Line shows the same.
Looks like Medium was saved somehow under Configuration.
The problem was that the Global Profile (after closing/starting Hybrid) has to be applied with no video loaded, the Max GOP values will not be allowed and applied properly.
This effect and the problem with the command line (that you fixed on 2021.02.21) combined together resulted in bizarre Hybrid behavior that I had trying to save configurations.
It is all good now, just need to follow the sequence when applying settings.