Nevcairiel / LAVFilters

LAV Filters - Open-Source DirectShow Media Splitter and Decoders
GNU General Public License v2.0
7.36k stars 789 forks source link

Connecting to video decoder subpicture pin #418

Open nzsjb opened 3 years ago

nzsjb commented 3 years ago

I'm developing a DVD Navigator type filter for playing DVD's and I'm having difficulty connecting to the LAV video decoder subpicture pin. All 3 pins in my filter (video/audio/subpicture) appear to have the same media parameters as DVD Navigator uses for it's pins and I can successfully connect that to the LAV video and audio filters.

I'm using DVD_Encrypted_Pack as the major type and DVD_Subpicture as the subtype. I've successfully connected and used both the video and audio pins to play DVD material using my filter.

A couple of questions.

  1. When my filters subpicture pin DecideBufferSize method is called the pin appears connected. Are there any specific requirements for buffer size. Does it need to be a multiple of the DVD pack size (2048) or have a specific number of buffers?

  2. Does the video pin need to have a major type of DVD_Encrypted_Pack for the subpicture pin to connect?

Any help would be appreciated.