homebridge / docker-homebridge

Homebridge Docker. HomeKit support for the impatient using Docker on x86_64, Raspberry Pi (armhf) and ARM64. Includes ffmpeg + libfdk-aac.
https://hub.docker.com/r/homebridge/homebridge/
GNU General Public License v3.0
2.57k stars 240 forks source link

Rpi4B 64bit Raspbian 11 - problem with ffmpeg (FFmpeg process creation failed: spawn...ENOENT) #408

Closed S474N closed 2 years ago

S474N commented 2 years ago

Describe Your Problem:

No image and stream in Homekit (Home.app). This problem is after switching from 32bit Raspbian to 64bit. Raspbian 11. Same configuration works on another 32bit RPi absolutelly correctly.

Logs:

[1/6/2022, 10:08:50 AM] [Camera-ffmpeg] [Cam 14] FFmpeg process creation failed: spawn /homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/ffmpeg-for-homebridge/ffmpeg ENOENT

[1/6/2022, 10:08:50 AM] [Camera-ffmpeg] [Cam 14] FFmpeg process creation failed: spawn /homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/ffmpeg-for-homebridge/ffmpeg ENOENT

Docker Start Command:

  homebridge:
    container_name: homebridge
    image: oznu/homebridge:2021-12-12-no-avahi-arm64v8
#    image: oznu/homebridge:no-avahi-arm64v8
    restart: unless-stopped
    environment:
      - TZ=Europe/Prague
      - PGID=1000
      - PUID=1000
      - HOMEBRIDGE_CONFIG_UI=1
      - HOMEBRIDGE_CONFIG_UI_PORT=8581
    volumes:
      - ./volumes/homebridge:/homebridge
    network_mode: host

Homebridge Config:


            "platform": "Camera-ffmpeg",
            "cameras": [
              {
                    "name": "Cam 14",
                    "manufacturer": "Hikvision",
                    "model": "DS-2CD2785FWD-IZS",
                    "serialNumber": "xxxxxx",
                    "firmwareRevision": "5.6.5",
                    "videoConfig": {
                        "source": "-rtsp_transport tcp -re -i rtsp://user:pass@IP:554/Streaming/Channels/502",
                        "stillImageSource": "-i http://user:pass@IP/ISAPI/ContentMgmt/StreamingProxy/channels/502/picture",
                        "maxStreams": 2,
                        "maxWidth": 1280,
                        "maxHeight": 1024,
                        "maxFPS": 20
                    }
                }

Screenshots:

Environment:

S474N commented 2 years ago

Tested also Ubuntu Bionic Beaver (18.04.6 LTS) and same problem.

singas77 commented 2 years ago

Have you installed ffmpeg ? This is for raspPi

sudo curl -Lf# https://github.com/homebridge/ffmpeg-for-homebridge/releases/latest/download/ffmpeg-raspbian-armv6l.tar.gz | sudo tar xzf - -C / --no-same-owner

S474N commented 2 years ago

@singas77 we talk about dockerized version, where ffmpeg is inside of cointainer. Or no? ;)

singas77 commented 2 years ago

Nah I original had homebridge installed on macOS no docker involved Installed ffmpeg however it's looking like ffmpeg may have been the issue Now all good running on raspberry pi No motion detection for HomeKit

S474N commented 2 years ago

My problem is with dockerized verzion -> look on this project, his name is docker-homebridge. ffmpeg is inside. I think, that is problem with 64bit Raspbian.

singas77 commented 2 years ago

My issue is solved Cheers

S474N commented 2 years ago

So, you don't have dockerized version, right?

singas77 commented 2 years ago

No 1st I had homebridge running in macOS native no virtualisation Now I have homebridge running native on raspberry No docker

S474N commented 2 years ago

Ok, so you had absolutely another issue than me ;)

singas77 commented 2 years ago

I would suggest looking at ffmpeg I think that was my issue

Sunoo commented 2 years ago

ENOENT means you’re missing FFmpeg from your system.

S474N commented 2 years ago

Tested in shell of Homebridge container, and directory and file ffmpeg does exists:

image

S474N commented 2 years ago

image

S474N commented 2 years ago

New version 1.3.9 still same problem. Tested also :ubuntu (Ubuntu Bionic Beaver (18.04.6 LTS) and same problem.

S474N commented 2 years ago

Tested upgrade ffmpeg inside container to newest version and everything WORKS CORRECTLY!

image

image

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Mikka20 commented 2 years ago

@S474N: i have the same problem too. @oznu: Is it possible to change the ffmpeg version or change from ubuntu 18.04 to 20.04?

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.