upz

Handbreak script example

upz
Aug 25th, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $filesToConvert = Get-ChildItem -Path "mkv folder" -file -Recurse
  2. $outputPath = "c:\outputfolder\"
  3.  
  4. $handbreak = get-item -path "path to handbreak.exe"
  5.  
  6. foreach ($file in $filesToConvert){
  7.     $output = "$($outputPath)$($file.BaseName).mp4"
  8.     Start-Process -FilePath $handbreak.FullName -ArgumentList "-i $($file.FullName) -o $($output)"
  9. }
Advertisement
Add Comment
Please, Sign In to add comment