mirror of
https://gitlab.sectorq.eu/jaydee/imported_video.git
synced 2025-12-14 02:24:53 +01:00
build
This commit is contained in:
@@ -23,7 +23,7 @@ elif sys.platform == "darwin":
|
||||
elif sys.platform == "win32":
|
||||
ops = "win"
|
||||
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:
|
||||
# print help information and exit:
|
||||
print(str(err)) # will print something like "option -a not recognized"
|
||||
@@ -33,7 +33,7 @@ output = None
|
||||
# QJ : getopts
|
||||
_DEV = "gopro9_1"
|
||||
_SEQUENCES = []
|
||||
_GPS = _FLIP = _JOIN = _ENCODE= False
|
||||
_GPS = _FLIP = _JOIN = _ENCODE = _OVERLAY = False
|
||||
_TEST = False
|
||||
_FILTER = False
|
||||
_QUALITY = ["35","35","25"]
|
||||
@@ -56,6 +56,8 @@ for o, a in opts:
|
||||
_JOIN = True
|
||||
elif o in ("-g", "--flip"):
|
||||
_GPS = True
|
||||
elif o in ("-o", "--overlay"):
|
||||
_OVERLAY = True
|
||||
elif o in ("-e", "--flip"):
|
||||
_ENCODE = True
|
||||
elif o in ("-w", "--flip"):
|
||||
@@ -461,6 +463,8 @@ if _JOIN:
|
||||
join_videos(_DEV, _SOURCE_DIR,_DAY_DIRS)
|
||||
if _ENCODE:
|
||||
encode_videos(_DEV, _SOURCE_DIR,_DAY_DIRS)
|
||||
if _OVERLAY:
|
||||
add_overlay(_DEV, _SOURCE_DIR,_DAY_DIRS)
|
||||
|
||||
# if _ACTION == "modify_date":
|
||||
# modify_creation_date(_FILE,_SRC_FILE)
|
||||
|
||||
Reference in New Issue
Block a user