Recorder
The OpenTalk Recorder is capable of streaming into different sinks. A sink can
be a WebM file
, Display
, or RTMP stream
.
Configuration
The section in the configuration file is called recorder
.
Field | Type | Required | Default value | Description |
---|---|---|---|---|
clock_format | string | no | "%x %X %Z" | The time format for the clock, see man strftime for details |
sinks | array<sink> | no | <empty> | The sink where the recorder should stream to |
sink.type | string | yes | - | The sink type is one of rtmp , webm or display |
sink.rtmp_uri | int | yes1 | - | The location for the rtmp sink |
sink.rtmp_audio_bitrate | int | no | 96000 | The audio bitrate for the rtmp sink |
sink.rtmp_audio_rate | int | no | 48000 | The audio rate for the rtmp sink |
sink.rtmp_video_bitrate | int | no | 6000 | The video bitrate for the rtmp sink |
sink.rtmp_speed_preset | string | no | "fast" | The video speed preset for the rtmp sink |
max_load | int | no | 80 | The usage value per core (in %) until when new jobs are accepted |
Examples
Set the time format for the clock in the recording.
[recorder]
clock_format = "%d.%m.%Y %H:%M:%S"
Example with webm sink (default behaviour)
The Display sink can be used to stream from the recorder to a webm file.
[recorder]
[[recorder.sinks]]
type = "webm"
Example with display sink
The Display sink can be used to stream from the recorder to a display.
[recorder]
[[recorder.sinks]]
type = "display"
Example with rtmp sink
The RTMP sink can be used to stream from the recorder to an external rtmp
server. rtmp_uri
is optionally replacing the $room
variable with the current room id.
[recorder]
[[recorder.sinks]]
type = "rtmp"
rtmp_uri = "rtmp://localhost:1935/live/$room live=1"
# optional for the rtmp sink:
#rtmp_audio_bitrate = 96000
#rtmp_audio_rate = 48000
#rtmp_video_bitrate = 6000
#rtmp_video_speed_preset = fast
Footnotes
-
rtmp_uri
is only required when the sinkrtmp
is in use. ↩