File: test_video_hw

package info (click to toggle)
ffmpegfs 2.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,360 kB
  • sloc: cpp: 20,671; sh: 4,828; ansic: 325; makefile: 231; php: 53
file content (21 lines) | stat: -rwxr-xr-x 419 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

if [ "$1" == "ENC" ]
then
	ADDOPT="--hwaccel_enc=$2"
elif [ "$1" == "DEC" ]
then
	ADDOPT="--hwaccel_dec=$2"
else
	echo "Parameter missing"
	echo
	echo "Usage: $0 ENC api"
        echo "Usage: $0 DEC api"
	echo
        echo "Example: $0 ENC VAAPI"
	exit 1
fi

. "${BASH_SOURCE%/*}/funcs.sh" ts 77 "${1,,}_$2"

cp -v "${DIRNAME}/snowboard.mp4.${FILEEXT}" /dev/null || exit 77 # Make test suite report "SKIP"