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