VLC cannot decode (H264 - MPEG-4 AVC (part 10)) even after installing the official h256 codecs

After running the sudo zypper install gstreamer-1.20-plugin-openh264 libopenh264-7 mozilla-openh264 command in my system VLC still is unable to decode H264 - MPEG-4 AVC (part 10).

repositories:

Repository priorities in effect:                                                                     (See 'zypper lr -P' for details)
      50 (raised priority)  :  1 repository
      99 (default priority) : 10 repositories

#  | Alias                       | Name                                                               | Enabled | GPG Check | Refresh
---+-----------------------------+--------------------------------------------------------------------+---------+-----------+--------
 1 | amdgpu                      | amdgpu                                                             | Yes     | (r ) Yes  | No
 2 | home_interstar001_Centreon  | Centreon 18.10 Monitoring System for SLES (SLE_15_SP3)             | Yes     | (r ) Yes  | No
 3 | openSUSE-Leap-15.5-1        | openSUSE-Leap-15.5-1                                               | Yes     | (r ) Yes  | Yes
 4 | repo-backports-debug-update | Update repository with updates for openSUSE Leap debuginfo packa-> | No      | ----      | ----
 5 | repo-backports-update       | Update repository of openSUSE Backports                            | Yes     | (r ) Yes  | Yes
 6 | repo-debug                  | Debug Repository                                                   | No      | ----      | ----
 7 | repo-debug-non-oss          | Debug Repository (Non-OSS)                                         | No      | ----      | ----
 8 | repo-debug-update           | Update Repository (Debug)                                          | No      | ----      | ----
 9 | repo-debug-update-non-oss   | Update Repository (Debug, Non-OSS)                                 | No      | ----      | ----
10 | repo-non-oss                | Non-OSS Repository                                                 | Yes     | (r ) Yes  | Yes
11 | repo-openh264               | Open H.264 Codec (openSUSE Leap)                                   | Yes     | (r ) Yes  | Yes
12 | repo-oss                    | Haupt-Repository                                                   | Yes     | (r ) Yes  | Yes
13 | repo-sle-debug-update       | Update repository with debuginfo for updates from SUSE Linux Ent-> | No      | ----      | ----
14 | repo-sle-update             | Update repository with updates from SUSE Linux Enterprise 15       | Yes     | (r ) Yes  | Yes
15 | repo-source                 | Source Repository                                                  | No      | ----      | ----
16 | repo-update                 | Hauptaktualisierungs-Repository                                    | Yes     | (r ) Yes  | Yes
17 | repo-update-non-oss         | Aktualisierungs-Repository (Nicht-Open-Source-Software)            | Yes     | (r ) Yes  | Yes
18 | rocm                        | rocm                                                               | Yes     | (r ) Yes  | No

The open h264 plugins are used by web browsers. VLC requires ffmpeg, which is part of the vlc-codecs package from the packman repo, or from vlc’s own repository.

I installed packman and now double install

 > LANG=C sudo zypper in -f vlc-codecs
Loading repository data...
Reading installed packages...
Forcing installation of 'vlc-codecs-3.0.18-150500.2.pm.5.x86_64' from repository 'Packman Repository'.
Resolving package dependencies...

The following package is going to be reinstalled:
  vlc-codecs

1 package to reinstall.
Overall download size: 91.6 KiB. Already cached: 0 B. No additional space will be used or freed after the operation.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving: vlc-codecs-3.0.18-150500.2.pm.5.x86_64 (Packman Repository)                                          (1/1),  91.6 KiB    
Retrieving: vlc-codecs-3.0.18-150500.2.pm.5.x86_64.rpm ...........................................................[done (46.8 KiB/s)]

Checking for file conflicts: ..................................................................................................[done]
(1/1) Installing: vlc-codecs-3.0.18-150500.2.pm.5.x86_64 ......................................................................[done]

And still gives me the same error

My new repos:

Repository priorities in effect:                                                                     (See 'zypper lr -P' for details)
      50 (raised priority)  :  1 repository
      99 (default priority) : 11 repositories

