(stdout: string)
| 42 | } |
| 43 | |
| 44 | function 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 | |
| 54 | const videoMetadataCache = new Map<string, Promise<VideoMetadata>>(); |
| 55 | const audioMetadataCache = new Map<string, Promise<AudioMetadata>>(); |
no outgoing calls
no test coverage detected