node-taglib icon indicating copy to clipboard operation
node-taglib copied to clipboard

Write to Buffer

Open dekz opened this issue 14 years ago • 4 comments

Support for writing to a Buffer instead of a FileRef.

Most subclasses have a .render() method (yay!) but it looks like some (MP4) don't which sucks (sad).

dekz avatar Oct 11 '11 08:10 dekz

render() is spread all throughout, for MP3 its in the ID3v1/2 Tag, for Ogg it is in PageHeader and so on. Until node-taglib decides to become a comprehensive binding for Taglib, this can't/won't be done.

At present TagLib also does not allow reading meta-data from streams.

If you can come up with a use case for why this is required, I'll try to do it. Thanks.

nikhilm avatar Nov 24 '11 06:11 nikhilm

TagLib v1.8 (currently master) has an abstraction called IOStream taglib/taglib@8b59bb595779721f884fedf4e16965031b223413, which should allow this.

nikhilm avatar Jan 13 '12 06:01 nikhilm

https://github.com/nikhilm/node-taglib/tree/buffers

some progress towards this goal

nikhilm avatar May 23 '12 16:05 nikhilm

reading from buffers is easy. But buffer length is immutable! how do we handle writes in this case?

nikhilm avatar May 29 '12 10:05 nikhilm