H.264 on openSUSE

I’ve installed openSUSE Tumbleweed.

For some licensing reasons it doesn’t contain the necessary codecs for playing H.264 files. Following neither the official, nor the unofficial documentation solved this problem for me, so for future reference, here are the exact steps that helped for me:

    1. Adding the Packman repositories:
      sudo zypper ar -f -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ packman
    2. Installing mplayer and all its dependencies:
      sudo zypper install mplayer

But this is still not enough, there are still errors like


==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.64.101 (external)
Cannot find codec 'h264' in libavcodec...
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Cannot find codec 'h264' in libavcodec...
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Cannot find codec 'h264_crystalhd' in libavcodec...
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Cannot find codec 'h264_vda' in libavcodec...
VDecoder init failed :(
Requested video codec family [coreavcwindows] (vfm=dshow) not available.
Enable it at compilation.
Cannot find codec matching selected -vo and video format 0x34363248.
==========================================================================

  1. Doing a full repository vendor change, whatever that is:
    sudo zypper dup --from packman

mplayer is able to play all kind of files now on my system. For a bit easier control I’m using gnome-mplayer:
sudo zypper install gnome-mplayer

Leave a Reply

Your email address will not be published. Required fields are marked *