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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

textual_video-0.1.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: textual_video-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c234887b9f0917dbc82b77cbe025dbec9e436b0fe5f7ade1ead723d4414789f9
MD5 742e5f5efa549e57c96c9fa520e10349
BLAKE2b-256 feb0795004c9cbe5bc98c7fe8787c9d766ba4d34cb2c7db87f3f1e8498c93977

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