<div dir="ltr"><div><div><div><div>Hi,<br></div>I want to make a basic program with gstreamer that allows me to switch between a few video inputs.<br><br></div>What I tried:<br></div>- Switching between 2 videotestsrc elements with different patterns: <br>works perfectly<br><br></div>- Switching between 2 videotestsrc elements + png image ( filesrc ! pngdc ! imagefreeze ): <br>Switching from a videotestsrc to the image is instant but switching "away" from the image (to one of the videotestsrc elements) has a significant delay, and even switching between test elements after the initial image rendering has delay (although it's a lot faster)<br clear="all"><div><div><div><div><div><div><div><br></div><div>- Switching between 2 videotestsrc elements + rtmpsrc:<br><br></div><div>The cycle starts stalled until rtmpsrc gets it's first 'chunk' of video (1-2s), which is OK, but would be better if it didn't, as it's not the selected videomixer input, I don't care about it's state until I want to show it. <br>Works for a single 'cycle', I can see both test elements and the rtmp source, but when trying to switch away from the RTMP video I get spammed to death with:<br><br>0:00:32.948702048 11297 0x55853e4d5e80 WARN              videomixer videomixer2.c:906:gst_videomixer2_fill_queues:<mix:sink_0> Buffer from the past, dropping<br><br></div><div>where sink_0 is a **videotestsrc**, the program is unusable after this point.<br><br></div><div>Relevant code:<br><br><a href="http://pastebin.com/tQ1Fv8Pb">http://pastebin.com/tQ1Fv8Pb</a> (and <a href="http://pastebin.com/raw/tQ1Fv8Pb">http://pastebin.com/raw/tQ1Fv8Pb</a> for raw text)<br><br></div><div>David<br></div><div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><b>Stack</b> is the new term for "I have no idea what I'm actually
using".</div></div></div></div></div>
</div></div></div></div></div></div></div></div>