Community
cancel
Showing results for 
Search instead for 
Did you mean: 
duncanchou
New Contributor I
444 Views

VAAPI MSDK decode H264 to RGB output incorrect

Jump to solution

Hello Sir ,

We decode the h264 frame to RGB, and NV12, some outputs are incorrect, anything setting we missed.

The attached are log file.  

Thanks

Michael Wu

1. H264 to RGB (SW / VAAPI) ==> Color Incorrect

    ./sample_decode h264 -sw -vaapi -i  ./camera_124_640x_480.h264 -rgb4 -o  test_vaapi_hw.rgb

Original Video streamer 

duncanchou_0-1600417971980.png

duncanchou_1-1600418053065.png

 
 

2. H264 to RGB (HW / VAAPI) ==> Frame Incorrect

    ./sample_decode h264 -hw -vaapi -i  ./camera_124_640x_480.h264 -rgb4 -o  test_vaapi_hw.rgb

1.png

 

  

 

 

 

     

 

 

 

 

   

 

 

 

        

 

0 Kudos
1 Solution
Ramashankar
New Contributor III
392 Views

>> After download the last version MSDK, build and install, this issue is resolved.

good to know this

View solution in original post

3 Replies
Ramashankar
New Contributor III
418 Views

Hi,

>> 1. H264 to RGB (SW / VAAPI) ==> Color Incorrect

It is because MSDK output of MFX_FOURCC_RGB4 color format is actually BGRA format, not the RGBA format, whereas this YUV file viewer tool supports RGB32 format which is RGBA format. That's why R & B components are interchanged while rendering.

>> 2. H264 to RGB (HW / VAAPI) ==> Frame Incorrect

Logically this output should have been exactly same as output of SW mode. Are you getting any decode error in this path? Is this incorrect output for every decode output or only first output frame?  

Thanks,

duncanchou
New Contributor I
403 Views

Hello Ramashankar,

#1.   It is because MSDK output of MFX_FOURCC_RGB4 color format is actually BGRA format,

===>Thank you for your information, this information is good for us.

 

#2.  Logically this output should have been exactly same as output f SW mode. Are you getting any decode error in this path? Is this incorrect output for every decode output or only first output frame? 

====> After download the last version MSDK, build and install, this issue is resolved.

Thank you for your support.

Michael Wu

Ramashankar
New Contributor III
393 Views

>> After download the last version MSDK, build and install, this issue is resolved.

good to know this

View solution in original post

Reply