From d8369bef0afbb389c0db8ebecac5f643281d89e3 Mon Sep 17 00:00:00 2001 From: tTh Date: Wed, 5 Oct 2022 06:08:23 +0200 Subject: [PATCH] commit nocturne --- chap/Arduino.tex | 24 ++++++++++++++++++++++++ chap/video.tex | 14 ++++++++++++++ chap/webserver.tex | 3 +++ code/tagpic.sh | 5 +++-- misctools/README.md | 5 ----- misctools/nonascii.c | 33 --------------------------------- tetatricks.tex | 4 +++- 7 files changed, 47 insertions(+), 41 deletions(-) create mode 100644 chap/Arduino.tex delete mode 100644 misctools/README.md delete mode 100644 misctools/nonascii.c diff --git a/chap/Arduino.tex b/chap/Arduino.tex new file mode 100644 index 0000000..378411a --- /dev/null +++ b/chap/Arduino.tex @@ -0,0 +1,24 @@ +\chapter{Arduino} +\label{chap:arduino} \index{Arduino} + +% --------------------------------------------------------------------------- + +\section{Installation de l'IDE}\index{IDE} + +Elle semble un peu plus \textit{tricky} que celle de son cousin Processing. + +Pour commencer, allez donc chercher le logiciel dans une version adaptée +à votre système dans \texttt{http://arduino.cc/}. + +% --------------------------------------------------------------------------- + +\section{Hello blinky} + +La première étape est évident : faire clignoter une LED\index{LED} + +% --------------------------------------------------------------------------- +\section{Beep Beep} + +La seconde étape ne l'est pas moins. + +% --------------------------------------------------------------------------- diff --git a/chap/video.tex b/chap/video.tex index 6fc60b0..4827c43 100644 --- a/chap/video.tex +++ b/chap/video.tex @@ -45,6 +45,10 @@ Extraire le son d'une vidéo Youtube : \texttt{ffmpeg -i fichiervideo.flv -vn -ar 44100 -ac 2 -f wav fichierson.wav} +Extraire les images individuelles : + +\texttt{ffmpeg -i foo.avi -r 1 -s WxH -f image2 foo-\%03d.jpeg} + \texttt{mplayer -vo png -ss 3:46 -frames 20 stairs.mp4} \# Write out 20 png format frames from a video starting at 3 minutes, 46 seconds. @@ -161,7 +165,17 @@ metadata about audio or video files. \end{quote} % -------------------------------------------------------------------- +\section{MPV} \index{MPV} +\begin{quote} + mpv is a media player based on MPlayer and mplayer2. It supports a wide + variety of video file formats, audio and video codecs, and subtitle + types. Special input URL types are available to read input from a vari‐ + ety of sources other than disk files. Depending on platform, a variety + of different video and audio output methods are supported. +\end {quote} + +% -------------------------------------------------------------------- \section{Autres trucs} diff --git a/chap/webserver.tex b/chap/webserver.tex index c3150cf..ad29172 100644 --- a/chap/webserver.tex +++ b/chap/webserver.tex @@ -34,6 +34,9 @@ en erreur 403\index{403} ?\linebreak \texttt{\# lighttpd-enable-mod dir-listing} et \texttt{\# service lighttpd force-reload}, voilà. +Question : comment forcer le \texttt{Content-Type} pour un type particulier +de fichier ? Par exemple text/plain pour les fichiers \texttt{.POV} ? + % ============================================================== diff --git a/code/tagpic.sh b/code/tagpic.sh index d0d76d7..08ff9f6 100755 --- a/code/tagpic.sh +++ b/code/tagpic.sh @@ -7,12 +7,13 @@ outfile="$2" texte="$3" txtfont=" -font Utopia " fontsize=" -pointsize 96 -kerning 4 " -color=" -fill Gray20 -stroke White " +colors=" -fill Gray20 -stroke White " txtopts=" -antialias -alpha off $txtfont " + convert $infile \ ${txtopts} \ ${txtfont} ${fontsize} \ - ${color} \ + ${colors} \ -gravity South \ -annotate +0+85 "${texte}" \ $outfile diff --git a/misctools/README.md b/misctools/README.md deleted file mode 100644 index 3f3b4d1..0000000 --- a/misctools/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Outils divers - - -## non ascii ? - diff --git a/misctools/nonascii.c b/misctools/nonascii.c deleted file mode 100644 index a5682cd..0000000 --- a/misctools/nonascii.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * nonascii.c - * - * new Mon 03 Oct 2022 05:42:42 PM CEST - */ - -#include -#include - -int main(int argc, char *argv[]) -{ -int input, linenum, count; - -linenum = 1; -count = 0; - -while (EOF != (input=getc(stdin))) { - - if ('\n' == input) linenum++; - - if ((input < 0) || (input>127)) { - fprintf(stderr, "non ascii 0x%x line %d\n", - input, linenum); - count++; - } - } -if (count) { - fprintf(stderr, "%d non-ascii chars\n", count); - exit(1); - } - -return 0; -} \ No newline at end of file diff --git a/tetatricks.tex b/tetatricks.tex index e961b7a..1088c07 100644 --- a/tetatricks.tex +++ b/tetatricks.tex @@ -118,6 +118,7 @@ en ligne sur le site du Tetalab. Your mileage may vary\dots \input{chap/streaming} \input{chap/backups} \input{chap/processing} + \input{chap/video} \input{chap/graphisme} \input{chap/gnuplot} @@ -127,6 +128,7 @@ en ligne sur le site du Tetalab. Your mileage may vary\dots \input{chap/X11} \input{chap/Fortran} \input{chap/scripting} +\input{chap/Arduino} % \input{chap/GMP} \input{chap/Python} @@ -181,7 +183,7 @@ parcouru cet ouvrage, et constaté à quel point il est en friche. Beaucoup de chapitres sont vraiment incomplets, voire cruellement vides, ou même obsolètes à un niveau pitoyable. -Mais les choses vont évoluer, peut-être, un jour\dots +Mais les choses vont évoluer, peut-être, un jour, on sait pas quand\dots \printindex