Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
PyPI

asciiclip 1.0.1

pip install asciiclip

Latest version

Released:

CLI tool that applies an ASCII filter to video or image.

Verified details

These details have beenverified by PyPI
Maintainers
Avatar for leinstay from gravatar.comleinstay

Unverified details

These details havenot been verified by PyPI
Project links
Meta
  • License: MIT License
  • Author:leinstay
  • Requires: Python >=3.7

Project description

ASCII Clip

CLI tool that applies an ASCII filter to video or image.

demo1

Examples

Install latest version using pip:

python3-mpipinstallasciiclip

Create an ASCII clip from YouTube video or local video:

asciiclip-ohttps://www.youtube.com/watch?v=xxxxxxxx-d/dest/asciiclip-o/from/clip.mp4-d/to/-s10-e30

Create an ASCII image of a particular second from YouTube video or local video:

asciiclip-ohttps://www.youtube.com/watch?v=xxxxxxxx-d/dest/-r120asciiclip-o/from/clip.mp4-d/to/-r5

Create an ASCII image from local image using custom ASCII character list:

asciiclip-o/from/image.png-d/to/-a".:;-+*uo@"

Create an ASCII clip using custom settings:

asciiclip-ohttps://www.youtube.com/watch?v=xxxxxxxx-d/dest/-a".:;-+*uo@"-q1080-h66-fs6

Installation

Python package from PyPI

asciiclip is available onPyPI and can be installed with pip (Python 3with setuptools required):

python3-mpipinstallasciiclip

Installing fromPyPI is the recommended way of installation, which gives you the latest released version.

Usage

When you runasciiclip with no arguments help message is displayed, listing all options.

Usage: asciiclip [OPTIONS]

Available options:

  • -o, --source PATH - Link to YouTube video or path to image or video[required]
  • -d, --destination DIRECTORY - Output folder[required]
  • -f, --filename TEXT - Output file name [default: ascii]
  • -s, --start INTEGER - Used to trim video, sets the beginning point in seconds
  • -e, --end INTEGER - Used to trim video, sets the ending point in seconds
  • -r, --frame INTEGER - Turns the frame at a specified second of video into an image (-s/-e will be ignored)
  • -t, --threads INTEGER RANGE - Number of threads used for video processing [default: 8; 1<=x<=32]
  • -a, --chars TEXT - List of ASCII characters arranged from dark to light [default: .;*uo]
  • -p, --preset [720|1080] - A set of settings that will produce a 720p or 1080p output file (-h/-ft/-fs/-q will be ignored)
  • -q, --sourcequality [360|480|720|1080] - Height in pixels to which the video or image will be scaled down (the final result will be about [fontsize/chunk] times this value) [default: 360]
  • -h, --chunk INTEGER RANGE... - Size of the rectangular area that will be consolidated to a single ASCII symbol [default: 2, 2; 0<=x<=128]
  • -g, --gsv FLOAT RANGE... - RGB weights used when desaturating an image or video [default: 0.299, 0.587, 0.114; 0<=x<=1]
  • -c, --compression INTEGER RANGE - PNG compression level [default: 0; 0<=x<=9]
  • -ft, --font FILE - Path to custom font [default: moby.ttf]
  • -fs, --fontsize INTEGER RANGE - Font size [default: 6; 0<=x<=128]
  • -fc, --fontcolor INTEGER RANGE - Font color [default: 255, 255, 255; 0<=x<=255]
  • --keepaspectratio - Preserves original aspect ratio, otherwise if the video is thinner than 16:9 bars will be added to the sides
  • --mute - Removes the audio track from the video
  • --quiet - Suppress all console messages
  • --help - Show this message and exit.

Project details

Verified details

These details have beenverified by PyPI
Maintainers
Avatar for leinstay from gravatar.comleinstay

Unverified details

These details havenot been verified by PyPI
Project links
Meta
  • License: MIT License
  • Author:leinstay
  • Requires: Python >=3.7

Download files

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

Source Distribution

asciiclip-1.0.1.tar.gz (36.3 kBview details)

UploadedSource

Built Distribution

asciiclip-1.0.1-py3-none-any.whl (34.7 kBview details)

UploadedPython 3

File details

Details for the fileasciiclip-1.0.1.tar.gz.

File metadata

  • Download URL:asciiclip-1.0.1.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for asciiclip-1.0.1.tar.gz
AlgorithmHash digest
SHA256c518bf750824370417cf92cd682d0f31001574a00a3fb22228b949da4de3b923
MD5605345ee807fc92e9a845b51e08c1122
BLAKE2b-256b9ffc141fb64fbb0333ad4a06f6de085b41d276440643a85bf970dce0affda26

See more details on using hashes here.

File details

Details for the fileasciiclip-1.0.1-py3-none-any.whl.

File metadata

  • Download URL:asciiclip-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 34.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for asciiclip-1.0.1-py3-none-any.whl
AlgorithmHash digest
SHA256ad546426b91b9ddf8c878a13311e49c5b5ee90e01110a1869571d83de2b7ae38
MD5f0a275a25ea9494605232a06e219bdba
BLAKE2b-2562e184251240a81b8f455fd99902ead16a2e5a94ce8e4639c1caf09074d840371

See more details on using hashes here.

Supported by

AWS Cloud computing and Security SponsorDatadog MonitoringFastly CDNGoogle Download AnalyticsPingdom MonitoringSentry Error loggingStatusPage Status page

[8]ページ先頭

©2009-2025 Movatter.jp