simpsonstv icon indicating copy to clipboard operation
simpsonstv copied to clipboard

Package 'omxplayer' has no installation candidate

Open Villiem opened this issue 3 years ago • 1 comments

From their page

Note: omxplayer is being deprecated and resources are directed at improving vlc. I couldn´t install from scratch due to some packages not found

My suggestion is to change the script to work with vlc.

Villiem avatar Nov 17 '22 09:11 Villiem

import os import random import time from subprocess import Popen

directory = os.path.join(os.path.dirname(os.path.realpath(file)), 'videos')

videos = []

def getVideos(): global videos videos = [] for file in os.listdir(directory): if file.lower().endswith('.mp4'): videos.append(os.path.join(directory, file))

def playVideos(): global videos if len(videos) == 0: getVideos() time.sleep(5) return random.shuffle(videos) for video in videos: playProcess = Popen(['vlc', '--fullscreen', '--no-xlib', '--no-osd', '--loop', video]) playProcess.wait()

while True: playVideos()

vanhoteen avatar Nov 21 '23 10:11 vanhoteen