I created a pipeline as this:
v4l2src -> tee -> queue -> encoder -> avimux -> filesink
tee -> queue -> v4l2sink
Now I want to pause the recording(keep loopback, but pause encoder), and when I resume, I expect the recoding file continues from where I resume. I tried to use gst_element_set_state: If I pause the pipeline, the loopback stops. If I pause the encoder, the return value of gst_element_set_state is ok, but the encoder not really pauses. I paused the avimux, same with encoder. Can anyone help? Thank a lot.