Re: Network source filter
- From: Jamie Faye Fenton <jamiefaye@xxxxxxxxx>
- Date: Fri, 19 Dec 2008 12:27:06 -0800 (PST)
On Dec 18, 6:31 am, dev <krt....@xxxxxxxxx> wrote:
Hi All,
I need to use/develop a network source filter,(UDP multicast receipt)
for mpeg2 transport stream.
I am currently using existing DSNet filter, but the performance is not
so good when it comes to 15Mbps streams. Incoming stream has lots of
discontinuity and playback is a way too jerky.
I am not sure if it is because of buffer constraints in the DSNet
filter or underlying network driver is not capable to handle such a
burst [yet to check on network driver].
I made minor changes to DSnet such as using "setsockopt" SO_RCVBUF,
size of win socket layer set to 512kb( 32kb other wise ???) I see some
improvement in playback.
DSnet as filter,uses 8192 bytes of 64 buffers for its buffer pool and
30 media samples to push it to downstream.
1.With these numbers given is DSNet capable of handling 15mbps
stream ?
No. DSNet was an example that was only active briefly, was and is
incomplete, and have been withdrawn.
2.Is it a good idea to proceed with DSNet and fixing it with minimal
changes ?
No. People who try that back out of that path and use another approach
eventually.
3.Or it can be implemented in simpler way ?Like a push source filter
extended with support to read from network and buffer management ? If
not this which is the best way to implement network source filter ?
Yes. You can write your own sink and source filters, or perhaps use a
commercial suite of filters as a first-shot feasibility check and then
either license the library from the vendor or replace the filters with
your own. (Microsoft has capability in this area via the Windows
Media Format, which includes DShow interfaces for configuring network
stuff). (I am not sure if it can match the format you are working
with). Another area to run searches on is "Windows Media Center",
which sounds close to what you need but is a complex and uncertain
subject.
I presume the 15Mbps MPEG-2 TS is a fixed requirement, and that your
problem is in keeping up with 15Mbps when decoding only?
One tact is to get VLC media player and work with that as a study
subject. Since it is GPL code, you will likely want to keep a "clean-
room barrier", or "learn from it but not copy it over".
The is a Java wrapper for DShow called DSJ, which recently sprouted a
library for encode/decode as well as wrapping some of the DirectShow
components like StreamBufferEngine.
Disclaimer: I am looking into networking stuff on DirectShow for my
own project at the moment, so I know almost enough to be dangerous. I
am not locked into MPEG-2 TS, so my knowledge of it is based on little
more than a few hours spent hacking my Comcast set top box a while
back. [MVPs: please jump in and correct errors]
Any input will be great help.
Regards,
Dev
.
- Follow-Ups:
- Re: Network source filter
- From: Alessandro Angeli
- Re: Network source filter
- References:
- Network source filter
- From: dev
- Network source filter
- Prev by Date: Custom DES effect property
- Next by Date: Re: How not to render audio when using RenderFile()?
- Previous by thread: Network source filter
- Next by thread: Re: Network source filter
- Index(es):
Relevant Pages
|