VORBISCOMMENT(1) | Ogg Vorbis Tools | VORBISCOMMENT(1) |
vorbiscomment - List or edit comments in Ogg Vorbis files
vorbiscomment [-l] [-R] [-e]
file.ogg
vorbiscomment -a [ -c commentfile | -t
“name=value” | -d “name=value” ] [-q]
[-R] [-e] in.ogg [out.ogg]
vorbiscomment -w [ -c commentfile | -t
“name=value” ] [-q] [-R] [-e]
in.ogg [out.ogg]
vorbiscomment Reads, modifies, and appends Ogg Vorbis audio file metadata tags.
Supported escapes are c-style "\n", "\r", "\\" and "\0". A backslash followed by anything else is an error.
Note: currently, anything after the first "\0" is thrown away while writing. This is a bug -- the Vorbis format can safely store null characters, but most other tools wouldn't handle them anyway.
To just see what comment tags are in a file:
vorbiscomment -l file.ogg
To edit those comments:
vorbiscomment -l file.ogg > file.txt
[edit the comments in file.txt to your satisfaction]
vorbiscomment -w -c file.txt file.ogg newfile.ogg
To simply add a comment:
vorbiscomment -a -t 'ARTIST=No One You Know' file.ogg newfile.ogg
To add a set of comments from the standard input:
vorbiscomment -a file.ogg
ARTIST=No One You Know
ALBUM=The Famous Album
<ctrl-d>
See https://xiph.org/vorbis/doc/v-comment.html for documentation on the Ogg Vorbis tag format, including a suggested list of canonical tag names.
December 30, 2008 | Xiph.Org Foundation |