Le jeudi 01 novembre 2018 à 19:48 +0300, Ilya Aleshkov a écrit :
> I'm using a pipeline like this
> gst-launch-1.0 videotestsrc ! tee name=t t. ! queue ! glimagesink t.
> ! queue ! x264enc tune=zerolatency ! filesink location=video.h264
> Everything works. I'm able to display and record at the same time.
> Now I'd like to start/stop recording at any time. What is the best
> strategy to achieve this?
> I know that it's a pretty common question. I have already read a lot
> of materials. But this situation still isn't clear for me.
First, you'll need an app, since that's the limit of what gst-launch-
1.0 tool can handle. To me, the simple strategy is to keep the
recording pipeline separate. So you'd have:
videotestsrc ! tee name=t
t. ! queue ! glimagesaink
t. ! queue ! appsink