This commit is contained in:
2025-06-23 12:44:55 +02:00
parent c259a95da5
commit eca40015e9

View File

@@ -157,7 +157,7 @@ def add_overlay(_DEV,_SOURCE_DIR,_DAY_DIRS):
pass pass
else: else:
continue continue
if filename.endswith(".MP4") and filename.startswith("joined_"): if filename.endswith(".MP4") and filename.startswith("joined_") and os.path.exists(f"{_FULL_PATH}{filename.replace('.MP4', '.WEBM')}"):
if _FLIP: if _FLIP:
myCmd = f"ffmpeg -i {filename} -c:v libvpx-vp9 -i {filename.replace('.MP4', '.WEBM')} -filter_complex [0][1]overlay=x=0:y=0,hflip,vflip overlay_{filename}" myCmd = f"ffmpeg -i {filename} -c:v libvpx-vp9 -i {filename.replace('.MP4', '.WEBM')} -filter_complex [0][1]overlay=x=0:y=0,hflip,vflip overlay_{filename}"
else: else: