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:new-vim4-mipi-camera [2023/07/05 03:07] nick  | 
                
                    products:sbc:vim4:add-ons:new-vim4-mipi-camera [2025/09/01 01:45] (current) nick [Record video via gstreamer]  | 
            ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ~~tag> VIM4 MIPI OS08A10 IMX415 ISP IP~~ | ||
| + | |||
| {{indexmenu_n> | {{indexmenu_n> | ||
| - | ====== New VIM4 MIPI Camera Usage ====== | + | ====== New VIM4 MIPI camera usage ====== | 
| + | |||
| + | <WRAP important > | ||
| + | There are two [[../ | ||
| + | </ | ||
| ===== Linux ===== | ===== Linux ===== | ||
| - | ==== Upgrade  | + | ==== Upgrade  | 
| Please follow the [[products: | Please follow the [[products: | ||
| - | ==== Enable  | + | ==== Enable  | 
| - | If you want to use the MIPI camera, you need to enable it in [[products: | + | <WRAP important > | 
| + | From version **1.7.5**, cameras are auto detected by default, no need any setup, you can just skip the overlay  | ||
| + | </ | ||
| - |    | + | If you want to use the MIPI camera, you need to enable it in [[products: | 
| - |   * add '' | + | [[gh> | 
| + | |||
| + |    | ||
| + |   * Add '' | ||
| + | |||
| + | Enable '' | ||
| - | Enable '' | ||
| ``` | ``` | ||
| $ cat / | $ cat / | ||
| Line 23: | Line 35: | ||
| ``` | ``` | ||
| - | Enable '' | + | Enable '' | 
| ``` | ``` | ||
| $ cat / | $ cat / | ||
| Line 31: | Line 43: | ||
| And then reboot to take effect. | And then reboot to take effect. | ||
| - | ==== Video Node ==== | + | ==== Video node ==== | 
| The video node is ''/ | The video node is ''/ | ||
| - | ==== Get Frames  | + | ==== Record video via gstreamer  | 
| - | You can get the test source code here: https://github.com/numbqq/v4l2_media_test | + | <WRAP important > | 
| + | Only for 5.15 kernel. | ||
| + | </ | ||
| + | |||
| + | |||
| + | Record video and perform '' | ||
| + | |||
| + | ```shell | ||
| + | gst-launch-1.0 -e v4l2src device=/dev/media0  | ||
| + | |||
| + | ``` | ||
| + | |||
| + | Record video and perform '' | ||
| + | |||
| + | |||
| + | ```shell | ||
| + | gst-launch-1.0 -e v4l2src device=/dev/media0  | ||
| + | |||
| + | ``` | ||
| + | |||
| + | ==== Get Frames via Mediactl API ==== | ||
| - | Download and build the test source code: | + | Download and build the test source code: [[gh> | 
| <tabbox 5.4 kernel> | <tabbox 5.4 kernel> | ||
| Line 74: | Line 106: | ||
| Preview the file: | Preview the file: | ||
| + | |||
| + | <WRAP important > | ||
| + | It doesn' | ||
| + | </ | ||
| + | |||
| ```shell | ```shell | ||
| - | $ ffplay -f rawvideo -pixel_format  | + | $ ffplay -f rawvideo -pixel_format  | 
| + | ``` | ||
| + | ==== Preview video on ubuntu desktop ==== | ||
| + | |||
| + | <tabbox Ubuntu 24.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=/ | ||
| + | ``` | ||
| + | |||
| + | <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 '' | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| ===== Android ===== | ===== Android ===== | ||
| WIP: | WIP: | ||