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