Video playback widgets & controls for Textual (textual-image based)
Project description
textual-video
Textual widget for playing videos in terminal UIs. Based on textual-image.
Installation
pip install textual-video
Dependencies
- textual (TUI framework)
- textual-image (image widget)
- textual-canvas (canvas widget, for displaying track)
- av (get video frames and metadata)
- numpy (av requires)
Example
from textual_video.player import VideoPlayer
from textual.app import App, ComposeResult
class ExampleApp(App):
def compose(self) -> ComposeResult:
yield VideoPlayer(r'examples\video.mp4')
if __name__ == '__main__':
ExampleApp().run()
Image types
Textual-image provides 4 ways to display image
| Member | Description |
|---|---|
ImageType.SIXEL |
Slow; Highest fidelity; requires terminal sixel support. |
ImageType.TGP |
? (not work in my laptop) |
ImageType.HALFCELL |
Fast; uses half-cell Unicode blocks. |
ImageType.UNICODE |
Fastest; low fidelity, widest compatibility. |
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
textual_video-0.1.3.tar.gz
(9.5 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
File details
Details for the file textual_video-0.1.3.tar.gz.
File metadata
- Download URL: textual_video-0.1.3.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49670eb413f9efed1349464279ad5e7ed25016da5268dd1cddb4e98fbebf1259
|
|
| MD5 |
d9f571f585a9499f65bc825c1692431b
|
|
| BLAKE2b-256 |
b8a775ded03ac38ca3fde6a2c5969e5e77144666f619f2524f9dcb9811e60cd3
|
File details
Details for the file textual_video-0.1.3-py3-none-any.whl.
File metadata
- Download URL: textual_video-0.1.3-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2e82ae18f7482ee344fa36c74adfa6b4349cfbabfb54396c0d38086315a39e6
|
|
| MD5 |
5e7ab85530c4b5e2d42ca97d98ea32bc
|
|
| BLAKE2b-256 |
5528d5e4ab1bf939a51346fbd42d28a4561e0d8e5aa13c480ce6d4d4b7c2b907
|