mediaforge - v2.2.0
    Preparing search index...

    Function execBounded

    • Run a binary and return its stdout, bounded by a timeout.

      Blocking. Prefer execAsync on a server, where a synchronous call stalls the event loop for every other request for the duration.

      Known limitation: execFileSync signals only the direct child. A binary that forks a long-lived grandchild which inherits the stdout pipe will keep that pipe open past the timeout, so the call returns late even though the timeout fired. Neither ffmpeg -version nor ffprobe does this, and the async path below is immune because it kills the whole process group.

      Parameters

      Returns string

      when the timeout elapses

      with code SPAWN_FAILED when the binary cannot run