| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
This is a follow-up to my initial mail. For further
scrutiny this is the code in question.
It works fine with QT movs but not with mpg
neither as source nor as destination. It would be cool to at least
have an mpg as input file, mov as output is ok.
// one piece of the source
movie is extracted and inserted into the destination
copiedMovie
public void doCopy(String
srcFile, int start, int duration) throws QTException
{
copiedMovie = new Movie(); OpenMovieFile omf = OpenMovieFile.asRead (new QTFile(new File(path + srcFile) ) ); movie = Movie.fromFile (omf); movie.insertSegment (copiedMovie, start, //startTime duration, //duration in ms 0); //startTime in other movie } // dest copiedMovie is
saved
public void doFlatten(String
dstFile) throws QTException{
file = new QTFile(new File(path + dstFile) ); copiedMovie.flatten(StdQTConstants.flattenAddMovieToDataFork | StdQTConstants.flattenForceMovieResourceBeforeMovieData, file, StdQTConstants.kMoviePlayer, IOConstants.smSystemScript, StdQTConstants.createMovieFileDeleteCurFile, StdQTConstants.movieInDataForkResID, null ); } Hope somebody can help me out
Thomas
|
_______________________________________________ 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: | |
| >Re: generate mov/mpg from mpg (From: Alex Shaykevich <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.