Skip to content

Instantly share code, notes, and snippets.

@sreimers
Last active September 3, 2024 13:12
Show Gist options
  • Save sreimers/cb2afad2992cb7b7af367f5c5b20abce to your computer and use it in GitHub Desktop.
Save sreimers/cb2afad2992cb7b7af367f5c5b20abce to your computer and use it in GitHub Desktop.
v4l2/gst radxa examples
v4l2-ctl --get-edid | edid-decode
v4l2-ctl -D -d /dev/video0 --get-fmt-video
v4l2-ctl --verbose -d /dev/video0 --set-fmt-video=width=3840,height=2160,pixelformat='NV12'
# radxa 4k cam
gst-launch-1.0 v4l2src device=/dev/video11 ! video/x-raw,format=NV12,width=3840,height=2160, framerate=30/1 ! xvimagesink
GST_VIDEO_CONVERT_USE_RGA=1 gst-launch-1.0 -e v4l2src device=/dev/video0 io-mode=dmabuf ! videorate ! 'video/x-raw,format=NV16,width=1920,height=1080,framerate=30/1' ! mpph264enc bps=80000 bps-max=80000 ! filesink location=/dev/shm/test.h264
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment