You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/guide/configuration_file.md
+38-2Lines changed: 38 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -109,18 +109,54 @@ Example (Ubuntu):
109
109
video0=http://127.0.0.1:8000/camera-def-uvc.xml
110
110
```
111
111
112
-
### [imgcap]
112
+
### [imgcap] {#imgcap}
113
+
114
+
This section defines the *default* values used for image capture. With the exception of `location` it should be possible override the values over MAVLink using parameters defined in the [Camera Definition File](../guide/camera_definition_file.md).
115
+
116
+
> **Note** At time of writing these default values cannot yet be overridden (see [#161](https://github.com/Dronecode/camera-streaming-daemon/issues/161)).
113
117
114
118
Key | Description | Default
115
119
-- | --- | ---
116
-
`location` | The local path with write permission where captured images will be saved (usually the system-standard "Temp" directory) | -
120
+
`width` | Width of the image to be captured in pixels. | Full width of camera frame for sensor type (i.e 1080P - 1920, 720P - 1280, etc.)
121
+
`height` | Height of the image to be captured in pixels. | Full height of camera frame for sensor type (i.e 1080P - 1080, 720P - 720, etc).
122
+
`format` | Image format (number). <br>Possible values:<ul><li>2 (Jpeg/<code>IMAGE_FILE_JPEG</code>)</li></ul>Notes:<ul><li>Currently only Jpeg is <ahref="https://github.com/Dronecode/camera-streaming-daemon/issues/163">supported for image capture</a>.</li></ul> | 2 (JPEG).
123
+
`location` | The local path with write permission where captured images will be saved (usually the system-standard "Temp" directory). The path should be accessible and writeable. | /tmp/
117
124
118
125
Example:
119
126
```
120
127
[imgcap]
121
128
location=~/Temp/
122
129
```
123
130
131
+
### [vidcap] {#vidcap}
132
+
133
+
This section defines the *default* values used for video capture. With the exception of `location` it should be possible override the values over MAVLink using parameters defined in the [Camera Definition File](../guide/camera_definition_file.md).
134
+
135
+
> **Note** At time of writing these default values cannot yet be overridden (see [#161](https://github.com/Dronecode/camera-streaming-daemon/issues/161)).
136
+
137
+
Key | Description | Default
138
+
--- | --- | ---
139
+
`width` | Width of the video to be captured in pixels. | Full width of camera frame for sensor type (i.e 1080P - 1920, 720P - 1280, etc).
140
+
`height` | Height of the video to be captured in pixels. | Full height of camera frame for sensor type (i.e 1080P - 1080, 720P - 720, etc).
141
+
`framerate` | Camera framerate for video capture. | Default framerate queried from camera sensor (e.g. 25).
142
+
`bitrate` | Bitrate of the encoded video data in KBps. Supported values: 1 - 2048000. | 512
143
+
`encoder` | Encoder (number). <br>Possible values:<ul><li>3 (H.264/<code>VIDEO_CODING_AVC</code>)</li></ul>Notes:<ul><li>Currently only H.264 is <ahref="https://github.com/Dronecode/camera-streaming-daemon/issues/168">supported for video capture</a>.</li></ul> | 3 (AVC).
144
+
`format` | Video file format (number). <br>Possible values:<ul><li>1 (Moving Pictures Expert Group 4/<code>VIDEO_FILE_MP4</code>)</li></ul>Notes:<ul><li>Currently only MP4 is <ahref="https://github.com/Dronecode/camera-streaming-daemon/issues/169">supported for video capture</a>.</li></ul> | 1 (MP4)
145
+
`location` | The local path with write permission where captured videos will be saved (usually the system-standard "Temp" directory). | -
Copy file name to clipboardExpand all lines: en/guide/overview.md
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ CSD supports the following key features:
16
16
* Automatically attaches [compatible cameras](#supported_cameras) connected to the Linux computer when it is started.
17
17
* RTSP video streaming from *all* connected cameras (for consumption by GCS or other video players).
18
18
* RTSP video stream advertising/discovery using Avahi.
19
-
*[MAVLink Camera Protocol](#mavlink_support) support for up to 5 cameras, enabling image capture and storage, and querying/setting camera options.<!-- but not yet video capture - Mar 2018 -->
19
+
*[MAVLink Camera Protocol](#mavlink_support) support for up to 5 cameras, enabling image/video capture and storage, and querying/setting camera options.
20
20
* Gazebo simulated camera backend (so you can view video streams from within a simulated environment)!
21
21
* Configurable back-end that can be extended to interface with new types of cameras and new front-end protocols.
22
22
@@ -42,16 +42,18 @@ Advanced configuration information about individual cameras is specified in [Cam
42
42
43
43
## MAVLink Camera Protocol Implementation {#mavlink_support}
44
44
45
-
CSD implements the [MAVLink Camera Protocol](https://mavlink.io/en/protocol/camera.html) for image capture and getting/setting camera parameters and options. At time of writing (March 2018) video capture is not yet supported.
45
+
CSD implements the [MAVLink Camera Protocol](https://mavlink.io/en/protocol/camera.html) for image and video capture and storage, and for getting/setting camera parameters and options.
46
46
47
47
The MAVLink properties of CSD are specified in the *CSD Configuration File*:
48
48
* The [\[mavlink\]](../guide/configuration_file.md#mavlink) section is used to specify the MAVLink destination UDP port, the broadcast address for heartbeat messages, and the system id (which should be set to match the autopilot).
49
49
* The [\[uri\]](../guide/configuration_file.md#uri) section specifies the device to URI mapping for [Camera Definition File](../guide/camera_definition_file.md).
50
+
* The [\[imgcap\]](../guide/configuration_file.md#imgcap) and [\[vidcap\]](../guide/configuration_file.md#vidcap) sections specify the *default settings* for image and video capture, respectively.
50
51
51
52
Component IDs for each camera are allocated automatically and sequentially from [MAV_COMP_ID_CAMERA2](https://mavlink.io/en/messages/common.html#MAV_COMP_ID_CAMERA2) to [MAV_COMP_ID_CAMERA6](https://mavlink.io/en/messages/common.html#MAV_COMP_ID_CAMERA6) (inclusive) as cameras are connected (once all component ids are allocated further cameras are not addressable).
52
53
53
54
**Limitations:**
54
55
55
56
* At time of writing (March 2018) the camera protocol, and hence CSD, do not yet include a formal specification for managing or advertising RTSP video streams.
56
57
* The MAVLink protocol supports up to 6 cameras in a single system (only 6 `component_id` values are defined). Currently only 5 cameras can be accessed via CSD (see [#142](https://github.com/intel/camera-streaming-daemon/issues/142)).
57
-
* Video capture is not supported.
58
+
* The default [image](../guide/configuration_file.md#imgcap) and [video](../guide/configuration_file.md#vidcap)
59
+
capture settings cannot (yet) be overwritten using parameters/via a [Camera Definition File](../guide/camera_definition_file.md) (see [#161](https://github.com/Dronecode/camera-streaming-daemon/issues/161)).
0 commit comments