ch.claudio.qtcut
Class DestinationMovieInfo

java.lang.Object
  extended by ch.claudio.qtcut.DestinationMovieInfo

public class DestinationMovieInfo
extends java.lang.Object

Author:
claudio

Constructor Summary
DestinationMovieInfo(java.lang.String file, SourceMovieInfo[] movies, int soundIndex, int soundOffset)
          Constructor
 
Method Summary
 void close()
           
 void cut(int movieIndex, java.lang.String start, java.lang.String end, int startOffset, int durationOff)
          Append a cut of a movie into this destination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DestinationMovieInfo

public DestinationMovieInfo(java.lang.String file,
                            SourceMovieInfo[] movies,
                            int soundIndex,
                            int soundOffset)
Constructor

Parameters:
file - name of the destination file
movies - array with all movie sources
soundIndex - into array designating the sourc source
soundOffset - start of the sound (in frames ?)
Method Detail

cut

public void cut(int movieIndex,
                java.lang.String start,
                java.lang.String end,
                int startOffset,
                int durationOff)
Append a cut of a movie into this destination.

Parameters:
movieIndex - index of the source movie
start - start in the source
end - stop in the source
startOffset - shift the start by this many frames towards the beginning of the source movie.

This can be used for fine tuning in preview mode.

If the sound belonging to the cut in movie in the right channel starts to early, then use a positive number to correct it. Otherwise if the sound in the right channel is lagging behind use a negative number.

durationOff - lengthen the cut by this much frames.

This can be used togeter with the startOffset and durationOff of the following cut to move the cut point.

To move the cut from A to B to a later point add an amount to durationOff of movie A and decrease both startOffset and duration of movie B by the same ammount.

To move the cut from A to B to an earlier point subtract an amount to durationOff of movie A and increase both startOffset and duration of movie B by the same ammount.


close

public void close()