You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
/* 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: false,
|
|
preset: '',
|
|
container: '.mp4',
|
|
handBrakeMode: false,
|
|
FFmpegMode: false,
|
|
reQueueAfter: false,
|
|
infoLog: '☑File is a video! \n'
|
|
+ "☑File doesn't contain commentary tracks! \n"
|
|
+ '☑File meets conditions! \n',
|
|
},
|
|
},
|
|
{
|
|
input: {
|
|
file: (() => {
|
|
const file = _.cloneDeep(require('../sampleData/media/sampleH264_1.json'));
|
|
file.ffProbeData.streams[1].tags.title = 'commentary';
|
|
return file;
|
|
})(),
|
|
librarySettings: {},
|
|
inputs: {},
|
|
otherArguments: {},
|
|
},
|
|
output: {
|
|
processFile: true,
|
|
preset: ', -map 0 -map -0:a:0 -c copy',
|
|
container: '.mp4',
|
|
handBrakeMode: false,
|
|
FFmpegMode: true,
|
|
reQueueAfter: true,
|
|
infoLog: '☑File is a video! \n☒File contains commentary tracks. Removing! \n',
|
|
},
|
|
},
|
|
];
|
|
|
|
void run(tests);
|