首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > 多媒体 >

TI OMAP4430 openmax解码获取不了组件句柄失败有关问题

2012-03-09 
TI OMAP4430 openmax解码获取不了组件句柄失败问题?各位兄弟姐妹好啊请问有哪位做过android平台TI 下的ope

TI OMAP4430 openmax解码获取不了组件句柄失败问题?
各位兄弟姐妹好啊
  请问有哪位做过android平台TI 下的openmax的视频硬解码播放功能?

C/C++ code
  //打开加载libomx_sharedlibrary.so成功,其他初始化也没有问题  //lib_name 为"OMX.TI.DUCATI1.VIDEO.H264D"和"OMX.TI.DUCATI1.VIDEO.DECODER"if ((pOMXInterface->GetpOMX_GetHandle())(&ComponentHandler, lib_namectx, funcs) != OMX_ErrorNone)    {        LOGE("GetHandle lib_name: %s Fails!\n", lib_name);        return NULL;    }


这段代码总是失败,总是获取不了lib_name的句柄。
我知道日志里面有很多错误,但是不知道还需要调用哪些相关设置和函数才能正常取得此句柄,
或者我本身的方向就错了。但是此代码和流程在tegra2上能正常运行。
请各位兄弟姐妹指点或给点建议,一起讨论讨论下?
谢谢!
期待各位的回帖?

以下是log日志
12-16 10:35:24.882: VERBOSE/omx_decoder(7024): *** OMX Lib: TIOMAP ***
12-16 10:35:24.882: VERBOSE/omx_decoder(7024): OMX Interface Create: 0x81700a2c
12-16 10:35:24.882: DEBUG/omx_interface(7024): TIOMXInterface: creating interface
12-16 10:35:24.882: DEBUG/omx_interface(7024): Calling DLOPEN on OMX_CORE_LIBRARY (libOMX_Core.so)
12-16 10:35:24.898: DEBUG/omx_interface(7024): DLOPEN SUCCEEDED (libOMX_Core.so)
12-16 10:35:24.898: VERBOSE/omx_decoder(7024): OMX Interface: 0x21c460
12-16 10:35:24.898: DEBUG/OMX_CORE(7024): TIOMX_Init
12-16 10:35:24.898: DEBUG/OMX_CORE(7024): TIOMX_ComponentNameEnum
12-16 10:35:24.898: VERBOSE/omx_decoder(7024): The 0th ComponentName is OMX.TI.DUCATI1.VIDEO.DECODER
12-16 10:35:24.898: DEBUG/OMX_CORE(7024): TIOMX_ComponentNameEnum
12-16 10:35:24.898: VERBOSE/omx_decoder(7024): The 1th ComponentName is OMX.TI.DUCATI1.VIDEO.H264D
12-16 10:35:24.898: DEBUG/OMX_CORE(7024): TIOMX_ComponentNameEnum
12-16 10:35:24.898: VERBOSE/omx_decoder(7024): The 2th ComponentName is OMX.TI.DUCATI1.VIDEO.H264E
12-16 10:35:24.898: DEBUG/OMX_CORE(7024): TIOMX_ComponentNameEnum
12-16 10:35:24.898: VERBOSE/omx_decoder(7024): The 3th ComponentName is OMX.TI.DUCATI1.VIDEO.MPEG4D
12-16 10:35:24.898: DEBUG/OMX_CORE(7024): TIOMX_ComponentNameEnum
12-16 10:35:24.898: VERBOSE/omx_decoder(7024): The 4th ComponentName is OMX.TI.DUCATI1.VIDEO.MPEG4E
12-16 10:35:24.898: DEBUG/OMX_CORE(7024): TIOMX_ComponentNameEnum
12-16 10:35:24.898: VERBOSE/omx_decoder(7024): The 5th ComponentName is OMX.TI.DUCATI1.VIDEO.VP6D
12-16 10:35:24.898: DEBUG/OMX_CORE(7024): TIOMX_ComponentNameEnum
12-16 10:35:24.898: VERBOSE/omx_decoder(7024): The 6th ComponentName is OMX.TI.DUCATI1.VIDEO.VP7D
12-16 10:35:24.898: DEBUG/OMX_CORE(7024): TIOMX_ComponentNameEnum
12-16 10:35:24.898: VERBOSE/omx_decoder(7024): The 7th ComponentName is OMX.TI.DUCATI1.IMAGE.JPEGD
12-16 10:35:24.898: DEBUG/OMX_CORE(7024): TIOMX_ComponentNameEnum
12-16 10:35:24.906: VERBOSE/omx_decoder(7024): The 8th ComponentName is OMX.ITTIAM.AAC.encode
12-16 10:35:24.906: DEBUG/OMX_CORE(7024): TIOMX_ComponentNameEnum
12-16 10:35:24.906: VERBOSE/omx_decoder(7024): omx_comtype =1, dec_type =0, vendor =2!
12-16 10:35:24.906: VERBOSE/omx_decoder(7024): h264_lib_names[0] =OMX.TI.DUCATI1.VIDEO.DECODER!
12-16 10:35:24.906: DEBUG/OMX_CORE(7024): TIOMX_GetRolesOfComponent
12-16 10:35:24.906: VERBOSE/omx_decoder(7024): 1:NumRoles=6
12-16 10:35:24.906: DEBUG/OMX_CORE(7024): TIOMX_GetRolesOfComponent
12-16 10:35:24.906: VERBOSE/omx_decoder(7024): 2:NumRoles=6
12-16 10:35:24.906: VERBOSE/omx_decoder(7024): Decoder Roles:video_decoder.mpeg4
12-16 10:35:24.906: VERBOSE/omx_decoder(7024): Decoder Roles:video_decoder.avc
12-16 10:35:24.906: VERBOSE/omx_decoder(7024): Decoder Roles:video_decoder.h263
12-16 10:35:24.906: VERBOSE/omx_decoder(7024): Decoder Roles:video_decoder.wmv
12-16 10:35:24.906: VERBOSE/omx_decoder(7024): Decoder Roles:video_decoder.vp6
12-16 10:35:24.906: VERBOSE/omx_decoder(7024): Decoder Roles:video_decoder.vp7
12-16 10:35:24.906: DEBUG/OMX_CORE(7024): TIOMX_GetHandle
12-16 10:35:25.078: ERROR/OMX_PROXYDEC(7024): ___ INSIDE VIDEO DECODER PROXY WRAPPER native


