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 (東方)
I love how bad apple basically exists to be a test in how good at programming you are
yeah i legit saw someone make bad apple on conways game of life
I think It reason of question... And wanted to tell a joke, but it contains intranslatable word
And doom
Bad Apple is for software what Doom is for hardware
Nah, even a guy new to programming could whip it up
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
For something this nice your script really makes a lot of sense
I actually understood everything and every process
Thanks, glad to hear that :)
This is an impressive console application. This is a fresh masterpiece.
This is actually awesome
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
You forgot minecraft
@@alexjustalexyt1144no you don't need mc
@@alexjustalexyt1144 no
i literaly just watched someone use subtitles and put bad apple in it... now a powershell text command?
damn
Average linux user installing a web browser:
As a Debian Linux user, I can confirm that this is indeed how we install web browsers.
@@arkhiliousyay -S firefox btw
no you just type "sudo dpkg -i google-chrome-stable_current_amd64.deb." example in ubuntu@@arkhilious
This is window btw
@@al3xth33x3cut0ri use vim btw
Can't believe text is better at animating than me :')
It is incredible to see something so fluid in cmd
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.
the most amazing part to me is the frame speed. is that 60 fps?
the video itself is in 30fps, but it's more than capable of playing videos in framerates way above 60 :)
Nah he just got a gud pc ;)
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
@@hiram64uh.. does this kid think the universe is digital??
@@bitonic589 i think he is saying that it is an illusion when he said about the life running at 80fps
Bad Apple is one of the video with ultra smooth transition, pay respect to this guys creating it in Windows Terminal.
Doing this on windows terminal instead of Linux terminal is an unforgivable crime
ikr, bash apple when
this is weirdly smooth
This is just insanely good
Patience is a virtue.
... how in the hell did you do this automaticallly!?
You can take a look at the source code in the description. You can try it out yourself if you want to.
Its a scrip that translates Video into this animation
@@misterxultra excellent description
the amount of programming
Well done!!! This is so smooth aah
The quality of this here is better than the subtitles on RUclips
It would be amazing that episode from Samurai Jack white vs black
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
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)
Very creative, I like it
o cara é um génio
finally a version i can actually tell what is going on
Skibidi toilet kids won’t understand😢
If you look at it from a distance, it looks like an old 1990s tv
ITS SO SMOOTH WTF
i like how it sometimes just says HHHGHHGHGHGHGHGHGHHGHGHGHGHGHH
I don't need this. But I will download this anyway.
Thanks for your support anyways:)
@@samplefx1 is there way to make it multiply frames contrast before convert it? Or just simplify gray levels.
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.
@@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
2:12 blud even made the shadows look nice
also BRO HE EVEN AMDE SMEAR FRAMES WHAT THE HECK
Cool idea, but I'm actually curios about tabs on the top of your window. Is there app that does that?
Thanks!
Basically it’s just a console window.
I included the program in the description! (:
It's Windows Terminal, it's literally in the Title.
@@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.)
@@user-wm7cz4xo3f windows terminal is both available for Windows 10 and 11, hits not by default in Windows 10
The next generation of RUclips animation
that apple has seen better days
Microsoft new windows terminal presentation
Epik
+1 subscriber!
did you clean everything with cmd to play bad apple?
bad apple = DOOM
i swear someone is going to make this using a robot that shoots paper planes of different colors one of these days
Another one 🎉
when I scroll with the thumbnail on the screen it changes colors
I did made a program in python that plays black and white videos in CMD. I tested it with bad apple
this is what 1D like 💀💀
Turn down the font size to make it look better but it will take longer to render
the font size is independent from the code so you would have to upscale the video too
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 :)
As a wise man once said:
“ if it has a screen, it can play doom, if it exists, it can play bad apple”
Richtig kuhl
Sankuu
instead of dooms "can it play doom" its now "can it display bad apple"
Rule 86: If it exists, you can play Bad Apple on it.
Its crazy how much resolution you got from characters. It almost looks anti-aliased
I agree, theoretically it is anti aliased because of the down-scale
me when police tells to free the kids from my basement 00:53
동덕은 전설이다
Can you put the command to run in my computer please?
amazing
Holy shit...
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. ❤
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?
Can run it in an Apple 2?
nice
🍎 chain, i guess?
download would be cool !?!?!
Sure, I will clean up the code a little bit and share it on github. I will let you know once it's available. (:
I put the download link in the description.
Why not just mplayer -vo aalib -quiet -framedrop?
well, good question, but does that support full pixel and full colour mode?
@@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.
@@samplefx1 ruclips.net/video/OyTuZYKMF24/видео.html demo
@@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
Why does it sound like askey..
Can you give me those characters in order from lightest to darkest? 🥺
@@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
@@samplefx1 thank you verymuch
yow how do i do this?
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.
can u tell how i play bad apple with this?
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.
Does this work on mac?
yes it (the code) should work on mac, however you need to compile it for mac first (using visual studio)
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
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 ^^
@@samplefx1 for some reason when i extract it its not .exe its still .cs
@@relmat3991 you gotta reload the windows binaries, not the source code
@@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#)
@@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 :)
bakan
what is the most difficult part of making this?
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 :)
can try?
Just take a look at the GitHub link in the description under releases.
Just download the zip and execute cmdplay.exe
when you releasing the code?
it's in the description if you wanna take a look
Huh why does it contain only 1 letter
Because the Bad Apple MV is only black and white, no grayscale.
And if you look closely, it does in fact contain other letters, only at the edges though due to downscaling.
@@samplefx1 oh yeah it's just your font making characters too similar
0:19
gj
thx~
Starts at 00:19
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
?
don't do drugs kids