multiple video players in Java application .... which is best format ?

Hey there

we are working on an application that will allow six video players to run similtaneously in a frame (actually a J Layered Pane) - you can drag these around + rearrange them.

At present we are testing a whole load of different formats + codecs to see which performs best - the piece will end up in a gallery so we need to push quality + resolution as high as possible.

.avi works best so far - using cinepak @ 70% quality .... .mov does not work at all .... does anyone have advice as to the most suitable format ?

many thanks

John Gerrard

gerrardj@cs.tcd.ie

[617 byte] By [johngerrard] at [2007-9-26 1:58:18]
# 1

So far I found the same thing. I'm working on a very similar project (even the same number of videos - 6, all must be synched to one control slider). The first test I did were using files encoded in Cinepak. Have tried only a handful of other codecs (Indeo 3.1, 5.10, and mpeg 1). I'd prefer to use MS Video 1. The screen capture tool we're using seems to get a steady 10 frames per second using MS Video 1 (CRAM) but JMF doesn't understand this codec.

I assume you're using a Microsoft OS. Did you look at any other ways to accomplish synch of multiple video files (other than JMF) What about using C++ and directx? I must admit JMF made the job very easy. Still, I wish JMF could decode a wider variety of video formats. What about allowing us access to all codecs installed in Windows. Maybe I can already do this with JNI somehow. Any ideas?

By the way. I have found the performance of video in Swing containers (JFrames for example) is not as good as in standard AWT containers (Frame). Lightweight vs Heavyweight. I have read that video in JFrames will be played using software but video in Frames has access to hardware acceleration features on your video card.

Regards,

Chris

cjhardin at 2007-6-29 3:15:55 > top of Java-index,Security,Cryptography...