How to play avi files in a java application

Hi,

I have a java desktop application which is actually a kiosk application. I have to run some promotion videos in my application when no user is using the kiosk.

videos can be any avi or neother which can easily be played in java applications.

What is the best way for me to play video files in a java application?

[341 byte] By [imation3ga] at [2007-11-27 6:12:18]
# 1

...

> I have a java desktop application which is actually a

> kiosk application. I have to run some promotion

> videos in my application when no user is using the

> kiosk.

Will the kiosks all be running the same OS?

The reason I ask is that JMF is available in both

standard and performance pack versions. The PP

provides a wider variety of formats, but runs only

on Win. and *nix.

> videos can be any avi or neother which can easily be

> played in java applications.

That is handy. The JMF standard pack provides

support for a number of flavors of AVI, but not all.

> What is the best way for me to play video files in a

> java application?

I would suggest checking if the 'standard' version

of the JMF can play* the current AVI's. If it can, use

the standard JMF for the project, if not, look to

converting the AVI's to something the JMF can

deal with, this might involve storing the video or

audio of the AVI's in a different format - you

might have to experiment to get the right

combination, but the JMF 'supported formats'

is a good guide.

http://java.sun.com/products/java-media/jmf/2.1.1/formats.html

* To check if JMF can play them, install it and

try loading the AVI's in JMStudio - the default

player.

AndrewThompson64a at 2007-7-12 17:19:24 > top of Java-index,Security,Cryptography...
# 2
Yes all kiosks will be running on windows OS
imation3ga at 2007-7-12 17:19:24 > top of Java-index,Security,Cryptography...
# 3

> Yes all kiosks will be running on windows OS

OK - in that case I'd recommend that if the standard

pack can play the current AVI's - use it, else try the PP.

If neither supports the particular AVI codecs - convert

them to a format that the standard JMF can load.

AndrewThompson64a at 2007-7-12 17:19:24 > top of Java-index,Security,Cryptography...
# 4
I have installed JMF pack but when i try to run avi,mpeg files in JMStudio it gives me error: "Failed to realize"How can i make it work?
imation3ga at 2007-7-12 17:19:24 > top of Java-index,Security,Cryptography...
# 5

Is that all it reported?

I tried to load an AVI here that was recorded

using codecs not understood by JMF, and got

a message..

Controller Error

Failed to realize: input media not supported: DIV3 video,

mpeglayer3 audio

Note the second part of that message that quite

specifically states the 'input media not supported'

and tells the type of media 'DIV3 video, mpeglayer3

audio'.

This is one flavor of AVI that would need to be

converted (to audio/video codecs that JMF

understands) before JMF could load it.

Perhaps more importantly, have you checked the

page that lists filetype and codec support offered

by JMF?

AndrewThompson64a at 2007-7-12 17:19:24 > top of Java-index,Security,Cryptography...
# 6

When i try to run .avi files its gives error:

Controller Error:

Failed to realize: failed to parse the input media

Yea i checked the supported formats and it has avi in it.

http://java.sun.com/products/java-media/jmf/2.1.1/formats.html

i downloaded and installed this JMF: jmf-2_1_1e-windows-i586.exe

Any ideas?

imation3ga at 2007-7-12 17:19:24 > top of Java-index,Security,Cryptography...
# 7
take a look to fobs jmf.regards
emanuele.ga at 2007-7-12 17:19:24 > top of Java-index,Security,Cryptography...
# 8
I have to develop a java application for kiosk and pelham slone touch screen computer.Can you please give me some insight as to how I can proceed with development. Are java applets a way to go. Any help is grately appreciated.
kolli143a at 2007-7-12 17:19:24 > top of Java-index,Security,Cryptography...
# 9
I would suggest u go for desktop application for Kiosk. You will have to develop your customize components like buttons and panels if you want ur application to look beautiful.It should be a normal desktop application. Follow guidelines on how to develop a kiosk application.
imation3ga at 2007-7-12 17:19:24 > top of Java-index,Security,Cryptography...