Bad apple in Python

  Рет қаралды 111,894

Hexagon II

Hexagon II

Күн бұрын

Пікірлер: 349
@lynthir6323
@lynthir6323 3 жыл бұрын
When an ASCII animation have a better clarity than bank CCTV footage.
@PilaCiu
@PilaCiu 3 жыл бұрын
@TheGamerX Look at real CCTV cameras, they are like 99,9% garbage.
@hariranormal5584
@hariranormal5584 3 жыл бұрын
@@PilaCiu There is a proper reason why they are. I don't understand how people don't get such a simple thing onto their heads
@tomikun8057
@tomikun8057 3 жыл бұрын
@@PilaCiu Fuck no. They're just overpriced as fuck not garbage
@rimacctwo6901
@rimacctwo6901 3 жыл бұрын
@@tomikun8057 they made it garbage just to reduce the usb disk price
@rimacctwo6901
@rimacctwo6901 3 жыл бұрын
@@tomikun8057 and with the same memory they can record around 16x times longer than with 8k camera
@marketplierr
@marketplierr 3 жыл бұрын
Ok now do it in assembly
@brxnni
@brxnni 3 жыл бұрын
No, do it in Brainfqck Edit: I do be gettin those likes tho
@marketplierr
@marketplierr 3 жыл бұрын
@@brxnni or simulate a cpu using brainfuck, then create an assembly language for that cpu and then use that to play bad apple
@brxnni
@brxnni 3 жыл бұрын
@@marketplierr perfect
@sumitpatel9856
@sumitpatel9856 3 жыл бұрын
@@marketplierr I have a simulator for pikachu language along with its own assembly. github.com/Suloch/virtualSatoshi I have video on channel for this, but the audio sucks.
@Aston3003
@Aston3003 3 жыл бұрын
Ok now do it in java that makes it to python that makes it into minecraft that makes it into java that makes it into animation.
@nicomaciel5508
@nicomaciel5508 3 жыл бұрын
"Bad Apple is a song just to flex programing skills" - A random on another one of this
@nunsense9489
@nunsense9489 3 жыл бұрын
appel
@barevanilla
@barevanilla 3 жыл бұрын
Appel
@ISELLSALT
@ISELLSALT 3 жыл бұрын
Appel
@CCG175
@CCG175 3 жыл бұрын
Appel
@jamedo8819
@jamedo8819 3 жыл бұрын
Appel
@dheatlyblaze2846
@dheatlyblaze2846 3 жыл бұрын
Just like a wise man once said: "if it exists, there is a bad apple of it"
@dhruvavikas1632
@dhruvavikas1632 3 жыл бұрын
Rule 34
@zeroone32
@zeroone32 3 жыл бұрын
I dont realy know why xD... Can you explain whats the trend about it. Is there ani anime or shit like this?
@dheatlyblaze2846
@dheatlyblaze2846 3 жыл бұрын
@@zeroone32 bad apple video is just too good that somehow, ppl start to play it anywhere they can. Its also B&W so its easy to project in any medium
@tomikun8057
@tomikun8057 3 жыл бұрын
@@zeroone32 Japanese version of putting Doom on everything
@HHH-wh7bw
@HHH-wh7bw 3 жыл бұрын
If theres any way of displaying depth, two colors, or outlines there’s a bad apple version of it**
@SpringySpring04
@SpringySpring04 3 жыл бұрын
You madlad, audio, text processing, ascii, all that stuff i cant even make a turtle properly in python GENIUS you are, seriously :D
@HexagonII
@HexagonII 3 жыл бұрын
Nah it's not much lol. It is more of an amalgamation of random snippets of code around, and I just slapped them together to make it work :P
@SpringySpring04
@SpringySpring04 3 жыл бұрын
@@HexagonII Regardless, the command line modifying is amazing in terms of Python... im only good in languages like Ruby and a littl of C++ lol. Thanks for the reply man 😁
@Lindaine
@Lindaine 3 жыл бұрын
@@HexagonII Dude I just made the same thing and it is basically similar lol. By the way, how do you make sure that it's printing at 30fps? I used a library called fpstimer but I kinda want to make it by myself.
@HexagonII
@HexagonII 3 жыл бұрын
@@Lindaine Hi there, great to hear! Well uh just looked into the fpstimer library, looks pretty decent though I have yet to test the performance. As for 30 FPS, I can't really guarantee it as I am just using simple time.sleep() functions lol. I tried to adjust the frame time interval but it kinda didn't work, if you notice the delay of the CLI vs the actual video. Each frame takes a slightly different amount of time to execute, so it is kind of hard to hard-code a delay interval per-se. While I could definitely modify the code to be able to "self-correct" but since this was a weekend project, I don't think I will be returning to it anytime soon. Perhaps you could improve the performance for yours? Good luck!
@echoptic775
@echoptic775 3 жыл бұрын
@@SpringySpring04 you would be surprised to hear that image manipulation really isnt that hard in python. Python is also considered one of simplest languages
@PIMUS-P
@PIMUS-P 3 жыл бұрын
Me: *play this video YT: auto set to 144p Me: *changing to 720p Me: *changing again to 144p Nah, This is better
@elvisk6632
@elvisk6632 3 жыл бұрын
Thank you for saving data
@reyvaldosoetiman2389
@reyvaldosoetiman2389 3 жыл бұрын
life saver
@shivabisht8023
@shivabisht8023 3 жыл бұрын
Lol 😆 thanks, due to blur the image looks smooth
@barevanilla
@barevanilla 3 жыл бұрын
I've been taught Python for half a year now and all i can do is make it ask me a question then proceed to crash
@luluthecat1570
@luluthecat1570 3 жыл бұрын
Lol
@objectobject5889
@objectobject5889 3 жыл бұрын
if you get python to acutally crash you have some mad python skills
@thatotherandrew_
@thatotherandrew_ 3 жыл бұрын
@@objectobject5889 They mean to hit a fatal error, which is technically a crash.
@blorbaltude
@blorbaltude 3 жыл бұрын
@@objectobject5889 nice name
@mooseyexists
@mooseyexists 2 жыл бұрын
I presume it’s awful school teaching
@Aston3003
@Aston3003 3 жыл бұрын
Me who know nothing about scripting and python: Wow that's a rare breed of snake right there it can play a video wow
@french_cries_
@french_cries_ 3 жыл бұрын
Heh snek go brrr
@monochromeart7311
@monochromeart7311 3 жыл бұрын
Btw, the name of the language is based on Monty Python's Flying Circus
@unapologies1668
@unapologies1668 3 жыл бұрын
Y'all out here being productive on a weekend. I could never
@jassi9022
@jassi9022 3 жыл бұрын
here it goes into my Bad Apple playlist
@HHH-wh7bw
@HHH-wh7bw 3 жыл бұрын
thank you. i now have a bad apple playlist aswell
@elementalearth1237
@elementalearth1237 3 жыл бұрын
this is by far one of the smoothest ones i've seen
@Ari_28
@Ari_28 3 жыл бұрын
*Both of my ears separately enjoyed the bass*
@zecarlos344
@zecarlos344 3 жыл бұрын
This is gonna be recomended to everyone
@JaniBre
@JaniBre 3 жыл бұрын
and it is recommend to me
@ISELLSALT
@ISELLSALT 3 жыл бұрын
everyone in the touhou fandom that is the algorithm has been merciful as of late
@zhanny8211
@zhanny8211 3 жыл бұрын
Yep
@Pumpkn75
@Pumpkn75 3 жыл бұрын
When I saw the humbnail, I literally thought it was a bad apple.
@IcicleFurry
@IcicleFurry 3 жыл бұрын
This is the smoothest remake i have seen yet
@xdjiijii6543
@xdjiijii6543 3 жыл бұрын
*triggered*
@NoName-bq2xm
@NoName-bq2xm 3 жыл бұрын
*KZbinr showing the difference between 4k and 8k, you are watching video through python:*😶
@mccoffee229
@mccoffee229 3 жыл бұрын
Me: *reads the description* Also me: don't worry, its worth
@basilsfakejordans
@basilsfakejordans 3 жыл бұрын
This is probably my favourite of these. This is incredible.
@chopstiksman7211
@chopstiksman7211 3 жыл бұрын
Hexagon: "Just some weekend project" Everyone else: The amount braincell and time required to make this is incomprehensible
@meijiishin5650
@meijiishin5650 3 жыл бұрын
It's actually not that hard. Make 2d array to read black/white pixels. Scale down a little and replay where black pixel = @ and white pixel = .then add some kind of limiter to set framerate at 60 fps or whatever. That's basically the whole concept.
@liltanie3460
@liltanie3460 3 жыл бұрын
this is so accurate
@ayyce8634
@ayyce8634 3 жыл бұрын
The touhou fandom has been plentiful as of late
@_charademon_
@_charademon_ 3 жыл бұрын
Next up... Bad apple on live pithons
@Fadexpl
@Fadexpl 3 жыл бұрын
It's a simple fun little project, but I get the feeling most people here think this is way more impressive than it actually is. Guys, it's just a video player where each pixel's brightness is a different ASCII character. This is very simple stuff to code if you have proper codecs already. Looking at the code it also dumps each frame to a separate jpeg, and dumps each text-frame into separate txt file. This should just be all handled in buffered memory, without massive prework.
@HexagonII
@HexagonII 3 жыл бұрын
Well that's true haha. I just did this more of a side thing as a part of learning python. As for the actual execution, it is true that my iteration is very poorly written. Though for (close to) real time frame time accuracy I think storing it into txt files is much faster, and ensures consistency regardless of the host machine.
@JaniBre
@JaniBre 3 жыл бұрын
0:31 if you think the beginning is long :)
@years8703
@years8703 3 жыл бұрын
only a perfectionist could create this
@everestberry
@everestberry 3 жыл бұрын
Now I’m gonna be sitting here wondering how school is partially ruining my creativity to make this when I still have to do it for the next few years
@user-xv6cj1gl8w
@user-xv6cj1gl8w 3 жыл бұрын
Nice! I have done the pretty much exact same thing, made a program to extract all frames and generate ASCII art from them
@bluewazeyt754
@bluewazeyt754 3 жыл бұрын
Bad apple is taking the Whole Coding in the next level
@dijjidog
@dijjidog 3 жыл бұрын
first time me watching the entirety of bad apple
@_hiso.
@_hiso. 3 жыл бұрын
ok bro, congrats but my left earphone is broken
@monsterupdatewhen
@monsterupdatewhen 3 жыл бұрын
Broken left earphone gang
@flow_672
@flow_672 3 жыл бұрын
Вот это да, bad Apple вышел 11 лет назад, а делают с ним штуки в 2021
@dreamworld5891
@dreamworld5891 3 жыл бұрын
Bad apple is like doom it must run on everything
@bench2328
@bench2328 3 жыл бұрын
someone take me through this, or any documentation I can go through myself. this is AWESOME
@thatotherandrew_
@thatotherandrew_ 3 жыл бұрын
If I was to guess, it goes like this: Video > FFMPEG split to images > ASCII art converter > Console
@borisglevrk
@borisglevrk 3 жыл бұрын
ok... when you think you've seen it all upon seeing a oscilloscope Bad Apple.... now this.
@spacesush1
@spacesush1 3 жыл бұрын
This makes me think of the possibility of a roguelike where you have to navigate black environments while not touching the white, or vice versa. Hmm, ideas...
@HatTrex
@HatTrex Жыл бұрын
Bro invented rogue
@madscientistmaxx
@madscientistmaxx 3 жыл бұрын
another banger video that is better in 144p
@ultrasword5222
@ultrasword5222 3 жыл бұрын
Damn, I made something similiar as well. THis is pretty cool tho! Instead of loading it when you wanted to watch it, I actually saved the text file. It takes up space but I think its worth it. Nice VIdeo tho!! :D
@ssbarnea
@ssbarnea 3 жыл бұрын
Not sure why the only thing I can think about is how the fans will sound while having this on iTerm, even with a good GPU.
@andreiiaz2097
@andreiiaz2097 3 жыл бұрын
The original footage has been sped up 2000 times, as Python executes slowly
@nightmarenova6748
@nightmarenova6748 3 жыл бұрын
Damn Bruh, python be kinda fine
@HexagonII
@HexagonII 3 жыл бұрын
Yeah Python is definitely very versatile
@mikeaguilar519
@mikeaguilar519 3 жыл бұрын
ok... Im going to try it, I let you a star in your repo if it works!
@HexagonII
@HexagonII 3 жыл бұрын
Sure thing, if there are any problems just open an issue I'll try to look into it.
@colbydoan2836
@colbydoan2836 3 жыл бұрын
Dank
@kenny_ki
@kenny_ki 3 жыл бұрын
bad apple is everywhere
@kareklopodaros
@kareklopodaros 3 жыл бұрын
my man has every app open
@ApplySkills
@ApplySkills 3 жыл бұрын
0:28 how did you do the loading bars.
@HexagonII
@HexagonII 3 жыл бұрын
The loading bars are unfortunately not done by me, and I took it off some StackOverflow thread. Link to that: stackoverflow.com/questions/6169217/replace-console-output-in-python
@bang1338
@bang1338 3 жыл бұрын
Python just... too smooth
@kishonoi191
@kishonoi191 3 жыл бұрын
when an ASCII Animation has better frames than your Nokia
@nulled7888
@nulled7888 3 жыл бұрын
What a madlad
@onecrem
@onecrem 3 жыл бұрын
That is so amazing talent🤩
@Speed-TV
@Speed-TV 3 жыл бұрын
The thumbnail looked like the finger
@electronx5594
@electronx5594 3 жыл бұрын
This is actually supprizingly clear, nice one
@roisan6253
@roisan6253 3 жыл бұрын
Brahhh i will try to it in C# looking crazy
@gold_spin1639
@gold_spin1639 3 жыл бұрын
And here I am struggling with recursion and big O notation
@creamsn3
@creamsn3 3 жыл бұрын
hi this is good! thank you for sharing this,, i'll learn it soon
@celebstars1
@celebstars1 3 жыл бұрын
This’ll blow up soon. Probably.
@xderretjex
@xderretjex 3 жыл бұрын
i always see these kinda of video But how do you program something like this? Have you hand written all the characters or do you have some type of way of scanning the video and the programs converts it to the characters?
@tadziothea340fan
@tadziothea340fan 3 жыл бұрын
Perfect just perfect
@kooll2401
@kooll2401 3 жыл бұрын
Ah the mix of thr audio Tracks into one it just...why did i do this
@LuizZignani
@LuizZignani 3 жыл бұрын
1:57 "pode me comi"
@リオ-q6y
@リオ-q6y 3 жыл бұрын
awsome! i like it ! i want to make same program looking for your next project! next is add color may be lol
@bigearsinc.7201
@bigearsinc.7201 3 жыл бұрын
What next, bad apple on a digital weight scale!?
@jayantaIBM
@jayantaIBM 3 жыл бұрын
Good idea but I can't do it
@bigearsinc.7201
@bigearsinc.7201 3 жыл бұрын
@@jayantaIBM Ok, then do those super over fancy pregnancy tests
@prayinq
@prayinq 3 жыл бұрын
game developers: **silence**
@NSluiter
@NSluiter 3 жыл бұрын
For a second I thought you where going to do it with turtle
@brockgaming8648
@brockgaming8648 3 жыл бұрын
wait isn't the A: drive on windows 10 for floppy disks?
@HexagonII
@HexagonII 3 жыл бұрын
Apparently so, when I first installed my drive I assigned it A: and didn't touch it ever since. So unfortunately, while it seems cool, its just a normal mechanical hard drive :P
@euue3245
@euue3245 3 жыл бұрын
*Bad Apple Everywhere*
@TristanG10.000
@TristanG10.000 3 жыл бұрын
You've been bad appled
@ShlomoRaz69
@ShlomoRaz69 2 жыл бұрын
my computer after the teacher left for 1 second
@Lisferator
@Lisferator 3 жыл бұрын
damn, the best I have seen so far
@wanfahdiva8732
@wanfahdiva8732 3 жыл бұрын
It's so pretty cool
@Bubu567
@Bubu567 3 жыл бұрын
You average the pixels in each square for each character, map that average to a character to be used for that square of pixels.
@s.dh29
@s.dh29 3 жыл бұрын
light mode in discord be like
@ohhimark9974
@ohhimark9974 3 жыл бұрын
holy shit in python AND in HD
@ghast5000
@ghast5000 Жыл бұрын
Anyone have an easy tutorial for how to put the file in python and run the animation? I don't really understand the directions on github.
@RainStorm2
@RainStorm2 3 жыл бұрын
It’s cool well it uses ffmoeg
@gamisuto
@gamisuto Жыл бұрын
You're a genius:)
@chrstnmmnl
@chrstnmmnl 3 жыл бұрын
E P I C C
@Zeyenkuh14
@Zeyenkuh14 3 жыл бұрын
Its looks smooth
@ItzKernel
@ItzKernel 3 жыл бұрын
so smooth
@tizurl
@tizurl 3 жыл бұрын
Can this run in a Ti Nspire CX II-T?
@HexagonII
@HexagonII 3 жыл бұрын
Don't have one unfortunately, though it appears to support Python? So it might be able to work. However, the current code was mostly written for Windows, so I am not too sure if the CLI alteration would work. Moreover, the frame timings might be inaccurate due to the (much) weaker ARM chip.
@phenomenallyphen
@phenomenallyphen 3 жыл бұрын
must be hard to render MY PC CANT EVEN HANDLE 1080P
@phenomenallyphen
@phenomenallyphen 3 жыл бұрын
@מחמד חנזיר still its alot of text
@phenomenallyphen
@phenomenallyphen 3 жыл бұрын
@מחמד חנזיר bruh i typed ur thingy backwards
@amogid
@amogid 3 жыл бұрын
gnome-terminal is not responding. edit: ok it works i needed limited scrollback
@putugedesemaraputra5919
@putugedesemaraputra5919 3 жыл бұрын
Good job mate 🤣🤣, Would you mind if i use ur code for my little project too? Btw good video :D
@HexagonII
@HexagonII 3 жыл бұрын
Feel free to, this project is just snippets of code from random threads and tutorials.
@JimTheScientist
@JimTheScientist 3 жыл бұрын
Pycharm gang
@cathacker13
@cathacker13 3 жыл бұрын
it feels weird seeing a version of bad apple that doesn't move at like 12 fps
@kurokenshin2507
@kurokenshin2507 3 жыл бұрын
enough internet for today
@shawnbeans7389
@shawnbeans7389 3 жыл бұрын
now make a rickroll with it
@Aston3003
@Aston3003 3 жыл бұрын
Ok now do it in java that makes it to python that makes it into minecraft that makes it into java that makes it into animation.
@Blasphemian
@Blasphemian 3 жыл бұрын
mplayer can do this without pre-generating ascii (with any video)
@Linnytic
@Linnytic 3 жыл бұрын
e p i c
@CC_CCMN
@CC_CCMN 3 жыл бұрын
Epic, can download this (I live in a country that does not require YT Premium to download)
@The-Dev-Ninja
@The-Dev-Ninja 3 жыл бұрын
wow
@randomcontent7772
@randomcontent7772 3 жыл бұрын
S M O O T H
@nahiankabyo4296
@nahiankabyo4296 3 жыл бұрын
btw just curious...how and why does the first line appearing each frame looks like it is glitching which cannot be possible if it is just rendering straight up from the original video...
@HexagonII
@HexagonII 3 жыл бұрын
Ah the glitch is due to the previous frame. The printed frame is just slightly smaller than the cmd window, so the previous frame's bottom line appears in the "next frame". I will probably need to adjust either the cmd font size or the ASCII "frame" size.
@nahiankabyo4296
@nahiankabyo4296 3 жыл бұрын
​@@HexagonII ​ I also thought so...but then I noticed sometimes it doesn't shows what the previous frame was showing...I wouldn't have asked on the first place...but that inconsistency sparked the curiosity.
@frapooch
@frapooch 3 жыл бұрын
Is it accurate in ANY resolution?
@HexagonII
@HexagonII 3 жыл бұрын
Well if you refer to the number of ASCII characters printed per frame as the resolution, then it theoretically should be. However, due to my botched implementation of using time.sleep() functions, the frame time interval needs to be adjusted as each frame requires a small amount of time to compute. So generally, I would say yes, it would be accurate. But due to the varying compute delays, the error would accumulate and thus result in a severe delay the more frames there are. Refer to 2:37 where CLI's Reisen is lagging behind a few frames. By 3:49, the accumulated error results in a very noticeable delay. So in the context of very long runs, no. At least for my code. There are better implementations out there that does not involve the use of time.sleep() that should rectify this issue though.
@凵尺
@凵尺 3 жыл бұрын
Cool but I bet you cant do it in Batch
@senkuromashiro8252
@senkuromashiro8252 3 жыл бұрын
why my cmd show's has little on the top
@StOnEdSnIpEr
@StOnEdSnIpEr 3 жыл бұрын
madlad
@karakara9653
@karakara9653 3 жыл бұрын
Interesting... using a frame generation tool to generate higher res frames than the other implementations that just transform the video in real time, at the expense of quality.
@HexagonII
@HexagonII 3 жыл бұрын
In my experience, the main performance bottleneck was due to reading image files. There is another iteration of Bad-Apple running C++ that I chanced upon during my development stage that converted the ASCII output into .txt files. However, I can't seem to find it now for some reason. Though yeah, some implementations require down-scaling the ASCII output for better performance.
@kostya8764
@kostya8764 3 жыл бұрын
the second way (and TOO laggy): use ASCII-magic and 6571 frames of bad apple video
@charlee8149
@charlee8149 3 жыл бұрын
god dAMN
I Solved The World's Hardest Maze (with Code)
9:54
Green Code
Рет қаралды 215 М.
My game is 262,000 times faster than Minecraft. I'll show you how.
12:20
IGoByLotsOfNames
Рет қаралды 1,2 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 12 МЛН
Deadpool family by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 7 МЛН
Running "Hello World!" in 10 FORBIDDEN Programming Languages
18:07
Deconstructing Bad Apple!! + Stems
11:40
DanFourts
Рет қаралды 10 М.
Victim - Animator vs. Animation 11
20:24
Alan Becker
Рет қаралды 1,1 МЛН
Somebody emailed me a trojan virus
14:06
Bog
Рет қаралды 1,1 МЛН
Mandelbrot's Evil Twin
7:47
2swap
Рет қаралды 452 М.
Coding Challenge 166: ASCII Text Images
22:42
The Coding Train
Рет қаралды 1,1 МЛН
I made a horror game that's IMPOSSIBLE to SCREENSHOT!
3:52
Branta Games
Рет қаралды 1,1 МЛН
Every Programming Language Ever Explained in 15 Minutes
15:29
Flash Bytes
Рет қаралды 360 М.
Bad Apple!! - played on TITLE BARS
3:59
Ye Boi
Рет қаралды 24 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 12 МЛН