Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
******************************* Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.
With the recent x264 profile et. al. changes, should I be getting 32 ref frames in the Unparse when using veryslow and animation? Only the preset and tune show in the log when the encode starts, so I assume x264 itself is cool, just the Unparse being odd?
This is kind of a bug in x264_param_apply_tune(). I wonder if x264 would accept a patch to fix it?
libx264 calls the static function x264_validate_parameters() first thing when we call x264_encoder_open(). x264_validate_parameters() appears to do all the work to sanitize things. Aside from reducing some fractions (i_fps and i_timebase), I don't see any other param values being changed in x264_encoder_open(). So we could conceivably open and close the encoder to force the validation.
It would be better if we could convince x264 to expose x264_validate_parameters(). Unfortunately, in it's current form, it does a combination of validation and initialization of x264_t which is all kinds of f*cked up. My proposal would be to create a static internal function that takes both x264_t and x264_param_t as parameters and performs the validation/initialization. But, if x264_t is NULL, it only does validation.Then make a new function that is public that calls this function with a NULL x264_t. This would be a fairly unintrusive change to current code.
JohnAStebbins wrote:It would be better if we could convince x264 to expose x264_validate_parameters(). Unfortunately, in it's current form, it does a combination of validation and initialization of x264_t which is all kinds of f*cked up.
Which is why we can't fix this by a simple open/close.