This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Mediaplayer framework and avi files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Mediaplayer framework and avi files" Watch "Mediaplayer framework and avi files" New topic
Author

Mediaplayer framework and avi files

Sandra Stone
Greenhorn

Joined: Jun 30, 2004
Posts: 6
I've got a large number of avi videos that i want to display using the java media framework. In the documentation i find that the framework supports avi files. However, it seems like it can't handle the type of avi-files that I've got, because when i try running my program, i error messages like this:
Unable to handle format: CRAM, 452x452, FrameRate=4.0, Length= 0 1024 extra bytes

If the java mediaplayer can't handle my avi format, i can't use it. Does anyone know why this avi format isn't supported (what is cram?), and what can i do ? (I would rather not convert the avi's to another format). Will this format be supported in the future, does anyone know?
Jared Cope
Ranch Hand

Joined: Aug 18, 2004
Posts: 243
Hi,

I have run into similar problems. Some of my .avi files play while others don't. I believe it has to do with .avi files that use compression - JMF out of the box does not support playback of any movies that are compressed.

Would love to hear if you can get it to work.

Cheers, Jared.


SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
 
Don't get me started about those stupid light bulbs.
 
subject: Mediaplayer framework and avi files
 
Similar Threads
JSF and mediaPlayer
AVI to MPG - API
J2SE 1.5 Image I/O unable to write gif files?
Building a Hackintosh
Simple JMF question - help needed urgently!