Old 26th November 2009, 17:11   #121
oLRi
Member
 
Join Date: May 2008
Posts: 94
Quote:
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.ArrayIndexOutOfBoundsException0
        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
oLRi is offline   Reply With Quote
Old 26th November 2009, 17:37   #122
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Hmmm empty vpx frames....

try the latest update.

http://www.thebitstream.com/?page_id=13
Smelter is offline   Reply With Quote
Old 26th November 2009, 18:02   #123
oLRi
Member
 
Join Date: May 2008
Posts: 94
Yeah
Rebuild the core, used the last jar....seems to work...
doing some long-time tests now
oLRi is offline   Reply With Quote
Old 26th November 2009, 18:07   #124
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
BTW everyone, the red5 team is doing a proper fix for the playengine and we should have something from them soon.
Smelter is offline   Reply With Quote
Old 27th November 2009, 12:37   #125
stefan84
Junior Member
 
Join Date: Nov 2009
Posts: 6
@Smelter sorry about this Icecast, my mistake.

Now I prepare public shoutcast:

http://91.121.80.37:8008

Can you test this stream?
stefan84 is offline   Reply With Quote
Old 27th November 2009, 16:52   #126
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
@ stephan84:
Try fix 3. http://www.thebitstream.com/?page_id=13
Smelter is offline   Reply With Quote
Old 27th November 2009, 17:14   #127
MondayX
Junior Member
 
Join Date: Jul 2007
Location: Bavaria, Germany
Posts: 11
Send a message via ICQ to MondayX
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.
Attached Files
File Type: zip jwplayer_flip.zip (1.6 KB, 676 views)
MondayX is offline   Reply With Quote
Old 27th November 2009, 17:23   #128
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Awesome, yeah, my fix is definitely not optimal, and I hope for a official patch.
Smelter is offline   Reply With Quote
Old 27th November 2009, 17:56   #129
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Also, that mostly affected h264 streams. You might try the unpatched server for vp6. I think that combo is fine.
Smelter is offline   Reply With Quote
Old 28th November 2009, 15:32   #130
oLRi
Member
 
Join Date: May 2008
Posts: 94
Hi,
Quote:
Originally posted by MondayX
for all vp6 + red5 users: i made a jw flv player plugin, which flips the video. works in fullscreen mode, too.
Tried with jw player, but it seems not to work.
My Code:
PHP Code:
<embed
        src
='player.swf'
        
width='320'
        
height='240'
        
bgcolor='undefined'
        
allowscriptaccess='always'
        
allowfullscreen='true'
        
flashvars='file=tesstream&plugins=flip.swf&streamer=rtmp://localhost/shoutcast'
/> 
And
PHP Code:
<script type='text/javascript'>
  var 
so = new SWFObject('player.swf','mpl','320','240','9');
  
so.addParam('allowfullscreen','true');
  
so.addParam('allowscriptaccess','always');
  
so.addParam('wmode','opaque');
  
so.addVariable('type''rtmp');
  
so.addVariable('file','teststream');
  
so.addVariable('plugins','flip.swf');
  
so.addVariable('streamer','rtmp://localhost/shoutcast');
  
so.write('mediaspace');
</script> 
The Video is still "unflipped"
oLRi is offline   Reply With Quote
Old 28th November 2009, 16:37   #131
MondayX
Junior Member
 
Join Date: Jul 2007
Location: Bavaria, Germany
Posts: 11
Send a message via ICQ to MondayX
if you dont use the commercial version of jw flv player you have to do some patching to use local plugins:

http://www.longtailvideo.com/support...ns-for-Dummies

Quote:
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.
MondayX is offline   Reply With Quote
Old 30th November 2009, 11:03   #132
oLRi
Member
 
Join Date: May 2008
Posts: 94
Is there a possibility to view the current "listeners".

PHP Code:
http://localhost:5080/shoutcast/stats 
wont work
oLRi is offline   Reply With Quote
Old 30th November 2009, 13:15   #133
DJTOMCAT
Junior Member
 
Join Date: Aug 2009
Location: Germany
Posts: 42
Hi there

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.

Our Radio stream is at : http://s1.joe-stream.de:7520/;stream.nsv (Broadcasted in VP62/AAC+/320x240/20FPS)

Hope you would help me a little with this
Greetings from germany
Björn

PS: Maybe someone could also speak german with me ^^ would be easier for me then, too
DJTOMCAT is offline   Reply With Quote
Old 30th November 2009, 19:43   #134
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Quote:
Originally posted by oLRi
Is there a possibility to view the current "listeners".

PHP Code:
http://localhost:5080/shoutcast/stats 
wont work
Maybe you set up the red5 http port other than 5080 ?
Smelter is offline   Reply With Quote
Old 30th November 2009, 20:47   #135
oLRi
Member
 
Join Date: May 2008
Posts: 94
Hi,
Quote:
Originally posted by Smelter
Maybe you set up the red5 http port other than 5080 ?
No ... red5 listens on port 5080 (demo pages etc. are also availible) but:
PHP Code:
http://localhost:5080/shoutcast/stats 
Gives me:
PHP Code:
HTTP Status 404 - /shoutcast/stats

