homebridge / ffmpeg-for-homebridge

Static FFmpeg binaries for Homebridge with support for audio (libfdk-aac) and hardware-accelerated decoding and encoding (h264_qsv, h264_v4l2m2m, videotoolbox).
109 stars 13 forks source link

Request: Include libspeex codec #75

Closed titoudoc closed 9 months ago

titoudoc commented 9 months ago

Describe The Bug: Nestcam plugin error in homebrige : missing libspeex codec

To Reproduce: Install ffmpeg-for-homebridge make Nest-cam pluggin work (prior error was saying FFMEG is missing). Camera stream is visible but I can't send audio to the camera via iPhone microphone. Error show in RED in log : This version of FFMPEG does not support the audio codec 'libspeex'. You may need to recompile FFMPEG using '--enable-libspeex' and restart homebridge.

Expected behavior: Working bidirectionnal audio

ffmpeg output:

ffmpeg -version
ffmpeg version 6.0-homebridge-alpine-armv7l-static Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r10) 20220924
configuration: --enable-hardcoded-tables --enable-nonfree --enable-gpl --enable-hardcoded-tables --enable-hardcoded-tables --enable-openssl --enable-libdav1d --enable-libsvtav1 --enable-libx264 --enable-libxvid --enable-libvidstab --enable-libzimg --enable-lv2 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libfdk-aac --enable-libwebp --enable-libsrt --disable-debug --disable-shared --enable-pthreads --enable-static --enable-version3 --extra-cflags='-I/build/workspace/include -I/build/workspace/include/lilv-0' --extra-ldexeflags=-static --extra-ldflags=-L/build/workspace/lib --extra-libs='-ldl -lpthread -lm -lz' --pkgconfigdir=/build/workspace/lib/pkgconfig --pkg-config-flags=--static --prefix=/build/workspace --extra-version=homebridge-alpine-armv7l-static
libavutil      58.  2.100 / 58.  2.100
libavcodec     60.  3.100 / 60.  3.100
libavformat    60.  3.100 / 60.  3.100
libavdevice    60.  1.100 / 60.  1.100
libavfilter     9.  3.100 /  9.  3.100
libswscale      7.  1.100 /  7.  1.100
libswresample   4. 10.100 /  4. 10.100
libpostproc    57.  1.100 / 57.  1.100

Screenshots: Sans titre 2

Environment:

hjdhjd commented 9 months ago

This isn’t a bug but an enhancement request. Will look into it for future releases. Thanks for the request.

titoudoc commented 9 months ago

Ok thanks, should I submit an enhancement request ?

hjdhjd commented 9 months ago

Already took care of it. Thanks!

n0rt0nthec4t commented 1 month ago

Any chance to update the build after all these months with libspeex? Not a major change to include the library in the build

hjdhjd commented 1 month ago

PRs are always welcome. The builds will be updated when time allows for it...it's not a trivial process, timewise.

TL;DR: always a chance. They'll be updated as time allows.

n0rt0nthec4t commented 1 month ago

Ok.. just testing one now, including bumping to ffmpeg 6.1.2

hjdhjd commented 1 month ago

Enjoy. It’s harder than it looks. 😄

n0rt0nthec4t commented 1 month ago

https://github.com/homebridge/ffmpeg-for-homebridge/pull/80

n0rt0nthec4t commented 1 month ago

Completed under 04cee63338a962723862a83c29d2501a5d5fcccb

hjdhjd commented 1 month ago

Included in v2.1.2. Thanks for the contributions.

n0rt0nthec4t commented 1 month ago

No worries. Thanks for the fast version release update