Skip to content

Instantly share code, notes, and snippets.

@AdrienGiboire
Created December 4, 2024 21:18
Show Gist options
  • Save AdrienGiboire/4ab0d2c7de2d92c9a48165efb2cf6498 to your computer and use it in GitHub Desktop.
Save AdrienGiboire/4ab0d2c7de2d92c9a48165efb2cf6498 to your computer and use it in GitHub Desktop.
auto-editor windows batch edit
# Save to a new file with a ".ps1" extension
$files = "D:\videos\"
foreach ($f in Get-ChildItem $files) {
# I have to define the h264 video codec because it fails converting GoPro videos without this option.
auto-editor --no-open --margin 0.2sec --video-codec h264 $(Join-Path -Path $files -ChildPath $f)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment