MATLAB "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. A workaround for MATLAB codecs is using Motion JPEG in AVI videos.

Workaround

apt install ffmpeg

ffmpeg -i input.avi -c:v mjpeg -qscale 1 out.avi

Example

Download test video and convert video to Motion JPEG AVI

ffmpeg -i input.avi -c:v mjpeg -t 1 -qscale 11 out.avi

The sample AVI file is used under GNU LGPL.