[FFmpeg-devel] [PATCH 2/2] avdevice/lavfi: use wrapped_avframe

Muhammad Faiz mfcc64 at gmail.com
Tue Nov 10 10:55:06 CET 2015


On Mon, Nov 9, 2015 at 11:05 PM, Muhammad Faiz <mfcc64 at gmail.com> wrote:
> fix ticket #4985
> avoid memory copying from AVFrame to rawvideo
>
> benchmark:
> time ffmpeg -f lavfi -i "amovie=audio.mp3, showcqt" -f null -y /dev/null
> old:
>     real    1m3.766s
>     user    1m3.371s
>     sys     0m0.184s
> new:
>     real    0m47.893s
>     user    0m47.399s
>     sys     0m0.054s
>
> but higher memory usage on ffplay playback because of
> packet queueing (it depends on packet size to calculate
> memory usage, but wrappped_avframe packet size does not
> represent actual allocated memory)
> old: about ~40MB
> new: about ~180MB
>
> showspectrum filter does not work correctly because it does not
> follow frame writability convention (use copy filter for workaround)
>
> patch attached
> thanks

Patch dropped.

Thank's.


More information about the ffmpeg-devel mailing list