MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / parseProbeJson

Function parseProbeJson

packages/engine/src/utils/ffprobe.ts:44–52  ·  view source on GitHub ↗
(stdout: string)

Source from the content-addressed store, hash-verified

42}
43
44function parseProbeJson(stdout: string): FFProbeOutput {
45 try {
46 return JSON.parse(stdout);
47 } catch (e) {
48 throw new Error(
49 `[FFmpeg] Failed to parse ffprobe output: ${e instanceof Error ? e.message : e}`,
50 );
51 }
52}
53
54const videoMetadataCache = new Map<string, Promise<VideoMetadata>>();
55const audioMetadataCache = new Map<string, Promise<AudioMetadata>>();

Callers 2

extractMediaMetadataFunction · 0.85
extractAudioMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected