A command line tool for formatting and recording data to Blu-ray Disc (e.g. BD-R, BD-RE)
# .NET 6.0
$env:Path = "$( (pwd).Path )/bin/net60/;" + $env:Path
# or
# .NET 4.8
$env:Path = "$( (pwd).Path )/bin/net48/;" + $env:Path
# .NET 6.0
export PATH=$PWD/bin/net60/:$PATH
bluray-data --help
bluray-data list-devices
bluray-data eject --device-index 0
bluray-data close-tray --device-index 0
bluray-data disc-info --device-index 0
bluray-data speed-info --device-index 0
bluray-data format --device-index 0
# force
bluray-data format --force --device-index 0
# this may take a long time
bluray-data format --full --device-index 0
# force
bluray-data format --full --force --device-index 0
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
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
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
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