Skip to main content

Multiple Video Streams...

18 replies [Last post]
joecole
Offline
Joined: 2003-06-10

My company is planning a new venture at the moment, and are interested in the possibility of having multiple video streams displayed. Is it possible to have the JMF do this, or will we need to produce some JNI wrappers around some native libraries?

What is the state of firewire implementation - and will it ever become a standard part of the jmf?

Joe

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ruben Gerad Mathew
Offline
Joined: 2006-02-14

Hi,
I wanted to let you know that JBuilder 2005 can be used to compile the source code but you will need to provide a JDK 1.3 to compile and execute the code without problems....

Regards,
Ruben.

zander
Offline
Joined: 2003-06-13

> My apologies Joe. I'll track this down hell or high water. :)

Promises galore...

joecole
Offline
Joined: 2003-06-10

Hmm...

Is there a JMF team at the moment?

Anyone?

jeff
Offline
Joined: 2003-06-10

Hi Joe,

Guess I shouldn't have made that promise, eh? :)

Yes, there's a JMF team. Yes, I've sent your question to them - three times. I have not received a response.

On Sun's behalf, I apologize.

I'll try again. This time, no promises. :sigh:

I guess here's as good a place as any to mention that this forum is not an official channel to get issues resolved with Sun. By now, I guess that's pretty obvious, eh? :)

Best Regards,

Jeff

joecole
Offline
Joined: 2003-06-10

Jeff,

no worries. We are currently investigating native solutions through JNIWrapper.

joe

jeff
Offline
Joined: 2003-06-10

And here, finally, is your answer...

>Hi,
>
>My company is planning a new venture at the moment, and
>are interested in the possibility of having multiple
>video streams displayed. Is it possible to have the JMF
>do this, or will we need to produce some JNI wrappers
>around some native libraries?

Depends on what you mean by multiple video streams. If the streams are from HTTP, RTP or File sources, yes JMF can play multiple video streams.

If you're asking about multiple video capture devices, its harder to answer. If the devices have VFW drivers (the older video capture driver model in windows), then it might work. If they are USB devices, it still kind of works, but with an additional user interaction element.

>What is the state of firewire implementation - and will
>it ever become a standard part of the jmf?

There are two aspects to this:
a) Firewire capture
If it's a video-only webcam device using the 1394 interface, it may be supported on WindowsXP. I've heard that iBot and the Sun 1394 collaboration camera both work (I've actually tried the latter). These cameras output raw RGB or YUV video frames, which is fine with JMF.

If it's a DV camcorder, then it requires adding JNI code to interface with DirectShow Capture APIs. JMF doesn't currently do this.

b) Decoding DV video frames

On windows, you need to install a DVSD plugin that JMF can use to decode DV video frames embedded in AVI files or directly captured through a firewire camera that has VFW drivers. Such a plugin is available from panasonic. Do a google search for Panasonic DVSD codec (pdvcodec.zip).

Hope that helps.

Amith

joecole
Offline
Joined: 2003-06-10

Jeff,

Thanks for the reply.

A lot of people have complained about firewire not being supported by jmf. Since it seems it may be possible, on windows, do you think a tutorial could be written up on how to do it?

Joe

Ruben Gerad Mathew
Offline
Joined: 2006-02-14

Hello,
The problem can be fixed by using JDK 1.3 or JDK 1.5.

Regards,
Ruben.

southc
Offline
Joined: 2006-02-27

That's a workaround :)

Note that if you're running on OS X, I've seen some posts and docs that say you cannot _capture_ media on OS X using JMF. I guess the JMF folks didn't eat their own dogfood, as you can capture fine using the basic javax.sound API.

Anyone know of an added input source on OS X that lets you capture using JMF?

donaghy_liam
Offline
Joined: 2006-02-17

Hi,

I have written a multi-threaded audio server and player completly in java using jmf as well to sample and distribute live audion to one or many clients, each client can request a stream, the idea can be used to carry video as well, this idea was by complete msc thesis, and it worked perfect, thing now is that i tried to run it at college and now get the error

---------------------------------
java.lang.IllegalArgumentException: Illegal request to write non-integral number
of frames (22050 bytes )
at com.sun.media.sound.SimpleInputDevice$InputDeviceDataLine.read(Simple
InputDevice.java:524)
at com.sun.media.protocol.javasound.PushThread.process(JavaSoundSourceSt
ream.java:790)
at com.sun.media.util.LoopThread.run(LoopThread.java:135)
------------------------

This error has been mentioned on this forum, the thing is that i want to set up an free ip phone, i.e. the audio must travel in both directions at the same time, any help would be really appreciated, and if you need and code give me a shout,

rgs

liam

Ruben Gerad Mathew
Offline
Joined: 2006-02-14

Hi,
I too developed an application for managing multiple audio video inputs and transmission, the only problem is that it currently runs well on JBuilder 6 but the new version of JBuilder 2005 throws the following error:
java.lang.IllegalArgumentException: Illegal request to write non-integral number of frames (22050 bytes )

at com.sun.media.sound.SimpleInputDevice$InputDeviceDataLine.read(SimpleInputDevice.java:524)

at com.sun.media.protocol.javasound.PushThread.process(JavaSoundSourceStream.java:790)

at com.sun.media.util.LoopThread.run(LoopThread.java:135)

I did get around this problem by using directsound:// instead of javasound://, can this be some other problem that I failed to notice ?

Thanks for your help,

Regards,
Ruben.

icganesh
Offline
Joined: 2003-10-15

Hi,

I have the following error when i am about to transmit audio/video between 2 window PC.

---------------------------------
java.lang.IllegalArgumentException: Illegal request to write non-integral number
of frames (22050 bytes )
at com.sun.media.sound.SimpleInputDevice$InputDeviceDataLine.read(Simple
InputDevice.java:524)
at com.sun.media.protocol.javasound.PushThread.process(JavaSoundSourceSt
ream.java:790)
at com.sun.media.util.LoopThread.run(LoopThread.java:135)
------------------------

Kindly let me know how to solve this problem???

Thanks in advance,
Regards,
Ganesh.

joecole
Offline
Joined: 2003-06-10

Thanks jeff.

Great site by the way. I pity your email situation, not really productive work is it - the new bain of the information age!

Joe Cole

joecole
Offline
Joined: 2003-06-10

Jeff,

Any news from the jmf team?

Also, I have put on hold some development of our media player until I can get some answers or have access to the source again... (it was really handy - but now for some reason we cannot use it???)... any news on when we are able to get the source?

Joe Cole

jeff
Offline
Joined: 2003-06-10

My apologies Joe. I'll track this down hell or high water. :)

jeff

joecole
Offline
Joined: 2003-06-10

No worries, it would be great to get some input from them, or work with them, whatever the case. I just want that functionality!

Joe

joecole
Offline
Joined: 2003-06-10

No one has any answers?

What about the people from sun?

jeff
Offline
Joined: 2003-06-10

Hi Joe -

People here at Sun are still getting back in the swing of things (no pun intended) post-JavaOne. I had around 400 new email messages to deal with myself. :yikes:

Anyways, I'll see if I can get a JMF engineer to pop their head in here.

thanks for your patience!

jeff