[Libav-user] Memory growing while muxing at 1920x1080 @ 60 fps on iPad M1

Nuno Santos nuno.santos at imaginando.pt
Mon Dec 13 13:59:28 EET 2021


I’m having a problem which is not consistent in all platforms. 

It doesn’t happen on Mac OS but happens on iPad, but even on iPad, it doesn’t happen on slower iPads but happens on a iPad with a M1 processor.

While muxing at 1920x1080 @ 60 fps on iPad M1, the memory keeps growing until the point it crashes the program. 

If I stop the muxing before the crash happens, the memory usage starts to decline and it goes back to initial values. However, if I mux at 30 fps, that doesn’t happen. 

My conclusion is that for some reason, the pace at it is writing the file is different for some reason, or maybe it is simply keeping the file in memory before writing to file. The exact reason is out of my scope of knowledge.

I was wondering if anyone has been here before and how can we workaround this issue.


Best regards,


More information about the Libav-user mailing list