Skip to main content

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.

FieldTypeRequiredDefault valueDescription
clock_formatstringno"%x %X %Z"The time format for the clock, see man strftime for details
sinksarray<sink>no<empty>The sink where the recorder should stream to
sink.typestringyes-The sink type is one of rtmp, webm or display
sink.rtmp_uriintyes1-The location for the rtmp sink
sink.rtmp_audio_bitrateintno96000The audio bitrate for the rtmp sink
sink.rtmp_audio_rateintno48000The audio rate for the rtmp sink
sink.rtmp_video_bitrateintno6000The video bitrate for the rtmp sink
sink.rtmp_speed_presetstringno"fast"The video speed preset for the rtmp sink
max_loadintno80The 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

  1. rtmp_uri is only required when the sink rtmp is in use.