Skip to content

Instantly share code, notes, and snippets.

@ngollan
Last active November 25, 2017 13:30
Show Gist options
  • Save ngollan/301798b1e11ec2aa9d7e66a1bf903251 to your computer and use it in GitHub Desktop.
Save ngollan/301798b1e11ec2aa9d7e66a1bf903251 to your computer and use it in GitHub Desktop.
Remux videos in bulk with FFMPEG
Get-ChildItem "." -Filter "*.mp4" |
Foreach-Object {
$destination = "MOV\$($_.BaseName).mov"
if (-not (Test-Path $destination)) {
Write-Output "Remux $($_) -> $($destination)"
d:\bin\ffmpeg -nostats -hide_banner -loglevel error -i "$_" -vcodec copy -acodec copy $destination
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment