I've recently set up my Raspberry Pi as a media server and NAS. I have it connected directly to my router via ethernet and I have two external HDDs connected via USB. I'm using Transmission to download torrents, MiniDLNA for media streaming and Samba to access the files on my Windows PCs. It's going fine apart from one problem, the BluRay player I'm using as a client (Sony BDP S370) will not play back AVC files smoothly if they are in an MKV container. However, if they're in an M2TS container, the playback is flawless.
I have thought of two possible solutions to this problem:
1) When an MKV file is downloaded to a specific folder on my USB hard drive (e.g. from a torrent), a script is run that automatically remuxes it to M2TS, then deletes the original file. I know that Transmission can automatically run scripts once torrents downloads are complete. Or,
2) I somehow get MiniDLNA to report MKV files as M2TS to the BluRay player.
I'm not to sure how to implement either of them, although the first idea seems more reasonable than the second.