This commit is contained in:
2025-06-23 12:01:01 +02:00
parent 6828a0c3c0
commit 4d3fe76c62

View File

@@ -23,7 +23,7 @@ elif sys.platform == "darwin":
elif sys.platform == "win32": elif sys.platform == "win32":
ops = "win" ops = "win"
try: try:
opts, args = getopt.getopt(sys.argv[1:], "q:x:ta:r:fp:d:s:z:w:jge", ["command=", "help", "output=", "backup"]) opts, args = getopt.getopt(sys.argv[1:], "oq:x:ta:r:fp:d:s:z:w:jge", ["command=", "help", "output=", "backup"])
except getopt.GetoptError as err: except getopt.GetoptError as err:
# print help information and exit: # print help information and exit:
print(str(err)) # will print something like "option -a not recognized" print(str(err)) # will print something like "option -a not recognized"
@@ -33,7 +33,7 @@ output = None
# QJ : getopts # QJ : getopts
_DEV = "gopro9_1" _DEV = "gopro9_1"
_SEQUENCES = [] _SEQUENCES = []
_GPS = _FLIP = _JOIN = _ENCODE= False _GPS = _FLIP = _JOIN = _ENCODE = _OVERLAY = False
_TEST = False _TEST = False
_FILTER = False _FILTER = False
_QUALITY = ["35","35","25"] _QUALITY = ["35","35","25"]
@@ -55,7 +55,9 @@ for o, a in opts:
elif o in ("-j", "--flip"): elif o in ("-j", "--flip"):
_JOIN = True _JOIN = True
elif o in ("-g", "--flip"): elif o in ("-g", "--flip"):
_GPS = True _GPS = True
elif o in ("-o", "--overlay"):
_OVERLAY = True
elif o in ("-e", "--flip"): elif o in ("-e", "--flip"):
_ENCODE = True _ENCODE = True
elif o in ("-w", "--flip"): elif o in ("-w", "--flip"):
@@ -460,7 +462,9 @@ if _FLIP:
if _JOIN: if _JOIN:
join_videos(_DEV, _SOURCE_DIR,_DAY_DIRS) join_videos(_DEV, _SOURCE_DIR,_DAY_DIRS)
if _ENCODE: if _ENCODE:
encode_videos(_DEV, _SOURCE_DIR,_DAY_DIRS) encode_videos(_DEV, _SOURCE_DIR,_DAY_DIRS)
if _OVERLAY:
add_overlay(_DEV, _SOURCE_DIR,_DAY_DIRS)
# if _ACTION == "modify_date": # if _ACTION == "modify_date":
# modify_creation_date(_FILE,_SRC_FILE) # modify_creation_date(_FILE,_SRC_FILE)