fix(transcode): reduce vp9 threads to prevent OOM killer

This commit is contained in:
Jannik committed 2026-08-09 11:44:45 +02:00
1 parent ced7588919
commit 1acafdec0b
2 files changed
+10 -1

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
---
description: Deployment procedures for the Viz project
trigger: always_on
---
# Viz Deployment Rule
Wenn du Änderungen am Viz-Projekt vornimmst, denke daran, nach dem Git Push auch den CACHE_BUST im Jannik-Cloud Repository unter `services/viz/build.Dockerfile` zu aktualisieren und in Git zu pushen, damit das Deploy-Skript auf dem Server das neue Image baut.
+1 -1
View File
@@ -330,7 +330,7 @@ app.post('/api/export/start', upload.single('audio'), async (req, res) => {
// 2. WebM VP9 Alpha (CPU intensive)
ffmpegArgs.push(
...mapArgs,
'-c:v', 'libvpx-vp9', '-pix_fmt', 'yuva420p', '-b:v', '35M', '-minrate', '20M', '-maxrate', '50M', '-speed', '2', '-threads', '8', '-row-mt', '1', '-auto-alt-ref', '0',
'-c:v', 'libvpx-vp9', '-pix_fmt', 'yuva420p', '-b:v', '35M', '-minrate', '20M', '-maxrate', '50M', '-speed', '2', '-threads', '4', '-row-mt', '1', '-auto-alt-ref', '0',
'-c:a', 'libopus', '-b:a', '320k', '-shortest', formats.webm_alpha.path
);