Skip to main content

Generates and saves ASCII animation in MP4 format from a video file

Project description

VideoToASCII

It generates and saves ASCII animation in MP4 format from a video file.

Installation

Use the package manager pip to install rvmendillo-video-to-ascii.

pip install rvmendillo-video-to-ascii

Usage

# Imports the VideoToASCII class from the rvmendillo_video_to_ascii package
from rvmendillo_video_to_ascii import VideoToASCII

# Instantiates the converter with a video file
app = VideoToASCII('test_video.mp4')

# Saves inverted ASCII animation for black background with a target width of 200 pixels in an MP4 file
app.save_ascii_animation('inverted_ascii_animation.mp4', target_width=200)

# Saves inverted ASCII animation for black background without an audio and with a target width of 200 pixels in an MP4 file
app.save_ascii_animation('inverted_ascii_animation_without_audio.mp4', with_audio=False, target_width=200)

# Saves ASCII animation for white background with a target width of 200 pixels in an MP4 file
app.save_ascii_animation('ascii_animation.mp4', target_width=200, inverted=False)

# Saves ASCII animation for white background without an audio and with a target width of 200 pixels in an MP4 file
app.save_ascii_animation('ascii_animation_without_audio.mp4', with_audio=False, target_width=200, inverted=False)

Examples

Test Video

Inverted ASCII Animation

ASCII Animation

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rvmendillo-video-to-ascii-1.0.2.tar.gz (3.5 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page