mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
set global_quality only when qsv
This commit is contained in:
parent
8c8468f0cd
commit
0614a711e8
1 changed files with 5 additions and 1 deletions
|
|
@ -217,7 +217,11 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
|
|||
|
||||
if (ffmpegQualityEnabled) {
|
||||
if (encoderProperties.isGpu) {
|
||||
stream.outputArgs.push('-global_quality', ffmpegQuality);
|
||||
if(encoderProperties.encoder == 'hevc_qsv') {
|
||||
stream.outputArgs.push('-global_quality', ffmpegQuality);
|
||||
} else {
|
||||
stream.outputArgs.push('-qp', ffmpegQuality);
|
||||
}
|
||||
} else {
|
||||
stream.outputArgs.push('-crf', ffmpegQuality);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue