Cannot find codec 'h264' in libavcodec...

I spent a lot of time reading and trying to figure out how to get all the codecs from pacman and ended up following this guide;

http://opensuse-guide.org/codecs.php

Which told me to do this:

  1) Add the needed repositories:
zypper addrepo -f http://packman.inode.at/suse/openSUSE_Leap_42.2/ packman
zypper addrepo -f http://opensuse-guide.org/repo/openSUSE_Leap_42.2/ dvd

2) Then install the necessary packages:
zypper install k3b-codecs ffmpeg lame gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-plugins-ugly-orig-addon gstreamer-plugins-libav libdvdcss2

You will be asked if you want to allow vendor change for some packages - allow it.

3) Make sure all your multimedia packages are coming from the Packman Repository:
zypper dup --from http://packman.inode.at/suse/openSUSE_Leap_42.2/

And when I try to play a file.mp4 I get the following:


Too many key file descriptors, cannot register file descriptor 6.
==========================================================================
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' 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.

Any help is appreciated.
Thanks

Did you do this in particular?

(although “zypper dup --from packman” would do the same and would be slightly easier to type… :wink: )

And it might also help if you would tell what application you try to use to play that mp4 file (and from where you installed it)…

I am using mplayer on the command line to play the files and it was installed from pacman.

This actually fixed everything.

The command from the guide errored out.

:Thanks

That works. Many thanks!