[Live-devel] 回复: Re: 回复: Re: live555 under high bitrate streaming

Xzou xiangwust at yahoo.cn
Wed Jun 11 22:41:31 PDT 2008


Yes,it does works when I increase net.core.rmem_max and net.core.wmem_max on both client side and server side.Now I can receive media stream at 8Mbit/s,but still drop data if at higher bitrate.
I think it has something to do with my hardware like cpu(only 200Mhz),receive udp packet and processing the rtp packets in their payload may swallow a lot of cpu time.By the way,my test file type is TS,then the server transmit these TS packets on rtp packets and hence on udp packets,I think processing this kind of packet will need a more powerful cpu,isn't it?
Sourav Pal <souravpal at gmail.com> 写道: 2008/6/11 Xzou :
>
> I wrote a simple program which just receive a stream using rtp and dump it based on live555.In this program,I increased the socket buffer to 2,000,000 bytes using the function increaseReceiveBufferTo() provided by live555.Then  compare  the dumped  file  and the original file,I found it's much smaller than the original file.When playing the dumped file using a common media player like VLC or mplayer, the video picture has broken.The original file's bitrate is about 20M bit per second.That seems many data has dropped.But my network card works good,it can work in 100M bit/s. Then I perceive there is something wrong in rtp processing in live555 under high bitrate environment.
>
> Sourav Pal  写道:
>
> 2008/6/10 Xzou :
>>
>> Recently,I'm trying to construct a embedded rtsp/rtp client using live555 in order to receive very high bitrate media stream which could be nearly 20M bit per second.But the bad news is my client lost a lot of packets when the bitrate of media stream is higher than 4M bit per second.
>> My cpu frequency is 200M hz and have no more than 64M ram available for application softwares.
>> How could I fix it?
>> ________________________________
>> 雅虎邮箱,您的终生邮箱!
>> _______________________________________________
>> live-devel mailing list
>> live-devel at lists.live555.com
>> http://lists.live555.com/mailman/listinfo/live-devel
>>
>
> Where are your packets getting dropped ? How did you measure it ?
> You might want to increase the size of the udp buffers. That does help sometimes.
>
> Thanks,
> Sourav
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
> ________________________________
> 雅虎邮箱,您的终生邮箱!
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel

The problem might not be at your NIC. These sort of high bit rate cane
cause packet drops at both the streaming side ( most likely) as well
as on the receive side. It might be that UDP buffers are dropping the
packets. You might want to increase the udp buffer size\
at both the receive and transmit end. If you are in linux , use the following :

sysctl  net.core.rmem_max = < compute how much you need for 20mbps>
sysctl  net.core.wmem_max = < compute how much you need for 20mbps>

Thanks,
Sourav
_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel


       
---------------------------------
 雅虎邮箱,您的终生邮箱!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080612/0090ce06/attachment.html>


More information about the live-devel mailing list