|
|
|
|
|
by ArtWomb
2364 days ago
|
|
Thanks for the replies the8472 and BubRoss! I just mean I'd like to "cap" ffmpeg's memory usage to ensure it never crashes. I'll provide a simple example. Creating an image slideshow from a directory of huge images. I can downscale and compress to jpeg before processing. But even then, besides batching, it always fails. And this is just raw, without any filters or image processing. Have tried all the i/o techniques from the wiki: https://trac.ffmpeg.org/wiki/Slideshow All this local laptop based (4GB). I just want to get a better handle before devoting cloud resources (ffmpeg is standard on gcloud serverless) ;) |
|
I regularly use a laptop with 4GB RAM to generate videos using the sequential method listed there, with 4-8k sized frames, producing video files of hundreds of GB, without a crash. There can be hundreds of thousands of them as well.
No batching required.
The final command in my pipeline is a simple:
But, if you really need to limit ffmpeg's memory consumption, you probably need to look at -max_alloc and -bits_per_raw_sample. It'll be highly specific to your own hardware.