forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits

hevc-preset-quick.sh9 lines, 589 bytesHistoryRawDownload
1#!/usr/bin/env bash
2# hevc-preset-quick.sh: single-thread encode time and size of the 1080p 10-bit bench clip per preset.
3set -e
4cargo build --release -q -p ec-h265 --example hevc_gop 2>&1 | grep -E '^error' -A8 || true
5B=${CARGO_TARGET_DIR:-target}/release/examples/hevc_gop; D=$HOME/.cache/hevc10simd2-bench
6echo load $(cut -d' ' -f1-3 /proc/loadavg)
7for p in ${PRESETS:-default fast faster}; do
8 echo -n "$p: "; EC_H265_PRESET=$p EC_H265_BITDEPTH=10 EC_H265_THREADS=1 EC_H265_TIMING=1 $B encode $D/c10.yuv 1920 1080 8 30 $D/o.hevc $D/r.yuv 2>&1 | grep -v PROF | tr "\n" " "; echo
9done