hackerterminal/videoplayer.py

15 lines
331 B
Python
Raw Normal View History

2022-02-03 21:52:44 +00:00
#!/usr/bin/python3
# Starts long video (24h) at random position
import random
import os
sec = str(random.randrange(0, 60))
min = str(random.randrange(0, 60))
hour = str(random.randrange(0,20))
start = "\"" + hour + ":" + min + ":" + sec + "\""
print(start)
os.system("omxplayer \"video.mkv\" -b --loop --no-osd --pos "+ start)