snaums
/
PiPlayer
Arkiverade
1
0
Förgrening 0
Simple GUI around OMXPlayer for Raspberry Pi
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
Den här utvecklingskatalogen är arkiverad. Du kan se filer och klona katalogen, men inte öppna ärenden eller genomföra push- eller pull-förfrågningar.
 
 
Stefan Naumann a9098a3b3e added setup-file 6 år sedan
src added setup-file 6 år sedan
LICENSE Initial commit 6 år sedan
README.md First version of piplayer 6 år sedan
dbuscontrol.sh First version of piplayer 6 år sedan
fltk_exists.py added setup-file 6 år sedan
setup.sh added setup-file 6 år sedan

README.md

PiPlayer

PiPlayer is a very simple GUI around the OMXPlayer on the Raspberry Pi.

OMXPlayer is a quite basic player using the hardware decoding features of the Raspberry Pi for decoding HD videos. This GUI is intended to be used with other tools like smtube, which do not give you the opportunity to open a terminal for controlling OMXPlayer. You can now use PiPlayer for controlling OMXPlayer.

The file dbuscontrol.sh is not written by me! I take no authorship in that bash-skript. I copied it from popcornmix's repository

Technical mumbo-jumbo

PiPlayer quite litterely calls omxplayer and communicated to it via the DBus-interface. There are some functions not present in the GUI, which could be reached via the dbuscontrol.sh-bash skript.

The window is placed on the screen and omxplayer is called with the --win parameter to fit exactly inside the window. On resize of the window a DBus-interface is called to adjust for the new size of the window. That works well for maximizing, resizing or moving the window, but not for restoring it from maximized setting to normal. For that reason the OMXPlayer-output cannot be placed in the background, whereas the player-window can be in the background.

Usage

You need the pyFLTK-package for your Python-installation. Best to get it from the website (at least ArchLinux ARM) does not have the package in its repositories. For pyFLTK to work you of course need also the FLTK-package of your distribution (fltk1.3).

Then you should be able to call it via a CPython3-interpreter (as far as I know the pypy-interpreter does not support pyFLTK):

python piplayer.py filename

You can also give parameters which will be directly handed to omxplayer on startup.