Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run camera with lastest raspbian OS (libcamera) #1467

Open
yceballost opened this issue Jan 6, 2025 · 0 comments
Open

Can't run camera with lastest raspbian OS (libcamera) #1467

yceballost opened this issue Jan 6, 2025 · 0 comments

Comments

@yceballost
Copy link

yceballost commented Jan 6, 2025

Describe The Problem:
I can't see image in webcam in homekit

Camera is working when I run libcamera-hello

Logs:

[1/6/2025, 9:52:22 PM] Printer camera 0C3A is running on port 43127.
[1/6/2025, 9:52:22 PM] Please add [Printer camera 0C3A] manually in Home app. Setup Code: 952-43-213
[1/6/2025, 9:52:26 PM] [Camera FFmpeg] [Printer camera] Video stream requested: 1280 x 720, 30 fps, 299 kbps
[1/6/2025, 9:52:26 PM] [Camera FFmpeg] [Printer camera] Starting video stream: 1280 x 720, 30 fps, 299 kbps
[1/6/2025, 9:52:26 PM] [Camera FFmpeg] [Printer camera] Stream command: ffmpeg -re -f video4linux2 -i /dev/video0 -an -sn -dn -codec:v h264_omx -pix_fmt yuv420p -color_range mpeg -r 30 -f rawvideo -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease,scale=trunc(iw/2)*2:trunc(ih/2)*2 -b:v 299k -payload_type 99 -ssrc 9058517 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params Hvl0RH/N58iRpYHtr2nyEQu+mkFxDfFjMNx82iaX srtp://192.168.0.244:61014?rtcpport=61014&pkt_size=1316 -loglevel level+verbose -progress pipe:1
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [info] ffmpeg version 5.1.6-0+deb12u1+rpt1 Copyright (c) 2000-2024 the FFmpeg developers
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [info]   built with gcc 12 (Debian 12.2.0-14)
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [info]   configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [info]   libavutil      57. 28.100 / 57. 28.100
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [info]   libavcodec     59. 37.100 / 59. 37.100
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [info]   libavformat    59. 27.100 / 59. 27.100
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [info]   libavdevice    59.  7.100 / 59.  7.100
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [info]   libavfilter     8. 44.100 /  8. 44.100
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [info]   libswscale      6.  7.100 /  6.  7.100
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [info]   libswresample   4.  7.100 /  4.  7.100
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [info]   libpostproc    56.  6.100 / 56.  6.100
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [video4linux2,v4l2 @ 0x55945bbaa0] [verbose] fd:3 capabilities:a5a00001
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [video4linux2,v4l2 @ 0x55945bbaa0] [verbose] Querying the device for the current frame size
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [video4linux2,v4l2 @ 0x55945bbaa0] [verbose] Setting frame size to 1280x720
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [video4linux2,v4l2 @ 0x55945bbaa0] [warning] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [video4linux2,v4l2 @ 0x55945bbaa0] [warning] Time per frame unknown
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [video4linux2,v4l2 @ 0x55945bbaa0] [error] ioctl(VIDIOC_STREAMON): Invalid argument
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] [error] /dev/video0: Invalid argument
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] FFmpeg exited with code: 1 and signal: null (Error)
[1/6/2025, 9:52:27 PM] [Camera FFmpeg] [Printer camera] Stopped video stream.

Homebridge Config:

 {
            "name": "Camera FFmpeg",
            "cameras": [
                {
                    "name": "Printer camera",
                    "motion": false,
                    "unbridge": true,
                    "videoConfig": {
                        "source": "-re -f video4linux2 -i /dev/video0",
                        "stillImageSource": "-re -f video4linux2 -ss 0.9 -i /dev/video0 -vframes 1",
                        "maxStreams": 1,
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "maxFPS": 30,
                        "vcodec": "h264_omx",
                        "debug": true
                    }
                }
            ],
}

Environment:

  • Node.js Version: v22.12.0
  • NPM Version: 10.9.0
  • Homebridge Version: 1.8.5
  • Homebridge Camera FFmpeg Version: 3.1.4
  • Homebridge Config UI X Plugin Version: 4.67.0
  • Operating System: Raspbian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant