Combining audio and video on-the-fly
Imagine we have a BD disc with some hundreds of video clips and some thousands of audio clips (stored as M2TS streams, not as sound.bdmv, compression is essential).
How do we combine and play back arbitrary (random) video with arbitrary audio?
Yet I've came to the following algorithm:
1) dynamically generate a playlist (.mpls) file that points to the chosen video and refers to an out-of-mux audio stream of our choice;
2) store it (.mpls) to VFS;
3) restart title to make this new playlist available;
4) play it.
Is it portable enough? do all the modern devices provide VFS? does BluRay support out-of-mux audio stored on disc, or do we have to copy audio to VFS, too?