利用通用的UDP传输实时视频,接收端所显示的视频图像往往存在延时较长、丢帧及单帧图像显示不完整等问题,这些现象在无线局域网环境中尤为明显。针对上述问题提出了一种基于帧内压缩的视频实时传输方法。在发送图像数据之前进行帧内压缩,然后分组发送;在接收端进行数据包接收、重组并解码。在局域网环境下进行了多次实验,对相关参数进行优化和调整,最终将延时减少到0.5~2S。结果表明,由于采用了压缩算法并提高了拆包、组包的效率,视频传输的实时性得到了明显的改善,传输的准确性和稳定性都有明显的提高。
Using the common UDP to transmit the real-time video, there are something wrong with the image displayed on the receiving end. For example, delayed, dropped frames, single-frame image displayed incompletely and so on, such phenome- non is particularly evident in the wireless environment. In response to these problems, this paper proposed a real-time video transmission method based on intra-frame compression. The program compressed those intra-frame image data before sent them, at the same time, the receiving program restructured and decoded them. In the wired and wireless LAN environment,the method was conducted several tests, and as a basis to optimize and adjust the relevant parameters. Ultimately, this method re- duced the latency of the video image from 0.5 to 2 seconds. This method has used an optimized compression algorithm and a high efficiency method of unpacking and packetization. As a result, the real-time feature about video transmission has been significantly improved and the transmission' s accuracy and stability are also improved significantly.