Re[2]: Android gst-omx plugin

Ivan Rofov ivan.rofov at mail.ru
Sun Jan 26 23:10:55 PST 2014


Thanks for quick answer!

Sebastian Dröge <sebastian at centricular.com> wrote:
> Is the .a file in lib/gstreamer-1.0/static afterwards and a .la file
> too?
> 
> Also if you build without --enable-static-plugins the .a file will be
> useless and only the .so file will be useful. Just that we don't use
> that on Android because of dynamic linking limitations.
> 
> You have to build gst-omx with --enable-static-plugins and then get
> the .a and .la files in the right directory.

I rebuild gst-omx with --enable-static-plugins.
At this step I have 3 file, .a .la .so inside directory: /lib/gstreamer-1.0 
But project doesn't build, because eclipse can't found -lgstomx. I move this file to directory: /lib
After this project builded and ran on device.

Sebastian Dröge <sebastian at centricular.com> wrote:
> Please run ndk-build with V=1 and LIBTOOL_DEBUG=1 and paste the complete
> output if the problem still persists after fixing things as described
> above.
Just in case, my build output in attachment.

Previous problem was solved, thanks!) But now I have another one... 
At runtime, pipeline can't found element omxh264dec and other gst-omx elements.
I create pipeline with this code:
data->pipeline = gst_parse_launch("filesrc location=/sdcard/test.mp4 ! qtdemux ! h264parse ! omxh264dec ! eglglessink sync=0", &error);
And see error:
Unable to build pipeline no element "omxh264dec"

