Skip to content

Instantly share code, notes, and snippets.

@ClimenteA
Created May 29, 2023 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ClimenteA/86a473ecb1dec40032d79e6f3ffa267f to your computer and use it in GitHub Desktop.
Save ClimenteA/86a473ecb1dec40032d79e6f3ffa267f to your computer and use it in GitHub Desktop.
Use auto-editor over videos in a folder to "magic cut" silent moments
import os
mp4files = [f for f in os.listdir() if f.endswith(".mp4") and "ALTERED" not in f]
if __name__ == "__main__":
for f in mp4files:
os.system(f"auto-editor {f} --no-open")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment