MCPcopy
hub / github.com/simstudioai/sim / runCommand

Function runCommand

apps/sim/lib/media/ffmpeg.ts:206–213  ·  view source on GitHub ↗
(command: ffmpeg.FfmpegCommand, outputPath: string)

Source from the content-addressed store, hash-verified

204}
205
206function runCommand(command: ffmpeg.FfmpegCommand, outputPath: string): Promise<void> {
207 return new Promise<void>((resolve, reject) => {
208 command
209 .on('end', () => resolve())
210 .on('error', (err) => reject(new Error(`FFmpeg error: ${err.message}`)))
211 .save(outputPath)
212 })
213}
214
215export async function probeMedia(file: MediaFile): Promise<MediaProbe> {
216 return withTempDir(async (dir) => {

Callers 11

overlayAudioFunction · 0.70
mixAudioFunction · 0.70
concatFunction · 0.70
trimFunction · 0.70
scalePadFunction · 0.70
overlayImageFunction · 0.70
addTextFunction · 0.70
fadeFunction · 0.70
extractAudioFunction · 0.70
convertFunction · 0.70
thumbnailFunction · 0.70

Calls 2

onMethod · 0.80
resolveFunction · 0.50

Tested by

no test coverage detected