From 46559dc458f3cf0c5da7f799be4dbcbb27cb2d42 Mon Sep 17 00:00:00 2001 From: Akashi_SN Date: Sun, 11 Oct 2020 21:09:53 +0900 Subject: [PATCH 1/2] Add GitHub Actions --- .github/workflows/build.yml | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..bc85f565 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,65 @@ +name: build test + +on: + push: + paths-ignore: + - '*.md' + pull_request: + branches: [ master ] + +env: + DOCKER_BUILDKIT: 1 + DOCKER_CLI_EXPERIMENTAL: enabled + +jobs: + build-linux: + name: native build in linux + runs-on: ubuntu-20.04 + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: build ffmpeg + run: | + while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done & + SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build + kill %1 + - name: clean up + run: | + ./build-ffmpeg --cleanup + + build-macos: + name: native build in macos + runs-on: macos-10.15 + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: build ffmpeg + run: | + while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done & + SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build + kill %1 + - name: clean up + run: | + ./build-ffmpeg --cleanup + + build-docker: + name: build in docker + runs-on: ubuntu-20.04 + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: build ffmpeg + run: | + docker build -t ffmpeg:ubuntu -f Dockerfile . + docker run --rm ffmpeg:ubuntu + + build-cuda-docker: + name: build in docker with cuda + runs-on: ubuntu-20.04 + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: build ffmpeg + run: | + docker build -t ffmpeg:cuda -f cuda-ubuntu.dockerfile . + docker run --rm ffmpeg:cuda From c6c9562a831107677739d133c436a113b9ccfc74 Mon Sep 17 00:00:00 2001 From: AkashiSN Date: Mon, 12 Oct 2020 12:34:31 +0900 Subject: [PATCH 2/2] remove travis.yml --- .travis.yml | 39 --------------------------------------- README.md | 6 +++--- 2 files changed, 3 insertions(+), 42 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7ef35cdb..00000000 --- a/.travis.yml +++ /dev/null @@ -1,39 +0,0 @@ -language: shell - -os: linux -dist: focal - -jobs: - include: - - name: native build in linux - before_install: - - sudo apt-get update -qq - - sudo apt-get install -qq build-essential curl ca-certificates libz-dev - script: - - while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done & - - SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build - - kill %1 - after_script: - - ./build-ffmpeg --cleanup - - - name: native build in osx - os: osx - osx_image: xcode12.2 - script: - - while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done & - - SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build - - kill %1 - after_script: - - ./build-ffmpeg --cleanup - - - name: build in docker - script: - - docker build -t ffmpeg:ubuntu -f Dockerfile . - after_script: - - docker run --rm ffmpeg:ubuntu - - - name: build in docker with cuda - script: - - docker build -t ffmpeg:cuda -f cuda-ubuntu.dockerfile . - after_script: - - docker run --rm ffmpeg:cuda \ No newline at end of file diff --git a/README.md b/README.md index f5d75292..2cf4c64a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/markus-perl/ffmpeg-build-script.svg?branch=master)](https://travis-ci.org/markus-perl/ffmpeg-build-script) +![build test](https://github.com/markus-perl/ffmpeg-build-script/workflows/build%20test/badge.svg?branch=master) ![FFmpeg build script](https://raw.github.com/markus-perl/ffmpeg-build-script/master/ffmpeg-build-script.png) @@ -44,7 +44,7 @@ because I don't have the resources and the time to maintain other systems. * VP8 `vp8_cuvid` * VP9 `vp9_cuvid` * Encoders - * H264 `nvenc nvenc_h264` + * H264 `nvenc_h264` * H265 `nvenc_hevc` ## Continuos Integration @@ -95,7 +95,7 @@ docker run ffmpeg -i https://files.coconut.co.s3.amazonaws.com/test.mp4 -f webm git clone https://github.com/markus-perl/ffmpeg-build-script.git cd ffmpeg-build-script docker build --tag=ffmpeg-cuda -f cuda-ubuntu.dockerfile . -docker run ffmpeg-cuda -i https://files.coconut.co.s3.amazonaws.com/test.mp4 -f webm -c:v libvpx -c:a libvorbis - > /tmp/test.mp4 +docker run --gpus all ffmpeg-cuda -hwaccel cuvid -c:v h264_cuvid -i https://files.coconut.co.s3.amazonaws.com/test.mp4 -c:v hevc_nvenc -vf scale_npp=-1:1080 - > /tmp/test.mp4 ``` ### Common installation