DJVELLUM LOCAL DISC AUTHORING

The browser captures the clean video programme and the final mixed audio.
Short WebM chunks go directly to a helper on YOUR computer, not to DJVellum's
website. Capture uses the browser's compressed video/Opus audio recorder;
conversion to CD PCM does not recover information lost during compression.

SETUP
1. Install Python 3.10 or later: https://www.python.org/downloads/
2. Install FFmpeg and ffprobe: https://ffmpeg.org/download.html
3. DVD authoring also needs dvdauthor: https://dvdauthor.sourceforge.net/
4. Blu-ray authoring also needs tsMuxeR (command-line binary):
   https://github.com/justdan96/tsMuxer/releases
Put the executable tools beside djvellum-author.py or on your PATH.
Their own runtime libraries must also be available. They are separate tools,
not bundled downloads. The helper reports missing tools before recording.

Run on Windows: py djvellum-author.py
Run on Linux/macOS: python3 djvellum-author.py
The helper opens a private pairing link to https://djvellum.com/mixer/.
Do not share the pairing link. The helper listens only on 127.0.0.1:9898.
Allow local-network access if the browser prompts. Keep the helper running.
For another output folder: py djvellum-author.py --output "D:\DJ Masters"

In the mixer, open Record / author discs. Select CD, DVD5, Blu-ray or All three.
Start recording, then Stop & author discs. Add chapter marks during recording.
Keep the mixer tab visible and the device awake; background browser suspension
can stop video capture. Split L/R, blend, gain and crossfades are recorded.

OUTPUTS: ~/Music/DJVellum Disc Masters/<dated session>/
- CD.wav and CD.cue: stereo 44,100 Hz, signed 16-bit PCM, sector-aligned audio
  master with up to 99 track markers. CD/all capture stops before 80 minutes.
- DVD/VIDEO_TS: authored NTSC 16:9 DVD-Video, MPEG-2 / AC-3, DVD5 capacity.
- Blu-ray/BDMV and CERTIFICATE: authored BD25, 720p59.94 AVC / stereo AC-3.
- live-capture.webm and programme.mkv: original capture and indexed master.
- authoring.log and result.json: progress/errors and output locations.

These are real CD masters / DVD and Blu-ray disc structures, not just renamed
MP4 files. Use disc-burning software to write physical media (DVD-Video/UDF for
DVD; UDF 2.50 for Blu-ray). No optical drive access or burning occurs in the
browser. ISO packaging and menu design are not included. Test your target
player with rewritable media; player/hardware compatibility is not guaranteed.

A single authoring job runs at a time. Keep plenty of disk space: originals,
intermediates and authored copies coexist. Encoder threads are limited for
Blu-ray. Errors preserve the original capture and any completed outputs;
check authoring.log before retrying. Do not close the helper while authoring.
