Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE

This forum has not been maintained for a long time and will probably get deleted in the near future.
For faster responses to your questions, please use StackOverflow instead and tag your questions with "FFmpeg".
If you need a backup of the posts from this forum, please contact me directly.

How to compile FFmpeg with a custom video filter

A collection of useful tutorials for some common tasks.

How to compile FFmpeg with a custom video filter

Postby jlucio » Fri May 02, 2014 9:23 pm

I am following the below approach to add my filter to ffmpeg (zzzz is the name of your filter).

Place the vf_zzzz.c file at libavfilters/
Update libavfilters/Makefile with the following:

Code: Select all

And finally update libavfilters/allfilters.c with the following:

Code: Select all

Code: Select all
./configure && make

Note: While testing your code you don't need to run ./configure again.

Tip: to speed up recompiling during code testing, compile just ffmpeg using the command:

Code: Select all
make ffmpeg

Now you should be able to test your fiter running this command:

Code: Select all
./ffmpeg -i input -vf zzzz output

Note: Be sure to use ./ffmpeg instead of ffmpeg or you'll be using the ffmpeg installed on your system.
Last edited by jlucio on Tue May 20, 2014 12:51 am, edited 1 time in total.
Posts: 2
Joined: Fri May 02, 2014 4:07 pm

Re: How to compile FFmpeg with a custom video filter

Postby llogan » Sat May 03, 2014 3:56 pm

Consider submitting your filter to the ffmpeg-devel mailing list.
Posts: 2363
Joined: Fri Jan 25, 2013 9:47 pm
Location: Alaska

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest