xenocara/driver/xf86-video-intel/test/mkvsync.sh
matthieu 07f2f0a5ae Update to xf86-video-intel 2.20.19.
A recent kernel with kernel modesetting support is required.
Thanks to jsg@ and kettenis@ for their work.
2013-03-18 18:38:18 +00:00

28 lines
539 B
Bash
Executable File

#!/bin/bash
OUT="$1"
[ -n "$OUT" ] || OUT="vsync.avi"
TMP=".build.tmp"
rm -rf ${TMP}
mkdir ${TMP}
convert -size 640x480 -depth 24 canvas:black png24:${TMP}/black.png
convert -size 640x480 -depth 24 canvas:white png24:${TMP}/white.png
mkdir ${TMP}/anim
for ((a=0; $a < 1000; a=$a+2)); do
ln -s ../black.png ${TMP}/anim/$a.png
done
for ((a=1; $a < 1000; a=$a+2)); do
ln -s ../white.png ${TMP}/anim/$a.png
done
mencoder "mf://${TMP}/anim/*.png" -v -vf-clr -mf fps=60 -o "${OUT}" -ovc lavc
exitcode=$?
rm -rf ${TMP}
exit ${exitcode}