mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 17:55:55 -07:00
Add Tdarr_Plugin_MC93_Migz1FFMPEG_CPU test
This commit is contained in:
parent
f9ff9671a0
commit
90a337263a
2 changed files with 145 additions and 1 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
/* eslint no-plusplus: ["error", { "allowForLoopAfterthoughts": true }] */
|
/* eslint no-plusplus: ["error", { "allowForLoopAfterthoughts": true }] */
|
||||||
// tdarrSkipTest
|
|
||||||
const details = () => ({
|
const details = () => ({
|
||||||
id: 'Tdarr_Plugin_MC93_Migz1FFMPEG_CPU',
|
id: 'Tdarr_Plugin_MC93_Migz1FFMPEG_CPU',
|
||||||
Stage: 'Pre-processing',
|
Stage: 'Pre-processing',
|
||||||
|
|
|
||||||
145
tests/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js
Normal file
145
tests/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js
Normal file
|
|
@ -0,0 +1,145 @@
|
||||||
|
/* 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: ',-map 0 -c:v libx265 -b:v 758k -minrate 530k -maxrate 985k -bufsize 1517k -c:a copy -c:s copy -max_muxing_queue_size 9999 ',
|
||||||
|
handBrakeMode: false,
|
||||||
|
FFmpegMode: true,
|
||||||
|
reQueueAfter: true,
|
||||||
|
infoLog: 'Container for output selected as mkv. \n'
|
||||||
|
+ 'Current bitrate = 1517 \n'
|
||||||
|
+ 'Bitrate settings: \n'
|
||||||
|
+ 'Target = 758 \n'
|
||||||
|
+ 'Minimum = 530 \n'
|
||||||
|
+ 'Maximum = 985 \n'
|
||||||
|
+ 'File is not hevc or vp9. Transcoding. \n',
|
||||||
|
container: '.mkv',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
input: {
|
||||||
|
file: _.cloneDeep(require('../sampleData/media/sampleH265_1.json')),
|
||||||
|
librarySettings: {},
|
||||||
|
inputs: {},
|
||||||
|
otherArguments: {},
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
processFile: false,
|
||||||
|
preset: '',
|
||||||
|
handBrakeMode: false,
|
||||||
|
FFmpegMode: true,
|
||||||
|
reQueueAfter: true,
|
||||||
|
infoLog: 'File is already hevc or vp9 & in mkv. \n',
|
||||||
|
container: '.mkv',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
input: {
|
||||||
|
file: _.cloneDeep(require('../sampleData/media/sampleH264_1.json')),
|
||||||
|
librarySettings: {},
|
||||||
|
inputs: {
|
||||||
|
container: 'mp4',
|
||||||
|
enable_10bit: 'true',
|
||||||
|
force_conform: 'true',
|
||||||
|
},
|
||||||
|
otherArguments: {},
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
processFile: true,
|
||||||
|
preset: ',-map 0 -c:v libx265 -b:v 758k -minrate 530k -maxrate 985k -bufsize 1517k -c:a copy -c:s copy -max_muxing_queue_size 9999 -pix_fmt p010le ',
|
||||||
|
handBrakeMode: false,
|
||||||
|
FFmpegMode: true,
|
||||||
|
reQueueAfter: true,
|
||||||
|
infoLog: 'Container for output selected as mp4. \n'
|
||||||
|
+ 'Current bitrate = 1517 \n'
|
||||||
|
+ 'Bitrate settings: \n'
|
||||||
|
+ 'Target = 758 \n'
|
||||||
|
+ 'Minimum = 530 \n'
|
||||||
|
+ 'Maximum = 985 \n'
|
||||||
|
+ 'File is not hevc or vp9. Transcoding. \n',
|
||||||
|
container: '.mp4',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
input: {
|
||||||
|
file: _.cloneDeep(require('../sampleData/media/sampleH264_1.json')),
|
||||||
|
librarySettings: {},
|
||||||
|
inputs: {
|
||||||
|
container: 'mp4',
|
||||||
|
enable_10bit: 'true',
|
||||||
|
force_conform: 'true',
|
||||||
|
bitrate_cutoff: '10000',
|
||||||
|
},
|
||||||
|
otherArguments: {},
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
processFile: false,
|
||||||
|
preset: '',
|
||||||
|
handBrakeMode: false,
|
||||||
|
FFmpegMode: true,
|
||||||
|
reQueueAfter: true,
|
||||||
|
infoLog: 'Current bitrate is below set bitrate cutoff of 10000. Nothing to do, cancelling plugin. \n',
|
||||||
|
container: '.mp4',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
input: {
|
||||||
|
file: _.cloneDeep(require('../sampleData/media/sampleH264_1.json')),
|
||||||
|
librarySettings: {},
|
||||||
|
inputs: {
|
||||||
|
container: 'mp4',
|
||||||
|
enable_10bit: 'true',
|
||||||
|
force_conform: 'true',
|
||||||
|
bitrate_cutoff: '1000',
|
||||||
|
},
|
||||||
|
otherArguments: {},
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
processFile: true,
|
||||||
|
preset: ',-map 0 -c:v libx265 -b:v 758k -minrate 530k -maxrate 985k -bufsize 1517k -c:a copy -c:s copy -max_muxing_queue_size 9999 -pix_fmt p010le ',
|
||||||
|
handBrakeMode: false,
|
||||||
|
FFmpegMode: true,
|
||||||
|
reQueueAfter: true,
|
||||||
|
infoLog: 'Container for output selected as mp4. \n'
|
||||||
|
+ 'Current bitrate = 1517 \n'
|
||||||
|
+ 'Bitrate settings: \n'
|
||||||
|
+ 'Target = 758 \n'
|
||||||
|
+ 'Minimum = 530 \n'
|
||||||
|
+ 'Maximum = 985 \n'
|
||||||
|
+ 'File is not hevc or vp9. Transcoding. \n',
|
||||||
|
container: '.mp4',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
input: {
|
||||||
|
file: _.cloneDeep(require('../sampleData/media/sampleH265_1.json')),
|
||||||
|
librarySettings: {},
|
||||||
|
inputs: {
|
||||||
|
container: 'mp4',
|
||||||
|
force_conform: 'false',
|
||||||
|
},
|
||||||
|
otherArguments: {},
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
processFile: true,
|
||||||
|
preset: ', -map 0 -c copy ',
|
||||||
|
handBrakeMode: false,
|
||||||
|
FFmpegMode: true,
|
||||||
|
reQueueAfter: true,
|
||||||
|
infoLog: 'File is hevc or vp9 but is not in mp4 container. Remuxing. \n',
|
||||||
|
container: '.mp4',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
run(tests);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue