yarn add @mrkwskiti/fluent-ffmpeg-nestjs fluent-ffmpeg
yarn add --dev @types/fluent-ffmpeg
import { Module } from '@nestjs/common';
import { FluentFfmpegModule } from '@mrkwskiti/fluent-ffmpeg-nestjs'
import { AppController } from './app.controller';
@Module({
imports: [FluentFfmpegModule.forRoot()],
controllers: [AppController],
})
export class AppModule {}
import { Controller, Get, } from '@nestjs/common';
import { InjectFluentFfmpeg, Ffmpeg } from '@mrkwskiti/fluent-ffmpeg-nestjs'
export class AppController {
constructor(
@InjectFluentFfmpeg() private readonly ffmpeg: Ffmpeg
) {}
// ...
}
MIT