* @return result mov with aduio added at start
*/
public static Movie addAudioTrack(Movie mov, Track audio, float start,
float duration)
{
Movie newMov = null;
try
{
// make a copy of mov
newMov = cloneMovie(mov);
Track newAudio;
newAudio = newMov.addEmptyTrack(audio, new DataRef(new QTHandle()));
// use addEmptyTrack to make sure it has Sound Media characteristics
audio.insertSegment(newAudio, 0, (int) (duration
* audio.getMovie().getTimeScale()),
(int) (start * newMov.getTimeScale()));
} // try
catch (QTException qte)
{
qte.printStackTrace();
} // catch (QTException)