[FFmpeg-trac] #8937(undetermined:new): Incorrect color when decoding h264 file
FFmpeg
trac at avcodec.org
Sat Oct 17 07:13:52 EEST 2020
#8937: Incorrect color when decoding h264 file
-------------------------------------+-------------------------------------
Reporter: iss | Owner:
Type: defect | Status: new
Priority: normal | Component:
| undetermined
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by iss):
Replying to [comment:1 cehoyos]:
> It appears to me that `ffplay` shows wrong colours but `ffmpeg` creates
a correct output: Why do you think the `expected_result.png` file is
correct / how did you produce it?
I think that expected result is correct, because it shows correct in most
players I tested (web browser, VLC, ffplay, even windows thumbnail looks
like `expected_result.png`)
Unfortunately I can't tell how the file was created, it was provided as
sample for bug report - see https://developer.blender.org/T81307
Perhaps not quite useful information is, that I have converted `pFrame`
buffer data to RGB (I did this manually for 2 pixels) and the darker color
was different to either of those results. There is good chance I did not
do this correctly though, I am not used to other pixel formats than our
RGBA.
This was my sample for darker pixel:
{{{
pFrame->data[0][100]
pFrame->data[1][100]
pFrame->data[2][100]
}}}
And lighter pixel:
{{{
pFrame->data[0][0]
pFrame->data[1][0]
pFrame->data[2][0]
}}}
I used this util to convert values
https://www.mikekohn.net/file_formats/yuv_rgb_converter.php
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8937#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list