i have a project to do recently. what i have to do goes like following:
obtain the realtime video from the camera on the client side
stream and forward it to the server
play it on the server side
i've done some research about this and i know jmf and webcam-capture can do 1 and 3 for me. the real point that makes me stuck is the second point.
i didn't do networking programming as much as i should and i could not find the right idea to achieve this. how can i convert a captured video clip to a videostream(no sound needed by the way) and send it to the server in realtime?
all i need is just a guide to the proper api.
thanks in advance.
You need to use a Socket to connect the client and server. You can find examples in the Java Tutorials, try using an ObjectStream
Its very easy indeed. Use Windows Media Encoder to capture and stream your webcam to any other computer.
When your encoder starts, you will get a URL to view your stream, which you can use to view the stream (With audio and video) from anywhere with internet.
Related
I am trying to send a video directly from Androids camera and stream it using RTMP, I have seen two libraries one is
http://www.aftek.com/afteklab/aftek-RTMP-library.shtml
and I registered but got no reply
the other one is
http://code.google.com/p/android-rtmp-client/
which seems really outdated and not well documented
I am still newbie in androids development so I would appreciate it if someone gives me a good step by step guide on how to encode a video from the camera directly to a RTMP server where I have the server and title
Thank you
I would like to write a program in Java which takes pictures from an IP camera and sends (over ftp) it to a website, replacing an old image.
Does anyone know any libraries I can use for that task?
I think the main problem will be grabbing an image from IP camera and saving it as a JPEG.
Basically I have never worked with cameras before. So I will be really grateful if someone can give me some tips.
First you would have to figure out how to get the data from IP Camera you will be using. Good starting point can be found here: http://dragosc.itmcd.ro/uncategorized/java-media-framework-vs-ip-camera-jpegmjpeg-complete-overview-sources/
Second, you should choose the library for ftp communication, this topic was discussed here:
What Java FTP client library should I use?
Once you'll write smth which actually does something you can get back to SO and ask more specific questions.
I want to read in a live video stream, like RTSP, run some basic processing on it, and display it on a website. What are some good ways to do this? I have used OpenCV for Python before but found it to be a hassle. I am also familiar with Java and C++ if there are better libraries available. I haven't done a lot of web development before either.
What kind of live video source that you mean? If you don't intend to do this code-wise, you can use the free VLC Player to act as a streaming service in between any kind of media stream source (file, network, capture device, disc) and your web video client.
But, if you intend to do this code-wise, you can you VLCJ library. Other options can be Xuggler or FMJ.
I need to set up live streaming from a number of web-cameras to the internet (in browsers), and the streams should be visible only to particular users. I.e. user A logs in to my system with his or her login/password, goes to the video stream page, and sees the stream from a particular cam, and other users cannot see that video, even if they know the url to that stream.
I've looked at a number of solutions so far, but some of them are obsolete, most of them are for image processing, recognition and the like, and some are just a bit too cumbersome, like Red5, for example.
Is there a relatively simple solution for that, that would just allow me to get a videostream from a particular cam connected to my computer?
Thanks in advance.
If you are using Linux I have had success with V4L4J (Video 4 Linux 4 Java) which is small and really quite cool. You would need to do quite a bit of work to get streaming working for a low bandwidth connection but if it is over LAN playing back an MJPEG stream over a TCP socket is easy beans :-)
http://code.google.com/p/v4l4j/
Good luck.
Have a look at Java Media Framework to communicate with your cam.
We are storing sound from mic to pc via sound forge.
We would like to broadcast the sound which comes from the mic to the pc as live streaming audio.
Basically a person speaks in a mic, we like to give it as live stream audio.
The web-site is hosted on yahoo server.
Can you please let me know in what are the ways we can achieve this?
Thanks,
Kathir
you can rent shoutcast/icecast2 stream from a lot of shoutcast/icecast2 stream hosters.
Then just embed flash based player with this stream in your site page.
Do you have SSH access to server? You can install shoutcast server(http://www.shoutcast.com/).
I don't know if you still have this issue but you will need a Shoutcast or Icecast server to do this. It can be complicated if you aren't familiar with operating a server. It's easier to rent space on a Shoutcast server. You can find a great service which is affordable at MyRadiHosting.
You would want to put a player code in your website that works across all browsers and devices. We use the one below and have had no issues.
<audio src="http://YOUR IP ADDRESS:YOUR PORT/;" id="MediaPlayer1" autoplay="autoplay" controls="controls">
Hope this answer helps!