You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: enhance ffmpeg detection to support macOS and cross-platform installations
Fixes#13 - RTSP camera streaming failing on macOS due to ffmpeg not being detected.
Problem:
- Electron apps launched from Finder on macOS don't inherit user shell PATH
- Homebrew installs ffmpeg to /opt/homebrew/bin (Apple Silicon) or /usr/local/bin (Intel Mac)
- Current implementation only checks PATH, causing ffmpeg to not be found
Solution:
- Enhanced checkFfmpegAvailability() to check common installation paths across all platforms
- Tries PATH first (backward compatible), then checks platform-specific locations:
* macOS: Homebrew (Apple Silicon & Intel), MacPorts
* Linux: apt/yum/pacman, Snap, Flatpak, manual installs
* Windows: common Program Files locations
- Provides helpful error messages with platform-specific installation instructions
Impact:
- macOS users with Homebrew-installed ffmpeg can now use RTSP cameras
- Linux users with Snap/Flatpak installations are now supported
- Better diagnostics when ffmpeg is not found
- No breaking changes - fully backward compatible
0 commit comments