Use playbin for seeking on Gstreamer

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Use playbin for seeking on Gstreamer

signifer_fata
Hello all,

This is my first time posting so I hope my question conveys everything clearly and to the standards of the board.
I have created a Gstreamer pipeline for streaming from a remote camera attached to a node to my computer which then opens the video stream while simultaneously recording it using two sinks.

STREAM

gst-launch-1.0 -v -e v4l2src device=/dev/video0 ! video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse ! rtph264pay pt=127 config-interval=4 ! udpsink host=xxx.xxx.x.xxx port=xxxx

VIEW AND SAVE

gst-launch-1.0 -e udpsrc port=xxxx ! application/x-rtp, payload=127 ! rtph264depay ! tee name=t ! queue ! avdec_h264 ! xvimagesink sync=false t. ! queue ! video/x-h264 ! h264parse ! mp4mux ! filesink location=filelocation.mp4

The pipeline works exactly as I would like it.

However, now I am trying to adjust my pipeline to use plugins that would allow me to seek and navigate through the stream, accessing the recording video while the stream continues.

I've read that Playbin might allow me to do this so I was hoping someone could give a beginner a hand in describing its implementation. Thanks in advance.

Regards,

Seth