English 中文(简体)
• 如何减少在 Java使用RPT的包装,并减少碎块。
原标题:How to reduce the rate of packet using the RTP in Java with jlibrtp

我刚刚利用空间应用方案将客户的一些缓冲器送至服务器使用jlibrtp。

每一包裹都限于1480比特,因此,我需要将每个图像分成几个部分,并将星号发送到服务器和服务器一侧,直到接收所有tes子并改革缓冲器为止。

但是,当缓冲的大小太大,一些包装箱就会丢失时,问题常常发生。 然而,当我试图缩小规模时,这一问题不会发生。

Actually the image I send is the continuous frame capture from the webcam, so when I try to drop those "not complete" image, the image screen shows in a very "non-continuously" way which is not acceptable.

因此,我要问,是否有办法改善这种状况?

非常感谢!

问题回答
  • Switch to a video encoding format like MPEG-2, MPEG-4, Theora or WebM.
  • You can send back to the sender that you didn t get some packets and need them resent. The advantage here over TCP is that you can easily time out and stop asking when the packet is too old. I cannot find it quickly for jlibrtp but other RTP libraries have a retransmit request function.
  • You can reduce the image resolution and send less data.
  • You can start sending more data. If this extra data is part of a forward error correction system you may be able to reconstruct the lost packets.
  • You can do both, reducing the resolution and increasing the error correction so the bandwidth remains similar.




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签