Skip to content
zdiemerPublic

About

A VideoNow XP emulator: decodes and plays Hasbro/Tiger VideoNow discs, with interactive branching

Topics

Resources

Stars

15 stars

Watchers

0 watching

Forks

Latest commit

 

History

30 Commits

Folders and files

Repository files navigation

vxp

Play VideoNow XP discs on your PC.

.NET Discs Picture Audio Interactive License


vxp playing a VideoNow XP disc

vxp

An emulator for the VideoNow XP, the Hasbro/Tiger personal video player that read video off small pressed CDs.

vxp mounts a disc image, decodes the picture and sound itself, and plays titles at the disc's true rate, with a native menu bar, a track browser, rebindable controls, and a full command line for driving it headlessly.

vxp "Some Title.cue"

What it does

  • VideoNow XP and VideoNow Color discs, and the original black and white ones, detected automatically.
  • Picture: 144 x 80, three 4-bit channels per pixel (80 x 80 in 16 greys on black and white), decoded natively and shown at the shape the panel showed it rather than the shape it is stored in.
  • Sound: 8-bit mono, in sync, played at twice CD speed, 35 280 Hz, by default (--rate to change).
  • Transport: play, pause, seek, frame step, variable speed, fast forward, loop.
  • Interactive titles: the branch table is read out of each segment's header, so decision points offer the destinations the disc actually declares. Take a wrong turn and you can step back through the segments you came from.
  • Menus: a real application menu bar on Windows, plus an in-window menu that works everywhere. Settings, a track browser and control rebinding are in both.
  • Headless CLI: inspect, verify, export, graph the branch structure, and drive scripted playback with no window at all.
Frames from nine VideoNow discs, decoded by vxp: six XP titles, a VideoNow Color music video, a VideoNow Jr disc and a black and white disc

Teen Titans · Batman vs The Joker · Jimmy Neutron
Codename: Kids Next Door · My Life as a Teenage Robot (two titles)
Aly & AJ (VideoNow Color) · Thomas & Friends (VideoNow Jr) · Rugrats (black and white)

Compatibility

These are the retail VideoNow XP discs vxp has been tested against. The XP library is larger than this, and other XP and Color discs should play, but have not been checked.

Disc Kind Status
The Batman: Batman vs The Joker Interactive adventure Playable
Teen Titans: Tournament of Champions Interactive adventure Playable
Codename: Kids Next Door: Operation R.O.B.B.E.R.S. & Operation U.T.O.P.I.A. Episodes and quiz Playable
The Adventures of Jimmy Neutron, Boy Genius (Disc 2): See Jimmy Run & Trading Faces Episodes and quiz Playable
My Life as a Teenage Robot: Return of the Raggedy Android & The Boy Who Cried 'Robot' Episodes and quiz Playable
My Life as a Teenage Robot (Disc 3): It Came from Next Door & Pest Control Episodes and quiz Playable

Playable means the disc plays the way it was built to: menus, episodes, quizzes that keep score, and interactive stories that branch on your choices. If you have a disc that is not on this list, an issue with the vxp verify and vxp map output for it is very welcome.

VideoNow disc details

A VideoNow disc is a small CD pressed as an ordinary audio CD, with no filesystem and no video codec. The player reads raw CD audio sectors and sends them almost straight to the screen and the speaker.

  • On XP and Color the stream interleaves nine picture bytes to one sound byte.
  • XP frames are 19 760 bytes and Color frames 19 600, both holding a 144 x 80 picture at 4 bits per colour channel. Counting the sync-word repeats in a frame header tells the two apart.
  • The XP reads at twice CD speed, so it plays 17.85 frames a second with 35 280 Hz 8-bit mono sound. Color frames play at the same speed.
  • Black and white discs are laid out differently: two picture bytes, a marker byte and a sound byte at a time, an 80 x 80 picture in 16 greys, read at ordinary CD speed for 15 frames a second and 44 100 Hz sound.
  • The pixels are not square. vxp draws the picture at 4:3, the shape the cartoons were made at.
  • Interactive titles are ordinary tracks. Each segment's header lists where it goes next and where each button leads, so vxp follows the disc rather than guessing.

docs/format.md has the full write-up, with what is confirmed and what is still open.

The opening of a VideoNow XP disc, decoded frame by frame

A title sequence coming off the disc: 144 x 80 pixels, three 4-bit
channels each, 17.85 frames a second, and not a codec in sight.

Installing

Every release carries self-contained builds that need no .NET runtime, each with SDL2 beside the binary:

Platform Download
Windows x64 vxp-windows-x86_64.zip
Linux x64 / arm64 vxp-linux-x86_64.tar.gz / vxp-linux-arm64.tar.gz
macOS Apple silicon / Intel vxp-macos-arm64.tar.gz / vxp-macos-x86_64.tar.gz

