mirror of
https://gitlab.sectorq.eu/jaydee/imported_video.git
synced 2025-12-14 10:34:53 +01:00
build
This commit is contained in:
@@ -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"]
|
||||||
@@ -56,6 +56,8 @@ for o, a in opts:
|
|||||||
_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"):
|
||||||
@@ -461,6 +463,8 @@ 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)
|
||||||
|
|||||||
Reference in New Issue
Block a user