GstRerunSink - Example - GstRerunSink: stream to file
The GstRerunSink - Example - GstRerunSink: stream to file documentation for RidgeRun is presently being developed. |
GstRerunSink | |
---|---|
![]() | |
Features and Limitations | |
Building and Installation Guide | |
Examples | |
|
|
Contact Us |
This page provides example pipelines to use with the GstRerunSink element and redirect its output to a local file.
![]() | Note: NVMM direct mapping is only supported on Jetson platforms. |
The perf element can be downloaded from gst-perf Git repository. Otherwise, the element can be removed from the pipeline without any issues.
Stream to a file
Example pipeline
# Setting output-file automatically enables disk saving mode gst-launch-1.0 videotestsrc num-buffers=300 ! \ video/x-raw,format=RGB,width=640,height=480 ! \ rerunsink recording-id="test" image-path="camera/image" \ output-file="recording.rrd"
Performance stats
TODO... GST-PERF INFO --> Timestamp: 0:02:13.615967657; Bps: 776; fps: 60.0; CPU: 8;
Record webcam to file with timestamp
Example pipeline
gst-launch-1.0 v4l2src num-buffers=600 ! \ video/x-raw,format=YUY2 ! videoconvert ! \ video/x-raw,format=RGB ! \ rerunsink recording-id="webcam-recording" image-path="camera/front" \ output-file="/tmp/webcam_$(date +%Y%m%d_%H%M%S).rrd"
Performance stats
TODO... GST-PERF INFO --> Timestamp: 0:02:13.615967657; Bps: 776; fps: 60.0; CPU: 8;
Example with NVMM support
Example pipeline
# NVIDIA camera source with hardware acceleration, save to disk gst-launch-1.0 nvv4l2camerasrc num-buffers=1800 ! \ 'video/x-raw(memory:NVMM),format=NV12,width=1920,height=1080' ! \ rerunsink recording-id="jetson-camera" image-path="camera/main" \ output-file="jetson_capture.rrd"
Performance stats
TODO GST-PERF INFO --> Timestamp: 0:03:56.819087040; Bps: 776; fps: 60.0; CPU: 16;