export function ffprobeArguments(inputPath: string): readonly string[] {
  if (!inputPath.startsWith('/') || inputPath.includes('\0')) {
    throw new TypeError('Probe input must be a safe absolute virtual path');
  }
  return Object.freeze([
    '-v',
    'error',
    '-show_format',
    '-show_streams',
    '-show_chapters',
    '-print_format',
    'json',
    inputPath,
  ]);
}
