Re: Network source filter
- From: dev <krt.dev@xxxxxxxxx>
- Date: Mon, 22 Dec 2008 22:27:30 -0800 (PST)
On Dec 23, 10:57 am, dev <krt....@xxxxxxxxx> wrote:
On Dec 21, 4:05 am, Tim Roberts <t...@xxxxxxxxx> wrote:
dev <krt....@xxxxxxxxx> wrote:
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].
What is your network wire? A 10Base-T network at 10Mbps is going to have a
lot of trouble carrying a 15Mbps stream, as will an 802.11b carrier.
--
Tim Roberts, t...@xxxxxxxxx
Providenza & Boekelheide, Inc.
Hi Tim,
My network wire is 10/100 Mbps link
it is not Wireless LAN.
Regards,
Dev
Hi,
Thanks a lot for inputs,
I wrote a network push filter from scratch,base classes used CSource
abd CSourceStream, with support of socket reads.
I have buffers of size 1316bytes 800 in number.I read in to them in a
thread .
The buffers are dispatched out in FillBuffer call. Both read and
writes synched using semaphores.
I tried the following:
1. output one buffer at once from read pool, 1 buffer of 1316 is
copied into IMediaSample in FillBuffer.
Result: Jerky play out
2. compared to FILE push source filter I had for the same
graph ,difference was amount of data read:
in case of file push it was 8192 chunks, here in case of network it is
1316 ...
So I copied almost 5 buffers from pool into 1 IMediaSample in
FillBuffer, result was worse, I got more discontinuities in my
downstream filters.
When I copied more samples into output at once, do I have to rip any
UDP header or as such ?? I do not know what is the difference when I
did file read and network read of the same file?
I want to give more data to the mux, approx 8k size but socket reads
gives only 1316 at once ...
How do I achieve this without getting more discontinuities?
Or my approach and understanding itself is wrong ?
Any input would be great help.
Regards,
dev
.
- Follow-Ups:
- Re: Network source filter
- From: Geraint Davies
- Re: Network source filter
- References:
- Network source filter
- From: dev
- Re: Network source filter
- From: Tim Roberts
- Re: Network source filter
- From: dev
- Network source filter
- Prev by Date: Re: Network source filter
- Next by Date: Re: Time taken by the Avi Decompressor and colour space converter filter during pin connection
- Previous by thread: Re: Network source filter
- Next by thread: Re: Network source filter
- Index(es):
Relevant Pages
|