Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
|
26fe783c8e | |
![]() |
b71c1cc06f | |
![]() |
8dd78a16b2 |
|
@ -10,8 +10,6 @@ steps:
|
|||
- name: build
|
||||
image: debian:11-slim
|
||||
commands:
|
||||
|
||||
- apt-get update
|
||||
- |
|
||||
sed -i 's/main/main non-free contrib/' /etc/apt/sources.list
|
||||
sed s/^deb/deb-src/ /etc/apt/sources.list > /etc/apt/sources.list.d/sources.list
|
||||
|
@ -27,8 +25,8 @@ steps:
|
|||
mkdir /usr/local/src/ffmpeg
|
||||
cd /usr/local/src/ffmpeg
|
||||
apt-get source ffmpeg
|
||||
echo 'CONFIG+= --enable-nvenc --enable-cuda' >> ffmpeg-*/debian/rules
|
||||
cd ffmpeg-* && dpkg-buildpackage -r -b -j12 && cd ..
|
||||
echo 'CONFIG+= --enable-cuda --enable-libnpp --enable-nonfree' >> "$(ls ffmpeg-*/debian/rules)"
|
||||
cd ffmpeg-* && dpkg-buildpackage -r -b -j$(nproc) && cd ..
|
||||
cp *.deb /drone/src
|
||||
|
||||
- name: release
|
||||
|
|
|
@ -14,8 +14,8 @@ RUN make && make install
|
|||
WORKDIR /usr/local/src/ffmpeg
|
||||
RUN apt-get source ffmpeg
|
||||
RUN ls -lah ffmpeg-*/debian/rules
|
||||
RUN echo 'CONFIG+= --enable-nvenc --enable-cuda' >> $(ls ffmpeg-*/debian/rules)
|
||||
RUN cd ffmpeg-* && dpkg-buildpackage -r -b -j12
|
||||
RUN echo 'CONFIG+= --enable-cuda --enable-libnpp --enable-nonfree' >> "$(ls ffmpeg-*/debian/rules)"
|
||||
RUN cd ffmpeg-* && dpkg-buildpackage -r -b -j$(nproc)
|
||||
RUN ls *.deb
|
||||
RUN dpkg -i \
|
||||
ffmpeg_4.3.3-0+deb11u1_amd64.deb \
|
||||
|
|
Loading…
Reference in New Issue