...
defines veryfast
preset usage with Main
profile and level 3.1
Encoder tuning
By default, video is encoded in one thread. It may be necessary to encode video in multiple threads when relatively slow high quality preset is used (fast preset for example), otherwise video can be played with low FPS and loss of synchronization on subscribers side. There is the following parameter to automatically start encoding in multiple threads depending on resolution required by subscriber
Code Block | ||
---|---|---|
| ||
video_encoder_second_thread_threshold=777000 |
This parameter should be set as product of multiplying width by height. By default, 720p and higher streams will be encoded in two threads. For example, to decrease this threshold to 480p, it should be set as 640 * 480 = 307200
Code Block | ||
---|---|---|
| ||
video_encoder_second_thread_threshold=307200 |
In this case, 480p and higher streams will be encoded in two threads.
Maximum encoder threads quantity should be set with the following parameter
Code Block | ||
---|---|---|
| ||
video_encoder_max_threads=2 |
By default, maximum encoder threads quantity is set to 2.
The settings above should be applyed to Transcoder nodes.
Transcoding profile management using REST API
...