Is there any way to put a newline character in comments for ogg vorbis files in Linux? I can't see any way of doing it with vorbiscomment. Easytag would work, but has other problems (like concatenating comment fields with the same tag name). If I wanted to put together a quick hack to add a such a comment (I'm thinking read the comment from a file, with the tag name specified at the command line), what parts of the ogg/vorbis documentation should I look at? -- imalone
On Friday, September 17, 2004, 16:53:54, Ian Malone wrote:> Is there any way to put a newline character in comments for ogg > vorbis files in Linux? I can't see any way of doing it with > vorbiscomment. Easytag would work, but has other problems > (like concatenating comment fields with the same tag name).Can't you use vorbiscomment -t ? It works for me... -- < Jernej Simoncic ><><><><>< http://deepthought.ena.si/ > < for personal mail, replace guest.arnes.si with isg.si > A man without religion is like a fish without a bicycle. -- Vique's Law
On Fri, Sep 17, 2004 at 03:53:54PM +0100, Ian Malone wrote:> Is there any way to put a newline character in comments for ogg > vorbis files in Linux? I can't see any way of doing it with > vorbiscomment. Easytag would work, but has other problems > (like concatenating comment fields with the same tag name).Comments are eight-bit-clean. You can put any ACSII/UTF-8 charachter in. However ?newline? isn?t quite what you think it is (it is a different charachter on different platforms. A Mac newline in an Ogg comment won?t work on a PC, etc....). Newline isn?t a language charachter, it?s a platform-specific control-code.> If I wanted to put together a quick hack to add a such a comment > (I'm thinking read the comment from a file, with the tag name > specified at the command line), what parts of the ogg/vorbis > documentation should I look at?I curious; why do you need newlines? Monty
Ian Malone (ibm21@cam.ac.uk) wrote:> Is there any way to put a newline character in comments for ogg > vorbis files in Linux? I can't see any way of doing it with > vorbiscomment.Jernej Simon?i? (jernej.simoncic@guest.arnes.si) wrote:> Can't you use vorbiscomment -t ? It works for me...This does indeed work, e.g.: bash$ vorbiscomment -a -t $'ADDITIONAL=This is a\ntwo-line tag' somefile.ogg (The above syntax will not work in all shells.) But the intuitive way to retrieve the tags from an Ogg Vorbis file is to dump them to standard output with newlines between them. When this is done (e.g. by vorbiscomment -l), then there's no way to distinguish between a newline inside a tag, and a new tag. Perhaps you could take a hint from xargs(1) and add a "-0" option to vorbiscomment, which would separate tags with NUL characters instead of newlines. If that's not flexible enough, the user could specify a comment delimiter on the command line. It looks like "-d" is free for this purpose. -- Greg Wooledge | "Truth belongs to everybody." greg@wooledge.org | - The Red Hot Chili Peppers http://wooledge.org/~greg/ | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.xiph.org/pipermail/vorbis/attachments/20040917/b1d64b0a/attachment.pgp