[FFmpeg-devel] Filters and addition/removal on the fly

JULIAN GARDNER joolzg at btinternet.com
Fri Aug 30 03:01:24 CEST 2013


I am trying to write a new filter that will when getting stimulus from an external source add/remove other filters from the filterchain on the fly?

So my question is, are there any examples which would do this

As an example

ffmpeg -i src1 -i src2 -filter_complex '[0:v][1:v] overlay' -v:b 1300k overlay_test.ts


but with external stimulus to become

ffmpeg -i src1 -i src2 -filter_complex '[0:v][1:v] overlay,edgedetect' -v:b 1300k overlay_test.ts


and then back again when needed to

ffmpeg -i src1 -i src2 -filter_complex '[0:v][1:v] overlay' -v:b 1300k overlay_test.ts


This will be a live source and the stimulus will be coming in over a tcp link

joolz


More information about the ffmpeg-devel mailing list