Hello, The following patchset add an audio frame pool for each link of the filtergraph. It extends the FFVideoFramePool API to support audio (and renames it to FFFramePool).
The performance gain on a rpi2 is very little. malloc+free goes from 2.50% to 1.84% cpu time with the following command line: perf record ./ffmpeg_g -f lavfi -i sine=440,asetnsamples=4096,aformat=sample_fmts=s16,aresample=48000 -t 500 -f null - For reference, most of the time (81%) is spend in request_frame and in the resample function. Given the performance gain, i'm not sure if it's really useful. However it could be a good idea to have this API to use it in both libavcodec (and replace what is being done in lavc/utils.c) and libavfilter for audio and video if made public or semi-public later on. Best regards, Matthieu _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel