Hi,
I am writing one gstreamer based android command line C app using gstomx plugin. I am launching this app from adb command shell.
I have created gstomx.conf file which looks similar to this.
[omxh264dec]
type-name=GstOMXH264Dec
core-name=/system/lib/libOmxCore.so
component-name=OMX.qcom.video.decoder.avc
rank=257
in-port-index=0
out-port-index=1
hacks=event-port-settings-changed-ndata-parameter-swap;event-port-settings-changed-port-0-to-1
But app fails to create decoder instance as I see following spews from logcat.
E/OMX-VDEC-1080P(15368): In OMX vdec Constructor
E/OMX-VDEC-1080P(15368): vidc.dec.debug.ts value is 0
E/OMX-VDEC-1080P(15368): vidc.dec.debug.concealedmb value is 0
E/OMX-VDEC-1080P(15368): vidc.dec.debug.extradata value is 0
E/OMX-VDEC-1080P(15368): omx_vdec::component_init(): Start of New Playback : role = OMX.qcom.video.decoder.avc : DEVICE = /dev/msm_vidc_dec
E/OMX-VDEC-1080P(15368): omx_vdec::component_init(): Open returned fd -1, errno 13
E/OMX-VDEC-1080P(15368): Omx_vdec::Comp Init Returning failure, errno 13
looks like it is not able to open the decoder driver as I see from the following code
DEBUG_PRINT_HIGH("\n omx_vdec::component_init(): Start of New Playback");
driver_context.video_driver_fd = open ("/dev/msm_vidc_dec",O_RDWR|O_NONBLOCK);
DEBUG_PRINT_HIGH("\n omx_vdec::component_init(): Open returned fd %d",driver_context.video_driver_fd);
I am using SonyExperia Device, Model num:LT26ii , Android version 4.1.2 Build number 6.2.B.1.96
Can anyone help me to rootcause this issue.? Is there any obvious that I missed?
Thanks in advance!