[FFmpeg-trac] #9772(avfilter:new): colorspace filter fails on trc=linear
FFmpeg
trac at avcodec.org
Sun May 8 21:33:40 EEST 2022
#9772: colorspace filter fails on trc=linear
-------------------------------------+-------------------------------------
Reporter: Llyw | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: avfilter
Version: unspecified | Resolution:
Keywords: colorspace | Blocked By:
conversion linear gamma |
resampling |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Llyw):
Could you please elaborate? From what I understand, the `scale` filter
won't convert to linear gamma before computing the resampled pixel value
and that's why I am explicitly trying to convert to a linear transfer
curve before the `scale` filter. And reapply a gamma function afterwards.
(From what I understood, people are generally suggesting `zscale` because
it is better at handling color space information, but I have given my
reasons for not wanting to use it.) Are you suggesting that the `scale`
filter can indeed convert to linear gamma internally? If so, what
parameters do I have to specify for it to do so? Are `in_color_matrix` and
`out_color_matrix` sufficient? And would that require git master or is the
5.0 release branch sufficient?
Note that the original issue that I reported, namely `colorspace` failing
when trying to use `trc=linear`, still remains, but if I don't need the
`colorspace` filters for the task at hand that would at least provide a
solution for me, if not fixing the bug itself.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9772#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list