From 32abeff2c184cc14dc7379d51f824fcbb67eab07 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 17 Jun 2025 19:44:08 +0200 Subject: [PATCH] build --- handle_imported_video.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/handle_imported_video.py b/handle_imported_video.py index ad174bd..26e14f3 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -86,7 +86,9 @@ def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS): _FULL_PATH = _SOURCE_DIR + "/" + _DEV + "/" + _DAY_DIR + "/" os.chdir(_FULL_PATH) - + _PROCESSED = _FULL_PATH + "processed" + if not os.path.exists(_PROCESSED): + os.mkdir(_PROCESSED) for filename in os.listdir(_FULL_PATH): if filename.endswith(".MP4") and not filename.startswith("joined_"): @@ -134,7 +136,7 @@ def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS): #print(ff.stderr) #ffmpeg -i .\GH010149.MP4 -c:v hevc_amf -rc cqp -qp_i 42 -qp_p 42 -quality quality -crf 25 output7.mp4 try: - # shutil.move(filename, "__" + export_name) + shutil.move(filename + "_original", _PROCESSED) # shutil.move(export_name, export_name) filedate.File(filename).set(