[FFmpeg-devel] Is a avfilter applied before encoding/decoding or after that?

Mark Himsley mark at mdsh.com
Fri Nov 18 11:40:40 CET 2011


On 18/11/2011 07:07, Harry Ma wrote:
> Hi, All,
> 
> I wonder when a avfilter is applied? is it applied before encoding/decoding
> or after that?
> could anyone give me a brief introduction how ffmpeg process a video: what
> happens to the pipe line from src input to the output sink?
> 
> thanks very much.

avfilter is applied after decode and before encode, therefore avfilter
is applied to raw uncompressed [1] frames.

roughly (and simply), the process is:

acquire -> demux -> decode -> filter -> encode -> mux -> disperse


[1] if you consider yuv422, 420, 411 etc uncompressed

-- 
Mark


More information about the ffmpeg-devel mailing list