Let’s assume we don’t want to make memory constrained devices keep large video files buffered in memory and constantly re-download them over the network?
For the non-private media, just write it to storage straight away.
You can't check chapter markers or frame counts because they are encrypted.You can't usually partially decrypt a file either.
Every time you want to read some data off flash, you read it then immediately decrypt it. Any time you want to write data to flash, you decrypt it first. Checking chapter markers or frame counts will be the same as before as long as you decrypt those bytes immediately after reading them from flash.