Closed adfansong closed 9 months ago
Can you reproduce this in a fresh project using just the AVPro Movie Capture Capture from Screen demo scene? Are you getting the error in both Vulkan and OpenGLES? Have you tried capturing a lower resolution? Are you able to capture an imagine sequence? The information in the log suggests that it supports 1,920x1,088 - Have you tried this resolution?
1,920x1,088
Thanks for your reply.
1.I built Demo00-ScreenCapture as the lauch scene in a fresh project. 2.Vulkan and OpenGLES have same error. 3.I tried to set 640x480 in SelectRecordingResolution, the same. 4.Yes, I can get an imagine sequence. 5.1,920x1,088 the same error.
The plugin doesn't appear to have updated to version 5.2.0 correctly as it's reporting version 5.1.5 when you start the capture as shown in your log here:
💬️ (PluginInterface.cpp:70) AVPMC_CreateRecorderVideo - 5.1.5-full
The plugin doesn't appear to have updated to version 5.2.0 correctly as it's reporting version 5.1.5 when you start the capture as shown in your log here:
💬️ (PluginInterface.cpp:70) AVPMC_CreateRecorderVideo - 5.1.5-full
Thanks for your reply.
The log avove is saved using 5.1.7.
But the error log is the same using 5.2.0, so I didn't save the log again.
I tried a mediacodec demo to capture videos, it's ok: https://github.com/weekend-y/mediacodec_demo/tree/master/MediaCodec_EncodeH264
Then I tried to set params above in the logs set by AVPRO, I found 'profile = 8' causing exception: mediaFormat.setInteger(MediaFormat.KEY_PROFILE, 8); // this cause MediaCodec$CodecException: Error 0xffffffc3
So is there a way for me to set profile in AVPRO to have a test?
I tried to print profileLevel: ` // 获取所有编解码器的信息 MediaCodecList codecList = new MediaCodecList(MediaCodecList.ALL_CODECS); MediaCodecInfo[] codecInfos = codecList.getCodecInfos();
for (MediaCodecInfo codecInfo : codecInfos) {
if (!codecInfo.isEncoder()) {
// 如果你只对编码器感兴趣,跳过解码器
continue;
}
String[] types = codecInfo.getSupportedTypes();
for (String type : types) {
if (type.equalsIgnoreCase(MediaFormat.MIMETYPE_VIDEO_AVC)) {
// 获取编解码器的能力信息
MediaCodecInfo.CodecCapabilities capabilities = codecInfo.getCapabilitiesForType(type);
// 遍历所有支持的profile和level
for (MediaCodecInfo.CodecProfileLevel profileLevel : capabilities.profileLevels) {
int profile = profileLevel.profile;
int level = profileLevel.level;
// 根据profile和level的值,你可以进行相应的操作或显示
// 这里只是简单地打印出来
Log.d("MediaCodecInfo", "Profile: " + profile + ", Level: " + level);
}
}
}
}`
The log: MediaCodecInfo pid-13357 D Profile: 1, Level: 2048
Are you able to find out what GPU the device has?
Thanks for investigating. This is the first Android device we've come across that doesn't support the AVC High profile. We'll add support for detecting the available profiles and choosing appropriately.
Thanks for investigating. This is the first Android device we've come across that doesn't support the AVC High profile. We'll add support for detecting the available profiles and choosing appropriately.
OK, thanks for your support. Could you tell me when the next version will be released?
AVPro Movie Capture 5.2.1 has been released. Please let us know if it has not fixed your issue.
AVPro Movie Capture 5.2.1 has been released. Please let us know if it has not fixed your issue.
Thanks for your support.
I've updated it and there's no that error after running.
Describe the issue After StartCapture called, there're errors on my android TV.
Your Setup (please complete the following information):
Unity version: 2021.3.26 AVPro Video version (number and edition (trial/core/ultra/enterprise)): ultra 5.2.0 Operating system version: Android OS 9 / API-28 (PPR1.180610.011/20230102) Device model: DBZ1Pro Video specs (resolution, frame-rate, codec, file size): see logs To Reproduce Just StartCapture on TV.