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/10/29 05:38] jacobe |
products:sbc:edge2:add-ons:edge2-mipi-camera [2025/09/05 04:55] (current) gray split camera performance table |
||
---|---|---|---|
Line 4: | Line 4: | ||
====== Edge2 MIPI Camera Usage ====== | ====== Edge2 MIPI Camera Usage ====== | ||
- | Edge2 CAM3 support **4K@60fps** record. If your **hardware version is V13**, the **CAM2** also can support **4K@60fps** record. | + | |
+ | ===== Linux ===== | ||
+ | |||
+ | |||
+ | <WRAP important > | ||
+ | |||
+ | Edge2 CAM3 support **4K@60fps** record. If your **hardware version is V13 or later**, the **CAM2** also can support **4K@60fps** record. | ||
**Check Hardware Version** | **Check Hardware Version** | ||
- | ``` | + | ```shell |
$ cat / | $ cat / | ||
``` | ``` | ||
- | V13 will show like '' | + | V13 or later version |
- | Due to the different hardware versions, **CAM2 is set to 4K@30fps by default**. This is for compatibility with non-V13 | + | 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 |
- | $ sudo vi / | + | |
- | fdt_overlays=cam2-4lane | + | |
- | ``` | + | |
- | ===== Linux ===== | ||
- | ==== Upgrade System ==== | + | Edit ''/ |
- | Please follow the [[products: | + | <tabbox Fenix 1.7.4 or older version> |
- | ==== Video Node ==== | + | About IMX585 and IMX678, the two cameras were disabled by default. So V11 or V12 hardware version should replace '' |
+ | Edit ''/ | ||
- | You can find the video nodes from the table below. | ||
- | | ^ Video Node(5.10.66) | + | V13 or later hardware version should be set '' |
- | ^ CAM1 | / | + | |
- | ^ CAM2 | / | + | |
- | ^ CAM3 | / | + | |
- | ==== Record Video with Gstreamer ==== | + | Edit ''/ |
- | < | + | < |
- | Record video from '' | + | We enbale imx585 and imx678 by default, so just add overlay node '' |
- | ```shell | + | </tabbox> |
- | gst-launch-1.0 v4l2src device=/dev/video33 io-mode=dmabuf num-buffers=300 ! mpph264enc ! h264parse ! qtmux ! filesink location=/ | + | |
- | ``` | + | |
- | Record video from '' | + | You need to reboot the device to take effect. |
- | ```shell | + | </WRAP> |
- | gst-launch-1.0 v4l2src device=/dev/video24 io-mode=dmabuf num-buffers=300 ! mpph264enc ! h264parse ! qtmux ! filesink location=/ | + | |
- | ``` | + | |
- | Record video from '' | + | ==== Upgrade System ==== |
- | ```shell | + | Please follow the [[products: |
- | gst-launch-1.0 v4l2src device=/ | + | |
- | ``` | + | ==== Video Node ==== |
+ | |||
+ | |||
+ | You can find the video nodes from the table below. | ||
+ | |||
+ | | ^ Video Node ^ | ||
+ | ^ CAM1 | | ||
+ | ^ CAM2 | / | ||
+ | ^ CAM3 | / | ||
+ | |||
+ | ==== Record Video with Gstreamer ==== | ||
- | <tabbox Other version> | ||
Record video from '' | Record video from '' | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 v4l2src device=/ |
``` | ``` | ||
Line 67: | Line 71: | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 v4l2src device=/ |
``` | ``` | ||
For 4K@60fps, framerate should be set 60/1 | For 4K@60fps, framerate should be set 60/1 | ||
Line 74: | Line 78: | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 v4l2src device=/ |
``` | ``` | ||
- | </ | ||
/* | /* | ||
Line 166: | Line 169: | ||
sudo apt install v4l-utils | sudo apt install v4l-utils | ||
``` | ``` | ||
- | |||
- | <tabbox kernel 5.10.66> | ||
Capture frame from '' | Capture frame from '' | ||
```shell | ```shell | ||
- | v4l2-ctl -d /dev/video33 | + | v4l2-ctl -d /dev/video42 |
``` | ``` | ||
Line 178: | Line 179: | ||
```shell | ```shell | ||
- | v4l2-ctl -d /dev/video24 | + | v4l2-ctl -d /dev/video33 |
``` | ``` | ||
Line 184: | Line 185: | ||
```shell | ```shell | ||
- | v4l2-ctl -d /dev/video42 | + | v4l2-ctl -d /dev/video51 |
``` | ``` | ||
- | <tabbox Other version> | + | It will capture a '' |
- | Capture frame from '' | + | |
+ | Preview the file: | ||
```shell | ```shell | ||
- | v4l2-ctl -d / | + | $ ffplay |
``` | ``` | ||
- | Capture frame from '' | + | ==== Camera Interfaces Performance ==== |
- | ```shell | + | <tabbox IMX415> |
- | v4l2-ctl -d / | + | * connect one camera separately: |
- | ``` | + | |
- | Capture frame from '' | + | | ^ CAM2 2lane ^ CAM2 4lane (only V13 or later version support) |
+ | ^ CAM1 | | ||
+ | ^ CAM2 | | ||
+ | ^ | ||
- | ```shell | + | * connect two cameras |
- | v4l2-ctl -d / | + | |
- | ``` | + | |
- | </ | + | | ^ CAM2 2lane ^ CAM2 4lane (only V13 or later version support) |
+ | ^ CAM2 | | ||
+ | ^ CAM3 | | ||
- | It will capture a '' | + | * connect three camera simultaneously: |
+ | | ^ CAM2 2lane ^ CAM2 4lane (only V13 or later version support) | ||
+ | ^ CAM1 | | ||
+ | ^ CAM2 | | ||
+ | ^ CAM3 | | ||
- | Preview the file: | + | <tabbox OS08A10> |
+ | * connect one camera separately: | ||
- | ```shell | + | | ^ CAM2 2lane ^ CAM2 4lane (only V13 or later version support) |
- | $ ffplay -f rawvideo -pixel_format nv12 -video_size 3840x2160 / | + | ^ CAM1 | |
+ | ^ CAM2 | | ||
+ | ^ CAM3 | | ||
- | ``` | + | * connect two cameras to CAM3 and CAM2 simultaneously |
+ | |||
+ | | ^ CAM2 2lane ^ CAM2 4lane (only V13 or later version support) | ||
+ | ^ CAM2 | | ||
+ | ^ CAM3 | | ||
+ | |||
+ | * connect three camera simultaneously: | ||
+ | |||
+ | | ^ CAM2 2lane ^ CAM2 4lane (only V13 or later version support) | ||
+ | ^ CAM1 | | ||
+ | ^ CAM2 | | ||
+ | ^ CAM3 | | ||
+ | |||
+ | <tabbox IMX585> | ||
+ | * connect one camera separately: | ||
+ | |||
+ | | ^ CAM2 2lane ^ CAM2 4lane (only V13 or later version support) | ||
+ | ^ CAM1 | | ||
+ | ^ CAM2 | | ||
+ | ^ CAM3 | | ||
+ | |||
+ | * connect two cameras to CAM3 and CAM2 simultaneously | ||
+ | |||
+ | | ^ CAM2 2lane ^ CAM2 4lane (only V13 or later version support) | ||
+ | ^ CAM2 | | ||
+ | ^ CAM3 | | ||
+ | |||
+ | * connect three camera simultaneously: | ||
+ | |||
+ | | ^ CAM2 2lane ^ CAM2 4lane (only V13 or later version support) | ||
+ | ^ CAM1 | | ||
+ | ^ CAM2 | | ||
+ | ^ CAM3 | | ||
+ | |||
+ | <tabbox IMX678> | ||
+ | * connect one camera separately: | ||
+ | |||
+ | | ^ CAM2 2lane ^ CAM2 4lane (only V13 or later version support) | ||
+ | ^ CAM1 | | ||
+ | ^ CAM2 | | ||
+ | ^ CAM3 | | ||
+ | |||
+ | * connect two cameras to CAM3 and CAM2 simultaneously | ||
+ | |||
+ | | ^ CAM2 2lane ^ CAM2 4lane (only V13 or later version support) | ||
+ | ^ CAM2 | | ||
+ | ^ CAM3 | | ||
+ | |||
+ | * connect three camera simultaneously: | ||
+ | |||
+ | | ^ CAM2 2lane ^ CAM2 4lane (only V13 or later version support) | ||
+ | ^ CAM1 | | ||
+ | ^ CAM2 | | ||
+ | ^ CAM3 | | ||
+ | |||
+ | </ | ||
===== Android ===== | ===== Android ===== |