Borewit

Results 226 comments of Borewit

Any Node specific functionality is already strictly separated by a Node conditional export. Random access in a blob may not be directly available. I doubt blob.slice() meets the same performance...

@jimmywarting , I did some experimental utilizing Blob.slice. I did not stream each slice, I used the slice() as my read method. I added a [BlobTokenizer](https://github.com/Borewit/strtok3/blob/add-fromBlob/lib/BlobTokenizer.ts) to the [strtok3 module](https://github.com/Borewit/strtok3/blob/add-fromBlob)...

> i'm developing a media player in html and plan on using your fantastic lib. ❤️ Cool! Let me know if you want link to your open source project page....

> Well, the music file is coming from [file system access](https://github.com/WICG/file-system-access/) so i'm able to get ahold of a file backed up by the file system. Okay, I see what...

> parsing a file is not as fast as i would hope it would be... 😞 > > doing the following: > > const start = performance.now() > const metadata...

@jimmywarting , I released [strtok3 v 10.3.0](https://github.com/Borewit/strtok3/releases/tag/v10.3.0), with support for slicing Blob tokenzier (function: `fromBlob`). That tokenizer you can pass to music-metadata, using [`parseFromTokenizer`](https://github.com/Borewit/music-metadata?tab=readme-ov-file#parsefromtokenizer-function).

Ping dear @jimmywarting

I originally designed this component to handle tens of thousands of media files efficiently. If you have any lessons learned that could be relevant here, I’d be glad to hear...

That is in my opinion in scope. Please note that we got the BOM covered in a generic way: https://github.com/sindresorhus/file-type/blob/988bf4bc9f9bc98e8f3360da4dfa36e5caa455b3/core.js#L251-L255 So ignore the magic numbers with the BOM field (`EF...

I am not sure if this works for every video, but this will at least detect some video's: ```js const metadata = await mm.parseFile(filePath); const isVideo = typeof metadata.common.hdVideo !==...