Bad Apple but in Windows Terminal ASCII art

Поділитися
Вставка
  • Опубліковано 8 вер 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 місяців тому +784

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

    • @zealotoffire3833
      @zealotoffire3833 10 місяців тому +49

      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 9 місяців тому +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.

  • @TheCatstronaut
    @TheCatstronaut 9 місяців тому +5

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

  • @daveejonesey
    @daveejonesey 3 роки тому +67

    This is actually awesome

  • @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

  • @_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

  • @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.

  • @fakech
    @fakech 9 місяців тому +26

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

  • @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.

  • @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

  • @Hurricane_0313
    @Hurricane_0313 Рік тому +9

    this is weirdly smooth

  • @hail3y_xx
    @hail3y_xx 8 місяців тому +1

    This is just insanely good

  • @Thatrandomdude98967
    @Thatrandomdude98967 9 місяців тому +1

    the amount of programming

  • @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

  • @GrandePirataCibernetico
    @GrandePirataCibernetico 2 місяці тому

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

  • @NickTvucsf91734
    @NickTvucsf91734 9 місяців тому

    The quality of this here is better than the subtitles on UA-cam

  • @Arakinha
    @Arakinha 9 місяців тому +1

    o cara é um génio

  • @the_viewer_of_videos8664
    @the_viewer_of_videos8664 9 місяців тому +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  9 місяців тому +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)

  • @xanderapple6944
    @xanderapple6944 9 місяців тому

    finally a version i can actually tell what is going on

  • @starwyvern010
    @starwyvern010 9 місяців тому +2

    Well done!!! This is so smooth aah

  • @Riz_Aviation_722
    @Riz_Aviation_722 9 місяців тому

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

  • @vgbhj
    @vgbhj 3 роки тому +1

    Microsoft new windows terminal presentation

  • @DorusModderman
    @DorusModderman 9 місяців тому

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

  • @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  9 місяців тому

      @@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

  • @ArissonMercinova
    @ArissonMercinova 10 місяців тому +2

    Very creative, I like it

  • @brianery
    @brianery 9 місяців тому

    that apple has seen better days

  • @yurishizuro
    @yurishizuro Рік тому +1

    ITS SO SMOOTH WTF

  • @Reputationegative
    @Reputationegative 9 місяців тому +3

    Skibidi toilet kids won’t understand😢

  • @TheSilliestGooberEver1
    @TheSilliestGooberEver1 9 місяців тому

    The next generation of UA-cam animation

  • @xelalexa3262
    @xelalexa3262 Рік тому +1

    i like how it sometimes just says HHHGHHGHGHGHGHGHGHHGHGHGHGHGHH

  • @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

  • @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

  • @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  9 місяців тому +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 :)

  • @rudigameplay9201
    @rudigameplay9201 9 місяців тому

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

  • @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”

  • @Mini-Rusty
    @Mini-Rusty 9 місяців тому +1

    +1 subscriber!

  • @pizzaeater69
    @pizzaeater69 3 роки тому +4

    Epik

  • @ulcuber
    @ulcuber 5 місяців тому

    Another one 🎉

  • @vanran8116
    @vanran8116 9 місяців тому

    bad apple = DOOM

  • @thatGIGABYTEemployee
    @thatGIGABYTEemployee 6 місяців тому +1

    did you clean everything with cmd to play bad apple?

  • @raibyo
    @raibyo 9 місяців тому

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

  • @rivergamertv9702
    @rivergamertv9702 9 місяців тому

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

  • @user-my1oo8vl8l
    @user-my1oo8vl8l 9 місяців тому

    this is what 1D like 💀💀

  • @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

  • @chunkymilky4512
    @chunkymilky4512 9 місяців тому

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

  • @regularepicgamer1872
    @regularepicgamer1872 9 місяців тому

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

  • @MimasAnimations
    @MimasAnimations 3 роки тому +4

    Richtig kuhl

  • @realperson26
    @realperson26 Рік тому

    amazing

  • @Choi_silver
    @Choi_silver 9 місяців тому

    동덕은 전설이다

  • @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.

  • @happysugarwaifu432
    @happysugarwaifu432 9 місяців тому

    Holy shit...

  • @sebastianabarza26
    @sebastianabarza26 Рік тому

    nice

  • @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?

  • @sylabulus
    @sylabulus 9 місяців тому +2

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

    • @samplefx1
      @samplefx1  9 місяців тому

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

    • @sylabulus
      @sylabulus 9 місяців тому +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 9 місяців тому

      @@samplefx1 ua-cam.com/video/OyTuZYKMF24/v-deo.html demo

    • @samplefx1
      @samplefx1  9 місяців тому

      @@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

  • @FILENAMEthecomposermaker
    @FILENAMEthecomposermaker 9 місяців тому

    🍎 chain, i guess?

  • @NotPilitoYT
    @NotPilitoYT 7 місяців тому

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

  • @loliwaifu
    @loliwaifu Рік тому +1

    Can run it in an Apple 2?

  • @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.

  • @ratoncito6685
    @ratoncito6685 Рік тому

    bakan

  • @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.

  • @TS_Mind_Swept
    @TS_Mind_Swept 9 місяців тому

    Why does it sound like askey..

  • @tuannta
    @tuannta 18 днів тому

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

    • @samplefx1
      @samplefx1  18 днів тому +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 18 днів тому

      @@samplefx1 thank you verymuch

  • @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)

  • @ilovedumplings_10
    @ilovedumplings_10 9 місяців тому

    0:19

  • @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  9 місяців тому

      @@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 :)

  • @vgbhj
    @vgbhj 3 роки тому +1

    gj

  • @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 :)

  • @toge0inumaki
    @toge0inumaki 8 місяців тому

    when you releasing the code?

    • @samplefx1
      @samplefx1  8 місяців тому

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

  • @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

  • @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

  • @samplefx1
    @samplefx1  3 роки тому +5

    Starts at 00:19

  • @NewfieCatgirl
    @NewfieCatgirl 9 місяців тому

    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