Instead of setting the Movieplayer position in this fasion, do this
instead.... ditch the
Dim m as movie
and replace it with
Dim m as editableMovie
It doesn't matter if you do not plan to edit the movie. It is OK to
use EditableMovie for playback. Then, f.openasEditableMovie to get
your EditableMovie and look at the duration property. What does that
give you? Can you set the MoviePlayer to that position and do things
line up?
-Erick
Been there; done that. As an EditableMovie, the Duration is 3195
seconds, which is 53:15. The TimeScale is 600, the TimeDuration is
1,917,006, and that also yields 3195 seconds. In all respects, the
RB player thinks the length is 53:15, and it actually takes that long
to play.
However, every other program (iTunes, QT Player, Sound Studio) says
it's 53:00. Addey's routine gives 53:15 (but that includes 15
seconds of silence at the end) -- another unsolved mystery.
So, the RB MoviePlayer is playing at a slightly slower rate. In
effect, it's adding more samples -- for every 212 samples (at 44,100
Hz), it's adding one phantom sample (yielding 43,892 Hz).
I just need a way to compute the error. So far, I've had to do it
empirically or using prior knowledge of the correct length (53:00).
Instead, I need to fetch one parameter using the Movie.Handle and OS
functions that will give me the correct length. Then, I can compute
the error.
Can I claim this as a bug: these particular mp3 files play longer in
RB than elsewhere?
Jeff
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>