阅读:4480回复:1

S912-7.1 H265编码

楼主#
更多 发布于:2022-08-23 15:19
S912规格书显示,可以支持H265编码,客户在开发这块功能时发现报错,无法实现,他们只发了一小段代码和一些报错,咱也不会开发这个功能,实在不知道是什么问题,不知道有没有S912-7.1可用的h265编码的demo可以参考?

Used in app source

MediaCodec.BufferInfo mBufferInfo360 = new MediaCodec.BufferInfo();
MediaFormat format = MediaFormat.createVideoFormat("video/hevc", 640, 360);
format.setInteger(MediaFormat.KEY_COLOR_FORMAT, MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface);
format.setInteger(MediaFormat.KEY_BIT_RATE, 500 * 1024);
format.setInteger(MediaFormat.KEY_FRAME_RATE, 30);
format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 1);
MediaCodec mMediaEncoder360 = MediaCodec.createEncoderByType("video/hevc");
mMediaEncoder360.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);
Surface mEncodingSurface360 = mMediaEncoder360.createInputSurface();
mMediaEncoder360.start();


报错信息

2022-08-10 15:52:04.989 4227-4256/? E/OmxVideoEncoder: setParameter: StoreMetadataInBuffersParams.nPortIndex not input port!
2022-08-10 15:52:04.989 4227-4256/? E/OMXNodeInstance: setParameter(10830047:amlogic.encoder.hevc, OMX.google.android.index.storeMetaDataInBuffers(0x7f000002): Output:1 en=0 type=3) ERROR: BadPortIndex(0x8000101b)
2022-08-10 15:52:04.989 8146-8363/com.skt.tlivecaster.ipconverter E/ACodec: [OMX.amlogic.video.encoder.hevc] storeMetaDataInBuffers (output) failed w/ err -2147483648
2022-08-10 15:52:04.990 4227-4752/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.describeColorFormat"
2022-08-10 15:52:04.990 4227-5312/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.storeMetaDataInBuffers"
2022-08-10 15:52:04.990 4227-5312/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.storeANWBufferInMetadata"
2022-08-10 15:52:04.990 4227-5312/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.prepareForAdaptivePlayback"
2022-08-10 15:52:04.990 4227-5312/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.configureVideoTunnelMode"
2022-08-10 15:52:04.990 4227-5312/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.useAndroidNativeBuffer2"
2022-08-10 15:52:04.990 4227-5312/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.useAndroidNativeBuffer"
2022-08-10 15:52:04.991 4227-5312/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.enableAndroidNativeBuffers"
2022-08-10 15:52:04.991 4227-5312/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.allocateNativeHandle"
2022-08-10 15:52:04.991 4227-5312/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.getAndroidNativeBufferUsage"
2022-08-10 15:52:04.992 4227-5310/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.describeColorFormat"
2022-08-10 15:52:04.992 4227-4227/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.describeColorFormat"
2022-08-10 15:52:04.993 4227-5309/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.describeColorFormat"
2022-08-10 15:52:04.994 4227-5310/? E/OMXNodeInstance: getParameter(10830047:amlogic.encoder.hevc, ??(0x7f000007)) ERROR: UnsupportedSetting(0x80001019)
2022-08-10 15:52:04.997 4227-4256/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.describeColorAspects"
2022-08-10 15:52:04.997 8146-8363/com.skt.tlivecaster.ipconverter I/ACodec: [OMX.amlogic.video.encoder.hevc] cannot encode color aspects. Ignoring.
2022-08-10 15:52:04.998 4227-5309/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.describeHDRStaticInfo"
2022-08-10 15:52:04.998 4227-5310/? D/OmxComponent: setConfig 1092
2022-08-10 15:52:04.998 4227-5310/? E/OMXNodeInstance: setConfig(10830047:amlogic.encoder.hevc, ??(0x7f000009)) ERROR: UnsupportedIndex(0x8000101a)
2022-08-10 15:52:04.998 8146-8363/com.skt.tlivecaster.ipconverter W/ACodec: [OMX.amlogic.video.encoder.hevc] setting HDRStaticInfo failed even though codec advertises support
2022-08-10 15:52:04.998 8146-8363/com.skt.tlivecaster.ipconverter I/ACodec: [OMX.amlogic.video.encoder.hevc] cannot encode HDR static metadata. Ignoring.
2022-08-10 15:52:04.998 4227-5311/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.enableAndroidNativeBuffers"
2022-08-10 15:52:04.998 4227-5311/? E/OMXNodeInstance: setParameter(10830047:amlogic.encoder.hevc, OMX.google.android.index.enableAndroidNativeBuffers(0x7f000000): Output:1 en=0) ERROR: UnsupportedIndex(0x8000101a)
2022-08-10 15:52:04.999 4227-4227/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.describeColorFormat"
2022-08-10 15:52:05.000 4227-4256/? E/OMXNodeInstance: getParameter(10830047:amlogic.encoder.hevc, ??(0x7f000007)) ERROR: UnsupportedSetting(0x80001019)
2022-08-10 15:52:05.001 4227-5312/? E/OMXNodeInstance: getConfig(10830047:amlogic.encoder.hevc, ConfigAndroidIntraRefresh(0x6f60000a)) ERROR: UnsupportedIndex(0x8000101a)
2022-08-10 15:52:05.003 4227-5309/? E/OMXNodeInstance: getParameter(10830047:amlogic.encoder.hevc, ParamVideoIntraRefresh(0x6000006)) ERROR: UnsupportedIndex(0x8000101a)
2022-08-10 15:52:05.004 4227-4256/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.storeANWBufferInMetadata"
2022-08-10 15:52:05.004 4227-4256/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.storeMetaDataInBuffers"
2022-08-10 15:52:05.006 4227-5310/? E/OMXNodeInstance: getParameter(10830047:amlogic.encoder.hevc, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
2022-08-10 15:52:05.009 4227-8364/? I/OmxComponent: OMX_CommandStateSet 716 Cmd 0 nParam1 0x2
2022-08-10 15:52:05.009 4227-8364/? I/OmxComponent: STATE_SET:   OMX_StateLoaded => OMX_StateIdle: OMX.amlogic.video.encoder.hevc
2022-08-10 15:52:05.009 4227-8364/? I/OmxComponent: STATE_TRANS: OMX_StateLoaded => OMX_StateIdle: OMX.amlogic.video.encoder.hevc
2022-08-10 15:52:05.011 4227-8364/? I/OmxComponent: STATE_TRANS: OMX_StateLoaded => OMX_StateIdle: OMX.amlogic.video.encoder.hevc
2022-08-10 15:52:05.012 4227-8364/? I/OmxComponent: STATE_TRANS: OMX_StateLoaded => OMX_StateIdle: OMX.amlogic.video.encoder.hevc
2022-08-10 15:52:05.013 4227-8364/? I/OmxComponent: STATE_TRANS: OMX_StateLoaded => OMX_StateIdle: OMX.amlogic.video.encoder.hevc
2022-08-10 15:52:05.013 4227-8364/? I/OmxComponent: STATE_TRANS: OMX_StateLoaded => OMX_StateIdle: OMX.amlogic.video.encoder.hevc
2022-08-10 15:52:05.013 4227-8364/? I/OmxComponent: STATE_DONE:  OMX_StateLoaded => OMX_StateIdle: OMX.amlogic.video.encoder.hevc
2022-08-10 15:52:05.014 4227-8364/? I/OmxComponent: OMX_CommandStateSet 716 Cmd 0 nParam1 0x3
2022-08-10 15:52:05.014 4227-8364/? I/OmxComponent: STATE_SET:   OMX_StateIdle => OMX_StateExecuting: OMX.amlogic.video.encoder.hevc
2022-08-10 15:52:05.015 4227-8364/? I/OmxVideoEncoder: getParameter:426 OMX_IndexAmlogicVideoExtendCropScale
2022-08-10 15:52:05.015 4227-8364/? I/OmxComponent: STATE_TRANS: OMX_StateIdle => OMX_StateExecuting: OMX.amlogic.video.encoder.hevc
2022-08-10 15:52:05.015 4227-8364/? I/OmxComponent: STATE_DONE:  OMX_StateIdle => OMX_StateExecuting: OMX.amlogic.video.encoder.hevc
2022-08-10 15:52:05.016 8146-8363/com.skt.tlivecaster.ipconverter E/ACodec: [OMX.amlogic.video.encoder.hevc] ERROR(0x80001001)
2022-08-10 15:52:05.016 8146-8363/com.skt.tlivecaster.ipconverter E/ACodec: signalError(omxError 0x80001001, internalError -2147483648)
2022-08-10 15:52:05.052 4227-4227/? D/OmxComponent: getExtensionIndex 1099 name="OMX.google.android.index.describeColorAspects"





[url]http://190.lsal.cn/195/1329.gif?0728100424873[/url]
沙发#
发布于:2022-09-02 14:59
The customer is said to play the cctv video with rtsp and re-encode the decoded frame.
 
据说,客户用rtsp播放央视视频,并重新编码解码的帧。
[url]http://190.lsal.cn/195/1329.gif?0728100424873[/url]
游客

返回顶部