Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am making a simple alternative for myself and a few friends where the user can upload his/her songs and listen to them anywhere. My intent is to make a lightweight, simple player in HTML5 so all the user needs is a current Firefox or Chrome to use it. I have set it up so that all uploaded songs get converted to .ogg and added to a database but I also want some metadata (not sure if that is the correct term) for the songs to be stored in the database so the player can tell the user what song he/she is listening too. I know there are several GUI tools for managing the title/artist/album info for songs but I'm having trouble finding any good ones I can use from the command line. If the song has the information already in the file, I think I can use mplayer to retrieve the information but it would be really great if there was one that would look up the song information online. I don't mind interfacing with an API (would be pretty interesting actually). Do you guys have any suggestions?

share|improve this question
up vote 0 down vote accepted

Try ffmpeg

ffmpeg -i in.ogg -metadata title="my title" out.ogg

`-metadata key=value'

share|improve this answer
ffmpeg works great for setting the metadata but it has no way to show the metadata. I ended up using pytags for my MP3s and mplayer [filename] -ao /dev/null for my WMAs. – Puddingfox Mar 13 '10 at 22:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .