Misc changes
This commit is contained in:
parent
93ff21021c
commit
9e9906ffed
@ -329,8 +329,8 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||
|
||||
//LOGIC NEEDS ADDING FOR IF AN AC3 TRACK HAS BEEN CREATED WITH FEWER THAN 6 CHANNELS
|
||||
|
||||
console.log(`Neither a TrueHD track or a desireable AC3 5.1 track exist. Selecting the first audio track and converting it to AC3.`)
|
||||
response.infoLog += 'Neither a TrueHD track or a desireable AC3 5.1 track exist. Selecting the first audio track and converting it to AC3.\n'
|
||||
console.log(`Neither a TrueHD track nor a desireable AC3 5.1 track exist. Selecting the first audio track and converting it to AC3.`)
|
||||
response.infoLog += 'Neither a TrueHD track nor a desireable AC3 5.1 track exist. Selecting the first audio track and converting it to AC3.\n'
|
||||
|
||||
if (file.ffProbeData.streams[1].codec_type.toLowerCase() === 'audio') {
|
||||
|
||||
@ -486,6 +486,8 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
const processSubs = (file, librarySettings, inputs, otherArguments) => {
|
||||
|
||||
if (inputs.process_subs == false) {
|
||||
@ -559,6 +561,8 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
const processVideo = (file, librarySettings, inputs, otherArguments) => {
|
||||
|
||||
if (inputs.process_video == false) {
|
||||
@ -590,6 +594,8 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
// Start running functions
|
||||
|
||||
processAudio(file, librarySettings, inputs, otherArguments);
|
||||
@ -606,7 +612,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||
|
||||
response.container = `.${file.container}`;
|
||||
|
||||
response.preset = `,-c copy -map 0:v?${ffmpegVideo}${ffmpegAudioFirstTrack}${ffmpegAudioOtherTracks} -map 0:s?${ffmpegSubs} -map 0:d? -max_muxing_queue_size 9999`;
|
||||
response.preset = `,-c copy -map 0:v?${ffmpegVideo} -map 0:a?${ffmpegAudioFirstTrack}${ffmpegAudioOtherTracks} -map 0:s?${ffmpegSubs} -map 0:d? -max_muxing_queue_size 9999`;
|
||||
|
||||
console.log(response.preset)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user