I'm trying to make a script/program that will seamlessly loop through all video files in a directory using omxplayer. So far my best solution was using ffmpeg to concat the videos of the directory and loop the output using omxplayer --loop output, but I've kept running into issues with different framerates and codecs of videos and the concating itself takes way longer than I can afford. Does anyone have a clue or a snippet on how digital signage software solutions loop their videos?
Asked
Active
Viewed 180 times
1 Answers
0
Try this.
#!/bin/sh
while : ;
do for f in /videos-location/*.mp4;
do omxplayer -n -l "$f";
done;
done

rijotech
- 356
- 3
- 17