Advertisement
WorldTeacher

Untitled

Apr 10th, 2021
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. Get-ChildItem *.mkv | where BaseName -notlike '*`[HEVC]' | foreach {
  2. ffmpeg -i $_ -c:v libx265 -c:a copy -x265-params crf=25 "$($_.BaseName) [HEVC].mkv" -n |
  3. Write-Host
  4. if ($LASTEXITCODE -eq 0) { $_ }
  5. } | Remove-Item -force
  6.  
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement