From 1c389ce93d7812925dba0a05d1981c05b3ce4f1d Mon Sep 17 00:00:00 2001 From: maxpaj Date: Wed, 30 Aug 2017 15:08:07 +0200 Subject: [PATCH] fluent-ffmpeg filter functions Added alternative parameter types for the filter functions. Resources: https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/search?utf8=%E2%9C%93&q=withAudioFilters&type= https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/search?utf8=%E2%9C%93&q=withVideoFilters&type= --- types/fluent-ffmpeg/index.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/types/fluent-ffmpeg/index.d.ts b/types/fluent-ffmpeg/index.d.ts index e1380dc78e..a27277e14a 100644 --- a/types/fluent-ffmpeg/index.d.ts +++ b/types/fluent-ffmpeg/index.d.ts @@ -144,10 +144,10 @@ declare namespace Ffmpeg { audioFrequency(freq: number): FfmpegCommand; withAudioQuality(quality: number): FfmpegCommand; audioQuality(quality: number): FfmpegCommand; - withAudioFilter(filters: { filter: string, options: any }): FfmpegCommand; - withAudioFilters(filters: { filter: string, options: any }): FfmpegCommand; - audioFilter(filters: { filter: string, options: any }): FfmpegCommand; - audioFilters(filters: { filter: string, options: any }): FfmpegCommand; + withAudioFilter(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; + withAudioFilters(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; + audioFilter(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; + audioFilters(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; // options/video; withNoVideo(): FfmpegCommand; @@ -156,10 +156,10 @@ declare namespace Ffmpeg { videoCodec(codec: string): FfmpegCommand; withVideoBitrate(bitrate: string | number): FfmpegCommand; videoBitrate(bitrate: string | number): FfmpegCommand; - withVideoFilter(filters: { filter: string, options: any }): FfmpegCommand; - withVideoFilters(filters: { filter: string, options: any }): FfmpegCommand; - videoFilter(filters: { filter: string, options: any }): FfmpegCommand; - videoFilters(filters: { filter: string, options: any }): FfmpegCommand; + withVideoFilter(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; + withVideoFilters(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; + videoFilter(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; + videoFilters(filters: { filter: string, options: any } | String | String[]): FfmpegCommand; withOutputFps(fps: number): FfmpegCommand; withOutputFPS(fps: number): FfmpegCommand; withFpsOutput(fps: number): FfmpegCommand;