fix: Исправление выбора энкодер/декодер
This commit is contained in:
@@ -156,7 +156,14 @@ export async function encodeProfileToMP4(
|
||||
);
|
||||
|
||||
// Build video filter chain
|
||||
const filters: string[] = [`scale=${profile.width}:${profile.height}`];
|
||||
const filters: string[] = [];
|
||||
|
||||
if (decoderAccel === 'nvenc') {
|
||||
// CUDA path: keep frames on GPU
|
||||
filters.push(`scale_cuda=${profile.width}:${profile.height}`);
|
||||
} else {
|
||||
filters.push(`scale=${profile.width}:${profile.height}`);
|
||||
}
|
||||
|
||||
// Apply optimizations (for future use)
|
||||
if (optimizations) {
|
||||
|
||||
Reference in New Issue
Block a user