GstRerunSink - Example - GstRerunSink: stream to rerun viewer
The GstRerunSink - Example - GstRerunSink: stream to rerun viewer documentation for RidgeRun is presently being developed. |
GstRerunSink | |
---|---|
![]() | |
Features and Limitations | |
Building and Installation Guide | |
Examples | |
|
|
Contact Us |
This page provides a test pipeline to use with the GstRerunSink element and redirect its output to a Rerun viewer
![]() | Note: NVMM direct mapping is only supported on Jetson platforms. |
The perf element can be downloaded from the gst-perf GitHub repository. Otherwise, the element can be removed from the pipeline without any issues.
Spawn Local Viewer
Example pipeline
# Test pattern visualization (spawns viewer by default) gst-launch-1.0 videotestsrc ! \ video/x-raw,format=RGB,width=640,height=480 ! \ rerunsink recording-id="test" image-path="camera/image"
Performance stats
TODO... GST-PERF INFO --> Timestamp: 0:02:13.615967657; Bps: 776; fps: 60.0; CPU: 8;
Disable viewer spawning
Example pipeline
gst-launch-1.0 videotestsrc ! \ video/x-raw,format=RGB ! \ rerunsink recording-id="test" image-path="camera/image" spawn-viewer=false
Performance stats
TODO GST-PERF INFO --> Timestamp: 0:03:56.819087040; Bps: 776; fps: 60.0; CPU: 16;
Connect to Remote Viewer
Example pipeline
# Setting a custom grpc-address automatically enables gRPC mode gst-launch-1.0 videotestsrc ! \ video/x-raw,format=RGB ! \ rerunsink recording-id="remote-test" image-path="camera/image" \ grpc-address="grpc://192.168.1.100:9876"
Performance stats
TODO... GST-PERF INFO --> Timestamp: 0:02:13.615967657; Bps: 776; fps: 60.0; CPU: 8;
Connect to local viewer on custom port
Example pipeline
gst-launch-1.0 videotestsrc ! \ video/x-raw,format=RGB ! \ rerunsink recording-id="test" image-path="camera/image" \ grpc-address="grpc://127.0.0.1:9090"
Performance stats
TODO GST-PERF INFO --> Timestamp: 0:03:56.819087040; Bps: 776; fps: 60.0; CPU: 16;
Hardware-accelerated decode with remote viewer
Example pipeline
gst-launch-1.0 filesrc location=video.mp4 ! \ qtdemux ! h264parse ! nvv4l2decoder ! \ 'video/x-raw(memory:NVMM),format=NV12' ! \ rerunsink recording-id="hw-decode" image-path="video/decoded" \ grpc-address="grpc://0.0.0.5:9876"
Performance stats
TODO GST-PERF INFO --> Timestamp: 0:03:56.819087040; Bps: 776; fps: 60.0; CPU: 16;