Umbau mit cameraSwitch Fix 1

This commit is contained in:
chk
2026-06-05 06:48:40 +02:00
parent 8c8c769e22
commit 4c73064955
3 changed files with 32 additions and 11 deletions

View File

@@ -96,7 +96,7 @@ class CameraSwitch extends EventEmitter {
'-f', 'v4l2', '-input_format', 'mjpeg',
'-video_size', this.liveSize, '-framerate', String(this.liveFps),
'-i', this.device,
'-c:v', 'copy', '-f', 'mpjpeg', 'pipe:1',
'-c:v', 'mjpeg', '-q:v', '5', '-f', 'mpjpeg', 'pipe:1',
];
let p;
try {
@@ -189,7 +189,7 @@ class CameraSwitch extends EventEmitter {
'-f', 'v4l2', '-input_format', 'mjpeg',
'-video_size', this.hiresSize, '-framerate', String(this.hiresFps),
'-i', this.device,
'-c:v', 'copy', '-f', 'mpjpeg', 'pipe:1',
'-c:v', 'mjpeg', '-q:v', '5', '-f', 'mpjpeg', 'pipe:1',
];
let p;
try {