Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

piping metadata to IceS (2.0.1) from C program.

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Sat Sep 30, 2006 2:19 pm    Post subject: piping metadata to IceS (2.0.1) from C program. Reply with quote

Hi All
Im trying to take data from a serial port and use it for metadata in a stream using IceS 2.0.1
When running IceS I can manually type in "artist=hello world" (with a blank line following) and it shows on XMMS

the C program I fumbled together produces an output like the following

>./a.out
A total of 641 was read in
artist=

artist=02-METRO NORTH

artist=

artist=TGID NOT KNOWN

artist=

artist=TGID NOT KNOWN

artist=

artist=02-METRO NORTH

artist=


but when I pipe this output to IceS with the following

>./a.out | ices /usr/local/share/ices/ices-oss.xml

no meta data turns up on XMMS. Can anyone explain whats going on and how to get this to work. Probably be that I misunderstand IceS or the pipe system. For hardware reasons I'm trying to avoid the write to file and signal method of passing metadata.

regards
Owen
Back to top
Anonymous
Guest





PostPosted: Sat Nov 04, 2006 6:23 am    Post subject: Re: piping metadata to IceS (2.0.1) from C program. Reply with quote

I sorted this problem out in the end it had to do with buffering of stdout
when I put

fflush(stdout);

after printf the stream worked and the metadata ended up where it should

owen
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber