Skip to content

Troubleshooting

Outcome: the failures this chapter names end in a cause, not a shrug — starting with the two that are not failures at all.

"VLC is not supposed to be run as root"

The message is the whole diagnosis (chapter 3, transcript t00): you are running VLC as the administrator, and it refuses. Run it as your ordinary user. On a headless server, give the media work its own unprivileged account; in a container, set the user the container runs as. Do not go looking for a switch that overrides the refusal — there isn't one, on purpose.

Error lines during a job that worked

The commonest false alarm in this guide's transcripts. During the chapter 8 conversion the log carried:

vlcpulse audio output error: PulseAudio server connection failure: Connection refused
dbus interface error: Failed to connect to the D-Bus session daemon
main libvlc error: interface "dbus,none" initialization failed
dummy interface: using the dummy interface module...

Each line is one optional rider failing to attach on a machine with no desktop session — the sound-server interface, the desktop-bus interface, the global-hotkeys interface — after which the dummy interface the job actually asked for loads and the work proceeds. The rule: read the log bottom-up for the module the job needed, and judge the job by its output. A conversion is its probed result (chapter 8); a play is its timing (chapter 4). Log dread is optional.

The audio-extraction variant (transcript t04) is subtler: cannot find video encoder (module:any fourcc:none) and buffer deadlock prevented look mortal, and the MP3 was complete anyway, because the vcodec=none instruction itself breaks the video chain it was told not to build. If the output probes correct, those lines are the sound of an instruction being obeyed oddly.

No sound

Work the chain of chapter 2, from the end backwards. The volume order test in chapter 10 is the diagnostic in miniature: an order to a dummy or absent audio output lands nowhere and says nothing. So: is the right audio output chosen (Tools → Preferences → Audio → Output module — Automatic until you have a reason)? Is the track itself the right one (Audio → Audio Track — films carry several)? Is the system muted beneath VLC (the player's own volume at 100% cannot outshout a muted system mixer)? And is there sound in the file at all — ffprobe answers that without playing anything, exactly as the lab's chapter probed its fixtures.

No picture

The symmetric walk: a video track chosen (Video → Video Track), the right output module (Preferences → Video), and — the classic — a codec the file claims but the build lacks, which the log names while looking for a decoder module. A window that shows the cone while sound plays is this chapter's first three questions, in that order.

Subtitles in the wrong language of characters

Accents rendered as pairs of stray symbols: the file's encoding is not the encoding VLC assumed. Chapter 7 names the setting (Preferences → Input/Codecs → Subtitle encoding); Windows-1252 cures most older Western files. Subtitles present but badly timed are the other chapter 7 pair: a constant offset is --sub-delay; a growing drift is a subtitle timed for a different cut.

VLC opens and closes, or opens wrong

When the program itself is the problem — crashes at start, settings that seem haunted — reset the configuration, which is a real option (transcript t12):

vlc --reset-config

or delete ~/.config/vlc/vlcrc while VLC is closed, which is the same reset by hand; VLC writes a fresh one on its next run. Custom hotkeys, recent-file lists and the privacy choice of chapter 1 live in that file, so expect to re-answer the first-run dialog afterwards.

The stream or the server will not stop

A streaming VLC left running is a service you started by accident. The lab's habit, worth copying: after any streaming test, check the port is free (ss -tlnp | grep 18091, with your port) — and when you go looking for the process to stop, match it exactly. A loose pkill -f vlc on a shared machine can match the command line of the shell running the search when that shell's own text mentions VLC, and kill the searcher instead — the lab has the footprint of that mistake in its notebook, and killed nothing it did not start by naming process ids it had written down.