コード例 #1
0
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"])
コード例 #2
0
def display(f):
    u.shellcommand(["xli","-fillscreen",
                    "/home/umar/public_html/"+f+".png"])
    u.shellcommand(["xli","-onroot","-fillscreen",
                    "/home/umar/public_html/"+f+".png"])
コード例 #3
0
def downloadyoutubevideo(video):
    return u.shellcommand(
        ["/home/umar/youtube-dl",video])
コード例 #4
0
def getandcopyframe():
    ex()
    return u.shellcommand(["cp", outimg, localwebdir])
コード例 #5
0
def getframe(start, video, image):
    return u.shellcommand(["ffmpeg", "-vframes", "1", "-ss", str(start), "-i", video, image])
コード例 #6
0
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