2020-07-08 20:40:06 +00:00
|
|
|
name: tests
|
2020-07-02 08:35:52 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- "*.yml"
|
|
|
|
- .gitignore
|
|
|
|
- "*.md"
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- "*.yml"
|
|
|
|
- .gitignore
|
|
|
|
- "*.md"
|
2020-08-10 22:22:55 +00:00
|
|
|
|
2020-07-02 08:35:52 +00:00
|
|
|
env:
|
2020-08-10 22:16:14 +00:00
|
|
|
deps: python3-dev libglib2.0-0 libsm6 libxext6 libxrender-dev libgl1-mesa-glx
|
2020-10-08 14:29:44 +00:00
|
|
|
pip_deps: python-Levenshtein
|
2020-07-02 08:35:52 +00:00
|
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
temp: .temp
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
validate:
|
|
|
|
name: ${{ matrix.name }}
|
|
|
|
runs-on: ubuntu-latest
|
2020-11-14 02:34:47 +00:00
|
|
|
container: registry.gitlab.com/luigi311/encoders-docker:latest
|
2020-07-02 08:35:52 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- name: baseline
|
|
|
|
flags: ""
|
2020-11-14 02:34:47 +00:00
|
|
|
- name: svt_av1
|
|
|
|
flags: -enc svt_av1
|
2020-07-02 08:35:52 +00:00
|
|
|
- name: rav1e
|
|
|
|
flags: -enc rav1e
|
2020-07-26 18:53:14 +00:00
|
|
|
- name: x265
|
|
|
|
flags: -enc x265
|
2020-11-14 02:34:47 +00:00
|
|
|
- name: x264
|
|
|
|
flags: -enc x264
|
|
|
|
- name: vpx
|
|
|
|
flags: -enc vpx
|
2020-07-02 08:35:52 +00:00
|
|
|
- name: workers
|
|
|
|
flags: -w 2
|
2020-08-14 18:32:47 +00:00
|
|
|
- name: chunk hybrid
|
|
|
|
flags: --chunk_method hybrid
|
|
|
|
- name: chunk select
|
2020-08-27 17:40:30 +00:00
|
|
|
flags: --chunk_method select
|
2020-07-02 08:35:52 +00:00
|
|
|
- name: video flags
|
|
|
|
flags: -v " --threads=2 --cpu-used=6 --end-usage=q --cq-level=30 "
|
|
|
|
- name: target vmaf
|
2020-11-10 13:11:29 +00:00
|
|
|
flags: -v " --threads=2 --cpu-used=6 --end-usage=q --cq-level=30 " --target_quality 95
|
2020-07-02 08:35:52 +00:00
|
|
|
- name: extra splits
|
|
|
|
flags: -xs 10
|
|
|
|
- name: split method
|
|
|
|
flags: --split_method aom_keyframes
|
|
|
|
- name: temp
|
|
|
|
flags: --temp temporary
|
|
|
|
temp: "temporary"
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Validate encoders
|
|
|
|
run: |
|
|
|
|
aomenc --help
|
|
|
|
SvtAv1EncApp --help
|
|
|
|
rav1e --help
|
2020-10-08 14:29:44 +00:00
|
|
|
x265 --help || true
|
2020-07-02 08:35:52 +00:00
|
|
|
- name: Install requirements
|
|
|
|
run: |
|
|
|
|
apt-get update && apt-get install -y ${{ env.deps }}
|
2020-08-10 22:46:20 +00:00
|
|
|
pip3 install --no-cache-dir -r requirements.txt
|
2020-10-08 14:29:44 +00:00
|
|
|
pip3 install --no-cache-dir ${{ env.pip_deps }}
|
2020-07-02 08:35:52 +00:00
|
|
|
- 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: |
|
|
|
|
[ "${{ matrix.temp }}" != "" ] && TEMP=${{ matrix.temp }} || TEMP=${{ env.temp }}
|
2020-10-08 14:29:44 +00:00
|
|
|
./av1an.py -i bus_cif.y4m -tr 20 --keep -o "${TEMP}/bus_cif.mkv" ${{ matrix.flags }}
|
|
|
|
du -h "${TEMP}/bus_cif.mkv"
|
|
|
|
echo "TEMPPATH=$TEMP" >> $GITHUB_ENV
|
2020-07-02 08:35:52 +00:00
|
|
|
- name: Upload video
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: "${{ matrix.name }}"
|
|
|
|
path: "${{ env.TEMPPATH }}"
|