mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Merge pull request #430 from StickieBE/master
Fix issue with Smoove h264 NVENC plugin.
This commit is contained in:
commit
9fc79d891c
2 changed files with 7 additions and 3 deletions
|
|
@ -68,6 +68,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
reQueueAfter: true,
|
||||
// Leave as true. File will be re-qeued afterwards and pass through the plugin
|
||||
// filter again to make sure it meets conditions.
|
||||
preset: '', // Initialize with an empty string
|
||||
};
|
||||
|
||||
// Check that inputs.container has been configured, else dump out
|
||||
|
|
@ -228,7 +229,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
response.preset = '-c:v vp8_cuvid';
|
||||
}
|
||||
|
||||
response.preset += `,-map 0 -c:v h264_nvenc -preset fast -crf 23 -tune film ${bitrateSettings} `
|
||||
response.preset += `,-map 0 -c:v h264_nvenc -preset fast -crf 23 ${bitrateSettings} `
|
||||
+ `-c:a copy -c:s copy -max_muxing_queue_size 9999 -pix_fmt yuv420p ${extraArguments}`;
|
||||
response.processFile = true;
|
||||
response.infoLog += 'File is not h264. Transcoding. \n';
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ const tests = [
|
|||
handBrakeMode: false,
|
||||
FFmpegMode: true,
|
||||
reQueueAfter: true,
|
||||
preset: '',
|
||||
container: '.mkv',
|
||||
},
|
||||
},
|
||||
|
|
@ -59,8 +60,8 @@ const tests = [
|
|||
handBrakeMode: false,
|
||||
FFmpegMode: true,
|
||||
reQueueAfter: true,
|
||||
preset: ',-map 0 -c:v h264_nvenc -preset fast -crf 23 -b:v 3058k -minrate 2140k -maxrate 3975k -bufsize 3058k -c:a copy -c:s copy -max_muxing_queue_size 9999 -pix_fmt yuv420p ',
|
||||
container: '.mkv',
|
||||
preset: ',-map 0 -c:v h264_nvenc -preset fast -crf 23 -tune film -b:v 3058k -minrate 2140k -maxrate 3975k -bufsize 3058k -c:a copy -c:s copy -max_muxing_queue_size 9999 -pix_fmt yuv420p ',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -81,6 +82,7 @@ const tests = [
|
|||
handBrakeMode: false,
|
||||
FFmpegMode: true,
|
||||
reQueueAfter: true,
|
||||
preset: '',
|
||||
container: '.mkv',
|
||||
},
|
||||
},
|
||||
|
|
@ -107,8 +109,8 @@ const tests = [
|
|||
handBrakeMode: false,
|
||||
FFmpegMode: true,
|
||||
reQueueAfter: true,
|
||||
preset: ',-map 0 -c:v h264_nvenc -preset fast -crf 23 -b:v 1526k -minrate 1068k -maxrate 1983k -bufsize 1526k -c:a copy -c:s copy -max_muxing_queue_size 9999 -pix_fmt yuv420p ',
|
||||
container: '.mkv',
|
||||
preset: 'undefined,-map 0 -c:v h264_nvenc -preset fast -crf 23 -tune film -b:v 1526k -minrate 1068k -maxrate 1983k -bufsize 1526k -c:a copy -c:s copy -max_muxing_queue_size 9999 -pix_fmt yuv420p ',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -126,6 +128,7 @@ const tests = [
|
|||
handBrakeMode: false,
|
||||
FFmpegMode: true,
|
||||
reQueueAfter: true,
|
||||
preset: '',
|
||||
container: '.mp4',
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue