I would suggest checking out the MP source code (not tvserver) and taking a look at the code. You will find the DVBSub filter code in Filters\DVBSubtitle. Other relevant code is the C# code that handles playback and filter setup, such as \Core\Player\BaseTStreamBufferPlayer and TStreamBufferPlayer9.