ID3v1 reader
From ProjectWiki
(Difference between revisions)
(→What is this?) |
(→Source Code) |
||
Line 38: | Line 38: | ||
(please note: the last example is entirely why i wrote this :P) | (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/ | |
− | < | + | |
− | / | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | / | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 05:21, 24 March 2010
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/