Skip to content

Instantly share code, notes, and snippets.

@mshenoy83
Created June 5, 2021 08:59
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 mshenoy83/258a57625cffa12c6626e62c769a9ec5 to your computer and use it in GitHub Desktop.
Save mshenoy83/258a57625cffa12c6626e62c769a9ec5 to your computer and use it in GitHub Desktop.
Convert mkv file to mp4 using ffmpeg
param($folderpath)
Get-ChildItem $folderpath -Filter *.mkv |
Foreach-Object {
Set-Location $folderpath
$newfile = $_.FullName -replace ".mkv", ".mp4"
Write-Host $newfile
./ffmpeg -i $_.FullName -vcodec copy -acodec copy $newfile
}
@mshenoy83
Copy link
Author

Link to download ffmpeg https://ffmpeg.org/download.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment