mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 05:13:47 +00:00
findOnPath resolved ffmpeg/ffprobe by shelling out to where (Windows) or which (POSIX). In a restricted/sandboxed shell where that helper binary itself isn't runnable, resolution failed even when the target binary was directly executable and genuinely on PATH - the caller fell back to a bare command name that a later non-shell spawn() can't resolve on its own, so render failed hard for a perfectly usable install. Added a pure-JS PATH-directory scan as a fallback when where/which fails, needing no external helper process.