summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-07-19mpv.py: Update copyright datejaseg1-1/+1
2020-07-18mpv.py: Add docstrings to new additions to APIjaseg1-2/+17
2020-07-18Sprinkle some thread safety over event loop, add *wait_for_eventjaseg2-65/+99
2020-07-18mpv.py: improve shutdown handling, replace wait_for_playbackjaseg1-11/+38
2020-07-16Bump version to v0.4.8v0.4.8jaseg1-1/+1
2020-07-16README: add video overlay examplejaseg1-1/+40
2020-07-16mpv.py: add wait_until_paused, wait_until_playingjaseg2-4/+12
2020-07-16mpv.py: Add overlay supportjaseg1-0/+104
2020-07-16tests: rename test.srt to sub_test.srt to prevent auto-loadjaseg2-2/+2
2020-07-16mpv.py: add some missing commandsjaseg1-5/+97
2020-07-16tests: improve key binding tests with loopback testjaseg1-10/+24
2020-07-15tests: Fix test_log_handler for current masterjaseg1-3/+7
The current mpv master changes default log output, breaking this test. To be future-proof, it now emits its own message through the print-text command.
2020-07-15tests: Fix TestLifecycle.test_options for current mpv masterjaseg1-1/+2
2020-07-15tests: Fix test_instance_method_property_observer (#108)jaseg1-8/+8
The loop property was a poor choice here since setting it messes with libmpv's event loop, leading to property change observer events being dropped.
2020-07-15tests: Fix test_property_observer_decorator (#108)jaseg1-10/+10
2020-07-15tests: Fix test_write for segaults in libmpv (#108)jaseg1-0/+4
2020-07-15added "python_requires"YoSTEALTH1-0/+1
people are installing this package in python2 and running into issues of syntax error which is only used in pyhon3.5, thus the need of `python_requires`
2020-07-15remove superfluous whitespacesLouis-Philippe VĂ©ronneau2-3/+3
2020-07-12Bump version to v0.4.7v0.4.7jaseg1-1/+1
2020-07-12README: Add detail on subtitle handlingjaseg1-10/+21
2020-07-12Fix handling of dashed options in loadfile.jaseg3-8/+44
Add tests based on --sub-file. Also add a test for sub_add here.
2020-07-11update README with inserting subtitlesPeter Kuchar1-0/+19
2020-04-05Add release scriptjaseg1-0/+17
2020-04-05Version v0.4.6v0.4.6jaseg1-1/+1
2020-04-05Make tests run headless using xvfbwrapperjaseg2-1/+14
2020-04-01Add some high-level API information to READMEjaseg1-0/+3
2020-01-24README: Add info on GUI modesjaseg1-0/+21
Closes #102
2020-01-03README: add render context gtk examplejaseg1-4/+11
2020-01-03Initial libmpv/render.h mappingjaseg1-11/+195
For an example using this with GTK see: https://gist.github.com/jaseg/657e8ecca3267c0d82ec85d40f423caa
2020-01-03Add GTK/OpenGL example (#100)Elias1-2/+7
* Add GTK/OpenGL example
2019-12-04Version 0.4.5v0.4.5jaseg1-1/+1
2019-12-04Windows: Use cytpes.load_library to look for DLLjaseg2-9/+17
2019-12-03Version 0.4.4v0.4.4jaseg1-1/+1
2019-12-03Allow mpv-1.dll to be placed in python script directory (#96)ripdog1-1/+4
Windows: Look for DLL in script directory Loading DLLs through ctypes on Windows is a mess. ctypes looks in PATH, which is different from the Windows built-in DLL loading system. By default ctypes looks next to python.exe, but you might not want to install python script dependencies next to the system-wide python interpreter. This commit adds a fallback looking for mpv-1.dll in the same directory the mpv.py script is placed in to allow people to use python-mpv with a minimum in configuration. You can still control loading behavior through PATH. For details on this, consult the following stackoverflow answer: https://stackoverflow.com/a/23805306
2019-12-02Version 0.4.2v0.4.2jaseg1-1/+1
2019-12-02tests: Silence libmpv during unittestsjaseg1-1/+54
2019-12-02Fix Python 3.5 compatibilityjaseg2-2/+2
2019-12-01Version 0.4.1v0.4.1jaseg1-1/+1
2019-12-01Add stream protocol handlingjaseg3-6/+365
This allows you to directly feed bytes into mpv without going through a file, FIFO etc. first. The new API is: @player.register_stream_protocol(name) @player.python_stream(name, size) @player.python_stream_catchall See their docstrings for their usage.
2019-11-26Bump version to v0.4.0v0.4.0jaseg1-1/+1
This change breaks the key binding API. Old code has to be modified to add the new "char" parameter: old: player = mpv.MPV() @player.key_binding('Q') def binding(state, name): print('blep') new: player = mpv.MPV() @player.key_binding('Q') def binding(state, name, char): # <<< here print('blep')
2019-11-26key bindings: Introduce key char parameterjaseg2-13/+13
Adapt key binding script message handling to be compatible with the new key char parameter introduced upstream in https://github.com/mpv-player/mpv/commit/21f2468d67e11eff7ede0d85fa6f4ab5c4f7de84 This change is backwards-compatible. With older mpv versions this parameter will be None.
2019-11-26README - vo "opengl" doesn't exist anymoreRijnder Wever1-1/+1
2019-11-10Version 0.3.10v0.3.10jaseg1-1/+1
2019-11-10Use stride//4 rather than the returned image wdfaker1-1/+1
As per discussion on the mpv issue https://github.com/mpv-player/mpv/issues/7076 to handle the screenshot-raw when vf cropping filters are in use.
2019-02-08README: Add cosven's QT/OpenGL examplejaseg1-0/+7
2019-02-07fix: getProcAddr function should return a function or 0cosven1-1/+1
2018-12-02Merge pull request #78 from trin94/patch-1jaseg1-0/+38
Readme: Add PyGtk embedding example
2018-12-01Readme: Add PyGtk embedding exampleElias1-0/+38
2018-07-25Version 0.3.9v0.3.9jaseg1-1/+1
2018-07-25command: fix default show-text duration param valuejaseg1-1/+1
The mpv manpage seems to be wrong here. A look at mpv's command.c show that -1 works fine here.