Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Route: Output 1 = iGPU (QSV/VAAPI), Output 2 = NVIDIA (NVENC)
- module.exports.details = () => ({
- id: 'Local_router_qsv_vaapi_vs_nvenc',
- Name: 'Router: iGPU (QSV/VAAPI) vs NVIDIA (NVENC)',
- Operation: 'Filter', // <- wichtig: Filter = 2 Ausgänge im Flow
- Description: 'Routet anhand nodeHardwareType: qsv/vaapi -> Output 1, nvenc -> Output 2.',
- Version: '1.0',
- Stage: 'Pre-processing',
- Type: 'Any'
- });
- module.exports.plugin = (file, librarySettings, inputs, otherArguments) => {
- const hw = (otherArguments && otherArguments.nodeHardwareType || '').toLowerCase();
- const isIGPU = (hw === 'qsv' || hw === 'vaapi'); // iGPU-Seite
- // Classic-Filter-Plugins entscheiden mit processFile true/false:
- // true -> "met conditions" (Flow Output 1)
- // false -> "did not meet" (Flow Output 2)
- return {
- processFile: isIGPU,
- preset: '', // Pflichtfelder im Response-Objekt vorhanden lassen
- container: `.${file.container || 'mkv'}`,
- handBrakeMode: false,
- FFmpegMode: false,
- infoLog: `Router: nodeHardwareType=${hw} -> ${isIGPU ? 'iGPU(Output 1)' : 'NVENC(Output 2)'}`
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment