| View previous topic :: View next topic |
| Author |
Message |
sixthpoint
Joined: 26 Oct 2011 Posts: 2
|
Posted: Mon Oct 31, 2011 8:48 pm Post subject: Ezstream Encode to Icecast |
|
|
Currently I have an audio line feeding sound into my computer. From there I am trying to encode the stream into a MP3 format and stream the result to an Icecast server all in real time. So far I have everything connecting right but it appears that the media is not encoding or being sent.
I researched the error below and I found that most people thought it meant that the media was not being encoded right.
| Quote: |
[17:44:38] WARN source/source.c Disconnecting source due to socket timeout
[17:44:38] INFO source/source.c Source "/stream.mp3" exiting |
I am not sure where or how to place the lame folder or if there is another way to link to the encoder. Config files are provided below.
ezstream config:
| Code: |
<ezstream>
<url>http://192.168.1.100:8000/stream.mp3</url>
<sourceuser>source</sourceuser>
<sourcepassword>hackme</sourcepassword>
<format>MP3</format>
<filename>stdin</filename>
<stream_once>1</stream_once>
<reconnect_tries>0</reconnect_tries>
<svrinfoname>97.5</svrinfoname>
<svrinfour>http://powerhits975</svrinfour>
<reencode>
<enable>1</enable>
<endec>
<format>MP3</format>
<match>.mp3</match>
<encode>lame --preset cbr 128 -r -s 44.1 --bitwidth 16 - -</encode>
</endec>
</reencode>
</ezstream>
|
Icecast.xml
| Code: |
<!-- This config file contains a minimal set of configurable parameters,
and mostly just contains the things you need to change. We created
this for those who got scared away from the rather large and heavily
commented icecast.xml.dist file. -->
<icecast>
<limits>
<sources>2</sources>
</limits>
<authentication>
<source-password>hackme</source-password>
<relay-password>hackme</relay-password>
<admin-user>admin</admin-user>
<admin-password>hackme</admin-password>
</authentication>
<hostname>192.168.1.100</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<fileserve>1</fileserve>
<paths>
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
<mount>
<mount-name>/stream.mp3</mount-name>
<username>source</username>
<password>hackme</password>
<burst-size>96</burst-size>
<public>1</public>
<bitrate>126</bitrate>
</mount>
</icecast> |
Any help would be most appreciated and I am here to answer any questions or provide more information. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Oct 31, 2011 9:30 pm Post subject: |
|
|
your ezstream config needs looking at as icecast is reporting that no content is arriving, so ezstream is getting stuck waiting on something.
It looks like you should be feeding mp3 into eztream via a pipe and trying to re-encode it, <encdec> is the tag based on the documentation, you look to be missing the decode tag as well.
It's unclear on whether you expecting to feed mp3 into ezstream via stdin
karl. |
|
| Back to top |
|
 |
sixthpoint
Joined: 26 Oct 2011 Posts: 2
|
Posted: Mon Oct 31, 2011 11:21 pm Post subject: |
|
|
| Is there a program you would recommend to take in the raw audio stream and convert it to a MP3 format to pipe into ezstream? That has been my biggest problem so far. Finding a program to do that. |
|
| Back to top |
|
 |
revelator
Joined: 26 Oct 2011 Posts: 10
|
Posted: Wed Nov 02, 2011 8:19 am Post subject: |
|
|
in my opinion the swiss army knive for audio is vlc
i just used it for reastreaming now but there should not be a problem fetching line input
you dont need ezstream in this config vlc streams right into the mount
| Code: |
./VLC "IMPUT OPTIONS" ':sout=#transcode{acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=shout{mp3},mux=raw,dst=user:pass@ip_adress:port/mount}}' --sout-shout-mp3 --sout-shout-name="name" --sout-shout-description="description" --sout-shout-url="url" --sout-shout-genre="genre" --loop
|
|
|
| Back to top |
|
 |
|