I can no longer view videos when playing via MPV. I can hear the audio in the video playing, just not view it(I installed VLC and videos play fine, so it is just MPV that has the issue and I use MPV all the time).
I think the problem is something to do with h264 not being in the native OpenSUSE repo, but I’m not sure how to fix it.
I have installed libopenh264-7 and libopenh264-8.
If I try install openh264 it says No provider of 'openh264' found.
When I try play a video via MPV in terminal I get the following output.
[ffmpeg/video] libopenh264: Unable to create decoder
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: Failed to open codec in avformat_find_stream_info
[ffmpeg/video] libopenh264: Unable to create decoder
● Video --vid=1 (h264 1280x720 29.9727 fps) [default]
● Audio --aid=1 (aac 2ch 44100 Hz 62 kbps) [default]
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:972: FINISHME: support more multi-planar formats with DRM modifiers
[ffmpeg/video] libopenh264: Unable to create decoder
Could not open codec.
Decoder init failed for libopenh264
Failed to initialize a decoder for codec 'h264'.
Video: no video
AO: [pipewire] 44100Hz stereo 2ch floatp
A: 00:00:06 / 00:05:29 (2%)
Exiting... (Quit)
Any ideas or help on where I am going wrong would be greatly appreciated.
@rousty if your pulling Mesa packages then that comes from Extra? You should only need Essentials repo?
Likewise libopenh264 is provided from “repo-openh264” which is provided by Cisco, so until the real libopenh264-8 is added, it’s just a waiting game…
zypper se -s -r repo-openh264 libopenh264
S | Name | Type | Version | Arch | Repository
---+-------------------+---------+----------------------+--------+---------------------------------------
i | libopenh264-7 | package | 2.3.1-2.suse1699.101 | x86_64 | Open H.264 Codec (openSUSE Tumbleweed)
v | libopenh264-7 | package | 2.3.1-2.suse1699.101 | i586 | Open H.264 Codec (openSUSE Tumbleweed)
| libopenh264-devel | package | 2.3.1-2.suse1699.101 | x86_64 | Open H.264 Codec (openSUSE Tumbleweed)
| libopenh264-devel | package | 2.3.1-2.suse1699.101 | i586 | Open H.264 Codec (openSUSE Tumbleweed)
Or consider using the flatpack version io.mpv.Mpv which if that’s all you need, then shouldn’t need Packman at all. Here I run the flatpak versions of VLC, Handbrake and do have mpv as well…