Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I view MPEG-4 files in my QTJ Java app?



I recently took some sample video that produced an MPEG-4 video format file (I was using a Sony XDCam EX that shoots in either 1080i or 720p high definition with various frame rates). When I try to load the file into my simple QTJava player, I get the following error:

quicktime.std.StdQTException[QTJava:7.4.0g],-2010=invalidMovie,QT.vers:7408000
at quicktime.std.StdQTException.checkError(StdQTException.java:38)
at quicktime.std.movies.Movie.fromFile(Movie.java:202)
at quicktime.std.movies.Movie.fromFile(Movie.java:165)
at tom.tennis.view.SimpleQTPlayer.<init>(SimpleQTPlayer.java:35)
at tom.tennis.view.SimpleQTPlayer.main(SimpleQTPlayer.java:75)

Here is the relevant code:

...
QTSession.open();

// get movie from file
File f = getMovieFile();
OpenMovieFile omFile =
OpenMovieFile.asRead (new QTFile (f));
movie = Movie.fromFile (omFile); <-- This is the line where the error is thrown
mController = new MovieController(movie);
...

I am able to play these same files in a free player I downloaded after I also downloaded an mpeg4 codec. I am somewhat under-educated in all this codec business. My basic question is, is there a way to get my program to now play these files (perhaps some new codec or some libraries I would need to install and somehow reference from my program)? Or, will I have to just find a converter to convert the MP4 files to something QTJava can already read?

Thanks in advance for any insight.

- Tom Polk

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden

References: 
 >DRM and Video in QuickTime (From: James Brannan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.