Skip to content

Instantly share code, notes, and snippets.

@QZLin
Created February 5, 2023 10:52
Show Gist options
  • Save QZLin/f8e46c5b54860f71aa8d8fb0fb6b2ef5 to your computer and use it in GitHub Desktop.
Save QZLin/f8e46c5b54860f71aa8d8fb0fb6b2ef5 to your computer and use it in GitHub Desktop.
1 .. 10 | ForEach-Object {
$n = "$(if ("$_".Length -eq 1) { "0$_" }else { "$_" })" + ".mp4"
Write-Output $n
ffmpeg -i $n -c copy $n.Replace(".mp4", "_.mp4")
Move-Item $n _del
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment