1

I got Ubuntu Core 18 running on a Raspberry Pi 3 Model B+. I want the computer to boot and automatically play a video file to HDMI output and loop.

I can log in via SSH and run omxplayer-pi test.mp4 and it plays a video on a TV connected via HDMI.

How do I automate this so that it runs on boot?

Once I get the basic automation in place, I'll probably want to write a script to keep trying to play the video if, for example, the omxplayer-pi process dies.

1 Answer 1

0

Turns out this is a bit of work on Ubuntu Core. It was for me, anyway--I had to learn the ins and outs of building, installing, and using snaps. There are documentation and examples available and it worked as advertised.

After getting a hot tip I hacked on on https://github.com/ogra1/iptv-player-snap. My fork is here. It will automatically loop a video on boot on an ubuntu core raspberry pi. No X server or window manager required!

Note: there's an easy alternative video looper that runs on raspbian.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .