Dynamically start and stop recording with tee branch to create seekable videos

gstreamer_webcam tmcxujian at gmail.com
Wed Dec 11 21:43:33 UTC 2019


Hello, I'm trying to start and stop a recording with a tee branch. Every time
when asked to start recording, tee will create a new branch with a unique
id. When asked to stop recording, the tee branch will be stopped and removed
(the other tee branch and pipeline is still functioning). How can I send EOS
to make the generated videos seekable? 

One relevant hint in
http://gstreamer-devel.966125.n4.nabble.com/Dynamically-start-and-stop-recording-using-valve-td4670091.html,
but I don't know how to check if the EOS actually reaches the filesink
before setting the pipeline state to NULL. 

Any ideas or code snippet would be appreciated.

My pipeline is something like this :

                  ^ ->  queue->x264enc->avimux->filesink
                  |
src->caps->tee-> queue->x264enc->avimux->filesink





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list