SHA256SUMS in the release lists the checksums.

Windows

Unzip anywhere and run vxp.exe. It is a GUI program, so double-clicking it or starting it from a launcher opens the player and never a console window. The command line still works from a prompt; see The command line on Windows for how it differs.

Linux

tar -xzf vxp-linux-x86_64.tar.gz
./vxp-linux-x86_64/vxp "Some Title.cue"

It needs glibc 2.27 or later (Ubuntu 18.04, Debian 10, Fedora 28 or newer) and, for the player window, an X11 or Wayland desktop. It also runs under WSL2 on Windows 11.

The archive carries libSDL2-2.0.so beside vxp, but an installed SDL2 is preferred when there is one. The bundled copy speaks only X11 (XWayland on a Wayland desktop), while your distribution's SDL2 speaks Wayland natively:

sudo apt install libsdl2-2.0-0      # Debian, Ubuntu
sudo dnf install SDL2               # Fedora
sudo pacman -S sdl2                 # Arch

Keep libSDL2-2.0.so next to vxp either way, as the fallback. With no sound device the player still opens and plays at the right speed, silently. The headless commands (info, verify, export, run and the rest) need no display, no sound and no SDL. Settings live in $XDG_CONFIG_HOME/vxp (~/.config/vxp).

macOS

tar -xzf vxp-macos-arm64.tar.gz
cd vxp-macos-arm64
xattr -dr com.apple.quarantine .
./vxp "Some Title.cue"

The build is signed only ad hoc, not notarised, so Gatekeeper refuses a downloaded copy until the quarantine flag is removed with the xattr line. It is a command-line program with libSDL2-2.0.dylib beside it, not an .app; keep the two together. The native menu bar is Windows-only, so use the in-window menu (Escape). The macOS builds are not tested on a Mac before each release; reports are welcome.

Building

Building from source needs the .NET SDK 8.0 or later; SDL2 arrives through NuGet.

dotnet build -c Release
dotnet test

The binary lands in src/Vxp/bin/Release/net8.0/. Pushing a v* tag that matches <Version> in src/Vxp/Vxp.csproj builds every platform and publishes the release.

Discs

vxp reads the cue-sheet-plus-binary images that CD ripping tools produce, in either the one-file-per-track or single-file layout. Point it at the .cue, or at a .zip holding the cue sheet and its tracks, the way Redump sets are distributed.

A zip is read in place and never modified. Tracks are decompressed only as far as playback reaches, into temporary files that are deleted when vxp exits (or is killed), and the rest of the disc is decompressed in the background so a branch never waits on the archive.

No disc images are included in this repository, and none are needed to build or test it.

Playing

vxp <disc.cue|disc.zip> [options]
Option Effect
--track N Start on this track
--frame N Start at this frame of that track
--scale N Window scale factor
--fullscreen / --windowed Override the saved window mode
--speed N Playback rate as a percentage, 25 to 800
--rate HZ Disc sample rate, 16000 to 40000 (default 35280)
--volume N Volume, 0 to 100
--mute Start silent
--loop MODE none, track or disc
--navigation MODE followHeader (the default: go where the disc says) or discOrder
--choice-timeout MODE wait (the default: hold until a key is pressed), firstBranch or discOrder
--no-config Ignore the settings file and use defaults; nothing is saved

Run vxp with no disc, or double-click vxp.exe, and the player opens empty. Open a disc from there, or swap to another while one is playing, with Ctrl + O (File > Open Disc), the menu's Recent discs, or by dropping a .cue, .zip or .bin on the window. Ctrl + W ejects back to the empty player. A file that will not open says why in the window and leaves whatever was playing alone. A disc named on the command line that will not open exits with code 1, after printing why to the console it was started from, or on Windows showing it in a message box when there is no console, as from a launcher.

Options may come before or after the disc path. They override the saved settings for that run without changing what is stored: a launcher that always passes --fullscreen leaves a later windowed run windowed. An overridden setting the viewer then changes in the menus is saved as they left it.

Default controls

Every one of these can be rebound, to the keyboard or to a game controller.

Key Action
Space Play / pause
Left / Right Previous / next track
Shift + Left / Right Seek back / forward
, / . Step one frame back / forward
F (hold) Fast forward
- / = / 0 Slower / faster / normal speed
B Back a segment
L Cycle loop mode
1 - 6 Take a branch at a decision point
Up / Down Volume
M Mute
Escape Open the menu (and back out of it)
T Track browser
Tab Cycle the status overlay
F11 Full screen
F12 Screenshot
Backspace Stop and rewind
Ctrl + O Open a disc
Ctrl + W Close the disc
Ctrl + Q Quit
Controller Action
A Play / pause
B Stop and rewind
D-pad up / right / down / left Take branch 1 / 2 / 3 / 4
X / Y Take branch 5 / 6
LB / RB Previous / next track
RT (hold) Fast forward
Start Open the menu
Back Track browser
Guide Quit

