Skip to main content

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.4.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

textual_video-0.1.4-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file textual_video-0.1.4.tar.gz.

File metadata

  • Download URL: textual_video-0.1.4.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for textual_video-0.1.4.tar.gz
Algorithm Hash digest
SHA256 60c934090c808b539dbe95245d2ec28a6ea34025357bbb5bfc68808b199c3f0b
MD5 9707310dde1d286db01be67501f52d42
BLAKE2b-256 c78083f99397b0c7a11b2e296c2f7006a6255ad4d086b0d2a9c7a167d0d7c3bd

See more details on using hashes here.

File details

Details for the file textual_video-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: textual_video-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for textual_video-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7f9b947c02875b94de50899e631f46f84f00370b099e2df90875cf94589de25a
MD5 221c91ad440bac3baacfc8513efae009
BLAKE2b-256 e32d36fa9aadf4f4dcc187aba04f6de9ae36eccfcfe02221a5dd458b399fe9af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page