Update Dockerfile

Add ffmpeg hwaccel support for Comet Lake and above using vaapi. New driver (intel-media-va-driver-non-free) only seems to exist in focal and above (see: https://packages.ubuntu.com/search?suite=default&section=all&arch=any&keywords=intel-media&searchon=names)
This commit is contained in:
edk4971 2020-09-05 06:40:39 -04:00 committed by GitHub
parent a8556a729b
commit c23419c5e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
FROM ubuntu:18.04
FROM ubuntu:focal
LABEL maintainer "blakeb@blakeshome.com"
ENV DEBIAN_FRONTEND=noninteractive
@ -17,6 +17,7 @@ RUN apt -qq update && apt -qq install --no-install-recommends -y \
ffmpeg \
# VAAPI drivers for Intel hardware accel
libva-drm2 libva2 i965-va-driver vainfo \
intel-media-va-driver-non-free \
&& python3.7 -m pip install -U wheel setuptools \
&& python3.7 -m pip install -U \
opencv-python-headless \