make-only-subtitle-default
HaveAGitGat 5 years ago
parent ad7ec9d2b9
commit 17ae08abf3

@ -13,25 +13,16 @@ module.exports.details = function details() {
{
name: "codecs_to_transcode",
tooltip: `Specifiy the codecs which you'd like to transcode
\\nExample:\\n
ac3
\\nExample:\\n
eac3,ac3,aac
`,
},
{
name: "codec",
tooltip: `Specify the codec you'd like to transcode into:
\\n aac
\\n ac3
\\n eac3
@ -40,13 +31,8 @@ module.exports.details = function details() {
\\n mp2
\\n mp3
\\n truehd
\\nExample:\\n
eac3
`,
},
@ -96,6 +82,8 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) {
) {
ffmpegCommand += ` -map 0:${i} -c:${i} ${encoder} `;
hasStreamsToTranscode = true;
} else if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio") {
ffmpegCommand += ` -map 0:${i}`;
}
}
@ -116,4 +104,4 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) {
response.infoLog += `☒ File has streams which aren't in desired codec! \n`;
return response;
}
};
};
Loading…
Cancel
Save