Created
September 23, 2013 10:12
-
-
Save simmogs/6668652 to your computer and use it in GitHub Desktop.
OmxPlayer loop for Raspbian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import subprocess | |
import os | |
import glob | |
path ='/home/pi/' | |
while(1): | |
for infile in glob.glob(os.path.join(path, '*.mp4')): | |
a = subprocess.call( [ "omxplayer", "-o", "hdmi", infile]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment