File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 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
167167meson setup -Denable_tests=false -Denable_docs=false --buildtype=release --default-library=static .. --prefix " $BUILD_PATH " --bindir=" $BUILD_PATH /bin" --libdir=" $BUILD_PATH /lib" || fail
168168ninja -j $( nproc) || fail
169169sudo ninja install || fail
170- sudo cp $BUILD_PATH /bin/SvtAv1 * $BIN_PATH || fail
170+ sudo cp $BUILD_PATH /bin/vmaf $BIN_PATH || fail
171171
172172# Install dependencies for GPU: ffnvcodec
173173msg " Install the newest ffnvcodec."
@@ -176,13 +176,14 @@ git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git || fail
176176cd nv-codec-headers || fail
177177PATH=" $BIN_PATH :$PATH " make -j$( nproc) || fail
178178sudo make install
179- sudo cp $BUILD_PATH /bin/vmaf $BIN_PATH || fail
180179
181180# Install ffmpeg
182181msg " Install ffmpeg 4.4."
183182cd $SOURCE_PATH || fail
184183wget -O- http://ffmpeg.org/releases/ffmpeg-4.4.tar.xz | tar xJ -C . || fail
185184cd 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
186187PATH=" $BIN_PATH :$PATH " PKG_CONFIG_PATH=" $BUILD_PATH /lib/pkgconfig:$PKG_CONFIG_PATH " ./configure \
187188 --prefix=" $BUILD_PATH " \
188189 --pkg-config-flags=" --static" \
@@ -193,7 +194,9 @@ PATH="$BIN_PATH:$PATH" PKG_CONFIG_PATH="$BUILD_PATH/lib/pkgconfig:$PKG_CONFIG_PA
193194 --bindir=" $BIN_PATH " \
194195 --enable-gpl \
195196 --enable-gnutls \
196- --enable-cuda-sdk \
197+ --enable-cuda \
198+ --enable-cuda-nvcc \
199+ --enable-nvenc \
197200 --enable-libnpp \
198201 --enable-libaom \
199202 --enable-libass \
You can’t perform that action at this time.
0 commit comments