Skip to content

Instantly share code, notes, and snippets.

@bangonkali
Last active May 16, 2022 04:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bangonkali/186ff2ab5e79a9aa98aafba5ff61bd3d to your computer and use it in GitHub Desktop.
Save bangonkali/186ff2ab5e79a9aa98aafba5ff61bd3d to your computer and use it in GitHub Desktop.
Jetson Xavier NX Notes

Docker Snippets

Create a deepstream-l4t docker container instance.

sudo docker run -it \
  --rm \
  --net=host \
  --runtime nvidia \
  -e DISPLAY=$DISPLAY \
  -w /opt/nvidia/deepstream/deepstream-5.1 \
  --device=/dev/video0:/dev/video0:rwm \
  -v /tmp/.X11-unix/:/tmp/.X11-unix \
  nvcr.io/nvidia/deepstream-l4t:5.1-21.02-samples

Testing gst-launch

gst-launch-1.0 v4l2src ! video/x-raw-yuv,width=128,height=96,format='(fourcc)'UYVY ! videoconvert ! ffenc_h263 ! video/x-h263 ! rtph263ppay pt=96 ! udpsink host=192.168.1.1 port=5000 sync=false
gst-launch-1.0 v4l2src device="/dev/video0" ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12, framerate=30/1' ! xvimagesink -e

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment