Skip to content

Latest commit

 

History

History

bluray-data

bluray-data

A command line tool for formatting and recording data to Blu-ray Disc (e.g. BD-R, BD-RE)

Set PATH to compiled programs

Windows

# .NET 6.0
$env:Path = "$( (pwd).Path )/bin/net60/;" + $env:Path 

# or

# .NET 4.8
$env:Path = "$( (pwd).Path )/bin/net48/;" + $env:Path 

macOS / Linux

# .NET 6.0
export PATH=$PWD/bin/net60/:$PATH

List options

bluray-data --help

List available devices

bluray-data list-devices

Eject

bluray-data eject --device-index 0

Close tray

bluray-data close-tray --device-index 0

Disc Info

bluray-data disc-info --device-index 0

Write Speed Info

bluray-data speed-info --device-index 0

Quick format

bluray-data format --device-index 0

# force
bluray-data format --force --device-index 0

Full format

# this may take a long time
bluray-data format --full --device-index 0

# force
bluray-data format --full --force --device-index 0

Burn

Download test files

Windows

You need wget. Install with winget:

winget install wget
mkdir -p $HOME/DataDisc/Hippo

pushd $HOME/DataDisc/Hippo
wget https://archive.org/download/WildlifeVideoMedia/Hippo.ogv 
popd

mkdir -p $HOME/DataDisc/Elephant

pushd $HOME/DataDisc/Elephant
wget https://archive.org/download/WildlifeVideoMedia/Elephant.ogv
popd
macOS / Linux
mkdir -p $HOME/DataDisc/Hippo

pushd $HOME/DataDisc/Hippo
wget https://archive.org/download/WildlifeVideoMedia/Hippo.ogv 
popd

mkdir -p $HOME/DataDisc/Elephant

pushd $HOME/DataDisc/Elephant
wget https://archive.org/download/WildlifeVideoMedia/Elephant.ogv
popd

Start a new disc

NOTE: We use the --overwrite flag to start a new disc.

# Linux and macOS (bash /zsh)
bluray-data burn \
    --overwrite \
    --source-folder $HOME/DataDisc/Elephant \
    --volume-label Animals \
    --eject \
    --device-index 0
# Windows (PowerShell)
bluray-data burn `
    --overwrite `
    --source-folder $HOME/DataDisc/Elephant `
    --volume-label Animals `
    --eject `
    --device-index 0

Append to existing data

NOTE: No --overwrite flag

# Linux and macOS (bash /zsh)
bluray-data close-tray --device-index 0

bluray-data burn \
    --source-folder $HOME/DataDisc/Hippo \
    --volume-label Animals \
    --eject \
    --device-index 0
# Windows (PowerShell)
bluray-data close-tray --device-index 0

bluray-data burn `
    --source-folder $HOME/DataDisc/Hippo `
    --volume-label Animals `
    --eject `
    --device-index 0