I have a problem flattening a movie. My goal is to flatten a series
of merged movies into a movie that contains a single mjpeg track and
a single audio track. The flattened movie will then be passed to
ffmpeg that creates a flash video.
My problem is that the flattening of the merged movie creates a new
movie that contains 2 mjpeg tracks and a single audio track.
All the movies that are merged contain a single mjpeg (dimension
320x240) and audio track. The movies are merged using the following
method...
public static Movie merge(Movie[] movies) throws QTException {
QTSessionCheck.check();
Movie mergedMovie = new Movie();
for (Movie movie : movies) {
fitInto(movie, maxWidth, maxHeight);
movie.insertSegment(mergedMovie, 0, movie.getDuration(),
mergedMovie.getDuration());
}
return mergedMovie;
}
...and then the merged movie is flattened using the following method....
Movie merged = QTMovieMerger.merge(movies);
QTFile flatFile = new QTFile(new File(outputPath,
ticket + ".mov"));
Anyone have any idea why this produces two mjpeg tracks in the
flattened movie? The first and last movies in the movie array become
one track,
Thanks in advance, Erik Hedenström
P.S. I agree with Shay Telfer, if you haven't bought Chris Adamson's
"QuickTime for Java: A Developer's Notebook" go get it immediately.
It saved me a ton of time, and kept me from posting silly questions
(hopefully the one above isn't) to this forum. _______________________________________________
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