How to start Xuggle at Red5
A big breakthrough today – I finally managed to start a Xuggle demo on the server Red5. I am really proud of this, because this kind of technologies will have a tremendous impact on further advancement in the Internet world. I have already given the details of the functioning of the tandem Xuggle and Red5. Now it is time to present how I have activated Xuggle and Red5 on my computer with Windows Vista64bit. I began with downloading and installing the latest version of the server Red5 – 0.8RC2. Of course I also installed the Xuggle. All the Widnows versions are really easy to install – by using the command: Setup.exe and restarting a computer.
What I did next was to create an web application archive, consisting of the following files:
All the useful files can be found here:
All other settings do not require any changes. I just turn on the camera and the microphone and begin a video session.
The name of the stream is antek. In order to see the results of Xuggle operations I start the option “View”. The name is xuggle_antek.
After severals hours of trials and errors and using
Art Clarke I got it! I’ve finally seen my “second nature” – my second faceJ
Thanks a lot, Art! In the next chapter I’m going to explain how to programme Xuggle using Eclipse and Maven 2. However, first I have to learn how to do it and, most importantly, EAT SOMETHING!
All the useful files can be found here:
- http://xuggle.googlecode.com/svn/trunk/repo/share/java/xuggle/xuggle-xuggler-red5/xuggle-xuggler-red5-1.17.117.jar
- http://xuggle.googlecode.com/svn/trunk/java/xuggle-xuggler-red5/web/videotranscoder/WEB-INF/red5-web.properties
- http://xuggle.googlecode.com/svn/trunk/java/xuggle-xuggler-red5/web/videotranscoder/WEB-INF/red5-web.xml
- http://xuggle.googlecode.com/svn/trunk/java/xuggle-xuggler-red5/web/videotranscoder/WEB-INF/web.xml
$ export | grep HOME
declare -x JAVA_HOME="C:\Program Files\Java\jdk1.6.0_10"
declare -x RED5_HOME="C:\Program Files (x86)\Red5"
declare -x XUGGLE_HOME="C:\Program Files (x86)\Xuggle"
I started red5: red5.bat. For testing I used the demo application from the server Red5 – Publisher. http://localhost:5080/demos/publisher.html. It is important to remember to connect to the videotranscoder application rather than oflaDemo.
All other settings do not require any changes. I just turn on the camera and the microphone and begin a video session.
The name of the stream is antek. In order to see the results of Xuggle operations I start the option “View”. The name is xuggle_antek.
After severals hours of trials and errors and using
Art Clarke I got it! I’ve finally seen my “second nature” – my second faceJ
Thanks a lot, Art! In the next chapter I’m going to explain how to programme Xuggle using Eclipse and Maven 2. However, first I have to learn how to do it and, most importantly, EAT SOMETHING!
Hi there!
I’ve being trying to put this demo to work, but it’s been impossible for me. I’m using MS Windows XP Pro SP3 and I’ve made a clean install of Red5 0.8.0 final using the installer provided for that purpose on red5.googlecode.com.
After that, I’ve installed the latest Xuggle version 3.0.660 available at their website. Xuggle seems to be working ok, since I tried decoding an flv with it and it worked fine, and so did Red5 after installing oflaDemo and hence the publisher app.
I copied the shared xuggle-xuggler.jar to red5/lib (there was a library there already, but it seemed an older version so I just deleted it xuggle-xuggler-2.0.322.jar)and put the latest videotranscoder-3.0.757.war and audiotranscoder-3.0.757.war on the webbaps folder.
After a while I managed to connect to red5 using the rtmp://localhost/videotranscoder. Video publishing and subscribing works fine but when I write xuggle_whatever nothing is displayed.
I started red5 using cmd to check if it gave any error but I see nothing wrong. There’s even a table showing activity related to videotranscoder…
|————————————————————–|—-|———|-
——–|———|———|
| com.xuggle.red5.Transcoder#transcode_loop | 1 | 160,732 |
160,732 | 160,732 | 160,732 |
| com.xuggle.red5.Transcoder#writePacket | 1 | 0,148 |
0,148 | 0,148 | 0,148 |
| com.xuggle.red5.Transcoder#VideoPictureListener#preEncode | 1 | 5,332 |
5,332 | 5,332 | 5,332 |
| com.xuggle.red5.Transcoder#VideoPictureListener#postDecode | 1 | 0,009 |
0,009 | 0,009 | 0,009 |
| com.xuggle.red5.Transcoder#decodeVideo | 1 | 46,374 |
46,374 | 46,374 | 46,374 |
| com.xuggle.red5.Transcoder#encodeVideo | 1 | 100,235 |
100,235 | 100,235 | 100,235 |
| com.xuggle.red5.Transcoder#readNextPacket | 1 | 0,605 |
0,605 | 0,605 | 0,605 |
|————————————————————–|—-|———|-
——–|———|———|
| com.xuggle.red5.Transcoder$1#packetReceived | 12 | 0,566 |
0,004 | 5,883 | 6,790 |
| com.xuggle.red5.io.Red5Message# | 7 | 0,121 |
0,008 | 0,787 | 0,849 |
|————————————————————–|—-|———|-
——–|———|———|
Any way to know why this could be happening?
Thanks in advance. Bye.
Try with maven:
http://en.jakubiak.info/2009/02/26/maven2-red5-xuggle.htm
Hi Antoni!
Do you get some framerate issues with the videotranscoder app? I’m getting mad delay here (over 100ms to packetReceived) and can’t seem to find the solution!
No, for me it works fine.
Hi Antoni,
How can I use xuggler in my red5 servlet. I mean this is the war file. But where can i find the source code, so that i can do it myself. Add something myself
Please have a look at this post: http://en.jakubiak.info/2009/02/26/maven2-red5-xuggle.html