TWI410137B - Video frame flow control device and method for controlling video frame - Google Patents

Video frame flow control device and method for controlling video frame Download PDF

Info

Publication number
TWI410137B
TWI410137B TW98123100A TW98123100A TWI410137B TW I410137 B TWI410137 B TW I410137B TW 98123100 A TW98123100 A TW 98123100A TW 98123100 A TW98123100 A TW 98123100A TW I410137 B TWI410137 B TW I410137B
Authority
TW
Taiwan
Prior art keywords
video frame
time interval
video
unit
frames
Prior art date
Application number
TW98123100A
Other languages
Chinese (zh)
Other versions
TW201103335A (en
Inventor
Yongping Zheng
Huafeng Mai
Shihkuang Tsai
Original Assignee
Inventec Appliances Corp
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 Inventec Appliances Corp filed Critical Inventec Appliances Corp
Priority to TW98123100A priority Critical patent/TWI410137B/en
Publication of TW201103335A publication Critical patent/TW201103335A/en
Application granted granted Critical
Publication of TWI410137B publication Critical patent/TWI410137B/en

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

A video frame flow control device is used for capturing a plurality of video frames from a camera, and controls the video frame flow in accordance with a plurality of audio signals captured from a microphone by an audio capture unit. The video frame flow control device includes a video capture unit, a first calculating unit, a second calculating unit and an analysis unit. The video capture unit successively defines the captured video frames as, {Sn}, n=1, 2,..., N, N being a positive integer and there is a fist time interval between the every two neighboring video frames. Furthermore, the first video frame is captured right after the second video frame. The first calculating unit is used for calculating the first time interval. The second calculating unit is used for calculating a second time interval, wherein the second time interval is taken to finish sending the second video frame. When the first video frame is captured, the analysis unit will compare the first time interval with the second time interval to determine whether the first video frame is to be kept or not.

Description

一種視頻幀流控裝置及視頻幀的控制方法Video frame flow control device and video frame control method

本發明是有關於一種幀流控裝置及幀控制方法,特別是有關於一種視頻幀流控裝置及視頻幀控制方法。The present invention relates to a frame flow control device and a frame control method, and more particularly to a video frame flow control device and a video frame control method.

由於通訊科技產業的蓬勃快速發展,不僅大幅提升生活上的便利性,亦更是在時間與空間上造成了壓縮,使得現代的每個人不再侷限制約於地理上的疆界,而能夠使彼此間更緊密的結合互動以及大量訊息知識的交流,使追求達成共同利益福祉最優化。其中,3G網路的普及化,更使得信息傳遞與知識交流更便捷、無阻礙。Due to the rapid development of the communication technology industry, it not only greatly enhances the convenience of life, but also causes compression in time and space, so that everyone in modern times no longer restricts the boundaries of geography, but can make each other Closer interaction and the exchange of a large amount of information knowledge make it possible to pursue the best interests of the common interests. Among them, the popularization of 3G networks makes information transmission and knowledge exchange more convenient and unimpeded.

當完整的3G網路系統建置之後,除了能提供語音通信功能,最重要的是,3G將為數據服務開啟一扇大門,令使用者可隨時隨地藉由其行動裝置以取得無間隙的服務。其中,具備視訊電話的3G手機之需求更是與日俱增,且獲得越來越多用戶的青睞,因其不僅提供了傳統的語音電話功能,更增加視訊分享的功能,從而讓使用者在語音通話的同時,分享即時相機畫面或視訊,以豐富其視覺體驗與添增使用樂趣。When the complete 3G network system is built, in addition to providing voice communication functions, the most important thing is that 3G will open a door for data services, enabling users to obtain seamless services through their mobile devices anytime, anywhere. . Among them, the demand for 3G mobile phones with video phones is increasing day by day, and it is favored by more and more users, because it not only provides the traditional voice call function, but also increases the video sharing function, so that users can make voice calls. At the same time, share instant camera images or video to enrich your visual experience and add fun.

而目前3G手機之系統處理流程則如下所示:首先,於視訊電話呼叫接通後,進行3G-324M層的握手動作,接著在完成協議層的握手動作後,倘若雙方對視頻電話的協商成功,則音頻與視頻將經過各自對應的硬件設備,予以擷取數據並且根據握手協商結果,進行格式的數據壓縮處理,再來,經過3G-324M協議的子協議H.223復合為單一的二進制數據流,最後則經過無線網絡設備發送到對方。而接收端的處理流程將是一個反向的過程,接收端首先對接收到的二進制數據流進行H.223協議的解復合處理,將其分解為音頻和視頻數據,並進行解壓送到相應的硬體播放和顯示。At present, the system processing flow of the 3G mobile phone is as follows: First, after the video call is connected, the handshake operation of the 3G-324M layer is performed, and then after the handshake action of the protocol layer is completed, if the two parties successfully negotiate the video call. Then, the audio and video will be retrieved by the corresponding hardware devices, and the data compression processing of the format is performed according to the handshake negotiation result, and then the sub-protocol H.223 of the 3G-324M protocol is combined into a single binary data. The stream is finally sent to the other party via the wireless network device. The processing flow at the receiving end will be a reverse process. The receiving end first performs the decomposed processing of the received binary data stream by the H.223 protocol, decomposes it into audio and video data, and decompresses it to the corresponding hard. Play and display.

然而,於上述數據處理流程中,視頻電話在通話時主要存在視頻延時問題,其原因可包含:網絡延時因素、視頻幀於擷取壓縮及發送等數據處理過程上,所造成的延時。其中,網絡延時將會隨著3G網絡系統的性能提升得到有效的解決,另外,視頻幀的處理延時主要是由於視頻幀在擷取後,需要經過壓縮和3G-324M的H.223復合協議復合後才能透過無線網絡發送出去。由於目前的視頻電話頻帶寬固定為64K,而攝像頭對於視頻幀的擷取頻率一般往往會隨著系統負荷的變化而呈現浮動,因此,單位時間內所擷取的視頻幀數目量將不固定,使得當系統負載較大時,自攝像頭擷取的視頻幀無法及時壓縮和根據H.223復合協議以進行復合。這將導致復合後的產生大量滯留於發送隊列中,從而造成接收端視頻幀的延時問題。其中,相對於視頻,音頻經過壓縮處理後其數據量極小,基本將不構成影響。However, in the above data processing flow, the video phone mainly has a video delay problem during the call, and the reason may include: a network delay factor, a delay caused by a video frame in a data processing process such as capturing and transmitting. Among them, the network delay will be effectively solved with the performance improvement of the 3G network system. In addition, the processing delay of the video frame is mainly due to the compression of the video frame after the capture and the 3G-324M H.223 composite protocol composite. It can only be sent out over the wireless network. Since the frequency bandwidth of the current video telephone is fixed at 64K, the frequency of capturing the video frame of the camera generally tends to fluctuate as the system load changes. Therefore, the number of video frames captured per unit time will not be fixed. Therefore, when the system load is large, the video frames captured from the camera cannot be compressed in time and combined according to the H.223 composite protocol. This will cause a large amount of post-compositing to stay in the transmit queue, causing delays in the video frame at the receiving end. Among them, compared with the video, after the audio is compressed, the amount of data is extremely small, which basically does not affect.

因此,本發明將提供一種視頻幀流控裝置,可藉由其運作方法,使得於視頻幀處理流程中,適時地調整視頻幀量,以改善延時問題,從而提升效能與穩定性。Therefore, the present invention provides a video frame flow control device, which can adjust the video frame amount in a timely manner in the video frame processing flow to improve the delay problem, thereby improving performance and stability.

本發明一方面是提供一種視頻幀流控裝置,其可實際調整視頻幀量,以降低處理視頻幀過程中,所造成的延時問題。An aspect of the present invention provides a video frame flow control apparatus that can actually adjust a video frame amount to reduce a delay caused by processing a video frame.

根據本發明之一實施方式,一種視頻幀流控裝置用於自攝像頭擷取複數個視頻幀,並且根據音頻擷取單元自麥克風所擷取之複數個音頻,進而控制視頻幀流量。視頻幀流控裝置包含視頻幀擷取單元、第一計算單元、第二計算單元以及分析單元。視頻幀擷取單元用以將所擷取之視頻幀,依序定義為第一視頻幀至第N視頻幀,而第一視頻幀在第二視頻幀之後被擷取,其中任兩連續之視頻幀具有一第一時間間隔。第一計算單元則用以計算第一時間間隔。第二計算單元用以根據傳輸頻寬與所擷取之音頻,計算一第二時間間隔,其中第二時間間隔為預估第二視頻幀完成發送所需時間。而分析單元用以當視頻幀擷取單元擷取第一視頻幀時,比較第一時間間隔與第二時間間隔,來決定拋棄或保留第一視頻幀。According to an embodiment of the present invention, a video frame flow control device is configured to capture a plurality of video frames from a camera, and control video frame traffic according to a plurality of audios captured by the audio capture unit from the microphone. The video frame flow control device includes a video frame capture unit, a first calculation unit, a second calculation unit, and an analysis unit. The video frame capturing unit is configured to sequentially define the captured video frames as the first video frame to the Nth video frame, and the first video frame is captured after the second video frame, where any two consecutive videos are captured. The frame has a first time interval. The first calculation unit is then used to calculate the first time interval. The second calculating unit is configured to calculate a second time interval according to the transmission bandwidth and the captured audio, wherein the second time interval is an estimated time required for the second video frame to complete the transmission. The analyzing unit is configured to compare the first time interval with the second time interval when the video frame capturing unit captures the first video frame to decide to discard or retain the first video frame.

本發明另一方面是提供一種視頻幀的控制方法,其可以避免視頻幀的滯留,從而提高視頻之處理效率。Another aspect of the present invention is to provide a method for controlling a video frame, which can avoid the stagnation of a video frame, thereby improving the processing efficiency of the video.

依照本發明之另一實施方式,一種視頻幀的控制方法,包含下列步驟。在本實施例中,首先,自一攝像頭依序擷取複數個視頻幀,分別依序定義為第一視頻幀至第N視頻幀,而第一視頻幀在第二視頻幀之後被擷取,其中任兩連續之視頻幀具有一第一時間間隔。接著,根據所擷取之視頻幀,計算第一時間間隔;並且根據一傳輸頻寬與單位時間內所擷取之複數個音頻,計算第二時間間隔,其中第二時間間隔即為預估第二視頻幀完成發送所需時間。最後,比較第一時間間隔與第二時間間隔,來決定拋棄或保留第一視頻幀。According to another embodiment of the present invention, a method for controlling a video frame includes the following steps. In this embodiment, first, a plurality of video frames are sequentially captured from a camera, and are respectively defined as a first video frame to an Nth video frame, and the first video frame is captured after the second video frame. Any two consecutive video frames have a first time interval. Then, calculating a first time interval according to the captured video frame; and calculating a second time interval according to a transmission bandwidth and a plurality of audios taken in a unit time, wherein the second time interval is an estimation The time required for the second video frame to complete transmission. Finally, the first time interval and the second time interval are compared to decide to discard or retain the first video frame.

如此,視頻幀流控裝置將可過濾多餘的視頻幀,減低視頻幀延遲之問題,進而提高視頻的處理效率。In this way, the video frame flow control device can filter the excess video frames, reducing the problem of video frame delay, thereby improving the processing efficiency of the video.

為了使本發明之敘述更加詳盡與完備,可參照所附之圖式及以下所述各種實施方式,圖式中相同之號碼代表相同或相似之元件。另一方面,眾所週知的元件與步驟並未描述於實施方式中,以避免造成本發明不必要的限制。In order to make the description of the present invention more complete and complete, reference is made to the accompanying drawings and the accompanying drawings. On the other hand, well-known elements and steps are not described in the embodiments to avoid unnecessarily limiting the invention.

第1圖係繪示依照本發明一實施方式之一種視頻幀流控裝置的功能方塊圖。如圖所示,一種視頻幀流控裝置100用於自攝像頭150擷取複數個視頻幀,並且根據音頻擷取單元160自麥克風170所擷取之複數個音頻,進而控制視頻幀流量。視頻幀流控裝置100包含視頻幀擷取單元110、第一計算單元120、第二計算單元130以及分析單元140。視頻幀擷取單元110將所擷取之視頻幀,依序定義為第一視頻幀至第N視頻幀,而第一視頻幀在第二視頻幀之後被擷取,其中任兩連續之視頻幀具有一第一時間間隔T1。第一計算單元120,則用以根據所擷取之視頻幀,計算第一時間間隔T1。第二計算單元130,用以根據傳輸頻寬與所擷取之複數個音頻的位元數,計算一第二時間間隔T2,其中第二時間間隔T2為預估第二視頻幀完成發送所需時間。而分析單元140用以當視頻幀擷取單元110擷取第一視頻幀時,比較第一時間間隔T1與第二時間間隔T2,來決定拋棄或保留第一視頻幀。FIG. 1 is a functional block diagram of a video frame flow control apparatus according to an embodiment of the present invention. As shown, a video frame flow control device 100 is configured to capture a plurality of video frames from the camera 150 and control the video frame traffic according to the plurality of audios captured by the audio capture unit 160 from the microphone 170. The video frame stream control apparatus 100 includes a video frame capturing unit 110, a first calculating unit 120, a second calculating unit 130, and an analyzing unit 140. The video frame capturing unit 110 sequentially defines the captured video frames as the first video frame to the Nth video frame, and the first video frame is captured after the second video frame, where any two consecutive video frames are captured. There is a first time interval T1. The first calculating unit 120 is configured to calculate the first time interval T1 according to the captured video frame. The second calculating unit 130 is configured to calculate a second time interval T2 according to the transmission bandwidth and the number of bits of the plurality of audios that are captured, wherein the second time interval T2 is used to estimate that the second video frame is completely transmitted. time. The analyzing unit 140 is configured to compare the first time interval T1 and the second time interval T2 when the video frame capturing unit 110 captures the first video frame to decide to discard or retain the first video frame.

在一實施例中,第一計算單元120係藉由根據第二至第六幀視頻幀平均壓縮時間,以計算第一時間間隔T1,並提供至分析單元140。當視頻幀擷取單元110所擷取之視頻幀數目小於六幀時,則其中每一視頻幀直接進行格式壓縮復合。然而,第一時間間隔T1之計算方法並不以此為限,例如,在其他之實施例中,亦可透過計算第二至第八幀視頻幀平均壓縮時間,作為第一時間間隔T1,並且當所擷取之視頻幀數目未達到八幀時,其中每一視頻幀則直接進行格式壓縮復合。In an embodiment, the first calculating unit 120 calculates the first time interval T1 by providing an average compression time according to the second to sixth frames of video frames, and provides the same to the analyzing unit 140. When the number of video frames captured by the video frame capturing unit 110 is less than six frames, each of the video frames is directly subjected to format compression combining. However, the calculation method of the first time interval T1 is not limited thereto. For example, in other embodiments, the average compression time of the second to eighth frames of video frames may also be calculated as the first time interval T1, and When the number of captured video frames does not reach eight frames, each of the video frames is directly subjected to format compression composite.

此外,上述之傳輸頻寬為64K,而且音頻擷取單元160係自麥克風170擷取音頻。因此,第二計算單元130將可根據實際視頻與音頻數據大小以及傳輸頻寬,計算出第二時間間隔T2,進而提供至分析單元140,以與第一時間間隔T1進行比較分析。In addition, the above transmission bandwidth is 64K, and the audio capture unit 160 extracts audio from the microphone 170. Therefore, the second calculating unit 130 will calculate the second time interval T2 according to the actual video and audio data size and the transmission bandwidth, and then provide to the analyzing unit 140 to perform comparative analysis with the first time interval T1.

此外,第二計算單元130更包含一速度計算模組132與一時間間隔計算模阻134。速度計算模組132將傳輸頻寬減去音頻節取單元160於單位時間內所擷取之音頻的壓縮位元數,來計算出視頻幀的一平均發送速度。舉例而言,於一實施例中,若傳輸頻寬為64K,單位時間內所擷取之音頻的壓縮位元數為8K,則視頻幀之平均發送速度即為56K。In addition, the second calculating unit 130 further includes a speed calculating module 132 and a time interval calculating mode resistance 134. The speed calculation module 132 calculates the average transmission speed of the video frame by subtracting the transmission bandwidth from the number of compression bits of the audio captured by the audio extraction unit 160 per unit time. For example, in an embodiment, if the transmission bandwidth is 64K, and the number of compression bits of the audio captured in a unit time is 8K, the average transmission speed of the video frame is 56K.

時間間隔計算模阻134,則是根據平均發送速度,計算第二時間間隔T2,並傳送至分析單元140,其中第二時間間隔T2即為,第二視頻幀之位元數除以平均發送速度。例如,於一實施例中,若傳輸頻寬為64K,單位時間內所擷取之音頻的壓縮位元數為8K,且第二視頻幀之位元數為4K,然根據上述揭露說明可知,其視頻幀之平均發送速度為56K,從而可計算出第二時間間隔T2,為第二視頻幀之位元數為4K除以平均發送速度56K,即為0.071秒。The time interval calculation modulo 134 is calculated according to the average transmission speed, and is transmitted to the analysis unit 140, wherein the second time interval T2 is the number of bits of the second video frame divided by the average transmission speed. . For example, in an embodiment, if the transmission bandwidth is 64K, the number of compressed bits of the audio captured in a unit time is 8K, and the number of bits of the second video frame is 4K, according to the above disclosure, The average transmission speed of the video frame is 56K, so that the second time interval T2 can be calculated, and the number of bits of the second video frame is 4K divided by the average transmission speed 56K, which is 0.071 seconds.

因此,若第一時間間隔T1小於或等於第二時間間隔T2,即表示當擷取到第一視頻幀時,第二視頻幀尚未完成發送,所以此時分析單元140將拋棄第一視頻幀,以減少不必要的視頻幀壓縮處理,從而降低系統負荷。Therefore, if the first time interval T1 is less than or equal to the second time interval T2, it means that when the first video frame is captured, the second video frame has not been sent yet, so the analyzing unit 140 will discard the first video frame at this time. To reduce unnecessary video frame compression processing, thereby reducing system load.

然而,若第一時間間隔T1大於第二時間間隔T2時,即表示當擷取到第一視頻幀時,第二視頻幀已完成發送,所以分析單元140將保留第一視頻幀,隨即進行格式壓縮,並傳送至編碼器180。However, if the first time interval T1 is greater than the second time interval T2, it means that when the first video frame is captured, the second video frame has been transmitted, so the analyzing unit 140 will retain the first video frame and then format. Compressed and transmitted to the encoder 180.

如此,視頻幀流控裝置100可根據第一時間間隔T1與第二時間間隔T2,適時決定是否過濾多餘的視頻幀,以降低視頻幀延時問題,進而提高影像通話品質。In this manner, the video frame stream control apparatus 100 can determine whether to filter the unnecessary video frames according to the first time interval T1 and the second time interval T2, so as to reduce the video frame delay problem, thereby improving the image call quality.

第2圖係繪示依照本發明另一實施方式之一種視頻幀的控制方法的流程圖。本實施例之視頻幀的控制方法例如是由第1圖所繪示之視頻幀流控裝置來達成。如第2圖所示,視頻幀的控制方法200,包含下列步驟210-270。首先,步驟210係為自一攝像頭依序擷取複數個視頻幀,並且依序定義為第一視頻幀至第N視頻幀,而第一視頻幀在第二視頻幀之後被擷取,其中任兩連續之視頻幀具有一第一時間間隔T1。而步驟220為檢測所擷取之視頻幀總數目是否大於五幀,其中當視頻幀總數目小於或等於五幀時,則直接進行步驟270,即使得第一視頻幀直接進入格式壓縮、復合以及傳送至無線網路發送。另外,當所擷取的視頻幀總數目大於五幀時,則進行步驟230。2 is a flow chart showing a method for controlling a video frame according to another embodiment of the present invention. The control method of the video frame in this embodiment is achieved, for example, by the video frame flow control device shown in FIG. 1. As shown in FIG. 2, the video frame control method 200 includes the following steps 210-270. First, step 210 is to sequentially capture a plurality of video frames from a camera, and sequentially define the first video frame to the Nth video frame, and the first video frame is captured after the second video frame. Two consecutive video frames have a first time interval T1. Step 220 is to detect whether the total number of captured video frames is greater than five frames. When the total number of video frames is less than or equal to five frames, step 270 is directly performed, that is, the first video frame directly enters format compression, composite, and Transfer to the wireless network to send. In addition, when the total number of captured video frames is greater than five frames, step 230 is performed.

而步驟230為計算第二至第六幀視頻幀平均壓縮時間,作為第一時間間隔T1。接著,步驟240為根據傳輸頻寬與單位時間內所擷取之音頻的位元數,計算一第二時間間隔T2,而第二時間間隔T2即為第二視頻幀完成發送所需時間。再來,步驟250則為測定第一時間間隔T1是否大於第二時間間隔T2。Step 230 is to calculate the average compression time of the second to sixth frames of video frames as the first time interval T1. Next, in step 240, a second time interval T2 is calculated according to the transmission bandwidth and the number of bits of the audio captured in the unit time, and the second time interval T2 is the time required for the second video frame to complete the transmission. Then, step 250 is to determine whether the first time interval T1 is greater than the second time interval T2.

然而,當欲據以上述步驟來比較第一時間間隔T1與第二時間間隔T2時,其中步驟250之傳輸頻寬為64K,並藉由音頻擷取單元自麥克風擷取音頻,進而計算出擷取視頻幀之一平均發送速度,即傳輸頻寬減去單位時間內所擷取之音頻的壓縮位元數。接著將第二視頻幀之位元數除以平均發送速度,隨即可得第二時間間隔T2。However, when the first time interval T1 and the second time interval T2 are to be compared according to the above steps, the transmission bandwidth of the step 250 is 64K, and the audio is extracted from the microphone by the audio capturing unit, thereby calculating the 撷The average transmission speed of one of the video frames is taken, that is, the transmission bandwidth minus the number of compression bits of the audio captured in a unit time. The number of bits of the second video frame is then divided by the average transmission speed, and a second time interval T2 is obtained.

因此,當第一時間間隔T1小於或等於第二時間間隔T2時,即進行步驟260。步驟260為直接拋棄第一視頻幀,以避免視頻幀的滯留,從而提高視頻之處理效率。另一方面,當第一時間間隔T1大於第二時間間隔T2時,則進行步驟270。步驟270則為保留第一視頻幀,隨即進行格式壓縮及復合。Therefore, when the first time interval T1 is less than or equal to the second time interval T2, step 260 is performed. Step 260 is to directly discard the first video frame to avoid the retention of the video frame, thereby improving the processing efficiency of the video. On the other hand, when the first time interval T1 is greater than the second time interval T2, step 270 is performed. In step 270, the first video frame is reserved, and then the format is compressed and composited.

如此,視頻幀流控裝置將可透過計算第一時間間隔T1與第二時間間隔T2,拋棄多餘的視頻幀,以降低系統負載量,從而有效解決時間延遲並提供一穩定通訊品質。In this way, the video frame flow control device can discard the excess video frame by calculating the first time interval T1 and the second time interval T2 to reduce the system load, thereby effectively solving the time delay and providing a stable communication quality.

雖然本發明已以實施方式揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and the present invention can be modified and modified without departing from the spirit and scope of the present invention. The scope is subject to the definition of the scope of the patent application attached.

100...視頻幀流控裝置100. . . Video frame flow control device

110...視頻幀擷取單元110. . . Video frame capture unit

120...第一計算單元120. . . First computing unit

130...第二計算單元130. . . Second computing unit

132...速度計算模組132. . . Speed calculation module

134...時間間隔計算模組134. . . Time interval calculation module

140...分析單元140. . . Analysis unit

150...攝像頭150. . . camera

160...音頻擷取單元160. . . Audio capture unit

170...麥克風170. . . microphone

180...編碼器180. . . Encoder

200...運作方法200. . . Method of operation

210~270...步驟210~270. . . step

為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之說明如下:The above and other objects, features, advantages and embodiments of the present invention will become more apparent and understood.

第1圖係繪示依照本發明一實施方式之一種視頻幀流控裝置的功能方塊圖。FIG. 1 is a functional block diagram of a video frame flow control apparatus according to an embodiment of the present invention.

第2圖係繪示依照本發明另一實施方式之一種視頻幀的控制方法的流程圖。2 is a flow chart showing a method for controlling a video frame according to another embodiment of the present invention.

100...視頻幀流控裝置100. . . Video frame flow control device

110...視頻幀擷取單元110. . . Video frame capture unit

120...第一計算單元120. . . First computing unit

130...第二計算單元130. . . Second computing unit

132...速度計算模組132. . . Speed calculation module

134...時間間隔計算模阻134. . . Time interval calculation mode

140...分析單元140. . . Analysis unit

150...攝像頭150. . . camera

160...音頻擷取單元160. . . Audio capture unit

170...麥克風170. . . microphone

180...編碼器180. . . Encoder

Claims (12)

一種視頻幀流控裝置,用於自一攝像頭擷取N個視頻幀,其中N為正整數,並且根據一音頻擷取單元,自一麥克風所擷取之複數個音頻,進而控制該些視頻幀之流量,該視頻幀流控裝置包含:一視頻幀擷取單元,用以將所擷取之該N個視頻幀,依序定義為一第一視頻幀、一第二視頻幀、....、一第N視頻幀,而該第一視頻幀在該第二視頻幀之後被擷取,其中任兩連續之視頻幀具有一第一時間間隔;一第一計算單元,用以根據該N個視頻幀中之部分個視頻幀,計算該第一時間間隔;一第二計算單元,用以根據一傳輸頻寬與所擷取之該些音頻,計算一第二時間間隔,其中該第二時間間隔為預估該第二視頻幀完成發送所需時間;以及一分析單元,用以當該視頻幀擷取單元擷取該第一視頻幀時,比較該第一時間間隔與該第二時間間隔,來決定拋棄或保留該第一視頻幀。 A video frame flow control device is configured to extract N video frames from a camera, wherein N is a positive integer, and according to an audio capture unit, a plurality of audios captured from a microphone, thereby controlling the video frames The video frame flow control device includes: a video frame capturing unit, configured to sequentially define the captured N video frames as a first video frame, a second video frame, ... An Nth video frame, wherein the first video frame is captured after the second video frame, wherein any two consecutive video frames have a first time interval; a first computing unit is configured to use the N Calculating the first time interval by using a part of the video frames in the video frame; a second calculating unit, configured to calculate a second time interval according to a transmission bandwidth and the captured audio, wherein the second time interval The time interval is an estimated time required for the second video frame to complete the transmission; and an analyzing unit is configured to compare the first time interval with the second time when the video frame capturing unit captures the first video frame Interval, to decide to discard or retain the first video . 如申請專利範圍第1項所述之視頻幀流控裝置,其中該第一計算單元,當N大於5時,用以根據該N個視頻幀中之該第二視頻幀、該第三視頻幀、....、該第六幀視頻幀之平均壓縮時間,計算該第一時間間隔。 The video frame flow control device of claim 1, wherein the first calculating unit, when N is greater than 5, is configured to use the second video frame and the third video frame in the N video frames. The average compression time of the sixth frame video frame is calculated, and the first time interval is calculated. 如申請專利範圍第1項所述之視頻幀流控裝置, 其中該第二計算單元更包含:一速度計算模組,用以將該傳輸頻寬減去單位時間內所擷取之該些音頻的壓縮位元數,以計算出該N個視頻幀之一平均發送速度;以及一時間間隔計算模組,用以將該第二視頻幀之位元數除以該平均發送速度,以計算出該第二時間間隔。 For example, the video frame flow control device described in claim 1 is The second computing unit further includes: a speed calculation module, configured to subtract the number of compression bits of the audio captured in the unit time from the transmission bandwidth to calculate one of the N video frames An average transmission speed; and a time interval calculation module for dividing the number of bits of the second video frame by the average transmission speed to calculate the second time interval. 如申請專利範圍第1項所述之視頻幀流控裝置,其中該傳輸頻寬為64K。 The video frame flow control device of claim 1, wherein the transmission bandwidth is 64K. 如申請專利範圍第1項所述之視頻幀流控裝置,其中該分析單元,用以當該第一時間間隔小於或等於該第二時間間隔時,拋棄該第一視頻幀。 The video frame flow control device of claim 1, wherein the analyzing unit is configured to discard the first video frame when the first time interval is less than or equal to the second time interval. 如申請專利範圍第1項所述之視頻幀流控裝置,其中該分析單元,用以當該第一時間間隔大於該第二時間間隔時,保留該第一視頻幀。 The video frame flow control device of claim 1, wherein the analyzing unit is configured to reserve the first video frame when the first time interval is greater than the second time interval. 一種視頻幀的控制方法,包含:擷取N個視頻幀,其中N為正整數,並且依序將該N個視頻幀依序定義為一第一視頻幀、一第二視頻幀、....、一第N視頻幀,而該第一視頻幀在該第二視頻幀之後被擷取,其中任兩連續之視頻幀具有一第一時間間隔;根據該N個視頻幀中之部分個視頻幀,計算該第一時 間間隔;根據一傳輸頻寬與所擷取之複數個音頻,計算一第二時間間隔,其中該第二時間間隔預估為該第二視頻幀完成發送所需時間;以及當該視頻幀擷取單元擷取該第一視頻幀時,比較該第一時間間隔與該第二時間間隔,來決定拋棄或保留該第一視頻幀。 A video frame control method includes: capturing N video frames, where N is a positive integer, and sequentially defining the N video frames as a first video frame, a second video frame, ... An Nth video frame, and the first video frame is captured after the second video frame, wherein any two consecutive video frames have a first time interval; according to some of the N video frames Frame, calculate the first time Interval; calculating a second time interval according to a transmission bandwidth and the plurality of audios retrieved, wherein the second time interval is estimated to be a time required for the second video frame to complete transmission; and when the video frame is When the unit captures the first video frame, the first time interval and the second time interval are compared to decide to discard or retain the first video frame. 如申請專利範圍第7項所述之視頻幀的控制方法,其中於計算該第一時間間隔之該步驟中,當N大於5時,係根據該N個視頻幀中之該第二視頻幀、該第三視頻幀、....、該第六幀視頻幀之平均壓縮時間,計算該第一時間間隔。 The method for controlling a video frame according to claim 7, wherein in the step of calculating the first time interval, when N is greater than 5, according to the second video frame in the N video frames, The third video frame, . . . , the average compression time of the sixth frame video frame, calculates the first time interval. 如申請專利範圍第7項所述之視頻幀的控制方法,其中該傳輸頻寬為64K。 The method for controlling a video frame as described in claim 7, wherein the transmission bandwidth is 64K. 如申請專利範圍第9項所述之視頻幀的控制方法,其中計算該第二時間間隔之該步驟包含:使該傳輸頻寬減去單位時間內所擷取之該些音頻的壓縮位元數,進而計算出該N個視頻幀之一平均發送速度;以及使該第二視頻幀之位元數除以該平均發送速度,以計算出該第二時間間隔。 The method for controlling a video frame according to claim 9, wherein the step of calculating the second time interval comprises: subtracting the transmission bandwidth from the number of compressed bits of the audio captured in a unit time. And calculating an average transmission speed of the one of the N video frames; and dividing the number of bits of the second video frame by the average transmission speed to calculate the second time interval. 如申請專利範圍第7項所述之視頻幀的控制方法,其中於決定拋棄或保留該第一視頻幀之該步驟中,當該第一時間間隔小於或等於該第二時間間隔時,則拋棄該第一視頻幀。 The method for controlling a video frame according to claim 7, wherein in the step of deciding to discard or retain the first video frame, when the first time interval is less than or equal to the second time interval, discarding The first video frame. 如申請專利範圍第7項所述之視頻幀的控制方法,其中於決定拋棄或保留該第一視頻幀之該步驟中,當該第一時間間隔大於該第二時間間隔時,則保留該第一視頻幀。The method for controlling a video frame according to claim 7, wherein in the step of deciding to discard or retain the first video frame, when the first time interval is greater than the second time interval, the first A video frame.
TW98123100A 2009-07-08 2009-07-08 Video frame flow control device and method for controlling video frame TWI410137B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98123100A TWI410137B (en) 2009-07-08 2009-07-08 Video frame flow control device and method for controlling video frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98123100A TWI410137B (en) 2009-07-08 2009-07-08 Video frame flow control device and method for controlling video frame

Publications (2)

Publication Number Publication Date
TW201103335A TW201103335A (en) 2011-01-16
TWI410137B true TWI410137B (en) 2013-09-21

Family

ID=44837843

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98123100A TWI410137B (en) 2009-07-08 2009-07-08 Video frame flow control device and method for controlling video frame

Country Status (1)

Country Link
TW (1) TWI410137B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945229A (en) * 2013-01-18 2014-07-23 鸿富锦精密工业(深圳)有限公司 Video transmitting system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020147834A1 (en) * 2000-12-19 2002-10-10 Shih-Ping Liou Streaming videos over connections with narrow bandwidth
US20030037158A1 (en) * 1997-08-22 2003-02-20 Koichi Yano Data communication apparatus and method
US20070159552A1 (en) * 2005-09-09 2007-07-12 Vimicro Corporation Method and System for Video Conference
US20070188595A1 (en) * 2004-08-03 2007-08-16 Bran Ferren Apparatus and method for presenting audio in a video teleconference
US7492821B2 (en) * 2005-02-08 2009-02-17 International Business Machines Corporation System and method for selective image capture, transmission and reconstruction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030037158A1 (en) * 1997-08-22 2003-02-20 Koichi Yano Data communication apparatus and method
US20020147834A1 (en) * 2000-12-19 2002-10-10 Shih-Ping Liou Streaming videos over connections with narrow bandwidth
US20070188595A1 (en) * 2004-08-03 2007-08-16 Bran Ferren Apparatus and method for presenting audio in a video teleconference
US7492821B2 (en) * 2005-02-08 2009-02-17 International Business Machines Corporation System and method for selective image capture, transmission and reconstruction
US20070159552A1 (en) * 2005-09-09 2007-07-12 Vimicro Corporation Method and System for Video Conference

Also Published As

Publication number Publication date
TW201103335A (en) 2011-01-16

Similar Documents

Publication Publication Date Title
CN105472477B (en) A kind of data transmission method, device and equipment
US9319738B2 (en) Multiplexing, synchronizing, and assembling multiple audio/video (A/V) streams in a media gateway
CN101282464B (en) Terminal and method for transferring video
JP6377784B2 (en) A method for one-to-many audio-video streaming with audio-video synchronization capture
WO2012075951A1 (en) Method and device for adjusting bandwidth in conference place, conference terminal and media control server
KR20070090184A (en) Audio and video data processing in portable multimedia devices
TW200836543A (en) Method and arrangement for video telephony quality assessment
CN101568029B (en) Device and method for monitoring mobile phone video based on optimized H.264 coding standard
CN107566918A (en) A kind of low delay under video distribution scene takes the neutrel extraction of root
US10362173B2 (en) Web real-time communication from an audiovisual file
WO2018184277A1 (en) Optimization method and system on basis of network status of push terminal and push terminal
CN102143349A (en) Video session implementation method based on audio/video signal transmission through independent channels respectively
CN106534211A (en) Data transmission method and electronic equipment
CN105191316A (en) Switching apparatus for switching compressed video streams, conference system with the switching apparatus and process for switching compressed video streams
CN109600341B (en) Instant messaging detection method, equipment and computer storage medium
Xue et al. A WebRTC-based video conferencing system with screen sharing
US8320449B2 (en) Method for controlling video frame stream
US8493429B2 (en) Method and terminal for synchronously recording sounds and images of opposite ends based on circuit domain video telephone
TWI410137B (en) Video frame flow control device and method for controlling video frame
CN103684970A (en) Transmission method and thin terminals for media data streams
CN107079132A (en) Port in visual telephone feeds the frame of video of intraframe decoding after reconfiguring
CN102377977B (en) Method, device and system for processing video in video call process
CN109640030A (en) A kind of audio-video peripheral expansion device and method of video conferencing system
CN106998328A (en) A kind of video transmission method and device
TWI523461B (en) Communication system and method