raspberry_pi_as_dedicated_looping_video_player
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
raspberry_pi_as_dedicated_looping_video_player [2025/04/22 19:45] – created tkbletsc | raspberry_pi_as_dedicated_looping_video_player [2025/04/22 19:55] (current) – tkbletsc | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Raspberry Pi Video Player Setup ====== ===== Basic Setup ===== * Install latest Raspberry Pi OS Lite. * At first boot, set up account: * Username: **user** * Set a password. * Run `raspi-config`: * Set up **Wi-Fi** and **SSH** (temporary, for setup only). * Set hostname (e.g. **videopi**). * Update system: * `sudo apt update` * `sudo apt dist-upgrade` * Install VLC: * `sudo apt install vlc` ===== Add Video ===== * Obtain video via `wget` or `scp` (e.g. with WinSCP). * Assume | + | ====== Raspberry Pi Video Player Setup ====== |
+ | |||
+ | This will rig a Raspberry Pi to boot into looping the same video (or videos) over and over forever, e.g. for an art installation. The card is configured to be read-only, so this setup should be fairly reliable in the long-term. | ||
+ | |||
+ | ===== Basic Setup ===== | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | ===== Add Video ===== | ||
+ | | ||
+ | | ||
+ | |||
+ | ===== Test Playback ===== | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | ===== Enable Auto-login on tty1 ===== | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | ===== Auto-Playback Script ===== | ||
+ | |||
+ | Create | ||
+ | < | ||
+ | #!/bin/bash | ||
+ | |||
+ | # This script auto-plays the video on tty1 | ||
+ | if [ $(tty) == "/ | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | else | ||
+ | | ||
+ | fi | ||
+ | |||
+ | </ | ||
+ | |||
+ | Create '' | ||
+ | < | ||
+ | # | ||
+ | |||
+ | # Loop video playback forever until Ctrl+C | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Append this to '' | ||
+ | < | ||
+ | # Launch video if on tty1 | ||
+ | bash ~/ | ||
+ | </ | ||
+ | Reboot and test. You should be able to press Ctrl+C to drop to a terminal. | ||
+ | |||
+ | ===== Optional: Enable TV Out ===== | ||
+ | |||
+ | Use '' | ||
+ | |||
+ | ===== Make SD Card Read-Only ===== | ||
+ | |||
+ | First, leave a warning for future people -- create '' | ||
+ | < | ||
+ | Note: the system is set up so that, by default, the SD card is never written to. | ||
+ | This means that changes you make will go away with every reboot. | ||
+ | |||
+ | If you want your changes to stick, run: | ||
+ | |||
+ | sudo mount -o remount,rw / | ||
+ | |||
+ | Then make your changes in / | ||
+ | So, to change something in the home directory, you'd go to: | ||
+ | |||
+ | / | ||
+ | |||
+ | For reference, here are the steps that were done to make things this way: | ||
+ | - sudo apt install overlayroot | ||
+ | - Edit / | ||
+ | - Edit / | ||
+ | - Reboot | ||
+ | </ | ||
+ | |||
+ | To actually make card read-only: | ||
+ | * Install overlay root: '' | ||
+ | * Edit / | ||
+ | * Edit / | ||
+ | * Reboot. | ||
raspberry_pi_as_dedicated_looping_video_player.1745376325.txt.gz · Last modified: 2025/04/22 19:45 by tkbletsc