You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+90-20Lines changed: 90 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,8 @@ because I don't have the resources and the time to maintain other systems.
32
32
*`theora`: Free lossy video compression format
33
33
*`opus`: Lossy audio coding format
34
34
*`srt`: Secure Reliable Transport
35
+
36
+
### HardwareAccel
35
37
*`nv-codec`: [NVIDIA's GPU accelerated video codecs](https://devblogs.nvidia.com/nvidia-ffmpeg-transcoding-guide/). Installation is triggered only if CUDA installation is detected, follow [these](#Cuda-installation) instructions for installation. Supported codecs in nvcodec:
36
38
* Decoders
37
39
* H264 `h264_cuvid`
@@ -46,30 +48,43 @@ because I don't have the resources and the time to maintain other systems.
46
48
* Encoders
47
49
* H264 `nvenc_h264`
48
50
* H265 `nvenc_hevc`
51
+
*`amf`: [Advanced Media Framework SDK](https://gpuopen.com/advanced-media-framework/). Optimal access to AMD GPUs for multimedia processing. Supported codecs in amf:
52
+
* Encoders
53
+
* H264 `h264_amf`
54
+
* H265 `hevc_amf`
55
+
*`vaapi`: [Video Acceleration API](https://trac.ffmpeg.org/wiki/Hardware/VAAPI). Supported codecs in vaapi:
56
+
* Encoders
57
+
* H264 `h264_vaapi`
58
+
* H265 `hevc_vaapi`
59
+
* Motion JPEG `mjpeg_vaapi`
60
+
* MPEG2 video `mpeg2_vaapi`
61
+
* VP8 `vp8_vaapi`
62
+
* VP9 `vp9_vaapi`
63
+
49
64
50
65
## Continuos Integration
51
66
ffmpeg-build-script is rockstable. Every commit runs against Linux and MacOS with https://github.com/markus-perl/ffmpeg-build-script/actions just to make sure everything works as expected.
52
67
53
-
Requirements MacOS
54
-
------------
68
+
69
+
## Requirements
70
+
### MacOS
55
71
56
72
* XCode 10.x or greater
57
73
58
-
Requirements Linux
59
-
------------
74
+
###Linux
75
+
60
76
* Debian >= Buster, Ubuntu => Focal Fossa, other Distributions might work too
61
-
* build-essentials, curl, and Python3 is required installed:
77
+
* build-essentials, curl, and Python3 is required installed
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!
110
+
111
+
If you are running below kind of operating system and having Docker version 19.03 or higher, this is your best option.
112
+
* Ubuntu >= 16.04 (16.04, 18.04, 20.04)
113
+
* Centos >= 7 (7, 8)
114
+
115
+
1. Enable Docker BuildKit
116
+
```bash
117
+
$ export DOCKER_BUILDKIT=1
118
+
```
119
+
120
+
2. Set the following DIST (`ubuntu` or `centos`) and VER (ubuntu: `16.04` , `18.04`, `20.04` or centos: `7`, `8`) environment variables in conjunction with your operating system.
4. Build an `export.dockerfile` that copies only what you need from the image you just built as follows. When running, move the library in the lib to a location where the linker can find it or set the `LD_LIBRARY_PATH`.
132
+
Since we have matched the operating system and version, it should work well with dynamic links. If it doesn't work, edit the `export.dockerfile` and copy the necessary libraries and try again.
If you use CUDA, Docker must be higher than 19.03.
164
+
Install the driver and `nvidia-docker2` from [here](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#installing-docker-ce).
165
+
You can perform hardware acceleration by GPU by running the following.
0 commit comments