raspberry pi videolooper script (this can loop multiple extensions and multiple files) audio is standard hdmi. in terminal:
-
clone git https://github.com/kimaernoudt/videolooper
-
cd videolooper
-
sudo bash kimvideolooperinstaller.sh
comments:
a. it uses the udev rules for executing commands on removing and inserting the usbdrive in /etc/udev/rules.d/10-usbdriveadded.rules :KERNEL=="sd?1", ACTION=="add", RUN+="/home/pi/startstartloop.sh" in /etc/udev/rules.d/10-usbdriveremoved.rules :KERNEL=="sd?1", ACTION=="remove", RUN+="/home/pi/startstoploop.sh"
b. it edits the fstab with the following to automount usbdrive /dev/sda1 to /mnt/media/usbdrive /dev/sda1 /mnt/media/usbdrive/ vfat rw,defaults 0 0
kim