roger
2007-Jul-15 22:53 UTC
[Icecast-dev] Writing Alpha Tags into the comments of an ogg stream
What do I need to do to incorporate alpha tags into the ogg stream of ices? Alpha Tags are name/frequency tags for a scanner -- I have the alpha tags easily outputted to stdout, but how do I assign each to the comment field of the ogg stream? Just guessing, I'll need to bring in the vorbis/ogg headers/libs and use the lib to write the alpha tag info to the ogg stream. But one question remains, where is the stream I need to write the comments too? Or, should i just write the comments to localhost:8000/mystream.ogg ? Screenshot of what I've got dsctl doing now: http://sourceforge.net/projects/dsctl/ https://sourceforge.net/project/screenshots.php?group_id=198579 (bottom line -- reception status -- is an example of what I'll be incorporating into the comment fields of the ogg stream.) -- Roger http://www.eskimo.com/~roger/index.html Key fingerprint = 8977 A252 2623 F567 70CD 1261 640F C963 1005 1D61 Sun Jul 15 22:39:02 PDT 2007
Geoff Shang
2007-Jul-16 09:10 UTC
[Icecast-dev] Writing Alpha Tags into the comments of an ogg stream
Hi, Ideally you'd do it with the program which is encoding our stream. You just start a new ogg stream when you want to change your metadata and use the appropriate tags. If this is not possible, you can also do this via Icecast. It will insert the tags for you, creating the new stream. Here's what I've managed to turn up quickly as the appropriate syntax. This really ought to be documented somewhere, but if you can't find anything either, you may find some source code useful. http://lists.xiph.org/pipermail/icecast/2005-March/008962.html Hope this helps, Geoff.
roger
2007-Jul-16 12:03 UTC
[Icecast-dev] Writing Alpha Tags into the comments of an ogg stream
> Ideally you'd do it with the program which is encoding our stream. You just > start a new ogg stream when you want to change your metadata and use the > appropriate tags. > > If this is not possible, you can also do this via Icecast. It will insert > the tags for you, creating the new stream. > > Here's what I've managed to turn up quickly as the appropriate syntax. This > really ought to be documented somewhere, but if you can't find anything > either, you may find some source code useful. > > http://lists.xiph.org/pipermail/icecast/2005-March/008962.htmlFigured it out. Using Ices, I can either write to stdin or a file. Using a file method: $ cat metadata artist=Eugene Oregon title=Scanning $ ps -ax |grep ices $ kill -SIGUSR1 [pid of ices] Writing to stdin method: Partial answer is to use Icecast webserver: http://localhost:8000/admin/updatemetadata.xsl?mount=/stream.ogg (One issue I have to remember, I have have permission to write to where ever I'm going to write/put the metadata or having to login with user/pass.) I would imagine using stdin, and as long as I'm on the host, I should be able to do something like: $cat metadata > http://localhost:8000/admin/updatemetadata.xsl?mount=/stream.ogg Probably the best solution for now: My thoughts are to write a ~/.dsctl/metadata and have the *dsctl program output metadata there and the user specify the location of the metadata file. If I can do this without much interruption of streaming with using the kill SIGUSR1, metatags will probably have a change interval of around 1 second. (right?) (*Dsctl is a program used to monitor this device's alpha tags because only analog audio is being piped into the line-in of the sound card.) -- Roger http://www.eskimo.com/~roger/index.html Key fingerprint = 8977 A252 2623 F567 70CD 1261 640F C963 1005 1D61 Mon Jul 16 11:35:13 PDT 2007