Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
python_omxplayer [2016/02/06 22:51]
admin
python_omxplayer [2017/09/07 16:02]
admin [Example:]
Line 12: Line 12:
 ---- ----
 ==== downgrade your omxplayer to version 0.2.7: ==== ==== downgrade your omxplayer to version 0.2.7: ====
-__with the latest version of the pyomxplayer that is obsolet__\\ +<del>__with the latest version of the pyomxplayer the downgrade is obsolet__\\ 
-Cause the latest version of the omxplayer shows the time on the screen when pause, one has to downgrade to version 0.2.7.\\ +<del>Cause the latest version of the omxplayer shows the time on the screen when pause, one has to downgrade to version 0.2.7.</del>\\ 
-  $ sudo apt-get autoremove omxplayer+<del>  $ sudo apt-get autoremove omxplayer
   $ sudo apt-get install libpcre3 fonts-freefont-ttf    $ sudo apt-get install libpcre3 fonts-freefont-ttf 
   $ wget http://omxplayer.sconde.net/builds/omxplayer_0.2.7~git20130615~d87aa60a_armhf.deb   $ wget http://omxplayer.sconde.net/builds/omxplayer_0.2.7~git20130615~d87aa60a_armhf.deb
   $ sudo dpkg -i omxplayer_0.2.7~git20130615~d87aa60a_armhf.deb   $ sudo dpkg -i omxplayer_0.2.7~git20130615~d87aa60a_armhf.deb
-  $ rm omxplayer_0.2.7~git20130615~d87aa60a_armhf.deb+  $ rm omxplayer_0.2.7~git20130615~d87aa60a_armhf.deb</del>
  
-** NO MORE UPDATE ANYMORE**+<del>NO MORE UPDATE ANYMORE</del>
  
-**install pyomxplayer:**\\+==== Install the Pyomxplayer====
 copy from:\\ copy from:\\
 [[https://github.com/dernulleffekt/embedded-artist/tree/master/python]]\\ [[https://github.com/dernulleffekt/embedded-artist/tree/master/python]]\\
 pyomxplayer.py\\ pyomxplayer.py\\
-in:\\ +to:\\ 
-/usr/local/lib/python2.7/dist-packages\\+  /usr/local/lib/python2.7/dist-packages 
 +or in the folder with your python programm.\\
  
-**example:**\\+**or install the version with alpha layer support:**\\ 
 +  $ wget http://www.dernulleffekt.de/programme/pyomxplayer.py.tar 
 +  $ tar -xf pyomxplayer.py.tar 
 +  $ sudo cp pyomxplayer.py /usr/local/lib/python2.7/dist-packages 
 + 
 +==== Example: ====
   >>> import pyomxplayer   >>> import pyomxplayer
 +if you have the pyomxplayer from github:\\ 
   >>> omx=pyomxplayer.OMXPlayer('/home/pi/video/example.mp4')   >>> omx=pyomxplayer.OMXPlayer('/home/pi/video/example.mp4')
 +**or for the pyomxplayer with alpha layer support:**\\
 +  >>> omx=pyomxplayer.OMXPlayer('/home/pi/video/example.mp4', '100')
 +than test the funktions\\
   >>> omx.position   >>> omx.position
   >>> print(omx.__dict__)   >>> print(omx.__dict__)