Results 1 to 5 of 5

Thread: Cannot find codec 'h264' in libavcodec...

  1. #1

    Default 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:

    Code:
      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:

    Code:
    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

  2. #2

    Default Re: Cannot find codec 'h264' in libavcodec...

    Did you do this in particular?
    Quote Originally Posted by Widgeteye View Post
    Code:
    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/
    (although "zypper dup --from packman" would do the same and would be slightly easier to type... )

    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)...
    Last edited by wolfi323; 18-Feb-2017 at 10:57.

  3. #3

    Default Re: Cannot find codec 'h264' in libavcodec...

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

  4. #4

    Default Re: Cannot find codec 'h264' in libavcodec...

    Quote Originally Posted by wolfi323 View Post
    Did you do this in particular?
    (although "zypper dup --from packman" would do the same and would be slightly easier to type... )
    This actually fixed everything.

    The command from the guide errored out.

    :Thanks

  5. #5

    Default Re: Cannot find codec 'h264' in libavcodec...

    Quote Originally Posted by Widgeteye View Post
    This actually fixed everything.

    The command from the guide errored out.

    :Thanks
    That works. Many thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •