Hello. I'm trying to play a video file using DirectShow .NET and C#. How can I
add subtitles supported? Its from the codec? From DirectShow? I google it but
I couldn't find a solution?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You'll have to load the file yourself and write a lot of code for displaying
them.
The subtitles should be mixed with each frame.
Use the Sample Grabber and get the frame number/the sample times in BufferCB
(buffer callback).
Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm guessing those files are not following any commonly recognized standard.
Given that, pbj1234 has it right. You might look at the DxText sample for some
ideas.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello. I'm trying to play a video file using DirectShow .NET and C#. How can I
add subtitles supported? Its from the codec? From DirectShow? I google it but
I couldn't find a solution?
Are the subtitles in the video file? Or are you creating them
programmatically?
they are in the same folder with the video in a .srt or .sub file
You'll have to load the file yourself and write a lot of code for displaying
them.
The subtitles should be mixed with each frame.
Use the Sample Grabber and get the frame number/the sample times in BufferCB
(buffer callback).
Peter
I'm guessing those files are not following any commonly recognized standard.
Given that, pbj1234 has it right. You might look at the DxText sample for some
ideas.