DirectShow Filter graphs

G4GUO
Posts: 729
Joined: Tue Feb 16, 2010 12:51 pm

DirectShow Filter graphs

Post by G4GUO » Sat Dec 22, 2012 6:13 pm

I am trying to use an HVR-1900 to render some captured video.
I can get it to work with 3rd party MPEG2 encoder filters but not
with the Hauppauge one which rather defeats the object of having
a box with a hardware MPEG2 encoder. Anyone got any ideas as to
what combination of graphs I need?

- Charles G4GUO

G4EWJ
Posts: 1378
Joined: Wed Feb 17, 2010 10:11 am

Re: DirectShow Filter graphs

Post by G4EWJ » Sun Dec 23, 2012 12:46 pm

I don't have an HVR-1900, but I have working GraphEdit graphs for PVR150/250/350/USB2 and HVR-1300 if they're any use.

Brian

G4GUO
Posts: 729
Joined: Tue Feb 16, 2010 12:51 pm

Re: DirectShow Filter graphs

Post by G4GUO » Sun Dec 23, 2012 1:51 pm

Hello Brian,

That would be helpful. I am trying to figure out how to get the output
into a Windows version of DATV-Express (Linux is so much easier as the
PVR just looks like a file). So I am going to have to do the same for
all the different PVRs. The problem seems to be that each version of the
Hauppauge software seems to come with different filters.

The worrying thing is that DirectShow is going to be replaced by
Media Foundation eventually.

Probably what I will end up doing is writing a little app that streams the
video over UDP to communicate with DATV-Express under windows.

- Charles G4GUO

G4EWJ
Posts: 1378
Joined: Wed Feb 17, 2010 10:11 am

Re: DirectShow Filter graphs

Post by G4EWJ » Sun Dec 23, 2012 3:31 pm

I think the graphs for the 250/350 are the same as the USB2. I'll have to re-install the 1300 to see the pins on the filters.

Brian

PVR150 graph.JPG
PVR150 graph.JPG (76.74 KiB) Viewed 11775 times
PVRUSB2 graph.JPG
PVRUSB2 graph.JPG (73.35 KiB) Viewed 11775 times
HVR-1300 graph.JPG
HVR-1300 graph.JPG (56.33 KiB) Viewed 11775 times

G4GUO
Posts: 729
Joined: Tue Feb 16, 2010 12:51 pm

Re: DirectShow Filter graphs

Post by G4GUO » Sun Dec 23, 2012 4:02 pm

Thanks Brian,

That looks very much like the graph's I have but I don't have the Major UDP sender.
I will have a look to see if there is anything similar on my machine, there are hundreds of filters.

I tried taking the output (Program stream) of the Mpeg Encoder and rendering it but
I never managed to get anything to display. I did find a Google link for the PVR USB2
and that used a WintV renderer but I don't seem to have one of those!

I have managed to use DirectShow from a C++ program to enumerate the video
devices and that shows the PVR but that is as far as I got. I also found a couple of
3rd party GaphEdit programs and each of them shows different information for the
same filter. All a bit of a mess really.

- Charles

G4EWJ
Posts: 1378
Joined: Wed Feb 17, 2010 10:11 am

Re: DirectShow Filter graphs

Post by G4EWJ » Sun Dec 23, 2012 4:43 pm

The UDP sender is here:

http://www.majority.nl/files/majorudpsend.zip

I've never tried using filters within a program. I don't do C++ and I believe DirectShow is optimised for that. It does seem very messy.

Brian

G4GUO
Posts: 729
Joined: Tue Feb 16, 2010 12:51 pm

Re: DirectShow Filter graphs

Post by G4GUO » Sun Dec 23, 2012 7:03 pm

Hello Brian,

That is useful to know, thanks. I will have a play. I can pipe the video from my Windows PC
via UDP to my Linux box in the shack as a quick test. I recently added UDP support
to the Linux DATV-Express code so it will be a test for both systems.

I have used the C/C++ examples on the Microsoft website just changed the
Device category to CLSID_VideoInputDeviceCategory and it found the HVR-1900
(and my webcam). I have been programming in C/C++ for many years and
Coral 66 before that!

I have not tried writing my own DS filter yet, maybe I should do a filter for
DATV-Express so it can be included in a Filter Graph using GraphEdit!
Sounds like hard work to me though :(

- Charles

G4GUO
Posts: 729
Joined: Tue Feb 16, 2010 12:51 pm

Re: DirectShow Filter graphs

Post by G4GUO » Mon Dec 24, 2012 2:47 pm

Well Brian,

That filter did the trick, I have managed to stream Video from a Windows 7 machine over
Ethernet to my Linux system which then transmits it on 24 cms. It is then received
on a DVB-S STB.

- Charles

G4EWJ
Posts: 1378
Joined: Wed Feb 17, 2010 10:11 am

Re: DirectShow Filter graphs

Post by G4EWJ » Wed Jan 02, 2013 12:44 pm

Very good. Can you post the graph for the HVR-1900 for future reference please.

Brian

G4GUO
Posts: 729
Joined: Tue Feb 16, 2010 12:51 pm

Re: DirectShow Filter graphs

Post by G4GUO » Wed Jan 02, 2013 1:09 pm

Certainly
HVR1900.jpg
HVR1900.jpg (80.21 KiB) Viewed 11652 times
- Charles

Post Reply

Return to “DigiLite”