Run ffprobe on a file and return fully typed JSON output. Synchronous version — use probeAsync for non-blocking operation.
probeAsync
const info = probe('input.mp4');console.log(info.format?.duration); // "120.042000"console.log(info.streams[0].codec_name); // "h264" Copy
const info = probe('input.mp4');console.log(info.format?.duration); // "120.042000"console.log(info.streams[0].codec_name); // "h264"
Run ffprobe on a file and return fully typed JSON output. Synchronous version — use
probeAsyncfor non-blocking operation.