Google Answers Logo
View Question
 
Q: How to manipulate real-time video streams with Java JMF? ( No Answer,   3 Comments )
Question  
Subject: How to manipulate real-time video streams with Java JMF?
Category: Computers > Programming
Asked by: rpcxdr-ga
List Price: $40.00
Posted: 10 Nov 2002 19:45 PST
Expires: 14 Nov 2002 09:06 PST
Question ID: 104946
I am doing research in reconstructing dynamic physical models based
on image analysis.  Java has produced a marvelous, yet marvelously
complex, API for working with current realtime media standards.  I do
not have the time to learn the complexities of the new API, but I do
want to learn to add in my own image manipulation effects and analysis
to a realtime stream.

An answer to this question must contain working example code that
takes a video stream from a local web-cam, inverts the colors, and
displays the result as real-time video to the screen.  I will give
bonus karma points to the researcher who does the processing in a
method with the following signature:

byte[][][] processFrame(byte[][][] inputFrame);

So far I have found the following resources:
JMStudio: Source code for all basic JMF operations:
http://java.sun.com/products/java-media/jmf/2.1.1/jmstudio/jmstudio.html
Implementing a Renderer plug-in: 
http://java.sun.com/products/java-media/jmf/2.1.1/guide/JMFExtending.html#94875
JMF API:
http://java.sun.com/products/java-media/jmf/2.1.1/apidocs/

Clarification of Question by rpcxdr-ga on 11 Nov 2002 13:53 PST
It is ok if there is a minimal delay and missing frames in order to
accomidate processing time.  Useing a Frame Grabber thread is fine. 
Also if the solution is a just a modification of the JMStudio example
code, that is fine too.

I know that there are multiple places to put image processors:
preprocessors, postprocessors, and renders.  Any of these solutions
are fine, so long as the video on the screen is processed and is as
near realtime as possible.

I just want an exmaple of one way to do it, and any way is fine with
me.

Clarification of Question by rpcxdr-ga on 14 Nov 2002 09:06 PST
Thank you for your interest in my question studboy-ga.  I'm just gonna
figure this out my self this weekend, so I'm closing the question.
Answer  
There is no answer at this time.

Comments  
Subject: Re: How to manipulate real-time video streams with Java JMF?
From: studboy-ga on 11 Nov 2002 12:00 PST
 
I don't think you can invert a real time stream on the fly--
you can invert one frame at a time and concatenate them together,
but it won't be real time as the inversion will take time.
If you need to do this you will need to write your own processor/player,


See:

http://www.sun.com/developers/evangcentral/totallytech/jmf.html
http://www.sun.com/developers/evangcentral/totallytech/jmf2.html

and:

http://servlet.java.sun.com/javaone/ javaone2000/pdfs/TS-576.pdf 

Let me know whether this is what you want to do.
Subject: Re: How to manipulate real-time video streams with Java JMF?
From: studboy-ga on 11 Nov 2002 12:02 PST
 
I don't think you can invert a real time stream on the fly--
you can invert one frame at a time and concatenate them together,
but it won't be real time as the inversion will take time.
If you need to do this you will need to write your own processor/player,


See:

http://www.sun.com/developers/evangcentral/totallytech/jmf.html
http://www.sun.com/developers/evangcentral/totallytech/jmf2.html

and:

http://servlet.java.sun.com/javaone/javaone2000/pdfs/TS-576.pdf 

Let me know whether this is what you want to do.
Subject: Re: How to manipulate real-time video streams with Java JMF?
From: rpcxdr-ga on 11 Nov 2002 13:25 PST
 
It is ok if there are a few seconds of delay and missing frames.  I
will add this as a clarification.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy