Go Premium for a chance to win a PS4. Enter to Win


Help needed for video surveillance application

Posted on 2001-07-25
Medium Priority
Last Modified: 2012-08-13
Hi, I'm looking to build a simple java based video surveillance program and I need some guidance. What I want to do is get video from a web cam and send it over the internet to another computer which will be able to view the video. I'm not nessecarily interested in sound right now but in the future I will probably like to implement audio capibilites. Also I would like be able to switch the recieving machines internet location every once and a while. I'm also looking forward to implementing a way to record the video content to a file straight from the stream.

So this is where I am with my understanding of what I have to do so far. I have to make a application that runs on the server side (sending machine) that listens for a connection request. When it recieves a connection request it should probably check for a password make a connection and then start streaming the video or other media accross the connection. On the client side (recieving machine) I will have to send a connection request make a connection and then recieve the video data from the connection and display it on the screen.

In order to do the above, I've been looking at JMF and RTP. If anybody can give me small examples or some basic source code for what I'm describing it would be appreciated, otherwise if using JMF and RTP is not a wise decision for what I'm trying to achieve please let me know what else I should do. TIA
Question by:kainhart

Expert Comment

ID: 6327227

the JMF is hte way to go, i dont have examples, but check with java.sun.com.

The connection is simple enough, a UDP socket connection (not a TCP due to overhead and no real need for perfect transmission), you then need to register a driver for the input device, and hten you should be able to get the stream(/s eg audio), and bung them on to the network/internet.

i may be able to get some source, or amore detailed idea of what you need to do and some resources to look at on monday.

Googly Ralph.

Author Comment

ID: 6336456
Ok, I've decied to use RTP in my Java JMF based application. Right now I'm concentrating on the recieving end only but I'm getting very confused with the SessionManager, RTPManager, RTPStream, ... lingo. All the examples I see out there try to open a new player for each stream that is present in a session which bloats the examples so much that I can't follow the meaningful code. ]

All I want to start with is a single connection to a RTP server, which should only be sending information that has come from a single capture device. So as far as I can tell I don't really have much use for code that checks for format changes, payload changes, additional participants, or additional streams. I just need one player to play video that is being sent by one transmitter. What do I need as far as code to do just this?

I've already made a player window type of GUI form which encapsulates the player and it's funcionality so that a player can just be passed the window when created. From what I understand so far I have to get an address and port number for the transmitting machine and then I have to use it to somehow down the line create a player to view the video and a DataSink to record the data to a file. The thing I don't understand is that I create a player by just passing a MediaLocator to the Manager.createPlayer() method, so why do I even need a manager? I don't even see where RTP comes into play because all I have to do is pass the address, port information, and TTL in and get the player out then use it. If somebody can help me with all this confusion please do.

Expert Comment

ID: 9061962
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
LVL 14

Expert Comment

ID: 9208303
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

[paq'ed and points refunded]

Please leave any comments here within the next seven days.
EE Cleanup Volunteer
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.

Accepted Solution

Mindphaser earned 0 total points
ID: 9403446
Force accepted

** Mindphaser - Community Support Moderator **

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question