realbasic-nug
[Top] [All Lists]

Re: EditableMovie - Create movie from audio file

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: EditableMovie - Create movie from audio file
From: "E. Tejkowski" <lists at sonicamigos dot com>
Date: Tue, 31 Jul 2007 03:20:32 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <FFD76BAE-A962-4FF3-ACD1-AD515324F710 at wam dot net dot au> <CAD608C0-B0F4-4480-A280-DF7A7CAA634F at drivetimeart dot com> <09D01226-3442-4708-A723-4F8A41AD7F74 at wam dot net dot au>
I think you are mixing up the length of the audio track with length  
of the video track. Suppose that an audio track has a length of 10  
sec. and a videotrack in the same movie has a length of zero.  You  
are going to run into problems if you say "insert video at the 2.5  
sec. mark", basing this value on how long the audio track is. There  
must be data in the video track for you to insert. Have you tried  
append instead? Try appending your image to the video track first,  
and then scale that newly appended video to the length you desire.  
Repeat for the remaining images.

Erick

On Jul 31, 2007, at 2:03 AM, Jeff Ayling wrote:

> Thanks Greg - yeah I see what you mean.
>
> This section which adds the video does use srctrack.Duration which is
> the duration of the audio file
>
>
>>>                    desttrackv.InsertVideoTrackSegment srctrackv,
>>> 0.0,_
>>>                    srctrack.Duration, Max(0,m.Duration-2), true,
>>> false
>
> ...any thoughts of where I should be using the scalemoviesegment here
> to get the pic to stretch for the duration of the audio file?
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>