I want to try whisper for ffmpeg (available since 8.0).
I installed app-accessibility/whisper-cpp-1.8.2 from guru overlay
then cloned ffmpeg (8.0 tag) then ran configure :
Code: Select all
./configure --prefix=/usr --enable-version3 --disable-shared --enable-gpl \
--enable-nonfree --enable-static --enable-pthreads --enable-filters \
--enable-openssl --enable-runtime-cpudetect --enable-libvpx --enable-libx264 \
--enable-libx265 --enable-libopus --enable-libspeex --enable-libfreetype \
--enable-fontconfig --enable-libzimg --enable-libvorbis --enable-libwebp \
--enable-libfribidi --enable-libharfbuzz --enable-libpulse --enable-libass \
--enable-whisperCode: Select all
require_pkg_config whisper whisper >= 1.7.5 whisper.h whisper_init_from_file_with_params
check_pkg_config whisper whisper >= 1.7.5 whisper.h whisper_init_from_file_with_params
test_pkg_config whisper whisper >= 1.7.5 whisper.h whisper_init_from_file_with_params
pkg-config --exists --print-errors whisper >= 1.7.5
Package whisper was not found in the pkg-config search path.
Perhaps you should add the directory containing `whisper.pc'
to the PKG_CONFIG_PATH environment variable
Package 'whisper' not found
ERROR: whisper >= 1.7.5 not found using pkg-configCode: Select all
# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
MyPN="whisper.cpp"
MyP="${MyPN}-${PV}"
DESCRIPTION="Port of OpenAI's Whisper model in C/C++ "
HOMEPAGE="https://github.com/ggml-org/whisper.cpp"
SRC_URI="https://github.com/ggml-org/whisper.cpp/archive/refs/tags/v${PV}.tar.gz -> ${MyP}.tar.gz"
S="${WORKDIR}/${MyP}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="blas cuda hip opencl sdl2 vulkan"
CDEPEND="blas? ( sci-libs/openblas )
cuda? ( dev-util/nvidia-cuda-toolkit:= )
hip? ( sci-libs/hipBLAS:= )
opencl? ( sci-libs/clblast:= )
sdl2? ( media-libs/libsdl2:= )"
DEPEND="${CDEPEND}
vulkan? ( dev-util/vulkan-headers )
"
RDEPEND="${CDEPEND}
vulkan? ( media-libs/vulkan-loader )
"
BDEPEND="media-libs/shaderc"
src_configure() {
# Note: CUDA and HIP are currently untested. Build failures may occur.
# Turning off examples causes errors during configure
# -DWHISPER_BUILD_TESTS=$(usex test)
local mycmakeargs=(
-DWHISPER_BUILD_EXAMPLES=ON
-DGGML_CCACHE=OFF
-DBUILD_SHARED_LIBS=OFF
-DGGML_BLAS=$(usex blas)
-DGGML_CLBLAST=$(usex opencl)
-DGGML_CUBLAS=$(usex cuda)
-DGGML_HIPBLAS=$(usex hip)
-DGGML_VULKAN=$(usex vulkan)
-DWHISPER_SDL2=$(usex sdl2)
)
cmake_src_configure
}Code: Select all
/usr/bin
/usr/bin/vad-speech-segments
/usr/bin/whisper-bench
/usr/bin/whisper-cli
/usr/bin/whisper-server
/usr/include
/usr/include/ggml-alloc.h
/usr/include/ggml-backend.h
/usr/include/ggml-blas.h
/usr/include/ggml-cann.h
/usr/include/ggml-cpp.h
/usr/include/ggml-cpu.h
/usr/include/ggml-cuda.h
/usr/include/ggml-metal.h
/usr/include/ggml-opt.h
/usr/include/ggml-rpc.h
/usr/include/ggml-sycl.h
/usr/include/ggml-vulkan.h
/usr/include/ggml-webgpu.h
/usr/include/ggml.h
/usr/include/gguf.h
/usr/include/whisper.h
/usr/lib
/usr/lib/pkgconfig
/usr/lib/pkgconfig/whisper.pc
/usr/lib64
/usr/lib64/cmake
/usr/lib64/cmake/ggml
/usr/lib64/cmake/ggml/ggml-config.cmake
/usr/lib64/cmake/ggml/ggml-version.cmake
/usr/lib64/cmake/whisper
/usr/lib64/cmake/whisper/whisper-config.cmake
/usr/lib64/cmake/whisper/whisper-version.cmake
/usr/lib64/libggml-base.a
/usr/lib64/libggml-cpu.a
/usr/lib64/libggml.a
/usr/lib64/libwhisper.a
/usr/share
/usr/share/doc
/usr/share/doc/whisper-cpp-1.8.2
/usr/share/doc/whisper-cpp-1.8.2/AUTHORS.bz2
/usr/share/doc/whisper-cpp-1.8.2/README.md.bz2
/usr/share/doc/whisper-cpp-1.8.2/README_sycl.md.bz2
