$targetFolder = Get-Location

$ffmpegPath = "ffmpeg" 


Get-ChildItem -Path $targetFolder -Filter *.mp4 | ForEach-Object {

    $sourceFile = $_.FullName

    $destinationFile = $_.DirectoryName + "\" + $_.BaseName + "_converted.mp4"

    & $ffmpegPath -i $sourceFile -c:v libx265 -crf 19 -c:a copy $destinationFile

}

파이썬이 ㄹㅇ 선녀같음 ㅇㅅㅇ