Add Tdarr_Plugin_00td_action_handbrake_basic_options test

This commit is contained in:
HaveAGitGat 2022-05-21 13:59:37 +01:00
parent 8f9a97021f
commit 3d7314b94c
2 changed files with 74 additions and 1 deletions

View file

@ -1,4 +1,3 @@
// tdarrSkipTest
const details = () => ({
id: 'Tdarr_Plugin_00td_action_handbrake_basic_options',
Stage: 'Pre-processing',

View file

@ -0,0 +1,74 @@
/* eslint max-len: 0 */
const run = require('../helpers/run');
const tests = [
{
input: {
file: require('../sampleData/media/sampleH264_1.json'),
librarySettings: {},
inputs: {},
otherArguments: {},
},
output: {
processFile: true,
preset: '-Z "Very Fast 1080p30" -e x265 --all-subtitles',
container: '.mkv',
handBrakeMode: false,
FFmpegMode: false,
reQueueAfter: true,
infoLog: 'File is being transcoded using HandBrake \n',
handbrakeMode: true,
ffmpegMode: false,
},
},
{
input: {
file: require('../sampleData/media/sampleH264_1.json'),
librarySettings: {},
inputs: {
handbrakePreset: 'Fast 576p25',
videoEncoder: 'nvenc_h265',
keepSubtitles: 'true',
container: 'mp4',
},
otherArguments: {},
},
output: {
processFile: true,
preset: '-Z "Fast 576p25" -e nvenc_h265 --all-subtitles',
container: '.mp4',
handBrakeMode: false,
FFmpegMode: false,
reQueueAfter: true,
infoLog: 'File is being transcoded using HandBrake \n',
handbrakeMode: true,
ffmpegMode: false,
},
},
{
input: {
file: require('../sampleData/media/sampleH264_1.json'),
librarySettings: {},
inputs: {
handbrakePreset: 'Fast 576p25',
videoEncoder: 'nvenc_h265',
keepSubtitles: 'false',
container: 'mov',
},
otherArguments: {},
},
output: {
processFile: true,
preset: '-Z "Fast 576p25" -e nvenc_h265 ',
container: '.mov',
handBrakeMode: false,
FFmpegMode: false,
reQueueAfter: true,
infoLog: 'File is being transcoded using HandBrake \n',
handbrakeMode: true,
ffmpegMode: false,
},
},
];
run(tests);