Looking for help: iOMX interface for gst-omx plugin

Umashankar Chikkamath umashankar.chikkamath at yahoo.com
Mon May 5 00:50:15 PDT 2014


Hello Everyone,
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 
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
Device details:  Samsung Galaxy S4 GT-I9506 Android version 4.3
 
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”.
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”.
I haven’t find any such code with gst-omx plugin about iOMX
interface  i.e IMediaPlayerService in
mediaserver implements getOMX() function.
 
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. 
Please advise/help.
Thanks,
-Umashankar
 
More adb logcat details: 
 
E/OMX-VENC-720p(24052):  omx_video(): Inside Constructor() 
E/OMX-VENC-720p(24052):  
E/OMX-VENC-720p(24052):  omx_venc(): Inside component_init() 
E/OMX-VENC-720p(24052): ERROR: Omx_venc::Comp Init Returning
failure 
E/OMX-VENC-720p(24052):  
E/OMX-VENC-720p(24052): ERROR: venc_open failed 
E/OMX-VENC-720p(24052):  
E/OMX-VENC-720p(24052):  ~omx_video(): Inside Destructor() 
E/OMX-VENC-720p(24052): omx_video: Waiting on Msg Thread
exit 
E/OMX-VENC-720p(24052): omx_video: Waiting on Async Thread
exit 
E/OMX-VENC-720p(24052):  
E/OMX-VENC-720p(24052):  m_etb_count = 0, m_fbd_count = 0 
E/OMX-VENC-720p(24052): omx_video: Destructor exit 
E/OMX-VENC-720p(24052): Exiting 7x30 OMX Video Encoder ... 
E/OMX-VENC-720p(24052):  
E/OMX-VENC-720p(24052):  Destroy C2D instance 
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 
D/GStreamer+omx(24052): 0:00:02.314947134 0x7659bc00
gstomx.c:186:gst_omx_core_release Releasing core 0x7642ff40 
D/GStreamer+omx(24052): 0:00:02.314991145 0x7659bc00
gstomx.c:190:gst_omx_core_release Deinit core 0x7642ff40 
W/GStreamer+videoencoder(24052): 0:00:02.315047447 0x7659bc00
gstvideoencoder.c:1504:gst_video_encoder_change_state:<omxh264enc-omxh264enc0>
error: Failed to open encoder 
D/GStreamer+GST_MESSAGE(24052): 0:00:02.315112343 0x7659bc00
gstelement.c:1804:gst_element_message_full:<omxh264enc-omxh264enc0> start
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20140505/434e88da/attachment.html>


More information about the gstreamer-android mailing list