Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search


< Rock5‎ | accessories
Revision as of 03:27, 3 December 2022 by Stephen (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
    ROCK 5 >  Accessories >  How to use Radxa Camera 4K

How to use Radxa Camera 4K

Hardware connection


Software configuration

  • Add one line to file /boot/config.txt. Like this.
  • And then execute command.
  • Reboot the device, you would see devices /dev/video0 to /dev/video19 are created.
  • Check media pineline
# media-ctl -p
  • Start rkaiq camera preview.

Execute the following command with root user in terminal on desktop.

$ sudo su

The content of file

# cat /usr/local/bin/

#export GST_DEBUG=*:5
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/aarch64-linux-gnu/gstreamer-1.0
echo "Start RKAIQ Camera Preview!"

# Example: Radxa Camera 4K on ROCK 5B
gst-launch-1.0 v4l2src device=/dev/video11 ! video/x-raw,format=NV12,width=3840,height=2160, framerate=30/1 ! xvimagesink