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.2.tar.gz (9.2 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.2-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: textual_video-0.1.2.tar.gz
  • Upload date:
  • Size: 9.2 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.2.tar.gz
Algorithm Hash digest
SHA256 1d403c59a346f599a51b6253854f76f0e2f81da6eedecec95ce23f07e2ec7e27
MD5 2d6e569868be6f8cd269c14a20db7b20
BLAKE2b-256 0f523491f50a398ae064ccb92e9082453ad2fe98b6fe08a719d34e97df11a400

See more details on using hashes here.

File details

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

File metadata

  • Download URL: textual_video-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bb1ab669cb233fcd69f09764683837a09e41a26312c3c4ff8e28906198188464
MD5 b9bea6bf414397768f10cfa9dd7589f2
BLAKE2b-256 1f7b3047d5f5ea51c0e3ce33098ca6c706b6956b49dd693be29e3de5cbc9ec5a

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