03-23-2025, 08:58 AM
Yes, you're right about the DIM commands, that's from development. It was a problem to get it working, because once it worked without sound, then again without video... I assume that the problem you describe is caused by running out of free RAM. Saving to AVI must be continuous, so that the contents of RAM are written to disk in a flash. Practically compressing video on the fly via QB64PE seems unthinkable to me, because just do the math, if you wanted to compress frames on the fly, it must be done in less than 1/30 of a second. So uncompressed AVI, when you really need to capture everything in real time, is the right solution (because after saving to a file, you no longer have a limited time for compression and can deal with it for longer). But my program doesn't do that at the beginning. It generates a few frames in memory and then saves them with the generated sound. So - I haven't looked at your version yet - but - this is probably the problem. So what does that mean? Good, but we will work on a version that will solve it on the fly. This will also test the elimination of the problem you are writing about. Now to verify my theory, launch the task manager and then your version of the program. I assume that the program will crash at some point when you run out of free memory.
Thank you all for the feedback, I mainly focused on the principle of saving so that it works and I somehow didn't think about this obvious thing...
I will work on it.
Thank you all for the feedback, I mainly focused on the principle of saving so that it works and I somehow didn't think about this obvious thing...
I will work on it.

