File tree Expand file tree Collapse file tree 5 files changed +12
-13
lines changed Expand file tree Collapse file tree 5 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 1515 - name : Checkout code
1616 uses : actions/checkout@v2
1717
18+ - name : install libva-drm2
19+ run : |
20+ apt update
21+ apt install -y libva-drm2
22+
1823 - name : build ffmpeg
1924 run : |
2025 while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
Original file line number Diff line number Diff line change @@ -172,6 +172,8 @@ $ sudo docker run --gpus all ffmpeg-cuda -hwaccel cuvid -c:v h264_cuvid -i https
172172
173173If you want to enable CUDA, please refer to [ these] ( #Cuda-installation ) and install the SDK.
174174
175+ If you want to enable Vaapi, please refer to [ these] ( #Vaapi-installation ) and install the driver.
176+
175177``` bash
176178$ ./build-ffmpeg --build
177179```
Original file line number Diff line number Diff line change @@ -590,11 +590,11 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
590590
591591 # Vaapi doesn't work well with static links ffmpeg.
592592 if [ -z " $LDEXEFLAGS " ]; then
593- if library_exists " libdrm " ; then
593+ if library_exists " libva " ; then
594594 if build " libpciaccess" ; then
595595 download " https://gitlab.freedesktop.org/xorg/lib/libpciaccess/-/archive/libpciaccess-0.16/libpciaccess-libpciaccess-0.16.tar.bz2" " libpciaccess-0.16.tar.bz2"
596596 execute autoreconf --force --verbose --install
597- execute ./configure --prefix=" ${WORKSPACE} " --disable-static --enable-shared CFLAGS=-fPIC
597+ execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static CFLAGS=-fPIC
598598 execute make -j $MJOBS
599599 execute make install
600600 build_done " libpciaccess"
@@ -617,14 +617,6 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
617617 execute make install
618618 build_done " libva"
619619 fi
620-
621- if build " intel-vaapi-driver" ; then
622- download " https://github.com/intel/intel-vaapi-driver/releases/download/2.4.1/intel-vaapi-driver-2.4.1.tar.bz2"
623- execute ./configure --prefix=" ${WORKSPACE} " --disable-static --enable-shared
624- execute make -j $MJOBS
625- execute make install
626- build_done " intel-vaapi-driver"
627- fi
628620 CONFIGURE_OPTIONS+=(" --enable-vaapi" )
629621 fi
630622 fi
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ FROM nvidia/cuda:11.1-devel-centos${VER} AS build
44
55ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility,video
66
7- RUN yum groupinstall -y "Development Tools" \
8- && yum install -y kernel-devel kernel-headers curl python3 vaapi-driver-i965 \
7+ RUN yum group install -y "Development Tools" \
8+ && yum install -y curl python3 libva \
99 && rm -rf /var/cache/yum/* \
1010 && yum clean all
1111
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ FROM nvidia/cuda:11.1-devel-ubuntu${VER} AS build
55ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility,video
66
77RUN apt-get update \
8- && apt-get -y --no-install-recommends install build-essential curl ca-certificates python3 i965-va-driver \
8+ && apt-get -y --no-install-recommends install build-essential curl ca-certificates python3 libva-drm2 \
99 && apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* \
1010 && update-ca-certificates
1111
You can’t perform that action at this time.
0 commit comments