12-16 10:35:25.078: DEBUG/(7024): hComponent=0x205128
12-16 10:35:25.078: DEBUG/(7024): Setup IPC components
12-16 10:35:25.078: ERROR/(7024): failed check: status >= 0
12-16 10:35:25.078: ERROR/(7024): - returning error: RPC_OMX_ErrorHardware
12-16 10:35:25.078: ERROR/(7024): Error code: 0x81009
12-16 10:35:25.078: ERROR/(7024): - SysMgr Setup failed
12-16 10:35:25.078: DEBUG/(7024): Leaving _RPC_IpcSetup()
12-16 10:35:25.078: ERROR/(7024): failed check: eRPCError == RPC_OMX_ErrorNone
12-16 10:35:25.078: ERROR/(7024): - returning error: eRPCError
12-16 10:35:25.078: ERROR/(7024): Error code: 0x81009
12-16 10:35:25.078: ERROR/(7024): - Basic ipc setup failed
12-16 10:35:25.078: ERROR/(7024): failed check: eRPCError == RPC_OMX_ErrorNone
12-16 10:35:25.078: ERROR/(7024): - returning error: OMX_ErrorUndefined
12-16 10:35:25.078: ERROR/(7024): Error code: 0x80001001
12-16 10:35:25.078: ERROR/(7024): - Error initializing RPC
12-16 10:35:25.078: DEBUG/(7024): OMX_ProxyCommonInit eError: -2147479551
12-16 10:35:25.078: ERROR/OMX_PROXYDEC(7024): Error in Initializing Proxy
12-16 10:35:25.078: ERROR/LifeVibes_OMX_PROXYDEC(7024): LifeVibes: OMX_ComponentInit - Error in Initializing the OMX compoment (OMX_ComponentInit_native)
12-16 10:35:25.078: ERROR/omx_decoder(7024): GetHandle lib_name: OMX.TI.DUCATI1.VIDEO.DECODER Fails!
12-16 10:35:25.078: ERROR/omx_decoder(7024): omx_get_component fails, dec->homx is NULL!



[解决办法]
12-16 10:35:25.078: ERROR/OMX_PROXYDEC(7024): ___ INSIDE VIDEO DECODER PROXY WRAPPER native
的从这里看起,好象是找到component ,你的视频是什么编码的?
[解决办法]
你应该吧MEDIASERVER和相关RPC/IPC的驱动的权限改为755,
[解决办法]
公司开发正巧也遇到这样的文题,同求答案,谢谢啦。
[解决办法]
你这里的render组建是指OVERLAY的硬件显示吗,就是那个libstagefrighthw.so
[解决办法]
android里面的媒体框架没有使用OMX的render组建,而是使用的overlay来显示视频,是现在libstagefrighthw.so里面
[解决办法]
TI可能不完全遵循OMX的标准吧

热点排行