Re : Re: Re : Re: Is possible to compile and use gst-omx for Android devices ?

Sebastian Dröge sebastian at centricular.com
Sun Jan 19 01:12:09 PST 2014


On Sa, 2014-01-11 at 18:20 +0100, stic at free.fr wrote:
> I tried to change version, change how GST_OMX_INIT_STRUCT build version number, still have the same error.
> Because it is OMX SEC I had to change all calls of module functions in gst_omx_core_acquire (as they are all prefixed with SEC_OMX I replaced OMX_Init by SEC_OMX_Init for example), then the module is well loaded, codecs are created, but still have the described error.
> Do you think there could be other module functions call to rename somewhere else or something related to OMX SEC difference ?

Then you would get errors about functions that are not found. The
problem will be that OMX SEC requires a specific version of the OMX API,
or maybe very specific, non-standard headers. There can only be guessing
here, you'll have to reverse engineer the OMX SEC implementation or find
some useful documentation about it on the Internet.

But problems like this are a good example why OpenMAX IL is a rather
useless standard for cross-platform development. It works different with
every implementation and for each of them you'll have to find ways to
make it work, ideally without breaking it for another one.

> I also tried to use gstomx with another device (nexus 7), so it uses libnvomx.so for nvidia codecs.
> module is loaded, codec elements are created, getparameter seems to be called.
> But for this one I had other errors when trying to use encoder in a pipeline, I attach the log file to this mail.

I don't see a problem in the log, so there is probably something wrong
that is not given by in the log.

If you use the 1.0.0 release of gst-omx you might need to add this
commit:

commit 960590f92ff6535565226dfab6fd52082dd6ee2c
Author: jitendra <jvarshney20 at gmail.com>
Date:   Tue Apr 16 14:50:49 2013 +0530

    omx: Disable output port before transition to idle state
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698109

It was added specifically for NVidia's OMX implementation.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20140119/f1bc354b/attachment.pgp>


More information about the gstreamer-android mailing list