I try resolve this problem, and modify code from gst-inspect:
void printPluginsList() {
	GList* plugins; /* The head of the plug-in list */
	GList* pnode;   /* The currently viewed node */

	/* Empty the list out here */

	plugins = pnode = gst_registry_get_plugin_list(gst_registry_get());
	while(pnode) {
		/* plugin: the plug-in info object pointed to by pnode */
		GstPlugin* plugin = (GstPlugin*)pnode->data;
		__android_log_print (ANDROID_LOG_ERROR, "Plugins list", "%s", gst_plugin_get_name(plugin));
		pnode = g_list_next(pnode);
	}

	/* Clean-up */
	gst_plugin_list_free (plugins);
} 
As I understand, this function must print all plugins in registry... But in output I can't found omx or openmax.
01-27 13:38:13.910: E/Plugins list(22837): libav
01-27 13:38:13.910: E/Plugins list(22837): x264
01-27 13:38:13.910: E/Plugins list(22837): realmedia
01-27 13:38:13.920: E/Plugins list(22837): xingmux
01-27 13:38:13.920: E/Plugins list(22837): mpeg2dec
01-27 13:38:13.920: E/Plugins list(22837): mad
01-27 13:38:13.920: E/Plugins list(22837): asf
01-27 13:38:13.920: E/Plugins list(22837): amrwbdec
01-27 13:38:13.920: E/Plugins list(22837): amrnb
01-27 13:38:13.920: E/Plugins list(22837): a52dec
01-27 13:38:13.920: E/Plugins list(22837): mpegtsmux
01-27 13:38:13.920: E/Plugins list(22837): mpegtsdemux
01-27 13:38:13.920: E/Plugins list(22837): mpegpsmux
01-27 13:38:13.920: E/Plugins list(22837): mpegpsdemux
01-27 13:38:13.920: E/Plugins list(22837): faad
01-27 13:38:13.920: E/Plugins list(22837): dtsdec
01-27 13:38:13.920: E/Plugins list(22837): asfmux
01-27 13:38:13.920: E/Plugins list(22837): opensles
01-27 13:38:13.920: E/Plugins list(22837): eglglessink
01-27 13:38:13.920: E/Plugins list(22837): androidmedia
01-27 13:38:13.920: E/Plugins list(22837): jpegformat
01-27 13:38:13.920: E/Plugins list(22837): y4mdec
01-27 13:38:13.920: E/Plugins list(22837): videoparsersbad
01-27 13:38:13.930: E/Plugins list(22837): subenc
01-27 13:38:13.930: E/Plugins list(22837): gstsiren
01-27 13:38:13.930: E/Plugins list(22837): schro
01-27 13:38:13.930: E/Plugins list(22837): pnm
01-27 13:38:13.930: E/Plugins list(22837): pcapparse
01-27 13:38:13.930: E/Plugins list(22837): opus
01-27 13:38:13.930: E/Plugins list(22837): id3tag
01-27 13:38:13.930: E/Plugins list(22837): fragmented
01-27 13:38:13.930: E/Plugins list(22837): dvdspu
01-27 13:38:13.930: E/Plugins list(22837): dvbsuboverlay
01-27 13:38:13.930: E/Plugins list(22837): dtmf
01-27 13:38:13.930: E/Plugins list(22837): adpcmenc
01-27 13:38:13.930: E/Plugins list(22837): adpcmdec
01-27 13:38:13.930: E/Plugins list(22837): y4menc
01-27 13:38:13.930: E/Plugins list(22837): wavparse
01-27 13:38:13.940: E/Plugins list(22837): wavpack
01-27 13:38:13.940: E/Plugins list(22837): wavenc
01-27 13:38:13.940: E/Plugins list(22837): vpx
01-27 13:38:13.940: E/Plugins list(22837): taglib
01-27 13:38:13.940: E/Plugins list(22837): speex
01-27 13:38:13.940: E/Plugins list(22837): png
01-27 13:38:13.940: E/Plugins list(22837): multipart
01-27 13:38:13.940: E/Plugins list(22837): mulaw
01-27 13:38:13.940: E/Plugins list(22837): matroska
01-27 13:38:13.940: E/Plugins list(22837): jpeg
01-27 13:38:13.940: E/Plugins list(22837): isomp4
01-27 13:38:13.940: E/Plugins list(22837): id3demux
01-27 13:38:13.940: E/Plugins list(22837): icydemux
01-27 13:38:13.940: E/Plugins list(22837): flxdec
01-27 13:38:13.940: E/Plugins list(22837): flv
01-27 13:38:13.940: E/Plugins list(22837): flac
01-27 13:38:13.940: E/Plugins list(22837): dv
01-27 13:38:13.940: E/Plugins list(22837): avi
01-27 13:38:13.940: E/Plugins list(22837): auparse
01-27 13:38:13.940: E/Plugins list(22837): audioparsers
01-27 13:38:13.940: E/Plugins list(22837): apetag
01-27 13:38:13.940: E/Plugins list(22837): alaw
01-27 13:38:13.940: E/Plugins list(22837): ivorbisdec
01-27 13:38:13.940: E/Plugins list(22837): vorbis
01-27 13:38:13.940: E/Plugins list(22837): theora
01-27 13:38:13.940: E/Plugins list(22837): ogg
01-27 13:38:13.940: E/Plugins list(22837): subparse
01-27 13:38:13.940: E/Plugins list(22837): playback
01-27 13:38:13.940: E/Plugins list(22837): videofilter
01-27 13:38:13.940: E/Plugins list(22837): autodetect
01-27 13:38:13.940: E/Plugins list(22837): volume
01-27 13:38:13.940: E/Plugins list(22837): videotestsrc
01-27 13:38:13.940: E/Plugins list(22837): videoscale
01-27 13:38:13.940: E/Plugins list(22837): videorate
01-27 13:38:13.940: E/Plugins list(22837): videoconvert
01-27 13:38:13.940: E/Plugins list(22837): typefindfunctions
01-27 13:38:13.940: E/Plugins list(22837): pango
01-27 13:38:13.940: E/Plugins list(22837): gio
01-27 13:38:13.940: E/Plugins list(22837): audiotestsrc
01-27 13:38:13.940: E/Plugins list(22837): audioresample
01-27 13:38:13.940: E/Plugins list(22837): audiorate
01-27 13:38:13.940: E/Plugins list(22837): audioconvert
01-27 13:38:13.940: E/Plugins list(22837): app
01-27 13:38:13.940: E/Plugins list(22837): adder
01-27 13:38:13.940: E/Plugins list(22837): coreelements
01-27 13:38:13.940: E/Plugins list(22837): staticelements

How should I add gst-omx plugin to android project, so I can use it elements on  pipeline?

--
Ivan Rofov
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: build_output.txt
URL: <http://lists.freedesktop.org/archives/gstreamer-openmax/attachments/20140127/8498633d/attachment-0001.txt>


More information about the gstreamer-openmax mailing list