This commit is contained in:
2025-06-17 19:34:17 +02:00
parent f6b21da0e1
commit c1da35dd76

View File

@@ -108,9 +108,7 @@ def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
# myCmd = [ # myCmd = [
# "/usr/bin/ffmpeg", "-i", filename, "-vf", "hflip", "-c:a", "-codec", "copy", "-y", export_name # "/usr/bin/ffmpeg", "-i", filename, "-vf", "hflip", "-c:a", "-codec", "copy", "-y", export_name
# ] # ]
myCmd = [ myCmd = f"exiftool -rotation=180 {filename}"
"exiftool", "-rotation=180", filename
]
#Path = "~/Documents/File.txt" #Path = "~/Documents/File.txt"
# filedate.File(Path).set( # filedate.File(Path).set(
@@ -123,6 +121,7 @@ def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
print(myCmd) print(myCmd)
print(myCmd) print(myCmd)
status, output = subprocess.getstatusoutput(myCmd) status, output = subprocess.getstatusoutput(myCmd)
print(output)
#proc = subprocess.Popen(myCmd,stdout=subprocess.DEVNULL,stderr=subprocess.STDOUT) #proc = subprocess.Popen(myCmd,stdout=subprocess.DEVNULL,stderr=subprocess.STDOUT)
# print(f"Fliping {filename} in {_DAY_DIR}...".ljust(100)) # print(f"Fliping {filename} in {_DAY_DIR}...".ljust(100))