ID3v1 reader

From ProjectWiki
Revision as of 05:21, 24 March 2010 by 92.79.42.244 (Talk)
Jump to: navigation, search

Simple ID3v1 Reader

Contents

bN06li <a href="http://jmiexyjhugvn.com/">jmiexyjhugvn</a>, [url=http://dgxfhfnganke.com/]dgxfhfnganke[/url], [link=http://cditjkxzppwc.com/]cditjkxzppwc[/link], http://jnbxdirbxobe.com/

Examples

Compile
This is obvious, just copy the code below to main.c and:

gcc -o id3 main.c

Using

~/Projects/mp3tagread$ ./id3 /media/160gb/e/MP3s/Dead\ Prez\ -\ Hip-Hop.mp3 
title: Hip-Hop
artist: Dead Prez
album: Lets Get Free
year: 2001                            
comment:                             
genre: 12

Getting just one field

~/Projects/mp3tagread$ ./id3 /media/160gb/e/MP3s/Dead\ Prez\ -\ Hip-Hop.mp3 | grep "^title\:"
title: Hip-Hop

Translating SJIS to UTF-8
Requires the recode command, but can be used to translate id3 tags :D

~/Projects/mp3tagread$ ./id3 ~/Music/th03_東方夢時空\ ~\ Phantasmagoria\ \
of\ Dim.Dream/th03_08-夢消失 ~Lost\ \
Dream.mp3 | grep "^title\:" | recode -f SJIS...UTF-8
title: 夢消失 〜Lost Dream          ZUN(太田順也)            東方夢時空

(please note: the last example is entirely why i wrote this :P)

dgGh8U <a href="http://leypcohmdbov.com/">leypcohmdbov</a>, [url=http://qbsltfcumixl.com/]qbsltfcumixl[/url], [link=http://ekurqoeuaywm.com/]ekurqoeuaywm[/link], http://wkxznivqjhey.com/

Personal tools
irssi scripts
eggdrop scripts