Skip to content

Instantly share code, notes, and snippets.

@KosarevDmitry
Created August 30, 2025 06:51
Show Gist options
  • Save KosarevDmitry/4d2bcf87e57984436481e492ccd331b4 to your computer and use it in GitHub Desktop.
Save KosarevDmitry/4d2bcf87e57984436481e492ccd331b4 to your computer and use it in GitHub Desktop.
converter AVI to MKV
# 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