From 0c7930bd016ad77f1b7502aa61315e8d1836d04d Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Sun, 17 May 2026 20:47:41 +0700 Subject: [PATCH] chore: update streaming default quality settings to 1080p60 at 8mbps with ultrafast preset --- src/streaming/index.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/streaming/index.ts b/src/streaming/index.ts index 5ef4a90..3248aa1 100644 --- a/src/streaming/index.ts +++ b/src/streaming/index.ts @@ -71,19 +71,19 @@ export class Streamer { targetSource = urls[0] ?? source; } - const fps = options.fps ?? 30; - const bitrateStr = String(options.bitrate ?? 2500).replace(/k$/i, ""); - const bitrateVideo = parseInt(bitrateStr, 10) || 2500; + const fps = options.fps ?? 60; + const bitrateStr = String(options.bitrate ?? 8000).replace(/k$/i, ""); + const bitrateVideo = parseInt(bitrateStr, 10) || 8000; console.log("[Streamer] Starting screen share for source:", typeof targetSource === "string" ? targetSource.slice(0, 50) + "..." : "ReadableStream"); const { command, output } = dankPrepareStream(targetSource, { encoder: Encoders.software({ - x264: { preset: (options.presetH26x as any) ?? "superfast" }, - x265: { preset: (options.presetH26x as any) ?? "superfast" }, + x264: { preset: (options.presetH26x as any) ?? "ultrafast" }, + x265: { preset: (options.presetH26x as any) ?? "ultrafast" }, }), videoCodec: Utils.normalizeVideoCodec("H264"), - width: 1280, - height: 720, + width: 1920, + height: 1080, bitrateVideo: bitrateVideo, frameRate: fps, includeAudio: options.includeAudio !== false,