Bad Apple but in Windows Terminal ASCII art

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Working on CMDplay, a C# .NET command line tool using ffmpeg to play videos back in command line.
    NOTE: This video is obsolete. For a largely improved version, check out • cmdplay just got a who...
    Source code / Compiled windows binaries: github.com/mar...
    Shell: Windows Terminal / PowerShell
    Song: Bad Apple from Touhou (東方)

Комментарии • 157

  • @undeadpeak
    @undeadpeak 10 месяцев назад +785

    I love how bad apple basically exists to be a test in how good at programming you are

    • @zealotoffire3833
      @zealotoffire3833 10 месяцев назад +50

      yeah i legit saw someone make bad apple on conways game of life

    • @stalker32041
      @stalker32041 10 месяцев назад +13

      I think It reason of question... And wanted to tell a joke, but it contains intranslatable word

    • @vk8a8
      @vk8a8 10 месяцев назад +4

      And doom

    • @radishlordrak
      @radishlordrak 9 месяцев назад +23

      Bad Apple is for software what Doom is for hardware

    • @TragicGFuel
      @TragicGFuel 9 месяцев назад +7

      Nah, even a guy new to programming could whip it up

  • @NexusSpacey
    @NexusSpacey 10 месяцев назад +120

    The current standards for showing that something can be a display with at least two colors is to show it displaying Bad Apple and I think that is really funny

  • @themannyzaur
    @themannyzaur Год назад +250

    For something this nice your script really makes a lot of sense
    I actually understood everything and every process

    • @samplefx1
      @samplefx1  Год назад +31

      Thanks, glad to hear that :)

  • @plashplash-fg6hd
    @plashplash-fg6hd Год назад +83

    This is an impressive console application. This is a fresh masterpiece.

  • @daveejonesey
    @daveejonesey 3 года назад +67

    This is actually awesome

  • @_KDP
    @_KDP Год назад +30

    if you make a device, you need to make sure
    1. it an play bad apple
    2. it can run doom
    its not a device if it cant

  • @TheCatstronaut
    @TheCatstronaut 9 месяцев назад +5

    i literaly just watched someone use subtitles and put bad apple in it... now a powershell text command?
    damn

  • @richardgamez
    @richardgamez Год назад +61

    Average linux user installing a web browser:

    • @arkhilious
      @arkhilious 10 месяцев назад +5

      As a Debian Linux user, I can confirm that this is indeed how we install web browsers.

    • @EnterAName1
      @EnterAName1 9 месяцев назад

      ​@@arkhiliousyay -S firefox btw

    • @buildrobloxian-zx2tw
      @buildrobloxian-zx2tw 7 месяцев назад

      no you just type "sudo dpkg -i google-chrome-stable_current_amd64.deb." example in ubuntu@@arkhilious

    • @al3xth33x3cut0r
      @al3xth33x3cut0r 7 месяцев назад

      This is window btw

    • @mmtv9511
      @mmtv9511 3 месяца назад

      @@al3xth33x3cut0ri use vim btw

  • @Visxyia
    @Visxyia 2 года назад +56

    Can't believe text is better at animating than me :')

  • @TOCINOMM2BLOXY
    @TOCINOMM2BLOXY Месяц назад +1

    It is incredible to see something so fluid in cmd

  • @thund3rw1ngl30n
    @thund3rw1ngl30n 9 месяцев назад +6

    The number of times this zooms in for a transition means that a bunch of those scenes are showing microscopic people zoomed in till you can see them.

  • @JaxontheOkay
    @JaxontheOkay Год назад +140

    the most amazing part to me is the frame speed. is that 60 fps?

    • @samplefx1
      @samplefx1  Год назад +61

      the video itself is in 30fps, but it's more than capable of playing videos in framerates way above 60 :)

    • @cristianemontagner9616
      @cristianemontagner9616 10 месяцев назад

      Nah he just got a gud pc ;)

    • @hiram64
      @hiram64 10 месяцев назад +6

      Fun fact discovered by myself: if you watch something in a bad framerate like 15 or 5 fps and every frame cuts the audio and then look away life is going to run at 80 fps or more
      -me after playing dolphin on my shitty desktop one-piece computer for several hours

    • @bitonic589
      @bitonic589 10 месяцев назад +3

      ​@@hiram64uh.. does this kid think the universe is digital??

    • @-_lIl_-
      @-_lIl_- 10 месяцев назад +7

      @@bitonic589 i think he is saying that it is an illusion when he said about the life running at 80fps

  • @garcia6310
    @garcia6310 9 месяцев назад +1

    Bad Apple is one of the video with ultra smooth transition, pay respect to this guys creating it in Windows Terminal.

  • @fakech
    @fakech 9 месяцев назад +26

    Doing this on windows terminal instead of Linux terminal is an unforgivable crime

  • @Hurricane_0313
    @Hurricane_0313 Год назад +9

    this is weirdly smooth

  • @hail3y_xx
    @hail3y_xx 9 месяцев назад +1

    This is just insanely good

  • @rowzenmc
    @rowzenmc 10 месяцев назад +3

    Patience is a virtue.

  • @progect3548
    @progect3548 3 года назад +58

    ... how in the hell did you do this automaticallly!?

    • @samplefx1
      @samplefx1  3 года назад +28

      You can take a look at the source code in the description. You can try it out yourself if you want to.

    • @misterxultra
      @misterxultra Год назад +6

      Its a scrip that translates Video into this animation

    • @beanietechie
      @beanietechie Год назад +1

      @@misterxultra excellent description

  • @Thatrandomdude98967
    @Thatrandomdude98967 9 месяцев назад +1

    the amount of programming

  • @starwyvern010
    @starwyvern010 10 месяцев назад +2

    Well done!!! This is so smooth aah

  • @NickTvucsf91734
    @NickTvucsf91734 9 месяцев назад

    The quality of this here is better than the subtitles on RUclips

  • @GrandePirataCibernetico
    @GrandePirataCibernetico 2 месяца назад

    It would be amazing that episode from Samurai Jack white vs black

  • @the_viewer_of_videos8664
    @the_viewer_of_videos8664 10 месяцев назад +13

    I've been trying to do this for a long time and I just can't figure out how to make the output non jittery due to the fact the terminal has to scroll to output

    • @samplefx1
      @samplefx1  10 месяцев назад +7

      how I circumvented that: reset the cursor position to 0;0
      Also: don’t print the whole buffer width and height (ignore two rows and cols at the end)

  • @ArissonMercinova
    @ArissonMercinova 10 месяцев назад +2

    Very creative, I like it

  • @Arakinha
    @Arakinha 9 месяцев назад +1

    o cara é um génio

  • @xanderapple6944
    @xanderapple6944 9 месяцев назад

    finally a version i can actually tell what is going on

  • @Reputationegative
    @Reputationegative 9 месяцев назад +3

    Skibidi toilet kids won’t understand😢

  • @Riz_Aviation_722
    @Riz_Aviation_722 9 месяцев назад

    If you look at it from a distance, it looks like an old 1990s tv

  • @yurishizuro
    @yurishizuro Год назад +1

    ITS SO SMOOTH WTF

  • @xelalexa3262
    @xelalexa3262 Год назад +1

    i like how it sometimes just says HHHGHHGHGHGHGHGHGHHGHGHGHGHGHH

  • @last-dinosaur
    @last-dinosaur 2 года назад +7

    I don't need this. But I will download this anyway.

    • @samplefx1
      @samplefx1  2 года назад +3

      Thanks for your support anyways:)

    • @last-dinosaur
      @last-dinosaur 2 года назад

      @@samplefx1 is there way to make it multiply frames contrast before convert it? Or just simplify gray levels.

    • @metactal
      @metactal 10 месяцев назад

      There is probably somewhere in the code where it writes to some sort of pixel brightness variable. You could probably write the code to adjust it there yourself.

    • @samplefx1
      @samplefx1  10 месяцев назад

      @@last-dinosaur sorry for the ultra late answer, but there is a new version „cmdplaypp“ available, which has real time conversion, and 16-colour (with dithering) also full colour support

  • @DorusModderman
    @DorusModderman 9 месяцев назад

    2:12 blud even made the shadows look nice
    also BRO HE EVEN AMDE SMEAR FRAMES WHAT THE HECK

  • @user-wm7cz4xo3f
    @user-wm7cz4xo3f 3 года назад +22

    Cool idea, but I'm actually curios about tabs on the top of your window. Is there app that does that?

    • @samplefx1
      @samplefx1  3 года назад +6

      Thanks!
      Basically it’s just a console window.
      I included the program in the description! (:

    • @Secondarian
      @Secondarian 2 года назад +1

      It's Windows Terminal, it's literally in the Title.

    • @user-wm7cz4xo3f
      @user-wm7cz4xo3f 2 года назад +1

      @@Secondarian yeah, no. The tabs at the top are from Groupy.
      I guess there is native grouping of terminals in Windows 11 now, but no such thing in Win10, and I’ve been searching for this.
      (Just took a closer look and thought it might not actually be Groupy, but it looks really similar. Maybe it is just Powershell feature that I don’t know of.)

    • @ShippoHsu
      @ShippoHsu 2 года назад

      @@user-wm7cz4xo3f windows terminal is both available for Windows 10 and 11, hits not by default in Windows 10

  • @TheSilliestGooberEver1
    @TheSilliestGooberEver1 9 месяцев назад

    The next generation of RUclips animation

  • @brianery
    @brianery 9 месяцев назад

    that apple has seen better days

  • @vgbhj
    @vgbhj 3 года назад +1

    Microsoft new windows terminal presentation

  • @pizzaeater69
    @pizzaeater69 3 года назад +4

    Epik

  • @Mini-Rusty
    @Mini-Rusty 9 месяцев назад +1

    +1 subscriber!

  • @thatGIGABYTEemployee
    @thatGIGABYTEemployee 6 месяцев назад +1

    did you clean everything with cmd to play bad apple?

  • @vanran8116
    @vanran8116 9 месяцев назад

    bad apple = DOOM

  • @stairgoms
    @stairgoms 9 месяцев назад

    i swear someone is going to make this using a robot that shoots paper planes of different colors one of these days

  • @ulcuber
    @ulcuber 5 месяцев назад

    Another one 🎉

  • @rivergamertv9702
    @rivergamertv9702 9 месяцев назад

    when I scroll with the thumbnail on the screen it changes colors

  • @rudigameplay9201
    @rudigameplay9201 9 месяцев назад

    I did made a program in python that plays black and white videos in CMD. I tested it with bad apple

  • @azxss-m5r
    @azxss-m5r 9 месяцев назад

    this is what 1D like 💀💀

  • @cybr23
    @cybr23 Год назад +5

    Turn down the font size to make it look better but it will take longer to render

    • @obvMellow
      @obvMellow Год назад +2

      the font size is independent from the code so you would have to upscale the video too

    • @samplefx1
      @samplefx1  10 месяцев назад +3

      in the new version, cmdplaypp, it automatically scales the video down to the console resolution, so you could do that. However, as you already pointed out, it would get slower the more you turn the font size down :)

  • @zakrydavis994
    @zakrydavis994 9 месяцев назад

    As a wise man once said:
    “ if it has a screen, it can play doom, if it exists, it can play bad apple”

  • @MimasAnimations
    @MimasAnimations 3 года назад +4

    Richtig kuhl

  • @chunkymilky4512
    @chunkymilky4512 9 месяцев назад

    instead of dooms "can it play doom" its now "can it display bad apple"

  • @raibyo
    @raibyo 9 месяцев назад

    Rule 86: If it exists, you can play Bad Apple on it.

  • @dysxleia
    @dysxleia 7 месяцев назад

    Its crazy how much resolution you got from characters. It almost looks anti-aliased

    • @samplefx1
      @samplefx1  7 месяцев назад

      I agree, theoretically it is anti aliased because of the down-scale

  • @regularepicgamer1872
    @regularepicgamer1872 9 месяцев назад

    me when police tells to free the kids from my basement 00:53

  • @Choi_silver
    @Choi_silver 9 месяцев назад

    동덕은 전설이다

  • @NotPilitoYT
    @NotPilitoYT 7 месяцев назад

    Can you put the command to run in my computer please?

  • @realperson26
    @realperson26 Год назад

    amazing

  • @happysugarwaifu432
    @happysugarwaifu432 9 месяцев назад

    Holy shit...

  • @MohitKhare
    @MohitKhare 9 месяцев назад

    That was amazing man. Really appreciate your hard work. Can you tell me how can I integrate it to my powershell scripts. My plan is to build a custom script that run when I open the powershell for the first time. I want to embed this functionality in my ps scripts. Is there a way , let me know. Thanks a ton. ❤

    • @samplefx1
      @samplefx1  9 месяцев назад +1

      thank you. while it is certainly possible, I would recommend you to use the newer version „cmdplaypp“ because it plays the video instantly (it doesn’t need to render the whole video ahead of time)
      do you want to play a video and resume back to the shell or what are your plans exactly?

  • @loliwaifu
    @loliwaifu Год назад +1

    Can run it in an Apple 2?

  • @sebastianabarza26
    @sebastianabarza26 Год назад

    nice

  • @FILENAMEthecomposermaker
    @FILENAMEthecomposermaker 9 месяцев назад

    🍎 chain, i guess?

  • @XxRXSExX
    @XxRXSExX 3 года назад +4

    download would be cool !?!?!

    • @samplefx1
      @samplefx1  3 года назад +1

      Sure, I will clean up the code a little bit and share it on github. I will let you know once it's available. (:

    • @samplefx1
      @samplefx1  3 года назад +1

      I put the download link in the description.

  • @sylabulus
    @sylabulus 10 месяцев назад +2

    Why not just mplayer -vo aalib -quiet -framedrop?

    • @samplefx1
      @samplefx1  10 месяцев назад

      well, good question, but does that support full pixel and full colour mode?

    • @sylabulus
      @sylabulus 10 месяцев назад +1

      @@samplefx1 there is no such thing as a „full pixel mode“ (unless I don't get what you mean). Also, I don't see how color output can be used here, but if you need it, libcaca is a good alternative.

    • @sylabulus
      @sylabulus 10 месяцев назад

      @@samplefx1 ruclips.net/video/OyTuZYKMF24/видео.html demo

    • @samplefx1
      @samplefx1  10 месяцев назад

      @@sylabulus for this, you’re right, but there is an updated version available which is able to do colours.
      Full pixel mode is also just a name (and a very good optimization for the windows terminal text renderer) for outputting a special character rendered as the whole character field.
      For more info, I will release a video about the updated version in the next few days.
      Honestly didn’t now that was a thing, so thank you for pointing it out

  • @TS_Mind_Swept
    @TS_Mind_Swept 9 месяцев назад

    Why does it sound like askey..

  • @tuannta
    @tuannta 22 дня назад

    Can you give me those characters in order from lightest to darkest? 🥺

    • @samplefx1
      @samplefx1  22 дня назад +1

      @@tuannta they are " .-+*wGHM#&%@" where the first one is a space. You can find another character list in the projects github project (link in description) right at the top of Program.cs

    • @tuannta
      @tuannta 21 день назад

      @@samplefx1 thank you verymuch

  • @johnandoy2187
    @johnandoy2187 3 года назад +3

    yow how do i do this?

    • @samplefx1
      @samplefx1  3 года назад +2

      There are builds for windows available if you don't want to compile it yourself.
      (Description contains source code + binaries on github)
      Launch the program and enter the path to the video file(you can drag + drop), press return.
      The preparation may take a while (try first with a short video)
      After the preparation process is done, hit enter to play back the video.

  • @maybebrill
    @maybebrill 2 года назад +1

    can u tell how i play bad apple with this?

    • @samplefx1
      @samplefx1  2 года назад

      Download the software from GitHub, extract the zip-file and drag-and-drop a video file into the window.
      Press enter and wait a few moments for the program to process the video.

  • @atomination633
    @atomination633 Год назад +1

    Does this work on mac?

    • @samplefx1
      @samplefx1  Год назад +1

      yes it (the code) should work on mac, however you need to compile it for mac first (using visual studio)

  • @relmat3991
    @relmat3991 2 года назад

    can you make a tutorial how to download it and launch it. i swear i've been trying to make it work but it just doesn't

    • @samplefx1
      @samplefx1  2 года назад +2

      Just go to the linked github page, get the windows binaries (zip file), extract all files, launch CmdPlay(.exe) (windows will warn you, click run anyway), drag your video file directly into the window and press enter.
      I can make a tutorial on it if I can find some time ^^

    • @relmat3991
      @relmat3991 2 года назад

      @@samplefx1 for some reason when i extract it its not .exe its still .cs

    • @samplefx1
      @samplefx1  2 года назад

      @@relmat3991 you gotta reload the windows binaries, not the source code

    • @PromitoshTalukderbg
      @PromitoshTalukderbg Год назад

      ​@@samplefx1u r not using linux?can u actually tell me how this is done in linux?i downloaded ffmpeg n netaudio but when i run the program it says missing assmebly(im not gud in c#)

    • @samplefx1
      @samplefx1  10 месяцев назад

      @@PromitoshTalukderbg the problem here would be audio playback sadly as the audio library, naudio relies on winmm.dll (which is only available under windows)
      However, there is a new version, cmdplaypp, available, which in theory would be almost completely compatible with Linux/mac.
      I’m currently working on cross platform support for that, so hold on a while :)

  • @ratoncito6685
    @ratoncito6685 Год назад

    bakan

  • @schonc
    @schonc 9 месяцев назад

    what is the most difficult part of making this?

    • @samplefx1
      @samplefx1  8 месяцев назад

      probably the optimization where it can run at a framerate more than 4. But I solved it quite easily by doing only write call per frame :)

  • @DeletedUser-ob7ch
    @DeletedUser-ob7ch Год назад +1

    can try?

    • @samplefx1
      @samplefx1  Год назад +1

      Just take a look at the GitHub link in the description under releases.
      Just download the zip and execute cmdplay.exe

  • @toge0inumaki
    @toge0inumaki 8 месяцев назад

    when you releasing the code?

    • @samplefx1
      @samplefx1  8 месяцев назад

      it's in the description if you wanna take a look

  • @theblinkingbrownie4654
    @theblinkingbrownie4654 3 года назад +1

    Huh why does it contain only 1 letter

    • @samplefx1
      @samplefx1  3 года назад +5

      Because the Bad Apple MV is only black and white, no grayscale.

    • @samplefx1
      @samplefx1  3 года назад +5

      And if you look closely, it does in fact contain other letters, only at the edges though due to downscaling.

    • @theblinkingbrownie4654
      @theblinkingbrownie4654 3 года назад +3

      @@samplefx1 oh yeah it's just your font making characters too similar

  • @ilovedumplings_10
    @ilovedumplings_10 9 месяцев назад

    0:19

  • @vgbhj
    @vgbhj 3 года назад +1

    gj

  • @samplefx1
    @samplefx1  3 года назад +5

    Starts at 00:19

  • @NewfieCatgirl
    @NewfieCatgirl 10 месяцев назад

    Clickbait is ridiculous. All these bad apple videos have nothing to do with classic rock.
    Some people call me a bad apple
    Well I may be bruised but I still taste sweet
    Some people call me a bad apple
    But I may be the sweetest apple on the tree