News for hackers. Stuff that matters.
Re:Show HN: NCurses Terminal Webcam by chjj on Wednesday April 23, 2014 @09:27PM (#7638021)
MPlayer can also do this. Something like this should work as an example:

  $ mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 15 -vo caca
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.
Re:Show HN: NCurses Terminal Webcam by chjj on Wednesday April 23, 2014 @11:45PM (#7638394)
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 caca
Re:Show HN: NCurses Terminal Webcam by pcmonk on Thursday April 24, 2014 @12:37AM (#7638532)
Sweet, 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.

Re:Show HN: NCurses Terminal Webcam by nitrogen on Thursday April 24, 2014 @01:13AM (#7638610)
Add the -quiet option to mplayer.
Re:Show HN: NCurses Terminal Webcam by pcmonk on Thursday April 24, 2014 @01:22AM (#7638628)
That fixed it. Thanks.
Re:Show HN: NCurses Terminal Webcam by mpyne on Wednesday April 23, 2014 @11:58PM (#7638428)
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).

Re:Show HN: NCurses Terminal Webcam by NAFV_P on Thursday April 24, 2014 @06:11AM (#7639211)
I've just given it a go, I look lush. I tried changing the width and height but it came out the same size, I think I will have to play around with it.