From b36faf988d5602ea30f621bad8b3f7dbcaa90cb9 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 2 Nov 2014 23:14:59 +0100 Subject: g-i-i: force color black so we get 1bit colered pngs instead of 1bit greyscale pngs so ffmpeg2theora doesnt choke --- bin/g-i-installation.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index cfd72291..e9e905ab 100644 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -926,13 +926,13 @@ monitor_system() { break fi PRINTF_NR=$(printf "%06d" $NR) - vncsnapshot -quiet -allowblank $DISPLAY snapshot_${PRINTF_NR}.jpg 2>/dev/null || true + vncsnapshot -quiet -allowblank -compresslevel 0 $DISPLAY snapshot_${PRINTF_NR}.jpg 2>/dev/null || true if [ -f snapshot_${PRINTF_NR}.jpg ]; then convert $CONVERTOPTS snapshot_${PRINTF_NR}.jpg snapshot_${PRINTF_NR}.png rm snapshot_${PRINTF_NR}.jpg else echo "$(date) $PRINTF_NR - could not take vncsnapshot from $DISPLAY - using a blank fake one instead" - convert -size $VIDEOSIZE xc:none -depth 8 snapshot_${PRINTF_NR}.png + convert -size $VIDEOSIZE xc:#000000 -depth 8 snapshot_${PRINTF_NR}.png fi # every 100 ticks take a screenshot and preserve and analyse it if [ $(($NR % 100)) -eq 0 ] ; then -- cgit v1.2.3-70-g09d2