Plays DVD images and VIDEO_TS folders in WittyMediaServer the way a DVD player does, with their real menus. You need it if your disc libraries hold DVDs.
It's a module of WittyMediaServer (wittymediaserver.com): the server runs it as a helper program and asks it about each disc. This version is built for module API 5, the only one WittyMediaServer 0.8.0-alpha takes.
The disc's own menu, in a browser. Sintel, Blender Foundation, CC BY 3.0, from its original DVD.
A disc's page in WittyMediaServer. Sintel, Blender Foundation, CC BY 3.0.
A disc going in. Sintel, Blender Foundation, CC BY 3.0.
Settings, Playback & discs, in WittyMediaServer.
- Plays the disc's own program: first play, menus with highlighted buttons, titles, chapters, angles, audio and subtitle choices, stills, resume points and parental blocks. It runs the disc's commands in a small virtual machine.
- Reads without mounting:
.isoand.imgimages andVIDEO_TSfolders, through WittyDisc. - Draws subtitles and button highlights from the disc's own sub-pictures and palette.
- Copes with damage: each table of an index file is read from whichever copy (IFO or
.BUP) has it whole, tables that disagree are mended from the ones that agree, and unreadable sectors are passed over. Malformed tables, commands and sub-pictures are refused rather than trusted. See docs/QUIRKS.md. - Refuses scrambled discs. CSS-protected images are detected and refused with a clear message. Nothing is ever decrypted. The server makes its own check as well, whatever a module says.
- Tells you what's on a disc. The
wittydvdcommand-line tool lists titles and menus, simulates a run through the menus, and reports dead ends. - Finds the film among decoys. A scoring engine ranks every title from the unencrypted index and the disc's own commands, and says how sure it is and why. It looks at distinct video, cells replayed, shuffled, hollow, overlapping or missing from the disc's own address tables, title sets with no video, looping chains, where first play and the menu's Play button go, and which titles nothing leads to. It finds a film that only the disc's commands put together, a film cut into several titles, a TV disc's episodes and its play-all title, and the angles and cuts of a film. It doesn't bypass CSS. See docs/TITLE-HEURISTICS.md.
Decoding the video and audio is left to the player: WittyDVD says which bytes to play, when, and what to draw over them. Turning those steps into streams stays with the server.
How to use it is in Help inside WittyMediaServer: see DVDs. How titles are ranked is in docs/TITLE-HEURISTICS.md, and what odd discs do and how each case is handled in docs/QUIRKS.md. None of the title mapping has been run against a physical disc yet: it is tested on synthetic discs that the test code writes.
An admin adds it from the module store inside WittyMediaServer: Settings → Modules, then Browse the store, then Add beside WittyDVD. This version is built for module API 5 and fits WittyMediaServer 0.8.0-alpha through 0.8.x, as its module.json says. It works with nothing older: the server takes module API 5 only. How modules work is in the server's docs/MODULES.md and docs/MODULES-API5.md.
- FFmpeg, which comes with the server.
- WittyDisc, which reads the images, and WittyModule, which is how a server talks to it. Both are built in.
- No media comes with it.
It's written in Go with no cgo, from the published disc structure.
A program is built for each system below, and the server uses the right one.
| System | Where it stands |
|---|---|
| Linux (x64, arm64, 32-bit ARM, x86) | Its tests pass on x64, and a DVD title has played in a browser from a test server with it installed. The other CPUs are only built |
| Windows (x64, arm64) | Built. This version hasn't been run on Windows since it became its own program |
| macOS (Intel, Apple silicon) | Built by the release tool. It has not been run on a real Mac |
| FreeBSD (amd64, arm64) | Cross-compiled only. It has not been run |
On macOS and FreeBSD the server has no sandbox for a module's helper: it gets a small environment and a soft memory limit, and nothing more.
A DVD's page in every WittyMediaServer app comes from this module's own sdui.json (module API 5), kept equal to
UI() in sdui.go by a test, so any app that draws the server's interface shows it in every look with no code of
its own. Between the title's header and its cast, in this order, each section left out when it has nothing to show:
| Section | What it shows |
|---|---|
| This disc can't be played | An encrypted disc: what happened, that nothing was changed or copied, and what the disc's index still says |
| Feature Presentation | Play the film (the whole of it, however the disc cuts it up) and how many scenes it has |
| Scenes | The film's chapters as pictures, each playing from its start |
| Episodes | A TV disc's episodes in viewing order |
| Other versions | Other cuts and camera angles than the one Play plays |
| Bonus material | The disc's other titles worth watching, without its decoys |
| Disc menus | Shortcuts straight into the disc's own menus |
| Why this title | Which title is the film, why, how sure the engine is, and the other candidates |
| Diagnosis | What was wrong with this copy and what was mended, and for an administrator Check this disc |
Each section's source takes the page's title and answers for a DVD only. The module's service answers them (module
API 5, package api), asking the server's host API for what only the server keeps and checks: this module's ranking,
read by its helper and checked by the server, and an administrator's choice of film. The names given to its titles are
its own, in its own database. Their rows run its own commands (wittydvd.choose, wittydvd.clearChoice, wittydvd.rank),
which are its routes under /api/modules/wittydvd/discs/{id}. The player is each app's own: playing the disc, its
menus and buttons, and the remote are the app's native player screen, not SDUI; in a browser it is WittyDisc's web part.
The module has no settings page: the server's disc settings are WittyDisc's Settings, DVDs and Blu-rays.
Why these sections are SDUI, and the rest isn't. A disc module doesn't need SDUI to work. These sections are SDUI only because they are plain rows of a title's page that every app already knows how to draw: as SDUI, the iPhone, Apple TV and Android apps show a DVD's feature, scenes, episodes, versions and why this title with no code of their own, and the same words as the web. What stays each app's own, on purpose:
- Playing the disc, its menus and buttons, and the remote: drawn frame by frame from the disc, with timing and focus no page description could carry.
- Disc settings and naming titles and scenes: an administrator's dialogs on the web's title page (Manage this
title, WittyDisc's), writing to the server's
PUT /api/items/{id}and this module'sPUT /api/modules/wittydvd/discs/{id}/labels. - The server-wide disc settings: WittyDisc's hand-built Settings, DVDs and Blu-rays.
- WittyMediaPlayer's disc screens: the desktop player draws its own.
You need Go 1.26 or newer. In a worktree, first run the copy of dev-modules.mjs kept above the repositories (node D:/projects/dev-modules.mjs on the development machine). It writes a go.work that git ignores, so the checkout builds against the repositories beside it. Never run go work use.
go vet ./...go test ./... -count=1go run github.com/wittywilla/wittymodule/cmd/wittymodule check .The parsers are fuzzed. Each target's seeds run with every test; to explore further, one target at a time:
go test -run '^$' -fuzz '^FuzzOpenDisc$' -fuzztime 1m .The targets are FuzzParseVMG, FuzzParseVTS, FuzzOpenDisc, FuzzNavPack, FuzzVOB, FuzzSPU, FuzzVM, FuzzNav, FuzzRankTitles and FuzzParsers, and FuzzDecode in ./wire.
The last one checks the manifest. On the same tool, pack -targets linux/amd64 -out release . builds a release for one system. CI also builds for every system.
To look at a disc by hand:
go run ./cmd/wittydvd info MY_DISC.ISO| Command | What it shows |
|---|---|
wittydvd info <disc> |
Titles, menus, languages and the first-play program |
wittydvd rank <disc> [json] |
Which title is the film, the episodes and decoys, how sure it is and why |
wittydvd walk <disc> [button...] |
Simulates inserting the disc, then pressing menu buttons by number |
wittydvd crawl <disc> |
Presses every button of every menu and reports dead ends |
wittydvd pgc <disc> <fp, vmgm, vtsm or vts> <vts> <pgcn> |
The commands of one program chain |
wittydvd render <disc> <dir> |
The first menu's highlight pictures |
wittydvd disc ls <disc> |
The files inside the image |
To use it as a library, wittydvd.Open opens an image or folder, and wittydvd.NewNav gives a navigator: Start, PressButton, CellEnded and the rest return what to do next. Disc.MainTitle, Disc.RankTitles, Disc.Episodes and Disc.Explain say which title is which, and Opened.Analyze adds the menus' buttons and gives the whole answer: the pick with its confidence and evidence, what to play for it, its versions, and the episodes. A server gets the same from the helper's analyze call.
wittydvdplayer/ is the same engine as a program of its own for WittyMediaPlayer, with its own go.mod and manifest.
Working on a Mac? Start with WittyMediaServer's MAC-START-HERE.md: what to install, what to clone, and every Mac task in order: this module's is item 7.1 (wittywilla/WittyMediaServer#571).
GNU Affero General Public License v3.0 (or later): see LICENSE and NOTICE. If you redistribute it or build on it, please keep the NOTICE attribution. It's an original implementation and contains no code from other disc libraries. Each release archive carries a THIRD-PARTY-NOTICES.txt for what its programs link.
A version tag builds a program for every platform, signs the checksum list, and publishes a release that servers can install.
Versions move in small steps as work lands. go run github.com/wittywilla/wittymodule/cmd/wittymodule@v0.4.0 bump . raises it
everywhere it is written (add -part minor for a bigger step). A bump isn't a release: nothing is
tagged or published until you tag it. CI fails when code changed since the last tag and the version
didn't, because tags never move.
To release:
- Check that
versioninmodule.jsonis the one to publish, with the bump committed. - Tag that commit and push the tag:
git tag vX.Y.Z, thengit push origin vX.Y.Z. A tag with a suffix, such asv1.2.0-beta, is published as a prerelease. - Watch the Actions tab. The signing step uses the
WMS_SIGNING_KEYsecret of thereleaseenvironment, and nothing is published without it.
To take a version back, run the withdraw workflow from the Actions tab. It adds the version to a signed list on the release tagged withdrawals, which servers read.
Licensed under AGPL-3.0-or-later: see LICENSE and NOTICE.
WittyDVD is an independent open-source project. It isn't associated with, sponsored by or endorsed by the DVD format's owners, any film studio or any other player project. “DVD” is a trademark of DVD Format/Logo Licensing Corporation; WittyDVD isn't a licensed or certified DVD product and uses no DVD logo. CSS-scrambled discs are refused, nothing is decrypted, and no media comes with it: you're responsible for having the rights to what you open. Any third-party names here only describe what it works with, and belong to their owners. It's provided “as is”, with no warranty; see LICENSE. Local law applies to how you use it. This isn't legal advice.



