fix(recorder): manually construct clip instead of using ffmpeg (close #25)

Too many segments will make ffmpeg command spawn with long argument, which might
be exceeded the limit.
Now we manually copy and write segments into one file to generate a clip.
FFMPEG is still remained but not used for now, in the future clip encoding might
need this.

Signed-off-by: Xinrea <xinreas@outlook.com>
This commit is contained in:
Xinrea
2024-11-22 22:12:32 +08:00
parent e15c6d44a1
commit 6d06491ddc
2 changed files with 47 additions and 45 deletions

View File

@@ -8,6 +8,7 @@ const mobile =
process.env.TAURI_PLATFORM === "ios";
// https://vitejs.dev/config/
// @ts-ignore
export default defineConfig(async () => ({
plugins: [
svelte({