A control can mean two things without conflict: the arrow keys and the D-pad work the player during playback and move the highlight once a menu is open.

The first connected SDL game controller is used. Extra controller mappings can be loaded with SDL's own SDL_GAMECONTROLLERCONFIG_FILE environment variable. Full screen hides the mouse pointer.

Menus and settings

On Windows there is an ordinary application menu bar (File, Playback, Tracks, View, Help), opened with the mouse, Alt or F10, and playback carries on while a menu is up rather than freezing behind it. Escape opens the same pages drawn inside the picture instead; that one is what full screen, game controllers and the other platforms use, and it is the only place a control can be rebound, a menu bar having nowhere to catch a keypress. Both are built from one description of the pages, so a setting cannot appear differently in the two of them. interface.nativeMenuBar turns the bar off.

What there is to change:

  • Picture: scaling mode, filtering, window scale, pixel aspect, brightness, contrast, saturation, gamma, channel order, and a simulated LCD grid and scanlines.
  • Sound: volume, mute, output buffer depth, and whether sound keeps playing when the window loses focus.
  • Playback: speed, disc sample rate, fast-forward rate, seek step, loop mode, play on load, skipping empty tracks, and how interactive choices behave.
  • On-screen display: overlay mode, corner, timeout and text size, and whether the overlay carries the track and time, the branch choices, and the frame rate.
  • Controls: every action rebindable, to the keyboard or to a game controller. Enter captures the next control pressed, Left clears a binding, Delete restores the default; conflicts are reported rather than silently overwritten.
  • Tracks: every segment with its running time, branch structure and a jump-to.
  • Disc information: format, timing, and whether the title is interactive.

Settings save as you change them, and every one of them is also readable and writable from the shell; see Settings from the command line.

Interactive titles

Branches are cut as ordinary tracks, and each segment's header declares where it can go. At a decision point vxp reads that table out of the disc and offers exactly the destinations it names. A key takes its branch as soon as it is pressed, and a question left unanswered plays again until one is, which is how the discs are cut to be played (docs/format.md has the evidence):

A Batman XP disc playing into a decision point, with the branches read off the disc

Reaching a choice point on Batman vs The Joker. The four destinations
are read from the segment header, not guessed at.

The command line on Windows

Everything below prints to standard output and sets an exit code, and on macOS and Linux it behaves like any other program. On Windows vxp.exe is built as a GUI program so that it never opens a console of its own, and it borrows the console of whatever started it instead. Pipes and redirection to a file work as usual. What changes is that cmd and PowerShell do not wait for a GUI program when you type its name at the prompt: the prompt comes back straight away, the output follows it, and the exit code is not seen. Press Enter for a fresh prompt.

To wait, and get the output and the exit code:

Shell Recipe
PowerShell Pipe it anywhere: vxp info disc.zip | Out-Default, | Out-File out.txt, | Select-String Tracks. $LASTEXITCODE is then set.
PowerShell Start-Process vxp -ArgumentList 'info','disc.zip' -Wait -NoNewWindow -PassThru and read .ExitCode
cmd Batch files already wait, and set %ERRORLEVEL%. At the prompt, start /wait "" vxp info disc.zip.
Git Bash, MSYS2 Waits normally.

In PowerShell, use | Out-File rather than >: PowerShell does not wait for a GUI program it is only redirecting, so vxp info disc.zip > out.txt leaves the file empty. The same line in cmd writes the file. $v = vxp version does not wait either; $v = vxp version | Out-String does.

Standard input works when it is piped, so a script can come from anywhere:

"track 6", "choice 2", "play track", "expect track 32" | vxp run disc.zip --script - | Out-Default

Typing a script into vxp run --script - at an interactive prompt is unreliable on Windows, because the shell is reading the same keyboard; use --commands or a file.

Inspecting a disc

vxp info    <disc.cue> [--json]              Format, timing and the track list
vxp tracks  <disc.cue> [--playable] [--json] Just the track list
vxp map     <disc.cue> [--json]              Segment kinds and the branch table
vxp graph   <disc.cue> [--format dot|mermaid|json] [--out FILE]
vxp headers <disc.cue> [--track N] [--frames N] [--all]
vxp verify  <disc.cue> [--deep] [--json]     Check the disc reads back cleanly

