]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
examples : add support for decoding input with ffmpeg (Linux) (#2133)
authorWilliam Tambellini <redacted>
Tue, 21 May 2024 15:31:41 +0000 (08:31 -0700)
committerGitHub <redacted>
Tue, 21 May 2024 15:31:41 +0000 (18:31 +0300)
commit1b51fdf170714dcdd8fb9cfd02dcee684aac6150
tree9156742a05495129e65f0667862b33477790b07b
parentadee3f9c1faec890eb0c5f3f6f2f73597a8b3962
examples : add support for decoding input with ffmpeg (Linux) (#2133)

- search for ffmpeg libs/headers at cmake time
- added ffmpeg-transcode.cpp into libcommon if ffmpeg on
- hooked ffmpeg trancoding in common read_wav(...)
- passed test:
./main -m ggml-base.en.bin -f samples/jfk.mp3
CMakeLists.txt
cmake/FindFFmpeg.cmake [new file with mode: 0644]
examples/CMakeLists.txt
examples/common.cpp
examples/ffmpeg-transcode.cpp [new file with mode: 0644]
examples/main/CMakeLists.txt
samples/.gitignore
samples/jfk.mp3 [new file with mode: 0644]
tests/CMakeLists.txt