Does anybody know how to encode text within an AVI file so that WMP, not a filter, displays it as subtitles?
I can already create AVI files containing video and audio with and without using DirectShow. Now I need to insert text into the AVI file--not as a separate file--so that Windows Media Player displays it as a subtitle, which the user can switch on and off
from within WMP with Play | Lyrics, Captions and Subtitles | On if Available. Oh, and I cannot depend on the user having a third-party filter, such as vobsud.dll, so WPM has to do it on its own.
I found a small AVI file online that uses a subtitle chunk (01tx....GAB2...) described
here. WMP plays the video and, with subtitles enabled but no subtitle filter installed, displays the "GAB2" part of the chunk data header, not the subtitle text itself. It displays "GAB2"
as white text in a separate black band below the video, so there is some native subtitle ability kicking in here.