示例#1
0
def addToQueue(screen):
    string = queue.convertToVideoString(screen)
    if string is not None:
        result = screen.queue.addItem(string)
        if not result:
            #TODO: Properly handle error.
            print("Error adding to queue. Non-unique description")
        screen.queue.listJobs()
示例#2
0
def extractFramesFromVideo(screen):
    jobdict = queue.convertToVideoString(screen)
    screen.ffmpeg.extractFrames(jobdict)