UNPKG

ffmpeg-toolkit

Version:

A modern FFmpeg toolkit for Node.js

48 lines 1.66 kB
import { AudioModule, ImageModule, SubtitleModule, VideoModule } from '../modules/index.js'; import { BaseCore } from './BaseCore.js'; export class FFmpegToolkit extends BaseCore { constructor(config) { super(config); this.subtitle = new SubtitleModule(this); this.video = new VideoModule(this); this.audio = new AudioModule(this); this.image = new ImageModule(this); } async burnSubtitles(options) { return await this.subtitle.burnSubtitles(options); } async cropVideo(options) { return await this.video.cropVideo(options); } async convertVideoToPlatform(options) { return await this.video.convertVideoToPlatform(options); } async concatVideos(options) { return await this.video.concatVideos(options); } async concatVideosWithTransition(options) { return await this.video.concatVideosWithTransition(options); } async concatAudios(options) { return await this.audio.concatAudios(options); } async mergeAudioToVideo(options) { return await this.audio.mergeAudioToVideo(options); } async convertAudio(options) { return await this.audio.convertAudio(options); } async convertImage(options) { return await this.image.convertImage(options); } async resizeImage(options) { return await this.image.resizeImage(options); } async extractThumbnail(options) { return await this.image.extractThumbnail(options); } async imageToVideo(options) { return await this.image.imageToVideo(options); } } //# sourceMappingURL=Module.js.map