我正在尝试从我的相机对视频流记录进行编码,并使用我的主板上的某种硬件编码器(橙色素数)将它们编码为h264,但有些功能却无法在功能上运行。
这是logcat:
01-16 17:19:35.459 1493-1493/? W/art: Verification of void
android.support.v7.widget.LinearLayoutCompat.<init>(android.content.Context) took 250.281ms
01-16 17:19:35.533 1493-1802/? W/VideoCapabilities: Unsupported mime video/jpeg
01-16 17:19:35.536 1493-1802/? W/VideoCapabilities: Unsupported mime video/mpeg1
01-16 17:19:35.538 1493-1802/? W/VideoCapabilities: Unsupported mime video/mpeg2
01-16 17:19:35.544 1493-1802/? W/VideoCapabilities: Unrecognized profile/level 32768/2 for video/mp4v-es
01-16 17:19:35.550 1493-1802/? W/VideoCapabilities: Unsupported mime video/x-vnd.on2.vp6
01-16 17:19:35.557 1493-1802/? W/VideoCapabilities: Unsupported mime video/wvc1
01-16 17:19:35.561 1493-1802/? W/VideoCapabilities: Unsupported mime video/x-ms-mpeg4v1
01-16 17:19:35.567 1493-1802/? W/VideoCapabilities: Unsupported mime video/x-ms-mpeg4v2
01-16 17:19:35.569 1493-1802/? W/VideoCapabilities: Unsupported mime video/divx
01-16 17:19:35.576 1493-1802/? W/VideoCapabilities: Unsupported mime video/xvid
01-16 17:19:35.581 1493-1802/? W/VideoCapabilities: Unsupported mime video/flv1
01-16 17:19:35.588 1493-1802/? W/VideoCapabilities: Unsupported mime video/rvg2
01-16 17:19:35.595 1493-1802/? W/VideoCapabilities: Unsupported mime video/wmv1
01-16 17:19:35.601 1493-1802/? W/VideoCapabilities: Unsupported mime video/wmv2
01-16 17:19:35.657 1493-1802/? I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
01-16 17:19:35.685 1570-1625/? I/[Gralloc]: ion_alloc from ion_client:16 via heap type DMA(mask:16) for 1382400 Bytes cached buffer successfully, usage = 0x00000132
01-16 17:19:35.692 1493-1802/? V/MediaCodecVideoEncoder: Found candidate encoder OMX.allwinner.video.encoder.avc
01-16 17:19:35.692 1493-1802/? V/MediaCodecVideoEncoder: Found candidate encoder OMX.google.h264.encoder
01-16 17:19:35.705 1493-1802/? D/MediaCodecVideoDecoder: Trying to find HW decoder for mime video/avc
01-16 17:19:35.708 1493-1802/? D/MediaCodecVideoDecoder: Found candidate decoder OMX.allwinner.video.decoder.avc
01-16 17:19:35.708 1493-1802/? D/MediaCodecVideoDecoder: Found candidate decoder OMX.google.h264.decoder
01-16 17:19:35.708 1493-1802/? D/MediaCodecVideoDecoder: No HW decoder found for mime video/avc
01-16 17:19:35.732 1570-1625/? I/[Gralloc]: ion_alloc from ion_client:16 via heap type DMA(mask:16) for 136320 Bytes uncached buffer successfully, usage = 0x00000702
似乎程序找到了我的硬件编码器,但从未设置它们。我不知道如何解决这个问题。有什么好主意吗?