Commit 69630d9c authored by Adam Štěpánek's avatar Adam Štěpánek
Browse files

Stop recording video

parent fd3d0e8f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@ Write-Host "Id $id"
$container = (docker create -it -e DEBUG=true -e WIDTH=7016 -e HEIGHT=4960 hash /hash.sh)
docker cp hash-input.bin ${container}:/input
docker start -ai $container
docker cp ${container}:/out/hash.bmp hash_$id.bmp
docker cp ${container}:/out/hash.mp4 hash_$id.mp4
docker cp ${container}:/out/hash.png hash_$id.png
docker stop $container | Out-Null
docker rm $container | Out-Null
+1 −12
Original line number Diff line number Diff line
@@ -2,16 +2,5 @@

source /scripts/preamble.sh
hashprint "Hash $HASH"

RESULT=0

ffmpeg -f x11grab -framerate 60 -i $DISPLAY.0 /out/hash.mp4 >/dev/null 2>&1 &
VIDEO_PID=$!

runlayout

convert $OUT /out/hash.bmp || RESULT=1

kill -s 2 $VIDEO_PID
wait $VIDEO_PID
exit $RESULT
convert $OUT /out/hash.png