mplayer.py at a glance
>>> p = mplayer.Player()
>>> p.loadfile('/path/to/file.mkv')
>>> p.time_pos = 40
>>> print p.length
What is mplayer.py?
Initially known as PyMPlayer (http://pypi.python.org/pypi/PyMPlayer/ renamed to avoid confusion with other projects), mplayer.py provides several Pythonic interfaces to MPlayer. These are implemented as the following classes (see Introspection for more info):
- Player provides a clean, Pythonic interface to MPlayer.
- AsyncPlayer is a Player subclass with asyncore integration (POSIX only).
- GPlayer is a Player subclass with GTK/GObject integration.
- QtPlayer is a Player subclass with Qt integration (same usage as AsyncPlayer)
- GtkPlayerView provides a basic (as of now) PyGTK widget that embeds MPlayer.
- QPlayerView provides a PyQt4 widget similar to GtkPlayerView in functionality.
Show your appreciation by saying thanks or by donating a small amount.
News
Version 0.7.2 Released! (March 28, 2019)
You can download it here: http://pypi.python.org/pypi/mplayer.py/0.7.2
- Don't pause upon initially loading file (Fixes #32)
Version 0.7.1 Released! (May 8, 2017)
You can download it here: http://pypi.python.org/pypi/mplayer.py/0.7.1
- Various MPlayer2 fixes
- Fix subprocess.mswindows error in python3.5+
- Add a gevent-friendly Player subclass.
Version 0.7.0 Released! (September 8, 2011)
You can download it here: http://pypi.python.org/pypi/mplayer.py/0.7.0
- Expose ALL commands except
get_*and*_propertycommands and those which have the same name as their corresponding property. - Better
QPlayerViewandGtkPlayerViewwidgets; thePlayerobjects are now directly accessible via theplayerproperty. - Getting output from MPlayer is now thread-safe (a
Queueis now used) - Data can now be obtained asynchronously from
Playerobjects (via subscribers/callbacks) - Improved generation of properties (using
functools.partialobjects) - Added type checking to generated methods and properties
- Added value checking to generated properties
- Abstracted MPlayer type handling away from the core (see
mtypesmodule) - Python 2.x unicode and str fixes
Don't forget to read the CHANGES file.
Switched to git (September 7, 2011)
The code of mplayer.py (formerly PyMPlayer/python-mplayer) is now hosted at GitHub.
NOTE: Issues and wiki are still hosted here at Google Code.
Since python-mplayer is a very verbose and long name, let's just call it mplayer.py :)
Version 0.6.0 Released! (March 3, 2011)
You can download it here: http://pypi.python.org/pypi/PyMPlayer/
- Support for MPlayer property access (
get_property,set_property,step_property) with automatic type conversion via standard Python properties (new-style classes) - Drop methods which have the same functionality as their corresponding properties (for cleaner API)
- No more exposed
command()andquery()methods; use the higher-level methods and properties instead - Improved code generation; generated methods execute faster than in 0.5.0
- Introspection now happens on module load, not on instantiation
- MPlayer is now spawned automatically (See
autospawnparameter) - Setting of command prefix globally (i.e. per class) and per method execution is supported
- Full support for Windows (for
get_commands)
Don't forget to read the CHANGES file.
Metadata
Release files for mplayer.py 0.7.2.post1
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 |
|---|---|---|---|---|
| mplayer.py-0.7.2.post1.tar.gz | 16.2 kB | Without provenance | Details for mplayer.py-0.7.2.post1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mplayer.py-0.7.2.post1-py3-none-any.whl | Python 3 | none | any | Details for mplayer.py-0.7.2.post1-py3-none-any.whl |
Total release size: 36.4 kB
Release files / mplayer.py-0.7.2.post1.tar.gz
| Download URL | mplayer.py-0.7.2.post1.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7f0178d9ad9c802887463765e108f67da11a739df25362721059d1960de72e6
|
|
BLAKE2b-256 checksum How to use checksums |
5b62f417b334dff64347144a209168e8ee37c74060cb32f4750252536df046fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Release files / mplayer.py-0.7.2.post1-py3-none-any.whl
| Download URL | mplayer.py-0.7.2.post1-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e97b16efd26401803fbff6e2e2c1b26077d93483f2a7d63343dc720a7ff263b4
|
|
BLAKE2b-256 checksum How to use checksums |
19bd3564dc4b29fb127c01fcc0b6ef76b9e994ac4f27da4d931968a39fb594fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Security for mplayer.py 0.7.2.post1
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.