Fix MATLAB error “only uncompressed AVI movies can be read on UNIX”

MATLAB on Linux claims to only playback uncompressed AVI files on “UNIX” systems. However, MATLAB on Linux can’t even play all uncompressed AVI filed depending on your particular system configuration with gstreamer. The solution thus far with MATLAB seems to be using Motion JPEG in AVI videos.

Workaround

apt install ffmpeg

ffmpeg -i input.avi -vcodec mjpeg -qscale 1 out.avi

Example

  1. Download test video
  2. convert video to Motion JPEG AVI
    ffmpeg -i input.avi -vcodec mjpeg -t 1 -qscale 11 out.avi
    

The sample AVI file is used under GNU LGPL.

Leave a Comment