<div dir="ltr">Ok, thanks, maybe a custom element will be the best alternative.<br>I've read about gnonlin and it can change a src with precisely control of time, but I don't sure if I can change the srcs of gnonlin when  the gnlcomposition is already in playing state.<br>
<br>For example, if I want to add and play a new video while the pipeline is playing another video.<br>1) Is this possible with gnonlin?<br>2) On gstreamer 1.0,  What is the best alternative to do this? gnonlin is supported on 1.0?<br>
<br>Thanks a lot.<br><div><br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/3/27 Donny Viszneki <span dir="ltr"><<a href="mailto:donny.viszneki@gmail.com" target="_blank">donny.viszneki@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Perhaps you could implement your own element which is made to<br>
dynamically change its source? The investigation might provide useful<br>
insight.<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Mar 26, 2013 at 9:16 PM, Lautaro Woites <<a href="mailto:lauchapc87@gmail.com">lauchapc87@gmail.com</a>> wrote:<br>
> Ok, discarding both the old filesrc and decoder, creating the new ones and<br>
> linking them to the pipeline, works ok.<br>
><br>
> My next step was adding a timeoverlay to the pipeline, the problems I<br>
> encountered were:<br>
><br>
> 1) When I changed the video source, the displayed time by timeoverlay jumps<br>
> up to the end of the current video time<br>
>  ( display_time = display_time + lenght_of_current_video).<br>
><br>
> Regardless of the display time issue. The pipeline the form I builded is a<br>
> valid one?<br>
> Am I doing something wrong?<br>
><br>
> 2) I could not control the precise time for change  the video source.<br>
> For example, change the video source after 10 seconds from the first video.<br>
> This is possible?<br>
><br>
> Thanks in advance<br>
><br>
><br>
> 2013/3/5 Lautaro Woites <<a href="mailto:lauchapc87@gmail.com">lauchapc87@gmail.com</a>><br>
>><br>
>> Thanks Wim.<br>
>><br>
>> I will try to add a videomixer to the pipeline removing the old source and<br>
>> adding the new one.<br>
>> What do you think?<br>
>><br>
>><br>
>><br>
>> 2013/3/5 Wim Taymans <<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>><br>
>>><br>
>>> On 03/05/2013 04:24 PM, Lautaro Woites wrote:<br>
>>>><br>
>>>> Hi all,<br>
>>>><br>
>>>> I am new to gstreamer and I writing a gstreamer app (0.10.35) on python.<br>
>>>> My app shows a video on the screen using the next pipeline:<br>
>>>><br>
>>>> filesrc ! decodebin2 ! queue2 ! videoscale ! capsfilter<br>
>>>> caps="video/x-raw-yuv height=640, width=480" !<br>
>>>><br>
>>>> The decoder and the queue are linked dinamically using the "pad-added"<br>
>>>> signal.<br>
>>>><br>
>>>> I tryed to change the location property on the filesrc but is not<br>
>>>> possible.<br>
>>>> Also I tryed to use a multifilesrc and change the location property but<br>
>>>> didn't work.<br>
>>>><br>
>>>> Now I'm trying to create and link a new filesrc. This are the steps I'm<br>
>>>> following:<br>
>>>><br>
>>>>     1) set the STATE of the old filesrc to NULL<br>
>>>>     2) create a new filesrc and set the new location to it.<br>
>>>>     3) unlink the old filesrc with the decoder<br>
>>>>     4) unlink the decoder with the queue<br>
>>>>     5) link the new filesrc with the decoder<br>
>>>>     6) set the STATE of the new filesrc to PLAYING<br>
>>>><br>
>>>> This didn't work. The decoder "pad-added" callback is not called and the<br>
>>>> pipeline is paused because a not-linked error on the old filsesrc<br>
>>>><br>
>>>> My questions are:<br>
>>>> 1) How Can unlink the old filesrc and link the new one dinamically?<br>
>>><br>
>>> You can't do that in general.<br>
>>><br>
>>><br>
>>>> 2) What are the best approach to change the video source location?<br>
>>><br>
>>> You make a new pipeline with the new video source location and then<br>
>>> mix/swap it in like before your<br>
>>> videoscale or so.<br>
>>><br>
>>> wim<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> gstreamer-devel mailing list<br>
>>>> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
>>>> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> gstreamer-devel mailing list<br>
>>> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
>>> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
>><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
<a href="http://codebad.com/" target="_blank">http://codebad.com/</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>