mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 10:15:54 -07:00
Don't use scale_qsv=format=p010le on Windows
This commit is contained in:
parent
98858a2542
commit
ad053bc8ef
1 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
import os from 'os';
|
||||||
import {
|
import {
|
||||||
IpluginDetails,
|
IpluginDetails,
|
||||||
IpluginInputArgs,
|
IpluginInputArgs,
|
||||||
|
|
@ -37,7 +38,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.some((row) => row.includes('qsv'))) {
|
if (stream.outputArgs.some((row) => row.includes('qsv')) && os.platform() !== 'win32') {
|
||||||
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