mediaforge - v0.1.0
    Preparing search index...

    Function renice

    • Renice (change priority) of a running ffmpeg child process. On Linux/macOS: uses the renice command. Range: -20 (highest) to 19 (lowest). On Windows: uses wmic process to set priority class. Requires appropriate OS permissions for negative values on Unix.

      Parameters

      • child: ChildProcess
      • priority: number

      Returns void

      const proc = ffmpeg('input.mp4').output('out.mp4').spawn();
      renice(proc.child, 10); // lower priority