[XviD-devel] Transcode module

peter ross xvid-devel@xvid.org
Wed, 02 Oct 2002 08:32:14 +1000


>P.S. Would it be possible to write a import_xvidraw.c module that
>reads finished output from export_xvidraw.c module and put that
>e.g. into an AVI file?

iam no transcode wiz, but, the problem with raw files is:

a) the width/height dimensions must be either specified on the cmd
   line, or you need to modifiy xvid to auto detect width/height.

b) there is no framing, and therefore you have to be careful about
   reading the file, such that the there is no buffer underflow.
   the solutions to this are:
   * naive: read the whole file into memory
   * always read in width*height*3/2 bytes (an individual mpeg-4 frame
     should not be larger than this, "but it could be").
   * modify xvid to support some kind of buffer underflow callback.

api3 does not currently address decoding buffer underflows.

-- pete


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com