py [- audio Output audio over HDMI, local ( headphone jack ), or both. I’ve reproduced them here for convenience: The vidlooper -help command will show you the available options. The website Raspberry Pi Spy has information on how to mount, unmount, and automatically mount on boot for a USB memory stick. In the case of leaving the stick attached, you’ll need to configure the USB stick to automatically mount on boot. The latter is useful if you want to allow non-techies to change the video roster – they simply turn off the video player, replace the videos on the USB stick on a PC/Mac, and replace the stick. You could copy the files onto the SD card, or leave the USB stick attached. The easiest way to load videos onto the player is using a microUSB-USB adapter and a USB memory stick. Thus, you can reorder them by prefixing their filenames with 1, 2, 3 and 4. Videos will be played in alphabetical filename order. The Raspberry Pi Zero probably won’t work with a higher resolution, however, if you’re using a Raspberry Pi 4, you could use 4K video. Videos should be in h264 format (.mp4 extension) in order to benefit from hardware acceleration. But first, we need to load some videos onto the Raspberry Pi. You’ll might run into a couple of permission problems when you first run vidlooper – see the Troubleshooting section below. rpi-vidlooper uses button callbacks and thread locking to avoid issues where multiple buttons are pressed quickly (someone is inevitably going to try that in a museum setting!).įirst, the software dependencies must be installed: It is a wrapper around OMXplayer which handles the button interactions and video selection. I’ve written a small, free (MIT licence) Python video player called rpi-vidlooper. We’ll need to use Raspberry Pi’s OMXplayer, which has hardware acceleration a necessary feature to get smooth video playback on the Raspberry Pi. Enter those details, and you’ll be logged in and see a command prompt. The default username is pi and the default password is raspberry. When the system has booted, you’ll see a login screen. When the microSD card is ready, place in into the Raspberry Pi, connect the Pi to a monitor or TV and a keyboard, and turn it on. The Imager will prepare the SD card with the OS. The lite option is all we need, since we don’t need a full desktop for this project. The Raspberry Pi website provides a tool called Raspberry Pi Imager to prepare the microSD card on Windows, macOS, and Ubuntu.ĭownload and run the Raspberry Pi Imager, and select the Raspberry Pi OS (other) option from the menu, then the Raspberry Pi OS Lite (32-bit) option. Install the operating system, boot the Raspberry Pi, and log inįirst, you’ll need to install the Raspberry Pi operating system (previously called Raspbian) onto a microSD card. The smaller black box to its left is a headphone amplifier. The video player is the blue box in the bottom right, with the four video selector buttons on the top in light blue. The image at the top shows it set up at Jefferson Street Sound Museum in Nashville, Tennessee. In this article, I’ll cover how to install and configure the software and load the videos onto the player. It could be useful for museum displays, art or science projects, and other scenarios where visitors can choose from a selection of short videos. If you want to use 4K video, you’ll need the more powerful Raspberry Pi 4, which sells for ~$35. Previously, I described how to build a dedicated video player using a Raspberry Pi Zero – a small, very cheap (~$10) computer and a set of physical buttons to switch the active video.
0 Comments
Leave a Reply. |