GitHub CI: build own x264 [Linux]

In order to support 10-bit codecs.
This commit is contained in:
Martin Pulec
2020-08-04 16:34:12 +02:00
parent ba44dc5a35
commit f3003ed18f
4 changed files with 10 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
git clone --depth 1 https://git.ffmpeg.org/ffmpeg.git /var/tmp/ffmpeg git clone --depth 1 https://git.ffmpeg.org/ffmpeg.git /var/tmp/ffmpeg
cd /var/tmp/ffmpeg cd /var/tmp/ffmpeg
( git clone --depth 1 -b nasm-2.13.xx https://github.com/sezero/nasm.git && cd nasm && ./autogen.sh && ./configure && make nasm.1 && make ndisasm.1 && make && sudo make install )
( git clone --depth 1 http://git.videolan.org/git/x264.git && cd x264 && ./configure --disable-static --enable-shared && make && sudo make install )
( git clone -b sdk/8.1 https://git.videolan.org/git/ffmpeg/nv-codec-headers.git && cd nv-codec-headers && make && sudo make install ) ( git clone -b sdk/8.1 https://git.videolan.org/git/ffmpeg/nv-codec-headers.git && cd nv-codec-headers && make && sudo make install )
( git clone --depth 1 https://aomedia.googlesource.com/aom && mkdir -p aom/build && cd aom/build && cmake -DBUILD_SHARED_LIBS=1 .. && make && sudo make install ) ( git clone --depth 1 https://aomedia.googlesource.com/aom && mkdir -p aom/build && cd aom/build && cmake -DBUILD_SHARED_LIBS=1 .. && make && sudo make install )
./configure --disable-static --enable-shared --enable-gpl --enable-libx264 --enable-libx265 --enable-libopus --enable-nonfree --enable-nvenc --enable-libaom --enable-libvpx --enable-libspeex --enable-libmp3lame ./configure --disable-static --enable-shared --enable-gpl --enable-libx264 --enable-libx265 --enable-libopus --enable-nonfree --enable-nvenc --enable-libaom --enable-libvpx --enable-libspeex --enable-libmp3lame

View File

@@ -1,6 +1,8 @@
#!/bin/bash -eux #!/bin/bash -eux
cd /var/tmp/ffmpeg cd /var/tmp/ffmpeg
( cd nasm && sudo make install )
( cd x264 && sudo make install )
( cd nv-codec-headers && sudo make install ) ( cd nv-codec-headers && sudo make install )
( cd aom/build && sudo make install ) ( cd aom/build && sudo make install )
sudo make install sudo make install

View File

@@ -21,7 +21,12 @@ sudo apt install libx11-dev
sudo apt install libsdl2-dev sudo apt install libsdl2-dev
sudo apt install libssl-dev sudo apt install libssl-dev
sudo apt install portaudio19-dev libjack-jackd2-dev libasound-dev libv4l-dev sudo apt install portaudio19-dev libjack-jackd2-dev libasound-dev libv4l-dev
# for FFmpeg
sudo apt build-dep ffmpeg sudo apt build-dep ffmpeg
sudo apt-get remove 'libx264*' nasm
sudo apt --no-install-recommends install asciidoc xmlto
sudo apt install libopencv-dev sudo apt install libopencv-dev
sudo apt install libglib2.0-dev libcurl4-nss-dev sudo apt install libglib2.0-dev libcurl4-nss-dev
( mkdir gpujpeg/build && cd gpujpeg/build && CC=$CUDA_HOST_COMPILER cmake .. && make && sudo make install && sudo ldconfig ) ( mkdir gpujpeg/build && cd gpujpeg/build && CC=$CUDA_HOST_COMPILER cmake .. && make && sudo make install && sudo ldconfig )

View File

@@ -84,7 +84,7 @@ jobs:
uses: actions/cache@v1 uses: actions/cache@v1
with: with:
path: '/var/tmp/ffmpeg' path: '/var/tmp/ffmpeg'
key: cache-ffmpeg-6 key: cache-ffmpeg-7
- name: Build FFmpeg - name: Build FFmpeg
if: steps.cache-ffmpeg.outputs.cache-hit != 'true' if: steps.cache-ffmpeg.outputs.cache-hit != 'true'
run: .github/scripts/Linux/download_build_ffmpeg.sh run: .github/scripts/Linux/download_build_ffmpeg.sh