Add Tdarr_Plugin_00td_action_handbrake_basic_options test

make-only-subtitle-default
HaveAGitGat 4 years ago
parent 8f9a97021f
commit 3d7314b94c

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

@ -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);
Loading…
Cancel
Save