Using input-selector with various sources, problems

David Ventura davidventura27 at gmail.com
Wed Dec 28 16:11:57 UTC 2016


Hi,
I want to make a basic program with gstreamer that allows me to switch
between a few video inputs.

What I tried:
- Switching between 2 videotestsrc elements with different patterns:
works perfectly

- Switching between 2 videotestsrc elements + png image ( filesrc ! pngdc !
imagefreeze ):
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)

- Switching between 2 videotestsrc elements + rtmpsrc:

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.
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:

0:00:32.948702048 11297 0x55853e4d5e80 WARN              videomixer
videomixer2.c:906:gst_videomixer2_fill_queues:<mix:sink_0> Buffer from the
past, dropping

where sink_0 is a **videotestsrc**, the program is unusable after this
point.

Relevant code:

http://pastebin.com/tQ1Fv8Pb (and http://pastebin.com/raw/tQ1Fv8Pb for raw
text)

David
-- 
*Stack* is the new term for "I have no idea what I'm actually using".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161228/5b63cdee/attachment.html>


More information about the gstreamer-devel mailing list