[gst-devel] 3gp demux plugin working on PC but not on target

Rahul Verma rahul.verma at sasken.com
Wed Jan 7 13:02:43 CET 2009


Hi,


> That said, why aren't you using qtdemux? GStreamer includes a fairly
> full-featured, high quality demuxer for
> quicktime-and-qt-derived-formats like 3gp, and it works well already.

We use the qtdemux extensively and find it very stable. We are developing out 3gp plugin as an experiment just to learn more about the GStreamer framework. 

> Without the source to your plugin, all we can say about this
> particular crash is "it's presumably a bug in your plugin, you'll need
> to fix it".

I will try to explain about my problem in more detail. 

here is the initial code snippet

GST_BOILERPLATE(Gst3gpReader, gst_3gpreader, GstElement, GST_TYPE_ELEMENT);

static gboolean plugin_init(GstPlugin *plugin)
{
	GST_DEBUG_CATEGORY_INIT(gst_3gpreader_debug, "SASKEN3GPREADER", 0, "Sasken 3gp reader");
	return gst_element_register(plugin, "sasken3gpreader", GST_RANK_NONE, GST_TYPE_3GPREADER);
}

static GstElementDetails element_details =
{
			"sasken 3gp reader",
			"3gpreader",
			"sasken 3gp reader reader for GStreamer",
			"Rahul Verma<rahul.verma at sasken.com>"
};

GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, "Sasken3gpReader",
		"Sasken 3gp reader plugin for GStreamer",
		plugin_init,
		VERSION,
		"Proprietary",
		"Sasken",
		"http://www.sasken.com")

static void gst_3gpreader_base_init(gpointer klass)
{
       //here I Just add the static pad templates to the element and the element details
}

static void gst_3gpreader_class_init(Gst3gpReaderClass *klass)
{
      //here I just assign the change_state function pointer
}

static void gst_3gpreader_init(Gst3gpReader *filter, Gst3gpReaderClass *klass)
{
      //here I set the activate, activate_push and activate_pull function pointer
      //add the sink pad
}

Then in the other functions I do the internal parsing and passing the buffer to the downstream plugins to be decoded and displayed. 

All this work fine in the host(PC). But on target it fails and i don't know how to proceed further. I am also attaching a part of the logs(related to 3gp reader because the entire logs was of 1.7 MB)

Also the pipeline 
filesrc location=c.3gp ! ffdemux_mov_mp4_m4a_3gp_3g2_mj2 ! ffdec_mpeg4 ! v4l2videosink, with GST_DEBUG=3, gives the same problem, but works fine with GST_DEBUG=0. 

My pipeline doesn't work for any GST_DEBUG level.

Any pointers will be helpful. 


Regards,
Rahul

>
> Hi,
>
> I am developing a 3gp Demux plugin.
>
> My pipeline is filesrc ! 3gpreader(custom) ! mpeg4decoder(custom) !
> xvimagesink. This works properly on the PC. But when I try to run the same
> pipeline on target
>
> filesrc ! 3gpreader(custom) ! mpeg4decoder(custom) ! v4l2videosink, it does
> not work.
>
> I get the following error :
>
> gst_bus_new:<bus0> [00m created new bus
>
> Caught SIGSEGV accessing address (nil)

Without the source to your plugin, all we can say about this
particular crash is "it's presumably a bug in your plugin, you'll need
to fix it".

That said, why aren't you using qtdemux? GStreamer includes a fairly
full-featured, high quality demuxer for
quicktime-and-qt-derived-formats like 3gp, and it works well already.

Mike

SASKEN BUSINESS DISCLAIMER
-------------------------
This message may contain confidential, proprietary or legally privileged information. In 
case you are not the original intended Recipient of the message, you must not, directly or 
indirectly, use, Disclose, distribute, print, or copy any part of this message and you are 
requested to delete it and inform the sender. Any views expressed in this message are 
those of the individual sender unless otherwise stated. Nothing contained in this message 
shall be construed as an offer or acceptance of any offer by Sasken Communication 
Technologies Limited ("Sasken") unless sent with that express intent and with due 
authority of Sasken. Sasken has taken enough precautions to prevent the spread of 
viruses. However the company accepts no liability for any damage caused by any virus 
transmitted by this email
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090107/da5034bb/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: logs_target1.txt
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090107/da5034bb/attachment.txt>


More information about the gstreamer-devel mailing list