Search code examples
c#file-format

Parsing idx and sub formats of video subtitle files?


I wrote an application in c# that can read srd files well, but now I need to add support for idx and sub files too. How can I parse these formats?

I parse the srt files as thisCode Project: Subtitle Synchronization with C# article describes. I don't know regular expressions and now want to parse the idx and sub files.


Solution

    1. Google for 'idx format specification'
    2. Find http://www.filesuffix.com/extension/idx.html
    3. Page links to http://en.wikipedia.org/wiki/VSFilter
    4. Wiki article links to http://sourceforge.net/projects/guliverkli2/files/DirectShow%20Filters/DirectVobSub%202.39/ where you can download sourcecode. In the source code you'll most likely find information about reading the idx/sub files.