Hi, I know this is probably not the ideal place to ask this question, but not sure where else to ask.
Im using Python 2.7, Wxpython, on Mac 10.11.4. I have been using a script which when I run the GUI opens, but when I open a file I get this error message:
raise NoMplayerRunning('You have first to start the mplayer,'
MplayerCtrl.NoMplayerRunning: You have first to start the mplayer,use Start()
I have a working Mac MPlayer in the same directory as the .py script, (although it is an old version - MPlayer SVN-r29662-4.0.1 © 2000-2009 MPlayer Team), so am unsure of how to fix this issue.
I have tried adding in a self.mplayer.Start(), but this has no effect.
I have also attached the python script I am using.
I would greatly appreciate any assistance you can give.
Kind regards
MediaPlayer.tar (30 KB)
You also need to install MplayerCtrl to be able to use Mplayer through python, I’m not currently using Mplayer but a few weeks ago I tried it, and found this tutorial helpfull: wxPython: Creating a Simple Media Player - Mouse Vs Python
I manage to run it on Windows but I guess you need to install the same things for Mac or Linux
Hope this helps
···
El domingo, 22 de mayo de 2016, 17:03:58 (UTC+2), kevjwells escribió:
Hi, I know this is probably not the ideal place to ask this question, but not sure where else to ask.
Im using Python 2.7, Wxpython, on Mac 10.11.4. I have been using a script which when I run the GUI opens, but when I open a file I get this error message:
raise NoMplayerRunning(‘You have first to start the mplayer,’
MplayerCtrl.NoMplayerRunning: You have first to start the mplayer,use Start()
I have a working Mac MPlayer in the same directory as the .py script, (although it is an old version - MPlayer SVN-r29662-4.0.1 (C) 2000-2009 MPlayer Team), so am unsure of how to fix this issue.
I have tried adding in a self.mplayer.Start(), but this has no effect.
I have also attached the python script I am using.
I would greatly appreciate any assistance you can give.
Kind regards
I did have MPlayer installed, I even just compiled a new version 1.3, but still not working.
···
On Friday, May 27, 2016 at 8:24:23 AM UTC+1, Marcos del Amo wrote:
You also need to install MplayerCtrl to be able to use Mplayer through python, I’m not currently using Mplayer but a few weeks ago I tried it, and found this tutorial helpfull: http://www.blog.pythonlibrary.org/2010/07/24/wxpython-creating-a-simple-media-player/
I manage to run it on Windows but I guess you need to install the same things for Mac or Linux
Hope this helps
El domingo, 22 de mayo de 2016, 17:03:58 (UTC+2), kevjwells escribió:
Hi, I know this is probably not the ideal place to ask this question, but not sure where else to ask.
Im using Python 2.7, Wxpython, on Mac 10.11.4. I have been using a script which when I run the GUI opens, but when I open a file I get this error message:
raise NoMplayerRunning(‘You have first to start the mplayer,’
MplayerCtrl.NoMplayerRunning: You have first to start the mplayer,use Start()
I have a working Mac MPlayer in the same directory as the .py script, (although it is an old version - MPlayer SVN-r29662-4.0.1 (C) 2000-2009 MPlayer Team), so am unsure of how to fix this issue.
I have tried adding in a self.mplayer.Start(), but this has no effect.
I have also attached the python script I am using.
I would greatly appreciate any assistance you can give.
Kind regards