Parole媒体播放器无法播放MP4/MKV视频(仅音频无画面)的技术求助
Hey there! Let's break down what's going on here and fix that black screen issue with MP4/MKV files in Parole.
First, the root cause: Parole relies on GStreamer for media decoding, and your Xubuntu 22.04 setup is missing the necessary video codecs for MP4 (usually H.264) and MKV (often H.264/H.265) formats. VLC works because it bundles its own independent decoding libraries, so it doesn't depend on the system's GStreamer plugins like Parole does.
Here's how to fix it step by step:
Install the missing GStreamer codec packages using the terminal:
sudo apt update sudo apt install gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libavLet me explain these packages:
gstreamer1.0-plugins-ugly: Includes popular but copyright-restricted codecs like MPEG-4/H.264.gstreamer1.0-plugins-bad: Adds support for more advanced or less stable (but still essential) video formats.gstreamer1.0-libav: Ties into FFmpeg's decoding capabilities, covering a wide range of MKV/MP4 sub-formats.
After installing, close Parole completely (make sure it's not running in the background) and reopen it. If the issue persists, log out and back in to refresh the GStreamer plugin cache.
If you still see a black screen, check Parole's video output settings:
- Open Parole, go to Edit > Preferences > Playback
- Look for the Video output dropdown menu
- Try switching to an alternative option like X11视频输出 (Xv) or OpenGL视频输出 — sometimes the default output module has compatibility issues with your system.
That should get your MP4/MKV videos playing with both audio and video in Parole!
备注:内容来源于stack exchange,提问作者goemon

