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


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
OBJS-$(CONFIG_ZZZZ_FILTER) += vf_zzzz.o

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

Code: Select all
REGISTER_FILTER (ZZZZ, zzzz, vf);

Run
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.
jlucio
 
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.
llogan
 
Posts: 2307
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