tkVideo
Python module for playing videos (without sound) inside tkinter Label widget using Pillow and imageio
About The Project
tkVideo is a Python module for playing videos in GUIs created with tkinter.
It does so by binding to a tkinter.Label widget of the user's choice and rapidly changing its image object.
Built With
Installation
Users
From PyPI
pip install tkvideo
From cloned repo
git clone https://github.com/MysteryBlokHed/tkvideo-moivepy
cd tkvideo-moviepy
python setup.py install
Developers and contributors
From cloned repo
git clone https://github.com/MysteryBlokHed/tkvideo-moivepy
cd tkvideo-moviepy
python setup.py develop
or
Editable mode from PyPI
pip install -e tkvideo-moviepy
This will create a shim between your code and the module binaries that gets updated every time you change your code.
Usage
- Import tkinter and tkvideo-moviepy
- Create
Tk()parent and the label you'd like to use - Get a moviepy video
- Create
tkvideoobject with its parameters (moviepy clip, label name, whether to loop the video or not and size of the video) - Start the player thread with
<player_name>.play() - Start the Tk main loop
Example code:
from tkinter import *
from tkvideo import tkvideo
from moviepy.editor import VideoFileClip
root = Tk()
my_label = Label(root)
my_label.pack()
clip = VideoFileClip('path/to/video.mp4')
player = tkvideo(clip, my_label, loop = 1, size = (1280,720))
player.play()
root.mainloop()
Issues & Suggestions
Have a problem that needs to be solved or a suggestion to make? See the issues page.
License
Distributed under the MIT License. See LICENSE for more information.
Metadata
Release files for tkvideo-moviepy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tkvideo-moviepy-0.1.0.tar.gz | 301.4 kB | Without provenance | Details for tkvideo-moviepy-0.1.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tkvideo_moviepy-0.1.0-py3.10.egg | Legacy Egg format | - | - | Details for tkvideo_moviepy-0.1.0-py3.10.egg |
| tkvideo_moviepy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for tkvideo_moviepy-0.1.0-py3-none-any.whl |
Total release size: 311.0 kB
Release files / tkvideo-moviepy-0.1.0.tar.gz
| Download URL | tkvideo-moviepy-0.1.0.tar.gz |
|---|---|
| Size | 301.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ce4b3d140c53955457cae850f77bf1db0221759206dc690a73a81b590836d2f
|
|
BLAKE2b-256 checksum How to use checksums |
c576a3a4d229ba562503e83af4b9e245e1ef5634a686352b3b97cd6b0bd733b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Release files / tkvideo_moviepy-0.1.0-py3.10.egg
| Download URL | tkvideo_moviepy-0.1.0-py3.10.egg |
|---|---|
| Size | 5.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
bc8dac4cbed4abf0213c57ecb254c9fb0bec6cd323ee3683a990ad88a461f953
|
|
BLAKE2b-256 checksum How to use checksums |
f22e6b64c79840bea5c43567ef44202e4490b07c134d9efa3307f4f319343ae0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Release files / tkvideo_moviepy-0.1.0-py3-none-any.whl
| Download URL | tkvideo_moviepy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32e37d86993e8499848bc35c2c37681a22780df035dd4a149a6d655270ee6a2f
|
|
BLAKE2b-256 checksum How to use checksums |
a57494d10b472ce65a60aba46faac6efe91cc001969c40fae15546c3bfc2c100
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Security for tkvideo-moviepy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.