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/05/18 03:12] (current) nick [Record Video via Gstreamer] |
||
---|---|---|---|
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 140: | Line 142: | ||
WIP: | WIP: | ||
- | ====== New VIM4 MIPI Camera Usage ====== | ||
- | |||
- | ===== Linux ===== | ||
- | |||
- | ==== Enable Overlays ==== | ||
- | |||
- | If you want to use the OS08A10 MIPI camera, you need to enable it in [[products: | ||
- | |||
- | ``` | ||
- | $ 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> | ||
- | |||
- | |||
- | ```shell | ||
- | $ git clone https:// | ||
- | $ cd v4l2_media_test | ||
- | $ git checkout e0482794337c01935593a91b621f9c42123cf175 | ||
- | $ g++ v4l2_test_raw.cpp -o v4l2_test_raw | ||
- | $ ls v4l2_test_raw | ||
- | v4l2_test_raw | ||
- | ``` | ||
- | |||
- | <tabbox 5.15 kernel> | ||
- | |||
- | ```shell | ||
- | $ git clone https:// | ||
- | $ cd v4l2_media_test | ||
- | $ g++ v4l2_test_raw.cpp -o v4l2_test_raw | ||
- | $ ls v4l2_test_raw | ||
- | v4l2_test_raw | ||
- | ``` | ||
- | |||
- | </ | ||
- | |||
- | Test: | ||
- | |||
- | ```shell | ||
- | $ ./ | ||
- | ``` | ||
- | |||
- | It will capture 10 frames to file ''/ | ||
- | |||
- | Preview the file: | ||
- | |||
- | ```shell | ||
- | $ ffplay -f rawvideo -pixel_format nv21 -video_size 3840x2160 / | ||
- | |||
- | ``` | ||
- | |||
- | ===== Android ===== | ||
- | WIP: | ||