More WebRTC tweaks

This commit is contained in:
tsightler
2022-03-30 01:50:14 -04:00
parent 2422897a4a
commit 1bf45fa958
3 changed files with 4 additions and 3 deletions

View File

@@ -108,4 +108,4 @@ if [ "${RUNMODE}" = "addon" ]; then
fi
echo "Running ring-mqtt..."
exec node --turbo-instruction-scheduling ./ring-mqtt.js
nice -n 19 node ./ring-mqtt.js

View File

@@ -17,6 +17,7 @@ parentPort.on("message", async(data) => {
// the various playback technolgies with minimal processing overhead.
input: [
'-max_delay', '500000',
'-reorder_queue_size', '5000',
'-fflags', '+genpts'
],
audio: [
@@ -31,7 +32,7 @@ parentPort.on("message", async(data) => {
],
output: [
'-f', 'rtsp',
'-rtsp_transport', 'tcp',
'-rtsp_transport', 'udp',
data.rtspPublishUrl
]
})

View File

@@ -13,7 +13,7 @@ class StreamWorkers {
if (cpuCores > 4) {
numWorkers = 4
} else if (cpuCores > 2) {
numWorkers = cpuCores-2
numWorkers = cpuCores-1
}
utils.debug(`Detected ${cpuCores} CPU cores, using ${numWorkers} live stream worker threads`)