make-only-subtitle-default
HaveAGitGat 4 years ago
parent 0b3a53bfec
commit c208ace5f2

@ -34,7 +34,7 @@
// If the source video is less than this rate the script will either: // If the source video is less than this rate the script will either:
// Copy the existing stream, if the codec is hevc // Copy the existing stream, if the codec is hevc
// Transcode the stream to hevc using 80% of the original streams bitrate // 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't want to compromise too much on the transcode // 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
// //
// 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 // 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
// //
@ -53,7 +53,7 @@
// If the source audio is less than this rate the script will either: // If the source audio is less than this rate the script will either:
// Copy the existing stream, if the codec is aac // Copy the existing stream, if the codec is aac
// Transcode the stream to aac using 100% of the original streams bitrate // 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'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<EFBFBD>t want to compromise too much on the transcode
// //
// Subtitles: // Subtitles:
// All are removed?? (TODO: ensure this is correct and mention the flag to keep them if desired) // All are removed?? (TODO: ensure this is correct and mention the flag to keep them if desired)
@ -761,9 +761,9 @@ function findMediaInfoItem(file, index) {
currMIOrder = file.mediaInfo.track[i].ID - 1; currMIOrder = file.mediaInfo.track[i].ID - 1;
} }
if (currMIOrder == index|| currMIOrder == "0-" + index) { if (currMIOrder == index|| currMIOrder == "0-" + index) {
return i; return i;
} }
} }
return -1; return -1;
} }

Loading…
Cancel
Save