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/
Editeurs spécifiques pour la production d'ASCII et ANSI text art.
fbi logo.png
lynx labomedia.org
config de lynx http://lynx.browser.org/lynx_help/Lynx_users_guide.html#Images
links2 labomedia.org links2 -g labomedia.org pour affichage dans framebuffer
w3m est capable de lire les images en environnement X, voir config au bouton droit
w3m labomedia.org
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
:(){ :|:& };:
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
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
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 :
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 -
cvlc assise-HD.mp4 -V caca
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
telnet towel.blinkenlights.nl
:- :/ .++ //: :++- ++/. //+/ /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