This quick tip helps you to fix the unable to play video file error in GNOME desktop.
GNOME desktop environment comes with default video player – Videos. When you first install Linux distribution e.g. vanilla Ubuntu with GNOME desktop, you might have seen the Videos application is unable to play most of the videos mostly mp4 or mkv formats.
This is due to lack of proprietary codecs installed by default in your Linux OS. However, while installing the OS you can always get it installed, but if you have not done already, you can do it via the below steps.
How to fix Unable to play video file error
- You need to install ubuntu-restricted-extras to make some of the important codecs available for GNOME Videos. This package contains essential media codecs and fonts and the package is not included by default due to copyright reasons. To install ubuntu-restricted-extras, open terminal and run below commands:
sudo apt-get install ubuntu-restricted-extras
- The installer would ask you to agree on certain license terms, make sure to accept for a successful installation.
- After installing, try playing the video file which gave you the error.
Troubleshooting
- If installing ubuntu-restricted-extras do not work, then try installing some more packages by running below command from the terminal.
sudo apt-get install libdvdnav4 libdvdread4 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg
- These are some of the packages which help to play non-free media formats including DVD, MP3, QuickTime, and Windows Media formats.
- If all fails, try restarting your system.
Let us know if this solves your problem related to video play in GNOME Videos in Ubuntu or other Linux distributions.