Add Tdarr_Plugin_00td_action_standardise_audio_stream_codecs test

This commit is contained in:
HaveAGitGat 2022-05-21 15:19:00 +01:00
parent 8fc04f8ab0
commit 8f442d4bbf
2 changed files with 66 additions and 1 deletions

View file

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

View file

@ -0,0 +1,66 @@
/* eslint max-len: 0 */
const run = require('../helpers/run');
const tests = [
{
input: {
file: require('../sampleData/media/sampleH264_1.json'),
librarySettings: {},
inputs: {},
otherArguments: {},
},
output: {
processFile: false,
preset: '',
container: '.mp4',
handBrakeMode: false,
FFmpegMode: false,
reQueueAfter: true,
infoLog: "File does not have any audio streams which aren't in aac \n",
handbrakeMode: false,
ffmpegMode: true,
},
},
{
input: {
file: require('../sampleData/media/sampleH264_2.json'),
librarySettings: {},
inputs: {},
otherArguments: {},
},
output: {
processFile: true,
preset: ',-map 0:v -map 0:a -map 0:s? -map 0:d? -c copy -c:a:0 aac -c:a:1 aac -c:a:2 aac',
container: '.mkv',
handBrakeMode: false,
FFmpegMode: false,
reQueueAfter: true,
infoLog: "File has audio streams which aren't in aac \n",
handbrakeMode: false,
ffmpegMode: true,
},
},
{
input: {
file: require('../sampleData/media/sampleH264_2.json'),
librarySettings: {},
inputs: {
audioCodec: 'eac3',
},
otherArguments: {},
},
output: {
processFile: true,
preset: ',-map 0:v -map 0:a -map 0:s? -map 0:d? -c copy -c:a:0 eac3 -c:a:1 eac3 -c:a:3 eac3 -c:a:4 eac3',
container: '.mkv',
handBrakeMode: false,
FFmpegMode: false,
reQueueAfter: true,
infoLog: "File has audio streams which aren't in eac3 \n",
handbrakeMode: false,
ffmpegMode: true,
},
},
];
run(tests);