mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-17 11:16:26 -07:00
qsv 10 bit
This commit is contained in:
parent
bd1638716c
commit
4775ce37a6
2 changed files with 14 additions and 2 deletions
|
|
@ -31,7 +31,13 @@ var plugin = function (args) {
|
||||||
for (var i = 0; i < args.variables.ffmpegCommand.streams.length; i += 1) {
|
for (var i = 0; i < args.variables.ffmpegCommand.streams.length; i += 1) {
|
||||||
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('-pix_fmt:v:{outputTypeIndex}', 'p010le', '-profile:v:{outputTypeIndex}', 'main10');
|
stream.outputArgs.push('-profile:v:{outputTypeIndex}', 'main10');
|
||||||
|
if (stream.outputArgs.includes('qsv')) {
|
||||||
|
stream.outputArgs.push('-vf', 'scale_qsv=format=p010le');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
stream.outputArgs.push('-pix_fmt:v:{outputTypeIndex}', 'p010le');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,13 @@ const plugin = (args:IpluginInputArgs):IpluginOutputArgs => {
|
||||||
for (let i = 0; i < args.variables.ffmpegCommand.streams.length; i += 1) {
|
for (let i = 0; i < args.variables.ffmpegCommand.streams.length; i += 1) {
|
||||||
const stream = args.variables.ffmpegCommand.streams[i];
|
const stream = args.variables.ffmpegCommand.streams[i];
|
||||||
if (stream.codec_type === 'video') {
|
if (stream.codec_type === 'video') {
|
||||||
stream.outputArgs.push('-pix_fmt:v:{outputTypeIndex}', 'p010le', '-profile:v:{outputTypeIndex}', 'main10');
|
stream.outputArgs.push('-profile:v:{outputTypeIndex}', 'main10');
|
||||||
|
|
||||||
|
if (stream.outputArgs.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