Skip to main content

Using Camera 4K on ROCK 5B

4K Camera Installation
4K Camera Installation
4K Camera Installation

  • Prepare Radxa Camera 4K and connect to ROCK5B through FPC cable.

  • Open the Kconsole terminal via the Application Launcher in the lower left corner and run the rsetup command:

radxa@rock-5b:~$ rsetup
[Caution]
  1. Please enable the [] Enable Radxa Camera 4K item Overlay.
  2. Quit and reboot after [*] Enable Radxa Camera 4K is successfully displayed for the configuration to take effect.
    :::

Test Radxa Camera 4K

You can open the camera preview using the terminal command.

gst-launch-1.0 v4l2src device=/dev/video11 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink;

Take a picture using the following command.

gst-launch-1.0 v4l2src device=/dev/video11 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! multifilesink location=file.name.jpg;

Use the following command to take a video.

gst-launch-1.0 v4l2src num-buffers=512 device=/dev/video11 io-mode=4 ! videoconvert ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! mpegtsmux ! filesink location=/home/radxa/file.name.mp4