[Icecast] ices2, metadata, bumps and crashes

Paul Martin pm at nowster.zetnet.co.uk
Mon Aug 15 15:32:23 PDT 2005


I'm using ices2's metadata facility to update the name of a track in a 
vorbis stream:

  <input>
     <module>alsa</module>
     <param name="rate">44100</param>
     <param name="channels">2</param>
     <param name="device">hw:1,0</param>
     <param name="metadata">1</param>
     <param name="metadatafilename">/var/tmp/metadata.live</param>
  </input>

When my jukebox program sends SIGUSR1 to ices2 (to cause the metadata to 
be re-read), the vorbis stream is totally reset causing an audible bump 
in the audio on the stream. Occasionally, the lead ices2 encoding thread 
dies.

On a metadata update the logfile shows stuff like this:

[2005-08-15  23:23:01] INFO signals/signal_usr1_handler Metadata update requested
[2005-08-15  23:23:01] DBUG metadata/metadata_thread_signal meta thread wakeup
[2005-08-15  23:23:01] DBUG metadata/metadata_thread_signal reading metadata from "/var/tmp/metadata.live"
[2005-08-15  23:23:01] INFO metadata/metadata_thread_signal tag 1 is ARTIST=Beatles
[2005-08-15  23:23:01] INFO metadata/metadata_thread_signal tag 2 is TITLE=Honey Pie
[2005-08-15  23:23:01] INFO metadata/metadata_thread_signal tag 3 is ALBUM=You're listening to a test radio stream
[2005-08-15  23:23:01] INFO metadata/metadata_thread_signal tag 4 is ORGANIZATION=Test Radio Stream
[2005-08-15  23:23:01] INFO metadata/metadata_thread_signal Updating metadata
[2005-08-15  23:23:01] INFO audio/resample_initialise Initialised resampler for 1 channels, from 44100 Hz to 22050 Hz
[2005-08-15  23:23:01] DBUG encode/encode_clear Clearing encoder engine
[2005-08-15  23:23:01] INFO encode/encode_initialise Encoder initialising in VBR mode: 1 channel(s), 22050 Hz, quality -1.010000
[2005-08-15  23:23:01] INFO audio/resample_initialise Initialised resampler for 2 channels, from 44100 Hz to 44100 Hz
[2005-08-15  23:23:01] INFO audio/resample_initialise Initialised resampler for 1 channels, from 44100 Hz to 16000 Hz
[2005-08-15  23:23:01] DBUG encode/encode_clear Clearing encoder engine
[2005-08-15  23:23:01] INFO encode/encode_initialise Encoder initialising in VBR mode: 1 channel(s), 16000 Hz, quality -2.000000
[2005-08-15  23:23:01] DBUG encode/encode_clear Clearing encoder engine
[2005-08-15  23:23:01] INFO encode/encode_initialise Encoder initialising in VBR mode: 2 channel(s), 44100 Hz, quality -1.001000

I'm on Linux 2.6.12, using the Debian 2.0.1-4 package of ices2, with the 
aotuvb4 version of libvorbis (though the problem happens with the 
standard vorbis codec).

-- 
Paul Martin <pm at zetnet.net> (work)
  <pm at nowster.zetnet.co.uk> (home)


More information about the Icecast mailing list