<div dir="ltr">Hi Sebastian,<div><br></div><div>I've updated my code to use two uridecodebins as you suggested. Thank you very much, it works wonderful. The transition is seamingless. Now I encountered another problem - when I'm trying to change the playback rate and I send the seek_event it has a small lag. Someone on freenode suggested that I should be using a non-flushing seek event, but when I try to do that, my entire video stops.</div>
<div><br></div><div>The example code you mentioned has this problem as well - when modifying the playback rate it has a small pause. I'm sure gstreamer is good enough to just modify the playback rate without the need to seek anywhere new, but I can't seem to find the right combination for this. Any suggestions?</div>
<div><br></div><div>I've tried the obvious with GST_SEEK_TYPE_NONE, but it doesn't appear to be working. If I don't flush it gets stuck (I tried with avidemux, qtdemux and matroska, they all do more or less the same, except avi that plays the sound, but not the video) and if I flush, it works good, but I do get the lag. I also tried the step event, but I'm not sure it's what I'm looking for.</div>
<div><br></div><div>Any pointers highly appreciated.</div><div><br></div><div>Thank you,</div><div>Alex</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 8, 2014 at 6:46 AM, Alexandru Palade <span dir="ltr"><<a href="mailto:alexandru.palade@loopback.ro" target="_blank">alexandru.palade@loopback.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you, Sebastian. Thanks for pointing me to <span style="font-family:arial,sans-serif;font-size:13px">gst-plugins-base/tests/</span><span style="font-family:arial,sans-serif;font-size:13px">examples/playback. It is extremely interesting, it has the exact same problem I have. If I tick the loop option the seek bar and position is reported correctly, but the image is stuck at the last frame from the previous loop. It gets unfreezed the moment I modify one of the options (like the playback rate or whatever).</span><div>
<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Seeing that you are one of the authors of that example, could you give me some hints on why that happens?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">I appreciate your time.</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
<div><div class="h5">
On Wed, May 7, 2014 at 10:30 PM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
<div>On Mi, 2014-05-07 at 19:50 +0300, Alexandru Palade wrote:<br>
> Thank you, Tim, I'll give it a shot. I plan expanding this to have the<br>
> loop, but based on input to change dynamically the video and then go back<br>
> to the loop, so I'm kind of stuck with about-to finish, ain't I?<br>
<br>
</div>Most likely it will be easier for your use case to not use playbin but<br>
instead use multiple uridecodebins (one per source) that are dynamically<br>
connected to a playsink or disconnected from it. That allows you to have<br>
much more fine-grained control over when to switch between files, to<br>
prepare the next file with an appropriate rate already, etc.<br>
<div><br>
> I'll have a look at frame stepping examples as you said, but if you have a<br>
> suggestion on where to start with playbin (or any other solution for<br>
> looping a single file -> looping another file on a specific input -> back<br>
> to looping the first file and all this with dynamic playback speed).<br>
<br>
</div>Take a look at gst-plugins-base/tests/examples/playback for all these<br>
things btw, it implements a simple UI that allows you to seek, do frame<br>
stepping, etc.<br>
<span><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
Expertise, Straight from the Source<br>
</font></span><br></div></div><div class="">_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">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></div></blockquote></div><br></div>
</blockquote></div><br></div>