MCPcopy Index your code
hub / github.com/simstudioai/sim / probeMedia

Function probeMedia

apps/sim/lib/media/ffmpeg.ts:215–220  ·  view source on GitHub ↗
(file: MediaFile)

Source from the content-addressed store, hash-verified

213}
214
215export 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
222function probeFile(filePath: string): Promise<MediaProbe> {
223 ensureFfmpeg()

Callers 1

runFfmpegOperationFunction · 0.85

Calls 3

withTempDirFunction · 0.85
writeInputFunction · 0.85
probeFileFunction · 0.85

Tested by

no test coverage detected