PyAV Media Player
Project description
avplayer
PyAV Media Player
Installation
Install avplayer:
pip install avplayer
If you want to use the tk preview:
pip install avplayer[Pillow]
Commandline Tools
python -m avplayer --help
Realtime support
If it is important to get the latest frame in real-time streaming
such as RTSP streaming, we recommend adjusting the --drop-* related options.
python -m avplayer --drop-slow-frame --drop-threshold=1 ...
The cvplayer.avconfig.AvConfig class can be used as follows:
from avplayer.avconfig import AvConfig
config = AvConfig(
input_file="rtsp://...",
drop_slow_frame=True,
drop_threshold=1,
)
Features
opencv-python compatibility
To prevent freeze when using opencv-python's imshow,
do not use import av at file-scope.
Please refer to the following link:
- AV import leads to OpenCV imshow freeze · Issue #21952 · opencv/opencv
- python - Can't show image with opencv when importing av - Stack Overflow
Examples
OpenCV - highgui
See the examples/cv2_example.py file.
License
See the LICENSE file for details. In summary, avplayer is licensed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 avplayer-1.9.1-py3-none-any.whl.
File metadata
- Download URL: avplayer-1.9.1-py3-none-any.whl
- Upload date:
- Size: 50.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75a6730b3bd408e8bf8d25afc91d7943841be754768bf6326c0ca6708b2683d0
|
|
| MD5 |
a6d08582f005cf82557d1430ecb8b870
|
|
| BLAKE2b-256 |
bf83999eddbf336f5df026e146d86f344bad56296c4d578835caabbff7d43a2d
|