From: daniel watson Date: Thu, 16 Jun 2016 20:34:58 +0000 (-0700) Subject: add attach breadboard to deck video X-Git-Url: http://challenge-bot.com/repos/?p=challenge-bot;a=commitdiff_plain;h=abe3f9402991df0dd6b6c0b4b07bfc38f596034f add attach breadboard to deck video --- diff --git a/guide/1-breadboard-to-deck/0-breadboard-to-deck.ogv b/guide/1-breadboard-to-deck/0-breadboard-to-deck.ogv new file mode 100644 index 0000000..6166877 Binary files /dev/null and b/guide/1-breadboard-to-deck/0-breadboard-to-deck.ogv differ diff --git a/guide/challenge-bot.scm b/guide/challenge-bot.scm index 0c70756..f391ae4 100644 --- a/guide/challenge-bot.scm +++ b/guide/challenge-bot.scm @@ -304,7 +304,11 @@ (image :file "1-breadboard-to-deck/0-required-materials.png")) [for this section, we will need the deck with arduino attached, - breadboard, and glue dots.])) + breadboard, and glue dots.] + (figure + :legend "breadboard to deck / video" + (video + :file "1-breadboard-to-deck/0-breadboard-to-deck.ogv")))) (section :title [battery packs] (subsection diff --git a/guide/convert-JPG-to-640x480-ogv.bash b/guide/convert-JPG-to-640x480-ogv.bash new file mode 100755 index 0000000..0d4a649 --- /dev/null +++ b/guide/convert-JPG-to-640x480-ogv.bash @@ -0,0 +1,45 @@ +#! /usr/bin/env bash +# tldr; AGPLv3+ +# copyright info at bottom + + +number=0 + +for i in *.JPG +do + if test -f "$i" + then + echo "convert -resize 640x480 \\ + \"$i\" \\ + \"`printf %02d $number`.png\"" + convert -resize 640x480 \ + "$i" \ + `printf %02d $number`.png + fi + number=$((number + 1)) +done + +echo "converting pngs to ogv" +theora_png2theora \ + --framerate-numerator 1 \ + --framerate-denominator 1 \ + --output out.ogv \ + %02d.png + +# Copyright 2016 daniel watson + +# This file is part of challenge-bot. + +# challenge-bot is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. + +# challenge-bot is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. + +# You should have received a copy of the GNU Affero General Public +# License along with challenge-bot. If not, see +# .