nibble-arts / cinema_player

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cinema Player

This is a Python 2.7 library to offer a movie player for cinema style projections

It is based on the mplayer_control Python script from Musikhin Andrey using the MPlayer control.

The library was tested in Linux Mint. The mplayer_control is tested on Ubuntu and Windows.

Cinema Player

The Cinema Player is designed as a standalone video player with no on screen display. It is controlled by a simple webinterface. For playback the mplayer is used, witch is based on the ffmpeg library and therefore can playback a vast variety of video formats.

The web control site is provided by the Python script, the html index.html File and JavaScript code can be found in the html directory.

Usage

The basic settings for the Cinema Player are found in the config directory. The server.cfg holds the information about the web server and the port for the web access. The api sections defines the name for the http path for api calls (normaly 'api'), the subdirectories for the html_root, the start directory the file manager starts at and the last loaded playlist.

In the html subdirectory the index.html contains a standard player gui to access and play videos.

Installation

Extract the cinema_player file to a directory. Make the cinema_player and start.sh files executable.

Edit the server section of the config/server.cfg file to select the host name and port for the webservice.

Edit the screens section of the config/player.cfg file to set the playing screen. Multiple entries make it possible to play parts of a video to multiple screens. Edit the player section to define the master screen in multiple screen settings. If only one screen is defined, the master screen is equal with the defined screen.

Dependencies

The Python library psutil has to be installed. For hiding the cursor the program unclutter is used, which is found in the repository.

Start

The Cinema Player can be started by calling the cinema_player file in the root directory. To activate the automatic mouse hiding, use the start.sh script instead. For automatic start add a startup entry calling the cinema_player file in the root directory.

TODOs

Aside the basic functions that are already implemented, there are a lot of ideas that want to be added.

  • playlist ** add film from file manager ** change position in list ** remove from list ** open and save list ** on/off button (can only be player when switched on)
  • monitor.html for a online film program list

About

License:GNU General Public License v3.0


Languages

Language:Python 54.3%Language:HTML 23.4%Language:JavaScript 17.1%Language:CSS 5.1%Language:Shell 0.1%