vxp graph writes the branch structure of an interactive title as a graph:

vxp graph "Some Title.cue" --format dot | dot -Tpng -o story.png

Exporting

vxp export <disc.cue> --out DIR [--track N] [--start N] [--frames N]
                                [--every N] [--scale N] [--no-audio] [--no-video]
vxp frame  <disc.cue> --track N [--frame N] --out FILE.png [--scale N]
vxp audio  <disc.cue> --out FILE.wav [--track N]

export and frame also accept --brightness, --contrast, --gamma, --saturation and --swizzle.

vxp export "Some Title.cue" --track 2 --out frames

Driving it headlessly

vxp run executes the emulator with no window, as fast as it decodes. Because playback is clocked by the audio the player generates, a headless run is the same loop without a sound card, which makes scripted runs deterministic.

vxp run "Some Title.cue" --commands "track 6; choice 2; play track; expect track 32"
Option Effect
--script FILE Read commands from a file, or - for standard input
--commands "a; b; c" Commands inline
--wav FILE Record the session soundtrack
--frames-out DIR Write every decoded frame as a PNG
--max-frames N Stop writing frames after N
--max-seconds N Ceiling on play all and play track, in seconds of playback. Default 3600
--json Machine-readable status output

Script commands, one per line or separated by semicolons, with # for comments:

Command Meaning
track N Jump to a track
play [5s|90f|track|all] Play for a duration, to the end of the track, or to the end
pause / resume / stop Transport
next / prev / back Segment navigation
seek 5s / seek -2s / frame N Move within a track
step [N] Step frames and pause
speed 2.0 Playback rate
choice N Queue a branch for the end of the segment
choose N Take a branch immediately
screenshot FILE Write a PNG
status Print the player state
expect FIELD VALUE Check track, frame, state, kind or choices
echo TEXT Print a line

A failed expect sets the exit code, so a script doubles as a regression test for a disc.

Settings from the command line

Every setting the menus expose is readable and writable from the shell.

vxp config list [filter] [--json]
vxp config get <setting> [--json]
vxp config set <setting> <value>
vxp config reset [<setting>|all]
vxp config recent [clear]
vxp config path

vxp bind list [--json]
vxp bind set <action> <control>      # vxp bind set TogglePause Space
vxp bind add <action> <control>      # vxp bind add TogglePause Pad:A
vxp bind clear <action>
vxp bind reset [<action>|all]
vxp bind keys                        # every bindable key name

Controls are written as Space, Ctrl+Q, Shift+Left, F11, Pad:A, Pad:DPadUp or Pad:LeftTrigger+.

Settings live in %APPDATA%\vxp on Windows and ~/.config/vxp elsewhere; VXP_CONFIG_DIR overrides that. Set VXP_TRACE_INPUT=1 to log raw input events, which is useful when a binding is not doing what you expect, or VXP_TRACE_MENU=1 to log the window messages behind the native menu bar.

How it works

src/Vxp.Core        Disc mounting, format detection, decoders, player state machine
  Discs/            Cue sheet parsing and track-level disc access
  Format/           Interleaving, frame layout, video and audio decode, header parsing
  Emulation/        Transport, timing, interactive branch logic, disc survey
src/Vxp             The vxp binary
  Cli/              Subcommands and the headless session driver
  Config/           Settings model and storage
  Input/            Actions, bindings and input routing
  Ui/               Bitmap font, drawing surface, menus, status overlay
    Native/         The same menu pages rendered as a Windows menu bar
  Video/            Picture adjustment, PNG and WAV writers
tests/              Vxp.Core.Tests and Vxp.App.Tests

Vxp.Core has no dependencies beyond the base class library and no reference to SDL, so it can be reused headlessly. The SDL front end is a host: it pulls PCM, puts pixels on screen and routes input, and holds no emulation logic of its own.

The disc format, including the register map and the branch table, is written up in docs/format.md, along with an explicit list of what is confirmed and what is still guesswork.

Status

Every tested disc plays through as built, including the interactive stories and the scored quizzes. Black and white VideoNow discs play too. What is still open is listed in docs/format.md: a disc whose programme is in the Color format, to confirm that Color plays at twice CD speed like the Color clips on XP discs, and what a few rarely set header registers do.

Credits

Builds on PVDTools by saramibreak, which established the sync word, the frame sizes and the pixel layout for the Color and XP formats.

Licence

MIT. See LICENSE.

VideoNow is a trademark of Hasbro. This project is not affiliated with or endorsed by Hasbro or Tiger Electronics.

About

A VideoNow XP emulator: decodes and plays Hasbro/Tiger VideoNow discs, with interactive branching

Topics

Resources

Stars

15 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages