mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2025-10-15 21:31:44 +08:00
More WebRTC tweaks
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
@@ -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`)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user