You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
doc/writing_filters: use a more portable sed command in the walk-through
This commit is contained in:
@@ -16,9 +16,7 @@ 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
|
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.
|
for others using the `./ffmpeg -v 0 -filters|grep ' V->V '` command.
|
||||||
|
|
||||||
- cp libavfilter/vf_{edgedetect,foobar}.c
|
- sed 's/edgedetect/foobar/g;s/EdgeDetect/Foobar/g' libavfilter/vf_edgedetect.c > libavfilter/vf_foobar.c
|
||||||
- sed -i s/edgedetect/foobar/g -i libavfilter/vf_foobar.c
|
|
||||||
- sed -i s/EdgeDetect/Foobar/g -i libavfilter/vf_foobar.c
|
|
||||||
- edit libavfilter/Makefile, and add an entry for "foobar" following the
|
- edit libavfilter/Makefile, and add an entry for "foobar" following the
|
||||||
pattern of the other filters.
|
pattern of the other filters.
|
||||||
- edit libavfilter/allfilters.c, and add an entry for "foobar" following the
|
- edit libavfilter/allfilters.c, and add an entry for "foobar" following the
|
||||||
|
Reference in New Issue
Block a user