2 tommyxu0131 tommyxu0131 于 2016.03.31 09:24 提问

视频编码花屏问题求助

各位大侠你们好,

小弟在使用华为P8ALE-UL00进行H264编码的时候,录像文件出现花屏,再现率非常高。
系统打印打印了如下错误,有遇到过的么?求指教。(在其它的手机上暂时没有发现类似问题)

03-15 10:56:50.720 I/OMXClient(17516): Using client-side OMX mux.
03-15 10:56:50.720 I/MediaCodecList( 2975): findCodecByType::numCodecs=35, index=0, type=video/avc
03-15 10:56:50.720 I/OMXCodec(17516): matching ´OMX.IMG.TOPAZ.VIDEO.Encoder´ quirks 0x00000000
03-15 10:56:50.720 I/MediaCodecList( 2975): findCodecByType::numCodecs=35, index=15, type=video/avc
03-15 10:56:50.720 I/OMXCodec(17516): matching ´OMX.google.h264.encoder´ quirks 0x00000000
03-15 10:56:50.720 I/MediaCodecList( 2975): findCodecByType::numCodecs=35, index=33, type=video/avc
03-15 10:56:50.730 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f000001 = 2130706433
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f000005 = 2130706437
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f000002 = 2130706434
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f000006 = 2130706438
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x17 = 23
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x18 = 24
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f000011 = 2130706449
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x16 = 22
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f000007 = 2130706439
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f000008 = 2130706440
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x19 = 25
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x1a = 26
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x1b = 27
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x1c = 28
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f000003 = 2130706435
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f000009 = 2130706441
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f00000c = 2130706444
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f000012 = 2130706450
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f00000a = 2130706442
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f00000b = 2130706443
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f000789 = 2130708361
03-15 10:56:50.740 I/ACodec (17516): setupVideoEncoder succeeded
03-15 10:56:50.740 E/IMGTOPAZ( 2975): Error in OTE_Base_GetParameter at line 1321
03-15 10:56:50.740 E/OMXNodeInstance( 2975): getParameter(2130706443) ERROR: 0x8000100e
03-15 10:56:50.740 W/ACodec (17516): do not know color format 0x7f000789 = 2130708361

以下是相关代码:
MediaFormat format = MediaFormat.createVideoFormat("video/avc", width, height);
format.setInteger(MediaFormat.KEY_COLOR_FORMAT, MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface);
format.setInteger(MediaFormat.KEY_BIT_RATE, 4000000);
format.setInteger(MediaFormat.KEY_FRAME_RATE, 15);
format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 1);

mEncoder = MediaCodec.createEncoderByType("video/avc");
mEncoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);
mInputSurface = mEncoder.createInputSurface();
mEncoder.start();

1个回答

qq_28921637
qq_28921637   2017.03.06 09:27

我也碰到了这个问题,我的是华为P9 ,请问现在你解决了吗?或者交流下也可以

E/Mp4MetaAtom: Error: Leaf atom size exceeds bounds.
E/Mp4MetaAtom: Error, failed to load atom.
E/Mp4Metadata: Error, failed to load .mp4 file.


E/MPEG4Writer: timestampUs 10844166 < lastTimestampUs 10977633 for Video track

E/OMXNodeInstance: getParameter(1036:IMG.TOPAZ.Encoder, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
E/imgvideo-omx: IMG_OMD_GetParameter FAILED: Unknown ColorFormat
E/OMXNodeInstance: getParameter(1038:IMG.MSVDX.Decoder.AVC, ??(0x7f000008)) ERROR: UnsupportedSetting(0x80001019)


W/System.err: java.lang.IllegalStateException: Failed to stop the muxer
W/System.err: at android.media.MediaMuxer.nativeStop(Native Method)
W/System.err: at android.media.MediaMuxer.stop(MediaMuxer.java:239)

W/System.err: at cn.thetaplusvideo.export.codec.VideoAudioMuxer.stop(VideoAudioMuxer.java:128)

03-06 08:49:03.064 680-20187/? E/IMGTOPAZ: Error in OTE_Base_GetParameter at line 1326
03-06 08:49:03.065 680-20180/? E/IMGTOPAZ: Error in OTE_Base_GetParameter at line 1326
03-06 08:49:03.065 680-20179/? E/IMGTOPAZ: Error in OTE_Base_GetParameter at line 1326
03-06 08:49:03.066 680-8601/? E/IMGTOPAZ: Error in OTE_Base_GetParameter at line 1326
03-06 08:49:03.066 680-20181/? E/IMGTOPAZ: Error in OTE_Base_GetParameter at line 1326
03-06 08:49:03.066 680-20183/? E/IMGTOPAZ: Error in OTE_Base_GetParameter at line 1326
03-06 08:49:03.067 680-20180/? E/IMGTOPAZ: Error in OTE_Base_GetParameter at line 1326

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!