<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div class="" style="">Hello Everyone,<o:p class="" style=""></o:p></div><div class="" style="">From past more than 2 weeks I’m trying to resolve issue of
running simple gstreamer pipeline on Android 4.3. Here I’m using gst-omx plugin
to access hardware codec (omxh264enc) of Samsung S4 device(qualcomm
chipset).(Device has stock OS and unrooted)  I’ve set the right gstomx.conf
file as per Samsung S4 device <o:p class="" style=""></o:p></div><div class="" style="">Gstremer pipeline( Cerbero GST SDK  for android build is using to run gst app)
and  pipeline is  filesrc location=/mnt/sdcard/akiyo_qcif_nv12.yuv
! videoparse format=nv12 width=176 height=144 ! omxh264enc ! filesink
location=/mnt/sdcard/Test.264<o:p class="" style=""></o:p></div><div class="" style="">Device details: 
Samsung Galaxy S4 GT-I9506 Android version 4.3<o:p class="" style=""></o:p></div><div class="" style=""><o:p class="" style=""> </o:p></div><div class="" style="">and I can see the messages from adb logcat that
“gst_omx_core_acquire Successfully loaded core '/system/lib/libmm-omxcore.so'”
and “gst_omx_core_acquire Successfully initialized core '/system/lib/libmm-omxcore.so'”
. However I’m facing issue of accessing hardware and error is :
“gstomx.c:686:gst_omx_component_new:<omxh264enc-omxh264enc0> Failed to
get component handle 'OMX.qcom.video.encoder.avc' from core
'/system/lib/libmm-omxcore.so': 0x80001000”.<o:p class="" style=""></o:p></div><div class="" style="">After debugging and going through documents” In order to
access the OMXIL functionality from a multimedia application, Android provides
IOMX interface and where the OMXIL components are owned by mediaserver
process”.<o:p class="" style=""></o:p></div><div class="" style="">I haven’t find any such code with gst-omx plugin about iOMX
interface  i.e IMediaPlayerService in
mediaserver implements getOMX() function.<o:p class="" style=""></o:p></div><div class="" style=""><o:p class="" style=""> </o:p></div><div class="" style="">Is anyone tried to access hardware codec using gst-omx on
any android platform?. How should I approach to resolve this issue. I don’t
think so it’s easy to implement such that iOMX can communicate with gst-omx
plugin. <o:p class="" style=""></o:p></div><div class="" style="">Please advise/help.<o:p class="" style=""></o:p></div><div class="" style="">Thanks,<o:p class="" style=""></o:p></div><div class="" style="">-Umashankar<o:p class="" style=""></o:p></div><div class="" style=""><o:p class="" style=""> </o:p></div><div class="" style="">More adb logcat details: <o:p class="" style=""></o:p></div><div class="" style=""><o:p class="" style=""> </o:p></div><div class="" style="">E/OMX-VENC-720p(24052): 
omx_video(): Inside Constructor() <o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): 
<o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): 
omx_venc(): Inside component_init() <o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): ERROR: Omx_venc::Comp Init Returning
failure <o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): 
<o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): ERROR: venc_open failed <o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): 
<o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): 
~omx_video(): Inside Destructor() <o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): omx_video: Waiting on Msg Thread
exit <o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): omx_video: Waiting on Async Thread
exit <o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): 
<o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): 
m_etb_count = 0, m_fbd_count = 0 <o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): omx_video: Destructor exit <o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): Exiting 7x30 OMX Video Encoder ... <o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): 
<o:p class="" style=""></o:p></div><div class="" style="">E/OMX-VENC-720p(24052): 
Destroy C2D instance <o:p class="" style=""></o:p></div><div class="" style="">E/GStreamer+omx(24052): 0:00:02.314894166 0x7659bc00
gstomx.c:686:gst_omx_component_new:<omxh264enc-omxh264enc0> Failed to get
component handle 'OMX.qcom.video.encoder.avc' from core
'/system/lib/libmm-omxcore.so': 0x80001000 <o:p class="" style=""></o:p></div><div class="" style="">D/GStreamer+omx(24052): 0:00:02.314947134 0x7659bc00
gstomx.c:186:gst_omx_core_release Releasing core 0x7642ff40 <o:p class="" style=""></o:p></div><div class="" style="">D/GStreamer+omx(24052): 0:00:02.314991145 0x7659bc00
gstomx.c:190:gst_omx_core_release Deinit core 0x7642ff40 <o:p class="" style=""></o:p></div><div class="" style="">W/GStreamer+videoencoder(24052): 0:00:02.315047447 0x7659bc00
gstvideoencoder.c:1504:gst_video_encoder_change_state:<omxh264enc-omxh264enc0>
error: Failed to open encoder <o:p class="" style=""></o:p></div><div class="" style="">







































































</div><div class="" style="">D/GStreamer+GST_MESSAGE(24052): 0:00:02.315112343 0x7659bc00
gstelement.c:1804:gst_element_message_full:<omxh264enc-omxh264enc0> start<o:p class="" style=""></o:p></div><div class="" style=""><br class="" style=""></div></div></body></html>