How to dump static imagery periodically from video source and also encode the video for RTSP

Matthew Thyer matthew.thyer at
Tue Sep 4 23:30:26 UTC 2018


I'm encoding H.264 video for an RTSP server (using GStreamer RTSP 1.14.2) and also have a requirement to periodically dump static images to disk.
My current pipeline is similar to:
v4l2src ! capsfilter caps=video/x-raw,format=YUYV,width=640,height=480,framerate=30/1 ! x264enc ! capsfilter caps=video/x-h264,profile=high ! rtph264pay name=pay0 pt=96

This pipeline is given to gst_rtsp_media_factory_set_launch().

What would be the best approach to being able to periodically (e.g. at 5 fps) dump static images (say PNG, TIFF or JPEG) with timestamped filenames as well as having that video source be encoded for the pipeline?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list