[FFmpeg-trac] #9751(swscale:new): Incorrect YUV->RGB24 conversion results on IBM Power9
FFmpeg
trac at avcodec.org
Wed Apr 27 17:41:50 EEST 2022
#9751: Incorrect YUV->RGB24 conversion results on IBM Power9
-------------------------------------+-----------------------------------
Reporter: gciaparrone | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: swscale
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-----------------------------------
Comment (by gciaparrone):
Replying to [comment:5 Balling]:
> Try
>
> ffmpeg -s:v 64x64 -pix_fmt yuv420p -i black.yuv -frames:v 1 -vf
scale=in_range=tv:out_range=pc:flags=accurate_rnd,format=rgb24
reblack1.png
This command keeps outputting the wrong image. But I have noticed
something weird: the image is not entirely made of [16, 16, 16] pixels.
There is a thin band on the bottom of the image with the correct pixels
([0, 0, 0]). This is also true of the original reblack.png image I posted.
So something weird is going on.
>
> Also try
>
> ffmpeg -s:v 64x64 -pix_fmt yuv420p -i black.yuv -frames:v 1 -vf zscale
reblack1.png
>
> For last command zimg should be compiled in.
>
> Limited range RGB was prohibited in ffmpeg back in 2021, PNG does not
support it anyway.
I will try to recompile ffmpeg as soon as I can and test this out.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9751#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list