aidewoode / wahwah Goto Github PK
View Code? Open in Web Editor NEWRuby gem for reading audio metadata
License: MIT License
Ruby gem for reading audio metadata
License: MIT License
Some of us are doing very specific time calculations.
I have several albums where no artist/album is recognized by wahwah, but MP4Info does recognize and extract the correct information, so I know it's in there.
MP4Info has several m4a files in its test directory that wahwah doesn't pull all the information for correctly. I'm not very familiar with the m4a format or parsing out atoms and such, but I could write failing tests for those files if that would be helpful.
However, wahwah does seem to pull the artist/album names correctly for those test files where with my files it does not. I could send you a sample file if that would be helpful too.
This can solve this issue blackcandy-org/blackcandy#175 . I can use bit depth to determine if the audio file is lossless or not.
This library does not yet support AAIF files which is another lossless audio codec which stores metadata. Support for this would be very useful.
It would be great if this library would return the bit depth of the audio file. Since you already use bits_per_sample
internally, it wouldn't make a big change to rename this to bit_depth
and expose the property. I got this to work locally for both flac and wav.
However, files with lossy compression don't have a bit depth. I'd propose to just leave this nil
.
The only encoding I'm unclear on is ASF since WMA can be both lossy and lossless.
It be happy to work on a PR for this, but wanted to check-in first.
I have some wav file, it can play on vlc, but when I use WahWah to get the duration of the file. I get zero
I've noticed a problem with flac files that contain vorbis tags. While they are by a lot of other libraries (ffprobe, EasyTag), they aren't recognized by WahWah (giving a result like <WahWah::FlacTag:0x5000 title= artist= album= albumartist= composer= track= track_total= genre= year= disc= disc_total= duration=933 bitrate=705 sample_rate=44100 bit_depth=16>
).
If I reencode the file (without changing any of the tags), it is recognized by wahwah. The files might have slight fault or problems in encoding, but it would be nice to make the library more robust.
I can send a few sample files in private if this would help.
I'm looking to use WahWah as part of a Jekyll-based podcast publishing tool, and to that end, it would be mighty helpful if it supported chapters (which are finally – over a decade since their introduction – seeing some adoption among player software).
Ogg's chapters are documented here, and ID3v2's chapters are documented here. There's also reportedly a proprietary chapter encoding used by Apple in their M4A files, but I might argue that supporting that is a secondary or… tertiary or… quaternary priority. (I haven't surveyed how much use they see in the wild, however, so I can't say for entirely certain.)
Thank you ever so much for the wonderful library! 😊 I can't tell you how much of a relief it is to have a library that unifies the API for all these formats successfully!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.