Show HN: NCurses Terminal Webcam
github.com
github.com
$ mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 15 -vo cacaUpdated command for clarity (might want to fullscreen your terminal with this):
$ DISPLAY= mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 15 -vo cacaThis also seems to work over ssh, though, which is cool.
One big tip for that mode of mplayer, use the 'd' key to switch dithering modes. Keep switching until you get to Floyd-Steinberg for the best quality (IMHO).
Except it's got a chat function with other users as well :)
Can play any videos or stream the webcam:
vlc -V aa file.avi
vlc -V aa v4l2:///dev/video0Just in case it wasn't clear - I think this is awesome.
If you want to keep it hacky and horrible, have each side also set up pulseaudio and use it's networking capabilities over ssh to make each others computers the sink for your microphones. Or use existing proper VoIP software, if you want to be practical and boring.
Also reminds me of this: http://www.oldskool.org/pc/8088_Corruption
https://github.com/saitoha/PySixel
*Or even xterm compiled with sixels support ;)
I used halftone characters to do "dithering".
Someone forked and updated it to work with iTerm2's 24 bit colour support: https://s3.amazonaws.com/f.cl.ly/items/063S2A0b2b3w3T2Z3J0q/... .. not bad!
EDIT: duh, hangouts has a "share window" feature .. this is awesome!
$ mplayer -vo caca my-movie.mp4Everything looks beautiful when rendered in ASCII.
http://experiments.coscolla.net/libcaca/
The author is this guy: https://github.com/kozko2001/libcaca.js
i did one the runs on osx a couple years ago. might be broken now, haven't run it in a while.