Merge branch 'master' into JB69Plugin

This commit is contained in:
HaveAGitGat 2021-12-09 07:43:37 +00:00 committed by GitHub
commit 0b3a53bfec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 1890 additions and 654 deletions

View file

@ -1,3 +1,4 @@
/* eslint-disable */
//////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Author: JarBinks, Zachg99, Jeff47
@ -33,7 +34,7 @@
// If the source video is less than this rate the script will either:
// Copy the existing stream, if the codec is hevc
// Transcode the stream to hevc using 80% of the original streams bitrate
// It could probably be less but if the source is of low bitrate we don<EFBFBD>t want to compromise too much on the transcode
// It could probably be less but if the source is of low bitrate we don't want to compromise too much on the transcode
//
// If the source media bitrate is close, within 10%, of the target bitrate and the codec is hevc, it will copy instead of transcode to preserve quality
//
@ -52,7 +53,7 @@
// If the source audio is less than this rate the script will either:
// Copy the existing stream, if the codec is aac
// Transcode the stream to aac using 100% of the original streams bitrate
// It could probably be less but if the source is of low bitrate but, we don<EFBFBD>t want to compromise too much on the transcode
// It could probably be less but if the source is of low bitrate but, we don't want to compromise too much on the transcode
//
// Subtitles:
// All are removed?? (TODO: ensure this is correct and mention the flag to keep them if desired)
@ -760,9 +761,9 @@ function findMediaInfoItem(file, index) {
currMIOrder = file.mediaInfo.track[i].ID - 1;
}
if (currMIOrder == index|| currMIOrder == "0-" + index) {
return i;
}
if (currMIOrder == index|| currMIOrder == "0-" + index) {
return i;
}
}
return -1;
}