[FFmpeg-devel] Recompiling ffmpeg with custom filter

Michael Niedermayer michaelni at gmx.at
Wed Aug 22 00:36:11 CEST 2012


On Wed, Aug 22, 2012 at 01:28:54AM +0530, Murthy avsn wrote:
> 
> Hi all,
> I am writing a  new filter for hue,brightness,contrast,Grayscale.
> I am following the below approach to add my filter to ffmpeg.
> Update libavfilters/Makefile with the following: OBJS-$(CONFIG_FADE_FILTER) += vf_fade.o
> And finally update libavfilters/allfilters.c with the following: REGISTER_FILTER (FADE, fade, vf);
> Afterwards you should be able to apply fades, such as the following: ffmpeg -i input.avi -vf "fade=in:0:30" output.avi
> Question: Can we add a custom filter with out recompiling entire ffmpeg source.For testing it is getting touch to recompile entire code.
> Please help me in this aspect.
> Thank you in advance.

you can certainly add a custom filter without recompiling

see avfilter_register()

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120822/2d7bffd2/attachment.asc>


More information about the ffmpeg-devel mailing list