-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add libavfilter command and improved control over FFmpeg's resource u…
…sage
- Loading branch information
Showing
5 changed files
with
95 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import MediaCommand from "../../classes/mediaCommand.js"; | ||
|
||
class LavfilterCommand extends MediaCommand { | ||
ffmpegParams(url) { | ||
const newArgs = this.options.text ?? this.args.filter(item => !item.includes(url)).join(" "); | ||
return { | ||
filterGraph: newArgs | ||
}; | ||
} | ||
|
||
static description = "Processes a video using a libavfilter filtergraph. See <https://ffmpeg.org/ffmpeg-filters.html>."; | ||
static aliases = ["lavfi"]; | ||
static arguments = ["[filtergraph description]"]; | ||
|
||
static requiresText = true; | ||
static noText = "You need to provide a filtergraph description!"; | ||
static noImage = "You need to provide an image/GIF to generate a meme!"; | ||
static command = "libavfilter"; | ||
|
||
static acceptsVideo = true; | ||
} | ||
|
||
export default LavfilterCommand; |
Submodule ffmpeg
updated
28 files
+22 −0 | configure | |
+0 −11 | doc/filters.texi | |
+5 −0 | fftools/cmdutils.h | |
+0 −129 | fftools/ffmpeg_filter.c | |
+15 −0 | fftools/ffmpeg_opt.c | |
+1 −0 | libavfilter/Makefile | |
+0 −1 | libavfilter/af_firequalizer.c | |
+0 −1 | libavfilter/asrc_flite.c | |
+0 −2 | libavfilter/avf_showcqt.c | |
+0 −1 | libavfilter/f_metadata.c | |
+0 −2 | libavfilter/f_sendcmd.c | |
+21 −0 | libavfilter/safepath.c | |
+16 −0 | libavfilter/safepath.h | |
+6 −0 | libavfilter/src_movie.c | |
+0 −2 | libavfilter/vf_curves.c | |
+0 −1 | libavfilter/vf_deshake.c | |
+6 −1 | libavfilter/vf_drawtext.c | |
+3 −0 | libavfilter/vf_frei0r.c | |
+1 −5 | libavfilter/vf_libopencv.c | |
+0 −1 | libavfilter/vf_libplacebo.c | |
+0 −1 | libavfilter/vf_libvmaf.c | |
+0 −2 | libavfilter/vf_lut3d.c | |
+0 −1 | libavfilter/vf_psnr.c | |
+0 −1 | libavfilter/vf_selectivecolor.c | |
+2 −2 | libavfilter/vf_signature.c | |
+1 −2 | libavfilter/vf_xfade_opencl.c | |
+0 −2 | libavfilter/vsrc_cellauto.c | |
+0 −2 | libavfilter/vsrc_life.c |