| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Tue Jul 17, 2007 5:23 am Post subject: config ezsteam with PCM input on stdin?... |
|
|
hi ppl,
just wondering if any of you has been successful in configuring ezstream for a raw PCM input coming over stdin. the output i want should be mp3. i tried this, but something must be wrong on it - it doesnt look like the stdin is listened to.
thanks to any one of you sharing ideas.
<!-- streaming mp3 with reencoding, source is pcm on stdin -->
<ezstream>
<!-- our icecast server -->
<url>http://myserver:8000/mpoint</url>
<sourcepassword>xXxXx</sourcepassword>
<!-- the reencoding feature is enabled below, we need to set the output format -->
<format>MP3</format>
<!-- set the pcm source -->
<filename>stdin</filename>
<!-- describe your stream to the server -->
<svrinfoname>blah</svrinfoname>
<svrinfourl>http://mywebserver</svrinfourl>
<svrinfogenre>chats</svrinfogenre>
<svrinfodescription>describe this</svrinfodescription>
<!-- advertise the stream on a public YP directory? -->
<svrinfopublic>0</svrinfopublic>
<reencode>
<!-- enable reencoding -->
<enable>1</enable>
<!--
Each <encdec /> element specifies a pair of programs to be used for
decoding and encoding, respectively, and which file extension and
output stream format they apply to.
All the configuration of the output stream is usually done by using
the appropriate command line parameters of the encoders in the
<encode /> elements.
New encdec sections can be added for new input/output formats.
-->
<encdec>
<!-- no decoding (source is pcm), encoding to mp3 using lame -->
<format>MP3</format>
<match>.mp3</match>
<!-- <decode>dont want it - is that ok?</decode> -->
<encode>lame -r -x -s 8 -a - -</encode>
</encdec>
</reencode>
</ezstream> |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Tue Jul 17, 2007 1:58 pm Post subject: |
|
|
Ezstream requires "ready-to-stream" data on standard input, so you'll have to pipe the PCM data through oggenc (i.e. LAME, or similar), first. AFAIK, the Ices* source clients might do what you want in this case, as they have native encoding support.
Moritz |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Tue Jul 17, 2007 3:09 pm Post subject: |
|
|
| moritz - thanks for the answer, but i'm not really sure i understand what you mean. can you suggest me a combination of apps that i can use, such as to take raw pcm samples from stdin, convert to mp3 on the fly, and push that out to an icecast server? thanks. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Tue Jul 17, 2007 3:56 pm Post subject: |
|
|
Alright, so Ices0 doesn't read from stdin. However, it is actually possible to achieve this with ezstream. Start with example_mp3.xml and set <filename/> to stdin. Then, the following experiment works (and could potentially damage your speakers or ears - be warned):
| Code: |
| $ dd if=/dev/urandom bs=64k | lame -r --preset cbr 96 - - 2> /dev/null | ezstream -qvc ezstream_mp3.xml |
Ezstream won't re-encode, and the <encdec/> section is superfluous.
Hth,
Moritz |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu Jul 19, 2007 12:59 am Post subject: |
|
|
| Moritz, this worked, thank you. |
|
| Back to top |
|
 |
|
|
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
|