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

Difference between revisions of "Rock5/accessories/radxa-camera-4k"

(Created page with "{{rock5_header}} {{Languages|rock5/guide/debian}} ROCK 5 > Accessories > rock5/accessories/radxa-camera-4k | How to use Radxa Camer...")
 
 
Line 24: Line 24:
  
 
* Reboot the device, you would see devices /dev/video0 to /dev/video19 are created.
 
* Reboot the device, you would see devices /dev/video0 to /dev/video19 are created.
 +
 +
* Check media pineline
 +
 +
# media-ctl -p
  
 
* Start rkaiq camera preview.
 
* Start rkaiq camera preview.
Line 30: Line 34:
  
 
  $ sudo su
 
  $ sudo su
  # gst-launch-1.0 v4l2src device=/dev/video11 ! video/x-raw,format=NV12,width=3840,height=2160, framerate=30/1 ! xvimagesink
+
  # test_camera_rkaiq.sh
 +
 
 +
The content of file test_camera_rkaiq.sh
 +
 
 +
<pre>
 +
# cat /usr/local/bin/test_camera_rkaiq.sh
 +
#!/bin/bash
 +
 
 +
#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
 +
</pre>
  
 
==== Troubleshooting ====
 
==== Troubleshooting ====
  
 
* Post your issue on the forum: https://forum.radxa.com/c/rock5
 
* Post your issue on the forum: https://forum.radxa.com/c/rock5

Latest revision as of 03:27, 3 December 2022

    ROCK 5 >  Accessories >  How to use Radxa Camera 4K

How to use Radxa Camera 4K

Hardware connection

Rock-5b-radxa-camera-4k.jpeg

Software configuration

  • Add one line to file /boot/config.txt. Like this.
dtoverlay=rock-5ab-camera-imx415
  • And then execute command.
# update_extlinux.sh
  • 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
# test_camera_rkaiq.sh

The content of file test_camera_rkaiq.sh

# cat /usr/local/bin/test_camera_rkaiq.sh
#!/bin/bash

#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

Troubleshooting