This commit is contained in:
2025-06-18 13:56:52 +02:00
parent 1f6afb00c4
commit d71f49d869

View File

@@ -115,6 +115,8 @@ def export_gps(_DEV,_SOURCE_DIR,_DAY_DIRS):
print(myCmd) print(myCmd)
status, output = subprocess.getstatusoutput(myCmd) status, output = subprocess.getstatusoutput(myCmd)
print(output) print(output)
os.remove(_FULL_PATH + "ffmpeg")
os.remove(_FULL_PATH + "ffprobe")
def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS): def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
print("Flipping") print("Flipping")
for _DAY_DIR in _DAY_DIRS: for _DAY_DIR in _DAY_DIRS:
@@ -434,8 +436,10 @@ if _ACTION == "encode":
encode_videos(_DEV, _SOURCE_DIR,_DAY_DIRS) encode_videos(_DEV, _SOURCE_DIR,_DAY_DIRS)
if _ACTION == "all": if _ACTION == "all":
export_gps(_DEV, _SOURCE_DIR,_DAY_DIRS)
flip_videos(_DEV, _SOURCE_DIR,_DAY_DIRS) flip_videos(_DEV, _SOURCE_DIR,_DAY_DIRS)
join_videos(_DEV, _SOURCE_DIR,_DAY_DIRS) join_videos(_DEV, _SOURCE_DIR,_DAY_DIRS)
if _ACTION == "get_metadata": if _ACTION == "get_metadata":
modify_creation_date("/media/nas/nas-photo/imported/gopro9_1/2025-06-02", "GH010256.MP4") modify_creation_date("/media/nas/nas-photo/imported/gopro9_1/2025-06-02", "GH010256.MP4")
if _ACTION == "export_gps": if _ACTION == "export_gps":