mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-11-07 16:44:13 +01:00
Update Makefile and ReadMe for ffmpeg v7
This commit is contained in:
parent
a1c504ae9c
commit
fbb8bc6c2f
1
Makefile
1
Makefile
@ -841,6 +841,7 @@ endif
|
|||||||
|
|
||||||
ifdef WHISPER_FFMPEG
|
ifdef WHISPER_FFMPEG
|
||||||
OBJ_COMMON += examples/ffmpeg-transcode.o
|
OBJ_COMMON += examples/ffmpeg-transcode.o
|
||||||
|
override CXXFLAGS := $(CXXFLAGS) -DWHISPER_FFMPEG
|
||||||
override LDFLAGS := $(LDFLAGS) -lavutil -lavformat -lavcodec -lswscale -lswresample
|
override LDFLAGS := $(LDFLAGS) -lavutil -lavformat -lavcodec -lswscale -lswresample
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
10
README.md
10
README.md
@ -205,7 +205,15 @@ The command downloads the `base.en` model converted to custom `ggml` format and
|
|||||||
|
|
||||||
For detailed usage instructions, run: `./main -h`
|
For detailed usage instructions, run: `./main -h`
|
||||||
|
|
||||||
Note that the [main](examples/main) example currently runs only with 16-bit WAV files, so make sure to convert your input before running the tool.
|
Note that the [main](examples/main) example currently runs by default with 16-bit WAV files.
|
||||||
|
|
||||||
|
Building with `WHISPER_FFMPEG=1` enables ffmpeg support to handle other formats:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
WHISPER_FFMPEG=1 make main
|
||||||
|
```
|
||||||
|
|
||||||
|
If you do not want to rebuild it, convert your input before running the tool.
|
||||||
For example, you can use `ffmpeg` like this:
|
For example, you can use `ffmpeg` like this:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user