https://github.com/kitimark/fluent-ffmpeg-nestjs
The fluent-ffmpeg wrapper of nestjs
https://github.com/kitimark/fluent-ffmpeg-nestjs
Last synced: over 1 year ago
JSON representation
The fluent-ffmpeg wrapper of nestjs
- Host: GitHub
- URL: https://github.com/kitimark/fluent-ffmpeg-nestjs
- Owner: kitimark
- License: mit
- Created: 2022-04-19T10:21:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-17T10:00:05.000Z (over 2 years ago)
- Last Synced: 2025-03-26T12:51:17.113Z (over 1 year ago)
- Language: TypeScript
- Size: 176 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Fluent-ffmpeg module for NestJS
## Installation
```bash
yarn add @mrkwskiti/fluent-ffmpeg-nestjs fluent-ffmpeg
yarn add --dev @types/fluent-ffmpeg
```
## Documentation
- [Fluent-Ffmpeg](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg#readme)
## Examples
### Import module
```typescript
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 {}
```
### Inject ffmpeg
```typescript
import { Controller, Get, } from '@nestjs/common';
import { InjectFluentFfmpeg, Ffmpeg } from '@mrkwskiti/fluent-ffmpeg-nestjs'
export class AppController {
constructor(
@InjectFluentFfmpeg() private readonly ffmpeg: Ffmpeg
) {}
// ...
}
```
## License
MIT