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:57] 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 9: | Line 9: | ||
<WRAP important > | <WRAP important > | ||
- | Edge2 CAM3 support **4K@60fps** record. If your **hardware version is V13**, the **CAM2** also can support **4K@60fps** record. | + | 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** | ||
Line 15: | Line 15: | ||
$ 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 node '' | ensure proper operation. If your device supports 4K@60fps, you can enable this mode by adding an overlay node '' | ||
- | ```shell | ||
- | $ sudo vim / | ||
- | fdt_overlays=cam2-4lane | ||
- | ``` | ||
- | About IMX585 and IMX678, the two cameras were disabled by default for compatible problem. So non-V13 hardware version should replace | + | Edit '' |
- | You need to reboot | + | About IMX585 and IMX678, |
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | V13 or later hardware version should be set '' | ||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | You need to reboot the device to take effect. | ||
</ | </ | ||
Line 42: | Line 46: | ||
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 ==== | ||
- | <tabbox kernel 5.10.66> | ||
Record video from '' | Record video from '' | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 v4l2src device=/ |
``` | ``` | ||
Line 60: | Line 63: | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 v4l2src device=/ |
- | ``` | + | |
- | + | ||
- | Record video from '' | + | |
- | + | ||
- | ```shell | + | |
- | gst-launch-1.0 v4l2src device=/ | + | |
- | ``` | + | |
- | + | ||
- | <tabbox Other version> | + | |
- | + | ||
- | Record video from '' | + | |
- | + | ||
- | ```shell | + | |
- | gst-launch-1.0 v4l2src device=/ | + | |
- | ``` | + | |
- | + | ||
- | Record video from '' | + | |
- | + | ||
- | ```shell | + | |
- | 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 87: | Line 70: | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 v4l2src device=/ |
``` | ``` | ||
- | </ | ||
/* | /* | ||
Line 179: | Line 161: | ||
sudo apt install v4l-utils | sudo apt install v4l-utils | ||
``` | ``` | ||
- | |||
- | <tabbox kernel 5.10.66> | ||
- | |||
- | Capture frame from '' | ||
- | |||
- | ```shell | ||
- | v4l2-ctl -d / | ||
- | ``` | ||
- | |||
- | Capture frame from '' | ||
- | |||
- | ```shell | ||
- | v4l2-ctl -d / | ||
- | ``` | ||
- | |||
- | Capture frame from '' | ||
- | |||
- | ```shell | ||
- | v4l2-ctl -d / | ||
- | ``` | ||
- | |||
- | <tabbox Other version> | ||
Capture frame from '' | Capture frame from '' | ||
Line 219: | Line 179: | ||
v4l2-ctl -d / | v4l2-ctl -d / | ||
``` | ``` | ||
- | |||
- | </ | ||
It will capture a '' | It will capture a '' |