Hello,
I'm trying to create a movie using the fromDataFork() method as
follows:
public static Movie createMovie( File file ) throws QTException
{
QTFile path = new QTFile( file );
Movie m = null;
OpenFile of = OpenFile.asRead( path );
m = Movie.fromDataFork( of, 2, 0, null );
m.setActive( true );
}
The first 2 bytes are left on purpose because it carries data that is
not related to the movie. The problem I'm having is that the movie is
recognized as the QT movie however it plays with the blank screen. The
screen is adjusted according to the aspect ratio but there is no
picture. If the two bytes worth of data is removed from the mov
file and
the above code is modified to indicate a zero offset as:
public static Movie createMovie( File file ) throws QTException {
QTFile path = new QTFile( file );
Movie m = null;
OpenFile of = OpenFile.asRead( path );
m = Movie.fromDataFork( of, 0, 0, null );
m.setActive( true );
}
The movie plays fine with the correct aspect ratio and the screen
is not
blank. I don't know what is wrong with the usage. Is there anything
that
can be done to adjust the offset? Your help is greatly appreciated.
-Venkatesh
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40are-f.com
This email sent to email@hidden