[FEATURE]: Aliases for ffmpeg tone curves and primaries
See original GitHub issueIssue Description
Ffmpeg provides a large set of primaries and transfer functions (OETFs) for use as metadata in video formats, with the -color_trc
and -color_primaries
parameters (or equivalent AVFrame
members).
Allowed values for these options are stated to come out of ISO/IEC 23001-8:2013 in libavutil/pixfmt.h, and reference existing standards and recommendations that are for the most part already implemented in colour-science.
Is there any interest in adding aliases to let people reference these more easily?
Issue Analytics
- State:
- Created 9 months ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
FFmpeg Filters Documentation
Set color for each channel curve which is going to be displayed in video stream. This is list of color names separated by...
Read more >Ubuntu Manpage: ffmpeg-filters
flac -filter_complex acrossfade=d=10:o=0:c1=exp:c2=exp output.flac acrusher Reduce audio bit resolution. This filter is bit crusher with enhanced functionality.
Read more >doc/filters.texi - chromium/third_party/ffmpeg - Git at Google
Set curve for cross fade transition for second stream. ... Another feature of this filter is the logarithmic mode. ... hi-fi's tone-controls.
Read more >Command Line Options — x265 documentation - Read the Docs
Encode Order The frame order in which the encoder encodes. · Type Slice type of the frame. · POC Picture Order Count -...
Read more >Inserting/replacing HDR metadata without re-encoding [Archive]
Any help? ffmpeg -i "IN" -c copy -color_trc arib-std-b67 "OUT" .... colour_primaries : BT.2020 transfer_characteristics : HLG
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Well, technically we do support linear transfer (so Y of YCbCr is indeed Y of XYZ) just not in ffplay directly (strange open bug), alas, but mpv that uses ffmpeg almost in full, does support it using ffmpeg primitives.
Check with mpv vs ffplay: https://forum.videohelp.com/attachments/43324-1507526652/dpx-sequence.zip
We do (at least with zscale) support constant luminance, where Y of YCbCr is indeed Y of XYZ since you first apply the matrix on to get linear Y of YCbCr and only then apply nonlinearity to get Y’.
If they are all the same we could alias them as an option, we sometimes do that, e.g. https://github.com/colour-science/colour/blob/develop/colour/characterisation/datasets/colour_checkers/sds.py#L3188, then we would describe that they are all the same in the doctrings.
colour.models.rgb.video
works for me!