Update Check Video Bitrate

This commit is contained in:
HaveAGitGat 2023-09-24 10:40:52 +01:00
parent b71bd5ea3e
commit 8b327f3534
2 changed files with 4 additions and 2 deletions

View file

@ -86,9 +86,10 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => {
if (args.inputFileObj?.mediaInfo?.track) {
args.inputFileObj.mediaInfo.track.forEach((stream) => {
if (stream['@type'] === 'video') {
if (stream['@type'].toLowerCase() === 'video') {
if (stream.BitRate) {
hasVideoBitrate = true;
args.jobLog(`Found video bitrate: ${stream.BitRate}`);
}
if (stream.BitRate >= greaterThanBits && stream.BitRate <= lessThanBits) {
isWithinRange = true;