This shows you the differences between two versions of the page.
|
products:sbc:vim-5:add-ons:vim-5-mipi-camera [2026/09/15 02:20] nick ↷ Page name changed from products:sbc:vim-5:add-ons:new-vim4-mipi-camera to products:sbc:vim-5:add-ons:vim-5-mipi-camera |
products:sbc:vim-5:add-ons:vim-5-mipi-camera [2026/09/15 02:24] (current) nick |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~tag> | + | ~~tag> |
| {{indexmenu_n> | {{indexmenu_n> | ||
| - | ====== | + | ====== |
| - | + | ||
| - | <WRAP important > | + | |
| - | There are two [[../ | + | |
| - | </ | + | |
| ===== Linux ===== | ===== Linux ===== | ||
| Line 13: | Line 9: | ||
| ==== Upgrade system ==== | ==== Upgrade system ==== | ||
| - | Please follow the [[products: | + | Please follow the [[products: |
| - | + | ||
| - | + | ||
| - | ==== Enable overlays ==== | + | |
| - | + | ||
| - | <WRAP important > | + | |
| - | From version **1.7.5**, cameras are auto detected by default, no need any setup, you can just skip the overlay setup. | + | |
| - | </ | + | |
| - | + | ||
| - | If you want to use the MIPI camera, you need to enable it in [[products: | + | |
| - | [[gh> | + | |
| - | + | ||
| - | * Add '' | + | |
| - | * Add '' | + | |
| - | + | ||
| - | Enable '' | + | |
| - | + | ||
| - | ``` | + | |
| - | $ cat / | + | |
| - | fdt_overlays=vim4n-os08a10 | + | |
| - | ``` | + | |
| - | + | ||
| - | Enable '' | + | |
| - | ``` | + | |
| - | $ cat / | + | |
| - | fdt_overlays=vim4n-imx415 | + | |
| - | ``` | + | |
| - | + | ||
| - | And then reboot to take effect. | + | |
| ==== Video node ==== | ==== Video node ==== | ||
| - | The video node is ''/ | + | The video node is ''/ |
| ==== Record video via gstreamer ==== | ==== Record video via gstreamer ==== | ||
| <WRAP important > | <WRAP important > | ||
| - | Only for 5.15 kernel. | + | Only for 6.12 kernel. |
| </ | </ | ||
| Line 57: | Line 25: | ||
| ```shell | ```shell | ||
| - | gst-launch-1.0 -e v4l2src device=/ | + | gst-launch-1.0 -e v4l2src device=/ |
| ``` | ``` | ||
| Line 65: | Line 32: | ||
| ```shell | ```shell | ||
| - | gst-launch-1.0 -e v4l2src device=/ | + | gst-launch-1.0 -e v4l2src device=/ |
| ``` | ``` | ||
| ==== Get Frames via Mediactl API ==== | ==== Get Frames via Mediactl API ==== | ||
| - | Download and build the test source code: [[gh> | + | TODO |
| - | <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: | ||
| - | |||
| - | <WRAP important > | ||
| - | It doesn' | ||
| - | </ | ||
| - | |||
| - | |||
| - | ```shell | ||
| - | $ ffplay -f rawvideo -pixel_format nv12 -video_size 3840x2160 / | ||
| - | ``` | ||
| ==== Preview video on ubuntu desktop ==== | ==== Preview video on ubuntu desktop ==== | ||
| - | |||
| - | <tabbox Ubuntu 24.04> | ||
| You can use gstreamer '' | You can use gstreamer '' | ||
| ```shell | ```shell | ||
| - | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 v4l2src device=/ |
| ``` | ``` | ||
| Line 129: | Line 51: | ||
| ```shell | ```shell | ||
| - | gst-launch-1.0 -v v4l2src device=/ | + | gst-launch-1.0 -v v4l2src device=/ |
| ``` | ``` | ||
| - | |||
| - | <tabbox Ubuntu 22.04> | ||
| - | |||
| - | You can use gstreamer '' | ||
| - | |||
| - | ```shell | ||
| - | gst-launch-1.0 v4l2src device=/ | ||
| - | ``` | ||
| - | |||
| - | You can use the command below to check display fps: | ||
| - | |||
| - | ```shell | ||
| - | gst-launch-1.0 -v v4l2src device=/ | ||
| - | ``` | ||
| - | |||
| - | You press '' | ||
| - | |||
| - | |||
| - | </ | ||
| - | |||
| - | |||