I'm generating video from still images, and to keep the quality I use -q:v 0 for every intermediate processing steps. But the problem is that the intermediate files are very large (around 1G), and it sometimes has the buffer overflow problem. What are my alternative options?