File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ cd vmaf-2.1.1/libvmaf/build || fail
167
167
meson setup -Denable_tests=false -Denable_docs=false --buildtype=release --default-library=static .. --prefix " $BUILD_PATH " --bindir=" $BUILD_PATH /bin" --libdir=" $BUILD_PATH /lib" || fail
168
168
ninja -j $( nproc) || fail
169
169
sudo ninja install || fail
170
- sudo cp $BUILD_PATH /bin/SvtAv1 * $BIN_PATH || fail
170
+ sudo cp $BUILD_PATH /bin/vmaf $BIN_PATH || fail
171
171
172
172
# Install dependencies for GPU: ffnvcodec
173
173
msg " Install the newest ffnvcodec."
@@ -176,13 +176,14 @@ git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git || fail
176
176
cd nv-codec-headers || fail
177
177
PATH=" $BIN_PATH :$PATH " make -j$( nproc) || fail
178
178
sudo make install
179
- sudo cp $BUILD_PATH /bin/vmaf $BIN_PATH || fail
180
179
181
180
# Install ffmpeg
182
181
msg " Install ffmpeg 4.4."
183
182
cd $SOURCE_PATH || fail
184
183
wget -O- http://ffmpeg.org/releases/ffmpeg-4.4.tar.xz | tar xJ -C . || fail
185
184
cd ffmpeg-4.4 || fail
185
+ # Fix the bug caused by NVCC.
186
+ wget -O- https://github.com/cainmagi/FFmpeg-Encoder-Decoder-for-Python/releases/download/deps-3.0.0/patch-ffmpeg_4_4.tar.xz | tar xJ -C . || fail
186
187
PATH=" $BIN_PATH :$PATH " PKG_CONFIG_PATH=" $BUILD_PATH /lib/pkgconfig:$PKG_CONFIG_PATH " ./configure \
187
188
--prefix=" $BUILD_PATH " \
188
189
--pkg-config-flags=" --static" \
@@ -193,7 +194,9 @@ PATH="$BIN_PATH:$PATH" PKG_CONFIG_PATH="$BUILD_PATH/lib/pkgconfig:$PKG_CONFIG_PA
193
194
--bindir=" $BIN_PATH " \
194
195
--enable-gpl \
195
196
--enable-gnutls \
196
- --enable-cuda-sdk \
197
+ --enable-cuda \
198
+ --enable-cuda-nvcc \
199
+ --enable-nvenc \
197
200
--enable-libnpp \
198
201
--enable-libaom \
199
202
--enable-libass \
You can’t perform that action at this time.
0 commit comments