#  | Alias                          | Name                                                            | Enabled | GPG Check | Refresh
---+--------------------------------+-----------------------------------------------------------------+---------+-----------+--------
 1 | amdgpu                         | amdgpu                                                          | Yes     | (r ) Yes  | No
 2 | ftp.gwdg.de-openSUSE_Leap_15.5 | Packman Repository                                              | Yes     | (r ) Yes  | Yes
 3 | home_interstar001_Centreon     | Centreon 18.10 Monitoring System for SLES (SLE_15_SP3)          | Yes     | (r ) Yes  | No
 4 | openSUSE-Leap-15.5-1           | openSUSE-Leap-15.5-1                                            | Yes     | (r ) Yes  | Yes
 5 | repo-backports-debug-update    | Update repository with updates for openSUSE Leap debuginfo pa-> | No      | ----      | ----
 6 | repo-backports-update          | Update repository of openSUSE Backports                         | Yes     | (r ) Yes  | Yes
 7 | repo-debug                     | Debug Repository                                                | No      | ----      | ----
 8 | repo-debug-non-oss             | Debug Repository (Non-OSS)                                      | No      | ----      | ----
 9 | repo-debug-update              | Update Repository (Debug)                                       | No      | ----      | ----
10 | repo-debug-update-non-oss      | Update Repository (Debug, Non-OSS)                              | No      | ----      | ----
11 | repo-non-oss                   | Non-OSS Repository                                              | Yes     | (r ) Yes  | Yes
12 | repo-openh264                  | Open H.264 Codec (openSUSE Leap)                                | Yes     | (r ) Yes  | Yes
13 | repo-oss                       | Haupt-Repository                                                | Yes     | (r ) Yes  | Yes
14 | repo-sle-debug-update          | Update repository with debuginfo for updates from SUSE Linux -> | No      | ----      | ----
15 | repo-sle-update                | Update repository with updates from SUSE Linux Enterprise 15    | Yes     | (r ) Yes  | Yes
16 | repo-source                    | Source Repository                                               | No      | ----      | ----
17 | repo-update                    | Hauptaktualisierungs-Repository                                 | Yes     | (r ) Yes  | Yes
18 | repo-update-non-oss            | Aktualisierungs-Repository (Nicht-Open-Source-Software)         | Yes     | (r ) Yes  | Yes
19 | rocm                           | rocm                                                            | Yes     | (r ) Yes  | No

This repository list is useless. It does not show the URLs of the repo sites (it only shows your local Names and Aliases). You do not show the command together with the output. That is something we like very much and it is only one more line at the beginning of your copy/passte. So please use

zypper lr -d

Then you say

that maybe a language problem, but one does not “install” a repository, one does add it to the used repositories. After that you still have to install things from it. In the case of Packman the first thing to do is to switch all packages that are from OSS and also are in Packman, to Packman:

zypper dup --from Packman

Tested vlc on host leap155, a sibling of infamous host erlangen:

  1. Installed package
 leap155:~ # zypper -n install yt-dlp
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 9 packages are going to be upgraded:
  libavcodec58_134 libavdevice58_13 libavfilter7_110 libavformat58_76 libavresample4_0 libavutil56_70 libpostproc55_9 libswresample3_9 libswscale5_9

The following 4 recommended packages were automatically selected:
  python311 python311-curses python311-dbm python311-pip

The following 11 NEW packages are going to be installed:
  ffmpeg-4 libdav1d6 libpython3_11-1_0 python311 python311-base python311-curses python311-dbm python311-pip python311-setuptools yt-dlp yt-dlp-bash-completion

9 packages to upgrade, 11 new.
Overall download size: 29.6 MiB. Already cached: 0 B. After the operation, additional 77.1 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y

