* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: ASCII Video Generator  (Read 718 times)

0 Members and 1 Guest are viewing this topic.

Offline _iPhoenix_

  • Full User
  • Join Date: Mar 2017
  • Location:
  • Posts: 480
  • Post Rating Ratio: +9/-1
  • █████ ▼ ♪ Best music ♫
    • @dj_iPhoenix
    • @UCytgMNPxAMDsxjimvxHf01w
    • @the-legend-of-iphoenix
  • Gender: Male
Re: ASCII Video Generator
« Reply #15 on: September 15, 2017, 08:54:23 pm »
Ahh so it just filled it all with char DB.

That's why I though a custom palette could be cool;)
  • Calculators owned: A sentient TI-84+ CE, TI-85
  • Consoles, mobile devices and vintage computers owned: TI-99/4a home computer
Help me with a project by voting here! Thanks!

"walruses are better than tuxedo chickens, all hail the great :walrii:" ~ me

Offline Jarren Long

  • New User
  • Join Date: Dec 2014
  • Location:
  • Posts: 16
  • Post Rating Ratio: +0/-0
Re: ASCII Video Generator
« Reply #16 on: September 15, 2017, 09:05:55 pm »
More or less. Here's the font I threw together for testing, minus the char->bitmap definitions. Wouldn't be too hard to +/- characters, or change colors once I can bust the charmaps out of the code and dump them into a config file.

Offline Jarren Long

  • New User
  • Join Date: Dec 2014
  • Location:
  • Posts: 16
  • Post Rating Ratio: +0/-0
Re: ASCII Video Generator
« Reply #17 on: September 28, 2017, 03:30:48 pm »
Latest Updates (not many):

 * Bunch of memory optimizations, now doing some of the processing in parallel, so I got a nice speed boost (ballpark of 7-8x faster) and memory reduction (about 70% less memory) in the image conversion process. Video conversion now only takes about a minute for every second of video to process at higher quality settings with coloring enabled. Only a minute :/
 * Fonts are now XML-file configurable; characters used for output can be added/removed at will, and the font bitmap can be changed too. I have three fonts right now, all based on the same bitmaps
 - Full set: 69 possible output characters (all printable characters from ASCII 1-128) - Slowest, best results
 - Only Symbols: Full set, minus all letters/numbers - Middle ground for speed vs. accuracy
 - Two character Set: It's either a # or a space - Fastest, edge resolution leaves a bit to be desired
 * Added a command line program that can be used to call the API. Takes an input image, some flags, and spits out the result to a destination file
 * Now have a "rescale" option, lets the output image be scaled back to the same size as the input image to fix some of the distortion problems (Console app only right now, need to add a checkbox to the WinForms test app to toggle it)
 * With exception to the code snippets that handle the FFMPEG/AVI formats, everything is written in pure C#, should be easy to port to other .NET platforms now
 
B&W Video Test: https://www.booksnbytes.net/test-out-noColor.mp4
Color Video Test: https://www.booksnbytes.net/test-out-q80-e30-c8.mp4

Offline ordelore

  • Full User
  • Safe-haven access
  • Join Date: Oct 2015
  • Location:
  • Posts: 93
  • Post Rating Ratio: +2/-0
  • 8x
    • @ordelore8x
    • ordelore8x
    • @UCJ9TFxpyxonUZvAv-S8K_1A
    • /u/ordelore8x
    • ordelore
    • 112/11231
    • My WIP Story
Re: ASCII Video Generator
« Reply #18 on: October 01, 2017, 03:16:54 am »
This is looking really neat! i'm particularly impressed with how accurate the color ascii looks. It kinda reminds me of late 90s PC game illustration.
  • Calculators owned: TI-84+SE, TI_Nspire CX
Calc Wars is still alive (I hope)

Offline _iPhoenix_

  • Full User
  • Join Date: Mar 2017
  • Location:
  • Posts: 480
  • Post Rating Ratio: +9/-1
  • █████ ▼ ♪ Best music ♫
    • @dj_iPhoenix
    • @UCytgMNPxAMDsxjimvxHf01w
    • @the-legend-of-iphoenix
  • Gender: Male
