Skip to content

Commit

Permalink
Merge pull request #572 from HaveAGitGat/qsv
Browse files Browse the repository at this point in the history
Update qsv check
  • Loading branch information
HaveAGitGat authored Dec 19, 2023
2 parents fec677b + ee109ca commit 2818e80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var plugin = function (args) {
var stream = args.variables.ffmpegCommand.streams[i];
if (stream.codec_type === 'video') {
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');
}
else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const plugin = (args:IpluginInputArgs):IpluginOutputArgs => {
if (stream.codec_type === 'video') {
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');
} else {
stream.outputArgs.push('-pix_fmt:v:{outputTypeIndex}', 'p010le');
Expand Down

0 comments on commit 2818e80

Please sign in to comment.