[Icecast-dev] Writing Alpha Tags into the comments of an ogg
stream
Aaron Gutierrez
aaron.gutierrez at gmail.com
Fri Jul 20 17:31:20 PDT 2007
You should look at the source code for oddcast. it has a neat way of adding
metadata to the ogg stream. It uses libogg (which is it using to encode the
vorbis stream) and sort of creates a new beginning of stream packet with the
new metadata, so that icecast knows to pick up the change.
If you aren't using ices to encode the audio, only to send it, I would
suggest posting the metadata to icecast directly using either libshout or
via an http admin post.
unfortunately you are limited by this latter method of setting the Artist
and Title metadata.
Also, you can definitely save the pid of ices, and send it SIGHUP to reread
its configuration data.
Aaron
On 7/20/07, Geoff Shang <geoff at quitelikely.com> wrote:
>
> "roger" <roger at eskimo.com> wrote:
>
> > Figured 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]
>
> I *think* you can tell Ices to generate a file containing it's process ID.
> (it's awhile since I messed with Ices 2.x).
>
> If this is true, you could simply do something like:
>
> kill -USR1 `cat ices.pid`
>
> (assuming USR1 is the right signal, I thought it was USR2 actually but
> I've
> not looked.)
>
> > Writing to stdin method:
> >
> > [snip]
> > $cat metadata >
> > http://localhost:8000/admin/updatemetadata.xsl?mount=/stream.ogg
>
> I'm pretty sure you can't do this. HTTP is a protocol, not a device, so
> you'd have to pipe to a program which could talk HTTP and turn your
> standard
> input into something usable by Icecast.
>
> But I'm pretty sure you can send standard output to Ices' standard input
> and
> get it to read it too. But I've not ever done this so have not looked at
> it.
>
> Geoff.
>
> _______________________________________________
> Icecast-dev mailing list
> Icecast-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/icecast-dev
>
--
Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/icecast-dev/attachments/20070720/1b5ad302/attachment.html
More information about the Icecast-dev
mailing list