(mp4Path: string, gifPath: string)
| 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', |