I'm running FFmpeg in Command Prompt with low priority.
start /low /b ffmpeg -i "C:\video.mpg" -c:v libx264 -crf 25 "C:\video.mp4"
How can I set FFmpeg's priority in PowerShell for low
, below normal
, normal
, above normal
, high
?
Using the CMD command above in PowerShell, I get the errors:
Parameter cannot be processed because the parameter name 'i' is ambiguous.
Start-Process : A positional parameter cannot be found that accepts argument 'ffmpeg'.
Testing Solutions
I'm trying to use the first example in ArcSet's answer.
Start-Process ffmpeg -NoNewWindow -Wait -ArgumentList '-i "C:\video.mpg" -c:v libx264 -crf 25 "C:\video.mp4"' -PassThru Set-ProcessPriority -ProcessId $Process.id -Priority AboveNormal
I'm getting the error:
A positional parameter cannot be found that accepts argument 'Set-ProcessPriority'