Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: dktannha@faui62.informatik.uni-erlangen.de (Dirk Tannhaeuser (CIP 88))
Subject: synchronizing sound/pictures in AVI files
Date: Wed, 13 Jul 1994 09:53:38 GMT	[thread overview]
Message-ID: <300dj2Eqos@uni-erlangen.de> (raw)

I'm programming an AVI-Player on a DEC-Alpha equipped with a J300 multimedia
board.
My problem is, that the frame rate coded into the sample AVI files
(AVIStreamHeader.dwRate/Scale) that came with the board seems to be the
desired frame rate, not the actually acchieved one, because the playing time
of the sound is longer than that of the video at that frame rate. I think this
is due to frames being lost during recording because of system overload. The
sample AVI player/recorder delivered with the board does the same thing. So my
question is: is it common practice to code the desired frame rate into the AVI
file instead of the real one? I worked around the problem by synchronizing the
pictures to the sound, but this is an average synchronisation for the whole
file, it becomes inexact if the lost frames are not distributed equally along
the file. Are there better ways of synchronizing sound and pictures? When I
will program an AVI recorder, will I have to code the desired frame rate or
the real one into the AVI file?
BTW, I couldn't test AVI files from ftp archives, because my hardware can only
play Motion-JPEG encoded files and I haven't found any yet. Does anyone know
where I can find that kind of AVI files?

Thanks in advance, Dirk


Dirk Tannhaeuser
email: dktannha@faui62.informatik.uni-erlangen.de


                 reply	other threads:[~1994-07-13  9:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox