Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down