Forums - Error in omx_vdec::component_init in android

3 posts / 0 new
Last post
Error in omx_vdec::component_init in android
debasis.sarkar
Join Date: 22 May 17
Posts: 1
Posted: Mon, 2017-05-22 23:17

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!

 

 

 

  • Up0
  • Down0
Sjessus60
Join Date: 3 Oct 22
Posts: 28
Posted: Wed, 2023-07-26 06:35
Re: Error in omx_vdec::component_init in android
  • Up0
  • Down0
mado.jessu
Join Date: 6 Oct 22
Posts: 27
Posted: Wed, 2023-07-26 06:47
Re: Error in omx_vdec::component_init in android
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.