Retrieving: yt-dlp-bash-completion-2023.01.06-bp155.2.4.noarch (openSUSE-Leap-15.5)                                                                                                                                                                      (1/20),  70.4 KiB    
Retrieving: yt-dlp-bash-completion-2023.01.06-bp155.2.4.noarch.rpm ........................................................................................................................................................................................[done (10.7 KiB/s)]
Retrieving: libavutil56_70-4.4.4-150500.4.pm.1.x86_64 (packman)                                                                                                                                                                                          (2/20), 278.4 KiB    
Retrieving: libavutil56_70-4.4.4-150500.4.pm.1.x86_64.rpm .................................................................................................................................................................................................[done (38.6 KiB/s)]
Retrieving: libswscale5_9-4.4.4-150500.4.pm.1.x86_64 (packman)                                                                                                                                                                                           (3/20), 206.3 KiB    
Retrieving: libswscale5_9-4.4.4-150500.4.pm.1.x86_64.rpm ...............................................................................................................................................................................................................[done]
Retrieving: libpostproc55_9-4.4.4-150500.4.pm.1.x86_64 (packman)                                                                                                                                                                                         (4/20), 103.5 KiB    
Retrieving: libpostproc55_9-4.4.4-150500.4.pm.1.x86_64.rpm .............................................................................................................................................................................................................[done]
Retrieving: libavresample4_0-4.4.4-150500.4.pm.1.x86_64 (packman)                                                                                                                                                                                        (5/20), 108.8 KiB    
Retrieving: libavresample4_0-4.4.4-150500.4.pm.1.x86_64.rpm ............................................................................................................................................................................................................[done]
Retrieving: libswresample3_9-4.4.4-150500.4.pm.1.x86_64 (packman)                                                                                                                                                                                        (6/20), 109.6 KiB    
Retrieving: libswresample3_9-4.4.4-150500.4.pm.1.x86_64.rpm ............................................................................................................................................................................................................[done]
Retrieving: libdav1d6-1.0.0-150500.3.3.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)                                                                                                                                           (7/20), 503.5 KiB    
Retrieving: libdav1d6-1.0.0-150500.3.3.1.x86_64.rpm ........................................................................................................................................................................................................[done (3.7 MiB/s)]
Retrieving: python311-base-3.11.3-150400.9.12.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)                                                                                                                                    (8/20),  10.6 MiB    
Retrieving: python311-base-3.11.3-150400.9.12.1.x86_64.rpm .................................................................................................................................................................................................[done (6.4 MiB/s)]
Retrieving: libpython3_11-1_0-3.11.3-150400.9.12.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)                                                                                                                                 (9/20),   1.7 MiB    
Retrieving: libpython3_11-1_0-3.11.3-150400.9.12.1.x86_64.rpm ..............................................................................................................................................................................................[done (3.9 MiB/s)]
Retrieving: libavcodec58_134-4.4.4-150500.4.pm.1.x86_64 (packman)                                                                                                                                                                                       (10/20),   4.4 MiB    
Retrieving: libavcodec58_134-4.4.4-150500.4.pm.1.x86_64.rpm ................................................................................................................................................................................................[done (4.0 MiB/s)]
Retrieving: libavformat58_76-4.4.4-150500.4.pm.1.x86_64 (packman)                                                                                                                                                                                       (11/20), 982.6 KiB    
Retrieving: libavformat58_76-4.4.4-150500.4.pm.1.x86_64.rpm ..............................................................................................................................................................................................[done (489.3 KiB/s)]
Retrieving: libavfilter7_110-4.4.4-150500.4.pm.1.x86_64 (packman)                                                                                                                                                                                       (12/20),   1.2 MiB    
Retrieving: libavfilter7_110-4.4.4-150500.4.pm.1.x86_64.rpm ................................................................................................................................................................................................[done (1.1 MiB/s)]
Retrieving: libavdevice58_13-4.4.4-150500.4.pm.1.x86_64 (packman)                                                                                                                                                                                       (13/20), 118.7 KiB    
Retrieving: libavdevice58_13-4.4.4-150500.4.pm.1.x86_64.rpm ............................................................................................................................................................................................................[done]
Retrieving: ffmpeg-4-4.4.4-150500.4.pm.1.x86_64 (packman)                                                                                                                                                                                               (14/20),   1.7 MiB    
Retrieving: ffmpeg-4-4.4.4-150500.4.pm.1.x86_64.rpm ........................................................................................................................................................................................................[done (1.1 MiB/s)]
Retrieving: python311-setuptools-67.7.2-150400.3.6.1.noarch (openSUSE-Leap-15.5)                                                                                                                                                                        (15/20),   1.4 MiB    
Retrieving: python311-setuptools-67.7.2-150400.3.6.1.noarch.rpm ............................................................................................................................................................................................[done (3.9 MiB/s)]
Retrieving: python311-pip-22.3.1-150400.17.3.1.noarch (openSUSE-Leap-15.5)                                                                                                                                                                              (16/20),   2.9 MiB    
Retrieving: python311-pip-22.3.1-150400.17.3.1.noarch.rpm ..................................................................................................................................................................................................[done (4.8 MiB/s)]
Retrieving: python311-3.11.3-150400.9.12.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)                                                                                                                                        (17/20), 208.6 KiB    
Retrieving: python311-3.11.3-150400.9.12.1.x86_64.rpm ......................................................................................................................................................................................................[done (1.7 MiB/s)]
Retrieving: python311-curses-3.11.3-150400.9.12.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)                                                                                                                                 (18/20), 194.3 KiB    
Retrieving: python311-curses-3.11.3-150400.9.12.1.x86_64.rpm ...............................................................................................................................................................................................[done (2.8 KiB/s)]
Retrieving: python311-dbm-3.11.3-150400.9.12.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)                                                                                                                                    (19/20), 165.7 KiB    
Retrieving: python311-dbm-3.11.3-150400.9.12.1.x86_64.rpm ..................................................................................................................................................................................................[done (2.7 KiB/s)]
Retrieving: yt-dlp-2023.06.22-150500.2.pm.1.noarch (packman)                                                                                                                                                                                            (20/20),   2.7 MiB    
Retrieving: yt-dlp-2023.06.22-150500.2.pm.1.noarch.rpm .....................................................................................................................................................................................................[done (2.6 MiB/s)]

