Skip to content

Instantly share code, notes, and snippets.

@simmogs
Created September 23, 2013 10:12
Show Gist options
  • Save simmogs/6668652 to your computer and use it in GitHub Desktop.
Save simmogs/6668652 to your computer and use it in GitHub Desktop.
OmxPlayer loop for Raspbian
#!/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