瀏覽代碼

Fix ffmpeg build

master
Ray Burgemeestre 5 月之前
父節點
當前提交
25431decea
共有 1 個檔案被更改,包括 8 行新增5 行删除
  1. +8
    -5
      ffmpeg/Makefile

+ 8
- 5
ffmpeg/Makefile 查看文件

sudo apt-get install -y yasm sudo apt-get install -y yasm
sudo apt-get install -y nasm # apparently x264 switched to this sudo apt-get install -y nasm # apparently x264 switched to this


mkdir x264_out
mkdir ffmpeg_out
mkdir -p x264_out
mkdir -p ffmpeg_out

cp -prv 5.1-0004-fix-binutils.patch ffmpeg/


pushd x264 && \ pushd x264 && \
git checkout 2451a7282463f68e532f2eee090a70ab139bb3e7 git checkout 2451a7282463f68e532f2eee090a70ab139bb3e7
pushd ffmpeg && git checkout n3.1 pushd ffmpeg && git checkout n3.1
#git checkout 71052d85c16bd65fa1e3e01d9040f9a3925efd7a # or my muxing code won't work, they've modified the example since fba1592f35501bff0f28d7885f4128dfc7b82777 #git checkout 71052d85c16bd65fa1e3e01d9040f9a3925efd7a # or my muxing code won't work, they've modified the example since fba1592f35501bff0f28d7885f4128dfc7b82777
pushd ffmpeg && \ pushd ffmpeg && \
./configure --cxx=$$(which c++) --enable-static --enable-shared --enable-libx264 --enable-gpl --disable-swresample --prefix=$$(realpath $$PWD/../ffmpeg_out) && \
./configure --cxx=$$(which c++) --enable-static --enable-shared --enable-libx264 --enable-gpl --disable-swresample --prefix=$$(realpath $$PWD/../ffmpeg_out) && \
sed -i.bak 's/HAVE_ARC4RANDOM 1/HAVE_ARC4RANDOM 0/g' ./config.h && \ sed -i.bak 's/HAVE_ARC4RANDOM 1/HAVE_ARC4RANDOM 0/g' ./config.h && \
make -j $$(nproc) && \
patch libavcodec/x86/mathops.h 5.1-0004-fix-binutils.patch && \
make -j $$(nproc) && \
make install make install


package-ubuntu1804: package-ubuntu1804:
rm -rf ffmpeg_out rm -rf ffmpeg_out


shell: shell:
FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash
FLAGS="-i --privileged" bash ../ubuntu2404.sh /bin/bash

Loading…
取消
儲存