Multiple Source Pipeline Hangs

John Westing john.blank.westing at gmail.com
Mon May 6 13:50:11 PDT 2013


I read the article and understand that the problem is likely an issue with
threading, hence the reason for the {} brackets described in my first post:
{} brackets in a gst-launch pipeline spawn an additional thread for the
elements surrounded in the brackets. However, in my case when I use the {}
brackets I get the GStreamer warning "Error during parsing: syntax error,
unexpected $undefined" as described in my first post.


On Mon, May 6, 2013 at 4:26 PM, Chuck Crisler <ccrisler at mutualink.net>wrote:

> You probably need to put them in separate threads. You can do that with
> queues or by explicitly putting them into threads.
>
>
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-threads.html
>
>
>
> On Mon, May 6, 2013 at 3:50 PM, johnwesting <john.blank.westing at gmail.com>wrote:
>
>> I have a pipeline with multiple sources and my pipeline does caps
>> negotiation
>> in serial for each source instead of in parallel like I would expect, i.e.
>> the GstBaseTransform::Start() method of the second source is not called
>> until after the first source has negotiated its capabilities. I've been
>> trying to find a solution for most of the day but can't find anything. I'm
>> using gst-launch and the pipeline examples I am finding online aren't
>> helping me.
>>
>> My pipeline looks something like this:
>>
>> gst-launch interleave name=i ! alsasink \
>> myfakesrc ! myfakedec ! queue ! i. \
>> myfakesrc ! myfakedec ! queue ! i.
>>
>> The second instance of myfakesrc does not get started until after the caps
>> are negotiated for the first myfakessrc element. I want the 2 sources to
>> run
>> completely independent of each other, as if they are different processes,
>> but joined at the interleave element. I tried surrounding the last 2 lines
>> with {} brackets, e.g. { myfakesrc ... i. } \, but it still didn't work
>> and
>> I got the GStreamer warning: "Error during parsing: syntax error,
>> unexpected
>> $undefined". I also tried using [] brackets but got the same GStreamer
>> warning. Please help.
>>
>> Thanks,
>> John
>>
>>
>>
>> --
>> View this message in context:
>> http://gstreamer-devel.966125.n4.nabble.com/Multiple-Source-Pipeline-Hangs-tp4659808.html
>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130506/6b1af7ff/attachment.html>


More information about the gstreamer-devel mailing list