run screenrecord success, but color is wrong

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

run screenrecord success, but color is wrong

512 次查看
apay999
Contributor I

Hi, 

I tried to use screenrecord command, it run success, but the colors are wrong while playing it.

Is this about the color-format?, 

I dump the supported color format of codec OMX.Freescale.std.video_encoder.avc.hw-based are

   COLOR_FormatYUV420Flexible
   COLOR_FormatYUV420SemiPlanar
   COLOR_FormatYUV420Planar
   COLOR_FormatSurface

And the color-format of frameworks/av/cmds/screenrecord/screenrecord.cpp is OMX_COLOR_FormatAndroidOpaque,

Should I find a color converter to convert OMX_COLOR_FormatAndroidOpaque to COLOR_FormatSurface?

Or make codec OMX.Freescale.std.video_encoder.avc.hw-based to support OMX_COLOR_FormatAndroidOpaque?

My platform info:

HW:  iMX8QM MEK

OS:   android_p9.0.0_1.0.0-ga

Kernel:  4.14.78

Best Regards,

Scott 

螢幕快照 2020-08-04 18.27.21.png

0 项奖励
1 回复

457 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Scott

kernel  4.14.78 is old kernel not more supported, suggest to

try latest Anrdoid releases with 5.4 kernels

Android OS for i.MX Applications Processors | NXP 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励