MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / convertMp4ToGif

Method convertMp4ToGif

getstickers/getstickers.ts:573–576  ·  view source on GitHub ↗
(mp4Path: string, gifPath: string)

Source from the content-addressed store, hash-verified

571 fs.unlinkSync(scriptPath);
572 }
573 }
574 }
575
576 private async convertMp4ToGif(mp4Path: string, gifPath: string): Promise<void> {
577 await execFileAsync('ffmpeg', [
578 '-i', mp4Path,
579 '-vf', 'fps=15,scale=512:512:force_original_aspect_ratio=decrease,pad=512:512:(ow-iw)/2:(oh-ih)/2:color=white@0',

Callers 1

downloadStickersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected