Originally posted by Smelter
@ oLRi, It does auto reconnect after 30 seconds. Your issue sounds like it could be a couple things, mainly, did you update the red5 core for the one-viewer-syndrome?

I rebuild the red5 core, but i got still this error:

PHP Code:

Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: 0
at org.red5.server.plugin.shoutcast.marshal.transpose.VideoFramer.pushVP6Frame(VideoFramer.java:89)
at org.red5.server.plugin.shoutcast.marshal.ICYMarshal.onVideoData(ICYMarshal.java:191)
at org.red5.server.plugin.shoutcast.parser.NSVSenderThread.execute(NSVSenderThread.java:45)
at org.red5.server.plugin.shoutcast.parser.NSVThread.execute(NSVThread.java:416)
at org.red5.server.plugin.shoutcast.stream.NSVConsumer.process(NSVConsumer.java:119)
at org.red5.server.plugin.shoutcast.stream.NSVConsumer.run(NSVConsumer.java:104)
at java.lang.Thread.run(Unknown Source)

there is still the one-viewer-syndrome. after i patched the red5 core it works much better, but very often the client times out or it takes a long time to start the stream. the first listener doesnt have this problem.

for all vp6 + red5 users: i made a jw flv player plugin, which flips the video. works in fullscreen mode, too.

3) Download the source for the player itself, find the "SPLoader.as" actionscript file. (should be in /com/jeroenwijering/player/SPLoader.as) Around line 35, you'll see the variable "basdir" being declared (private var basedir:String = 'www.example.com') Change this value to: /

4) Save it. Open the Player.fla. Publish it.

5) Put the new player.swf and the plugin.swf in the same directory. It will now load locally.

reaaaaaal hard stuff for someone like me. Is there any tutorial online how to setup that whole thing ? Finally i got Red5 to work on my server, also the Demoapps, but then ? 4 Pages of headache for me :-) Maybe someone could help to get a Red5 Noob getting his VP62/AAC+ Stream on a Flashplayer to work. Well i can understand, html, php, C64 Basic, CarHifi and some other things but how do i add this shoutcast / flash converter app and get it to work.

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 ?

Originally posted by dr.allgood Reading a bit in the red5 code repository i found the new icyplugin which seems to do excately the same as the shoutcast plugin. It would, if it wasn't throwing nullpointer exceptions

The icyplugin is based on the shoutcast.jar by smelter. And as far as i know it will be published with the new Version of Red5. As soon as the plugin-system is ready.

I wrote the shoutcast stuff into the red5 core and gave it to the red5 team. They were already building the plugin system, and decided to make my shoutcast code into a plugin. The last I heard , they had decided to rewrite the code from scratch, to be more in line with the red5 'mina' usage. In the process I think it was broken and fixed a couple times. I re-sent my version again as a plugin, but I stopped hearing or asking about updates.

Not satisfied with an unfinished and broken icy plugin, I decided to kill the h264 video and Mp3 audio mysteries for myself.

Some notes:
The ICY plugin doesn't flip the video for you. It only gives you negative numbers if the video is VPx.

The ICY plugin, may or may not support h264 and mp3.

The icy plugin might support Icecast aac audio streams.

The source code from the icy plugin looks old. I dont know if it is even being developed anymore. It appears to be a combination of my patches and the rewrite.

So with that said, I would advise to not use the icy plugin.
The shoutcast jar starts from where Icy plug-in ended.

@dr feelgood. TO flip it on the server you would have to add Xuggler or ffmpeg, and then add the learning curve to use them. Flipping the vid is easy compared to installing and configuring ffmpeg/xuggler.

Plus you add the added cpu load of decoding/flipping/re encoding. So , im my opinion, that's all a bad idea compared to the simple client side flip.

Most of all you would not be able to just use the jar in as simple manner as I have made it.

Originally posted by Smelter Flipping the vid is easy compared to installing and configuring ffmpeg/xuggler.

Yes i can confirm that. Tried flipping the vid with xuggler. With flash it were 3 lines i had to add. I'm also not familiar with flash / action script but if you understand java oder any other language its quite easy.