tooltip:'Comma separated list of input codecs to be processed. Defaults to dts.'+
'\\nExample:\\n'+
'dts,aac,ac3'
tooltip:'Comma separated list of input codecs to be processed. Defaults to dts.'
+'\\nExample:\\n'
+'dts,aac,ac3',
},{
name:'output_codec',
tooltip:'FFMPEG encoder used for the output of the new tracks. Defaults to ac3.'
tooltip:'FFMPEG encoder used for the output of the new tracks. Defaults to ac3.',
},{
name:'bitrate',
tooltip:`Specifies the (stereo) bitrate for the new audio codec. Defaults to 128k. Only numbers.`
tooltip:'Specifies the (stereo) bitrate for the new audio codec. Defaults to 128k. Only numbers.',
},{
name:'auto_adjust',
tooltip:'[true/false] Multi-channel audio requires a higher bitrate for the same quality, do you want the plugin to calculate this? (bitrate * (channels / 2))'
tooltip:'[true/false] Multi-channel audio requires a higher bitrate for the same quality, '
+'do you want the plugin to calculate this? (bitrate * (channels / 2))',
},{
name:'custom_bitrate_input',
tooltip:'DIRECT ACCESS TO FFMPEG, USE WITH CAUTION. If filled, can be used for custom bitrate arguments.'
tooltip:'DIRECT ACCESS TO FFMPEG, USE WITH CAUTION. If filled, can be used for custom bitrate arguments.',
}],
}
};
}
functionplugin(file,librarySettings,inputs){
varresponse={
constresponse={
processFile:false,
preset:', -c copy -map 0:v ',
container:'.'+file.container,
container:`.${file.container}`,
handBrakeMode:false,
FFmpegMode:true,
reQueueAfter:false,
infoLog:'',
}
};
// Check if file is a video. If it isn't then exit plugin.
if(file.fileMedium!=='video'){
response.infoLog+='☒File is not video \n'
returnresponse
response.infoLog+='☒File is not video \n';
returnresponse;
}
// Check if file is mkv. If it isn't then exit plugin.