24 lines
627 B
Bash
Executable File
24 lines
627 B
Bash
Executable File
#!/bin/bash
|
|
HOST_MEDIA=$(pwd)/media
|
|
[ ! -e "${HOST_MEDIA}/AUD_MW_E.264" ] && {
|
|
mkdir -p ${HOST_MEDIA}
|
|
wget -q -O ${HOST_MEDIA}/AUD_MW_E.264 https://fate-suite.libav.org/h264-confo$
|
|
}
|
|
tests=(
|
|
"decode AUD_MW_E.264 AUD_MW.yuv"
|
|
"encode AUD_MW.yuv AUD_MW_E.h264"
|
|
"transcode AUD_MW_E.264 AUD_MW_E.hevc"
|
|
"1N_transcode AUD_MW_E.264 AUD_1N"
|
|
)
|
|
for test in "${tests[@]}"; do
|
|
test=($test)
|
|
docker run --rm \
|
|
--volume ${HOST_MEDIA}:/media -it \
|
|
--device=/dev/dri -e QSV_DEVICE=${QSV_DEVICE:-/dev/dri/renderD128} \
|
|
intel-media-ffmpeg ${test[*]} || {
|
|
echo "Error: Test failed: ${test[*]}"
|
|
break
|
|
}
|
|
done
|
|
|