Checking for file conflicts: ...........................................................................................................................................................................................................................................[done]
( 1/20) Installing: yt-dlp-bash-completion-2023.01.06-bp155.2.4.noarch .................................................................................................................................................................................................[done]
( 2/20) Installing: libavutil56_70-4.4.4-150500.4.pm.1.x86_64 ..........................................................................................................................................................................................................[done]
( 3/20) Installing: libswscale5_9-4.4.4-150500.4.pm.1.x86_64 ...........................................................................................................................................................................................................[done]
( 4/20) Installing: libpostproc55_9-4.4.4-150500.4.pm.1.x86_64 .........................................................................................................................................................................................................[done]
( 5/20) Installing: libavresample4_0-4.4.4-150500.4.pm.1.x86_64 ........................................................................................................................................................................................................[done]
( 6/20) Installing: libswresample3_9-4.4.4-150500.4.pm.1.x86_64 ........................................................................................................................................................................................................[done]
( 7/20) Installing: libdav1d6-1.0.0-150500.3.3.1.x86_64 ................................................................................................................................................................................................................[done]
( 8/20) Installing: python311-base-3.11.3-150400.9.12.1.x86_64 .........................................................................................................................................................................................................[done]
( 9/20) Installing: libpython3_11-1_0-3.11.3-150400.9.12.1.x86_64 ......................................................................................................................................................................................................[done]
(10/20) Installing: libavcodec58_134-4.4.4-150500.4.pm.1.x86_64 ........................................................................................................................................................................................................[done]
(11/20) Installing: libavformat58_76-4.4.4-150500.4.pm.1.x86_64 ........................................................................................................................................................................................................[done]
(12/20) Installing: libavfilter7_110-4.4.4-150500.4.pm.1.x86_64 ........................................................................................................................................................................................................[done]
(13/20) Installing: libavdevice58_13-4.4.4-150500.4.pm.1.x86_64 ........................................................................................................................................................................................................[done]
(14/20) Installing: ffmpeg-4-4.4.4-150500.4.pm.1.x86_64 ................................................................................................................................................................................................................[done]
(15/20) Installing: python311-setuptools-67.7.2-150400.3.6.1.noarch ....................................................................................................................................................................................................[done]
(16/20) Installing: python311-pip-22.3.1-150400.17.3.1.noarch ..........................................................................................................................................................................................................[done]
(17/20) Installing: python311-3.11.3-150400.9.12.1.x86_64 ..............................................................................................................................................................................................................[done]
(18/20) Installing: python311-curses-3.11.3-150400.9.12.1.x86_64 .......................................................................................................................................................................................................[done]
(19/20) Installing: python311-dbm-3.11.3-150400.9.12.1.x86_64 ..........................................................................................................................................................................................................[done]
(20/20) Installing: yt-dlp-2023.06.22-150500.2.pm.1.noarch .............................................................................................................................................................................................................[done]
There are running programs which still use files and libraries deleted or updated by recent upgrades. They should be restarted to benefit from the latest updates. Run 'zypper ps -s' to list these programs.
leap155:~ # 

  1. Downloaded test video:
