question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE]: Aliases for ffmpeg tone curves and primaries

See original GitHub issue

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:closed
  • Created a year ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ValZapodcommented, Jun 10, 2022

And the luma vs luminance changes

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’.

1reaction
KelSolaarcommented, May 16, 2022

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found