X-Git-Url: https://git.piment-noir.org/?p=deb_ffmpeg.git;a=blobdiff_plain;f=ffmpeg%2Fdoc%2Fwriting_filters.txt;h=eb16d424806a8ef21dc5bfb67cfd6c51ee8fa52d;hp=c7923e884f02dcee12d0e06821a5e6e5acf61193;hb=f6fa7814ccfe3e76514b36cf04f5cd3cb657c8cf;hpb=2ba45a602cbfa7b771effba9b11bb4245c21bc00 diff --git a/ffmpeg/doc/writing_filters.txt b/ffmpeg/doc/writing_filters.txt index c7923e8..eb16d42 100644 --- a/ffmpeg/doc/writing_filters.txt +++ b/ffmpeg/doc/writing_filters.txt @@ -16,16 +16,15 @@ outputs the modified frame. The most simple way of doing this is to take a similar filter. We'll pick edgedetect, but any other should do. You can look for others using the `./ffmpeg -v 0 -filters|grep ' V->V '` command. - - cp libavfilter/vf_{edgedetect,foobar}.c - - sed -i s/edgedetect/foobar/g -i libavfilter/vf_foobar.c - - sed -i s/EdgeDetect/Foobar/g -i libavfilter/vf_foobar.c + - sed 's/edgedetect/foobar/g;s/EdgeDetect/Foobar/g' libavfilter/vf_edgedetect.c > libavfilter/vf_foobar.c - edit libavfilter/Makefile, and add an entry for "foobar" following the pattern of the other filters. - edit libavfilter/allfilters.c, and add an entry for "foobar" following the pattern of the other filters. - ./configure ... - make -j ffmpeg - - ./ffmpeg -i tests/lena.pnm -vf foobar foobar.png + - ./ffmpeg -i http://samples.ffmpeg.org/image-samples/lena.pnm -vf foobar foobar.png + Note here: you can obviously use a random local image instead of a remote URL. If everything went right, you should get a foobar.png with Lena edge-detected.