Playback of captured videos in Squish IDE fails on Linux

Last edited on

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:

  1. libavcodec.so
  2. libavformat.so
  3. libavutil.so
  4. 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 DistributionPackage
Alma Linux
CentOS
Red Hat Enterprise Linux (RHEL)
Rocky Linux
compat-ffmpeg4
Provided by RPMFusion
Arch Linuxffmpeg-compat-59
Provided by Arch Linux User Repositories (AUR)
Debian Linuxffmpeg
or
libavcodec58
libavformat58
libavutil56
libswresample3
Fedora Linuxcompat-ffmpeg4
Provided by RPMFusion
Ubuntu Linuxffmpeg
or
libavcodec59
libavformat59
libavutil57
libswresample4