This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:vim4:add-ons:vim4-mipi-camera [2023/07/05 02:53] nick |
products:sbc:vim4:add-ons:vim4-mipi-camera [2024/09/24 03:46] (current) nick [Preview video on ubuntu desktop] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~tag> VIM4 OpenCV V4l2 MIPI ISP ~~ | ||
+ | |||
{{indexmenu_n> | {{indexmenu_n> | ||
Line 26: | Line 28: | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 |
``` | ``` | ||
Line 137: | Line 139: | ||
./mipi / | ./mipi / | ||
``` | ``` | ||
- | ===== Android ===== | ||
- | WIP: | ||
- | ====== New VIM4 MIPI Camera Usage ====== | + | ==== Preview video on ubuntu desktop |
- | ===== Linux ===== | + | <tabbox Ubuntu 24.04> |
- | ==== Enable Overlays ==== | + | You can use gstreamer |
- | + | ||
- | If you want to use the OS08A10 MIPI camera, you need to enable it in [[products: | + | |
+ | ```shell | ||
+ | gst-launch-1.0 v4l2src device=/ | ||
``` | ``` | ||
- | $ cat / | ||
- | fdt_overlays=vim4n-os08a10 | ||
- | ``` | ||
- | |||
- | And then reboot to take effect. | ||
- | |||
- | ==== Video Node ==== | ||
- | |||
- | The video node is ''/ | ||
- | |||
- | ==== Get Frames via Mediactl API ==== | ||
- | |||
- | You can get the test source code here: https:// | ||
- | |||
- | Download and build the test source code: | ||
- | |||
- | <tabbox 5.4 kernel> | ||
+ | You can use the command below to check display fps: | ||
```shell | ```shell | ||
- | $ git clone https:// | + | gst-launch-1.0 -v v4l2src device=/dev/video50 io-mode=mmap ! video/x-raw, |
- | $ cd v4l2_media_test | + | |
- | $ git checkout e0482794337c01935593a91b621f9c42123cf175 | + | |
- | $ g++ v4l2_test_raw.cpp | + | |
- | $ ls v4l2_test_raw | + | |
- | v4l2_test_raw | + | |
``` | ``` | ||
- | < | + | < |
+ | |||
+ | You can use gstreamer '' | ||
```shell | ```shell | ||
- | $ git clone https:// | + | gst-launch-1.0 v4l2src device=/dev/video50 io-mode=mmap ! video/x-raw, |
- | $ cd v4l2_media_test | + | |
- | $ g++ v4l2_test_raw.cpp | + | |
- | $ ls v4l2_test_raw | + | |
- | v4l2_test_raw | + | |
``` | ``` | ||
- | </ | + | You can use the command below to check display fps: |
- | + | ||
- | Test: | + | |
```shell | ```shell | ||
- | $ ./ | + | gst-launch-1.0 -v v4l2src device=/dev/video50 io-mode=mmap ! video/ |
``` | ``` | ||
- | It will capture 10 frames to file '' | + | You press '' |
- | Preview the file: | + | </tabbox> |
- | + | ||
- | ```shell | + | |
- | $ ffplay -f rawvideo -pixel_format nv21 -video_size 3840x2160 | + | |
- | + | ||
- | ``` | + | |
===== Android ===== | ===== Android ===== | ||
WIP: | WIP: | ||
+ | |||