...
Code Block | ||
---|---|---|
| ||
record_audio_codec_channels=1 |
Recording perfomance tuning under high load
Recording files writing to disk may take a much time when a number of published streams are recorded simultaneously. To speed up writing, it is possible since build 5.2.639 to set CPU threads number to work with stream recording using the following parameter
Code Block | ||
---|---|---|
| ||
file_recorder_thread_pool_max_size=4 |
By default, 4 threads are used to work with stream recording. This number can be increased if necessary. Note that it is not recommended to set recording threads number more than CPUs number on the server.
Client side
If stream recording is enabled on the server, whether the stream is recorded or not is determined by the value of record parameter passed into the createStream function in the script of the publisher client:
...