Tree [ab8864] default /

File Date Author Commit
src 2009-02-11 adb014 adb014 [4c3f11] Include cstdlib in build (For Stephen Montgomer...
COPYING 2008-03-28 xavier98 xavier98 [dc92b3] octave-forgify video functions found at http://...
DESCRIPTION 2009-05-04 hauberg hauberg [ab8864] Update version number
INDEX 2008-04-11 adb014 adb014 [030462] Add category inI INDEX file
Makefile 2008-03-28 xavier98 xavier98 [dc92b3] octave-forgify video functions found at http://...
README 2008-09-27 xavier98 xavier98 [fd7623] Bring video package up to date with latest ffmp...

Read Me


A wrapper for ffmpeg's libavformat and libavcodec, allowing Octave to read
and write fixed-framerate AVI (Audio/Video Interleaved) files.
Stefan van der Walt <>

Roman Stanchak
Xavier Delacour

This package _should_ always work with the latest version of ffmpeg. It is
known to at least work with ffmpeg SVN revision 15410.

You can download ffmpeg from

Note that you'll need to configure it with --enable-swscale and --enable-gpl,
to enable the software scaler library (used for yuv/rgb conversions).

$ ./configure
$ make

The commands `avifile' and `addframe' should then be available in Octave.

Usage Notes
- If ffmpeg complains about "too many threads", increase the frame height
  and width.  For some obscure reason, they do a comparison between the number
  of threads and the frame dimensions.
- Remember to `clear' a movie after adding the last frame.  This gives
  `avifile' a chance to write some headers and close the file, i.e.
  octave:1> x = avifile("test.avi", "msmpeg4v2");
  octave:2> addframe(x, zeros(100,100));
  octave:3> clear x

- If `aviinfo' crashes, you might have run into a libstdc++ memory allocation
  bug.  Work around the problem by executing
  $ export GLIBCXX_FORCE_NEW=1
  before running Octave.

See the file `COPYING'.