Linux HowTo: Set FFmpeg Process Priority with 2 Pass

Original Source Link

I’m using FFmpeg with Command Prompt.

I’m setting the process priority with start /low /b.


When pass 1 finishes, it launches FFmpeg again for pass 2 using &&.

start /low /b ffmpeg -i "C:video.mpg" -c:v libx264 -b:v 1500K -pass 1 "C:video.mp4" &&
start /low /b ffmpeg -i "C:video.mpg" -c:v libx264 -b:v 1500K -pass 2 "C:video.mp4"

Problem

Using start /low /b with pass 2 causes the error:

Failed to initialize encoder: Invalid parameter
Additional information: rc_twopass_stats_in.buf not set.

and pass 2 never starts.

Tagged : / /

Leave a Reply

Your email address will not be published. Required fields are marked *