huixing post time 2023-5-6 15:06

打开视频时,画面会被分成四块,同时会有绿色和紫色阴影

使用android SDK打开视频时,画面会被分成四块,同时会有绿色和紫色阴影,请问是哪里配置有问题么?

Arthur post time 2023-5-6 16:04

用我们mcp或者源码打开有没有问题

huixing post time 2023-5-6 16:11

Arthur post on2023-5-6 16:04
用我们mcp或者源码打开有没有问题

用mcp打开没问题,而且我有一部手机安装这个app后打开也是正常的。

Arthur post time 2023-5-6 16:15

huixing post on2023-5-6 16:11
用mcp打开没问题,而且我有一部手机安装这个app后打开也是正常的。

BVCU.getSDK().SetDecodeColorFormat   看下你那里有没有这个接口

huixing post time 2023-5-6 16:16

Arthur post on2023-5-6 16:15
BVCU.getSDK().SetDecodeColorFormat   看下你那里有没有这个接口

有这个接口的

Arthur post time 2023-5-6 16:18

// 视频预览颜色格式(0:420p,1:420sp)---------------------------------------------------------
int colorFormat = 0;// 以420p为先
ArrayList<Integer> colorFormatList = CameraUtils.getSupportColorFormatList();
if (!colorFormatList.isEmpty() && !colorFormatList.contains(MediaCodecInfo.CodecCapabilities.COLOR_FormatYUV420Planar)) {
   colorFormat = 1;
}

// 初始化的时候按照这个逻辑来用SetDecodeColorFormat调用下。
page: [1]
full version: 打开视频时,画面会被分成四块,同时会有绿色和紫色阴影