Skip to main content

PyAV Media Player

Project description

avplayer

PyPI PyPI - Python Version GitHub

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:

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


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.

avplayer-1.9.1-py3-none-any.whl (50.4 kB view details)

Uploaded Python 3

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

Hashes for avplayer-1.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 75a6730b3bd408e8bf8d25afc91d7943841be754768bf6326c0ca6708b2683d0
MD5 a6d08582f005cf82557d1430ecb8b870
BLAKE2b-256 bf83999eddbf336f5df026e146d86f344bad56296c4d578835caabbff7d43a2d

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