-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hello, dear author!
Can you please add support for following features to VideoPlayback example, so it can be considered full-featured:
a) Add support to display subtitles.
b) Add support to load subtitle from external file (srt is enough, but support for .ass would be really nice)
c) Add support to load audio from external file.
d) Add support to set/switch audio and subtitle streams before video is shown to user.
Benefits: modern games allows user to set audio/subtitle language from Game Settings menu.
Thus, implementing features above will allow a developer to let user choice what language they want to hear/read when watching in-game movies, while having just one video source (lets say, gameintro.mkv), and multiple audio/subtitles sources (gameintro_en.ogg, gameintro_en.srt, gameintro_cn.ogg, gameintro_cn.srt), thus it also will make life much easier for potential translators to different languages of the game - they will not be forced to re-render video file everytime when they for example make any correction to subtitle file for specific language.
P.S. .ass subtitle support can be harder to implement, so, for beginning, much more easier alternative can be used instead - implement just .srt parsing support, which do not require any special library to render like in case with .ass (libass), because .srt format is pretty simple - timecode and text with tags (b, i, u) to highlight specific phrases.