|
|
|
|
@ -17,8 +17,8 @@ function details() {
|
|
|
|
|
function plugin(file) {
|
|
|
|
|
const response = {
|
|
|
|
|
processFile: false,
|
|
|
|
|
preset: `,-map 0 -codec copy -bsf:v 'filter_units=remove_types=6'`,
|
|
|
|
|
container: '.${file.container}',
|
|
|
|
|
preset: ',-map 0 -codec copy -bsf:v \"filter_units=remove_types=6\"',
|
|
|
|
|
container: `.${file.container}`,
|
|
|
|
|
handBrakeMode: false,
|
|
|
|
|
FFmpegMode: true,
|
|
|
|
|
reQueueAfter: true,
|
|
|
|
|
@ -35,15 +35,15 @@ function plugin(file) {
|
|
|
|
|
return response;
|
|
|
|
|
}
|
|
|
|
|
// If not, check for Closed Captions in the streams
|
|
|
|
|
const streams = file.ffProbeData.streams;
|
|
|
|
|
const {streams} = file.ffProbeData;
|
|
|
|
|
for (const stream in streams) {
|
|
|
|
|
if (stream.closed_captions) {
|
|
|
|
|
response.processFile = true;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
response.infoLog += response.processFile ? '☒This file has burnt closed captions \n' :
|
|
|
|
|
'☑Closed captions have not been detected on this file \n';
|
|
|
|
|
response.infoLog += response.processFile ? '☒This file has burnt closed captions \n'
|
|
|
|
|
: '☑Closed captions have not been detected on this file \n';
|
|
|
|
|
return response;
|
|
|
|
|
}
|
|
|
|
|
module.exports.details = details;
|
|
|
|
|
|