Mpeg2 Streaming with VLC and Hauppauge Win TV PVR USB2 Part II


After several weeks of trying to work out how to stream with hardware encoders such as the WinTV PVR USB2 which I own, I have finally managed to do this by building a graph in Graph Edit that does not write to any information to the file system but just streams it instead straight from the MPEG output pin of the Hauppauge Win TV PVR USB2 to any IP address you specify.
To try this for yourself, you will need to download the Elecard SDK Player pack from Elecard's website (link) . This pack installs several Direct Show filters needed to build the direct show graph for this project. These are the MainConcept Push Demultiplexer to split the Hauppauge MPEG program stream into elementary streams, the MainConcept MPEG Multiplexer Plus to remultiplex these streams as a transort stream and lastly the Elecard NWRenderer which will stream to the network.

1) The graph above is fairly easy to build and does not require any DirectX9 runtimes to work. The only thing to make sure is that you run the graph without the NWRenderer and the MainConcept MPEG Multiplexer Plus so that the audio and video output pins are visible on the MainConcept Push Demultiplexer.
2) The next step is to configure each filter by right clicking on them. Now I am not an expert on Mpeg Transport Stream and if anyone has any better suggestions, then please leave a post at the bottom, but the following settings seemed to give the best playback on a VLC Wireless LAN Client using UDP port 1234
a) Configure the WinTV encoder so that the bitrate is no more than 8000kbs.
b) Configure the MainConcept Push Demultiplexer as shown below

c) Configure the MainConcept MPEG Multiplexer Plus as shown below, the important points are to select Transport Stream Output, set TS Packets Decode to 7 and make sure the timing mode is set to "Reconstructive".

d) Configure the Elecard NWRenderer as suggested below ensuring you have an adequate buffer set as indicated under the information tab of the filter. The settings above are configured for UDP LAN broadcast to a single client.

All that is needed now is to open up the UDP stream in VLC and you should get a TV picture that is as good as the Server although you may occasionally get some artifacts depending on your network traffic.
This entry was posted on Friday November 30th, 2007 at 5:36 PM and is filed under Accessories. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response.
Leave a Reply
Hi-Fi-Insight News and Reviews

4 Responses to "Mpeg2 Streaming with VLC and Hauppauge Win TV PVR USB2 Part II"
» mpeg2 streaming with vlc and hauppauge win tv pvr usb2 Says:
December 1st, 2007 at 5:45 PM
[...] Since first writing this article, I have managed to find a better solution that does not involve any writing to the hard drive and allows the server to steam more efficiently. The article is here [...]
Bart Says:
January 26th, 2008 at 8:38 AM
Hi,
Could you please help me with this graph, I have a hauppauge pvr usb2, and cannot find the push demultiplexer, and the AVS encoder ... It seems like I have components which are all missing the AVS prefix ...
I also don't understand what you mean with "run the graph without the NWRenderer and the MainConcept MPEG Multiplexer Plus so that the audio and video output pins are visible on the MainConcept Push Demultiplexer" as those 2 components are displayed in the graph, so I guess they are necessary ?
I'm eager to get this working, but can't get any further ... help me out ... please ...
Kind regards,
Bart
Kuka Says:
February 28th, 2008 at 6:55 AM
what you mean with “run the graph without the NWRenderer and the MainConcept MPEG Multiplexer Plus so that the audio and video output pins are visible on the MainConcept Push Demultiplexer"
1. It's better to use new version of Elecard Push Demuxer - it is significantly more stable
2. Push Demuxer do not have information about incoming stream, until you run it. So it does not create output pins on connection. You must run the graph after connection and then output pins will appear in a second.
3. After pin appears, stop the graph and add last filters, again i'd like to recommend new elecard ones.
Hi-fi insight Says:
February 28th, 2008 at 5:18 PM
Thanks Kuka,
The information about the Push Demuxer explains a lot
I will take a look at the new filters, although I have not had too many issues with the old ones