Problem with multiple tees in pipeline

Nicolas Dufresne nicolas.dufresne at collabora.com
Mon Jul 21 08:46:46 PDT 2014


Le lundi 21 juillet 2014 à 07:54 -0700, yoyosuper8 a écrit :
> Hey Nicolas,
> 
> I'm going to try your suggestion and report back. But I have a quick
> question, if this works, do you think I can apply the same principle to
> record the video to a file (mp4 or avi) and also do RTP?

Recording a video, and taking a single snapshot is different use case.
For recording, you'll have to use a tee I think. But instead of using a
valve, you could dynamically request a pad and link it. When done, add a
blocking pad probe, and in the callback, send EOS and unlink. This way
you keep higher control. Obviously, you may hit bugs, as this is a bit
more advance use case.

> 
> I'm eventually switching from videotestsrc to v4l2src, but with v4l2src I
> can't really have multiple pipelines and connect to the same source. So, I
> thought using tee and valves would help. Anyways, I'll try your suggestion
> and report back with my results.

You also have the possibility to use camerabin for such use case. It's a
bit unstable on 1.2, quite better on 1.4. This is what Cheese uses.

cheers,
Nicolas



More information about the gstreamer-devel mailing list