Loading video...

Video Failed to Load

Go Home

Introducing Video2Ascii – a WebGL-powered React component that converts Videos to ASCII art. I came across the General Intuition website and loved their animations but there were no open-source React Components so I reverse engineered it.

199,995 views • 10 months ago •via X (Twitter)

41 Comments

Elijah Kurien's profile picture
Elijah Kurien10 months ago

This component can be downloaded with `npm install video2ascii`. Check out the Github and feel free to give it a star ⭐

Elijah Kurien's profile picture
Elijah Kurien10 months ago

It comes out of the box with additional features like mouse tracing, click effects, different character sets, modulating brightness by the sound in the video and more!

Elijah Kurien's profile picture
Elijah Kurien10 months ago

The converter works by splitting the video into a grid then averaging the pixels in each cell to get a brightness level and color. Then, it maps it to a color and ASCII character. WebGL 2.0 offers mipmaps and better texture handling to speed up rendering.

Elijah Kurien's profile picture
Elijah Kurien10 months ago

This currently only supports WebGL 2.0 devices but would love if someone could add support for more devices!

Elijah Kurien's profile picture
Elijah Kurien10 months ago

Shoutout to @PimDeWitte and @gen_intuition for the inspiration to build this out

Elijah Kurien's profile picture
Elijah Kurien10 months ago

@gen_intuition Check out some interactive examples on my website

Orbs's profile picture
Orbs10 months ago

@gen_intuition pretty cool, I have a gif to ascii generator and I also coded my own html2ascii generator that saves the html image by taking a screenshot of it using html2canvas all written in Pike, with the site being html,css, & javascript here's an example of both the gif and pixel to ascii

Ben Vinegar's profile picture
Ben Vinegar10 months ago

@gen_intuition nice

Marcin Ignac's profile picture
Marcin Ignac10 months ago

@gen_intuition From the video above it looks like most videos need brightness and contrast bump. For best effects I would also add Posterize effect where you reduce number of colors for more solid areas that look better as letters.

Elijah Kurien's profile picture
Elijah Kurien10 months ago

@gen_intuition The video doesn’t do it credit! The examples on my website look better but will take this feedback and put it in the next release!

Kingmakers Game's profile picture
Kingmakers Game10 months ago

@gen_intuition Lol does this even count as ascii art? Just looks like pixels. If you remove the colors, is anything legible?

Aiden Bai's profile picture
Aiden Bai10 months ago

@gen_intuition AND HE DOES IT AGAIN

Kevin Brace's profile picture
Kevin Brace10 months ago

@gen_intuition I made a similar tool for gifs.

@dingchilling's profile picture
@dingchilling10 months ago

@gen_intuition i made this too just a while ago @

Michał Pasternak's profile picture
Michał Pasternak10 months ago

@gen_intuition That’s not ascii art, that’s ansi art.

Saïd Aitmbarek's profile picture
Saïd Aitmbarek10 months ago

@gen_intuition wow, impressive effect love the vibe :-) dope you made this one oss let's launch you for fun on anytime btw

sankalp's profile picture
sankalp10 months ago

@gen_intuition this is sick!

memory_prism's profile picture
memory_prism10 months ago

I wrote a JavaScript thing that did this in like 2016. Wasn’t as cool as this. 1. I did not know what react was 2. You had to convert your videos with a python utility I wrote that turned them into massive json files. Besides those caveats it worked pretty well. You can see it on the archived version of I’ve got the code on GitHub too but it’s embarrassing 😂

Cosmic_dusτ's profile picture
Cosmic_dusτ10 months ago

@gen_intuition @Im_zo_sol @12g8ge

Async's profile picture
Async10 months ago

@gen_intuition Aight dope

Idan Zeidman's profile picture
Idan Zeidman10 months ago

@gen_intuition Reverse-engineering vibes into oss components. that's the real dev flex.

ZiiX's profile picture
ZiiX10 months ago

Cool. Creatively beautiful coding/work that expands on a nostalgic fidget-coding spinning pastime w a modern fun spin. This idea: output ASCII Art to multiple independent layers & we have hidden messages layered w breadth & 'depth' (reading into it pun intended) AND a 3D effect‽

AnarchistOwl's profile picture
AnarchistOwl10 months ago

@gen_intuition Cool

BAD CHARACTER's profile picture
BAD CHARACTER10 months ago

@gen_intuition Idk if I can Mickey Mouse a way to use this in square space I’m doing it 😭

Ali Shobeiri's profile picture
Ali Shobeiri10 months ago

@gen_intuition This is sick very cool work

maxemitchell's profile picture
maxemitchell10 months ago

@gen_intuition this is sick

Ihsan's profile picture
Ihsan10 months ago

@gen_intuition 😱😱😱

Wes Johnson's profile picture
Wes Johnson10 months ago

@gen_intuition um thank you I will put this to work immediately

W4R L0RD WILXI's profile picture
W4R L0RD WILXI10 months ago

@gen_intuition This is insane bro

dilip's profile picture
dilip10 months ago

@gen_intuition love this! ty for building and making it open source

shayaan's profile picture
shayaan10 months ago

@gen_intuition this is sick!!

eran shir's profile picture
eran shir10 months ago

@gen_intuition Immediately went to test it against our BADAS model, and it aced it! :)

Gami 💹 StockRip.com's profile picture
Gami 💹 StockRip.com10 months ago

@gen_intuition so damn good

Fevra's profile picture
Fevra10 months ago

@gen_intuition @tevoeatacid 👀

Cassidy Macfarlane 🇺🇦🇵🇸's profile picture
Cassidy Macfarlane 🇺🇦🇵🇸10 months ago

@cyb3rops @gen_intuition VLC has done this for years.

Sen's profile picture
Sen10 months ago

@gen_intuition THIS IS SO GOOD

John B.'s profile picture
John B.10 months ago

@gen_intuition I was doing this over ssh in the early 2000s. Buying like showing your friends acsii porn in school 😂😂😂

xavier's profile picture
xavier10 months ago

@gen_intuition sickkkkkkkkkkk

Lewis Bowes's profile picture
Lewis Bowes10 months ago

@gen_intuition this is cool

rajan agarwal's profile picture
rajan agarwal10 months ago

@gen_intuition this is insanely tuff

Simon Tingle's profile picture
Simon Tingle10 months ago

@gen_intuition In my ollama file manager I convert and play all videos in ascii art mode. I made it originally to help me add folders to git and create a markdown to describe my repo:

Related Videos