yt-dlp https://www.youtube.com/watch?v=Q42xSPpdbZg
[youtube] Extracting URL: https://www.youtube.com/watch?v=Q42xSPpdbZg
[youtube] Q42xSPpdbZg: Downloading webpage
[youtube] Q42xSPpdbZg: Downloading ios player API JSON
[youtube] Q42xSPpdbZg: Downloading android player API JSON
[youtube] Q42xSPpdbZg: Downloading m3u8 information
[info] Q42xSPpdbZg: Downloading 1 format(s): 313+251
[download] Destination: 4K UHD dubai H264 - MPEG-4 AVC (part 10) (avc1) 3840x2160 [Q42xSPpdbZg].f313.webm
[download] 100% of  202.46MiB in 00:00:33 at 6.04MiB/s
[download] Destination: 4K UHD dubai H264 - MPEG-4 AVC (part 10) (avc1) 3840x2160 [Q42xSPpdbZg].f251.webm
[download] 100% of    1.50MiB in 00:00:00 at 4.10MiB/s
[Merger] Merging formats into "4K UHD dubai H264 - MPEG-4 AVC (part 10) (avc1) 3840x2160 [Q42xSPpdbZg].webm"
Deleting original file 4K UHD dubai H264 - MPEG-4 AVC (part 10) (avc1) 3840x2160 [Q42xSPpdbZg].f313.webm (pass -k to keep)
Deleting original file 4K UHD dubai H264 - MPEG-4 AVC (part 10) (avc1) 3840x2160 [Q42xSPpdbZg].f251.webm (pass -k to keep)
karl@leap155:~> 
  1. Invoked vlc:
karl@leap155:~> vlc 4K\ UHD\ dubai\ H264\ -\ MPEG-4\ AVC\ \(part\ 10\)\ \(avc1\)\ 3840x2160\ \[Q42xSPpdbZg\].webm 
VLC media player 3.0.18 Vetinari (revision 3.0.13-8-g41878ff4f2)
[0000563c99ad7d30] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
[00007f0620007720] gl gl: Initialized libplacebo v4.208.0 (API v208)
libva info: VA-API version 1.16.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
[00007f061c026b80] vaapi generic error: profile(19) is not supported
[00007f0620007720] gl gl: Initialized libplacebo v4.208.0 (API v208)

vlc plays the video without further ado.

1 Like

Yes, I told you

You need bad ugly gstreamer

Nope:

erlangen:~ # zypper se -is gstreamer
Loading repository data...
Reading installed packages...

S  | Name                        | Type    | Version              | Arch   | Repository
---+-----------------------------+---------+----------------------+--------+-----------------------
i  | gstreamer                   | package | 1.22.4-1.1           | x86_64 | Haupt-Repository (OSS)
i  | gstreamer-lang              | package | 1.22.4-1.1           | noarch | Haupt-Repository (OSS)
i  | gstreamer-plugins-base      | package | 1.22.4-1.1           | x86_64 | Haupt-Repository (OSS)
i  | gstreamer-plugins-base-lang | package | 1.22.4-1.1           | noarch | Haupt-Repository (OSS)
i  | gstreamer-plugins-good      | package | 1.22.4-1.1           | x86_64 | Haupt-Repository (OSS)
i  | gstreamer-plugins-good-gtk  | package | 1.22.4-1.1           | x86_64 | Haupt-Repository (OSS)
i  | gstreamer-plugins-good-lang | package | 1.22.4-1.1           | noarch | Haupt-Repository (OSS)
i  | libgstreamer-1_0-0          | package | 1.22.4-1.1           | x86_64 | Haupt-Repository (OSS)
erlangen:~ # 

Working after zypper dup --from Packman

As usual.

Congratulations.

1 Like

https://en.opensuse.org/Package_repositories

The repo list has helped myself.

1 Like