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
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!
-----------------------------------------------------------------------------------------------------------------------