View Single Post
Old 30th November 2009, 23:20   #140
DJTOMCAT
Junior Member
 
Join Date: Aug 2009
Location: Germany
Posts: 42
Well here works that /shoutcast/stats - but 0 Listeners :-)

but how do i configure it to get the stream from our nsv?
Which files in /WebApps/Shoutcast do i have to modify ?

In : Web-INF/red5-web.xml i edited:

code:

<bean id="shoutcast.stream_1" class="com.thebitstream.shoutcast.StreamConfiguration">
<property name="outputName" value="BeatNet" />
<property name="port" value="7520" />
<property name="password" value="nsvpassword" />
</bean>



and in Application.java i removed "//" and edited to this, but Live3 wont get startet at Red5


code:

Shoutcast.openExternalURI(scope, "live3", "hxxp://s1.joe-stream.de:7520/;stream.nsv");
System.out.println("Starting App with server count: "+serverPorts.size());
for(int i=0;i<serverPorts.size();i++)
{



When i Start Red5 Server at the end i become this to see:

[CODE]
[INFO] [Launcher:/installer] org.red5.server.service.Installer - Installer servi
ce created
Starting App with server count: 1
Starting stream name BeatNet-Radio

as far as good, but when I now start the Shoutcastserver on the Mainserver i got these Errormessages:

code:

java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:97)
at org.red5.server.plugin.shoutcast.parser.NSVThread.listen(NSVThread.ja
va:149)
at org.red5.server.plugin.shoutcast.parser.NSVThread.execute(NSVThread.j
ava:214)
at org.red5.server.plugin.shoutcast.stream.NSVConsumer.process(NSVConsum
er.java:119)
at org.red5.server.plugin.shoutcast.stream.NSVConsumer.run(NSVConsumer.j
ava:104)
at java.lang.Thread.run(Thread.java:619)
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:97)
at org.red5.server.plugin.shoutcast.parser.NSVThread.listen(NSVThread.ja
va:149)
at org.red5.server.plugin.shoutcast.parser.NSVThread.execute(NSVThread.j
ava:197)
at org.red5.server.plugin.shoutcast.stream.NSVConsumer.process(NSVConsum
er.java:119)
at org.red5.server.plugin.shoutcast.stream.NSVConsumer.run(NSVConsumer.j
ava:104)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "Thread-2" java.lang.NullPointerException
at org.red5.server.plugin.shoutcast.parser.NSVThread.execute(NSVThread.j
ava:202)
at org.red5.server.plugin.shoutcast.stream.NSVConsumer.process(NSVConsum
er.java:119)
at org.red5.server.plugin.shoutcast.stream.NSVConsumer.run(NSVConsumer.j
ava:104)
at java.lang.Thread.run(Thread.java:619)



Okay I Finally found the Problem : It is Port 7520 of our Shoutcast server - how to fix that, without chaning our mainstream port ?

Last edited by DJTOMCAT; 1st December 2009 at 01:43.
DJTOMCAT is offline   Reply With Quote