type Status report

message 
/shoutcast/stats

description The requested resource 
(/shoutcast/statsis not available
oLRi is offline   Reply With Quote
Old 30th November 2009, 21:05   #136
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
you got this in your web.xml file?

code:


<servlet>
<servlet-name>stats</servlet-name>
<description></description>
<servlet-class>com.thebitstream.shoutcast.Servlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>stats</servlet-name>
<url-pattern>/stats</url-pattern>
</servlet-mapping>

Smelter is offline   Reply With Quote
Old 30th November 2009, 21:20   #137
oLRi
Member
 
Join Date: May 2008
Posts: 94
Yes...just to be sure, here is the complete file (untouched from your source).

PHP Code:
<?xml version="1.0" encoding="UTF-8" ?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee ***91;url***93;http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd***91;/url***93;">

    <display-name>Shoutcast</display-name>
    

    <servlet>
      <servlet-name>stats</servlet-name>
      <description></description>
      <servlet-class>com.thebitstream.shoutcast.Servlet</servlet-class>     
    </servlet>    

    <servlet-mapping>
        <servlet-name>stats</servlet-name>
        <url-pattern>/stats</url-pattern>
    </servlet-mapping>    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>Forbidden</web-resource-name>
            <url-pattern>/WEB-INF/*</url-pattern>
        </web-resource-collection>
        <auth-constraint />
    </security-constraint>

    <security-constraint>
        <web-resource-collection>
            <web-resource-name>Forbidden</web-resource-name>
            <url-pattern>/persistence/*</url-pattern>
        </web-resource-collection>
        <auth-constraint />
    </security-constraint>
    
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>Forbidden</web-resource-name>
            <url-pattern>/streams/*</url-pattern>
        </web-resource-collection>
        <auth-constraint />
    </security-constraint>
</web-app>
oLRi is offline   Reply With Quote
Old 30th November 2009, 21:25   #138
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Boy, I dont know, that's strange. Did you copy the application to the 'dist/webapp' folder? No problems here: http://fatdot.com:5080/shoutcast/stats
Smelter is offline   Reply With Quote
Old 30th November 2009, 21:26   #139
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
couple that with this, and you can see it does count. http://www.thebitstream.com/radio_tacoma.html
Smelter is offline   Reply With Quote
Old 30th November 2009, 22: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 00:43.
DJTOMCAT is offline   Reply With Quote
Old 1st December 2009, 00:38   #141
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
The beans only open ports, and since you already have shoutcast there, it will have a bind error.

If you want the un-commenting to work, you need to recompile it with javac or eclipse or ant.
Smelter is offline   Reply With Quote
Old 1st December 2009, 00:58   #142
DJTOMCAT
Junior Member
 
Join Date: Aug 2009
Location: Germany
Posts: 42
Hi

well it is port 7520/7521 from the Stream which cause that error. Does something else needed on this port by Red5 ?

How can i Recompile this , never made this before ;( Chaging the Port is not good for our listeners.

When i try to Compile it with "JAVAC Application.java"

Only get Errors... like
code:

application.java:47: cannot find symbol
symbol : class StreamConfiguration
location: class com.thebitstream.shoutcast.Application
List<StreamConfiguration> serverPorts;



Which Java Do i Need to Compile ? I use jdk-6u2-windows-i586-p.exe. I also tried DJ Java Compiler , wont work, too

Last edited by DJTOMCAT; 1st December 2009 at 03:50.
DJTOMCAT is offline   Reply With Quote
Old 1st December 2009, 07:02   #143
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
You need to compile against the entire source folder, not just the application class file. You have the source file right next to the application file. I use eclipse.
Smelter is offline   Reply With Quote
Old 1st December 2009, 08:17   #144
oLRi
Member
 
Join Date: May 2008
Posts: 94
Hi,

I'll do it in german for DJ Tomcat, i've read already some other posts from hin around the internet and we're both german, so i think its easier
Quote:
Originally posted by DJTOMCAT
Which Java Do i Need to Compile ? I use jdk-6u2-windows-i586-p.exe. I also tried DJ Java Compiler , wont work, too
Du musst dir bei allem im klaren sein, dass das hier keine Anfängersachen ala 1-Klick-Fertig sind.

Du solltest dich mit folgenden Sachen vertraut machen, bevor du dich hierran wagst:
- Red5
- Subversion
- Umgang mit Eclipse
- Java programmieren
- Eclipse Red5 Plugin
- Compilieren von Red5 in einer Eclipseumgebung

Zu deinen Fragen aus dem Adobe / Flowplayer Forum:
Das ist eine eigens für das Webradio programmierte Lösung. Und nein: Flowplayer ist nicht das "Programm" was den Flashstream erzeugt. Es geht auch mit jedem anderen Flashplayer, ich fand den Flowplayer nur schön zu konfigurieren

Wie Smelter schon sagte: Damit du dieses Red5 Plugin als Client für einen existieren Stream nutzen kannst, musst du es recompilieren. Damit der 0-Listener Bug behoben wird, musst du darüber hinaus noch Änderungen am Red5 Core vornehmen und Red5 neu kompilieren. Das geht alles aber nicht ohne fundierte Vorkenntnisse.

Deine aktuellen Fehlermeldungen sagen, dass du zwar das Plugin kompilieren willst, aber java noch Abhändigkeiten lösen will, die es nicht findet. Hast du die red5.jar in deinem Eclipse Projekt mit eingebunden beim compilieren?
oLRi is offline   Reply With Quote
Old 1st December 2009, 12:02   #145
dr.allgood
Junior Member
 
Join Date: Dec 2009
Posts: 13
hi.
I'll anwer in English, so that everybody else can read it, too

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

In this Plugin there are a few lines of code, flipping the nsv video frame so that it isn't upide down (i think). Maybe this could be useful solving the current issue?

The code is here:
http://code.google.com/p/red5/source...svn3861&r=3861

btw: Is there a way flipping the video in flowplayer?
dr.allgood is offline   Reply With Quote
Old 1st December 2009, 12:23   #146
DJTOMCAT
Junior Member
 
Join Date: Aug 2009
Location: Germany
Posts: 42
@oLRi, I wrote you a PM, because i dont want to spam this thread in german, but will post my successes in english here.
DJTOMCAT is offline   Reply With Quote
Old 1st December 2009, 12:28   #147
oLRi
Member
 
Join Date: May 2008
Posts: 94
Hi Patrice,
Quote:
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.
oLRi is offline   Reply With Quote
Old 1st December 2009, 14:51   #148
dr.allgood
Junior Member
 
Join Date: Dec 2009
Posts: 13
and the plugin is ready imho
Couldn't get it working yet
dr.allgood is offline   Reply With Quote
Old 1st December 2009, 16:27   #149
oLRi
Member
 
Join Date: May 2008
Posts: 94
Quote:
Originally posted by Smelter
Boy, I dont know, that's strange. Did you copy the application to the 'dist/webapp' folder?
Sure it did.
Maybe i found something:
Eclipse tells me, that <description> is "wrong". Maybe something with the XML Definition in Eclipse / Java? I'm using Eclipse Ganymade
oLRi is offline   Reply With Quote
Old 1st December 2009, 16:43   #150
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
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.
Smelter is offline   Reply With Quote
Old 1st December 2009, 18:20   #151
dr.allgood
Junior Member
 
Join Date: Dec 2009
Posts: 13
Yes, that's what i thought when I saw the code

The ICY Plugin tries to get the video data as HTTP Stream which fails due to an non existing HTTP Status code. That's where they stopped. No input to mina anyway

I'd appreciate if your shoutcast plugin would flip the frame itself. Would make things much easier
dr.allgood is offline   Reply With Quote
Old 1st December 2009, 18:45   #152
oLRi
Member
 
Join Date: May 2008
Posts: 94
Quote:
Originally posted by dr.allgood
I'd appreciate if your shoutcast plugin would flip the frame itself. Would make things much easier
Flipping the Frames is not as compilcated as it seems to. (See the posts above)
oLRi is offline   Reply With Quote
Old 1st December 2009, 19:21   #153
dr.allgood
Junior Member
 
Join Date: Dec 2009
Posts: 13
*gg*
yes.. I know
BUT why hack the players I you could flip it directely in the server?
dr.allgood is offline   Reply With Quote
Old 1st December 2009, 19:42   #154
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
@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.
Smelter is offline   Reply With Quote
Old 1st December 2009, 19:46   #155
dr.allgood
Junior Member
 
Join Date: Dec 2009
Posts: 13
hm.. ok.. didn't think of that.

Remains the problem how to flip with flowplayer (can't use fw player)
dr.allgood is offline   Reply With Quote
Old 1st December 2009, 20:46   #156
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Dosent the flow player offer the source code?
Smelter is offline   Reply With Quote
Old 1st December 2009, 21:25   #157
dr.allgood
Junior Member
 
Join Date: Dec 2009
Posts: 13
It does. But I'm not familiar with flash coding
dr.allgood is offline   Reply With Quote
Old 1st December 2009, 21:39   #158
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
If you can tackle setting up nsv tv, then you can handle installing the trial version of cs4 and compiling the flow player. The edits should be little more than one or two lines.
Smelter is offline   Reply With Quote
Old 2nd December 2009, 14:13   #159
oLRi
Member
 
Join Date: May 2008
Posts: 94
Quote:
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.
oLRi is offline   Reply With Quote
Old 2nd December 2009, 14:46   #160
dr.allgood
Junior Member
 
Join Date: Dec 2009
Posts: 13
it's not flash itself (the language is pretty easy compared to java and C) it's getting the right lines at the right place.

i'm working on it


One more thing to add:

fix3 seems to be broken. It reintroduces the empty-vpx-frames-bug fixed in fix2
dr.allgood is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > SHOUTcast > SHOUTcast TV / Nullsoft Video

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump