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", name: "codecs_to_transcode",
tooltip: `Specifiy the codecs which you'd like to transcode tooltip: `Specifiy the codecs which you'd like to transcode
\\nExample:\\n \\nExample:\\n
ac3 ac3
\\nExample:\\n \\nExample:\\n
eac3,ac3,aac eac3,ac3,aac
`, `,
}, },
{ {
name: "codec", name: "codec",
tooltip: `Specify the codec you'd like to transcode into: tooltip: `Specify the codec you'd like to transcode into:
\\n aac \\n aac
\\n ac3 \\n ac3
\\n eac3 \\n eac3
@ -40,14 +31,9 @@ module.exports.details = function details() {
\\n mp2 \\n mp2
\\n mp3 \\n mp3
\\n truehd \\n truehd
\\nExample:\\n \\nExample:\\n
eac3 eac3
`, `,
}, },
], ],
@ -96,6 +82,8 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) {
) { ) {
ffmpegCommand += ` -map 0:${i} -c:${i} ${encoder} `; ffmpegCommand += ` -map 0:${i} -c:${i} ${encoder} `;
hasStreamsToTranscode = true; hasStreamsToTranscode = true;
} else if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio") {
ffmpegCommand += ` -map 0:${i}`;
} }
} }

Loading…
Cancel
Save