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/09/24 21:26] nick |
products:sbc:vim4:add-ons:new-vim4-mipi-camera [2025/09/01 01:45] (current) nick [Record video via gstreamer] |
||
---|---|---|---|
Line 17: | Line 17: | ||
==== Enable overlays ==== | ==== 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: | If you want to use the MIPI camera, you need to enable it in [[products: | ||
Line 31: | Line 35: | ||
``` | ``` | ||
- | Enable '' | + | Enable '' |
``` | ``` | ||
$ cat / | $ cat / | ||
Line 42: | Line 46: | ||
The video node is ''/ | The video node is ''/ | ||
+ | |||
+ | ==== Record video via gstreamer ==== | ||
+ | |||
+ | <WRAP important > | ||
+ | Only for 5.15 kernel. | ||
+ | </ | ||
+ | |||
+ | |||
+ | Record video and perform '' | ||
+ | |||
+ | ```shell | ||
+ | gst-launch-1.0 -e v4l2src device=/ | ||
+ | |||
+ | ``` | ||
+ | |||
+ | Record video and perform '' | ||
+ | |||
+ | |||
+ | ```shell | ||
+ | gst-launch-1.0 -e v4l2src device=/ | ||
+ | |||
+ | ``` | ||
==== Get Frames via Mediactl API ==== | ==== Get Frames via Mediactl API ==== | ||
Line 87: | Line 113: | ||
```shell | ```shell | ||
- | $ ffplay -f rawvideo -pixel_format | + | $ ffplay -f rawvideo -pixel_format |
``` | ``` | ||
- | ==== Record | + | ==== Preview |
- | Record | + | <tabbox Ubuntu 24.04> |
+ | |||
+ | You can use gstreamer '' | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | gst-launch-1.0 v4l2src device=/ |
+ | ``` | ||
+ | You can use the command below to check display fps: | ||
+ | |||
+ | ```shell | ||
+ | gst-launch-1.0 -v v4l2src device=/ | ||
``` | ``` | ||
- | Record video and perform H265 encoding: | + | <tabbox Ubuntu 22.04> |
+ | You can use gstreamer '' | ||
```shell | ```shell | ||
- | gst-launch-1.0 v4l2src device=/ | + | 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 '' | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | |||