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.
Metadata
Release files for avplayer 1.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| avplayer-1.9.1-py3-none-any.whl | Python 3 | none | any | Details for avplayer-1.9.1-py3-none-any.whl |
Release files / avplayer-1.9.1-py3-none-any.whl
| Download URL | avplayer-1.9.1-py3-none-any.whl |
|---|---|
| Size | 50.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75a6730b3bd408e8bf8d25afc91d7943841be754768bf6326c0ca6708b2683d0
|
|
BLAKE2b-256 checksum How to use checksums |
bf83999eddbf336f5df026e146d86f344bad56296c4d578835caabbff7d43a2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Security for avplayer 1.9.1
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.