Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: turn videos into ASCII art (open source, js+canvas) (collidingscopes.github.io)
121 points by getToTheChopin 75 days ago | hide | past | favorite | 24 comments
This tool turns videos into ASCII pixel art. You can use your webcam feed or upload a video, then use the controls to adjust the colors, resolution, text style, etc.

Github repo: https://github.com/collidingScopes/ascii

It's built with javascript / html canvas.

I'll be continuing to work on this, with the goal of improving performance (it can be laggy at high resolutions) and to also allow image input (turn an image into animated ASCII art).

Please let me know of any feedback or suggestions!




This reminds me of libcaca [1], which anyone interested in this should check out. It's integrated in various tools, including ffmpeg, mpv, and of course VLC (Sam Hocevar, who wrote libcaca, was also a key VLC contributor at its beginnings).

The biggest difference I see (apart from the used programing language) is that libcaca outputs colored ascii art.

[1] https://en.wikipedia.org/wiki/Libcaca


I was just about to say. With mpv, you can play videos as ASCII art just by doing mpv --vo=caca <file>. Just make sure your mpv is actually built with caca support (mpv --vo=help; Arch Linux's mpv is not, Fedora's is).


For uncolored (and generally simpler) ASCII art, see the older libaa


Haha, name made me chuckle.


There's a version of "Never Gonna Give You Up" in ASCII art. Which means if you can access a .bashrc or something similar, you can rick roll them in their terminal on startup.

Found it: https://github.com/keroserene/rickrollrc


I love that. You’re never safe from Mr. Astley


Is there anything like this where it's only coloring the text and not the background of the font? Hoping to find something like ascii-gen [0,1] but for video

[0] https://github.com/seatedro/asciigen [1] https://x.com/seatedro/status/1828414268707946506


If I’m understanding correctly, you should be able to do that by unchecking “Bg Gradient” in the GUI menu.

Then change the font colors as you wish.


Amazing! I didn't notice the control panel earlier


It's awesome. I used the image export, is there anyway to export to text with escape codes?


Happy to hear it! That's a great suggestion -- I will add that feature. Probably a button that you can press in the GUI, which will then populate a text field at the bottom with the relevant chars / line breaks of that frame.


This is really cool, thanks for sharing. I’m getting glitchy cyberpunk vibes from this.


Glad you did this. I had a similar idea but never made time for it. Thanks.


Thank you! It was fun making this. I think I'll try some other video manipulations now that I've got code for splitting videos into frames / reading pixel data from each frame.


Maybe start to head into the direction of filters. Stuff that after effects can already do for video. Stay interested in this and keep improving. Great work.


Thank you for the feedback and reassurance. Hoping I’ll have more progress to share soon!


I thought the point of ASCII art was that it could be exported into Notepad. is the website mainly for aesthetics/art as opposed to inserting diagrams into READMEs now?


> I thought the point of ASCII art was that it could be exported into Notepad.

I don't think that's ever been the point of ASCII art. It's just art made with ASCII characters, that's it.


Yes this website is mainly for aesthetics and art. I will however add a feature that will generate the relevant chars / line breaks of a given still image, so that it can be exported to notepad.


When would you expect to put a video of a diagram into a readme file?


Any damn time I want, notepad is the next best thing to freedom that we have!


Nice and simple site. Well done for making this work on mobile!


Interesting, so like aalib for the browser?


I hadn’t heard of AAlib before, but just read the wiki for it, and yes this is a similar tool but for the browser.

This makes it easy to create video ascii art from any computer or phone


[deleted]




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: