-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Allow mastering-display and content-light passthrough from ffmpeg #2554
Comments
The ffmpeg wrapper currently maps |
the rav1e-params ffmpeg option is mapped to the rav1e_config_parse() C API function, and none of those you listed are among the supported keys. You can see what's supported in the rav1e.h doxy (Unfortunately, there's apparently no way to print the supported keys at runtime). |
@barrbrain Thanks for the quick info, @jamrial Good to know! Is there already a feature request to have |
For colorspace you need to use bt2020nc or bt2020c. See https://ffmpeg.org/ffmpeg-codecs.html And i don't know if there's such a feature request. |
@lu-zero Are |
/**
* Set the content light level information for HDR10 streams.
*
* Return a negative value on error or 0.
*/
int rav1e_config_set_content_light(RaConfig *cfg,
uint16_t max_content_light_level,
uint16_t max_frame_average_light_level);
/**
* Set the mastering display information for HDR10 streams.
*
* primaries and white_point arguments are RaChromaticityPoint, containing 0.16 fixed point
* values.
* max_luminance is a 24.8 fixed point value.
* min_luminance is a 18.14 fixed point value.
*
* Returns a negative value on error or 0.
*/
int rav1e_config_set_mastering_display(RaConfig *cfg,
const RaChromaticityPoint primaries[3],
RaChromaticityPoint white_point,
uint32_t max_luminance,
uint32_t min_luminance); the C API has it since 7d679b4 |
Tried a custom build of FFmpeg with latest 0.5-beta and still seems to not be incorporated. At least doesn't take the arguments the same way the command line does. (Not sure what else than being in the capi is needed) Working command line:
Non-working ffmpeg equivalent.
Error:
|
I assume the ffmpeg wrapper is not calling those functions. Can you please check what is the wrapper doing? |
Oh whoops, looking back at @jamrial comment, would need to be defined https://github.com/xiph/rav1e/blob/master/src/capi.rs#L609 and is not there yet. |
Patch very welcome, I'll land it before cutting 0.5 :) |
To have better parity with the standalone encoder, it would be nice to be able to provide
mastering-display
andcontent-light
through FFmpeg'srav1e-params
(similar to howx265-params
works)Suggested method:
Original Issue:
Hello, I am trying to convert a 10-bit BT2020 with librav1e (compiled 2020-09-21, commit edfc865) via FFmpeg.
It works as expected using
rav1e.exe
itself:But using librav1e it says they are unrecognized options:
I wasn't sure if this wasn't supported yet, or I was passing the params incorrectly somehow.
Thanks!
The text was updated successfully, but these errors were encountered: