Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3056 Discussions

New JPEG encoder brightens/reduces contrast of YUV420 img

celli4
New Contributor I
308 Views

Hello,

I am trying the new JPEG encoder in the 2013 release, and have noticed something odd.

When I encode YUV420 material, the JPEG image seems to have lower contrast and be brighter than the source material.

This seems like a colorspace issue, but I'm not sure if there is an option to change the behavior. [I don't want to re-color my raw source]

I am attaching a Big Buck Bunny (BBB) YUV420 raw, and the resulting JPEG output from sample_encoder.

It is tempting to point the fingers at my viewers, but the original BBB video my raw YV12 seem consistent, the raw was viewed using the '7yuv' tool.

I used the following command to go from raw to .jpg  :  sample_encode.exe jpeg -i bbbf.1080.yuv -o j.jpg -w 1920 -h 1080

Any help is appreciated.

I cannot seem to attach .yuv files, so here is Dropbox links:

https://www.dropbox.com/s/n6u9gqp3uj9fwxw/bbbf.1080.jpg

https://www.dropbox.com/s/1w7c7flt3hs5n7a/bbbf.1080.yuv

If desired, the original video is here: http://www.bigbuckbunny.org/index.php/download/

Frame #1000, about 39 seconds in was used.

Cameron

0 Kudos
2 Replies
Petter_L_Intel
Employee
308 Views

Hi Cameron.

Thanks for sharing your findings.

I can confirm that I do see the same increased brightness in the encoded JPEG image. We will explore if there is anything we can do to improve the color accuracy. I'll report back to this thread when I have more info to share.

Regards,
Petter 

0 Kudos
Petter_L_Intel
Employee
308 Views

Hi again,

Further investigation was done on this subject. Our conclusion is that there are no issues with the MJPEG encoder as far as color correctness. We compared the results from encode by comparing output from reference decoder with original input.

I suspect that the reason for brightness difference is due interpretation by the YUV or JPEG display tools.

Regards,
Petter 

0 Kudos
Reply