Kaiousama
21st July 2003, 22:50
I'm coding a VB subtitling application, i've created a picturebox where the videoclip is rendered by DirectShow
All goes well and i'm able to visualize the videoclip, now i have to implement DirectVobSub on it, i've added the DirectVobSub to my FilterGraph with this VB code:
Set m_objMediaControl = New FilgraphManager
' find DirectVobSub filter and add it to the graph
filtername$ = "DirectVobSub"
For Each Filter In m_objMediaControl.RegFilterCollection
'Check if it is the selected filter
If Filter.Name = filtername$ Then
MsgBox "Founded DirectVobSub!"
'Ok, add to the filter graph, return IFilterInfo foundFilter
Filter.Filter foundFilter
Exit For
End If
Next Filter
Call m_objMediaControl.RenderFile(FileName)
I've encountered a problem in rendering this new filtergraph:
The filtergraph is rendered, the videoclip is visualized and DirectVobSub is started (the tray icon is visualized and i can manually interact with it), but i don't know how to feed DirectVobSub with my subtitle file (the one i want to display on the video). How can i do it?
When i've rendered the new filtergraph, if i open DirectVobSub property page and manually select "open" and my subFileName, this is correctly displayed, the problem is that i don't know how can i automate the SubFileName loading process from my application.
I've tryied in many ways but i can't solve this problem by myself, i've also tried to find the respective method on vsfilter.dll sources in order to manually link my program to that dll but it seems the dll doesn't expose those properties in .def file, please help me.
Best Regards.
All goes well and i'm able to visualize the videoclip, now i have to implement DirectVobSub on it, i've added the DirectVobSub to my FilterGraph with this VB code:
Set m_objMediaControl = New FilgraphManager
' find DirectVobSub filter and add it to the graph
filtername$ = "DirectVobSub"
For Each Filter In m_objMediaControl.RegFilterCollection
'Check if it is the selected filter
If Filter.Name = filtername$ Then
MsgBox "Founded DirectVobSub!"
'Ok, add to the filter graph, return IFilterInfo foundFilter
Filter.Filter foundFilter
Exit For
End If
Next Filter
Call m_objMediaControl.RenderFile(FileName)
I've encountered a problem in rendering this new filtergraph:
The filtergraph is rendered, the videoclip is visualized and DirectVobSub is started (the tray icon is visualized and i can manually interact with it), but i don't know how to feed DirectVobSub with my subtitle file (the one i want to display on the video). How can i do it?
When i've rendered the new filtergraph, if i open DirectVobSub property page and manually select "open" and my subFileName, this is correctly displayed, the problem is that i don't know how can i automate the SubFileName loading process from my application.
I've tryied in many ways but i can't solve this problem by myself, i've also tried to find the respective method on vsfilter.dll sources in order to manually link my program to that dll but it seems the dll doesn't expose those properties in .def file, please help me.
Best Regards.