The present invention provides a real-time video processing method and device. The method includes: sending the current video frame by the sending end, detecting whether there is a trigger control event at present, obtaining the control signaling corresponding to the trigger control event, inserting the control signaling into the current video frame and transmitting the current video frame after the insertion to the receiving end. If it does not exist, the current video frame is directly transmitted to the receiving end. The receiving end receives the current video frame transmitted by the sending end; determines whether the current video frame contains control signaling; if so, the current video frame is played according to the control signaling; if not, the current video frame is directly played. In the invention, the sending terminal inserts the control signal into the video frame, so that the control signal reaches the receiving end at the same time as the video frame. Synchronization of video rendering and control signaling is implemented at the receiving end. The control signaling is triggered by the trigger control event triggered by the user actively, and increases the interactive means between the sender and the receiver, and improves the user's participation and experience in real-time video. One
【技术实现步骤摘要】
一种实时视频处理方法及装置
本专利技术涉及数据处理
,具体而言,涉及一种实时视频处理方法及装置。
技术介绍
目前,在监控系统及即时通讯等各个应用领域中都需要进行实时视频的传输,发送端在传输实时视频的同时还需要传输控制信令,以使接收端根据控制信令处理实时视频。当前,相关技术中传输实时视频时,视频流与控制信令是在不同通道分别进行传输的。通过不同通道传输很难确保视频流与其对应的控制信令同时到达接收端。为了实现视频流与控制信令的同步,相关技术中添加了缓冲区,并进行时间戳同步,但在实时视频交互场景下,会造成更高的时间延迟。而且基于UDP(UserDatagramProtocol,用户数据报协议)传输视频流及控制信令时,必然存在丢包现象,为了保证视频流与其对应的控制信令均能到达接收端,也会相应的增加程序设计以及实现的复杂度。
技术实现思路
有鉴于此,本专利技术实施例的目的在于提供一种实时视频处理方法及装置,以解决现有技术中视频流与控制信令在不同通道分别传输,导致视频流与控制信令不同步的问题。第一方面,本专利技术实施例提供了一种实时视频处理方法,所述方法包括:采集当前视频帧;检测当前是否存在触发控制事件;若检测到触发控制事件,则获取所述触发控制事件对应的控制信令,将所述控制信令插入所述当前视频帧中,传输插入操作后的所述当前视频帧给接收端;若未检测到触发控制事件,则直接传输所述当前视频帧给接收端。结合第一方面,本专利技术实施例提供了上述第一方面的第一种可能的实现方式,其中,所述将所述控制信令插入所述当前视频帧中,包括:解析所述当前视频帧,从所述当前视频帧中定位出补充增强 ...
【技术保护点】
1.一种实时视频处理方法,其特征在于,所述方法包括:
【技术特征摘要】
1.一种实时视频处理方法,其特征在于,所述方法包括:采集当前视频帧;检测当前是否存在触发控制事件;若检测到触发控制事件,则获取所述触发控制事件对应的控制信令,将所述控制信令插入所述当前视频帧中,传输插入操作后的所述当前视频帧给接收端;若未检测到触发控制事件,则直接传输所述当前视频帧给接收端。2.根据权利要求1所述的方法,其特征在于,所述将所述控制信令插入所述当前视频帧中,包括:解析所述当前视频帧,从所述当前视频帧中定位出补充增强信息单元SEI;将所述控制信令插入所述SEI中。3.根据权利要求1所述的方法,其特征在于,所述触发控制事件为预设用户行为;所述检测当前是否存在触发控制事件,包括:识别所述当前视频帧包含的用户图像;提取所述用户图像的图像特征;根据所述图像特征,确定所述用户图像中是否存在预设用户行为;如果是,则确定当前存在触发控制事件;如果否,则确定当前不存在触发控制事件。4.根据权利要求1所述的方法,其特征在于,所述触发控制事件为存在响度大于预设分贝阈值的声音;所述检测当前是否存在触发控制事件,包括:采集所述当前视频帧的同时,录制所述当前视频帧对应的音频文件;判断所述音频文件包含的声音的响度是否大于所述预设分贝阈值;如果是,则确定当前存在触发控制事件;如果否,则确定当前不存在触发控制事件。5.一种实时视频处理方法,其特征在于,所述方法包括:接收发送端传输的当前视频帧;确定所述当前视频帧是否包含控制信令;如果是,则根据所述控制信令播放所述当前视频帧;如...
【专利技术属性】
技术研发人员:张光,
申请(专利权)人:北京三体云联科技有限公司,
类型:发明
国别省市:北京,11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。