cd /Volumes/Phobos/projects/home_video_loader
./install.shThe install script will:
- Build the
tvcodebinary - Offer installation options
- Set up PATH access
Recommended: Choose option 1 to install to /usr/local/bin
# Navigate to any folder with videos
cd ~/Movies/vacation-2024
# Run the transcoder
tvcodeThat's it! Your videos will be converted to Apple TV-compatible H.264/AAC/MP4 format.
For each video that needs conversion:
- Input:
family_dinner.mkv - Output:
family_dinner_appletv.mp4
Original files are never modified.
- FFmpeg installed:
brew install ffmpeg(macOS) - Rust installed: https://rustup.rs/
Convert home videos:
cd ~/Desktop/home-videos
tvcodeConvert downloaded movies:
cd ~/Downloads
tvcodeConvert and organize:
cd ~/Videos/unsorted
tvcode
# Review the _appletv.mp4 files
# Move them to your organized folder
mv *_appletv.mp4 ~/Videos/apple-tv/All videos are converted to:
- Video: H.264 High Profile (8-20 Mbps depending on resolution)
- Audio: AAC stereo at 192 kbps
- Container: MP4 with fast-start for streaming
Hardware acceleration makes this very fast:
- 4K video: ~2-5 minutes per hour of video
- 1080p video: ~1-3 minutes per hour of video
- 720p video: ~0.5-1 minute per hour of video
(Actual speed depends on your hardware)
Command not found:
# Check if it's built
ls /Volumes/Phobos/projects/home_video_loader/target/release/tvcode
# If yes, run directly
/Volumes/Phobos/projects/home_video_loader/target/release/tvcode
# Or re-run install script
cd /Volumes/Phobos/projects/home_video_loader
./install.shFFmpeg not found:
brew install ffmpeg# If installed to /usr/local/bin
sudo rm /usr/local/bin/tvcode
# If added to PATH, remove the line from ~/.zshrc or ~/.bashrc