hjdhjd / homebridge-unifi-protect

:video_camera: Complete HomeKit integration for all UniFi Protect device types with full support for most features including HomeKit Secure Video, and more. https://homebridge.io
Other
1.39k stars 83 forks source link

FFMPEG Issues #1039

Closed MikyMeen closed 5 months ago

MikyMeen commented 5 months ago

Homebridge UniFi Protect Version

v3.2.9

Homebridge Platform and OS

macOS Catalina

Homebridge Version

v1.7.0

Node Version

v21.6.1

UniFi OS Version

v3.2.9

UniFi Protect Controller Version

General release

Describe the problem

Since updating Unif OS and Protect to latest versions, homekit now needs FFMPEG. I have downloaded it as per the scripts in your support page but still no luck

[1/25/2024, 9:51:48 AM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 1158) is running on port 51546. [1/25/2024, 9:51:51 AM] [UniFi Protect] Error running ffmpeg: Command failed: ffmpeg -hide_banner -version dyld: Symbol not found: _VTRegisterSupplementalVideoDecoderIfAvailable Referenced from: /usr/local/bin/ffmpeg (which was built for Mac OS X 14.0) Expected in: /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox

[1/25/2024, 9:51:51 AM] [UniFi Protect] Unable to probe the capabilities of your Homebridge host without access to 'ffmpeg'. Ensure that it is available in your path and correctly working.

Homebridge HBUP JSON configuration

{
    "controllers": [
        {
            "address": "192.168.0.1",
            "username": "MPTS HB",
            "password": "MPT3chS0luti0ns"
        }
    ],
    "name": "UniFi Protect",
    "platform": "UniFi Protect"
}

Relevant log output

[1/25/2024, 9:51:48 AM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 1158) is running on port 51546.
[1/25/2024, 9:51:51 AM] [UniFi Protect] Error running ffmpeg: Command failed: ffmpeg -hide_banner -version
dyld: Symbol not found: _VTRegisterSupplementalVideoDecoderIfAvailable
  Referenced from: /usr/local/bin/ffmpeg (which was built for Mac OS X 14.0)
  Expected in: /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox

[1/25/2024, 9:51:51 AM] [UniFi Protect] Unable to probe the capabilities of your Homebridge host without access to 'ffmpeg'. Ensure that it is available in your path and correctly working.

Acknowledgment that you are only running UniFi OS and UniFi Protect releases from the Ubiquiti Official release channel

hjdhjd commented 5 months ago

Catalina is explicitly unsupported by ffmpeg-for-homebridge. Please see the ffmpeg-for-homebridge for supported versions - currently Ventura or better. You can also roll your own on Catalina using Homebrew. Instructions here.

Quick view of instructions:

brew tap homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac

TL;DR: you are running an unsupported macOS release. You will need to get your own working FFmpeg.

github-actions[bot] commented 5 months ago

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.