This post is roughly 15 years old; originally published on April 23, 2009! The information presented here may be out of date and inaccurate.
The PlayStation 3 can’t play MKV files. Therefore I’ve written a script that creates a PlayStation 3 compatible M2TS from a MKV, assuming video is H.264 and audio is AC3 or DTS with as little re-encoding as possible. Any subtitles in the MKV are preserved in the M2TS although the PlayStation 3 can’t display subtitles in M2TS containers. Optionally splits the M2TS, if it is greater than 4GB, to maintain FAT32 compatibility. Unlike other MKV to M2TS solutions, this script doesn’t create any intermediate files during the conversion.
The PlayStation 3 can’t play DTS audio streams in M2TS containers, therefore DTS audio is transcoded to AC3.
This script works on Ubuntu, should work on any other Linux/Unix flavour and possibly Mac OS X providing you have the required tools installed.