Using RED5 to record video stream - java

First of all - My English is very bad! so I hope you will understand what i'm asking...
I'm having difficulties in understanding how to use red5 to record stream from the client webcam onto the server side. I have red5 installed on a remote unix server, and i want to enable the users in my website to record stream from their webcam and store it on the server.
I have knowledge in javascript/php/java, and I know that I need to RTFM. I did try to search for some helpful information but i couldn't find any leads regarding my question.
Could you please help me with the first steps like how to connect to the remote server (I'm using Eclipse IDE for Java EE Developers).
Thank you

I advice you to take a look to openmeeting ,it's open source and use RED5 as media streaming server, and provides recording feature from client, and many other interesting features related to webcam.

Related

How can I stream video to a browser using Java/Spring?

We a have jboss server running and have a basic web setup using Spring but now I would like to stream video into the browser. I am trying to use xuggle but then I read on their website that you can't put it into an Applet or use it with java webstart, so I'm assuming that means I can stream to a browser, is this assumption correct? If so does anyone else know any libraries or how I should go about doing this? If you need any more info or have questions I'll be happy to answer although I'm very new to streaming video and relatively knew to Spring.
UPDATE: So I'm able to generate a video using xuggle, and then I can embed that video in my html code... but I can't generate and stream at the same time. Does anyone have any ideas how to make xuggle push date out to my tomcat server?
You may want to look at Red5 media server.
Since you are doing jsp, just have your code write out the HTML 5 video element. That will provide basic video functionality. This will work in all HTML 5 compliant browsers as well as all mobile devices.

Create RTMP streams for the client requests using RED5 server application

I am working on code snippet where I want to create an RED5 rtmp stream using RED5 server application. I have been searching since 5 days to get a good tutorial about the same.
All the tutorials or questions on the stackoverflow discuss about either RTMP client side code or isssues with streaming using oflademo.
What I have achieved ?
I have successfully installed and ran RED5 on my ubuntu box.
I have installed RED5 Eclipse IDE plugin and created one sample project with RED5 runtime code generation
I could see oflademo app streaming videos on rtmp
What I want to achieve ?
Have a server side jsp page showing number of connections i have received.
For this i did one small test like I defined welcome-file in web.xml withing the project i generated using plugin. But i couldnt reach to that file but at the same time if I create a project using simple eclipse wizard for tomcat my welcome file thing works.
After getting each request I want to start an rtmp stream for that client.
I tried reading code of oflademo but really couldnt understand the code. Most of the things are commented or probably something I am missing while reading that code.
Thanks in advance.
One solution I found is to go back to 0.9 version, 1.0 RC has some issues. I switched back to 0.9 and everything seems working.

How to make Tomcat stream media?

I am entirely new to streaming implementation. I have developed some RESTful web services using Jersey/Tomcat. There are few cases where I need to send audio/video files to the clients, which uptil now I have been sending as a file fr download - now I want to stream these files.
Do I need to write some code for this ? Or I need some third party solutions ...I have heard about Wowza / Darwin / Red5...But I dont know if they can be integrated with Tomcat and my existing services. Any third party solutions need to be free / opensource, and they should support both audio and video streaming. In the near future I need to add transcoding support too..for which I am planning to use Xuggler. So it would be good if the server is having such support.
Any pointers would be appreciated. Thanks !!
Red5 is essentially Tomcat with added features. I don't know how far back in time the fork was made but the basic functionality is all there.
Also - Red5 and xuggler play nicely together.
You'd still need to code up the client side of the streaming portion though. Its possible that HTML 5 will give you this for cheap.

Java - XMPP - I need some document or tutorial for it

i found XMPP on google (i need create a application IM look like Yahoo or Live or Pidgin), i need write XMPP Server and Client but i don't know how to write it?
because of it, it need some document or tutorial help me write server and client interactive with my database.
Thank you
Best Regards!
Either you can write your own or use the already proven open source libraries ready to be used. Look this post Good XMPP Java Libraries for server side?
If you are looking for tutorials, articles etc then go to xmpp.org or go to this post Good tutorials on XMPP?
You can also try writing server components with Whack framework. I've blog about using Whack here (part1, part2, part3).

Shoutcast streaming

I'm currently working on a app for a podcast (katg.com) which will let you listen live etc... however, I have not found any open source code available to stream shoutcast. I know there are some ways of doing it, but I find it hard to find any available code on the net that explains it for a java/android beginner like myself. Anyone know of any libs/tutorial/examples/code that shows how to do this on android?
As Erich seems to have accidentally posted the wrong link, here's another resource about the protocol: http://forums.radiotoolbox.com/viewtopic.php?t=74
The shoutcast stream itself is accessible via HTTP. For example via Telnet:
$ telnet myshoutcastserver.com 8000
GET / HTTP 1.1
..............a lot of streaming stuff........
So you could try to buffer the stream data and when there is enough to play pass it to a MediaPlayer instance.
There is a shoutcast streaming application for android on github:
http://github.com/Dawnthorn/nagare/
I didn't try it and it seems to be not continued. However maybe the code helps :)
Here's some text on how the Shoutcast protocol works: SHOUTcast Protocol. It's not as good as sample code, but it might come in useful.
Edit: Fixed the link.
In case you haven't found it by now, Icecast is an open source audio streaming server that supports the SHOUTcast protocol: http://www.icecast.org/index.php

Categories

Resources