Skip to content

Commit 71907ce

Browse files
committed
update readme
1 parent 39d8a72 commit 71907ce

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
build-ffmpeg
77
==========
88

9-
The FFmpeg build script provides an easy way to build a static FFmpeg on **OSX** and **Linux** with **non-free codecs** included.
9+
The FFmpeg build script provides an easy way to build a static FFmpeg on **macOS** and **Linux** with **non-free codecs** included.
1010

1111

1212
[![How-To build FFmpeg on MacOS](https://img.youtube.com/vi/Z9p3mM757cM/0.jpg)](https://www.youtube.com/watch?v=Z9p3mM757cM "How-To build FFmpeg on OSX")
@@ -96,15 +96,15 @@ $ bash <(curl -s "https://raw.githubusercontent.com/markus-perl/ffmpeg-build-scr
9696

9797
This command downloads the build script and automatically starts the build process.
9898

99-
### Common installation
99+
### Common installation (macOS, Linux)
100100

101101
```bash
102102
$ git clone https://github.com/markus-perl/ffmpeg-build-script.git
103103
$ cd ffmpeg-build-script
104104
$ ./build-ffmpeg --help
105105
```
106106

107-
### Build in Docker
107+
### Build in Docker (Linux)
108108

109109
The main advantage of using Docker is the ability to reliably build without polluting the host environment. And you don't even have to install the CUDA SDK on your host!
110110

@@ -141,25 +141,25 @@ $ ls build/lib
141141
libnppc.so.11 libnppicc.so.11 libnppidei.so.11 libnppig.so.11
142142
```
143143

144-
### Build in Docker (full static ver.)
144+
### Build in Docker (full static ver.) (Linux)
145145
If you're running an operating system other than the one above, a completely static build may work.
146146
It's easy to do, just run the following command.
147147
```bash
148148
$ sudo -E docker build --tag=ffmpeg:cuda-static --output type=local,dest=build -f full-static.dockerfile .
149149
```
150150

151-
### Run with Docker
151+
### Run with Docker (macOS, Linux)
152152
You can also run the entire Docker if the above two fail.
153153

154-
#### Default - Without CUDA
154+
#### Default - Without CUDA (macOS, Linux)
155155
If you don't use CUDA, it's simple and runs as follows.
156156

157157
```bash
158158
$ sudo docker build --tag=ffmpeg .
159159
$ sudo docker run ffmpeg -i https://files.coconut.co.s3.amazonaws.com/test.mp4 -f webm -c:v libvpx -c:a libvorbis - > test.mp4
160160
```
161161

162-
#### With CUDA
162+
#### With CUDA (Linux)
163163
If you use CUDA, Docker must be higher than 19.03.
164164
Install the driver and `nvidia-docker2` from [here](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#installing-docker-ce).
165165
You can perform hardware acceleration by GPU by running the following.
@@ -168,7 +168,7 @@ $ sudo docker build --tag=ffmpeg:cuda -f cuda-ubuntu.dockerfile .
168168
$ sudo docker run --gpus all ffmpeg-cuda -hwaccel cuvid -c:v h264_cuvid -i https://files.coconut.co.s3.amazonaws.com/test.mp4 -c:v hevc_nvenc -vf scale_npp=-1:1080 - > test.mp4
169169
```
170170

171-
### Common build
171+
### Common build (macOS, Linux)
172172

173173
If you want to enable CUDA, please refer to [these](#Cuda-installation) and install the SDK.
174174

0 commit comments

Comments
 (0)