Re:Show HN: NCurses Terminal Webcam
by pcmonk on Wednesday April 23, 2014 @11:34PM
(#7638363)
For the record, that's not pure terminal (it opens up another window). This project works even in a bare vterm. I'd love to see this work over ssh.
[ Parent
| on HN ]
It will draw an X11 window if there is an X display. Unset DISPLAY and it will render in the terminal: $ DISPLAY= mplayer ...
Updated 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 cacaSweet, I didn't realize that. Sadly, the result flashes on and off and is essentially unusable for me (either in xterm or a TTY on Slackware64 14.0). I can tell it's working, though.
This also seems to work over ssh, though, which is cool.
Add the -quiet option to mplayer.
That fixed it. Thanks.
I can confirm it works fine at a raw terminal, even on Linux TTY. You might have to unset DISPLAY as recommended in the other comment.
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).