logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.

Cross compiling gstreamer plugin template

posted in Uncategorized
Tuesday, February 21 2012, 01:15 PM
ttump
ttump
Offline
0
Hi I\\\'m want to write a simple plugin filter for gsteamer and have correctly compiled and run the template from the gstreamer website on a Ubuntu x86 system. However I don\\\'t know what settings to use to cross compile it for the IGEP2. Has anyone done this who can help? Thanks Tony
Responses (8)
  • Accepted Answer

    Tuesday, February 21 2012, 01:23 PM - #permalink
    0
    hi tony, I have done something similar, by adding pluggins in the TIpluginscombo. Put your files in the gst_ti src directory Edit the Makefile.am and modify these lines by adding your files. libgstticodecplugin_la_SOURCES = noinst_HEADERS = Edit the gstticodecplugin.c and add some lines according to those are in this files. in the src/ make dist_clean make gst_ti_clean / make gst_ti (in workspace) Do a gst-inspect on your board and check if the pluggin is added. I think i forget nothing. Advice. Mika
    The reply is currently minimized Show
  • Accepted Answer

    ttump
    ttump
    Offline
    Tuesday, February 21 2012, 01:30 PM - #permalink
    0
    Hi Mika Many thanks for your fast reply, I will give it a try. Thanks Tony
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 21 2012, 01:46 PM - #permalink
    0
    you\\\'re welcome tony, I re-make my reply to be more efficiency. I made a videorate pluggin named tivideorate. I have 2 files : tivideorate.c / tivideorate.h I modified the files like this : gstticodecplugin.c [code] #include \\\"tivideorate.h\\\" env_value = getenv(\\\"GST_TI_TIVIDEORATE_DISABLE\\\"); if ((!env_value || strcmp(env_value,\\\"1\\\")) && !gst_element_register( TICodecPlugin, \\\"tivideorate\\\", GST_RANK_PRIMARY, GST_TYPE_TIVIDEORATE)) return FALSE; [/code] Makefile.am : libgstticodecplugin_la_SOURCES = tivideorate.c .... noinst_HEADERS = tivideorate.h In my tivideorate.c : [code] GType gst_tivideorate_get_type (void) { static GType object_type = 0; if (G_UNLIKELY (object_type == 0)) { static const GTypeInfo object_info = { sizeof (GstTIVideorateClass), gst_tivideorate_base_init, NULL, (GClassInitFunc) gst_tivideorate_class_init, NULL, NULL, sizeof (GstTIVideorate), 0, (GInstanceInitFunc) gst_tivideorate_init }; object_type = g_type_register_static (GST_TYPE_ELEMENT, \\\"GstTIVideorate\\\", &object_info, (GTypeFlags) 0); /* Initialize GST_LOG for this object */ GST_DEBUG_CATEGORY_INIT (gst_tivideorate_debug, \\\"tivideorate\\\", 0, \\\"Adjusting video rate tools\\\"); GST_LOG (\\\"initialized get_type\\\\n\\\"); } return object_type; }[/code] When i do a gst-inspect : TICodecPlugin: tipriority: TI Priority adjuster TICodecPlugin: tivideorate: TIVideorate TICodecPlugin: timpegtsmux: timpegtsmux etc... make dist_clean of make gst_ti_clean / make gst_ti Be sure that the libgstticodecplugin_la-gsttivideorate.o and libgstticodecplugin_la-gsttivideorate.lo is created after your make gst_ti Mika
    The reply is currently minimized Show
  • Accepted Answer

    ttump
    ttump
    Offline
    Tuesday, February 21 2012, 02:02 PM - #permalink
    0
    Mika Even better! Your time is much appreciated. Regards Tony
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 21 2012, 05:10 PM - #permalink
    0
    Tony, Did it work ? Mika
    The reply is currently minimized Show
  • Accepted Answer

    ttump
    ttump
    Offline
    Tuesday, February 21 2012, 05:41 PM - #permalink
    0
    Mika I can\\\'t try it until later tonight, I\\\'ll report back tomorrow. Tony
    The reply is currently minimized Show
  • Accepted Answer

    ttump
    ttump
    Offline
    Thursday, February 23 2012, 10:28 AM - #permalink
    0
    Mika Unfortunately I get a number of errors when I run Make gst_ti. I haven\\\'t had a chance to analyse why yet. Regards Tony
    The reply is currently minimized Show
  • Accepted Answer

    ttump
    ttump
    Offline
    Friday, February 24 2012, 01:09 PM - #permalink
    0
    Mika Just managed to get back to looking at the plugin. Now successfully cross compiled and running on IGEP2 :) The standard make_element from the gstreamer site had inserted boilerplate code that had already defined the Type and had some code at the end which initialised and defined the plugin assuming it would be a single plugin. Once I removed those it was error free. Many thanks once again for your help. Tony
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat