Openh264 on Tumbleweed

Kent - January 15, 2024

If there are problems with loading a shared library with name libopenh264.so.7 when doing work with ffmpeg, there are two possibilies.

  1. Outdated version of ffmpeg.
  2. libopenh264.so.7 is not installed.
[libopenh264 @ 0x55925d5bf780] libopenh264.so.7: cannot open shared object file: No such file or directory: libopenh264.so.7 is missing, openh264 support will be disabled
[mpegts @ 0x55925d59a9c0] Failed to open codec in avformat_find_stream_info
[libopenh264 @ 0x55925d5bf780] libopenh264.so.7: cannot open shared object file: No such file or directory: libopenh264.so.7 is missing, openh264 support will be disabled
[mpegts @ 0x55925d59a9c0] Packet corrupt (stream = 0, dts = 446400).
[mpegts @ 0x55925d59a9c0] Packet corrupt (stream = 0, dts = 506246400).
[mpegts @ 0x55925d59a9c0] Could not find codec parameters for stream 0 (Video: h264 (High) ([27][0][0][0] / 0x001B), none(progressive)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options

The fix is simple, but it should not be necessary. Add h264 repo, and install the library.

zypper ar http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed repo-openh264
zypper in libopenh264-7

More details here: https://en.opensuse.org/OpenH264

See Also

Comments

Any comments? Create a new discussion on GitHub.
There used to be an inline comment form here, but it was removed.