Update: MigzPlugins

Updated all plugins to include "-max_muxing_queue_size 4096"
This commit is contained in:
Migz93 2020-03-29 17:28:20 +01:00
parent 86835f6682
commit b22c576c84
5 changed files with 49 additions and 49 deletions

View file

@ -40,7 +40,7 @@ function plugin(file) {
}
videoIdx++
}
if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio") {
if (subtitleIdx != "0") {
convert = true
@ -66,13 +66,13 @@ function plugin(file) {
response.infoLog += "☒ Audio 8ch not last. \n"
}
}
if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "subtitle") {
subtitleIdx++
}
} catch (err) { }
}
for (var i = 0; i < file.ffProbeData.streams.length; i++) {
try {
if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "video" && file.ffProbeData.streams[i].codec_name.toLowerCase() != "mjpeg") {
@ -80,7 +80,7 @@ function plugin(file) {
}
} catch (err) { }
}
for (var i = 0; i < file.ffProbeData.streams.length; i++) {
try {
if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio" && file.ffProbeData.streams[i].channels == "2") {
@ -88,7 +88,7 @@ function plugin(file) {
}
} catch (err) { }
}
for (var i = 0; i < file.ffProbeData.streams.length; i++) {
try {
if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio" && file.ffProbeData.streams[i].channels == "6") {
@ -96,7 +96,7 @@ function plugin(file) {
}
} catch (err) { }
}
for (var i = 0; i < file.ffProbeData.streams.length; i++) {
try {
if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio" && file.ffProbeData.streams[i].channels == "8") {
@ -104,7 +104,7 @@ function plugin(file) {
}
} catch (err) { }
}
for (var i = 0; i < file.ffProbeData.streams.length; i++) {
try {
if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio" && file.ffProbeData.streams[i].channels != "2" && file.ffProbeData.streams[i].channels != "6" && file.ffProbeData.streams[i].channels != "8") {
@ -112,7 +112,7 @@ function plugin(file) {
}
} catch (err) { }
}
for (var i = 0; i < file.ffProbeData.streams.length; i++) {
try {
if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "subtitle") {
@ -123,7 +123,7 @@ function plugin(file) {
if (convert == true) {
response.processFile = true;
response.preset = `,${ffmpegCommandInsert} -c copy`
response.preset = `,${ffmpegCommandInsert} -c copy -max_muxing_queue_size 4096`
response.reQueueAfter = true;
response.infoLog += "☒ Streams are out of order, reorganizing streams. Video, Audio, Subtitles. \n"
} else {
@ -131,7 +131,7 @@ function plugin(file) {
response.processFile = false;
}
return response
}
module.exports.details = details;
module.exports.plugin = plugin;
module.exports.plugin = plugin;