Merge pull request #572 from HaveAGitGat/qsv

Update qsv check
make-only-subtitle-default
HaveAGitGat 2 years ago committed by GitHub
commit 2818e8019e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,7 +32,7 @@ var plugin = function (args) {
var stream = args.variables.ffmpegCommand.streams[i]; var stream = args.variables.ffmpegCommand.streams[i];
if (stream.codec_type === 'video') { if (stream.codec_type === 'video') {
stream.outputArgs.push('-profile:v:{outputTypeIndex}', 'main10'); stream.outputArgs.push('-profile:v:{outputTypeIndex}', 'main10');
if (stream.outputArgs.includes('qsv')) { if (stream.outputArgs.some(function (row) { return row.includes('qsv'); })) {
stream.outputArgs.push('-vf', 'scale_qsv=format=p010le'); stream.outputArgs.push('-vf', 'scale_qsv=format=p010le');
} }
else { else {

@ -37,7 +37,7 @@ const plugin = (args:IpluginInputArgs):IpluginOutputArgs => {
if (stream.codec_type === 'video') { if (stream.codec_type === 'video') {
stream.outputArgs.push('-profile:v:{outputTypeIndex}', 'main10'); stream.outputArgs.push('-profile:v:{outputTypeIndex}', 'main10');
if (stream.outputArgs.includes('qsv')) { if (stream.outputArgs.some((row) => row.includes('qsv'))) {
stream.outputArgs.push('-vf', 'scale_qsv=format=p010le'); stream.outputArgs.push('-vf', 'scale_qsv=format=p010le');
} else { } else {
stream.outputArgs.push('-pix_fmt:v:{outputTypeIndex}', 'p010le'); stream.outputArgs.push('-pix_fmt:v:{outputTypeIndex}', 'p010le');

Loading…
Cancel
Save