cbusillo / BD_to_AVP

3D Blu-ray to Apple Vision Pro converter
GNU General Public License v3.0
61 stars 5 forks source link

BD-to-AVP 3D Blu-ray Disc to Apple Vision Pro README

Introduction

This tool processes 3D video content from Blu-ray discs, ISO images, MKV files, or mts files, creating a final video file compatible with the Apple Vision Pro. It uses FFmpeg, MakeMKV, and Wine for video extraction, audio transcoding, and video stream merging to convert from Mpeg 4 MVC 3D video to MV-HEVC 3D video. The tool also injects 360° metadata into the video file for spatial media playback. You have the option of AI upscaling the video to 4K resolution and AI OCR of subtitles. The videos will play directly in the Files app on the AVP.

Screenshots

Screenshot of main screen Screenshot of about screen

GUI install

To install the GUI version of Blu-ray to Vision Pro, download the latest release from the releases page. Open the DMG file and drag the app to your Applications folder. On the first run of the app you will be prompted for your password to install the necessary dependencies. It will appear to be doing nothing for around ten minutes. After that it will open to the GUI or give you an error. If you receive an error, please open an issue, so I can help.

Terminal install or update (See releases for GUI version)

To quickly install or update BD_to_AVP, run the following command in your terminal:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/cbusillo/BD_to_AVP/release/installer.sh)"

Prerequisites

Ensure the following are installed on your Mac (If not using the Quick Install or GUI):

Manual Installation (Out of date)

To set up your macOS environment for video processing, including creating and handling 3D video content, follow these steps to install the necessary tools using Homebrew and manual installation. This includes the installation of Homebrew itself,FFmpeg for video encoding and decoding, Wine for running Windows applications, MakeMKV for ripping Blu-ray and DVD to MKV, spatial-media-kit-tool for handling spatial media, and MP4Box for multimedia packaging.

# Install Rosetta 2
/usr/sbin/softwareupdate --install-rosetta --agree-to-license

# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Install FFmpeg, MakeMKV, MP4Box, mkvtoolnix and Python 3.12
brew install ffmpeg makemkv mp4box mkvtoolnix python@3.12 --no-quarantine 

# Install Wine
brew tap homebrew/cask-versions
brew install --cask --no-quarantine wine-stable

# Ensure Python 3.12 is correctly installed then create a virtual environment
python3.12 -m pip install --upgrade pip
python3.12 -m venv ~/.bd_to_avp_venv

# Activate the virtual environment and install BD_to_AVP
source ~/.bd_to_avp_venv/bin/activate
pip install bd_to_avp

# Create a symbolic link to the bd-to-avp command
ln -s ~/.bd_to_avp_venv/bin/bd-to-avp /opt/homebrew/bin/bd-to-avp

GUI Usage

If you have installed the terminal version and wish to use the GUI version, you can run the following command in your terminal:

bd-to-avp

As long as you provide no arguments, the GUI will open.

Terminal Usage

Navigate to the tool's directory in your terminal and execute the command with the required and optional parameters:

Command Syntax

bd-to-avp --source <source> [--source-folder <source-folder>] [options]

Parameters

Stage Names

Examples

Process a Blu-ray disc:

bd-to-avp --source disc:0 --output-root-folder /path/to/output

Process an ISO image:

bd-to-avp --source /path/to/movie.iso --output-root-folder /path/to/output

Process an MKV file:

bd-to-avp --source /path/to/movie.mkv --output-root-folder /path/to/output --transcode-audio

Upscale Quality

For most users, the default values of 75 HEVC Quality and 75 Upscale Quality provides a good tradeoff of preserving all the details of the original film, the extra details generated by the upscaler, while also keeping the size of the resulting video manageable.

If you would like to change the default quality, here are some recommended alternative settings sorted by final output size, with some notes about the quality of the results.

HEVC Quality Upscale Quality Min Processing Space Needed Final Size Notes
85 85 ~ 225 GB ~ 95 GB These settings are arguably "too" high. Only for those obsessed with maintaining the best possible quality.
85 50 ~ 130 GB ~ 62 GB A reasonable choice for "Best Quality" encoding.
75 75 ~ 100 GB ~ 47 GB The default setting.
75 50 ~ 75 GB ~ 37 GB Provides a good trade-off for minimizing storage space while retaining quality throughout the process.
65 65 ~ 75 GB ~ 32 GB Compression artifacting is very visible in dark scenes or on fast-moving objects, but is otherwise okay.

HEVC Quality values below 65 are not recommended when upscaling. At that quality level, you are essentially upscaling compression artifacts. Keeping the video in 1080p and increasing the HEVC Quality will result in a better viewing experience.

Note on Blu-ray drives

If your BD drive does not seem to be compatible with your M-series Mac, it's possible that the error is related to the region code, which BDs handle differently than DVDs.

Solution

This method has been effective in resolving compatibility issues.

Contribution

Contribute to the project by submitting pull requests or opening issues for bugs and feature requests.

Acknowledgements

Big thanks to: