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

View File

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