Add Tdarr_Plugin_jeons001_Downmix_to_stereo_and_apply_DRC test

This commit is contained in:
HaveAGitGat 2022-05-22 17:25:09 +01:00
parent a9c2007e56
commit 814e763444
2 changed files with 42 additions and 4 deletions

View file

@ -1,4 +1,3 @@
// tdarrSkipTest
const details = () => ({
id: 'Tdarr_Plugin_jeons001_Downmix_to_stereo_and_apply_DRC',
Stage: 'Pre-processing',
@ -24,9 +23,6 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
FFmpegMode: true,
reQueueAfter: true,
infoLog: '',
file,
removeFromDB: false,
updateDB: false,
container: `.${file.container}`,
};

View file

@ -0,0 +1,42 @@
/* eslint max-len: 0 */
const _ = require('lodash');
const run = require('../helpers/run');
const tests = [
{
input: {
file: _.cloneDeep(require('../sampleData/media/sampleH264_1.json')),
librarySettings: {},
inputs: {},
otherArguments: {},
},
output: {
processFile: true,
preset: '-sn <io> -vcodec copy -scodec copy -acodec aac -filter:a "dynaudnorm,pan=stereo|FL < 1.0*FL + 0.707*FC + 0.707*BL|FR < 1.0*FR + 0.707*FC + 0.707*BR"',
handBrakeMode: false,
FFmpegMode: true,
reQueueAfter: true,
infoLog: 'File matches requirements for processing. Downmixing and applying DRC!',
container: '.mp4',
},
},
{
input: {
file: _.cloneDeep(require('../sampleData/media/sampleH264_2.json')),
librarySettings: {},
inputs: {},
otherArguments: {},
},
output: {
processFile: false,
preset: '',
handBrakeMode: false,
FFmpegMode: true,
reQueueAfter: true,
infoLog: 'File has more than 1 audio track - not processing',
container: '.mkv',
},
},
];
run(tests);