Log in

View Full Version : @gabest: Tech Q about dvobsub.ax


Psyche
30th April 2002, 22:04
First of all I must say that my experience with DirectShow programming is about zero. But anyway...
I've been trying to disable IAMStreamSelect interface in dvobsub.ax without luck for the last 3 or 4 hours. I've tried mainly to disable heritance (is that word correct?) from IAMStreamSelect class and #if 0'ed Enable, Count and Info methods declarations and definitions. Besides, where you use some of these methods in the rest of the code I've tried to give some sensible values to the surrounding code and commented the calls.
The problem is that when mplayer starts it crashes with an access violation.

What I want this all mess for is that when you use Ogg splitter (which implements IAMStreamSelect) and DVobSub together, DVobSub takes precedence over Ogg splitter so this one is unable to present streams in the audio menu in mplayer. And, because I think this is a little more useful than DVobSub (Ogg splitter allows use of chaptering and multiple audio streams selectable) I wanted to disable all StreamSelect by DVobSub (I tried to return E_NOTIMPL but it didn't do anything).

Thanks for reading such long posting and grateful. Pls, see if you can help me.

gabest
1st May 2002, 05:40
You only have to disable one line at NondelegatingQueryInterface. Btw, dvobsub doesn't take precedence in media player, just being lucky if the video stream gets rendered first :) If the player would list all filters, not only the first it finds, then it shouldn't be a problem, so blame microsoft :p

Psyche
1st May 2002, 16:45
pheeewwww!
It works! It works!
OK, thanks for your help. Don't you think it would be a good idea to have this as an option in the preferences page of dvobsub, so anyone using ogm can benefit from its possibilities in audio, video and subtitle changing and the wonderful renderer capabilities of dvobsub?
I've tried it a bit and it works like charm, even changing subtitles on the fly works correctly.

Schultz
2nd May 2002, 00:03
I know this is a little OT.. But With DVobSub if you use it's Green Arrow in the Tray Area you can select OGM's Languages and Subtitles since DVobSub actually Asks the filters along the graph. And i think i remember Someone suggestion this feature in the OGM filters that they put an Icon down there also..