Exemple #1
0
def main():
    TOTALVIDS = int(input("How many videos are you jumpcutting? "))

    FILENAMEL = dict()
    FILENAMER = dict()
    FILENAMEOUT = dict()

    for i in range(TOTALVIDS):
        print("File Number: " + str(i + 1))
        FILENAMEL[i] = input("Enter the filepath of the left video: ")
        FILENAMER[i] = input("Enter the filepath of the right video: ")
        FILENAMEOUT[i] = input(
            "What would you like the output file to be called? (Eg. Lecture, Jumpcut): "
        )

    TEMP_FOLDER = "JCTEMP" + str(int(time()))
    createPath(TEMP_FOLDER)

    for i in range(TOTALVIDS):
        execute("ffmpeg -i " + FILENAMEL[i] + " -i " + FILENAMER[i] +
                " -filter_complex hstack " + TEMP_FOLDER + "/" +
                FILENAMEOUT[i] + "_merge.mp4")
        execute(
            "py jumpcutter.py --input_file " + TEMP_FOLDER + "/" +
            FILENAMEOUT[i] + "_merge.mp4 --output_file Output/" +
            FILENAMEOUT[i] +
            "_jumpcut.mp4 --sounded_speed 1.6 --silent_speed 999999 --frame_margin 4"
        )

    deletePath(TEMP_FOLDER)

    print("All done!")
    input("Press ENTER to exit.")
def execute():
	rospy.init_node("pih_Master")
	myCommandAPI = Cmd_API()
	myStateAPI = State_API()
	"""
	count = 0
	while count<500:
		arm_controller.lock_rarm(myCommandAPI,myStateAPI)
		count +=1
	"""
	#print myStateAPI.get_rarm_pose(myCommandAPI)
	print "-------------STARTING-------------"
	start.execute(myStateAPI, myCommandAPI)
	print "-------------LEARNING-------------"
	#learn.execute(myStateAPI, myCommandAPI)
	print "-------------PERFORMING-------------"
	perform.execute(myStateAPI,myCommandAPI, learn.execute(myStateAPI, myCommandAPI))
Exemple #3
0
def execute():
    rospy.init_node("pih_Master")
    myCommandAPI = Cmd_API()
    myStateAPI = State_API()
    """
	count = 0
	while count<500:
		arm_controller.lock_rarm(myCommandAPI,myStateAPI)
		count +=1
	"""
    #print myStateAPI.get_rarm_pose(myCommandAPI)
    print "-------------STARTING-------------"
    start.execute(myStateAPI, myCommandAPI)
    print "-------------LEARNING-------------"
    #learn.execute(myStateAPI, myCommandAPI)
    print "-------------PERFORMING-------------"
    perform.execute(myStateAPI, myCommandAPI,
                    learn.execute(myStateAPI, myCommandAPI))
Exemple #4
0
def givelocation():
    try:
        _json = request.json
        src = _json['src']
        des = _json['des']
        src_lat = src['lat']
        src_lon = src['lon']
        des_lat = des['lat']
        des_lon = des['lon']
        global portno
        portno += 10
        start.execute(src_lat, src_lon, des_lat, des_lon, portno)
        time.sleep(5)
        return "SRC Latitude is :" + str(src_lat) + "SRC Longitude is :" + str(
            src_lon) + "DES Latitude is :" + str(
                des_lat) + "DEST Longitude is :" + str(des_lon)
    except Exception as e:
        print(e)
    return "Hello World"
Exemple #5
0
def execute():
    rospy.init_node("TestPY")
    myStateAPI = State_API()
    myCmd_API = Cmd_API()
    start.execute(myStateAPI, myCmdAPI)
    print "done"
def execute():
	rospy.init_node("TestPY")
	myStateAPI = State_API()
	myCmd_API = Cmd_API()
	start.execute(myStateAPI,myCmdAPI)
	print "done"