agillis Posted November 25, 2009 Share Posted November 25, 2009 I would like to add ID3v2 tags to some wav files. Does anybody know a command line Linux app that does this? I don't have Windows or a Linux desktop so it must be command line. Thanks. agillis Small Green Computer http://www.smallgreencomputer.com/ Link to comment
The Computer Audiophile Posted November 25, 2009 Share Posted November 25, 2009 Are you sure you'll be able to do this with standard WAV files? Broadcast WAV files can handle it much easier. Metadata support is so lacking on WAV files. Founder of Audiophile Style | My Audio Systems Link to comment
agillis Posted November 25, 2009 Author Share Posted November 25, 2009 After reading a few post on the net including this one. It does seem to be possible. http://www.computeraudiophile.com/content/AIFF-Media-Monkey Also the developers at SqueezeBox tell me the SqueezeBox player supports them. agillis Small Green Computer http://www.smallgreencomputer.com/ Link to comment
The Computer Audiophile Posted November 25, 2009 Share Posted November 25, 2009 I can see a player supporting them, but it's tough to get a program to embed the metadata. Founder of Audiophile Style | My Audio Systems Link to comment
PeterSt Posted November 25, 2009 Share Posted November 25, 2009 I can see a player supporting them, but it's tough to get a program to embed the metadata. It is the other way around ! Give me a few hours and I'll have a program that stuffs it in, any way you like. But then what ? Then no player will be able to deal with it, up to "can't play" or static. But I guess in the long term everything will grow towards eachother. :~) Peter Lush^3-e Lush^2 Blaxius^2.5 Ethernet^3 HDMI^2 XLR^2 XXHighEnd (developer) Phasure NOS1 24/768 Async USB DAC (manufacturer) Phasure Mach III Audio PC with Linear PSU (manufacturer) Orelino & Orelo MKII Speakers (designer/supplier) Link to comment
agillis Posted November 25, 2009 Author Share Posted November 25, 2009 The engineers at Logitech are telling me the SqueezeBox player supports ID3 tags in wav files. They didn't elaborate on what format they use or how to get the files tagged. I keep reading posts about different windows players that also support tags in wav files. http://forums.slimdevices.com/showthread.php?t=71718&highlight=vortexbox agillis Small Green Computer http://www.smallgreencomputer.com/ Link to comment
ldolse Posted November 28, 2009 Share Posted November 28, 2009 See below for a variety of links that discuss how ID3 is implemented in WAV files (the AIFF implementation is basically identical except for the endianness). Creating custom RIFF chunks is within the wav spec, and every implementation of ID3 tags in WAV use a custom RIFF chunk called "ID3 " (id3 padded with one char to meet the four character spec). Regarding Peter's statement about playing static, any good wav decoder should skip over non-audio RIFF chunks (even these custom ones) so you don't get static. That said, some players are buggy and will play a few tenths of a second of static. I found this out the hard way with the Linux audiofile library (plays static). However the sndfile library in Linux does decode WAV/AIFF with id3 correctly. I don't know if any Linux tag editors can write wav id3 tags though... I've always used dbpoweramp or Tag & Rename on Windows (and iTunes/dbpoweramp for AIFF) - maybe one of those can run under WINE. WAV Spec: http://ccrma.stanford.edu/courses/422/projects/WaveFormat/ Links discussing how ID3 tags are implemented with WAV files to conform to the spec: http://www.anytag.de/forums/lofiversion/index.php/t8328.html http://bugs.kde.org/show_bug.cgi?id=131130 http://www.hydrogenaudio.org/forums/lofiversion/index.php/t43021.html http://forum.dbpoweramp.com/showthread.php?p=81230&highlight=wave+list+id3v2#post81230 MPD bugfix (first open source Linux player I know of supporting these tags for playback): http://musicpd.org/mantis/view.php?id=2090 You can also check out music player daemon's source code to see how they implemented tag reading. Basically they have a function which parses the WAV file for RIFF chunk name id3 and passes the data from that chunk over to libid3tag. mpdPup maintainer Link to comment
agillis Posted November 28, 2009 Author Share Posted November 28, 2009 The for all the info on the WAV spec. I am planing to add MPD to VortexBox so it's good to know it supports ID3 in WAV. Now if only I could find a Linux tagger... agillis Small Green Computer http://www.smallgreencomputer.com/ Link to comment
ldolse Posted November 28, 2009 Share Posted November 28, 2009 I don't think there are any specific command line tools, but I think most of the heavy lifting has been done with libraries that need to be linked together to create the desired command line tool: Riff manipulation (looks like it can read & write RIFF with new chunks) http://sourceforge.net/projects/avilibs/develop ID3 manipulation: libid3tag (used by mpd and many other projects): http://sourceforge.net/projects/mad/files/ http://www.underbit.com/products/mad/ libid3tag doesn't directly support wav files, so you need to use it for the id3 and another tool for RIFF manipulation. Taglib Used by xbmc project and others (though they don't use 1.5.1 or later which supports RIFF ID3 chunks) http://developer.kde.org/~wheeler/taglib.html Taglib might allow reading/manipulation/writing all to be done from just that library. Here's a wav manipulation CLI tool without tag support: http://linux.die.net/man/1/shntool mpdPup maintainer Link to comment
agillis Posted March 23, 2010 Author Share Posted March 23, 2010 I have search and read all the info this user community has posted. It looks like dbpower amp has the best support for tagging WAV files. They write wav tags in three formats. This is a quote from their developer "Spoon" "Wave has many tagging types, most programs will not read any, we write WAVE List, IDv3v2 chunk, BExt" Do anybody know how to write these tag types using a command line until in Linux? agillis Small Green Computer http://www.smallgreencomputer.com/ Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now