From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,78897533210d03d3,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-13 03:10:36 PST Path: bga.com!news.sprintlink.net!news.onramp.net!convex!cs.utexas.edu!howland.reston.ans.net!EU.net!Germany.EU.net!netmbx.de!zrz.TU-Berlin.DE!cs.tu-berlin.de!zib-berlin.de!fauern!rrze.uni-erlangen.de!faui62!dktannha From: dktannha@faui62.informatik.uni-erlangen.de (Dirk Tannhaeuser (CIP 88)) Newsgroups: comp.unix.osf.osf1 Subject: synchronizing sound/pictures in AVI files Date: Wed, 13 Jul 1994 09:53:38 GMT Organization: Regionales Rechenzentrum Erlangen, Germany Message-ID: <300dj2Eqos@uni-erlangen.de> NNTP-Posting-Host: faui62.informatik.uni-erlangen.de Keywords: AVI multimedia video J300 X-Newsreader: NN version 6.5.0 #1 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