I'm using Java JMF to read videos and get frames from them. As far as I know, a Player loads the whole media in memory, which cannot be very convenient for large files.
Is there any way to limit the resource loading, or the memory consumption? I understand the process would require more disk reading, but I think it is a fair trade.
One basic approach would be to limit the heap size of the JVM for this application when you run the Java application.
You can use the -Xmx Flag with the 'java' command to do this:
For example: