Borewit

Results 226 comments of Borewit

I am dropping CommonJS support, it became undo-able to maintain both branches, for each package system, an this repository and all the underlying packages. ESM usage is becoming the standard...

@Vorelli any possibility you finalize this PR?

I don't think the duration is present in the metadata. To derive the duration from audio, is out of scope for this package.

I was curious if the fix could make music-metadata parse the duration, just to check if it conceptually works. I could not directly get it work: https://github.com/Borewit/parse-webm-with-duration/blob/main/index.js

How do know you have to read your way through the junk, byte by byte, if you are even unsure at that point what you are reading? If you know...

It is a chicken and egg issue. MP3 files prefixed by junk do appear in the wild, and due to the way they are encoded, MP3 decoders keep reading the...

Can you provide a sample of such a file @farski ?

~~I believe I have not received any sample yet @farski , please include a reference to this issue, if you do send it.~~ Got it.

This custom detector does the job: ```js import {NodeFileTypeParser} from 'file-type'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; const filename = fileURLToPath(import.meta.url); const dirname = path.dirname(filename); function...