[gst-devel] Pipeline with multiple filesources is stalled.
sledge hammer
sledgehammer_999 at hotmail.com
Wed Sep 29 16:28:34 CEST 2010
I actually made the code reproduce my problem. I don't add the textoverlay at the decoding of the video stream. I add it later on the decoding of the sub file and shove it between the ffmpegcolorspace and xvimagesink. I suppose this forceful unlinking has something to do with it. New code-> http://pastebin.com/ZPmj810S
What should I do? (I don't want to put unnecessary textoverlays if there's no subtitle file).
From: sledgehammer_999 at hotmail.com
To: gstreamer-devel at lists.sourceforge.net
Date: Wed, 29 Sep 2010 16:06:24 +0300
Subject: Re: [gst-devel] Pipeline with multiple filesources is stalled.
@Sandeep Prakash
Yes, that was the problem. And it was pretty stupid too.
@thiago
You were right, it works fine in my example code. So I definetely do something wrong in my code. I will have a closer look into it. For anyone else whose interested here is a link to example code that plays a DivX/XviD-mp3 AVI file with external SRT subs(compile as C++ source)-->http://pastebin.com/vTJh7FcM
> Date: Tue, 28 Sep 2010 21:49:53 -0700
> From: 123sandy at gmail.com
> To: gstreamer-devel at lists.sourceforge.net
> Subject: Re: [gst-devel] Pipeline with multiple filesources is stalled.
>
>
> Hi
>
> One problem I found in the pad-added callback is:
>
> /*plug a queue in the pad and decided what to do according to the mimetype*/
> queue = gst_element_factory_make("queue", NULL);
> sinkpad = gst_element_get_static_pad(queue, "sink");
> gst_pad_link(pad, sinkpad);
> gst_object_unref(sinkpad);
>
> queue element has to be part of the bin for you to do a gst_pad_link. Here
> gst_pad_link will
> fail.
>
> /*plug a queue in the pad and decided what to do according to the mimetype*/
> queue = gst_element_factory_make("queue", NULL);
> gst_bin_add(GST_BIN(pipeline), queue);
> sinkpad = gst_element_get_static_pad(queue, "sink");
> gst_pad_link(pad, sinkpad);
> gst_object_unref(sinkpad);
>
> Next time better check all the return values.
>
> Regards,
> Sandeep Prakash
> http://sandeepprakash.homeip.net
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Pipeline-with-multiple-filesources-is-stalled-tp2714279p2718318.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100929/046d98e9/attachment.htm>
More information about the gstreamer-devel
mailing list