snaums
/
PiPlayer
Αρχειοθετημένο
1
0
Fork 0
Simple GUI around OMXPlayer for Raspberry Pi
Δεν μπορείτε να επιλέξετε περισσότερα από 25 θέματα Τα θέματα πρέπει να ξεκινούν με γράμμα ή αριθμό, μπορούν να περιλαμβάνουν παύλες ('-') και μπορεί να είναι έως 35 χαρακτήρες.
Αυτό το αποθετήριο αρχειοθετήθηκε. Μπορείτε να δείτε αρχεία και να το κλωνοποιήσετε, αλλά δεν μπορείτε να γράψετε ή να ανοίξετε ζητήματα/pull-requests.
Stefan Naumann bb15b5adc1 „README.md“ ändern 3 έτη πριν
cfg UI changes 5 έτη πριν
pic added a window-icon 5 έτη πριν
src updated Readme 5 έτη πριν
.gitignore a bit cleanup and live-mode 5 έτη πριν
Doxyfile added doxyfile 5 έτη πριν
LICENSE Initial commit 5 έτη πριν
README.md „README.md“ ändern 3 έτη πριν
dbuscontrol.sh First version of piplayer 5 έτη πριν
fltk_exists.py added setup-file 5 έτη πριν
setup.sh a bit cleanup and live-mode 5 έτη πριν

README.md

PiPlayer

PiPlayer is being succeeded by GTPlay. I would strongly suggest using that instead of 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

Setup

You will need the following packages installed on your system:

  • FLTK (fltk1.3)

PiPlayer uses pyFLTK as a binding to FLTK for Python. At least under Arch Linux ARM there is no package for pyFLTK. Therefore you will need to install pyFLTK. This can be done using the setup.sh file in this directory. Try (without root-priviliges):

bash setup.sh prepare

Then you can try PiPlayer without "installing", or install it with the command:

bash setup.sh install

This will need root-privileges. By default it will copy the files to /opt/piplayer/. Try setting PiPlayer as default player for HD-files in your file manager.

Usage

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

Usage: src/piplayer.py [parameters] file {files}

The following parameters are allowed:

  • --live - indicate that a livestream is played (i.e. Twitch), will be played using livestreamer
  • -q [qual] or --quality [qual] - indicate a quality for the stream (e.g. best, worst 480p, 720p. Will be handed to livestreamer directly)

Filenames: <url1> [-t <title1>]

  • -t <title> or --title <title> - specify a title for the last given URL

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.