/Raspberry_video

Rasberry video player with button using omxplayer and script at startup

Primary LanguagePythonMIT LicenseMIT

Raspberry_video

This a project which uses omxplayer in order to play a video through GPIO2 in a Raspberry pi 3.

<iframe width="640" height="360" frameborder="0" src="https://mega.nz/embed#!y9tz2IpZ!d_0xNAKIeETheC7AT5FQ1GVkp_OiOllC4qo6xMnNoBQ" allowfullscreen></iframe>

The video is here

Instructions

  • Setup Raspbian
  • Install python3
  • Install omxplayer
  • Install omxplayer_python_wrapper

Setup

update and install these package first

$ sudo apt-get update && sudo apt-get install -y omxplayer
$ sudo apt-get update && sudo apt-get install -y libdbus-1-dev
$ pip3 install omxplayer-wrapper

Run at startup

  • Copy al files into root folder
  • Open autostart file
  $ sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
  • Add this line @lxterminal --command="./script.sh"

License

License