AV1 decode
This commit is contained in:
parent
2226ce41c2
commit
a0c41bba87
@ -46,7 +46,10 @@ export default function FilterSelect(props) {
|
||||
}
|
||||
}
|
||||
|
||||
filter.graph = graphs.join(',');
|
||||
|
||||
// graphs.push('hwdownload')
|
||||
|
||||
filter.graph = `${graphs.join(',')}`;
|
||||
|
||||
props.onChange(filter, automatic);
|
||||
};
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -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}`);
|
||||
}
|
||||
|
||||
|
||||
@ -55,6 +55,7 @@ const requires = {
|
||||
codecs: {
|
||||
audio: ['aac', 'mp3'],
|
||||
video: ['h264'],
|
||||
// video: ['h264', 'h265', 'vp9' , 'av1'],
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user