■ Examples
; comment line
## comment line.
[compositor].
resolution = 3840x2160
framerate = 30000/1000
view0 = CamSec0
view1 = CamSec1
view2 = CamSec2
view3 = CamSec3
[CamSec0]
; webcam example
path = /dev/video2
pixel_format = MJPEG
resolution = 1920x1080
framerate = 60
[CamSec1]
; GMSL camera example
path = /dev/video0
resolution = 1920x1080
framerate = 30
[CamSec2] ; GMSL camera example
; GMSL camera example
path = /dev/video1
resolution = 960x540
framerate = 58
[CamSec3]
; IP camera example
path = rtsp://ipcam1/stream1
pixel_format = H264
username = user1
password = pass1
````
### ■ General
* In the configuration file, anything after `;` and `#` is treated as a comment.
## ■ `compositor` section
* This section contains settings for image compositing.
* The configuration entries are as follows.
| entry | example entry | description |
| ------------ | --------------------- | --------------------------------------------------------------------------- |
| resolution | `1920x1080` | resolution after compositing |
| framerate | `60000/1001` or `60` | frame rate at which the compositor acquires images from each camera
| viewN | section name | N=0, 1, 2, 3 to describe which section to map to {upper left, upper right, lower left, lower right}.
* _If the same camera is specified for multiple views, it will not work correctly. _
## ■ Other sections
* All other sections are treated as one camera definition per section.
* These sections can have the following values
* path
* resolution
* framerate
* pixel_format
* Example:
ini
[gmsl1]
path = /dev/video1
resolution = 960x540
framerate = 58
pixel_format = UYVY
■ path
.
- An entry indicating the path to the device.
- A
path
starting with /dev/
is treated as a camera to be opened by V4L2.
- URLs beginning with
rtsp://
will be treated as IP cameras.
■ resolution
.
- The resolution of the camera.
WxH
format.
■ framerate
* The frame rate of the camera.
- The frame rate of the camera.
- The same as
compositor
.
■ pixel_format
* pixel format of camera output.
- The pixel format of the camera output.
- For a web camera, one of the following formats.
- MJPEG
- YUV420
- YUYV
- YVYU
- UYVY
- VYUY
- For IP cameras, specify
HEVC
or H264
.