This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:edge2:add-ons:edge2-mipi-camera [2024/01/10 04:17] jacobe |
products:sbc:edge2:add-ons:edge2-mipi-camera [2024/12/18 20:43] (current) gray [Record Video with Gstreamer] Update record command to reach 4k@60fps |
||
---|---|---|---|
Line 3: | Line 3: | ||
====== Edge2 MIPI Camera Usage ====== | ====== Edge2 MIPI Camera Usage ====== | ||
+ | |||
===== Linux ===== | ===== Linux ===== | ||
- | ==== Upgrade System ==== | + | <WRAP important > |
- | Please follow the [[products: | + | Edge2 CAM3 support **4K@60fps** record. If your **hardware |
- | For new kernel(5.10.160) | + | **Check Hardware Version** |
- | ``` | + | ```shell |
- | $ sudo apt istall camera-engine-rkaiq | + | $ cat / |
- | $ sudo reboot | + | |
``` | ``` | ||
+ | V13 or later version will show like '' | ||
+ | |||
+ | Due to the different hardware versions, **CAM2 is set to 4K@30fps by default**. This is for compatibility with V11 or V12 hardware versions to | ||
+ | ensure proper operation. If your device supports 4K@60fps, you can enable this mode by adding an overlay node '' | ||
+ | |||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | About IMX585 and IMX678, the two cameras were disabled by default. So V11 or V12 hardware version should replace '' | ||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | V13 or later hardware version should be set '' | ||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | You need to reboot the device to take effect. | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Upgrade System ==== | ||
+ | |||
+ | Please follow the [[products: | ||
==== Video Node ==== | ==== Video Node ==== | ||
+ | |||
You can find the video nodes from the table below. | You can find the video nodes from the table below. | ||
- | | ^ Video Node(5.10.66) | + | | ^ Video Node ^ |
- | ^ CAM1 | + | ^ CAM1 | / |
- | ^ CAM2 | + | ^ CAM2 | / |
- | ^ CAM3 | + | ^ CAM3 | / |
==== Record Video with Gstreamer ==== | ==== Record Video with Gstreamer ==== | ||
+ | |||
Record video from '' | Record video from '' | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 v4l2src device=/ |
``` | ``` | ||
Line 36: | Line 63: | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 v4l2src device=/ |
``` | ``` | ||
+ | For 4K@60fps, framerate should be set 60/1 | ||
Record video from '' | Record video from '' | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 v4l2src device=/ |
``` | ``` | ||
+ | |||
/* | /* | ||
==== Record Video with OpenCV ==== | ==== Record Video with OpenCV ==== | ||
Line 136: | Line 165: | ||
```shell | ```shell | ||
- | v4l2-ctl -d /dev/video33 | + | v4l2-ctl -d /dev/video42 |
``` | ``` | ||
Line 142: | Line 171: | ||
```shell | ```shell | ||
- | v4l2-ctl -d /dev/video24 | + | v4l2-ctl -d /dev/video33 |
``` | ``` | ||
Line 148: | Line 177: | ||
```shell | ```shell | ||
- | v4l2-ctl -d /dev/video42 | + | v4l2-ctl -d /dev/video51 |
``` | ``` | ||