mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 10:44:52 +01:00
bitwarden
This commit is contained in:
@@ -10,7 +10,7 @@ import getopt
|
|||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
opts, args = getopt.getopt(sys.argv[1:], "p:d:s:", ["command=", "help", "output=", "backup"])
|
opts, args = getopt.getopt(sys.argv[1:], "fp:d:s:", ["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"
|
||||||
@@ -20,6 +20,7 @@ output = None
|
|||||||
# QJ : getopts
|
# QJ : getopts
|
||||||
_DEV = "gopro9_1"
|
_DEV = "gopro9_1"
|
||||||
_SEQUENCES = []
|
_SEQUENCES = []
|
||||||
|
_FLIP = False
|
||||||
for o, a in opts:
|
for o, a in opts:
|
||||||
if o == "-h":
|
if o == "-h":
|
||||||
_ACTION = True
|
_ACTION = True
|
||||||
@@ -27,12 +28,15 @@ for o, a in opts:
|
|||||||
_DEV = True
|
_DEV = True
|
||||||
elif o in ("-p", "--part"):
|
elif o in ("-p", "--part"):
|
||||||
_DAY_DIR = a
|
_DAY_DIR = a
|
||||||
|
elif o in ("-f", "--flip"):
|
||||||
|
_FLIP = True
|
||||||
elif o in ("-s", "--sequence"):
|
elif o in ("-s", "--sequence"):
|
||||||
a = a.split(",")
|
a = a.split(",")
|
||||||
for s in a:
|
for s in a:
|
||||||
print(s)
|
print(s)
|
||||||
_SEQUENCES.append("{:04d}".format(int(s)))
|
_SEQUENCES.append("{:04d}".format(int(s)))
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
_WIZZARD = True
|
_WIZZARD = True
|
||||||
|
|
||||||
@@ -91,6 +95,9 @@ if os.path.exists(_FULL_PATH):
|
|||||||
|
|
||||||
f.close()
|
f.close()
|
||||||
print(_FULL_PATH)
|
print(_FULL_PATH)
|
||||||
|
if _FLIP:
|
||||||
|
myCmd = '/opt/ffmpeg/ffmpeg -f concat -i video.txt -vcodec copy -acodec copy -vf "transpose=1,transpose=1" ' + export_name
|
||||||
|
else:
|
||||||
myCmd = '/opt/ffmpeg/ffmpeg -f concat -i video.txt -vcodec copy -acodec copy ' + export_name
|
myCmd = '/opt/ffmpeg/ffmpeg -f concat -i video.txt -vcodec copy -acodec copy ' + export_name
|
||||||
print(myCmd)
|
print(myCmd)
|
||||||
print(os.getcwd())
|
print(os.getcwd())
|
||||||
|
|||||||
Reference in New Issue
Block a user