Hi Ale. If you work on that function please include that the Player runs the Playlistfiles. *.mpls the mt2s file is often cut by the 4 gb border so the film has 00000.mt2s, 00001.mt2s and so on. In bluray Structure its standard. in the Playlist file ( found in subdiretory Playlist) the 00000.mpls has all information for the Player (POT, VLC) to play the correct sequence of mt2s files.
Please take also a lock to the AVCHD File structure who is similar to the Blurayfolder Stuture but almost smaler. Greeting Sceneta