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
This commit is contained in:
William Tambellini
2024-05-21 08:31:41 -07:00
committed by GitHub
parent adee3f9c1f
commit 1b51fdf170
9 changed files with 574 additions and 2 deletions

3
samples/.gitignore vendored
View File

@ -1 +1,4 @@
*
!jfk.wave
!jfk.mp3

BIN
samples/jfk.mp3 Normal file

Binary file not shown.