Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: A follow message for the MP2 Transport UDP issue
Started by zwen at 11-20-2007 9:30. Topic has 4 replies.

Print Search « Previous Thread Next Thread »
  11-20-2007, 9:30
zwen is not online. Last active: 11/21/2007 7:16:35 PM zwen

Top 500 Posts
Joined on 11-20-2007
Posts 7
How to load udp source (iP:127.0.0.1, port: 1234) in the UDP source filter in Directshow
Reply Quote
Hi,

I have successfully add the MPEG2 UDP source filter in the directshow graph by CoCreateInstance. However, I couldn't find any function to load a stream from a UDP source.
(only few functions exposed such as setsynsource, findpin, enumpin...etc, but no source loading function).

I am developing in Visual Studio 2005, unmanaged C++ with Directshow.

My intention is to add udp source, transport demultiplexer, h264 decoder, vmr renderer in the graph then call the directshow RenderFile().

Thanks in advanced.

Jeff
   Report 
  11-20-2007, 12:08
zwen is not online. Last active: 11/21/2007 7:16:35 PM zwen

Top 500 Posts
Joined on 11-20-2007
Posts 7
A follow message for the MP2 Transport UDP issue
Reply Quote
I think the question, more precisely, is how a MP2 Transport UDP can be invoked in DirectShow. I have tried the following:

DEFINE_GUID(CLSID_LEADMPEG2TransportUDPSource,
0xE2B7DF17,0x38C5,0x11D5,0x91,0xF6,0x00,0x10,0x4B,0xDB,0x8F,0xF9);



CComPtr pUDPSource;
hr = pUDPSource.CoCreateInstance(CLSID_LEADMPEG2TransportUDPSource);
hr = pGB->AddFilter(pUDPSource, L"UDP filter");


Anything wrong or missing? Just the Load function is not shown in the above interface.?

regards
Jeff


   Report 
  11-21-2007, 7:01
Maen Hasan is not online. Last active: 8/14/2008 8:56:49 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,715
Re: A follow message for the MP2 Transport UDP issue
Reply Quote
Hello,

The LEAD MPEG2 Transport UDP Source filter exposes the standard IFileSourceFilter interface. Use the IFileSourceFilter::Load method to let the LEAD MPEG2 Transport Source filter know where to read the data from.
For more information, see the topic "IFileSourceFilter Interface" in our LEADTOOLS Multimedia Filters help file.

Thanks,
Maen Badwan
LEADTOOLS Technical Support

   Report 
  11-21-2007, 14:24
zwen is not online. Last active: 11/21/2007 7:16:35 PM zwen

Top 500 Posts
Joined on 11-20-2007
Posts 7
Re: A follow message for the MP2 Transport UDP issue
Reply Quote
Hi,

Thanks for your reply. I know the Lead UDP source filter should be exposed to the DirectShow IFileSourceFilter(). But when I invoke the UDP filter via the CoCreateInstance method, the Load function is missing from the interface.

I don't know if the invoke process ( use CoCreateInstance, and the UDP source filter CLSID) is correct or not?

The Lead H264 decoder and the demultiplxer filters work perfectly in our project and just this UDP source filter seems not working. ( I am trying to quickly develop a working demo for the company to convince them the working of lead filters)

Many thanks in advanced.

Jeff
Imagination Technologies, UK
   Report 
  11-22-2007, 8:20
Adnan Ismail is not online. Last active: 9/4/2008 2:25:00 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,150
Re: A follow message for the MP2 Transport UDP issue
Reply Quote

Jeff,
Did you try to query the COM object to obtain the IFileSourceFilter inteface? CoCreateInstance alone will not return the correct interface pointer. You should also use QueryInterface after you create the object.


Adnan Ismail
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Multimedia Filt... » Re: A follow message for the MP2 Transport UDP issue

Powered by Community Server, by Telligent Systems