File tree Expand file tree Collapse file tree 6 files changed +16
-84
lines changed
Filter options
Expand file tree Collapse file tree 6 files changed +16
-84
lines changed
Original file line number Diff line number Diff line change @@ -103,30 +103,6 @@ jobs:
103
103
run : |
104
104
docker run --rm ffmpeg:cuda-ubuntu -buildconf
105
105
106
- build-cuda-rocky-docker :
107
- name : build in Rockylinux docker with cuda
108
- runs-on : ubuntu-latest
109
- steps :
110
- - name : Checkout code
111
- uses : actions/checkout@v2
112
-
113
- - name : pull base image
114
- id : cuda_centos_pull
115
- run : |
116
- docker pull nvidia/cuda:11.6.0-devel-centos8
117
- docker pull rockylinux:8
118
- - name : run if cuda_centos_pull failed
119
- if : failure() && steps.cuda_centos_pull.outcome == 'failure'
120
- run : |
121
- docker pull nvidia/cuda:11.6.0-devel-centos8
122
- docker pull rockylinux:8
123
- - name : build ffmpeg
124
- run : |
125
- docker build -t ffmpeg:cuda-rocky -f cuda-rocky.dockerfile .
126
- - name : test run ffmepg
127
- run : |
128
- docker run --rm ffmpeg:cuda-rocky -buildconf
129
-
130
106
build-full-static :
131
107
name : full static build in docker
132
108
runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ workspace
3
3
.idea
4
4
linux
5
5
.artifacts
6
+ build
Original file line number Diff line number Diff line change @@ -150,14 +150,9 @@ $ docker build --tag=ffmpeg:default --output type=local,dest=build -f Dockerfile
150
150
##### CUDA
151
151
These builds are always built with the --enable-gpl-and-non-free switch, as CUDA is non-free. See https://ffmpeg.org/legal.html
152
152
``` bash
153
- export DOCKER_BUILDKIT=1
154
-
155
- # # Set the DIST (`ubuntu` or `rocky`) and VER (ubuntu: `16.04` , `18.04`, `20.04` or rocky: `8`) environment variables to select the preferred Docker base image.
156
- $ export DIST=centos
157
- $ export VER=8
158
153
159
154
# # Start the build
160
- $ docker build --tag=ffmpeg:cuda-$DIST -f cuda-$DIST .dockerfile --build-arg VER= $VER .
155
+ $ docker build --tag=ffmpeg:cuda-$DIST -f cuda-ubunu .dockerfile --build-arg .
161
156
```
162
157
163
158
Build an ` export.dockerfile ` that copies only what you need from the image you just built as follows. When running,
Original file line number Diff line number Diff line change @@ -878,7 +878,7 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
878
878
fi
879
879
CFLAGS+=" -I/usr/local/cuda/include"
880
880
LDFLAGS+=" -L/usr/local/cuda/lib64"
881
- CONFIGURE_OPTIONS+=(" --enable-cuda-nvcc" " --enable-nvenc" " --enable-cuda-llvm" )
881
+ CONFIGURE_OPTIONS+=(" --enable-cuda-nvcc" " --enable-cuvid " " --enable- nvenc" " --enable-cuda-llvm" )
882
882
883
883
if [ -z " $LDEXEFLAGS " ]; then
884
884
CONFIGURE_OPTIONS+=(" --enable-libnpp" ) # Only libnpp cannot be statically linked.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
ARG VER=22.04
2
2
3
- FROM nvidia/cuda:11.8.0-devel-ubuntu${VER} AS build
3
+ FROM ubuntu:${VER} AS build
4
+
5
+ ARG CUDAVER=11.8.0-1
4
6
5
7
ENV DEBIAN_FRONTEND noninteractive
6
8
ENV NVIDIA_VISIBLE_DEVICES all
7
9
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility,video
8
10
9
11
RUN apt-get update \
10
- && apt-get -y --no-install-recommends install build-essential curl ca-certificates libva-dev python3 python-is-python3 ninja-build meson \
11
- && apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* \
12
- && update-ca-certificates
12
+ && apt-get -y --no-install-recommends install wget ca-certificates \
13
+ && update-ca-certificates \
14
+ && wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb \
15
+ && dpkg -i cuda-keyring_1.0-1_all.deb \
16
+ && apt-get update
17
+
18
+ RUN apt-get -y --no-install-recommends install build-essential curl libva-dev python3 python-is-python3 ninja-build meson \
19
+ cuda="${CUDAVER}" \
20
+ && apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
21
+
13
22
14
23
WORKDIR /app
15
24
COPY ./build-ffmpeg /app/build-ffmpeg
You can’t perform that action at this time.
0 commit comments