rzunigas
Posts: 1
Joined: Mon Aug 12, 2019 3:15 am

Automate Video Playback + GPIO

Mon Aug 12, 2019 3:52 am

Hi,

I´m currently working on a project inspired by designer Tokujin Yoshioka´s work in a window display setup as seen in the following video:
https://www.youtube.com/watch?v=gyNHJQz ... e=youtu.be

I´m looking into using a Raspberry Pi 3 (Or above if recommended) for synchronizing a looped video playback with 4 individual digital outputs, the output is to be used for activating a motor/pump/fan on a specific time of the video playback.

After a 1st research of the possible tools, I found OMXPLAYER (command-line media player) to be a possible tool for the project. Nonetheless, I´d like your feedback on other possible approaches or expanding on the use of omxplayer for achieving video playback and GPIO interaction.

Disclaimer: I´m new to the Raspberry World, specific explanation regarding the basics of setting OS, running libraries, etc. will be very welcomed.

Thanks.
Best.

pcmanbob
Posts: 6646
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Automate Video Playback + GPIO

Mon Aug 12, 2019 9:06 am

Hi.

I suggest you have a look at this thread https://www.raspberrypi.org/forums/view ... 1&t=245969

Here the pi is controlling a model aircraft display and is timed to the sound track, but you could do some this just the same with a video and time the gpio to preform the required actions.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

User avatar
rpiMike
Posts: 852
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: Automate Video Playback + GPIO

Mon Aug 12, 2019 9:11 am

I would use the omxplayer wrapper https://python-omxplayer-wrapper.readth ... en/latest/ and its position in seconds property https://python-omxplayer-wrapper.readth ... r.position

KenT2
Posts: 13
Joined: Thu Aug 16, 2012 8:34 pm
Contact: Website

Re: Automate Video Playback + GPIO

Mon Aug 12, 2019 10:08 am

Pi Presents will play videos and control GPIO at set times from the start of the track

hiro_pitagonist
Posts: 6
Joined: Mon Aug 12, 2019 2:00 am

Re: Automate Video Playback + GPIO

Tue Aug 13, 2019 8:39 pm

If you are familiar with building C code, then you can modify omxplayer to do this easily. Just trigger the GPIO with system calls whenever the current video timestamp is at certain values.

Return to “Graphics, sound and multimedia”