mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Update qsv check
This commit is contained in:
parent
fec677b37e
commit
ee109cacfb
2 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue