Created
August 30, 2025 06:51
-
-
Save KosarevDmitry/4d2bcf87e57984436481e492ccd331b4 to your computer and use it in GitHub Desktop.
converter AVI to MKV
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
| # full list | |
| $files= Get-ChildItem | ForEach-Object -Process {if (!$_.PSIsContainer) {$_.Name; " " }} | |
| $files =Get-ChildItem -LiteralPath $(Get-Location) -Include *.avi | |
| for ($i=0; $i -lt $files.Count; $i++) { | |
| $name = $files[$i].Name | |
| $dest= $($name + '.mkv') | |
| ../ffmpeg.exe -fflags +genpts -i $name -c:v copy -c:a copy $dest | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment