From 29ab0e79dea7a5aecfdbd584473b80e31e6bebcb Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Thu, 2 Jan 2025 08:58:15 -0800 Subject: [PATCH] rebroadcast: use large rtp packets with ffmpeg for efficient processing --- common/src/rtsp-server.ts | 1 + plugins/prebuffer-mixin/package-lock.json | 4 ++-- plugins/prebuffer-mixin/package.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common/src/rtsp-server.ts b/common/src/rtsp-server.ts index 0f64e4f66..b4dfb9701 100644 --- a/common/src/rtsp-server.ts +++ b/common/src/rtsp-server.ts @@ -247,6 +247,7 @@ export function createRtspParser(options?: StreamParserOptions): RtspStreamParse 'tcp', ...(options?.vcodec || []), ...(options?.acodec || []), + '-pkt_size', '64000', '-f', 'rtsp', ], findSyncFrame(streamChunks: StreamChunk[]) { diff --git a/plugins/prebuffer-mixin/package-lock.json b/plugins/prebuffer-mixin/package-lock.json index a17b2b34f..030049a18 100644 --- a/plugins/prebuffer-mixin/package-lock.json +++ b/plugins/prebuffer-mixin/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/prebuffer-mixin", - "version": "0.10.39", + "version": "0.10.40", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/prebuffer-mixin", - "version": "0.10.39", + "version": "0.10.40", "license": "Apache-2.0", "dependencies": { "@scrypted/common": "file:../../common", diff --git a/plugins/prebuffer-mixin/package.json b/plugins/prebuffer-mixin/package.json index 960b836ba..257c59d09 100644 --- a/plugins/prebuffer-mixin/package.json +++ b/plugins/prebuffer-mixin/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/prebuffer-mixin", - "version": "0.10.39", + "version": "0.10.40", "description": "Video Stream Rebroadcast, Prebuffer, and Management Plugin for Scrypted.", "author": "Scrypted", "license": "Apache-2.0",