reticivis-net / mediaforge

A Discord bot for editing and creating videos, images, GIFs, and more!
GNU General Public License v3.0
82 stars 28 forks source link

Custom Commands: -filter_complex_script #194

Open g-l-i-t-c-h-o-r-s-e opened 1 year ago

g-l-i-t-c-h-o-r-s-e commented 1 year ago

Describe the feature you'd like

There is an FFMpeg command called -filter_complex_script that allows you to make and use custom filterchains read from a file. This would allow users to have the option to really make filters and memes to the their specific needs, and give a mobile solution for FFMpeg and video editing as well.

in practice, the command would be something like:
ffmpeg -i input1.mp4 -i input2.mp4 -filter_complex_script FilterFile.txt -map "[final]" -map 0 -crf 20 -shortest output.mp4 -y

the file FilterFile.txt would contain something like:

[0]scale=640x360[v1];[1]scale=640x360[v2];[v1]invert[v1];[v2]hflip[v2;][v1][v2]hstack[final]

Is your feature request related to a problem? Please describe.

No response

Describe alternatives you've considered

No response

Anything Else

No response