I tried to copy the steps of previous discussions that had an issue with video decoding but at this point I’m stuck. I was using yt-dlp + mpv to play a video, but it only plays the sound, no video in mpv.
This is the result of mpv -v '【N3】QUARTET Lesson 2 Part 2 | Intermediate Japanese [I-FhbIViHX4].mkv'
[cplayer] Command line options: '-v' '/var/home/username/.config/mpv/【N3】QUARTET Lesson 2 Part 2 | Intermediate Japanese [I-FhbIViHX4].mkv'
[cplayer] mpv 0.39.0 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
[cplayer] libplacebo version: v7.349.0
[cplayer] FFmpeg version: 7.1.1
[cplayer] FFmpeg library versions:
[cplayer] libavcodec 61.3.100 (runtime 61.19.101)
[cplayer] libavdevice 61.1.100 (runtime 61.3.100)
[cplayer] libavfilter 10.1.100 (runtime 10.4.100)
[cplayer] libavformat 61.1.100 (runtime 61.7.100)
[cplayer] libavutil 59.8.100 (runtime 59.39.100)
[cplayer] libswresample 5.1.100 (runtime 5.3.100)
[cplayer] libswscale 8.1.100 (runtime 8.3.100)
[cplayer] Configuration: -Dalsa=enabled -Dbuild-date=false -Dcaca=enabled -Dcdda=enabled -Dcplayer=true -Dcplugins=enabled -Dcuda-hwaccel=enabled -Dcuda-interop=enabled -Ddmabuf-wayland=enabled -Ddrm=enabled -Ddvbin=enabled -Ddvdnav=enabled -Degl-drm=enabled -Degl-wayland=enabled -Degl-x11=enabled -Degl=enabled -Dgbm=enabled -Dgl-x11=enabled -Dgl=enabled -Dhtml-build=enabled -Diconv=enabled -Djack=enabled -Djavascript=enabled -Djpeg=enabled -Dlcms2=enabled -Dlibarchive=enabled -Dlibavdevice=enabled -Dlibbluray=enabled -Dlibmpv=true -Dlua=enabled -Dmanpage-build=enabled -Dopenal=enabled -Dopensles=disabled -Doss-audio=disabled -Dpipewire=enabled -Dplain-gl=enabled -Dpulse=enabled -Drubberband=enabled -Dsdl2-audio=enabled -Dsdl2-gamepad=enabled -Dsdl2-video=enabled -Dsdl2=enabled -Dshaderc=disabled -Dsndio=disabled -Dspirv-cross=disabled -Duchardet=enabled -Dvaapi-drm=enabled -Dvaapi-wayland=enabled -Dvaapi-x11=enabled -Dvaapi=enabled -Dvapoursynth=enabled -Dvdpau-gl-x11=enabled -Dvdpau=enabled -Dvector=enabled -Dvulkan=enabled -Dwayland=enabled -Dwerror=false -Dx11=enabled -Dxv=enabled -Dzimg=enabled -Dzlib=enabled -Dprefix=/usr -Dbindir=/usr/bin -Ddatadir=/usr/share -Dincludedir=/usr/include -Dinfodir=/usr/share/info -Dlibdir=/usr/lib64 -Dlibexecdir=/usr/libexec -Dlocaledir=/usr/share/locale -Dlocalstatedir=/var -Dmandir=/usr/share/man -Dsbindir=/usr/sbin -Dsharedstatedir=/var/lib -Dsysconfdir=/etc -Dauto_features=auto -Dbuildtype=plain -Dwrap_mode=nodownload
[cplayer] List of enabled features: alsa caca cdda cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-wayland drm dvbin dvdnav egl egl-drm egl-wayland egl-x11 ffmpeg ffnvcodec gbm gl gl-x11 glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg lcms2 libarchive libass libavdevice libbluray libdl libplacebo linux-fstatfs lua-5.1 memfd-create memrchr openal pipewire posix posix-shm ppoll pthread-condattr-setclock pulse rubberband rubberband-3 sdl2 sdl2-audio sdl2-gamepad sdl2-video uchardet vaapi vaapi-drm vaapi-wayland vaapi-x11 vapoursynth vdpau vdpau-gl-x11 vector vk-khr-display vt.h vulkan wayland wayland-protocols-1-32 x11 xv zimg zimg-st428 zlib
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[ifo_dvdnav] Opening /etc/mpv/encoding-profiles.conf
[bdmv/bluray] Opening /etc/mpv/encoding-profiles.conf
[file] Opening /etc/mpv/encoding-profiles.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Waiting for scripts...
[subs2srs] Executing: 'wl-copy' '--version'
[subs2srs] Starting subprocess: [wl-copy, --version]
[cplayer] Set property: user-data/osc/visibility="auto" -> 1
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[osd/libass] libass API version: 0x1703000
[osd/libass] libass source: tarball: 0.17.3
[osd/libass] Shaper: FriBidi 1.0.15 (SIMPLE) HarfBuzz-ng 9.0.0 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[subs2srs] Executing: 'mpv' '--ovc=help'
[subs2srs] Starting subprocess: [mpv, --ovc=help]
[subs2srs] Executing: 'mpv' '--oac=help'
[subs2srs] Starting subprocess: [mpv, --oac=help]
[subs2srs] mpv supports audio codec libmp3lame: true
[subs2srs] mpv supports audio codec libopus: true
[subs2srs] mpv supports snapshot codec libwebp: true
[subs2srs] mpv supports snapshot codec mjpeg: true
[subs2srs] mpv supports snapshot codec libaom-av1: true
[cplayer] Done loading scripts.
[cplayer] Running hook: auto_profiles/on_before_start_file
[cplayer] Running hook: ytdl_hook/on_load
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] playlist hook
[cplayer] Running hook: auto_profiles/on_load
[ifo_dvdnav] Opening /var/home/username/.config/mpv/【N3】QUARTET Lesson 2 Part 2 | Intermediate Japanese [I-FhbIViHX4].mkv
[bdmv/bluray] Opening /var/home/username/.config/mpv/【N3】QUARTET Lesson 2 Part 2 | Intermediate Japanese [I-FhbIViHX4].mkv
[file] Opening /var/home/username/.config/mpv/【N3】QUARTET Lesson 2 Part 2 | Intermediate Japanese [I-FhbIViHX4].mkv
[demux] Trying demuxers for level=normal.
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[mkv] Deferring reading cues.
[mkv] All headers are parsed!
[demux] Detected file format: Matroska
[cplayer] Opening done: /var/home/username/.config/mpv/【N3】QUARTET Lesson 2 Part 2 | Intermediate Japanese [I-FhbIViHX4].mkv
[find_files] Loading external files in /var/home/username/.config/mpv/
[cplayer] Running hook: ytdl_hook/on_preloaded
[cplayer] Running hook: auto_profiles/on_preloaded
[mkv] select track 0
[mkv] select track 1
[cplayer] ● Video --vid=1 (h264 1920x1080 30 fps) [default]
[cplayer] ● Audio --aid=1 --alang=eng (opus 2ch 48000 Hz) [default]
[vo/gpu] Probing for best GPU context.
[vo/gpu/auto] Initializing GPU context 'auto'
[vo/gpu/opengl] Initializing GPU context 'wayland'
[vo/gpu/wayland] Registered interface wl_compositor at version 6
[vo/gpu/wayland] Registered interface zxdg_decoration_manager_v1 at version 1
[vo/gpu/wayland] Registered interface wp_viewporter at version 1
[vo/gpu/wayland] Registered interface wp_fractional_scale_manager_v1 at version 1
[vo/gpu/wayland] Registered interface wl_shm at version 1
[vo/gpu/wayland] Registered interface wl_seat at version 8
[vo/gpu/wayland] Registered interface wl_data_device_manager at version 3
[vo/gpu/wayland] Registered interface wp_cursor_shape_manager_v1 at version 1
[vo/gpu/wayland] Registered interface zwp_idle_inhibit_manager_v1 at version 1
[vo/gpu/wayland] Registered interface wl_subcompositor at version 1
[vo/gpu/wayland] Registered interface wp_content_type_manager_v1 at version 1
[vo/gpu/wayland] Registered interface wp_presentation at version 1
[vo/gpu/wayland] Registered interface xdg_wm_base at version 6
[vo/gpu/wayland] Registered interface zwp_linux_dmabuf_v1 at version 4
[vo/gpu/wayland] Registered interface wl_output at version 4
[vo/gpu/wayland] Compositor doesn't support the wp_single_pixel_buffer_manager_v1 protocol!
[vo/gpu/wayland] Registered output BOE eDP-1-0x07CB (0x40):
[vo/gpu/wayland] x: 0px, y: 0px
[vo/gpu/wayland] w: 1920px (344mm), h: 1080px (193mm)
[vo/gpu/wayland] scale: 2.000000
[vo/gpu/wayland] Hz: 59.997000
[vo/gpu/wayland] Enabling server decorations
[vo/gpu/wayland] Obtained preferred scale, 1.150000, from the compositor.
[vo/gpu/opengl] EGL_VERSION=1.5
[vo/gpu/opengl] EGL_VENDOR=Mesa Project
[vo/gpu/opengl] EGL_CLIENT_APIS=OpenGL OpenGL_ES
[vo/gpu/opengl] Trying to create Desktop OpenGL context.
[vo/gpu/wayland] GL_VERSION='4.6 (Core Profile) Mesa 25.0.7'
[vo/gpu/wayland] Detected desktop OpenGL 4.6.
[vo/gpu/wayland] GL_VENDOR='Intel'
[vo/gpu/wayland] GL_RENDERER='Mesa Intel(R) Graphics (ADL GT2)'
[vo/gpu/wayland] GL_SHADING_LANGUAGE_VERSION='4.60'
[vo/gpu/wayland] Loaded extension GL_KHR_debug.
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] Assuming 59.997000 FPS for display sync.
[vd] Container reported FPS: 30.000000
[vd] Codec list:
[vd] libopenh264 (h264) - OpenH264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd] Opening decoder libopenh264
[vd] No hardware decoding requested.
[vd] Using software decoding.
[vd] Detected 8 logical cores.
[vd] Requesting 9 threads for decoding.
[ffmpeg/video] libopenh264: Unable to create decoder
[vd] Could not open codec.
[vd] Decoder init failed for libopenh264
[vd] Failed to initialize a decoder for codec 'h264'.
[vo/gpu/wayland] Deregistering output BOE eDP-1-0x07CB (0x40)
[vo/gpu/wayland] Deregistering seat 0xa
[mkv] deselect track 0
[cplayer] Video: no video
[ad] Codec list:
[ad] opus - Opus
[ad] libopus (opus) - libopus Opus
[ad] Opening decoder opus
[ad] Requesting 1 threads for decoding.
[ad] Selected decoder: opus - Opus
[af] User filter list:
[af] (empty)
[cplayer] Starting playback...
[subs2srs] config already exists
[af] [in] 48000Hz stereo 2ch floatp
[af] [userspeed] 48000Hz stereo 2ch floatp
[af] [userspeed] (disabled)
[af] [convert] 48000Hz stereo 2ch floatp
[subs2srs] Read profile list. Defined profiles: subs2srs,subs2srs_english
[ao] Trying audio driver 'pipewire'
[ao/pipewire] requested format: 48000 Hz, stereo channels, floatp
[subs2srs] Opened config file script-opts/subs2srs.conf.
[ao/pipewire] Headers version: 1.2.5
[ao/pipewire] Library version: 1.2.7
[subs2srs] script-opts/subs2srs.conf:107 unknown key 'card_overwrite_safeguard ', ignoring
[ao/pipewire] Core user: username
[ao/pipewire] Core host: TWFedora
[ao/pipewire] Core version: 1.2.7
[ao/pipewire] Core name: pipewire-0
[ao/pipewire] using soft-buffer of 9600 samples.
[cplayer] AO: [pipewire] 48000Hz stereo 2ch floatp
[cplayer] AO: Description: PipeWire audio output
[af] [convert] (disabled)
[af] [out] 48000Hz stereo 2ch floatp
[subs2srs] Read config file: subs2srs
[cplayer] audio ready
[cplayer] starting audio playback
[cplayer] playback restart complete @ 0.008000, audio=playing, video=eof
[cplayer] Set property: secondary-sub-visibility=false -> 1
[subs2srs] Executing: 'curl' '-s' '127.0.0.1:8765' '-X' 'POST' '-d' '{"version":6,"action":"changeDeck","params":{"cards":[],"deck":"Mining::Deck"}}'
[subs2srs] Starting subprocess: [curl, -s, 127.0.0.1:8765, -X, POST, -d, {"version":6,"action":"changeDeck","params":{"cards":[],"deck":"Mining::Deck"}}]
[subs2srs] Press 'a' to open the mpvacious menu.
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[subs2srs] Deck Mining::Deck: check failed. Reason: Ankiconnect isn't running.
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
The main issue that stood out was:
[ffmpeg/video] libopenh264: Unable to create decoder
[vd] Could not open codec.
[vd] Decoder init failed for libopenh264
[vd] Failed to initialize a decoder for codec 'h264'.
It also lists [cplayer] Video: no video
So I tried to rpm-ostree install openh264
, but I get this:
Problem: package noopenh264-0.1.0~openh264_2.4.1-2.fc41.x86_64 from @System conflicts with openh264 provided by openh264-2.5.1-1.fc41.x86_64 from fedora-cisco-openh264
- package openh264-2.5.1-1.fc41.x86_64 from fedora-cisco-openh264 obsoletes noopenh264 < 1:0 provided by noopenh264-0.1.0~openh264_2.4.1-2.fc41.x86_64 from @System
- conflicting requests
Enabled Repositories
Enabled rpm-md repositories: fedora-cisco-openh264 updates fedora rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree-updates rpmfusion-nonfree copr:copr.fedorainfracloud.org:phracek:PyCharm google-chrome rpmfusion-nonfree-steam rpmfusion-nonfree-nvidia-driver nextdns updates-archive
The video plays fine in Librewolf, which states that H264 is supported in about:support
I’m unsure of what to do next