A question because I am ignorant about low-level software.

Are there any self-decoding complex file formats?

I remember when you had to download hundreds of different codec packs in order to watch movies.

Given the size of a movie or audio file, would it be possible to bundle it with a cross-platform (Java?) decoder?

@Edent does zpaq count? "To preserve forward and backward compatibility between versions as the compression algorithm is improved, it stores the decompression algorithm in the archive." https://en.wikipedia.org/wiki/ZPAQ
ZPAQ - Wikipedia

@IanS perfect! Thanks 😄