run screenrecord success, but color is wrong

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

run screenrecord success, but color is wrong

976件の閲覧回数
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

ラベル(2)
0 件の賞賛
返信
1 返信

921件の閲覧回数
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 件の賞賛
返信