vlc-plugin-ffmpeg: extend docs + runtime check

The previous vlc-plugin-dvb diagnosis was incomplete. On a laptop with
only vlc-plugin-dvb installed, VLC reads the MPEG-TS container, sees
the H.264 stream type in the PMT, then errors "Codec h264 ... is not
supported" because libavcodec_plugin.so is also a split package and
also wasn't pulled in by the base `vlc` install.

Installing vlc-plugin-ffmpeg (which pulls ffmpeg4.4 as a compat dep)
on the laptop made VLC play pixelpass cleanly via Intel iHD hardware
decode.

- README: list both plugin packages under requirements; rewrite the
  known-limitations line.
- interactive.rs: extend the launch-time check to also probe for
  libavcodec_plugin.so; combine both into one warning that lists
  every missing piece and the single pacman invocation to fix.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-21 06:21:32 -04:00
parent 6e4d30bfa9
commit 74b4101d4f
2 changed files with 49 additions and 26 deletions
+16 -10
View File
@@ -67,13 +67,18 @@ pixelpass <ticket>
- `gstreamer`, `gst-plugins-base`, `gst-plugins-good`, `gst-plugins-bad`, - `gstreamer`, `gst-plugins-base`, `gst-plugins-good`, `gst-plugins-bad`,
`gst-plugins-ugly`, `gst-libav`, `gst-plugin-va`, `gst-plugin-pipewire` `gst-plugins-ugly`, `gst-libav`, `gst-plugin-va`, `gst-plugin-pipewire`
- A player: `mpv` (recommended) or `vlc` - A player: `mpv` (recommended) or `vlc`
- If you use VLC: `vlc-plugin-dvb` must also be installed. Arch / CachyOS - If you use VLC, two split plugin packages are also needed on Arch-family
ship VLC's MPEG-TS demuxer (`libts_plugin.so`) in that separate distros — the base `vlc` package does not pull them in:
package, and without it VLC misidentifies the H.264 stream and shows - `vlc-plugin-dvb` — provides the MPEG-TS demuxer (`libts_plugin.so`).
a green screen. mpv is unaffected. Without it, VLC can't parse the container.
- `vlc-plugin-ffmpeg` — provides the H.264 decoder
(`libavcodec_plugin.so`). Without it, VLC parses the container,
identifies the codec as H.264, then errors with
`Codec h264 ... is not supported`.
mpv ships its own decoder stack and doesn't share either dependency.
- PipeWire (for screencast portal + audio capture) - PipeWire (for screencast portal + audio capture)
On Arch / CachyOS: On Arch / CachyOS / EndeavourOS:
```sh ```sh
sudo pacman -S gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad \ sudo pacman -S gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad \
@@ -81,7 +86,7 @@ sudo pacman -S gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad \
libva-utils mpv libva-utils mpv
# plus your GPU's VAAPI driver # plus your GPU's VAAPI driver
# plus, if you want to use VLC instead of mpv: # plus, if you want to use VLC instead of mpv:
sudo pacman -S vlc vlc-plugin-dvb sudo pacman -S vlc vlc-plugin-dvb vlc-plugin-ffmpeg
``` ```
If the viewer is running on battery, set the CPU governor to performance If the viewer is running on battery, set the CPU governor to performance
@@ -151,10 +156,11 @@ relay path otherwise. Both have been verified end-to-end.
## Known limitations and gotchas ## Known limitations and gotchas
- **VLC needs `vlc-plugin-dvb`** to demux MPEG-TS on Arch / CachyOS. The - **VLC needs `vlc-plugin-dvb` and `vlc-plugin-ffmpeg`** on Arch-family
symptom of missing it is a green screen — VLC falls back to the PS distros — the base `vlc` package doesn't pull these in, and missing
demuxer and misidentifies the H.264 stream. pixelpass warns at either one breaks playback (the first kills the demuxer, the second
player-launch time if the plugin isn't on disk. mpv doesn't need it. kills the H.264 decoder). pixelpass warns at player-launch time if
either plugin isn't on disk. mpv doesn't share these dependencies.
- **Audio echo** if the host plays the stream through speakers and - **Audio echo** if the host plays the stream through speakers and
captures system audio — expected, the mic / monitor picks up the captures system audio — expected, the mic / monitor picks up the
playback. Headphones bypass it. playback. Headphones bypass it.
+33 -16
View File
@@ -69,7 +69,7 @@ impl Player {
], ],
), ),
Player::Vlc => { Player::Vlc => {
warn_if_vlc_ts_demuxer_missing(); warn_if_vlc_plugins_missing();
crate::common::process::spawn_detached( crate::common::process::spawn_detached(
"vlc", "vlc",
&["--network-caching=200", "--live-caching=200", url], &["--network-caching=200", "--live-caching=200", url],
@@ -79,22 +79,39 @@ impl Player {
} }
} }
// VLC's MPEG-TS demuxer ships in a separate package on Arch / CachyOS // On Arch-family distros, the base `vlc` package omits two plugins
// (`vlc-plugin-dvb`). Without it VLC falls through to the PS demuxer // pixelpass needs: the MPEG-TS demuxer (`vlc-plugin-dvb`) and the
// and shows a green screen. // libavcodec-based H.264 decoder (`vlc-plugin-ffmpeg`). Missing either
fn warn_if_vlc_ts_demuxer_missing() { // produces a confusing error chain — warn at launch.
const TS_DEMUX_PLUGIN: &str = "/usr/lib/vlc/plugins/demux/libts_plugin.so"; fn warn_if_vlc_plugins_missing() {
if !std::path::Path::new(TS_DEMUX_PLUGIN).exists() { const REQUIRED: &[(&str, &str)] = &[
eprintln!(); (
eprintln!( "/usr/lib/vlc/plugins/demux/libts_plugin.so",
"Warning: VLC's MPEG-TS demuxer plugin ({TS_DEMUX_PLUGIN}) is missing." "vlc-plugin-dvb",
); ),
eprintln!( (
" On Arch / CachyOS, install `vlc-plugin-dvb`. Without it," "/usr/lib/vlc/plugins/codec/libavcodec_plugin.so",
); "vlc-plugin-ffmpeg",
eprintln!(" VLC will show a green screen. mpv is unaffected."); ),
eprintln!(); ];
let missing: Vec<&(&str, &str)> = REQUIRED
.iter()
.filter(|(p, _)| !std::path::Path::new(p).exists())
.collect();
if missing.is_empty() {
return;
} }
eprintln!();
eprintln!("Warning: VLC is missing plugins pixelpass needs:");
for (path, pkg) in &missing {
eprintln!(" - {path} (install `{pkg}`)");
}
eprintln!("On Arch / CachyOS / EndeavourOS: `sudo pacman -S {}`.", {
let names: Vec<&str> = missing.iter().map(|(_, p)| *p).collect();
names.join(" ")
});
eprintln!("mpv is unaffected.");
eprintln!();
} }
pub fn prompt_player() -> Result<Player> { pub fn prompt_player() -> Result<Player> {