Capturing video with cell phone integrated camera via Java ME - java

I'm trying to capture a video stream using the video camera on a Java ME capable cell phone. How do I go about doing this? I've read about using MMAPI for capturing still images through a live camera feed, but I'm not sure whether it can capture a video stream that can be saved (with sound) and forwarded to a remote server.

a nice writeup on the subject in this javaworld article.
Hope that helps,
Petri

Related

Streaming video from IP Camera to JavaFX application

I am running a JavaFX application on a Raspberry Pi that is on the same network as my Wansview NBC540W ip camera. At the moment I simply would like to see the output of the ip camera in the JavaFX application. Any suggestions or working examples?
If you look at this link: https://www.ispyconnect.com/man.aspx?n=wansview you can see that the video stream from that camera is an .asf stream.
Here is some information on streaming in Java applications: How to play radio live stream .asx video/x-ms-asf?

Stream a video from androids camera to a server over RTMP

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

streaming the video from webcam and play it on other computer

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.

Can I capture video from an IP camera using OpenIMAJ?

Using the OpenIMAJ library can I capture and record video from an IP camera and also show live video in a web application?
I've not got an IP camera to test with, but in theory you can use the XuggleVideo class to do it - you basically just need to provide the URL of the stream provided by the camera:
Video<MBFImage> video = new XuggleVideo("rtsp://10.10.10.121/cam0_0");
Any type of stream/url that FFmpeg supports should work.

java:web cam application

I am looking to do develop the following application. How to proceed?
Scan the system for installed webcams and their supported video modes.
Let the user select a cam and a video mode.
Displays a video of the camera.
Starts a frame grabber/processor, it doesn't have to do nothing for now. I want to have the possibility to elaborate frames or at least one frame every x.
Not sure if it's possible but i'd need also a routine to overlay processed frames on the playing video.
Check this post on SO for inspiration.
The JMF framework supports capturing real-time data, audio or video, as detailed in this article
You can also try LTI-Civil
I would recommend you using Webcam Capture project since neither JMF nor LTI-CIVIL are maintained any more. Webcam capture is a cross-platform, open source project hosted on Github. There are plenty of examples, e.g. of how to do things you've asked:
How to enumerate webcams and listen for new devices connected
Display video from camera
Enable grabbing and take snapshot on demand
Unfortunately there is no possibility to overlay image obtained thru Webcam Capture API on the playing video. At least not within the Webcam Capture itself, but you could use Xuggler to do that - it contains example of how this can be done.
Please note that Webcam Capture API can be used on top of the JMF, FMJ, LTI-CIVIL, GStreamer, OpenIMAJ and other.

Categories

Resources