Not able to create decoder element using gst-omx plugin in android
debasis.sarkar at gmail.com
Fri May 19 07:02:29 UTC 2017
I am experimenting on how to use gst-omx plugin to access h/w
decoder/encoder in Android. So I built one simple NDK C application ,
creating a playback pipeline using h264 omx decoder element. But when I try
to execute I get the following instruction failed.
*decoder = gst_element_factory_make(""omxh264dec", "h264");
g_printerr("decoder elements not created.... Exiting\n");
Please note that, prior to this,
A) I built gst-omx plugin for Android and then put this plugin into
gstreamer 1.0 folder.There after using NDK to build gstreamer_android.so and
my sample app.
B) Then I built a test app using NDK and gstreamer 1.0 to use omx plugin
along with other plugin.
In my Android.mk, I mentioned
*GSTREAMER_PLUGINS := coreelements videoconvert audioconvert audioresample
which builds fine without any complain. So I believe there is no problem
with OMX plugin creation and packaging that into android_gstreamer.so
What am I doing wrong? is there any step that I am missing?
How to ensure, if the said element is loaded or not?
I checked gstomx.c :plugin_init, and I found the following line
* ret |= gst_element_register (plugin, elements[i], rank, subtype);*
But couldn't figure it out what would be actual h264decoder component name
and why is it failing.
Any suggestion would be a great help to me.
Thanks in advance!
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Not-able-to-create-decoder-element-using-gst-omx-plugin-in-android-tp4683042.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel