A quick and easy open source python code to convert a video into a work of asciiVideo.
Example gif
Full render of single frame.
This is the equivalent of turning a picture into ascii art as but with video. I would like to thank Christian Diener for his ascii art algorithm asciinator which was the pillar of this project. For new comers ASCII is an abbreviation for American Standard Code for Information Interchange, which includes all the character the Americans deemed necessary for a PC when developing computers.
- First run the asciiVideo.py file in the same directory of a video you wish to convert
- Then create an object with the asciiArt initializer.
cat = asciiArt("videoofcat.mp4")
- This will then display a picture of the video frame and its ascii conterpart.
- From here you can change the gamma of the asciiVideo for more or less details.
- You can also change the rotation of the video using.
cat.setRotation(angle)
cat.setRotation(180)
can be used on upside down videos
- When you're happy with your gamma and rotation you can render.
cat.render("<outputfile>")
- For example
cat.render("asciiCatVideo")
- If you are satisfied with your video it is wise to close the object.
cat.close()
- This gets rid of all unecessary memory used to make the video
- Finally you can share the video with friends and loved ones.
Terminology | definition |
---|---|
Video Frame | A single instances of video in the form of a picture |
Ascii Text | A video frames ascii art text in the form of a string |
Ascii Frame | An ascii text converterd into a picture |
Ascii Video | All ascii frames compiled into a video |