File: performance.sh

package info (click to toggle)
libvpl 1%3A2.16.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,580 kB
  • sloc: cpp: 92,604; ansic: 6,176; python: 4,312; sh: 323; makefile: 7
file content (15 lines) | stat: -rwxr-xr-x 544 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
if [ ! -f content/hevc_1920x1080p_bits.h265 ]; then
    mkdir content
    ffmpeg -y -hide_banner \
        -hwaccel_output_format qsv \
        -f lavfi -i testsrc2=size=1920x1080:rate=30:duration=100.0 \
        -threads 1 \
        -c:v hevc_qsv -vf format=pix_fmts=nv12 \
        -f hevc content/hevc_1920x1080p_bits.h265
fi
. /package/etc/vpl/vars.sh
measure perf -e 1 content/hevc_1920x1080p_bits.h265
PERF_DATA=data/artifacts/measure/perf
mkdir -p /results/${PERF_DATA}
cp -rv /opt/${PERF_DATA}/msperf* /results/${PERF_DATA}/