Created
June 5, 2021 08:59
-
-
Save mshenoy83/258a57625cffa12c6626e62c769a9ec5 to your computer and use it in GitHub Desktop.
Convert mkv file to mp4 using ffmpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Link to download ffmpeg https://ffmpeg.org/download.html