[FFmpeg-trac] #9132(ffmpeg:open): Wrong pixel format/output when converting video to yuv444p*

FFmpeg trac at avcodec.org
Thu Sep 2 07:26:38 EEST 2021


#9132: Wrong pixel format/output when converting video to yuv444p*
------------------------------------+----------------------------------
             Reporter:  viley       |                    Owner:  (none)
                 Type:  defect      |                   Status:  open
             Priority:  important   |                Component:  ffmpeg
              Version:  git-master  |               Resolution:
             Keywords:  regression  |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+----------------------------------
Comment (by Balling):

 Okay, interesting moment here is that RGB jpegs produce chroma 1 (JPEG's
 center) with x265 yuv420p which I think cannot be true.

 It looks like mpv does properly support hevc chroma 1 type and type 0 as I
 checked.

 RGB matrix from YCbCr is indeed working now. Unspecified of course still
 needs to be fixed from RGB to YCBCR. swscale defaults to BT.601 so may be
 there would have been more point to write BT.601 instead of unspecified.
 Unfortunately, since YCbCr matrix is not one (there is 601, 709, smpte
 240M and 2020 matrices and that is not talking about Chromaticity-derived
 non-constant luminance system, that is type 12, where you get matrix from
 looking into what primaries are set too).

 BTW, we need to start testing XYZ too. How does one produce xyz with
 zscale?
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9132#comment:25>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list