[FFmpeg-user] Memory usage growing when using ffmpeg. Is this expected?

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Apr 30 15:37:19 EEST 2017

2017-04-29 11:25 GMT+02:00 Cley Faye <cleyfaye at gmail.com>:
> 2017-04-28 16:52 GMT+02:00 Guilherme de Oliveira Costa
> <guilherme.oliveira at autotrac.com.br>:
>> I am using ffmpeg record a video from a webcam, but the memory
>> usage is very high, and keeps increasing with video length.

You can use massif to check where memory is allocated, and
complete, uncut console output missing.

>> For example, I use an embedded device with 64 MB of RAM, and
>> when I recorded a 30 minute video, I was left with 2MB of RAM in
>> the last minutes of the recording.
> I'm wondering, how do you check how much "free" memory you
> have while ffmpeg is running? Since it didn't OOM or die, it might
> just have been cache from the OS, which will gracefully yield if
> another program request it.

Sounds likely.

Carl Eugen

More information about the ffmpeg-user mailing list