python-mpv
python-mpv copied to clipboard
Python interface to the awesome mpv media player
I am trying to run the simple first script to just play a video file. The script fails `pi@raspberrypi:~ $ python3 m.py Traceback (most recent call last): File "m.py", line...
I am using mojave on my mac and have installed libmpv via homebrew and python-mpv via pip3. on launching a simple example via idle: import mpv player = mpv.MPV(ytdl=True) player.play('/Documents/NHK.mp4')...
Having problems with python3 modules for MPV, because I'm not using the right MPV version. I'm using Linux Mint XCFE 19.3, which is based on Ubuntu 18.04. I was wondering...
I need to run multiple instances of mpv. Each player will have its own property observer that I would like to log to a separate file. I think I need...
Scale overlay image size without increasing resolution, to get large pictures and high performance
I am updating an overlay every frame, and `to_bytes` inside `overlay.update` is the bottleneck here. I do not mind if the DPI of the overlay image is low, but I...
Reproducible on windows 10 with python-mpv 0.4.6 and mpv-dev-x86_64-20200426-git-640db1e, the last print statement in this snippet is never reached: ```python import tkinter as tk import mpv root=tk.Tk() player = mpv.MPV(wid=str(int(root.winfo_id())))...
First a big thank you for python-mpv, this is great to include into my Pyqt5 application. Usually I work on Linux but I want to get a windows build going....
When i try initialize mpv with python-mpv from master: ``` >>> import mpv >>> mpv.MPV() Traceback (most recent call last): File "", line 1, in File "/home/max/src/mpv/mpv.py", line 552, in...
Take this code for instance. ```python class MainWin(QMainWindow): def __init__(self, parent=None): super().__init__(parent) self.container = QWidget(self) self.setCentralWidget(self.container) self.container.setAttribute(Qt.WA_DontCreateNativeAncestors) self.container.setAttribute(Qt.WA_NativeWindow) self.setWindowTitle(title) self.resize(1000, 563) player = mpv.MPV(wid=str(int(self.container.winId())), ytdl=True, player_operation_mode='pseudo-gui', script_opts='osc-layout=box,osc-seekbarstyle=bar,osc-deadzonesize=0,osc-minmousemove=3', input_default_bindings=True, input_vo_keyboard=True, osc=True)...
Hello, consider the following code: ```python import mpv _url = 'test.webm' mpv = mpv.MPV() mpv.loadfile(_url) print('waiting') mpv.wait_for_playback() print('done') ``` On Linux, this will print `waiting`, then play `test.webm`, and finally...