Skip to content

Playing Anything

Outcome: you can play a file from the window or the command line, and you know — measured, not promised — what "playing" did, and where the honest edges of "plays everything" are.

Playing, with the proof

From the window: open VLC, and either drag a file onto it or use Media → Open File. From the command line:

cvlc parade.mp4            # plays in this terminal, no window
vlc parade.mp4             # the same, in the window

The lab had no screen or speakers, so it played into the dummy outputs — which changes where the pictures and sound go, not whether they are decoded and timed. What playing a file means, measured (transcript t02):

$ time cvlc --vout=dummy --aout=dummy --play-and-exit parade.mp4
real    0m12.650s        (the clip is 12.0 seconds long)
$ time cvlc --vout=dummy --aout=dummy --rate=4 --play-and-exit parade.mp4
real    0m3.699s         (the same clip, told to play at 4x speed)
$ time cvlc --vout=dummy --aout=dummy --play-and-exit tone.flac
real    0m7.228s         (an 8.0-second audio file)

Three facts to take from that table. Playing is paced: at rate 1 the player spends the file's own length on it, because that is what playing is. The --rate option is a plain multiplier, and it checks out — four times the rate, a quarter of the time, plus the same half-second of startup both runs paid. And the work is light: the 12-second video cost about 0.6 seconds of processor time. Decoding a modest file is not a heavy job.

The fixture itself: parade.mp4 in vlc-lab/ is twelve seconds of a test pattern with a 440 Hz tone — H.264 video at 640×360 and AAC stereo audio, 950,997 bytes, made by the ffmpeg in the lab and probed before any VLC run (transcript t01). Every claim in this chapter is about that file and its friends, so you can repeat all of them.

What "plays everything" honestly means

VLC's reputation is earned: it carries its own decoders for the formats of thirty years — the MPEG family, H.264 and H.265, VP8 and VP9, AV1; MP3, AAC, FLAC, Vorbis, Opus; the containers MP4, MKV, WebM, AVI, and far stranger ones — and it is genuinely unbothered by the half-broken files other players reject: damaged indexes, truncated downloads, recordings with oddball settings. If a file is honestly a recording in an honest format, VLC very probably plays it.

The exceptions are not failures of effort; they are locks and licences:

  • DRM-protected media. Films and shows from commercial streaming services, and downloads locked to a shop's app, are encrypted with keys VLC does not have and may not circumvent. No open player opens them. This is the big one, and it is a legal wall, not a technical gap.
  • Encrypted Blu-ray and DVD discs. Plain DVDs play (with the CSS library your distribution may or may not include — on Linux, libdvdcss is a separate, sometimes separate-feeling install). Blu-rays protected with AACS need key material VLC does not ship; unprotected discs and disc images play directly.
  • Things that aren't recordings. A file that is really a playlist, a project file from an editor, or a game asset in a private format is not a failed video; it was never one.

Chapter 12 keeps the full list. The short version to carry: if it plays anywhere without a shop's app or a subscription's permission, it plays here.

Discs, folders, addresses

The same verb opens everything:

  • A DVD or Blu-ray (or an image of one): vlc dvd:///dev/sr0 — and in the window, Media → Open Disc. Disc menus are supported for DVDs; for Blu-ray they are partial, and chapter 12 says so plainly.
  • A folder of music or episodes: open the folder and the files become a playlist in name order (chapter 6).
  • A network address: any URL your browser could fetch, VLC can usually play — chapter 9 is about addresses on your own network, including ones VLC itself is serving.
  • A capture device: a webcam or a TV tuner, through Media → Open Capture Device — documented here rather than run; the lab had no camera to capture.

While it plays

Four controls carry daily use, and all four were visible on the lab's photograph of the real window: the space bar pauses and resumes; the seek bar along the bottom is the whole file, laid out as a line to click on; f toggles full screen in the window (Esc leaves it); and the volume slider sits at the bottom right, where the screenshot caught it at 100%. Playback speed — the --rate of the lab runs — is Playback → Speed in the menu, and the finer hotkeys (chapter 5's table) are worth learning only after those four are habits.