(file: MediaFile)
| 213 | } |
| 214 | |
| 215 | export async function probeMedia(file: MediaFile): Promise<MediaProbe> { |
| 216 | return withTempDir(async (dir) => { |
| 217 | const inputPath = await writeInput(dir, file, 0) |
| 218 | return probeFile(inputPath) |
| 219 | }) |
| 220 | } |
| 221 | |
| 222 | function probeFile(filePath: string): Promise<MediaProbe> { |
| 223 | ensureFfmpeg() |
no test coverage detected