Skip to content

Writing criteria for this guide

Every "for Mere Mortals" guide is written to the same nine-point standard, so a reader who trusts one can trust the rest. Here it is, with the verification notes for this particular guide below.

  1. Fix it first. Reader outcomes lead, not action items: each chapter opens by naming the outcome it delivers, shows a check the reader can run to confirm they got it, and a reasonable reader finishes able to state what was done, what it means, and what to try next.
  2. Plain language. Short sentences, everyday vocabulary, technical terms defined on first use. No slang, and no idioms that only make sense in one country — the reader may be translating as they go.
  3. No dead ends. A guide never tells the reader to do something it cannot show them how to verify. Every claim a reader relies on — an install, a command, an output — is something this guide demonstrates or clearly labels documented-only below.
  4. Live-verified where it matters. Procedures are run for real in the guide's lab wherever the build machine allows it, and the transcripts kept in the repository are the evidence. What could not be run is listed honestly below, never presented as if it had been.
  5. General audiences. Nothing in this guide — examples, fixtures, names, addresses — is modelled on any particular reader or author's real life, network, or organisations. The lab's fixtures are a test pattern, a sine tone and three lines of invented subtitle.
  6. Standalone. A reader needs this guide, its lab, and nothing else. Where another guide would genuinely help, it is pointed to once, by name, and the chapter still completes without it.
  7. Honest about limits. Chapter 12 names what the tool cannot do: no DRM media, partial disc support at the edges, conversion that only ever re-encodes, tags that do not survive the sout route, no editing to speak of, a library that is a shelf rather than a catalogue, and a control interface whose whole security is one password.
  8. The ethics rule is in the text, early. Chapter 1 and the README draw this tool's line plainly: playback is local and private, the one feature that shows your file names to the internet — metadata lookup — asks for consent on first run before anything leaves the machine, and the CD recipe in chapter 11 is for discs the reader owns.
  9. Builds clean. The site builds with MkDocs in strict mode with no warnings, and a fresh reader following the chapters in order reaches the stated outcome of each.

Verification notes for this guide

