Skip to content

Commit dc387fc

Browse files
committed
Merge branch 'v1' of github.com:mutablelogic/go-whisper into v1
2 parents a254587 + 6c99e1d commit dc387fc

File tree

3 files changed

+41
-7
lines changed

3 files changed

+41
-7
lines changed

doc/build.md

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,38 @@ Libs: -framework Accelerate -framework Metal -framework Foundation -framework Co
2727

2828
I don't know what the windows one should be as I don't have a windows machine.
2929

30-
## Ubuntu 22.04
30+
## FFmpeg
3131

32-
Installing FFmpeg 6.1 libraries
32+
Required for decoding media files into audio which is suitable for audio detection and transcription.
33+
34+
### MacOS
35+
36+
On Macintosh with homebrew, for example:
37+
38+
```bash
39+
brew install ffmpeg@6 make
40+
brew link ffmpeg@6
41+
```
42+
43+
### Debian
44+
45+
If you're using Debian you may not be able to get the ffmpeg 6 unless you first of all add the debi-multimedia repository. You can do this by adding the following line to your /etc/apt/sources.list file:
46+
47+
Add the repository as privileged user:
48+
49+
```bash
50+
echo "deb https://www.deb-multimedia.org $(lsb_release -sc) main" >> /etc/apt/sources.list
51+
apt update -y -oAcquire::AllowInsecureRepositories=true
52+
apt install -y --force-yes deb-multimedia-keyring
53+
apt install -y libavcodec-dev libavdevice-dev libavfilter-dev libavutil-dev libswscale-dev libswresample-dev
54+
```
55+
56+
### Ubuntu 22.04
57+
58+
Easier with Ubuntu! Installing FFmpeg 6.1 libraries:
3359

3460
```bash
35-
sudo add-apt-repository -y ppa:ubuntuhandbook1/ffmpeg6
36-
sudo apt-get update
37-
sudo apt-get install -y libavcodec-dev libavdevice-dev libavfilter-dev libavutil-dev libswscale-dev libswresample-dev
61+
add-apt-repository -y ppa:ubuntuhandbook1/ffmpeg6
62+
apt-get update
63+
apt-get install -y libavcodec-dev libavdevice-dev libavfilter-dev libavutil-dev libswscale-dev libswresample-dev
3864
```

etc/Dockerfile.amd64

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ ARG BASE_CUDA_RUN_CONTAINER=nvidia/cuda:${CUDA_VERSION}-runtime-ubuntu${UBUNTU_V
77
# Setup build container
88
FROM ${BASE_CUDA_DEV_CONTAINER} AS build
99
ARG CUDA_DOCKER_ARCH=all
10-
RUN apt-get -y update && apt-get -y install build-essential git libgomp1 curl
10+
RUN apt-get -y update \
11+
&& apt-get -y install build-essential software-properties-common git libgomp1 curl pkg-config \
12+
&& add-apt-repository -y ppa:ubuntuhandbook1/ffmpeg6 \
13+
&& apt-get -y update \
14+
&& apt-get -y install libavcodec-dev libavdevice-dev libavfilter-dev libavutil-dev libswscale-dev libswresample-dev
1115

1216
# Install go
1317
ARG GO_VERSION=1.22.5

etc/Dockerfile.arm64

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ ARG BASE_CUDA_RUN_CONTAINER=nvcr.io/nvidia/l4t-cuda:${CUDA_VERSION}-runtime
77
# Setup build container
88
FROM ${BASE_CUDA_DEV_CONTAINER} AS build
99
ARG CUDA_DOCKER_ARCH=all
10-
RUN apt-get -y update && apt-get -y install build-essential git libgomp1 curl
10+
RUN apt-get -y update \
11+
&& apt-get -y install build-essential software-properties-common git libgomp1 curl pkg-config \
12+
&& add-apt-repository -y ppa:ubuntuhandbook1/ffmpeg6 \
13+
&& apt-get -y update \
14+
&& apt-get -y install libavcodec-dev libavdevice-dev libavfilter-dev libavutil-dev libswscale-dev libswresample-dev
1115

1216
# Install go
1317
ARG GO_VERSION=1.22.5

0 commit comments

Comments
 (0)