Ceci est une ancienne révision du document !
Table des matières
Le code ASCII
ASCII : (American Standard Code for Information Interchange ) Norme d'encodage informatique des caractères alphanumériques de l'alphabet latin. La norme ASCII affecte un chiffre à chaque caractère de l'alphabet latin et les symboles, les signes, qui constituent cet alphabet. Ce chiffre est ensuite traduit mode binaire, c'est à dire en 010101010. Par exemple, le caractère “a” est associé à “01100001” et “A” à “01000001”.
“La norme ASCII permet ainsi à toutes sortes de machines de stocker, analyser et communiquer de l'information textuelle. En particulier, la quasi totalité des ordinateurs personnels et des stations de travail utilisent l'encodage ASCII.” http://www.table-ascii.com/
Image <> Texte
Outils
Générateurs ASCII
- Générateur en ligne http://www.network-science.de/ascii/
- Un autre générateur http://lunatic.no/ol/img2aschtml.php
- Autres outils http://en.wikipedia.org/wiki/ASCII_art_converters
ASCII Editors
Editeurs spécifiques pour la production d'ASCII et ANSI text art.
- ACiDDraw – Designed for editing ASCII text art. Supports ANSI color (ANSI X3.64).
ASCII font editors
ASCII viewer - afficher une image dans le terminal
fbi logo.png
ASCII browser
lynx
lynx labomedia.org
config de lynx http://lynx.browser.org/lynx_help/Lynx_users_guide.html#Images
links2
links2 labomedia.org links2 -g labomedia.org pour affichage dans framebuffer
w3m
w3m est capable de lire les images en environnement X, voir config au bouton droit
w3m labomedia.org
voir les images en naviguant
au final, possibilité de config de lynx pour utilisation de fim comme afficheur d'image en modifiant :
sudo nano /etc/mailcap
image/x-dcraw; fim -o aa %s; test=test -n "$DISPLAY" image/jpeg; fim -o aa %s; test=test -n "$DISPLAY" image/jpg; fim -o aa %s; test=test -n "$DISPLAY" image/jp2; fim -o aa %s; test=test -n "$DISPLAY" image/png; fim -o aa %s; test=test -n "$DISPLAY"
en couleur avec la libcaca
Tentative de compil de fim pour support libcaca http://www.nongnu.org/fbi-improved/ et dl version 05rc2 marche, pas la 0.6 … http://ftp.igh.cnrs.fr/pub/nongnu/fbi-improved/
./configure --enable-aa --enable-sdl --enable-cacalib make sudo make install make aatest
puis
/usr/local/bin/fim -o caca -m /dev/fb0 crypto_old-1329416_quarter.jpg
Réalisations
- Les fichiers .NFO fig:NFO.zip
- ascii forkbomb par Jaromil http://jaromil.dyne.org/journal/forkbomb_art.html
:(){ :|:& };:
- Pix_gmail
Terminal Shell
Le super projet Asciinema ou comment enregistrer en vidéo son terminal https://asciinema.org
Installer avec PIP
sudo pip3 install asciinema
Enregistrer en réduisant les moments où il ne se passe rien à 1 seconde
asciinema rec nomduficiher -i 1 --append
CTRL-D pour sortir de l'enregistrement
asciinema play nomduficiher
Le diffuser via https://asciinema.org
asciinema auth
La commande donne une adresse à laquelle il faut se rendre, s'inscrire en donnant un mail, cliquer sur mail de confirmation
asciinema upload nomduficiher
Voir ce post pour plus d'infos et des méthodes pour streamer le terminal https://blog.asciinema.org/post/two-point-o/
https://asciinema.org/a/168763
Enregistrer son terminal en SVG https://github.com/nbedos/termtosvg
Diverses façons de visualiser des images dans un terminal, voir commentaires https://askubuntu.com/questions/97542/how-do-i-make-my-terminal-display-graphical-pictures
libcaca et caca-utils
caca-utils est un ensemble d'outils en ligne de commande permettant de convertir et visualiser images et vidéos en jeu de caractères ASCII. Le nom est intentionnel, les auteurs offrant un logiciel ludique sans prétention sous licence publique « Faites-en bien ce que vous voulez »). https://doc.ubuntu-fr.org/caca-utils https://github.com/cacalabs/libcaca/
sudo apt install caca-utils
Outil Description
cacademo Affiche des effets d'art ASCI avec transitions animées cacaplay Joue un fichier d'animation libcaca. La commande doit être suvi d'un nom de fichier sous forme fichier.caca cacaserver Joue des fichiers d'animation libcaca à travers le port réseau 51914 cacaview Visionneuse d'image en mode texte. img2txt convertit des images vers des fichiers en mode texte coloré
Exemple d'utilisation
wget http://webcreation.webege.com/wp-content/uploads/2010/03/Tux-G2.png img2txt --format=svg Tux-G2.png > tux.svg mogrify -format png tux.svg
Serveur - client
CACA_DRIVER=raw cacademo | cacaserver telnet localhost 51914
- display any image in 256 colors in xterm https://github.com/rofl0r/conpix
Audio
Outils
- Audacity : Fichier > Importer > Données brutes (raw) » ouvrir un fichier texte
Réalisations
- WikikIRC Un bot poste en permanence sur un canal IRC les modifications opérées sur les différents wikipedias (fr, gb, …) > un programme “écoute” ce canal IRC et transforme les lettres en notes de musiques via leur code ascii
Vidéo
Outils
- libcaca : http://caca.zoy.org/wiki/libcaca
mplayer -vo caca -framedrop monfilm.avi mplayer -vo caca -framedrop [[tv://| tv://]] -tv driver=v4l2:width=640:height=480:device=/dev/video0:fps=30 cacademo
pour gérer la taille d'affichage (mais flicage ?!)
xterm -fn 5x7 -geometry 1920x816 -e "CACA_DRIVER=ncurses mplayer -vo caca OLE-xvid.avi"
optimiser la vitesse d'affichage du terminal : https://unix.stackexchange.com/questions/41225/can-a-terminal-emulator-be-as-fast-as-tty-1-6/41227
autres ressources pour libcaca :
- d'autres options https://fossies.org/linux/MPlayer/DOCS/HTML/en/caca.html
pour lire des fichiers youtube, installer youtube-dl https://rg3.github.io/youtube-dl/download.html
sudo curl -L [[https://yt-dl.org/downloads/latest/youtube-dl| https://yt-dl.org/downloads/latest/youtube-dl]] -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl
puis on pipe
youtube-dl [[https://www.youtube.com/watch?v=urxk4mveLCw| https://www.youtube.com/watch?v=urxk4mveLCw]] -o - | mplayer -cache 64000 -vo aa -
- VLC CVLC
cvlc assise-HD.mp4 -V caca
- Hasciicam http://dyne.org/software/hasciicam/
hasciicam hasciicam -m html -o watchme.html puts your html formatted ascii into watchme.html - then just open it with your favorite browser. hasciicam -m text -o ~/.plan puts your ascii into your local .plan (fingercam) hasciicam -m html -S 2 -o index.html -f :user%pass@dyne.org:/home/user/www
- Camera ascci en ligne https://idevelop.ro/ascii-camera/
Réalisations
- Vuk Cosic ascii history of moving images http://www.ljudmila.org/~vuk/ascii/film/
- ascii star wars à voir là http://asciimation.co.nz/ ou :
telnet towel.blinkenlights.nl
- Alex Gopher - The Child
- Justine ou les malheurs de la vertue - Minitel série
Interaction
Outils
- Pure Data / PiDiP http://ydegoyon.free.fr/pidip.html
- Curl pour facebook http://codesnippets.joyent.com/posts/show/1204
- Yahoo pipes http://pipes.yahoo.com/pipes/
- Supercollider vs Twitter : http://supercollider.sourceforge.net/sc140/
- Des scripts pour générer des images à base de texte “Workshop on fun commandline poster generation.” http://stdin.fr/Works/PCMMD
Réalisations, dérives
- Adrien M
- Pascale Gustin 857 Clusters http://www.pascsaq.org/logz/index.php?art=16
- “Understanding Shakespeare goal is to introduce a new form of reading drama to help understand Shakespeare’s works in new and insightful ways and to address our changed habits of consuming narrative works and knowledge through the capabilities of information visualization.” http://www.understanding-shakespeare.com/
- Visual Edition Stories about Dingbats, Composition No.1 et Tree of codes Di Jonathan Safran
Références
- Galerie ASCII ART http://www.dmoz.org/Arts/Visual_Arts/ASCII_Art/
- Galerie http://artscene.textfiles.com/
- Galerie http://sixteencolors.net/
- Galerie NFO http://www.defacto2.net/file/list/document
- Galerie Vidéo http://www.youtube.com/user/avove7/
:- :/ .++ //: :++- ++/. //+/ /o//` `+://- ++://` .+-.+/` /+`/// -+-`/:/ :/-`///./:`.+/. `//``://+/``/:/ -/:``//o+-`-/+` -/:`.+/++.`+/. -//./:///`++` `/////.o:+: -o++/++/` .:////+///- +/:::`-//:/ :/::/``/:::+` `...yo//-os/:::/+.. `...-:..`ooo+:+-----..-:.` ```.-//:-/:/`+:--...``` .: `` ./.`-:`: ``/:.`` ..-.` ...` `.. `:/-` .- //+-` .+. `+:::/:` /+.. -/:::::/: ./::- -/:/:::::/- :/:/-- `+://:/::::/. `//::/-- /::/``-+:::/` ./:::/:: ./::/`-/:::/` :/::/:` -` -/::+/:://:..- ..- `/::/:` - :++//+//-...: - .` .-///:` .` .:.-:/:-:``: ..`.`.-.-/ - ...` .:`-/s` `-` - : `. `::-..:+:/- - - `. `. /://:+:+- -``-` : +- :::::o/:. -``- .` +/:.` `::::+-.- `- `- - +:://-.+::::` `.`..`- -/::/: :/::/ `..-- +:::/ +::/. `` :/::/` -/::/ ./::/. /::+` `/::/: -/::/ `/:::/ +:::: `.....```` `/:::/- ::::/- ..` `` .://///::::+ :/:::/:` .. ..` ./:::::/// .+:::::://:-.````... `..: `----:-.` `-://::/-` ` `..-` `............` `....` `. `-- `.. - `:` ` ``` WHAT'S UP DOC ? .oyyyysoo/ .:oyyy: `./syys. /shhy. `+yo ./shhhy+` -mNNNMMMNmy `/hNmy//shh: `+dNmo/+shh. oMMMMd` `dMM/ oNMMh:dMM/ `---sMMMs` -hMMs. hMMMm /mMN+` `mMMMy :NMMMMMo sMMy -MMMMy`+Nh` :NMMN. /NMMy `dMMM oMMM+ -NMMh .mMm+MMMN--MMm` `dMMMMho: .NMMMo .NMMM- oMMy /MMMN hMM+ `dMM: yMMMNdMN- `/dMMMMd. hMMMN` /MMMM: `dMm. yMMMM` -NMy` yMMo `dMMMMM+ .+y+`/mMMMs :MMMM+ .mMMMd-`./dNy. :NMMMs.`.+NNo` oMMh `dMMMy yMMM/ oMMN: /mmh/ `+hmNmddho- -sdmNmddh+. /mh+` `yms` `/hmNmNmy- `` ``..` ``..`` `` ` `...` Vous avez des films en VOSTFR , VO , VF à proposer ? Vous voulez faire partie de la Team Toons ? => contact : LesToons@live.fr ------------------------------------------------------ General Information ------------------------------------------------------ Source...............: Splice.DVDR-MPTDVD Audio Format.........: MP3 Bitrate..............: 128 Kbps Video Format.........: Xvid Video Bitrate........: 900Kbps Resolution...........: 512 X 288