The build machine is a shared Ubuntu 24.04 sandbox (about 7.9 GB of memory, shared with other work while the lab ran — timings are therefore approximate, and the guide's timing claims are stated as the ranges they are). VLC 3.0.20 was already present as the distribution's own build (Ubuntu packages vlc, vlc-bin, vlc-data, libvlc5, libvlccore9, all 3.0.20-3build6) and was run unmodified; no package had to be fetched or extracted for this lab. Fixture media was generated by the sandbox's ffmpeg 8.1.2 and kept in vlc-lab/ with the script that regenerates it (make-fixtures.sh): parade.mp4 (H.264 640×360 at 30 fps + AAC stereo, 12.0 s, 950,997 bytes, with fixture title/artist tags), tone.flac (a 660 Hz tone, 8.0 s), and parade.srt, three hand-written subtitle entries. All transcripts live in vlc-lab/transcripts/.

One lab plumbing fact, disclosed in full: the sandbox's shell runs as root, and VLC refuses the root user (t00). The sandbox also would not let a conventionally created user account reach the workspace — permission tests against nobody and a fresh user both failed at the home directory's door. The lab therefore ran every VLC command inside a Linux user namespace (unshare --user --map-users=1000:0:1 --map-groups=1000:0:1; the wrapper script is kept at vlc-lab/asuser.sh) that presents an ordinary user id — 1000 — to the program while the sandbox's own root file access carries the I/O. The VLC that ran is the distribution binary, unpatched; the namespace changed only what user id the program believed it had, which is the one thing its root check inspects. Readers on any normal machine need none of this: they are already ordinary users.

The lab had no screen of its own, no speakers, and no way to watch or listen. Playback is therefore proved by timing and by the player's own accounting (dummy video and audio outputs run the real demux/decode/timing chain), conversion and extraction by probing the output files with ffprobe, streaming by fetching the stream with curl and ffprobe and probing what arrived, and control interfaces by their own answers. The guide never grades picture or sound quality.

Run for real, with transcripts as evidence:

  • The root refusal verbatim, exit code 1, and the version banner as an ordinary user — VLC 3.0.20 Vetinari, plus the package list that establishes the build's provenance (t00).
  • Fixture creation and pre-flight probes: codecs, dimensions, durations, sizes, tags (t01).
  • Playback to dummy outputs, timed: the 12.0 s clip at rate 1 took 12.65 s wall; at --rate=4, 3.70 s; the 8.0 s FLAC took 7.23 s; processor time for the video run was about 0.6 s (t02).
  • Transcoding MP4 → WebM (vcodec=VP80, scale=0.5, acodec=vorbis): the output probes as VP8 320×180 + Vorbis stereo, 11.906 s, 1,074,499 bytes — larger than the input, for the bitrate reason chapter 8 explains (t03).
  • Audio extraction (vcodec=none, acodec=mp3, ab=128): the output probes as MP3 stereo 44.1 kHz at 128 kb/s, 11.97 s, 191,550 bytes — with the input's title/artist tags absent, and with the alarming but harmless video-chain error lines kept in the transcript (t04).
  • HTTP streaming on the lab's assigned loopback port 18091: a 5-second curl capture of 542,568 bytes probing as H.264 640×360 + AAC, the live stream URL probed directly with the same answer, and the port checked free again after the server was stopped (t05).
  • The Lua HTTP interface on the same port: HTTP 401 without the password; with it, the full status document — state playing, version, position, the fixture's title and artist from its tags, and the statistics block. A volume order was accepted and changed nothing, because the dummy audio output has no gain; the guide teaches that as the finding it is (t06).
  • The RC interface driven from a script: add, get_time, get_length answering exactly 8 for the 8-second fixture, and a clean scripted shutdown (t07).
  • Subtitles: the verbose log shows the .srt forced by --sub-file in one run and autodetected — "with priority 4", SubRIP format detected, all subtitles loaded — with no flag at all in the other (t08).
  • The help surface as the source of every option name taught: --longhelp at 1,649 lines, --longhelp --advanced at 3,625, the transcode module's own help (-p transcode), and 518 module entries from --list (t09).
  • The Qt interface launched once under a pre-existing virtual (Xvfb) display and photographed (vlc-lab/qt-first-run.png): the first-run Privacy and Network Access Policy dialog in front, and behind it the main window's menu bar (Media, Playback, Audio, Video, Subtitle, Tools, View, Help), the cone, and the transport bar with volume at 100%. The dialog awaited a click the headless lab could not make, so no playback happened in the window; the lab's own Xvfb start had failed because the display number was already in use by another lab on the shared machine, and only this lab's VLC process (93,696 KB RSS while running) was started or stopped by it (t10).
  • Batch conversion of a two-file folder in a shell loop, both outputs probed (durations 11.96 s and 8.05 s at 96 kb/s), and a hand-written two-item M3U playlist played through at rate 8: 20 s of media in 2.73 s wall (t11).
  • Module and option existence checks used by the recipes and troubleshooting chapters: the cdda "Audio CD input" module is in this build's list, --reset-config and the --snapshot-* options are in the help (t12).

Documented only — described from the project's documentation and the program's own help, not run, and the text does not claim otherwise:

  • Everything watched or heard: picture and sound quality, rendering smoothness, colour, loudness — and therefore all GUI workflows: the Convert/Save dialog's clicks, the preferences panes' contents beyond their documented layout, hotkeys (listed from the project's own defaults; no key was pressed), disc menus, and the snapshot result (its options are verified in the help; the lab's dummy video output is a poor camera).
  • Playback or capture from physical media and devices: DVDs and Blu-rays in a drive, the CD-ripping recipe's disc-side rung (its sout half is the machinery t04/t11 proved, and its cdda module is verified present), webcams and tuners.
  • UDP and RTP streaming and multicast: the sandbox blocks UDP sends outright, so chapter 9's live proof is HTTP only, as it states.
  • Serving or controlling VLC beyond the lab machine's loopback address — other machines, firewalls, Wi-Fi. The port used throughout, 18091, is the lab's assigned loopback port from the series' fixed pool; nothing in this guide was exposed to any network.
  • Versions other than 3.0.20, other platforms' builds, and the announced 4.0 interface.

Fixtures are this guide's own and deliberately generic: a test pattern with a sine tone, a second tone, and three invented subtitle lines about a parade — no names, organisations or real events. The one photograph in the lab also shows, at its edges, an unrelated program belonging to another lab sharing the sandbox display; the guide says which window is VLC's, and uses nothing of the stranger's.