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 [2024/05/18 03:13] (current) nick [Record video via gstreamer] |
||
---|---|---|---|
Line 31: | Line 31: | ||
``` | ``` | ||
- | Enable '' | + | Enable '' |
``` | ``` | ||
$ cat / | $ cat / | ||
Line 42: | Line 42: | ||
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 109: | ||
```shell | ```shell | ||
- | $ ffplay -f rawvideo -pixel_format | + | $ ffplay -f rawvideo -pixel_format |
- | ``` | + | |
- | + | ||
- | ==== Record video via gstreamer ==== | + | |
- | + | ||
- | Record video and perform H264 encoding: | + | |
- | + | ||
- | ```shell | + | |
- | gst-launch-1.0 v4l2src device=/ | + | |
- | + | ||
- | ``` | + | |
- | + | ||
- | Record video and perform H265 encoding: | + | |
- | + | ||
- | + | ||
- | ```shell | + | |
- | gst-launch-1.0 v4l2src device=/ | + | |
``` | ``` | ||