plays videos as ansi
Project description
👾 plansi
Plays videos as ANSI, trying to keep the output as small and as castable as possible.
▶ Usage
# play to terminal
uvx plansi video.mp4
# write to asciinema file
uvx plansi video.mp4 video.cast
# with options
uvx plansi video.mp4 --fps=15 --threshold=10 --debug
uvx plansi video.mp4 --cache-position --no-cache-style
TODO - Version 0.1.0
🌐 Streaming & Input Sources
- yt-dlp integration: Auto-detect
http:///https://URLs and use yt-dlp API to get direct streaming URLs - Fallback strategy: Try ffmpeg first, fall back to yt-dlp if that fails
- Webcam support: Add
--cameraflag to treat input as webcam device- Linux:
/dev/video0with v4l2 - Windows: DirectShow device enumeration
- macOS: AVFoundation device support
- Linux:
📺 Terminal & Display
- SIGWINCH handling: Resize video on terminal window resize during live playback
- Cast file quantization: Quantize existing .cast files
🔧 API Improvements
- File-like object support: Allow writing to BytesIO, StringIO for textual-asciinema
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plansi-0.0.4.tar.gz
(10.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
plansi-0.0.4-py3-none-any.whl
(12.4 kB
view details)
File details
Details for the file plansi-0.0.4.tar.gz.
File metadata
- Download URL: plansi-0.0.4.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b35d019b4336b9072ba6c8f34f35c7ca1cb9d49e71e009593fb7b4f37eca071
|
|
| MD5 |
909e62f27754539e3cd2010502ee11f5
|
|
| BLAKE2b-256 |
0deef1304d609316ce38ddb63d2460137f65571a6709079dca9ad412e716afdc
|
File details
Details for the file plansi-0.0.4-py3-none-any.whl.
File metadata
- Download URL: plansi-0.0.4-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f31d7684fac3acb6c631505aa2cf2c0cdc5cff1d72217665d61c6b96e229ef3b
|
|
| MD5 |
78bd7d68f0ab12e0476a27f1e909b5b7
|
|
| BLAKE2b-256 |
75da7fbc1a3a546f04e53b94c640a7e349113f412fdeffcf8570415495e3c47d
|