摘要
主要研究了DirectShow的视频采集技术,并用该技术设计了一个基于RTMP(real time messaging protocol)协议的视频采集与传输系统。DirectShow负责采集实时视频、音频,使用H.264和faac编码器进行音视频编码。通过多线程技术对采集到的视频和音频数据进行封装为可被流媒体服务器识别的可播放流,通过IP网络,以流媒体的形式传输给流媒体服务器Nginx,Nginx服务器通过网络接收各个客户端的音视频数据流,通过一定的缓冲机制,保证媒体数据的连续性,再以RTMP流式协议直播给客户端。系统满足了直播对视频高实时性和有效性的要求。
The Direct Show video capture technology was studied,and by using this technology,a video capture and transmission system was designed based on real time messaging protocol protocol. Direct Show is responsible for capturing real-time video and audio,and H.264 and faac encoders are used to encode audio and video. By using multithreading technology,the captured videos and audios are encapsulated into streams that can be played and can be recognized by streaming media server. Through an IP network,the streams in the form of streaming media are transferred to Nginx streaming media server. Nginx server receives the audio and video data streams of each client through the network. By using a certain buffer mechanism,the continuity of media data is ensured. Then the streams are broadcasted to clients through RTMP streaming protocol in real time. The system realizes high real time and high availability required by live broadcast for video.
出处
《应用科技》
CAS
2015年第6期40-44,76,共6页
Applied Science and Technology
基金
黑龙江省交通运输厅资助项目(P083314005)