Skip to content

Instantly share code, notes, and snippets.

@vpetrigo
Created April 8, 2021 12:02
Show Gist options
  • Save vpetrigo/fb4442503b9fe3851bc4311386e8ec98 to your computer and use it in GitHub Desktop.
Save vpetrigo/fb4442503b9fe3851bc4311386e8ec98 to your computer and use it in GitHub Desktop.
Change container type from MOV to MP4 and convert audio from PCM to AAC 320K
Get-ChildItem -Path <path/to/dir> -Filter "*.mov" |
ForEach-Object {
$new_name = $_.Name -replace '.mov','.mp4';
ffmpeg -i "$($_.Name)" -c:v copy -c:a aac -b:a 320k "$new_name";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment