Peter.O..
10
ID3标签是MP3特定的.有关Ogg Vorbis注释字段规范,请参阅:字段名称
vorbiscomment(包vorbis-tools)可以修改和查询 ogg标签信息.
mp3info是使用wirh mp3标签的众多工具之一.
.OGG
# Clear all info
printf ''| vorbiscomment -w test.ogg
vorbiscomment -l test.ogg
# modify info
echo ========
printf 'TITLE=The Last Saskatchewan Pirate
ARTIST=Captain Tractor
ALBUM=East of Edson
DATE=2000-01-01
COMMENT=Just another TEST comment
DESCRIPTION=*** Hello ***
'|vorbiscomment -w test.ogg
vorbiscomment -l test.ogg
echo ========
输出(.ogg)
========
TITLE=The Last Saskatchewan Pirate
ARTIST=Captain Tractor
ALBUM=East of Edson
DATE=2000-01-01
COMMENT=Just another TEST comment
DESCRIPTION=*** Hello ***
========
MP3
# Delete the entire ID3 tag
mp3info -d test.mp3
echo ========
# modify info
mp3info -t "The Last Saskatchewan Pirate" \
-a "Captain Tractor" \
-l "East of Edson" \
-g "Folk/Rock" \
-y "2000" \
-n "1" \
-c "Just another TEST comment" \
test.mp3
mp3info test.mp3
echo ========
输出(.mp3)
========
File: test.mp3
Title: The Last Saskatchewan Pirate Track:
Artist: Captain Tractor
Album: East of Edson Year: 2000
Comment: Just another TEST comment Genre: Folk/Rock [81]
========