summaryrefslogtreecommitdiff
path: root/benchmarker
blob: 25a999767762381c7b01657c67611f9b9ea1c57b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh

set -eu

die()
{
    echo "$@" 1>&2
    exit 1
}

gotcmd()
{
    command -v "$1" > /dev/null || die "Need command $1"
}

gotfile()
{
    test -e "$1" || die "Need file $1"
}


cpubench()
{
    gotfile "$1"
    gotcmd HandBrakeCLI
    time HandBrakeCLI --main-feature \
	     -Z "H.265 MKV 720p30" \
	     --all-audio \
	     --subtitle-lang-list fin \
	     --first-subtitle \
	     -i "$1" \
	     -o /dev/null

}


skyfall="$1"

cpubench "$skyfall"