Gstreamer how to record, take screenshot of a stream

1.8k views Asked by At

I am streaming video from my raspberry using gstreamer and h264 decoder as below:

raspivid -t 999999 -h 720 -w 1080 -fps 25 -hf -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=192.168.2.7 port=5000

From my desktop I am able to stream the video as below:

gst-launch-1.0 -v tcpclientsrc host=192.168.2.7 port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! gdkpixbufoverlay location=gstreamer-logo.svg offset-x=20 offset-y=20 ! autovideosink sync=false

I am looking for the following , any help is appreciated.Thanks.

  1. Capture the screenshot of the video while streaming
  2. Record the stream to a local file
  3. I was able to logo overlay using gdkpixbufoverlay, want to add time also. Tried clockoverlay, but the stream got struck.
0

There are 0 answers