Page 1 of 1

"Some" Macs not playing video with python bindings

Posted: 19 Feb 2019 22:29
by Timothy Grove
One of the most frustrating things for me as a developer is creating code that works perfectly for me, but fails on some user's machine. In general, has anyone had difficulty with playing videos in VLC on a Mac using the python bindings?

More specifically, I have a PyQt5 application for macOS (https://soosl.net/software.html); should run on anything from Mavericks through Mojave. Built with Python 3.7, PyQt5.11, and VLC 2.2.4. (I 'think' I've seen this with VLC 3 as well, but the current released version uses 2.2.4)

One user who is experiencing problems is running High Sierra on a Mac Air. I can't yet see a pattern to which Macs are having problems; 'maybe' newer Macs in general, but I can't get my hands on any of these machines to experiment with.

This is the code I use when initializing the instance:

Code: Select all

import vlc args = ["--verbose=-1", "--ignore-config", "--play-and-pause", "--no-video-title-show", "--no-plugins-cache" ] self.Instance = vlc.Instance(*args)
The code which connects the player to a window is something like the following:

Code: Select all

widget = QLabel() win_id = widget.winId() _id = int(win_id) player.set_nsobject(_id)
Not much to go on, perhaps, but if anyone has any suggestions, I sure would like to hear them! Thanks.

Re: "Some" Macs not playing video with python bindings

Posted: 20 Feb 2019 04:08
by mfkl
Ask the python bindings maintainer.