Fix FFmpeg WebM VP9 Alpha decoding issue during transcode

This commit is contained in:
Jannik committed 2026-08-09 23:38:49 +02:00
1 parent cbd37e4434
commit 999a0d0e85
1 file changed
+6 -1
+6 -1
View File
@@ -387,7 +387,12 @@ async function runSequentialEncodes(session, inputVideoPath, inputAudioPath, tar
session.currentStatus = `Rendere ${i+1}/${targetFormats.length}: ${formatId.toUpperCase()}...`;
saveHistory();
const ffmpegArgs = ['-y', '-i', inputVideoPath];
const ffmpegArgs = ['-y'];
if (inputVideoPath.toLowerCase().endsWith('.webm')) {
ffmpegArgs.push('-c:v', 'libvpx-vp9');
}
ffmpegArgs.push('-i', inputVideoPath);
if (inputAudioPath) {
ffmpegArgs.push('-i', inputAudioPath);
}