@@ -62,10 +62,10 @@ Requirements Linux
6262
6363```
6464# Debian and Ubuntu
65- sudo apt-get install build-essential curl g++
65+ $ sudo apt-get install build-essential curl g++
6666
6767# Fedora
68- sudo dnf install @development-tools
68+ $ sudo dnf install @development-tools
6969```
7070
7171Installation
@@ -76,37 +76,36 @@ Installation
7676Open your command line and run (needs curl to be installed):
7777
7878``` bash
79- bash <( curl -s " https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install.sh?v1" )
79+ $ bash <( curl -s " https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install.sh?v1" )
8080```
8181This command downloads the build script and automatically starts the build process.
8282
8383### Run with Docker
8484
8585#### Default - Without CUDA
8686``` bash
87- git clone https://github.com/markus-perl/ffmpeg-build-script.git
88- cd ffmpeg-build-script
89- docker build --tag=ffmpeg .
90- docker run ffmpeg -i https://files.coconut.co.s3.amazonaws.com/test.mp4 -f webm -c:v libvpx -c:a libvorbis - > /tmp/test.mp4
87+ $ git clone https://github.com/markus-perl/ffmpeg-build-script.git
88+ $ cd ffmpeg-build-script
89+ $ sudo docker build --tag=ffmpeg .
90+ $ docker run ffmpeg -i https://files.coconut.co.s3.amazonaws.com/test.mp4 -f webm -c:v libvpx -c:a libvorbis - > /tmp/test.mp4
9191```
9292
9393#### With CUDA
9494``` bash
95- git clone https://github.com/markus-perl/ffmpeg-build-script.git
96- cd ffmpeg-build-script
97- docker build --tag=ffmpeg-cuda -f cuda-ubuntu.dockerfile .
98- 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 - > /tmp/test.mp4
95+ $ git clone https://github.com/markus-perl/ffmpeg-build-script.git
96+ $ cd ffmpeg-build-script
97+ $ sudo docker build --tag=ffmpeg-cuda -f cuda-ubuntu.dockerfile .
98+ $ 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 - > /tmp/test.mp4
9999```
100100
101101### Common installation
102102
103103``` bash
104- git clone https://github.com/markus-perl/ffmpeg-build-script.git
105- cd ffmpeg-build-script
106- ./build-ffmpeg --help
104+ $ git clone https://github.com/markus-perl/ffmpeg-build-script.git
105+ $ cd ffmpeg-build-script
106+ $ ./build-ffmpeg --help
107107```
108108
109-
110109### Cuda installation
111110
112111CUDA is a parallel computing platform developed by NVIDIA.
@@ -121,11 +120,22 @@ Usage
121120------
122121
123122``` bash
124- ./build-ffmpeg --help Display usage information
125- ./build-ffmpeg --build Starts the build process
126- ./build-ffmpeg --cleanup Remove all working dirs
123+ Usage: build-ffmpeg [OPTIONS]
124+ Options:
125+ -h, --help Display usage information
126+ --version Display version information
127+ -b, --build Starts the build process
128+ -c, --cleanup Remove all working dirs
129+ -f, --full-static Complete static build of ffmpeg (eg. glibc, pthreads etc...) ** not recommend**
130+ Note: Because of the NSS (Name Service Switch), glibc does not recommend static links.
127131```
128132
133+ ## Notes of static link
134+ - Because of the NSS (Name Service Switch), glibc does ** not recommend** static links.
135+ See detail below: https://sourceware.org/glibc/wiki/FAQ#Even_statically_linked_programs_need_some_shared_libraries_which_is_not_acceptable_for_me.__What_can_I_do.3F
136+
137+ - The libnpp in the CUDA SDK cannot be statically linked.
138+
129139Contact
130140-------
131141
0 commit comments