Av1an/.github/workflows/tests.yml

128 lines
3.7 KiB
YAML
Raw Normal View History

name: tests
on:
push:
paths-ignore:
- "*.yml"
- .gitignore
- "*.md"
pull_request:
paths-ignore:
- "*.yml"
- .gitignore
- "*.md"
2020-08-10 22:22:55 +00:00
env:
deps: tree
DEBIAN_FRONTEND: noninteractive
jobs:
validate:
2020-12-23 12:06:36 +00:00
name: ${{ matrix.name }} ${{ matrix.enc }}
runs-on: ubuntu-latest
container: registry.gitlab.com/luigi311/encoders-docker:latest
strategy:
fail-fast: false
matrix:
enc: [aom, rav1e, svt_av1, vpx, x265, x264]
2020-12-23 12:06:36 +00:00
name: [baseline, target_quality]
include:
2020-12-23 12:06:36 +00:00
- name: baseline
flags: ""
2020-12-23 12:06:36 +00:00
- name: target_quality
flags: --target_quality 95
2020-12-23 12:06:36 +00:00
- name: chunk_hybrid
enc: aom
2020-08-14 18:32:47 +00:00
flags: --chunk_method hybrid
2020-12-23 12:06:36 +00:00
- name: chunk_select
enc: aom
2020-08-27 17:40:30 +00:00
flags: --chunk_method select
- name: chunk_ffms2
enc: aom
flags: --chunk_method vs_ffms2
- name: chunk_lsmash
enc: aom
flags: --chunk_method vs_lsmash
2020-12-23 12:06:36 +00:00
- name: scenes
enc: aom
flags: -s scenes.json
2020-12-23 12:06:36 +00:00
- name: workers
enc: aom
flags: -w 2
2020-12-23 12:06:36 +00:00
- name: vmaf
enc: aom
flags: --vmaf
2020-12-23 12:06:36 +00:00
- name: vmaf_plots
enc: aom
2020-11-26 21:20:49 +00:00
flags: --vmaf_plots
2020-12-23 12:06:36 +00:00
- name: extra_splits
enc: aom
flags: -xs 10
2020-12-23 12:06:36 +00:00
- name: split_aom_keyframes
enc: aom
flags: --split_method aom_keyframes
2020-12-23 12:06:36 +00:00
- name: video_settings
2020-12-23 11:50:41 +00:00
enc: aom
flags: -v " --cpu-used=3 --end-usage=q --cq-level=30 --threads=8 "
2020-12-23 12:06:36 +00:00
- name: temp
2020-12-23 11:50:41 +00:00
enc: aom
flags: --temp temporary
steps:
- uses: actions/checkout@v2
- name: Validate encoders
run: |
aomenc --help
SvtAv1EncApp --help
rav1e --help
x265 --help || true
- name: Install requirements
run: |
apt-get update && apt-get install -y ${{ env.deps }}
python3 setup.py install
- name: Download videos
run: |
for url in raw.githubusercontent.com/OpenVisualCloud/SVT-AV1-Resources/master randomderp.com; do
curl -LO https://$url/video.tar.gz && break
done
tar xf video.tar.gz
- name: Testing ${{ matrix.name }}
run: |
./av1an.py -i bus_cif.y4m -enc ${{ matrix.enc }} -log log_av1an -tr 20 --keep -o "bus_cif.mkv" ${{ matrix.flags }}
du -h bus_cif.mkv
tree -a
- name: Cat log
if: always()
run: cat log_av1an.log
docker:
runs-on: ubuntu-18.04
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/av1an # list of Docker images to use as base name for tags
tag-sha: true # add git short SHA as Docker tag
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}