[FFmpeg-trac] #10797(avfilter:new): showspectrumpic is unreasonably RAM hungry
FFmpeg
trac at avcodec.org
Sat Jan 13 23:24:20 EET 2024
#10797: showspectrumpic is unreasonably RAM hungry
----------------------------------+---------------------------------------
Reporter: ed | Type: enhancement
Status: new | Priority: normal
Component: avfilter | Version: git-master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+---------------------------------------
Summary of the bug:
when creating a spectrogram of a large audio file, FFmpeg can easily
consume 3+ GiB of RAM.
My current workaround is to replace FFmpeg with sox for this purpose,
since that only needs 6 MiB for the same task -- but I prefer the output
that FFmpeg produces, so looking forward to switching back.
How to reproduce:
{{{
# first produce an audio file with a long duration:
ffmpeg -f lavfi -i sine=f=140:d=12345 big.flac
# then create a spectrogram; this takes ~2.5G to process:
ffmpeg -i big.flac -filter_complex showspectrumpic=s=640x512 -frames:v 1
spec.png
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10797>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list