def runpov(l,f): a = writepovfile(u.flatten(l), "/home/umar/povrayfiles/"+f+".pov") u.shellcommand(["povray", "-O/tmp/"+f+".png", "/home/umar/povrayfiles/"+f+".pov"]) u.shellcommand(["cp", "/tmp/"+f+".png", "/home/umar/public_html/"+f+".png"])
def display(f): u.shellcommand(["xli","-fillscreen", "/home/umar/public_html/"+f+".png"]) u.shellcommand(["xli","-onroot","-fillscreen", "/home/umar/public_html/"+f+".png"])
def downloadyoutubevideo(video): return u.shellcommand( ["/home/umar/youtube-dl",video])
def getandcopyframe(): ex() return u.shellcommand(["cp", outimg, localwebdir])
def getframe(start, video, image): return u.shellcommand(["ffmpeg", "-vframes", "1", "-ss", str(start), "-i", video, image])
def videoinfo(filename): a = u.shellcommand(["mplayer", filename, "-nosound", "-vc", "null", "-vo", "null", "-benchmark", "-nocorrect-pts"]) b = a.split("\n") c = [x.split("\r") for x in b] d = c[20][-2].split(" ") return d