vlc giving error

i just installed vlc media player.
if i play video file then only the audio is coming out from that file but it doesn’t giving the video.
it gives the following error:-

No suitable decoder module:
VLC does not support the audio or video format “h264”. Unfortunately there is no way for you to fix this.

Where did you install it from? (and how?)

Please post your repo list:

zypper lr -d

And check that the package “vlc-codecs” is installed.

linux-fejy:~ # zypper lr -d

| Alias | Name | Enabled | Refresh | Priority | Type | URI | Service

—±--------------------------±-----------------------------------±--------±--------±---------±-------±----------------------------------------------------------------±-------
1 | SuSE | SuSE | Yes | Yes | 99 | rpm-md | http://download.videolan.org/SuSE/13.1/ |
2 | ftp.gwdg.de-suse | Packman Repository | No | Yes | 99 | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/ |
3 | ftp.gwdg.de-suse_1 | Packman Repository | Yes | Yes | 99 | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/ |
4 | mono-stable | mono-stable | Yes | No | 99 | rpm-md | http://download.mono-project.com/download-stable/openSUSE_11.4 |
5 | repo-debug | openSUSE-13.1-Debug | No | Yes | 99 | NONE | http://download.opensuse.org/debug/distribution/13.1/repo/oss/ |
6 | repo-debug-update | openSUSE-13.1-Update-Debug | No | Yes | 99 | NONE | http://download.opensuse.org/debug/update/13.1/ |
7 | repo-debug-update-non-oss | openSUSE-13.1-Update-Debug-Non-Oss | No | Yes | 99 | NONE | http://download.opensuse.org/debug/update/13.1-non-oss/ |
8 | repo-non-oss | openSUSE-13.1-Non-Oss | Yes | Yes | 99 | yast2 | http://download.opensuse.org/distribution/13.1/repo/non-oss/ |
9 | repo-oss | openSUSE-13.1-Oss | Yes | Yes | 99 | yast2 | http://download.opensuse.org/distribution/13.1/repo/oss/ |
10 | repo-source | openSUSE-13.1-Source | No | Yes | 99 | NONE | http://download.opensuse.org/source/distribution/13.1/repo/oss/ |
11 | repo-update | openSUSE-13.1-Update | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/13.1/ |
12 | repo-update-non-oss | openSUSE-13.1-Update-Non-Oss | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/13.1-non-oss/ |
linux-fejy:~ #

Please use code tags for machine output. It keeps things from getting formatted bad. It is the # in the tool bar here.

You have 2 packman repos. best to remove the first one.

  1. you should first be sure you always install multimedia stuff from packman the openSUSE stuff does not support non-open formats
  2. Read the multimedia sticky here in the forms

In addition to what gogalthorp wrote, you have the VLC and Packman repos added, and that causes your problem.
Those two repos are not compatible, as they contain different (incompatible) versions of the same multimedia libraries.

Remove one of them and switch all packages to the other one.

I would recommend to keep Packman, since it contains more than just VLC.
So do this:

sudo zypper rr 1 2
sudo zypper dup --from 1
sudo zypper in vlc-codecs

This removes the repos #1 and #2, and then switches all packages to repo #3 (which would be #1 then).
To be sure, it also installs the package “vlc-codecs” in the 3rd step. If you already have it installed, you will get a warning about that fact, just ignore that then.

And your repo (atm) #4 is for openSUSE 11.4. You should remove that as well, it’s very outdated anyway (openSUSE 13.1 ships with mono 3.0.6 whereas that repo has only 2.10.6).