Re: ASCII Video Generator
« Reply #19 on: October 01, 2017, 03:12:47 pm »
This is looking really neat! i'm particularly impressed with how accurate the color ascii looks. It kinda reminds me of late 90s PC game illustration.

I agree; it looks very beautifully crappy in a very awesome nostalgic way.
  • Calculators owned: A sentient TI-84+ CE, TI-85
  • Consoles, mobile devices and vintage computers owned: TI-99/4a home computer
Help me with a project by voting here! Thanks!

"walruses are better than tuxedo chickens, all hail the great :walrii:" ~ me

Offline RalphDSpam

  • New User
  • Join Date: Oct 2017
  • Location:
  • Posts: 2
  • Post Rating Ratio: +0/-0
Re: ASCII Video Generator
« Reply #20 on: October 07, 2017, 04:22:12 am »
Looks neat!

Just out of curiosity, how good is this as a "compression algorithm"?
If you put each frame of raw text in a file and zipped it, how would it compare to the original video?

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18798
  • Post Rating Ratio: +98/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: ASCII Video Generator
« Reply #21 on: October 08, 2017, 10:32:53 pm »
Looks awesome given the limitations!
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline _iPhoenix_

  • Full User
  • Join Date: Mar 2017
  • Location:
  • Posts: 480
  • Post Rating Ratio: +9/-1
  • █████ ▼ ♪ Best music ♫
    • @dj_iPhoenix
    • @UCytgMNPxAMDsxjimvxHf01w
    • @the-legend-of-iphoenix
  • Gender: Male
Re: ASCII Video Generator
« Reply #22 on: October 13, 2017, 11:11:30 am »
Looks awesome given the limitations!

No kidding!

Both entries (I’m making an [un]safe assumption that there are only two) are exceptional, and it will be quite the challenge to judge them.

I’ll probably enlist the help of some IRL friends to help me with the judging, and will post their results on the official unofficial thread.
  • Calculators owned: A sentient TI-84+ CE, TI-85
  • Consoles, mobile devices and vintage computers owned: TI-99/4a home computer
Help me with a project by voting here! Thanks!

"walruses are better than tuxedo chickens, all hail the great :walrii:" ~ me

Offline Jarren Long

  • New User
  • Join Date: Dec 2014
  • Location:
  • Posts: 16
  • Post Rating Ratio: +0/-0
Re: ASCII Video Generator
« Reply #23 on: October 18, 2017, 08:30:39 pm »
Now that the contest is over, I've released the source code for this atrocity, see https://github.com/JarrenLong/bmp2ascii, in case anyone is interested in this big ball of wibbly-wobbly, timey-wimey trainwreck, have at it! Hoping @Juju will be letting his out into the wild sometime soon too, I'm definitely curious to see that magical goodness in action :)

Offline Juju

  • aka Yuki Kagayaki aka J̵̭͕͇ù̞̭̝̯̦j̴̭̙̗͖͡ù͏͓̲̕
  • CodeWalrus Staff
  • Super User
  • Server Maintenance
  • Moderator
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Inside a walrus
  • Posts: 3099
  • Post Rating Ratio: +30/-2
  • Couch potato
    • jul.savard
    • juju2143
    • @juju2143
    • juju2143
    • @julosoft
    • juju-kun
    • /u/juju2143
    • juju2143
    • @juju2143
    • Juju's shed
  • Gender: Female
  • WalriiPoints: 99999
Re: ASCII Video Generator
« Reply #24 on: October 18, 2017, 08:32:44 pm »
Hoping @Juju will be letting his out into the wild sometime soon too, I'm definitely curious to see that magical goodness in action :)
I'm going to update my topic, you won't believe line 12! #clickbait
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
On semi-hiatus until who knows when. CODEWALRUS 2.0 COMING SOON
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron

if you wanna throw money at me and/or CodeWalrus monthly it's here

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18798
  • Post Rating Ratio: +98/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: ASCII Video Generator
« Reply #25 on: October 20, 2017, 05:23:51 pm »
I wonder how is the performance like, considering that some softwares have trouble displaying text at a reasonable speed. Even the TI-84+ OS font display had that problem, to the point where ASM sprites were actually faster
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games