1

我正在尝试在 OMAP 4460(Blaze Tablet-in ICS)中开发一个监视应用程序,充当客户端设备,从远程源呈现监视源。首先,监控信息从摄像头远程流式传输,端口作为 RTP 数据包转发,这些数据包通过定制的 RTP 堆栈在 OMAP 4460 中接收和呈现。渲染时,我从解码器收到以下错误,说“表面纹理已被放弃,native_window _set_buffers_geometry 失败”,更频繁。

以下是捕获的日志:

E/AwesomePlayer(  131): AwesomePlayer::onPrepareAsyncEvent-------- err = 0
E/AwesomePlayer(  131): AwesomePlayer::onPrepareAsyncEvent-------- OK = -430191887
I/OMXCodec(  131): [OMX.TI.DUCATI1.VIDEO.DECODER] AVC profile = 66 (Baseline), level = 31
E/OMXCodec(  131): set buffer size variable to : 307200
I/OMXCodec(  131): [OMX.TI.DUCATI1.VIDEO.DECODER] video dimensions are 640 x 480
I/OMXCodec(  131): [OMX.TI.DUCATI1.VIDEO.DECODER] Crop rect is 640 x 480 @ (0, 0)
E/SurfaceTexture(  128): [SurfaceView] setCrop: SurfaceTexture has been abandoned!
E/SurfaceTextureClient(  131): ISurfaceTexture::setCrop(...) returned No such device
E/SurfaceTexture(  128): [SurfaceView] setLayout: SurfaceTexture has been abandoned!
E/SurfaceTexture(  128): [SurfaceView] setCrop: SurfaceTexture has been abandoned!
E/SurfaceTextureClient(  131): ISurfaceTexture::setCrop(...) returned No such device
E/OMXCodec(  131): native_window_set_buffers_geometry failed: No such device (19)
E/ion     (  131): ioctl -1073460991 failed with code -1: Bad file number
E/ion     (  131): ioctl -1073460991 failed with code -1: Bad file number
D/DOMX    (  131): hardware/ti/domx/domx/omx_proxy_common/src/omx_proxy_common.c:2208    PROXY_ComponentDeInit()    
D/DOMX    (  131): ERROR: failed check:(eError == OMX_ErrorNone) || (eError == OMX_ErrorNoMore) - returning error: 0x80001011 - Error returned from OMX API in ducati
D/DOMX    (  131): hardware/ti/domx/omx_core/src/OMX_Core.c:396    OMX_FreeHandle()    
D/DOMX    (  131): ERROR: Error From ComponentDeInit..
D/StackInterface(  131): AwesomePlayer::reset_l called ++

相机的SDP:

v=0

o=StreamingServer 3331435948 1116907222000 IN IP4 192.168.1.102

s=h264.mp4

c=IN IP4 239.0.0.00;/1

t=0 0

a=control:*

m=video 0 RTP/AVP 96

a=control:trackID=0

a=rtpmap:96 H264/90000

a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0KAH9oCgPSbgIEAmBAAfQAAEZQve+Eg,aM48gA==

m=application 0 RTP/AVP 107

a=control:trackID=2

a=rtpmap:107 vnd.onvif.metadata/90000

一段时间以来,我一直在尝试解决此问题,但仍无法找出问题所在。

请透露如何进一步处理该问题。

问候,

马诺伊

4

1 回答 1

0

我的英语不是很好。

检查 SurfaceTexture 指针。如果您在函数中定义 sp<.....>,则 sp<.....> 将在函数结束时被放弃。

于 2013-03-27T10:28:56.223 回答