News for hackers. Stuff that matters.
Re:ASCII Video Player by CottonMcKnight on Wednesday November 10, 2021 @11:01PM (#29184294)
Re:ASCII Video Player by capableweb on Thursday November 11, 2021 @07:14AM (#29187094)
> -vo=caca

Ironically, the video output called "caca" comes from "libcaca", "a graphics library that outputs text instead of pixels". The irony comes from "caca" meaning "poop" in Spanish, so the video output is named "poop", which seems fitting.

Re:ASCII Video Player by jmrm on Thursday November 11, 2021 @08:38AM (#29187677)
AFAIK this is totally intentional. The lib is done by French people, and in French, 'caca' also means 'poop' :-)
Re:ASCII Video Player by mdp2021 on Thursday November 11, 2021 @10:25AM (#29188842)
> in French ... also

In all the dialects: it's greek for "evil, bad". From the IE root for "twisted".

Given the original core concept of "strongly bent", its meaning as "morally twisted", its connotation of "repulsive" and its use as a pejorative (prefixed), the nursery reference collected a good deal of the above - the physical description, the moral metaphor, the reaction, the qualification.

Re:ASCII Video Player by AnthonBerg on Thursday November 11, 2021 @09:33AM (#29188186)
ascii art library : AAlib ⇔ libcaca : library for color ascii art

This is the official mascot: http://caca.zoy.org/static/libcaca-logo.png

  This is our most famous software:
  libcaca, the industry-standard colour ASCII-art library
http://caca.zoy.org/wiki/libcaca
Re:ASCII Video Player by Hamuko on Thursday November 11, 2021 @01:49AM (#29185155)
This requires building with libcaca. There's also tct, which is surprisingly high fidelity (but not ASCII).

  mpv --quiet -vo=tct 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
Re:ASCII Video Player by agumonkey on Thursday November 11, 2021 @05:19AM (#29186414)
> VO: [caca] 1920x1080 bgr24

the irony of fetching HD to downsample to ascii :)

Re:ASCII Video Player by podiki on Thursday November 11, 2021 @12:09AM (#29184627)
I wondered what video you picked...I shouldn't have.
Re:ASCII Video Player by palad1n on Thursday November 11, 2021 @12:55AM (#29184880)
There can be only one.
Re:ASCII Video Player by stavros on Thursday November 11, 2021 @07:38AM (#29187246)
You haven't been here long enough that the XcQ gives it away, huh :P
Re:ASCII Video Player by podiki on Thursday November 11, 2021 @11:40AM (#29189964)
Been around long enough, but I guess managed to dodge it mostly (or usually see links that go through some intermediary?) and not really mind, to be honest :)
Re:ASCII Video Player by RealStickman_ on Thursday November 11, 2021 @07:41AM (#29187263)
I always recognize it based on "dQw". Interesting that you look at the ending
Re:ASCII Video Player by stavros on Thursday November 11, 2021 @07:45AM (#29187294)
Huh, yeah... I figure I don't have to scan for the = that way (not that I ever really consciously decided that).
Re:ASCII Video Player by Turing_Machine on Wednesday November 10, 2021 @11:19PM (#29184389)
Cool!

YMMV, but for me setting the font slider to a considerably smaller value than the default gave a more visually impressive result.

The controls will apparently self-hide after a few moments with no mouse activity, if you want to get a screenshot of something.

Re:ASCII Video Player by zeroq on Thursday November 11, 2021 @08:36AM (#29187658)
Basically AAlib [1].

I remember it was mind-blowing being able to launch quake inside your terminal, but that was over 20 years ago. The tech is basically scaling the image down to the size of the terminal and using LUT to get a character from pixel's luminosity. The hardest part of this particular demo is, in fact, rendering font in WebGL. Rest is rather trivial and while interesting and pretty I don't really think it deserves first page on HN.

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

Re:ASCII Video Player by greggman3 on Thursday November 11, 2021 @01:14PM (#29191081)
Too lazy to go add video but wrote a post processing pass to do this here

https://greggman.github.io/doodles/textme08.html

You can choose various different subsets of unicode (glyphs), you can also choose "DOS colors" (debug) and change the text size etc..

It's just post processing a 3D scene but it would be trivial to change it to video

A different kind of video effect is to use the video has a height map. Works best with certain kinds of videos

https://greggman.github.io/doodles/3d-grid-video.html?url=vi... (warning: has sound)

Re:ASCII Video Player by phkahler on Thursday November 11, 2021 @09:21AM (#29188081)
I think it might be better with one of the old character sets that had multiple blocks per pixel. That would increase the resolution and they could use Floyd-Steinberg dithering or similar to get grayscale. OTOH that wouldn't be ASCII.
Re:ASCII Video Player by noja on Thursday November 11, 2021 @03:37AM (#29185798)
What does this do that mplayer with ascii-out doesn't?
Re:ASCII Video Player by crehn on Wednesday November 10, 2021 @11:04PM (#29184308)
Couldn't get it to work on Safari. Just a blank screen, but audio works.
Re:ASCII Video Player by arachnophobe on Thursday November 11, 2021 @07:59AM (#29187408)
Reminds me of this music video https://www.youtube.com/watch?v=QC25gRwbpsg
Re:ASCII Video Player by readflaggedcomm on Thursday November 11, 2021 @01:44AM (#29185130)
Is there a canonical way to find the source to these types of github links? The broken link to durian.blender.org doesn't show anything, and the user page https://github.com/Pessimistress doesn't have any obvious ascii-art or video projects. Neither does the home page linked from github. And bundle.js is just obfuscated.

It looks like libcaca, but I would have to recompile mpv to see how similar it is.

Re:ASCII Video Player by capableweb on Thursday November 11, 2021 @08:02AM (#29187426)
Yeah, the URL scheme is as follows:

- https://pessimistress.github.io/ascii/

- User: pessimistress

- Repository: ascii

But in this case, https://github.com/pessimistress/ascii seems to be private, so seems source is not published at all. Seems sourcemaps is defined in the JS file, but points to a non-existing file, so can't help you either. Left is to use something like http://jsnice.org/ to "de-uglify" it and try to guess what it is doing.

Re:ASCII Video Player by jcun4128 on Thursday November 11, 2021 @04:12AM (#29186047)
What are the benefits I'm curious... it seems obvious less data? In that case when would this be a good thing to use... maybe generic DIY/how to's on not so difficult concepts. It's really cool, has decent color too. Probably do the same with large pixels/blurred video?

I still think about that "world knowledge compressed to disc" or something like 10GB Wikipedia. Video's not good compared to text for space saving but yeah.

Re:ASCII Video Player by makoto12 on Thursday November 11, 2021 @04:28AM (#29186147)
Would be surprised if anyone could come up with legitimate benefits. To me this is just a fun coding challenge
Re:ASCII Video Player by de_nied on Thursday November 11, 2021 @11:02AM (#29189410)
Re:ASCII Video Player by PennRobotics on Thursday November 11, 2021 @05:25AM (#29186450)
Watching videos on the command line? Watching videos in vim?
Re:ASCII Video Player by shiomiru on Thursday November 11, 2021 @05:47AM (#29186572)
If you actually intend to do that for whatever reason, sixel is a far more usable alternative (if your terminal can actually process the frames in real time, that is).
Re:ASCII Video Player by NoMAD76 on Thursday November 11, 2021 @07:52AM (#29187354)
I would love to have it as a browser extension for various personal reasons but sometimes I do fancy the good old arcane time Something like this --> https://andrei.codes/ascii-camera/
Re:ASCII Video Player by chaz6 on Thursday November 11, 2021 @03:27AM (#29185733)
Re:ASCII Video Player by kloch on Thursday November 11, 2021 @12:03PM (#29190259)
It's weird hearing the audio so clear while video is ASCII. What would be the audio equivalent of ASCII video?
Re:ASCII Video Player by sneeeeeed on Thursday November 11, 2021 @01:02PM (#29190943)
QuickTime used to have an ascii output, like 20 years ago!
Re:ASCII Video Player by anthk on Thursday November 11, 2021 @07:06AM (#29187052)
You use the framebuffer/kms if you don't want X.
Re:ASCII Video Player by ChrisArchitect on Thursday November 11, 2021 @03:10PM (#29192537)
Re:ASCII Video Player by ChrisArchitect on Thursday November 11, 2021 @03:12PM (#29192551)
Re:ASCII Video Player by mmargerum on Thursday November 11, 2021 @07:56AM (#29187383)
apparently safari doesn't support webgl2
Re:ASCII Video Player by data_ders on Wednesday November 10, 2021 @11:33PM (#29184445)
so cool!
Re:ASCII Video Player by can16358p on Thursday November 11, 2021 @04:29AM (#29186155)
Nothing is happening? There is a dropdown to select a video source and font, and a white blank page? (Safari 15.1, macOS Monterey)
Re:ASCII Video Player by howerkraft on Thursday November 11, 2021 @05:26AM (#29186457)
Same here. MacOS, Safari.