[go: up one dir, main page]

CN103916620B - Video call method and device, mobile terminal - Google Patents

Video call method and device, mobile terminal Download PDF

Info

Publication number
CN103916620B
CN103916620B CN201310001109.2A CN201310001109A CN103916620B CN 103916620 B CN103916620 B CN 103916620B CN 201310001109 A CN201310001109 A CN 201310001109A CN 103916620 B CN103916620 B CN 103916620B
Authority
CN
China
Prior art keywords
video
video data
unit
equal
sampled
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310001109.2A
Other languages
Chinese (zh)
Other versions
CN103916620A (en
Inventor
袁园
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201310001109.2A priority Critical patent/CN103916620B/en
Publication of CN103916620A publication Critical patent/CN103916620A/en
Application granted granted Critical
Publication of CN103916620B publication Critical patent/CN103916620B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种视频通话方法,包括:对设定时段内发送的视频数据进行帧采样,确定采样的视频帧之间的变化率小于或小于等于设定阈值时,不再发送视频数据,通知接收端重复播放前一所述设定时段内的视频数据。本发明同时公开了一种视频通话装置、移动终端。本发明的技术方案既保证了用户良好的视频通话体验,又大大节省了网络资源占用。

The invention discloses a video call method, comprising: performing frame sampling on video data sent within a set period of time, and determining that the rate of change between the sampled video frames is less than or equal to a set threshold, no longer sending video data, The receiving end is notified to repeatedly play the video data in the previous set period. The invention also discloses a video call device and a mobile terminal. The technical scheme of the invention not only ensures good video call experience for users, but also greatly saves network resource occupation.

Description

视频通话方法及装置、移动终端Video call method and device, mobile terminal

技术领域technical field

本发明涉及视频通信技术,尤其涉及一种视频通话方法及装置、移动终端。The present invention relates to video communication technology, in particular to a video call method and device, and a mobile terminal.

背景技术Background technique

随着第三代移动通信的迅猛发展,目前越来越多的移动终端提供视频通话服务,但是由于视频通话对网络带宽要求较高,对移动通信网络资源占用较大。当很多人同时使用时,网络传输数据较大,便会影响视频通话的传输质量,引起用户体验的下降。With the rapid development of third-generation mobile communications, more and more mobile terminals provide video call services. However, since video calls have high requirements on network bandwidth, they occupy a large amount of mobile communication network resources. When many people use it at the same time, the network transmission data will be large, which will affect the transmission quality of the video call and cause a decline in user experience.

目前有技术实现了通过某些方法来降低视频通话对网络的占用,确保用户体验。例如现有技术中,当网络拥塞影响视频数据传输时,由用户手动传送静止图像,以保证视频通话的效果;也有人提出在信道质量较差、传输率较低的情况下,仅传送用户预先设定的静止图像。现有技术中,当网络传输质量较差时,都是通过用户手动操作的方式来传输静止的图片,将视频通话转化为静止图像通话,达到降低网络资源占用的目的。At present, there are technologies that use certain methods to reduce the occupation of the network by video calls and ensure user experience. For example, in the prior art, when network congestion affects video data transmission, the user manually transmits still images to ensure the effect of video calls; Set still image. In the prior art, when the network transmission quality is poor, the still pictures are transmitted manually by the user, and the video call is converted into a still picture call, so as to reduce the occupation of network resources.

现有技术中,视频通话时以静止图像代替视频,无法给予用户真实的视频通话体验,另外,由用户手动操作完成图片发送的方式,用户体验较差。In the prior art, a still image is used instead of a video during a video call, which cannot provide a user with a real video call experience. In addition, the way in which the user manually completes the picture sending is poor in user experience.

发明内容Contents of the invention

有鉴于此,本发明的主要目的在于提供一种视频通话方法及装置、移动终端,能在通话视频接近的情况下不必传输视频数据,节约无线资源。In view of this, the main purpose of the present invention is to provide a video call method and device, and a mobile terminal, which can save wireless resources without transmitting video data when the call video is close.

为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:

一种视频通话方法,包括:A method for video calling, comprising:

对设定时段内发送的视频数据进行帧采样,确定采样的视频帧之间的变化率小于或小于等于设定阈值时,不再发送视频数据,通知接收端重复播放前一所述设定时段内的视频数据。Perform frame sampling on the video data sent within the set period, and when it is determined that the rate of change between the sampled video frames is less than or equal to the set threshold, no longer send video data, and notify the receiving end to repeatedly play the previous set period the video data within.

优选地,所述方法还包括:Preferably, the method also includes:

对接收的设定时段内的视频数据进行缓存,接收到发送端发送的重复播放通知时,播放缓存的所述设定时段内的视频数据。The received video data within the set period is cached, and when the repeat playback notification sent by the sending end is received, the cached video data within the set period is played.

优选地,通知接收端重复播放前一所述设定时段内的视频数据之后,所述方法还包括:Preferably, after notifying the receiving end to repeatedly play the video data within the previous set period, the method further includes:

等待所述设定时段,重新发送当前拍摄的视频数据,对下一所述设定时段内发送的视频数据进行帧采样,并重新确定采样的视频帧之间的变化率是否小于或小于等于设定阈值。Waiting for the set period, resending the currently captured video data, performing frame sampling on the video data sent in the next set period, and re-determining whether the rate of change between the sampled video frames is less than or equal to the set Set the threshold.

优选地,所述方法还包括:Preferably, the method also includes:

确定采样的视频帧之间的变化率大于等于或大于设定阈值时,继续发送当前拍摄的视频数据,并对下一所述设定时段内发送的视频数据进行帧采样,重新确定采样的视频帧之间的变化率是否小于或小于等于设定阈值。When it is determined that the rate of change between the sampled video frames is greater than or equal to or greater than the set threshold, continue to send the currently captured video data, and perform frame sampling on the video data sent within the next set period, and re-determine the sampled video Whether the rate of change between frames is less than or equal to the set threshold.

优选地,所述对设定时段内发送的视频数据进行帧采样,包括:Preferably, the frame sampling of the video data sent within the set period includes:

采样所述设定时段内发送的视频数据的首视频帧及尾视频帧;Sampling the first video frame and the last video frame of the video data sent within the set period of time;

或者,以等间隔方式采样所述设定时段内发送的视频帧;Or, sampling the video frames sent within the set period of time in an equal interval;

或者,以等间隔方式采样所述设定时段内发送的视频帧,所述采样视频帧中包括所述视频数据的首视频帧及尾视频帧。Alternatively, the video frames sent within the set period of time are sampled at equal intervals, and the sampled video frames include the first video frame and the last video frame of the video data.

优选地,所述确定采样的视频帧之间的变化率小于或小于等于设定阈值,包括:Preferably, said determining that the rate of change between sampled video frames is less than or equal to a set threshold includes:

确定采样的每两个视频帧之间的亮度差值小于或小于等于设定阈值时,确定采样的视频帧之间的变化率小于或小于等于设定阈值;When it is determined that the brightness difference between every two video frames sampled is less than or equal to the set threshold, it is determined that the rate of change between the sampled video frames is less than or equal to the set threshold;

或者,对视频帧的设定位置处的像素的灰度等级分别进行对比,在各设定位置处的像素的灰度等级差小于或小于等于设定阈值时,确定采样的视频帧之间的变化率小于或小于等于设定阈值。Or, compare the gray levels of the pixels at the set positions of the video frames respectively, and when the gray level difference of the pixels at each set position is less than or equal to the set threshold, determine the difference between the sampled video frames The rate of change is less than or equal to the set threshold.

一种视频通话装置,包括发送单元、采样单元、确定单元和通知单元,其中:A video call device, including a sending unit, a sampling unit, a determining unit and a notification unit, wherein:

发送单元,用于发送视频数据;a sending unit, configured to send video data;

采样单元,用于对设定时段内发送的视频数据进行帧采样;The sampling unit is used to perform frame sampling on video data sent within a set period of time;

确定单元,用于确定采样的视频帧之间的变化率是否小于或小于等于设定阈值,是时触发所述发送单元不再发送视频数据,并触发所述通知单元;A determining unit, configured to determine whether the rate of change between sampled video frames is less than or equal to a set threshold, and trigger the sending unit to no longer send video data, and trigger the notification unit;

通知单元,用于通知接收端重复播放前一所述设定时段内的视频数据。The notification unit is used to notify the receiving end to repeatedly play the video data in the previous set period.

优选地,所述装置还包括接收单元、缓存单元和播放单元,其中:Preferably, the device further includes a receiving unit, a buffer unit and a playback unit, wherein:

接收单元,用于接收的设定时段内的视频数据;以及,接收发送端发送的重复播放通知,并触发所述播放单元;The receiving unit is used to receive video data within the set period of time; and receives the repeat playback notification sent by the sending end, and triggers the playback unit;

缓存单元,用于对所述接收单元接收的设定时段内的视频数据进行缓存;a buffer unit, configured to buffer video data within a set period of time received by the receiving unit;

播放单元,用于播放缓存的所述设定时段内的视频数据。The playing unit is used to play the video data within the set period of time in the cache.

优选地,所述装置还包括:Preferably, the device also includes:

定时单元,用于在所述通知单元通知接收端重复播放前一所述设定时段内的视频数据后,等待所述设定时段,重新触发所述发送单元发送当前拍摄的视频数据,所述采样单元对下一所述设定时段内发送的视频数据进行帧采样,所述确定单元重新确定采样的视频帧之间的变化率是否小于或小于等于设定阈值。The timing unit is used to wait for the set period of time after the notification unit notifies the receiving end to repeatedly play the video data in the previous set period, and re-trigger the sending unit to send the currently captured video data, the The sampling unit performs frame sampling on the video data sent in the next set period, and the determination unit re-determines whether the rate of change between the sampled video frames is less than or equal to the set threshold.

优选地,在所述确定单元确定采样的视频帧之间的变化率大于等于或大于设定阈值时,触发所述发送单元继续发送当前拍摄的视频数据,所述采样单元对下一所述设定时段内发送的视频数据进行帧采样,所述确定单元重新确定采样的视频帧之间的变化率是否小于或小于等于设定阈值。Preferably, when the determination unit determines that the rate of change between the sampled video frames is greater than or equal to or greater than a set threshold, the sending unit is triggered to continue sending the currently captured video data, and the sampling unit performs the next setting The video data sent within a certain period of time is subjected to frame sampling, and the determining unit re-determines whether the rate of change between the sampled video frames is less than or equal to a set threshold.

优选地,所述采样单元,还用于采样所述设定时段内发送的视频数据的首视频帧及尾视频帧;或者,以等间隔方式采样所述设定时段内发送的视频帧;或者,以等间隔方式采样所述设定时段内发送的视频帧,所述采样视频帧中包括所述视频数据的首视频帧及尾视频帧。Preferably, the sampling unit is further configured to sample the first video frame and the last video frame of the video data sent within the set period; or, sample the video frames sent within the set period at equal intervals; or , sampling the video frames sent within the set time period at equal intervals, where the sampled video frames include the first video frame and the last video frame of the video data.

优选地,所述确定单元,还用于确定采样的每两个视频帧之间的亮度差值小于或小于等于设定阈值时,确定采样的视频帧之间的变化率小于或小于等于设定阈值;Preferably, the determining unit is further configured to determine that when the brightness difference between every two sampled video frames is less than or equal to a set threshold, determine that the rate of change between the sampled video frames is less than or less than or equal to a set threshold threshold;

对视频帧的设定位置处的像素的灰度等级分别进行对比,在各设定位置处的像素的灰度等级差小于或小于等于设定阈值时,确定采样的视频帧之间的变化率小于或小于等于设定阈值。Compare the gray levels of the pixels at the set positions of the video frames respectively, and determine the rate of change between the sampled video frames when the gray level difference of the pixels at each set position is less than or equal to the set threshold Less than or equal to the set threshold.

一种移动终端,包括前述的视频通话装置。A mobile terminal includes the aforementioned video call device.

本发明中,对设定时段内发送的视频数据进行帧采样,确定采样的视频帧之间的变化率小于或小于等于设定阈值时,不再发送视频数据,通知接收端重复播放前一所述设定时段内的视频数据。本发明的技术方案,当用户在通话过程中一直与移动终端一致处于不变的姿势时,在该过程中,所拍摄的视频应当基本相同,此时,可暂停视频数据的发送;而当视频通话的一方频繁移动时,视频数据更新频率较快时,需要一直发送新的视频信息;这样,本发明的技术方案既保证了用户良好的视频通话体验,又大大节省了网络资源占用。In the present invention, frame sampling is performed on the video data sent within a set period of time, and when it is determined that the rate of change between the sampled video frames is less than or equal to the set threshold, the video data is no longer sent, and the receiving end is notified to repeatedly play the previous video. The video data within the set period described above. According to the technical solution of the present invention, when the user is in the same posture as the mobile terminal during the call, the videos taken during the call should be basically the same, at this time, the sending of the video data can be suspended; and when the video When one party to the call moves frequently and the update frequency of the video data is faster, new video information needs to be sent all the time; thus, the technical solution of the present invention not only ensures a good video call experience for the user, but also greatly saves the occupation of network resources.

附图说明Description of drawings

图1为本发明实施例的视频通话方法的流程图;Fig. 1 is the flowchart of the video calling method of the embodiment of the present invention;

图2为本发明实施例的视频通话装置的组成结构示意图。FIG. 2 is a schematic diagram of the composition and structure of a video call device according to an embodiment of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚明白,以下举实施例并参照附图,对本发明进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail by citing the following embodiments and referring to the accompanying drawings.

由于在视频通话过程中,通常情况下,通话双方面对摄像头进行通话,摄像头采集的图像变化不大,通话双方看到的视频图像几乎不变,传送的视频信息有很多的冗余,基于此,本发明实施例的视频通话方法在摄像头捕捉到的视频发生变化的频率较快时,才不间断地进行视频传送。本发明通过定时对摄像头采集到的视频帧进行检测,当发现一定时间内,两个视频帧之间的变化低于设定阈值,则认为通话视频未发生变化,发送端暂停视频信息传输,接收端重复播放上一时段视频内容;当两个视频帧之间的变化高于阈值,则认为通话视频发生变化,需实时发送视频。整个过程中,语音传送不受影响。本发明实施例的视频通话方法可当用户在视频通话过程中,一直处于不变的姿势,则暂停视频信息传送,这样既保证了用户良好的视频通话体验,又大大节省了网络资源占用。During a video call, usually, the two parties in the call talk to the camera, the image captured by the camera does not change much, the video image seen by the two parties in the call is almost unchanged, and the transmitted video information has a lot of redundancy. Based on this In the video call method of the embodiment of the present invention, the video transmission is carried out uninterruptedly only when the frequency of the video captured by the camera changes rapidly. The present invention detects the video frames collected by the camera at regular intervals. When it is found that the change between two video frames is lower than the set threshold within a certain period of time, it is considered that the call video has not changed, and the sending end suspends the video information transmission, and the receiving end The terminal repeatedly plays the video content of the previous period; when the change between two video frames is higher than the threshold, it is considered that the call video has changed, and the video needs to be sent in real time. During the whole process, voice transmission is not affected. The video call method of the embodiment of the present invention can suspend the transmission of video information when the user is in the same posture during the video call process, which not only ensures the user's good video call experience, but also greatly saves the occupation of network resources.

图1为本发明实施例的视频通话方法的流程图,如图1所示,本示例的视频通话方法包括以下步骤:Fig. 1 is the flow chart of the video call method of the embodiment of the present invention, as shown in Fig. 1, the video call method of this example comprises the following steps:

步骤101,通话双方建立视频通话。Step 101, the two parties in the call establish a video call.

本步骤中,支持视频通话的双方的移动终端开启视频通话功能,并开始视频通话。In this step, the mobile terminals of the two parties that support the video call enable the video call function, and start the video call.

步骤102,通话双方互相向对方发送视频;Step 102, both parties in the call send video to each other;

视频通话是双向的,需由通话双方互相向对方发送视频数据。Video calls are two-way, and both parties need to send video data to each other.

步骤103,确定通话双方继续,若继续则执行步骤104,否则结束当前处理流程。In step 103, it is determined that both parties in the conversation continue, and if so, execute step 104, otherwise end the current processing flow.

步骤104,对所发送的视频数据进行采样。Step 104, sampling the sent video data.

本步骤中,采样视频数据主要手段有:采样设定时段如T内发送的视频数据的首视频帧及尾视频帧;即仅对T内发送的视频数据的首帧及尾帧进行采样,通过对T内视频的首帧及尾帧变化情况确定该视频的变化率是否超出设定阈值。In this step, the main means of sampling video data are: the first video frame and the last video frame of the video data sent in the sampling setting period such as T; that is, only the first frame and the last frame of the video data sent in T are sampled, by For the change of the first frame and the last frame of the video within T, determine whether the rate of change of the video exceeds the set threshold.

或者,以等间隔方式采样设定时段T内发送的视频帧。即对T内的视频帧,按T/n的时间间隔进行采样,获取n个采样点,通过该n个采样点对应的视频帧的变化率是否超出设定阈值来确定T内的视频是否发生变化。Alternatively, the video frames sent within the set period T are sampled at equal intervals. That is, the video frames in T are sampled according to the time interval of T/n, and n sampling points are obtained, and whether the change rate of the video frames corresponding to the n sampling points exceeds the set threshold is determined to determine whether the video in T occurs Variety.

或者,以等间隔方式采样设定时段T内发送的视频帧,采样视频帧中包括所述视频数据的首视频帧及尾视频帧。这种方式与前述等间隔方式采样视频帧的方式基本类似,但在采样点不包括首帧及尾帧时,需将首帧及尾帧也作为采样点。Alternatively, the video frames sent within the set time period T are sampled at equal intervals, and the sampled video frames include the first video frame and the last video frame of the video data. This method is basically similar to the aforementioned method of sampling video frames at equal intervals, but when the sampling points do not include the first frame and the last frame, the first frame and the last frame also need to be used as sampling points.

本发明中,T可以设置为1秒、3秒或5秒等,当然,也可以设置为其他时间值。In the present invention, T can be set to 1 second, 3 seconds or 5 seconds, etc. Of course, it can also be set to other time values.

步骤105,判断采样视频帧变化是否超出阈值,是时执行步骤107,否则执行步骤106。Step 105, judge whether the change of the sampled video frame exceeds the threshold, if yes, execute step 107; otherwise, execute step 106.

本发明中,以采样视频帧之间的亮度变化情况,作为视频帧是否变化的判断依据。具体的,确定采样的每两个视频帧之间的亮度差值小于或小于等于设定阈值时,确定采样的视频帧之间的变化率小于或小于等于设定阈值。In the present invention, the brightness change between sampled video frames is used as the basis for judging whether the video frame changes. Specifically, when it is determined that the brightness difference between every two sampled video frames is less than or equal to the set threshold, it is determined that the rate of change between the sampled video frames is less than or equal to the set threshold.

或者,对视频帧的设定位置处的像素的灰度等级分别进行对比,在各设定位置处的像素的灰度等级差小于或小于等于设定阈值时,确定采样的视频帧之间的变化率小于或小于等于设定阈值。例如,在视频帧的中心位置及四个角选取5个位置点,对采样每两个视频帧,分别获取对应的5个位置处的像素的灰度等级,在该5处的灰度等级差均小于或小于等于设定阈值值,确定为视频帧之间是相同的,否则确定为视频帧之间是不同的。Or, compare the gray levels of the pixels at the set positions of the video frames respectively, and when the gray level difference of the pixels at each set position is less than or equal to the set threshold, determine the difference between the sampled video frames The rate of change is less than or equal to the set threshold. For example, select 5 position points at the center position and four corners of the video frame, and obtain the gray levels of the pixels at the corresponding 5 positions for every two video frames sampled, and the gray level difference at the 5 positions If they are all less than or equal to the set threshold value, it is determined that the video frames are the same; otherwise, it is determined that the video frames are different.

当然,也可以通过视频帧的其他指标来确定视频帧之间的变化情况,本发明不限定确定视频帧是否变化的方式。Of course, other indicators of the video frames can also be used to determine the changes between the video frames, and the present invention does not limit the manner of determining whether the video frames change.

步骤106,清除帧记录,并返回步骤102。Step 106, clear frame records, and return to step 102.

本步骤中,将当前缓存的视频记录删除,以重新缓存新发送的视频数据。In this step, the currently cached video record is deleted to re-cache the newly sent video data.

步骤107,暂停视频传输,并通知通话对方重复播放前一设定时段T内的视频数据。Step 107, suspend the video transmission, and notify the calling party to repeat playing the video data in the previous set period T.

当确定视频基本无变化后,不再向通话对方移动终端发送当前所拍摄视频,而是通知通话对方重复播放前一设定时段T内的视频数据。本发明中,作为接收方的移动终端,需要缓存所接收到的视频数据,以便在接收到发送方的重复播放通知后重复播放该缓存的视频数据。When it is determined that the video has basically no change, the currently captured video is no longer sent to the mobile terminal of the calling party, but the video data in the previous set period T is notified to be played repeatedly. In the present invention, the mobile terminal as the receiver needs to buffer the received video data, so as to repeatedly play the buffered video data after receiving the repeat playback notification from the sender.

本发明中,发送视频数据的一方移动终端在确定视频变化不大时,也可以不必通知通话对方的移动终端,而通话对方的移动终端可以在未接收到对方移动终端的视频流后,即刻重复播放之前缓存的T内的视频数据。In the present invention, when the mobile terminal of the party sending the video data determines that the video has not changed much, it does not need to notify the mobile terminal of the other party, and the mobile terminal of the other party can repeat the video immediately after not receiving the video stream of the other party's mobile terminal. Play the previously cached video data in T.

步骤108,清除帧记录,等待设定时段T后,返回步骤103以重新发送移动终端当前拍摄的视频数据。Step 108, clear frame records, wait for a set period of time T, and return to step 103 to resend the video data currently captured by the mobile terminal.

本发明中,虽然T内的视频变化较小,但并不能保证较长的一段时期内视频仍无变化,并且,如果反复播放同一段视频,会导致通话的体验较差,因此,重复播放视频后,即开始重新将当前拍摄的视频发送至通话对方的移动终端。In the present invention, although the video changes in T are small, it cannot guarantee that the video remains unchanged for a long period of time, and if the same video is played repeatedly, the call experience will be poor. Therefore, repeated video playback After that, the currently captured video will be sent to the mobile terminal of the other party again.

图2为本发明实施例的视频通话装置的组成结构示意图,如图2所示,本示例的视频通话装置包括发送单元20、采样单元21、确定单元22和通知单元23,其中:FIG. 2 is a schematic diagram of the composition and structure of a video calling device according to an embodiment of the present invention. As shown in FIG. 2 , the video calling device of this example includes a sending unit 20, a sampling unit 21, a determining unit 22, and a notification unit 23, wherein:

发送单元20,用于发送视频数据;A sending unit 20, configured to send video data;

采样单元21,用于对设定时段内发送的视频数据进行帧采样;The sampling unit 21 is used to perform frame sampling on the video data sent within the set period of time;

确定单元22,用于确定采样的视频帧之间的变化率是否小于或小于等于设定阈值,是时触发所述发送单元不再发送视频数据,并触发所述通知单元23;A determining unit 22, configured to determine whether the rate of change between the sampled video frames is less than or equal to a set threshold, and trigger the sending unit to no longer send video data, and trigger the notification unit 23;

通知单元23,用于通知接收端重复播放前一所述设定时段内的视频数据。The notification unit 23 is configured to notify the receiving end to repeatedly play the video data within the previous set period.

在图2所示的视频通话装置的基础上,本示例的视频通话装置还包括接收单元(图2中未示出)、缓存单元(图2中未示出)和播放单元(图2中未示出),其中:On the basis of the video call device shown in Figure 2, the video call device of this example also includes a receiving unit (not shown in Figure 2), a buffer unit (not shown in Figure 2) and a playback unit (not shown in Figure 2 shown), where:

接收单元,用于接收的设定时段内的视频数据;以及,接收发送端发送的重复播放通知,并触发所述播放单元;The receiving unit is used to receive video data within the set period of time; and receives the repeat playback notification sent by the sending end, and triggers the playback unit;

缓存单元,用于对所述接收单元接收的设定时段内的视频数据进行缓存;a buffer unit, configured to buffer video data within a set period of time received by the receiving unit;

播放单元,用于播放缓存的所述设定时段内的视频数据。The playing unit is used to play the video data within the set period of time in the cache.

在图2所示的视频通话装置的基础上,本示例的视频通话装置还包括:On the basis of the video calling device shown in Figure 2, the video calling device of this example also includes:

定时单元(图2中未示出),用于在所述通知单元通知接收端重复播放前一所述设定时段内的视频数据后,等待所述设定时段,重新触发所述发送单元20发送当前拍摄的视频数据,所述采样单元21对下一所述设定时段内发送的视频数据进行帧采样,所述确定单元22重新确定采样的视频帧之间的变化率是否小于或小于等于设定阈值。A timing unit (not shown in FIG. 2 ), used to wait for the set period after the notification unit notifies the receiving end to repeatedly play the video data in the previous set period, and re-trigger the sending unit 20 Send the currently shot video data, the sampling unit 21 performs frame sampling on the video data sent in the next set period, and the determination unit 22 re-determines whether the rate of change between the sampled video frames is less than or equal to Set the threshold.

在所述确定单元确定采样的视频帧之间的变化率大于等于或大于设定阈值时,触发所述发送单元20继续发送当前拍摄的视频数据,所述采样单元21对下一所述设定时段内发送的视频数据进行帧采样,所述确定单元22重新确定采样的视频帧之间的变化率是否小于或小于等于设定阈值。When the determination unit determines that the rate of change between the sampled video frames is greater than or equal to or greater than the set threshold, the sending unit 20 is triggered to continue sending the currently captured video data, and the sampling unit 21 sets the next The video data sent within the period is subjected to frame sampling, and the determination unit 22 re-determines whether the rate of change between the sampled video frames is less than or equal to a set threshold.

上述采样单元,还用于采样所述设定时段内发送的视频数据的首视频帧及尾视频帧;或者,以等间隔方式采样所述设定时段内发送的视频帧;或者,以等间隔方式采样所述设定时段内发送的视频帧,所述采样视频帧中包括所述视频数据的首视频帧及尾视频帧。The above-mentioned sampling unit is also used to sample the first video frame and the last video frame of the video data sent within the set period; or, sample the video frames sent within the set period at equal intervals; or, at equal intervals The method samples the video frames sent within the set time period, and the sampled video frames include the first video frame and the last video frame of the video data.

上述确定单元22,还用于确定采样的每两个视频帧之间的亮度差值小于或小于等于设定阈值时,确定采样的视频帧之间的变化率小于或小于等于设定阈值;The above determination unit 22 is also used to determine that the rate of change between the sampled video frames is less than or equal to the set threshold when the brightness difference between every two sampled video frames is less than or equal to the set threshold;

对视频帧的设定位置处的像素的灰度等级分别进行对比,在各设定位置处的像素的灰度等级差小于或小于等于设定阈值时,确定采样的视频帧之间的变化率小于或小于等于设定阈值。Compare the gray levels of the pixels at the set positions of the video frames respectively, and determine the rate of change between the sampled video frames when the gray level difference of the pixels at each set position is less than or equal to the set threshold Less than or equal to the set threshold.

本领域技术人员应当理解,图2所示的视频通话装置涉及的处理单元的功能能通过硬件电路,或由处理器执行相应的软件所实现。上述各处理单元的功能,可结合前述本发明视频通话方法的相关实施例及实例的描述而理解。Those skilled in the art should understand that the functions of the processing unit involved in the video calling device shown in FIG. 2 can be realized by hardware circuits, or by executing corresponding software by a processor. The functions of the above processing units can be understood in combination with the descriptions of the above-mentioned related embodiments and examples of the video call method of the present invention.

本发明还记载了一种移动终端,包括图2所示的流控装置。The present invention also records a mobile terminal, including the flow control device shown in FIG. 2 .

显然,本领域的技术人员应该明白,上述的本发明的各处理单元或各步骤可以用通用的计算装置来实现,其可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,其可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each processing unit or each step of the present invention described above can be implemented by a general-purpose computing device, which can be concentrated on a single computing device, or distributed across a plurality of computing devices. Optionally, it can be implemented with program codes executable by a computing device, thus, they can be stored in a storage device and executed by a computing device, or they can be made into individual integrated circuit modules, or they can be A plurality of modules or steps in the process are realized by making a single integrated circuit module. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.

Claims (11)

1.一种视频通话方法,其特征在于,所述方法包括:1. A video call method, characterized in that the method comprises: 在视频通话过程中对设定时段内发送的视频数据进行帧采样,确定采样的视频帧之间的变化率小于或小于等于设定阈值时,不再发送视频数据,通知接收端重复播放前一所述设定时段内的视频数据;During the video call, frame sampling is performed on the video data sent within the set period, and when the change rate between the sampled video frames is determined to be less than or equal to the set threshold, no more video data is sent, and the receiving end is notified to play the previous one repeatedly video data within the set time period; 等待所述设定时段,重新发送当前拍摄的视频数据,对下一所述设定时段内发送的视频数据进行帧采样,并重新确定采样的视频帧之间的变化率是否小于或小于等于设定阈值。Waiting for the set period, resending the currently captured video data, performing frame sampling on the video data sent in the next set period, and re-determining whether the rate of change between the sampled video frames is less than or equal to the set Set the threshold. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that the method further comprises: 对接收的设定时段内的视频数据进行缓存,接收到发送端发送的重复播放通知时,播放缓存的所述设定时段内的视频数据。The received video data within the set period is cached, and when the repeat playback notification sent by the sending end is received, the cached video data within the set period is played. 3.根据权利要求1所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1, characterized in that the method further comprises: 确定采样的视频帧之间的变化率大于等于或大于设定阈值时,继续发送当前拍摄的视频数据,并对下一所述设定时段内发送的视频数据进行帧采样,重新确定采样的视频帧之间的变化率是否小于或小于等于设定阈值。When it is determined that the rate of change between the sampled video frames is greater than or equal to or greater than the set threshold, continue to send the currently captured video data, and perform frame sampling on the video data sent within the next set period, and re-determine the sampled video Whether the rate of change between frames is less than or equal to the set threshold. 4.根据权利要求1、2或3所述的方法,其特征在于,所述对设定时段内发送的视频数据进行帧采样,包括:4. The method according to claim 1, 2 or 3, wherein the frame sampling of the video data sent within the set period of time comprises: 采样所述设定时段内发送的视频数据的首视频帧及尾视频帧;Sampling the first video frame and the last video frame of the video data sent within the set period of time; 或者,以等间隔方式采样所述设定时段内发送的视频帧;Or, sampling the video frames sent within the set period of time in an equal interval; 或者,以等间隔方式采样所述设定时段内发送的视频帧,采样视频帧中包括所述视频数据的首视频帧及尾视频帧。Alternatively, the video frames sent within the set period of time are sampled at equal intervals, and the sampled video frames include the first video frame and the last video frame of the video data. 5.根据权利要求1、2或3所述的方法,其特征在于,所述确定采样的视频帧之间的变化率小于或小于等于设定阈值,包括:5. The method according to claim 1, 2 or 3, wherein the rate of change between the determined sampled video frames is less than or equal to a set threshold, comprising: 确定采样的每两个视频帧之间的亮度差值小于或小于等于设定阈值时,确定采样的视频帧之间的变化率小于或小于等于设定阈值;When it is determined that the brightness difference between every two video frames sampled is less than or equal to the set threshold, it is determined that the rate of change between the sampled video frames is less than or equal to the set threshold; 或者,对视频帧的设定位置处的像素的灰度等级分别进行对比,在各设定位置处的像素的灰度等级差小于或小于等于设定阈值时,确定采样的视频帧之间的变化率小于或小于等于设定阈值。Or, compare the gray levels of the pixels at the set positions of the video frames respectively, and when the gray level difference of the pixels at each set position is less than or equal to the set threshold, determine the difference between the sampled video frames The rate of change is less than or equal to the set threshold. 6.一种视频通话装置,其特征在于,所述装置包括发送单元、采样单元、确定单元和通知单元,其中:6. A video call device, characterized in that the device comprises a sending unit, a sampling unit, a determining unit and a notification unit, wherein: 发送单元,用于发送视频数据;a sending unit, configured to send video data; 采样单元,用于在视频通话过程中对设定时段内发送的视频数据进行帧采样;The sampling unit is used to perform frame sampling on the video data sent within the set period during the video call; 确定单元,用于确定采样的视频帧之间的变化率是否小于或小于等于设定阈值,是时触发所述发送单元不再发送视频数据,并触发所述通知单元;A determining unit, configured to determine whether the rate of change between sampled video frames is less than or equal to a set threshold, and trigger the sending unit to no longer send video data, and trigger the notification unit; 通知单元,用于通知接收端重复播放前一所述设定时段内的视频数据;The notification unit is used to notify the receiving end to repeat playing the video data in the previous set period; 所述装置还包括:The device also includes: 定时单元,用于在所述通知单元通知接收端重复播放前一所述设定时段内的视频数据后,等待所述设定时段,重新触发所述发送单元发送当前拍摄的视频数据,所述采样单元对下一所述设定时段内发送的视频数据进行帧采样,所述确定单元重新确定采样的视频帧之间的变化率是否小于或小于等于设定阈值。The timing unit is used to wait for the set period of time after the notification unit notifies the receiving end to repeatedly play the video data in the previous set period, and re-trigger the sending unit to send the currently captured video data, the The sampling unit performs frame sampling on the video data sent in the next set period, and the determination unit re-determines whether the rate of change between the sampled video frames is less than or equal to the set threshold. 7.根据权利要求6所述的装置,其特征在于,所述装置还包括接收单元、缓存单元和播放单元,其中:7. The device according to claim 6, further comprising a receiving unit, a buffer unit and a playback unit, wherein: 接收单元,用于接收的设定时段内的视频数据;以及,接收发送端发送的重复播放通知,并触发所述播放单元;The receiving unit is used to receive video data within the set period of time; and receives the repeat playback notification sent by the sending end, and triggers the playback unit; 缓存单元,用于对所述接收单元接收的设定时段内的视频数据进行缓存;a buffer unit, configured to buffer video data within a set period of time received by the receiving unit; 播放单元,用于播放缓存的所述设定时段内的视频数据。The playing unit is used to play the video data within the set period of time in the cache. 8.根据权利要求6所述的装置,其特征在于,在所述确定单元确定采样的视频帧之间的变化率大于等于或大于设定阈值时,触发所述发送单元继续发送当前拍摄的视频数据,所述采样单元对下一所述设定时段内发送的视频数据进行帧采样,所述确定单元重新确定采样的视频帧之间的变化率是否小于或小于等于设定阈值。8. The device according to claim 6, wherein when the determination unit determines that the rate of change between sampled video frames is greater than or equal to or greater than a set threshold, the sending unit is triggered to continue sending the currently captured video data, the sampling unit performs frame sampling on the video data sent in the next set period, and the determination unit re-determines whether the rate of change between the sampled video frames is less than or equal to the set threshold. 9.根据权利要求6、7或8所述的装置,其特征在于,所述采样单元,还用于采样所述设定时段内发送的视频数据的首视频帧及尾视频帧;或者,以等间隔方式采样所述设定时段内发送的视频帧;或者,以等间隔方式采样所述设定时段内发送的视频帧,采样视频帧中包括所述视频数据的首视频帧及尾视频帧。9. The device according to claim 6, 7 or 8, wherein the sampling unit is also used to sample the first video frame and the last video frame of the video data sent within the set period of time; or, with Sampling the video frames sent in the set period in equal intervals; or sampling the video frames sent in the set period in equal intervals, including the first video frame and the tail video frame of the video data in the sampled video frames . 10.根据权利要求6、7或8所述的装置,其特征在于,所述确定单元,还用于确定采样的每两个视频帧之间的亮度差值小于或小于等于设定阈值时,确定采样的视频帧之间的变化率小于或小于等于设定阈值;10. The device according to claim 6, 7 or 8, wherein the determining unit is further configured to determine that when the brightness difference between every two video frames sampled is less than or equal to a set threshold, Determine that the rate of change between sampled video frames is less than or equal to a set threshold; 对视频帧的设定位置处的像素的灰度等级分别进行对比,在各设定位置处的像素的灰度等级差小于或小于等于设定阈值时,确定采样的视频帧之间的变化率小于或小于等于设定阈值。Compare the gray levels of the pixels at the set positions of the video frames respectively, and determine the rate of change between the sampled video frames when the gray level difference of the pixels at each set position is less than or equal to the set threshold Less than or equal to the set threshold. 11.一种移动终端,其特征在于,所述移动终端包括权利要求6至10任一项所述的视频通话装置。11. A mobile terminal, characterized in that the mobile terminal comprises the video call device according to any one of claims 6 to 10.
CN201310001109.2A 2013-01-04 2013-01-04 Video call method and device, mobile terminal Active CN103916620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310001109.2A CN103916620B (en) 2013-01-04 2013-01-04 Video call method and device, mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310001109.2A CN103916620B (en) 2013-01-04 2013-01-04 Video call method and device, mobile terminal

Publications (2)

Publication Number Publication Date
CN103916620A CN103916620A (en) 2014-07-09
CN103916620B true CN103916620B (en) 2017-06-20

Family

ID=51041972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310001109.2A Active CN103916620B (en) 2013-01-04 2013-01-04 Video call method and device, mobile terminal

Country Status (1)

Country Link
CN (1) CN103916620B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375700A (en) * 2015-07-24 2017-02-01 中国移动通信集团云南有限公司 Method and mobile terminal for video transmission
CN105072374A (en) * 2015-07-29 2015-11-18 小米科技有限责任公司 Video communication method and device
CN105812710B (en) * 2016-05-05 2019-01-04 广东小天才科技有限公司 Method and system for optimizing image quality in video call process
CN107426142B (en) * 2016-12-28 2020-04-21 广州大气候农业科技有限公司 Image returning method, image storage method, node of Internet of things and server
CN106817410B (en) * 2016-12-28 2020-04-21 广州大气候农业科技有限公司 Image returning method, image storage method, node of Internet of things and server
CN107707969A (en) * 2017-09-04 2018-02-16 深圳市屯奇尔科技有限公司 Video broadcasting method, device and terminal device
CN107995454A (en) * 2017-12-02 2018-05-04 程桂平 Changed based on the human face characteristic point in video to determine whether the method for transmitting video data
CN109194974B (en) * 2018-09-28 2020-12-01 北京网高科技股份有限公司 Media low-delay communication method and system for network video live broadcast
CN115442569A (en) * 2022-09-06 2022-12-06 杭州登虹科技有限公司 Method for reducing audio and video transmission flow and storage space

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1379589A (en) * 2001-03-30 2002-11-13 罗技欧洲公司 Network photography and band width control based on motion and audio frequency detection
WO2004014077A1 (en) * 2002-08-06 2004-02-12 Motorola, Inc., A Corporation Of The State Of Delaware Method and apparatus for reducing computational complexity in video encoders
CN1731859A (en) * 2005-09-09 2006-02-08 北京中星微电子有限公司 Video compression method and video system using the method
US7671873B1 (en) * 2005-08-11 2010-03-02 Matrox Electronics Systems, Ltd. Systems for and methods of processing signals in a graphics format

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1379589A (en) * 2001-03-30 2002-11-13 罗技欧洲公司 Network photography and band width control based on motion and audio frequency detection
WO2004014077A1 (en) * 2002-08-06 2004-02-12 Motorola, Inc., A Corporation Of The State Of Delaware Method and apparatus for reducing computational complexity in video encoders
US7671873B1 (en) * 2005-08-11 2010-03-02 Matrox Electronics Systems, Ltd. Systems for and methods of processing signals in a graphics format
CN1731859A (en) * 2005-09-09 2006-02-08 北京中星微电子有限公司 Video compression method and video system using the method

Also Published As

Publication number Publication date
CN103916620A (en) 2014-07-09

Similar Documents

Publication Publication Date Title
CN103916620B (en) Video call method and device, mobile terminal
CN106686438B (en) method, device and system for synchronously playing audio images across equipment
CN108347580B (en) Method for processing video frame data and electronic equipment
CN112394896B (en) Reverse screen-throwing frame rate control method, device and computer readable storage medium
CN106488265A (en) A kind of method and apparatus sending Media Stream
JP6382345B2 (en) Network jitter processing method, apparatus, terminal device, program, and recording medium
KR102225235B1 (en) Video encoding method, apparatus, and device, and storage medium
EP2466911A1 (en) Method and device for fast pushing unicast stream in fast channel change
US20100172335A1 (en) Data transmission method and apparatus based on Wi-Fi multimedia
WO2020151570A1 (en) Congestion control method and apparatus, electronic device, and storage medium
CN112689191B (en) Screen projection control method, terminal and computer readable storage medium
CN104427286A (en) Method and system for making video call
WO2021253966A1 (en) Data service communication method, terminal, electronic device and storage medium
CN109088997B (en) Game audio control method, terminal and computer readable storage medium
JP2017503399A (en) Handling of video frames damaged by camera movement
CN111369990A (en) Audio playing method, device, terminal, server and storage medium
CN108667871B (en) Transmission method and device based on P2P
CN112433690B (en) Data processing method, terminal and computer readable storage medium
CN108259809A (en) Video call processing method and device, terminal and storage medium
US8493429B2 (en) Method and terminal for synchronously recording sounds and images of opposite ends based on circuit domain video telephone
WO2020056751A1 (en) Transmission configuration method and apparatus, device, system, and storage medium
CN107223360B (en) A method and device for sending cache status
US11665586B2 (en) Method and apparatus for data transmission, electronic device and computer readable storage medium
CN112887776B (en) Method, equipment and computer readable storage medium for reducing audio delay
CN101662640B (en) Method and device for capturing pictures

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant