TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: NCurses Terminal Webcam

110 pointsby CSDudeabout 11 years ago

17 comments

chjjabout 11 years ago
MPlayer can also do this. Something like this should work as an example:<p><pre><code> $ mplayer tv:&#x2F;&#x2F; -tv driver=v4l2:width=640:height=480:device=&#x2F;dev&#x2F;video0 -fps 15 -vo caca</code></pre>
评论 #7638363 未加载
评论 #7639211 未加载
b0z0about 11 years ago
Interesting - I just made something exactly like this (screenshot looks exactly the same): <a href="https://github.com/billyeh/termchat" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;billyeh&#x2F;termchat</a>! I even had to publish a Node package to do it (pixelr).<p>Except it&#x27;s got a chat function with other users as well :)
techwizrdabout 11 years ago
It&#x27;s still using the old OpenCV calls, so I did a quick port to OpenCV 2. <a href="https://github.com/techwizrd/terminal-webcam" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;techwizrd&#x2F;terminal-webcam</a>
mrucciabout 11 years ago
Cool. You can do it also with `vlc` and the `-V aa` (ascii) or `-V caca` (colored ascii) video output in the console.<p>Can play any videos or stream the webcam:<p><pre><code> vlc -V aa file.avi vlc -V aa v4l2:&#x2F;&#x2F;&#x2F;dev&#x2F;video0</code></pre>
hardwaresoftonabout 11 years ago
Please add encryption (on by default), sound, and hook this up to PGP so that it can be skype for hackers (and I don&#x27;t mean just crackers, I mean in the most general sense)<p>Just in case it wasn&#x27;t clear - I think this is awesome.
评论 #7638056 未加载
评论 #7638464 未加载
CSDudeabout 11 years ago
If you want to get full performance, use xterm, gnome-terminal and others are very slow. Colorful one uses only 6^3 colors but it looks nice: <a href="https://raw.githubusercontent.com/mustafaakin/terminal-webcam/master/colorful.png" rel="nofollow">https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;mustafaakin&#x2F;terminal-webca...</a> (It is currently night here mywebcam sucks on night)
Tayloriousabout 11 years ago
This is pretty awesome. I&#x27;m surprised that you can get such a detailed and responsive image with just different characters. Very cool.
评论 #7637939 未加载
paulannesleyabout 11 years ago
See also: <a href="https://github.com/dhotson/txtcam" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dhotson&#x2F;txtcam</a>
a3nabout 11 years ago
The submitted program, and the mplayer incantations in the threads, are the most delightful things I&#x27;ve seen all day.
dhotsonabout 11 years ago
Neat! I made something similar for OSX: <a href="https://github.com/dhotson/txtcam" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dhotson&#x2F;txtcam</a> &#x2F; Screencast: <a href="https://asciinema.org/a/7301" rel="nofollow">https:&#x2F;&#x2F;asciinema.org&#x2F;a&#x2F;7301</a><p>I used halftone characters to do &quot;dithering&quot;.<p>Someone forked and updated it to work with iTerm2&#x27;s 24 bit colour support: <a href="https://s3.amazonaws.com/f.cl.ly/items/063S2A0b2b3w3T2Z3J0q/Image%202013.11.25%2022%3A22%3A23.png" rel="nofollow">https:&#x2F;&#x2F;s3.amazonaws.com&#x2F;f.cl.ly&#x2F;items&#x2F;063S2A0b2b3w3T2Z3J0q&#x2F;...</a> .. not bad!
EnigmaCurryabout 11 years ago
OK, now how can I make this loopback such that this is what the people I&#x27;m talking to on google hangouts sees?<p>EDIT: duh, hangouts has a &quot;share window&quot; feature .. this is awesome!
13throwawayabout 11 years ago
Forget looking at my ugly face, how do I watch movies in my terminal?
评论 #7638028 未加载
评论 #7638146 未加载
评论 #7638826 未加载
suprjamiabout 11 years ago
This isn&#x27;t mine, but it does a similar sort of thing in browser. It&#x27;s actually a port of libcaca to JavaScript using emscripten:<p><a href="http://experiments.coscolla.net/libcaca/" rel="nofollow">http:&#x2F;&#x2F;experiments.coscolla.net&#x2F;libcaca&#x2F;</a><p>The author is this guy: <a href="https://github.com/kozko2001/libcaca.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kozko2001&#x2F;libcaca.js</a>
jsilenceabout 11 years ago
See also hasciicam by Jaromil. <a href="https://github.com/jaromil/HasciiCam" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jaromil&#x2F;HasciiCam</a>
zachlattaabout 11 years ago
See also <a href="https://github.com/zfogg/ascii-chat" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zfogg&#x2F;ascii-chat</a>
cont4giousabout 11 years ago
great work!<p>i did one the runs on osx a couple years ago. might be broken now, haven&#x27;t run it in a while.<p><a href="https://github.com/helloandre/cam2ascii" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;helloandre&#x2F;cam2ascii</a>
TazeTSchnitzelabout 11 years ago
Reminds me of AAlib and bb, the portable demo.
评论 #7639044 未加载