Matplotlib can write platform-independent compressed video sequences.
How to write lossless AVI from matplotlib cross-platform.
Easy install FFmpeg for processing/converting audio on Windows.
Instead of compiler-dependent and OS-dependent proprietary, fragile sound playback from Fortran, consider system call to external player–such as ffplay.
How to install PyGame for easy sound playback and live keyboard callbacks in Python.
MATLAB on Linux claims to only playback uncompressed AVI files on “UNIX”, and here’s how to workaround Matlab codec issues.