Milos Wimmer
2004-Aug-06 14:57 UTC
[icecast-dev] ices, alsa, dsnoop plugin a metadata update
Hello, I found a bug by metadata updating in ices-2.0.0. I use icecast2 server for streaming stations of Czech Radio. Czech Radio prefers streaming in both formats mp3 and ogg. So - I'm using DarkIce as a live audio streamer, which does encoding to mp3 and ogg streams together. I would like to insert textual information about actual streaming program, but DarkIce does not support it. So - I'm using HTTP requests to icecast server http://server:8000/admin/metadata?mount for metadata inserting. But icecast2 server supports it for mp3 streams only (how nice would be to have this support for ogg streams too ;-) Later I found new Alsa plugin dsnoop, which support reading the shared capture buffer of the sound card from many clients concurrently. Fine - it could solve my problem - I will use DarkIce for mp3 streaming (and I will insert metadata through HTTP requests to icecast server) and ices for ogg streaming (with native metadata inserting) together on the one sound card (for one station) - told I myself. Yes, it really works. dsnoop plugin works fine and both DarkIce and ices read data from same capture card concurrently without problems (and without OSS emulation). But I didn't reach the goal - when I sent SIGUSR1 signal to ices for metadata updating, ices is terminating :-( Here are descriptions of some cases and corresponding logs: case A: ----------------------- - configuration <input> <module>alsa</module> <param name="device">plughw:0,0</param> #where plughw:0,0 is first alsa device ... <param name="metadata">1</param> <param name="metadatafilename">/usr/opt/ices/etc/meta</param> </input> - I see one running ices process in the system - metadada updating works fine, here is log: [2004-04-20 09:20:11] INFO signals/signal_usr1_handler Metadata update requested [2004-04-20 09:20:11] DBUG metadata/metadata_thread_signal meta thread wakeup [2004-04-20 09:20:11] DBUG metadata/metadata_thread_signal reading metadata from "/usr/opt/ices/etc/meta"[2004-04-20 09:20:11] INFO metadata/metadata_thread_signal tag 1 is TITLE=Me ta Da ta [2004-04-20 09:20:11] INFO metadata/metadata_thread_signal Updating metadata <p> case B: ----------------------- - configuration <input> <module>alsa</module> <param name="device">sblive</param> #where sblive is alsa hw plugin ... </input> - I see one running ices process in the system - metadada updating works fine, here is log: [2004-04-20 09:20:11] INFO signals/signal_usr1_handler Metadata update requested [2004-04-20 09:20:11] DBUG metadata/metadata_thread_signal meta thread wakeup [2004-04-20 09:20:11] DBUG metadata/metadata_thread_signal reading metadata from "/usr/opt/ices/etc/meta"[2004-04-20 09:20:11] INFO metadata/metadata_thread_signal tag 1 is TITLE=Me ta Da ta [2004-04-20 09:20:11] INFO metadata/metadata_thread_signal Updating metadata <p> case C: --------------------- - configuration <input> <module>alsa</module> <param name="device">dsnoop</param> #where dsnoop is alsa dsnoop plugin ... </input> - I see two running ices processes in the system - metadada updating fails, here is log: [2004-04-20 09:47:12] INFO signals/signal_usr1_handler Metadata update requested [2004-04-20 09:47:12] INFO metadata/metadata_thread_signal metadata thread shutting down [2004-04-20 09:47:12] DBUG stream-shared/stream_wait_for_data Shutdown signalled: thread shutting down [2004-04-20 09:47:12] DBUG encode/encode_clear Clearing encoder engine [2004-04-20 09:47:12] DBUG input/input_loop An instance died, removing it [2004-04-20 09:47:12] DBUG input/input_flush_queue Input queue flush requested [2004-04-20 09:47:12] INFO input/input_loop All instances removed, shutting down... [2004-04-20 09:47:12] INFO ices-core/main Shutdown complete - metadata is correctly using only by the start of ices - for simplicity - in all cases I run only one capture client - ices - I tried it on two different boxes with SB Live (resp. Audigy) sound card with same results. <p>Does somebody have any idea? Thank you, Milos ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Milos Wimmer Internet Services Specialist e-mail: wimmer@zcu.cz Laboratory for Computer Science University of West Bohemia phone : +420 377 632 843 Univerzitni 8, 306 14 Plzen fax : +420 377 421 419 Czech Republic, Europe WWW : http://www.zcu.cz/~wimmer/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Reasonably Related Threads
- Bug in Ices (metadata update on alsa dsnoop device)
- ices2, metadata, bumps and crashes
- ices2 not re-connecting on live stream
- Ices crashes all of a sudden: EROR input-oss/oss_read Error reading from audio device: Input/output error
- Metadata not updating with oss input module in ices2