AV1 decode

This commit is contained in:
patcarter883 2024-03-24 13:18:14 +00:00
parent 2226ce41c2
commit a0c41bba87
4 changed files with 9 additions and 3 deletions

View File

@ -46,7 +46,10 @@ export default function FilterSelect(props) {
}
}
filter.graph = graphs.join(',');
// graphs.push('hwdownload')
filter.graph = `${graphs.join(',')}`;
props.onChange(filter, automatic);
};

View File

@ -16,7 +16,8 @@ function createMapping(settings, stream, skills) {
const mapping = {
global: [],
local: ['-hwaccel', 'nvdec', '-c:v', 'av1_cuvid'],
local: ['-hwaccel', 'cuda', '-c:v', 'av1_cuvid'],
// local: ['-hwaccel', 'cuda', '-hwaccel_output_format', 'cuda', '-c:v', 'av1_cuvid'],
};
return mapping;
@ -54,7 +55,7 @@ Coder.defaultProps = {
// -hwaccel nvdec
const coder = 'cuda';
const coder = 'av1';
const name = 'AV1 NVDEC (CUDA)';
const codecs = ['av1'];
const type = 'video';

View File

@ -32,6 +32,7 @@ function createGraph(settings) {
} else if (settings.mode === 'width') {
mapping.push(`scale=${settings.width}:-1`);
} else if (settings.mode === 'fix') {
// mapping.push(`scale_cuda=${settings.fix.split('x').join(':')}:format=yuv420p`);
mapping.push(`scale=${settings.fix}`);
}

View File

@ -55,6 +55,7 @@ const requires = {
codecs: {
audio: ['aac', 'mp3'],
video: ['h264'],
// video: ['h264', 'h265', 'vp9' , 'av1'],
},
};