RidgeRun Linux Camera Drivers - Examples - Jetson - GStreamer Examples

From RidgeRun Developer Wiki
Revision as of 21:38, 3 September 2024 by Dmonge (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Preferred Partner Logo 3 Preferred Partner Logo 3





GStreamer Examples

The following GStreamer pipelines demonstrates how to capture, display and encode video from a MIPI CSI camera:

1080p@30 capture and display

gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12, framerate=30/1' ! queue ! nvvidconv ! autovideosink

1080p@30 capture and h264 encoding

FILE=filename.mp4
gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12, framerate=30/1' ! nvv4l2h264enc bitrate=8000000 ! h264parse ! qtmux ! filesink location=$FILE

1080p@30 capture and h265 encoding

FILE=filename.mp4
gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12, framerate=30/1' ! nvv4l2h265enc bitrate=8000000 ! h265parse ! qtmux ! filesink location=$FILE -e
Note
Visit our NVIDIA Jetpack Reference guide wiki for more information about Jetson boards and NVIDIA Jetpack.