Wilson Melo

Hello

I have an application thats process video from analog cams (I use a BT card), and it works well. Now, I need to modify the application doing it works with a specific IP cam model. I already have written a code to get the stream video of IP cam (it is on MPEG-4 format). I want to use the same structure to show this stream as it was the output of capture filter. But I couldn't find a filter to connect it at my graph builder filter. Can you help me with this issue About the MPEG-4 stream, if I write it to a file it creates a MPEG-4 file thats I can play with media player. I want to write it to graph builder, now.

Thanks a lot any help.




Re: DirectShow Development DirectShow + MPEG-4 IP stream

Geraint Davies

If you save the data as a file, can you play this file in GraphEdt If so, look at the media type of the input pin on the decoder -- this is the media type you need to expose on your source output pin. If you can't play it in graphedt, only in WMP, then perhaps you do not have a directshow mpeg-4 decoder avaiable

G





Re: DirectShow Development DirectShow + MPEG-4 IP stream

Wilson Melo

Hi, G

I have installed a codec thats enable two DirectShow MPEG filters: the first reads a MPEG4 file and the second decoder the first output to RGB format. I have tested they on GraphEdit. It's working with files, but I need to renderize live video. Then, I need change my source filter (or to use another source filter) thats works with the network stream. Remember that I created the MPEG test file writing the stream to disk.

Have you some idea

Thanks a lot your help






Re: DirectShow Development DirectShow + MPEG-4 IP stream

Geraint Davies

So you saved the stream to disk, and then to play it back you needed to demux and then decode. Then to make your network source work, you will need to add some demuxing before connecting to the decoder. You will not be able to use the same demux filter as the file case, since this will be pull-mode and you have a push-mode source. So you will need to work out the format and develop a demux filter to match.

G





Re: DirectShow Development DirectShow + MPEG-4 IP stream

Wilson Melo

G

How can I do it Do you know some tutorial on internet

Thanks your help again.






Re: DirectShow Development DirectShow + MPEG-4 IP stream

Geraint Davies

What is the format that the stream is in In grapedt, right-click on the input pin to the demux/parser filter and see what the media type is.



Re: DirectShow Development DirectShow + MPEG-4 IP stream

Wilson Melo

G

I have a file source filter thats read the file. This filter is supplied by developer of IP cam. It gives me an RGB video on your output pin. Then, I render it. I think I could try overwrite this filter writing a function to read data for IP stream. But I don't know if it works.






Re: DirectShow Development DirectShow + MPEG-4 IP stream

Geraint Davies

I thought you said you had two filters: one to read the file, and one to decode it to RGB. You want to replace the first one (that reads the file) with a filter that takes the data from the network and delivers the same output, connecting to the same decoder.

G