mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 17:55:55 -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];
|
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…
Add table
Add a link
Reference in a new issue