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
- Setup Raspbian
- Install python3
- Install omxplayer
- Install omxplayer_python_wrapper
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
- Copy al files into root folder
- Open autostart file
$ sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
- Add this line @lxterminal --command="./script.sh"
- MIT license
- Author: Jonathan Vargas