Skip to content

Protocol OmniDrive

Phillippe Pelzer edited this page Nov 15, 2026 · 2 revisions

omnidrive: input protocol

omnidrive: reads a disc sector by sector from an optical drive that runs the OmniDrive firmware. The result is a plain byte stream, so FFmpeg can copy it to an ISO.

The protocol is NoMercy-only. It is read-only.

Since: v1.0.36. This build links libomnidrive 0.1.0. The protocol logs that version on every open.

Quick example

# Linux
ffmpeg -f rawvideo -pix_fmt gray -video_size 2048x512 -i omnidrive:/dev/sr0 -c copy -f rawvideo game.iso

A disc dump has no container FFmpeg could recognise. So the example names the input as raw bytes and copies them out untouched. The URL is the only part specific to this protocol.

Device strings

Form Backend
omnidrive:/dev/sr0 Linux SG_IO pass-through
omnidrive:E: or omnidrive:\\.\E: Windows SPTI pass-through
omnidrive:mock:<path> A plain file treated as a disc. No hardware needed. For tests.

Add ?type=bd for Blu-ray-density media, for example omnidrive:/dev/sr0?type=bd. DVD density is the default.

Try it without a drive

The mock backend turns any file into a disc. This round trip was run on v1.0.47 (linux-x86_64) with a 1 MiB random file. The output was byte-identical, and cmp printed nothing:

ffmpeg -f rawvideo -pix_fmt gray -video_size 2048x512 -i omnidrive:mock:test.iso -c copy -f rawvideo roundtrip.iso
cmp test.iso roundtrip.iso

The log shows what the protocol found:

omnidrive: libomnidrive version 0.1.0.
omnidrive: 512 sectors (1048576 bytes), disc type 2

What you get

  • The protocol returns 2048-byte user-data sectors, one after the other. The size is the capacity the drive reports.
  • It supports seeking and reports its size.
  • It cannot be opened for writing.
  • Today it is a raw sector pipe. It does no disc-type probing, no file extraction and no Wii partition decryption.

Which platforms

The build script scripts/56-omnidrive.sh skips macOS. Every other platform builds it. What the library can do differs:

Platform In the build Real drive access
linux-x86_64 yes yes (SG_IO)
linux-aarch64 yes yes (SG_IO)
windows-x86_64 yes yes (SPTI)
windows-aarch64 yes yes (SPTI)
freebsd-x86_64 yes no. The drive backend is a stub there. Only mock: works.
darwin-arm64, darwin-x86_64 no no

This is per the OmniDrive project. It is not checked here. Only the linux-x86_64 build was run in this documentation pass, and only against the mock backend. The library's own status is that no real OmniDrive-flashed drive has run it yet. Treat real-drive use as unverified.

Options

The protocol has no options. The disc type goes in the URL (?type=bd).

Clone this wiki locally