|
|
|
|
@ -47,6 +47,34 @@ const tests = [
|
|
|
|
|
inputs: {},
|
|
|
|
|
otherArguments: {},
|
|
|
|
|
},
|
|
|
|
|
output: {
|
|
|
|
|
processFile: true,
|
|
|
|
|
infoLog: 'Container for output selected as mkv. \n'
|
|
|
|
|
+ 'Current bitrate = 3058 \n'
|
|
|
|
|
+ 'Bitrate settings: \n'
|
|
|
|
|
+ 'Target = 3058 \n'
|
|
|
|
|
+ 'Minimum = 2140 \n'
|
|
|
|
|
+ 'Maximum = 3975 \n'
|
|
|
|
|
+ 'File is not h264. Transcoding. \n',
|
|
|
|
|
handBrakeMode: false,
|
|
|
|
|
FFmpegMode: true,
|
|
|
|
|
reQueueAfter: true,
|
|
|
|
|
container: '.mkv',
|
|
|
|
|
preset: ',-map 0 -c:v h264_nvenc -preset fast -crf 23 -tune film -b:v 3058k -minrate 2140k -maxrate 3975k -bufsize 3058k -c:a copy -c:s copy -max_muxing_queue_size 9999 -pix_fmt yuv420p ',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
input: {
|
|
|
|
|
file: (() => {
|
|
|
|
|
const file = _.cloneDeep(require('../sampleData/media/sampleH264_1.json'));
|
|
|
|
|
delete file.ffProbeData.streams[0].duration;
|
|
|
|
|
delete file.ffProbeData.format.duration;
|
|
|
|
|
return file;
|
|
|
|
|
})(),
|
|
|
|
|
librarySettings: {},
|
|
|
|
|
inputs: {},
|
|
|
|
|
otherArguments: {},
|
|
|
|
|
},
|
|
|
|
|
output: {
|
|
|
|
|
processFile: false,
|
|
|
|
|
infoLog: 'Target bitrate could not be calculated. Skipping this plugin. \n',
|
|
|
|
|
|