From f98469f09ba84b57bc3db213fe520f0569c53d5f Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Fri, 25 Aug 2023 13:21:07 +0500 Subject: [PATCH] bogus text for unsupported codec mime string --- mp4-tree.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mp4-tree.js b/mp4-tree.js index a19fb80..e99b888 100644 --- a/mp4-tree.js +++ b/mp4-tree.js @@ -43,6 +43,8 @@ class MP4Tree { parse_codecs() { this.parse_into('moov', 8); // loop over all traks (can handle pure audio, pure video, both, multiple) + // only doing h264 video since thats all I can check currently doing + // transcoding and running obs together with cpu usage while (this.idx < this.data.byteLength) { if (!this.parse_until('trak')) { // if no more tracks in file break; @@ -60,6 +62,8 @@ class MP4Tree { this.parse_avc1(); } else if (media_sample == 'mp4a') { this.parse_mp4a(); + } else { + this.codecs.push('unsup codec'); } } this.idx = curr_track_end; // always skip to end of current processed track