Symptoms¶
Playback of captured videos of your test executions is failing in the Squish IDE on Linux with the following error message:
com.sun.media.jfxmedia.MediaException: Could not create player!
Solution¶
To resolve this issue, make sure that these four libraries are present on your Linux system:
- libavcodec.so
- libavformat.so
- libavutil.so
- libswresample.so
You can verify if these libraries are present with ldconfig, like in the following example:
ldconfig -p | grep -E "lib(avcodec|avformat|avutil|swresample).so" | sort
The following packages provide these libraries.
Linux Distribution | Package |
---|---|
Alma Linux CentOS Red Hat Enterprise Linux (RHEL) Rocky Linux | compat-ffmpeg4 Provided by RPMFusion |
Arch Linux | ffmpeg-compat-59 Provided by Arch Linux User Repositories (AUR) |
Debian Linux | ffmpeg or libavcodec58 libavformat58 libavutil56 libswresample3 |
Fedora Linux | compat-ffmpeg4 Provided by RPMFusion |
Ubuntu Linux | ffmpeg or libavcodec59 libavformat59 libavutil57 libswresample4 |