Mailing Lists: Apple Mailing Lists

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

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



Hi,

Thomas E Polk wrote:
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.

I think you should first try to open the same clips in QuickTime Player and see what happens. This test will be quite telling.


cheers,
andrea
_______________________________________________
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: 
 >How do I view MPEG-4 files in my QTJ Java app? (From: Thomas E Polk <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.