TWI683572B - Video bit rate transmission control method based on dynamic picture information - Google Patents

Video bit rate transmission control method based on dynamic picture information Download PDF

Info

Publication number
TWI683572B
TWI683572B TW107143007A TW107143007A TWI683572B TW I683572 B TWI683572 B TW I683572B TW 107143007 A TW107143007 A TW 107143007A TW 107143007 A TW107143007 A TW 107143007A TW I683572 B TWI683572 B TW I683572B
Authority
TW
Taiwan
Prior art keywords
image
storage unit
encoded
bit rate
temporary storage
Prior art date
Application number
TW107143007A
Other languages
Chinese (zh)
Other versions
TW202023281A (en
Inventor
林易泉
張耀堂
鄧邦曜
劉彥泰
Original Assignee
國立虎尾科技大學
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 國立虎尾科技大學 filed Critical 國立虎尾科技大學
Priority to TW107143007A priority Critical patent/TWI683572B/en
Application granted granted Critical
Publication of TWI683572B publication Critical patent/TWI683572B/en
Publication of TW202023281A publication Critical patent/TW202023281A/en

Links

Images

Landscapes

  • Closed-Circuit Television Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

一種視訊位元率傳輸控制方法,適用於控制一監視攝影機的視訊位元率,由一控制處理單元來實施,包含以下步驟:(A)在接收到來自一影像拍攝單元一影像後,根據一相關於編碼後影像之位元率的編碼參數,將該影像編碼成一當前編碼影像;(B)根據該當前編碼影像及一相關於一目標景象的背景影像,判定是否有一動作事件發生且一暫存單元的佔用率是否大於一門檻值,以獲得一判定結果;及(C)根據該判定結果,更新該編碼參數,及將該當前編碼影像儲存至一儲存單元及該暫存單元之其中一者。A video bit rate transmission control method, suitable for controlling the video bit rate of a surveillance camera, is implemented by a control processing unit and includes the following steps: (A) After receiving an image from an image capturing unit, according to a Encoding parameters related to the bit rate of the encoded image, encoding the image into a currently encoded image; (B) According to the currently encoded image and a background image related to a target scene, determine whether an action event occurs and a temporary Whether the occupancy rate of the storage unit is greater than a threshold value to obtain a judgment result; and (C) update the coding parameter according to the judgment result, and store the current coded image to one of a storage unit and the temporary storage unit By.

Description

基於畫面動態資訊的視訊位元率傳輸控制方法Video bit rate transmission control method based on dynamic picture information

本發明是有關於一種傳輸控制方法,特別是指一種基於畫面動態資訊的視訊位元率傳輸控制方法。 The invention relates to a transmission control method, in particular to a video bit rate transmission control method based on dynamic picture information.

隨著無線網路的使用越來越普及,視訊監控系統(Video Surveillance System)逐漸以無線網狀網路(Wireless Mesh Network,WMN)替代高成本的有線網路。無線網狀網路是一種利用無線電所構成的網狀拓樸網路,其特點是網狀網路自我調校機制,當網路中其中一個節點無法服務或忙碌時,會自動調整跳躍路徑,讓網路繼續保持正常運作。 With the increasing popularity of wireless networks, the Video Surveillance System gradually replaces high-cost wired networks with wireless mesh networks (Wireless Mesh Network, WMN). A wireless mesh network is a mesh topology network formed by radio. Its characteristic is a mesh network self-tuning mechanism. When one of the nodes in the network is unavailable or busy, it will automatically adjust the hopping path. Let the network continue to operate normally.

然而,無線網路的頻寬有一定的限制,當同時多部節點傳輸資料時,越靠近匯聚節點的鏈路所堆積的資料越多,造成鏈路壅塞必須調降視訊位元率(Bitrate)才能減少頻寬的使用,視訊的位元率與視訊畫質有直接關聯,視訊的位元率越低,視訊畫質也會隨之下降,因此當鏈路壅塞而視訊畫質下降且有事件發生時,無法達到監控的目的。 However, the bandwidth of the wireless network has certain restrictions. When multiple nodes transmit data at the same time, the closer the link to the aggregation node, the more data will accumulate, resulting in link congestion. The video bit rate must be reduced. In order to reduce the use of bandwidth, the video bit rate is directly related to the video quality. The lower the video bit rate, the lower the video quality. Therefore, when the link is congested, the video quality decreases and there are events. When this happens, the purpose of monitoring cannot be achieved.

因此,本發明的目的,即在提供一種能改善鏈路擁塞情況的視訊位元率傳輸控制方法。 Therefore, the object of the present invention is to provide a video bit rate transmission control method that can improve link congestion.

於是,本發明視訊位元率傳輸控制方法,適用於控制一監視攝影機的視訊位元率,該監視攝影機經由一通訊網路連接一監控伺服器並包括一被配置來連續拍攝一目標景象以便連續產生該目標景象之影像的影像拍攝單元、一儲存單元、一暫存單元、一經由該通訊網路連接該監控伺服器的傳輸單元,及一控制處理單元,該儲存單元儲存有一相關於該目標景象的背景影像及一相關於編碼後影像之位元率的編碼參數,該暫存單元電連接該傳輸單元,且用以儲存被該傳輸單元傳輸至該監控伺服器的待傳輸影像,該控制處理單元電連接該儲存單元及該暫存單元,該方法由該控制處理單元來實施並包含一步驟(A)、一步驟(B),及一步驟(C)。 Therefore, the video bit rate transmission control method of the present invention is suitable for controlling the video bit rate of a surveillance camera that is connected to a surveillance server via a communication network and includes a configuration configured to continuously shoot a target scene for continuous generation The image capturing unit of the image of the target scene, a storage unit, a temporary storage unit, a transmission unit connected to the monitoring server through the communication network, and a control processing unit, the storage unit stores a Background image and an encoding parameter related to the bit rate of the encoded image, the temporary storage unit is electrically connected to the transmission unit, and is used to store the image to be transmitted by the transmission unit to the monitoring server, and the control processing unit The storage unit and the temporary storage unit are electrically connected. The method is implemented by the control processing unit and includes a step (A), a step (B), and a step (C).

該步驟(A)中,在該控制處理單元接收到來自該影像拍攝單元的一影像後,該控制處理單元根據該編碼參數,將該影像編碼成一當前編碼影像。 In this step (A), after the control processing unit receives an image from the image capturing unit, the control processing unit encodes the image into a currently encoded image according to the encoding parameter.

該步驟(B)中,該控制處理單元根據該當前編碼影像及該背景影像,判定是否有一動作事件發生且該暫存單元的佔用率是否大於一門檻值,以獲得一判定結果。 In this step (B), the control processing unit determines whether an action event occurs and whether the occupancy rate of the temporary storage unit is greater than a threshold value according to the current encoded image and the background image to obtain a determination result.

該步驟(C)中,該控制處理單元根據該判定結果,更新該編碼參數,及將該當前編碼影像儲存至該儲存單元及該暫存單元之其中一者。 In this step (C), the control processing unit updates the encoding parameter according to the determination result, and stores the current encoded image to one of the storage unit and the temporary storage unit.

本發明之功效在於:根據該判定結果,更新該編碼參數,以進行編碼影像之位元率分配,以及決定將該當前編碼影像先儲存至該儲存單元,或是直接儲存至該暫存單元以作為待傳輸影像,讓傳輸資源能夠最佳化,以改善鏈路擁塞情況。 The effect of the present invention is to update the encoding parameters according to the determination result to perform bit rate allocation of the encoded image, and decide whether to store the current encoded image first in the storage unit or directly to the temporary storage unit As the image to be transmitted, the transmission resources can be optimized to improve link congestion.

1‧‧‧監視攝影機 1‧‧‧ surveillance camera

11‧‧‧影像拍攝單元 11‧‧‧Image shooting unit

12‧‧‧儲存單元 12‧‧‧Storage unit

13‧‧‧暫存單元 13‧‧‧Temporary storage unit

14‧‧‧傳輸單元 14‧‧‧Transmission unit

15‧‧‧控制處理單元 15‧‧‧Control processing unit

100‧‧‧通訊網路 100‧‧‧Communication network

9‧‧‧監控伺服器 9‧‧‧Monitoring server

201~216‧‧‧步驟 201~216‧‧‧Step

31‧‧‧編碼模組 31‧‧‧Coding module

32‧‧‧加密模組 32‧‧‧Encryption module

33‧‧‧控制模組 33‧‧‧Control module

34‧‧‧切換模組 34‧‧‧Switch module

35‧‧‧次取樣模組 35‧‧‧ sampling module

本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中:圖1是一方塊圖,示例說明一用來實施本發明基於畫面動態資訊的視訊位元率傳輸控制方法的一監視攝影機;圖2是一流程圖,示例說明本發明基於畫面動態資訊的視訊位元率傳輸控制方法之一實施例;及圖3是一方塊圖,示例說明該監視攝影機。 Other features and functions of the present invention will be clearly presented in the embodiments with reference to the drawings, in which: FIG. 1 is a block diagram illustrating an example of a video bit rate transmission control for implementing the present invention based on dynamic picture information A surveillance camera of the method; FIG. 2 is a flowchart illustrating an embodiment of the video bit rate transmission control method based on the dynamic image information of the present invention; and FIG. 3 is a block diagram illustrating the surveillance camera.

參閱圖1,示例說明了一可用來實施本發明基於畫面動態資訊的視訊位元率傳輸控制方法的監視攝影機1,該監視攝影機1 經由一通訊網路100連接一監控伺服器9,並包括一影像拍攝單元11、一儲存單元12、一暫存單元13、一傳輸單元14,及一控制處理單元15。在本實施例中,該通訊網路100例如為網際網路(Internet),該監控伺服器9例如為一監控中心(Video Surveillance Center,VSC),但不以此為限。 Referring to FIG. 1, an example is illustrated of a surveillance camera 1 that can be used to implement the video bit rate transmission control method based on the dynamic image information of the present invention. The surveillance camera 1 A monitoring server 9 is connected via a communication network 100, and includes an image capturing unit 11, a storage unit 12, a temporary storage unit 13, a transmission unit 14, and a control processing unit 15. In this embodiment, the communication network 100 is, for example, the Internet, and the monitoring server 9 is, for example, a surveillance center (Video Surveillance Center, VSC), but not limited to this.

該影像拍攝單元11被配置來連續拍攝一目標景象以便連續產生該目標景象之影像。 The image capturing unit 11 is configured to continuously capture a target scene so as to continuously generate images of the target scene.

該儲存單元12儲存有一相關於該目標景象的背景影像及一編碼參數。在本實施例中,該儲存單元12例如為本地儲存裝置(Local Storage),該編碼參數例如為量化參數(Quantization Parameter,QP),但不以此為限。 The storage unit 12 stores a background image related to the target scene and an encoding parameter. In this embodiment, the storage unit 12 is, for example, a local storage device (Local Storage), and the encoding parameter is, for example, a quantization parameter (Quantization Parameter, QP), but it is not limited thereto.

該暫存單元13電連接該傳輸單元14,且用以儲存被該傳輸單元14傳輸至該監控伺服器9的待傳輸影像。在本實施例中,該暫存單元13例如為一緩衝器(Buffer),但不以此為限。 The temporary storage unit 13 is electrically connected to the transmission unit 14 and is used to store the image to be transmitted that is transmitted by the transmission unit 14 to the monitoring server 9. In this embodiment, the temporary storage unit 13 is, for example, a buffer, but it is not limited thereto.

在本實施例中,該傳輸單元14以網路堆疊(Network stack)技術傳輸該暫存單元13儲存的待傳輸影像,該傳輸單元14存有具備網路壅塞控制能力的應用層通訊協定,當網路鏈路不穩定時,該通訊協定使得該傳輸單元14的資料傳輸速率變慢,但不以此為限。 In this embodiment, the transmission unit 14 transmits the image to be transmitted stored in the temporary storage unit 13 by using a network stack technology. The transmission unit 14 stores an application layer communication protocol with network congestion control capability. When the network link is unstable, the communication protocol makes the data transmission rate of the transmission unit 14 slow, but not limited to this.

該控制處理單元15電連接該儲存單元12及該暫存單元 13。 The control processing unit 15 is electrically connected to the storage unit 12 and the temporary storage unit 13.

參閱圖1與圖2,示例說明了該監視攝影機1如何實施本發明基於畫面動態資訊的視訊位元率傳輸控制方法的一實施例。以下詳細說明該實施例。 Referring to FIG. 1 and FIG. 2, an example illustrates how the surveillance camera 1 implements an embodiment of the video bit rate transmission control method based on dynamic image information of the present invention. This embodiment will be described in detail below.

在步驟201中,在該控制處理單元15接收到來自該影像拍攝單元11的一影像後,根據該編碼參數及一前一編碼影像將該影像編碼成一當前編碼影像。在本實施例中,該當前編碼影像的編碼方法為一基於畫面區塊劃分的視訊壓縮方法,其會將該影像劃分為數個區塊(Block),並分別對每個區塊進行編碼處理,每一區塊內會記錄一預測模式、該量化參數、一預測殘差值、一預測角度及一動作向量(motion vector)等資訊。值得注意的是,該控制處理單元15係以一框架內編碼(intraframe coding)技術或一框間編碼(interframe coding)技術將該影像編碼,以該框架內編碼技術所編碼之編碼影像即為I畫面(I-frame),其壓縮時不參考其他畫面,以該框間編碼編碼之編碼影像即為P畫面(P-frame),其係利用過去最近的一張I畫面或P畫面做為向前預測(forward prediction)的參考畫面,再結合動作估計與轉換編碼進行壓縮,因此若該影像與該前一編碼影像差距過大即以該框架內編碼技術編碼,反之,若該影像與該前一編碼影像差距小即以該框間編碼技術編碼,該框架內編碼技術及該框間編碼技術之壓縮方法為習知技術,故不多加贅 述。 In step 201, after the control processing unit 15 receives an image from the image capturing unit 11, the image is encoded into a current encoded image according to the encoding parameters and a previous encoded image. In this embodiment, the encoding method of the current encoded image is a video compression method based on the division of picture blocks, which divides the image into blocks and encodes each block separately. Each block records information such as a prediction mode, the quantization parameter, a prediction residual value, a prediction angle, and a motion vector. It is worth noting that the control processing unit 15 encodes the image using an intraframe coding technique or an interframe coding technique, and the encoded image encoded by the intraframe encoding technique is I Picture (I-frame), which does not refer to other pictures when compressing, the coded image coded by the inter-frame coding is called P-frame (P-frame), which uses the most recent I picture or P picture as the direction The reference picture of forward prediction is combined with motion estimation and transcoding to compress it. Therefore, if the gap between the image and the previous encoded image is too large, it is encoded by the in-frame encoding technology, otherwise, if the image is different from the previous one If the difference between the encoded images is small, the inter-frame coding technology is used for coding. The intra-frame coding technology and the compression method of the inter-frame coding technology are conventional technologies, so there is no need to add more details. Narrate.

在步驟202中,該控制處理單元15判定該當前編碼影像是否以該框架內編碼技術編碼(即判定該當前編碼影像是否為I畫面)。當判定出該當前編碼影像是以該框架內編碼技術編碼時,流程進行步驟203;當判定出該當前編碼影像不是以該框架內編碼技術編碼時,流程進行步驟204。 In step 202, the control processing unit 15 determines whether the currently encoded image is encoded using the in-frame encoding technique (ie, determines whether the currently encoded image is an I-picture). When it is determined that the current encoded image is encoded by the in-frame encoding technology, the process proceeds to step 203; when it is determined that the current encoded image is not encoded by the in-frame encoding technology, the process proceeds to step 204.

在步驟203中,該控制處理單元15將該當前編碼影像加密。在本實施例中,該控制處理單元15以一密碼表擾動該當前編碼影像的每一區塊之排序,以加密該當前編碼影像。詳細而言,當I畫面解碼失敗時,後續以此I畫面為參考畫面的P畫面因為參照到錯誤的區塊而解碼出錯誤的畫面資訊,而產生錯誤遞延(error propagation)的現象,以達到加密的效果。 In step 203, the control processing unit 15 encrypts the currently encoded video. In this embodiment, the control processing unit 15 perturbs the ordering of each block of the currently encoded image with a cryptographic table to encrypt the currently encoded image. In detail, when I-picture decoding fails, subsequent P-pictures that use the I-picture as a reference picture decode the wrong picture information due to the reference to the wrong block, resulting in an error propagation phenomenon. To achieve the effect of encryption.

要特別注意的是,在其他實施方式中,在步驟202中,在判定出該當前編碼影像是以該框架內編碼技術編碼後,該控制處理單元15還判定該當前編碼影像是否為I畫面中的IDR畫面(IDR frame),當判定出該當前編碼影像為I畫面中的IDR畫面時,流程才進行步驟203;否則流程進行204。 It should be particularly noted that, in other embodiments, in step 202, after determining that the current encoded image is encoded by the in-frame encoding technology, the control processing unit 15 also determines whether the current encoded image is in the I-picture The IDR frame (IDR frame), when it is determined that the current encoded image is an IDR frame in the I frame, the flow proceeds to step 203; otherwise, the flow proceeds to 204.

在步驟202或步驟203之後的步驟204中,該控制處理單元15判定是否有一動作事件(Motion event)發生,當判定出有一動作事件發生時,流程進行步驟205;當判定出無動作事件發生時, 流程進行步驟211。在本實施例中,該控制處理單元15利用該當前編碼影像的每一區塊的動作向量作為判定條件,為減少動作強度較小的區塊影響分析結果,因此將動作強度低於一第一閾值的動作向量設為(0,0),僅保留動作強度較大的動作向量,如下式:

Figure 107143007-A0305-02-0008-1
其中N為該等區塊的數量,mv i 為第i個區塊的動作向量,T v 為該第一閾值,該控制處理單元15將動作強度大於該第一閾值的動作向量加總後,獲得一動作向量總和,若該動作向量總和大於一第二閾值,則判定有一動作事件,反之則無動作事件,如下式:
Figure 107143007-A0305-02-0008-2
Figure 107143007-A0305-02-0008-4
為該動作向量總和,T e 為該第二閾值。 In step 204 after step 202 or step 203, the control processing unit 15 determines whether a motion event (Motion event) occurs, when it is determined that a motion event occurs, the flow proceeds to step 205; when it is determined that no motion event occurs , The process proceeds to step 211. In this embodiment, the control processing unit 15 uses the motion vector of each block of the current encoded image as a determination condition, in order to reduce the impact of the analysis result of the block with less motion intensity, so the motion intensity is lower than a first The action vector of the threshold is set to (0,0), and only the action vector with greater action intensity is retained, as follows:
Figure 107143007-A0305-02-0008-1
Where N is the number of such blocks, mv i is the motion vector of the i-th block, T v is the first threshold, and the control processing unit 15 adds up the motion vectors with motion intensity greater than the first threshold, Obtain an action vector sum, if the action vector sum is greater than a second threshold, it is determined that there is an action event, otherwise there is no action event, as follows:
Figure 107143007-A0305-02-0008-2
Figure 107143007-A0305-02-0008-4
For the sum of the action vectors, T e is the second threshold.

在步驟205中,該控制處理單元15將該當前編碼影像儲存至該儲存單元12,且更新前的該編碼參數所編碼出的編碼影像的位元率小於更新後的該編碼參數所編碼出的編碼影像的位元率。在本實施例中,該編碼參數與編碼影像的位元率成負相關,但不以此為限。 In step 205, the control processing unit 15 stores the current encoded image to the storage unit 12, and the bit rate of the encoded image encoded by the encoding parameter before update is less than that encoded by the updated encoding parameter The bit rate of the encoded image. In this embodiment, the encoding parameter is inversely related to the bit rate of the encoded image, but not limited to this.

在步驟206中,該控制處理單元15判定該暫存單元13的佔用率是否大於一門檻值,當判定出該暫存單元13的佔用率大於該門檻值時(亦即緩衝佇列長度(Buffer level)過長時),流程進行步 驟207;當判定出該暫存單元13的佔用率不大於該門檻值時,流程進行步驟210。在本實施例中,該門檻值例如為浮動的比率,其係藉由該控制處理單元15根據該當前編碼影像的檔案大小,以及視訊1秒鐘所需影像的幀數,估算出視訊1秒鐘的檔案大小,並將該門檻值調整為1扣除視訊1秒鐘的檔案大小除以該暫存單元13的容量(即1-視訊1秒鐘的檔案大小/該暫存單元13的容量),若該暫存單元13的容量足夠,該控制處理單元15亦可估算出視訊2秒鐘的檔案大小,並將該門檻值調整為1扣除視訊2秒鐘的檔案大小除以該暫存單元13的容量(即1-視訊2秒鐘的檔案大小/該暫存單元13的容量),在其他實施方式中,該門檻值亦可為一預定值,但不以此為限。 In step 206, the control processing unit 15 determines whether the occupancy rate of the temporary storage unit 13 is greater than a threshold, and when it is determined that the occupancy rate of the temporary storage unit 13 is greater than the threshold (that is, the buffer queue length (Buffer queue length) level) is too long), the process proceeds Step 207; When it is determined that the occupancy rate of the temporary storage unit 13 is not greater than the threshold, the process proceeds to step 210. In this embodiment, the threshold value is, for example, a floating ratio, which is estimated by the control processing unit 15 according to the file size of the current encoded image and the number of frames of the video required for 1 second of video, to estimate 1 second of video The file size of the clock, and adjust the threshold to 1 minus the file size of the video for 1 second divided by the capacity of the temporary storage unit 13 (ie 1-video file size for 1 second/the capacity of the temporary storage unit 13) If the capacity of the temporary storage unit 13 is sufficient, the control processing unit 15 can also estimate the file size of the video for 2 seconds, and adjust the threshold to 1 minus the file size of the video for 2 seconds divided by the temporary storage unit The capacity of 13 (that is, the file size of 1-video for 2 seconds/the capacity of the temporary storage unit 13), in other embodiments, the threshold may also be a predetermined value, but not limited to this.

在步驟207中,該控制處理單元15將該當前編碼影像儲存至該儲存單元12。 In step 207, the control processing unit 15 stores the current encoded image to the storage unit 12.

在步驟208中,該控制處理單元15判定該當前編碼影像是否以該框架內編碼技術編碼(即判定該當前編碼影像是否為I畫面)。當判定出該當前編碼影像是以該框架內編碼技術編碼時,流程進行步驟209;當判定出該當前編碼影像不是以該框架內編碼技術編碼時,即儲存至該儲存單元12的該當前編碼影像為P畫面時,則結束流程,以編碼下一張影像。 In step 208, the control processing unit 15 determines whether the currently encoded image is encoded using the in-frame encoding technology (ie, determines whether the currently encoded image is an I-picture). When it is determined that the current encoded image is encoded with the in-frame encoding technology, the process proceeds to step 209; when it is determined that the current encoded image is not encoded with the in-frame encoding technology, the current encoding stored in the storage unit 12 When the image is a P-picture, the process ends to encode the next image.

在步驟209中,該控制處理單元15將該儲存單元12儲存的該當前編碼影像儲存至該暫存單元13,以作為待傳輸影像。 In step 209, the control processing unit 15 stores the current encoded image stored in the storage unit 12 to the temporary storage unit 13 as an image to be transmitted.

在步驟206之後的步驟210中,該控制處理單元15將該當前編碼影像儲存至該暫存單元13,以作為待傳輸影像。 In step 210 after step 206, the control processing unit 15 stores the current encoded image to the temporary storage unit 13 as an image to be transmitted.

在步驟204之後的步驟211,該控制處理單元15將該當前編碼影像儲存至該儲存單元12,且更新前的該編碼參數所編碼出的編碼影像的位元率大於更新後的該編碼參數所編碼出的編碼影像的位元率。 In step 211 after step 204, the control processing unit 15 stores the current encoded image in the storage unit 12, and the bit rate of the encoded image encoded by the encoding parameter before update is greater than that after the updated encoding parameter The bit rate of the encoded image.

在步驟212中,該控制處理單元15判定該暫存單元13的佔用率是否大於該門檻值,當判定出該暫存單元13的佔用率不大於該門檻值時,流程進行步驟213;當判定出該暫存單元13的佔用率大於該門檻值時,流程進行步驟216。 In step 212, the control processing unit 15 determines whether the occupancy rate of the temporary storage unit 13 is greater than the threshold value. When it is determined that the occupancy rate of the temporary storage unit 13 is not greater than the threshold value, the flow proceeds to step 213; When the occupancy rate of the temporary storage unit 13 is greater than the threshold, the process proceeds to step 216.

在步驟213中,該控制處理單元15將該當前編碼影像儲存至該暫存單元13,以作為待傳輸影像。 In step 213, the control processing unit 15 stores the current encoded image to the temporary storage unit 13 as an image to be transmitted.

在步驟214中,該控制處理單元15判定該儲存單元12是否儲存有先前的編碼影像。當判定出該儲存單元12儲存有先前的編碼影像時,流程進行步驟215;當判定出該儲存單元12不儲存有先前的編碼影像時,則結束流程,以編碼下一張影像。 In step 214, the control processing unit 15 determines whether the storage unit 12 stores the previous encoded image. When it is determined that the storage unit 12 stores the previous encoded image, the flow proceeds to step 215; when it is determined that the storage unit 12 does not store the previous encoded image, the flow ends to encode the next image.

在步驟215中,該控制處理單元15將該儲存單元12儲存的所有編碼影像儲存至該暫存單元13,以作為待傳輸影像。值得注意的是,由於I畫面在步驟209時皆已儲存至該暫存單元13,故本步驟中該儲存單元12儲存的所有編碼影像皆為P畫面。 In step 215, the control processing unit 15 stores all the encoded images stored in the storage unit 12 to the temporary storage unit 13 as images to be transmitted. It is worth noting that since all the I pictures are stored in the temporary storage unit 13 in step 209, all the encoded images stored in the storage unit 12 in this step are P pictures.

在步驟212之後的步驟216中,該控制處理單元15將該當前編碼影像儲存至該暫存單元13,以作為待傳輸影像。 In step 216 after step 212, the control processing unit 15 stores the current encoded image to the temporary storage unit 13 as an image to be transmitted.

參閱圖3,值得一提的是,該控制處理單元15執行儲存於該儲存單元12中的該控制決策程式以提供不同功能,該控制處理單元15因應執行該控制決策程式中的不同程式片段以提供不同功能,該控制處理單元15配合不同程式片段的執行,使得該控制處理單元15包含一編碼模組31、一加密模組32、一控制模組33、一切換模組34,及一次取樣模組35來提供不同功能。 Referring to FIG. 3, it is worth mentioning that the control processing unit 15 executes the control decision program stored in the storage unit 12 to provide different functions, and the control processing unit 15 executes different program fragments in the control decision program to Provide different functions, the control processing unit 15 cooperates with the execution of different program fragments, so that the control processing unit 15 includes an encoding module 31, an encryption module 32, a control module 33, a switching module 34, and a sampling Module 35 to provide different functions.

該控制處理單元15在執行對應於步驟201之流程的程式片段時所提供的功能視為該編碼模組31所能提供的功能,該編碼模組31根據該編碼參數及該前一編碼影像將該影像編碼成該當前編碼影像。 The function provided by the control processing unit 15 when executing the program segment corresponding to the flow of step 201 is regarded as the function that the encoding module 31 can provide. The encoding module 31 according to the encoding parameter and the previous encoded image will The image is encoded into the currently encoded image.

該控制處理單元15在執行對應於步驟202、203之流程的程式片段時所提供的功能視為該加密模組32所能提供的功能,該加密模組32僅對I畫面之區塊進行擾動的加密。 The functions provided by the control processing unit 15 when executing the program fragments corresponding to the steps 202 and 203 are regarded as the functions provided by the encryption module 32, and the encryption module 32 only disturbs the blocks of the I picture Encryption.

該控制處理單元15在執行對應於步驟204、205、206、207、210、211、212、213,216之流程的程式片段時所提供的功能視為該控制模組33所能提供的功能,該控制模組33根據是否有一動作事件發生且該暫存單元13的佔用率是否大於該門檻值之一判定結果產生不同決策,以下詳細說明4種判定結果所對應之決 策。 The functions provided by the control processing unit 15 when executing the program fragments corresponding to the steps 204, 205, 206, 207, 210, 211, 212, 213, 216 are regarded as the functions provided by the control module 33, The control module 33 generates different decisions based on a judgment result of whether an action event occurs and whether the occupancy rate of the temporary storage unit 13 is greater than the threshold value. The following details the decisions corresponding to the four judgment results Policy.

第1種:當該判定結果為判定出有一動作事件發生且該暫存單元13的佔用率大於該門檻值時,該控制模組33調整該編碼參數以提高下一張編碼影像的位元率,並將該當前編碼儲存至該儲存單元12。 Type 1: When the result of the determination is that an action event has occurred and the occupancy rate of the temporary storage unit 13 is greater than the threshold, the control module 33 adjusts the encoding parameters to increase the bit rate of the next encoded image And store the current code to the storage unit 12.

第2種:當該判定結果為判定出有一動作事件發生且該暫存單元13的佔用率不大於該門檻值時,該控制模組33調整該編碼參數以提高下一張編碼影像的位元率,並將該當前編碼儲存至該暫存單元13,以作為待傳輸影像。 Type 2: When the result of the determination is that an action event occurs and the occupancy rate of the temporary storage unit 13 is not greater than the threshold, the control module 33 adjusts the encoding parameters to increase the bit of the next encoded image And store the current code in the temporary storage unit 13 as an image to be transmitted.

第3種:當該判定結果為判定出沒有一動作事件發生且該暫存單元13的佔用率大於該門檻值時,該控制模組33調整該編碼參數以降低下一張編碼影像的位元率,並將該當前編碼儲存至該暫存單元13,以作為待傳輸影像。 Type 3: When the result of the determination is that no action event has occurred and the occupancy rate of the temporary storage unit 13 is greater than the threshold, the control module 33 adjusts the encoding parameters to reduce the bit rate of the next encoded image And store the current code to the temporary storage unit 13 as an image to be transmitted.

第4種:當該判定結果為判定出沒有一動作事件發生且該暫存單元13的佔用率不大於該門檻值時,該控制模組33調整該編碼參數以降低下一張編碼影像的位元率,並將該當前編碼儲存至該暫存單元13,以作為待傳輸影像。 Type 4: When the result of the determination is that no action event has occurred and the occupancy rate of the temporary storage unit 13 is not greater than the threshold, the control module 33 adjusts the encoding parameter to reduce the bit of the next encoded image And store the current code in the temporary storage unit 13 as an image to be transmitted.

該控制處理單元15在執行對應於步驟207、210、213,及216之流程的程式片段時所提供的功能視為該控制模組33與該切換模組34所能提供的功能,該控制模組33根據該判定結果切換 該切換模組34,以改變該當前編碼影像的儲存路徑,當該判定結果為第1種時,該當前編碼儲存至該儲存單元12,當該判定結果為第2、3、4種時,該當前編碼儲存至該暫存單元13。 The functions provided by the control processing unit 15 when executing the program fragments corresponding to the processes of steps 207, 210, 213, and 216 are regarded as the functions that the control module 33 and the switching module 34 can provide. Group 33 switches according to the result of this determination The switching module 34 changes the storage path of the current encoded image. When the determination result is the first type, the current code is stored in the storage unit 12, and when the determination result is the second, third, or fourth type, The current code is stored in the temporary storage unit 13.

該控制處理單元15在執行對應於步驟208、209、214,及215之流程的程式片段時所提供的功能視為該次取樣模組35所能提供的功能,當該判定結果為第1種時,該次取樣模組35僅取樣傳輸I畫面以減少當前所需耗費的傳輸資源量及提供監控人員在鏈路壅塞時能確保一定限度的監控畫面品質,當該判定結果為第4種時,該次取樣模組35取樣傳輸位於該儲存單元12(本地儲存裝置)所存放的編碼影像(歷史視訊),以提供監控人員留存位於鏈路尖峰時段所暫存的監控畫面。 The function provided by the control processing unit 15 when executing the program fragments corresponding to the processes of steps 208, 209, 214, and 215 is regarded as the function provided by the sub-sampling module 35, and when the determination result is the first type At this time, the sub-sampling module 35 only samples and transmits I pictures to reduce the amount of transmission resources currently required and to provide monitoring personnel to ensure a certain level of monitoring picture quality when the link is congested. When the judgment result is the fourth type The sub-sampling module 35 samples and transmits the encoded image (historical video) stored in the storage unit 12 (local storage device) to provide the monitoring personnel with the monitoring screen temporarily stored during the peak period of the link.

綜上所述,本發明基於畫面動態資訊的視訊位元率傳輸控制方法,該控制處理單元15根據該判定結果,更新該編碼參數,以進行編碼影像之位元率分配,以及決定將該當前編碼影像先儲存至該儲存單元,或是直接儲存至該暫存單元以作為待傳輸影像,詳言之,當有一動作事件發生時,調高編碼之壓縮位元率以確保畫面品質,且同時該暫存單元13處於壅塞狀態時,會將該當前編碼影像儲存於該儲存單元12,並僅選擇性儲存I畫面至該暫存單元13,以減少網路傳輸資源的使用;而當無動作事件發生時,該影像之資訊大多為固定背景畫面,因此在確保最低畫面品質條件下調降編碼之 壓縮位元率,減少傳輸時所需耗費的資源,且同時該暫存單元13不處於壅塞狀態時,傳輸位於該儲存單元12所存放的編碼影像,以提供監控人員留存位於鏈路尖峰時段所暫存的監控畫面,讓傳輸資源能夠最佳化,以改善鏈路擁塞情況達到監控的目的,故確實能達成本發明的目的。 In summary, according to the video bit rate transmission control method of the present invention based on the dynamic information of the picture, the control processing unit 15 updates the encoding parameters according to the determination result to allocate the bit rate of the encoded image, and decides to convert the current The encoded image is first stored in the storage unit, or directly stored in the temporary storage unit as the image to be transmitted. In detail, when an action event occurs, the encoding compression bit rate is increased to ensure the picture quality, and at the same time When the temporary storage unit 13 is in a congested state, it will store the current encoded image in the storage unit 12, and only selectively store the I picture to the temporary storage unit 13 to reduce the use of network transmission resources; and when there is no action When an event occurs, the information of the image is mostly a fixed background picture, so the codec is downgraded while ensuring the lowest picture quality Compress the bit rate to reduce the resources consumed during transmission, and at the same time, when the temporary storage unit 13 is not in a congested state, the encoded image stored in the storage unit 12 is transmitted to provide monitoring personnel to keep the location during the peak period of the link The temporary monitoring screen allows the transmission resources to be optimized to improve the link congestion to achieve the monitoring purpose, so it can indeed achieve the purpose of cost invention.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。 However, the above are only examples of the present invention, and the scope of implementation of the present invention cannot be limited by this, any simple equivalent changes and modifications made according to the scope of the patent application of the present invention and the content of the patent specification are still classified as Within the scope of the invention patent.

201~216‧‧‧步驟 201~216‧‧‧Step

Claims (7)

一種視訊位元率傳輸控制方法,適用於控制一監視攝影機的視訊位元率,該監視攝影機經由一通訊網路連接一監控伺服器並包括一被配置來連續拍攝一目標景象以便連續產生該目標景象之影像的影像拍攝單元、一儲存單元、一暫存單元、一經由該通訊網路連接該監控伺服器的傳輸單元,及一控制處理單元,該儲存單元儲存有一相關於該目標景象的背景影像及一相關於編碼後影像之位元率的編碼參數,該暫存單元電連接該傳輸單元,且用以儲存被該傳輸單元傳輸至該監控伺服器的待傳輸影像,該控制處理單元電連接該儲存單元及該暫存單元,該方法由該控制處理單元來實施並包含以下步驟:(A)在接收到來自該影像拍攝單元的一影像後,根據該編碼參數,將該影像編碼成一當前編碼影像;(B)根據該當前編碼影像及該背景影像,判定是否有一動作事件發生且該暫存單元的佔用率是否大於一門檻值,以獲得一判定結果;及(C)根據該判定結果,更新該編碼參數,及將該當前編碼影像儲存至該儲存單元及該暫存單元之其中一者,其中,當該判定結果為判定出有一動作事件發生且該暫存單元的佔用率大於該門檻值時,將該當前編碼影像儲存至該儲存單元,且更新前的該編碼參數所編碼出的編碼影像的位元率小於更新後的該編碼參數所編碼出的編碼影像的位元率。 A video bit rate transmission control method suitable for controlling the video bit rate of a surveillance camera connected to a surveillance server via a communication network and including a camera that is configured to continuously shoot a target scene to continuously generate the target scene Image image capturing unit, a storage unit, a temporary storage unit, a transmission unit connected to the monitoring server via the communication network, and a control processing unit, the storage unit stores a background image related to the target scene and An encoding parameter related to the bit rate of the encoded image, the temporary storage unit is electrically connected to the transmission unit, and is used to store the image to be transmitted transmitted by the transmission unit to the monitoring server, and the control processing unit is electrically connected to the The storage unit and the temporary storage unit, the method is implemented by the control processing unit and includes the following steps: (A) after receiving an image from the image capturing unit, the image is encoded into a current encoding according to the encoding parameters Image; (B) according to the current encoded image and the background image, determine whether an action event occurs and whether the occupancy rate of the temporary storage unit is greater than a threshold to obtain a determination result; and (C) according to the determination result, Update the encoding parameters, and store the current encoded image to one of the storage unit and the temporary storage unit, wherein, when the determination result is that an action event is determined and the occupancy rate of the temporary storage unit is greater than the threshold Value, the current encoded image is stored in the storage unit, and the bit rate of the encoded image encoded by the encoding parameter before update is less than the bit rate of the encoded image encoded by the updated encoding parameter. 如請求項1所述的視訊位元率傳輸控制方法,其中,在步驟(A)中,還根據一前一編碼影像將該影像編碼成該當前編碼影像,且該影像以一框架內編碼技術及一框間編碼技術之其中一者編碼,當該判定結果為判定出有一動作事件發生且該暫存單元的佔用率大於該門檻值時,在步驟(C)後還包含以下步驟:(D)判定該當前編碼影像是否以該框架內編碼技術編碼;及(E)當判定出該當前編碼影像以該框架內編碼技術編碼時,將該儲存單元儲存的該當前編碼影像儲存至該暫存單元,以作為待傳輸影像。 The video bit rate transmission control method according to claim 1, wherein, in step (A), the image is also encoded into the current encoded image based on a previous encoded image, and the image is encoded in a frame And one of the inter-frame coding techniques, when the result of the determination is that an action event has occurred and the occupancy rate of the temporary storage unit is greater than the threshold, the following steps are also included after step (C): (D ) Determine whether the current encoded image is encoded with the in-frame encoding technology; and (E) when it is determined that the current encoded image is encoded with the in-frame encoding technology, store the current encoded image stored in the storage unit to the temporary storage Unit as the image to be transmitted. 如請求項1所述的視訊位元率傳輸控制方法,其中,在步驟(C)中,當該判定結果為判定出有一動作事件發生且該暫存單元的佔用率不大於該門檻值時,將該當前編碼影像儲存至該暫存單元,以作為待傳輸影像,且更新前的該編碼參數所編碼出的編碼影像的位元率小於更新後的該編碼參數所編碼出的編碼影像的位元率。 The video bit rate transmission control method according to claim 1, wherein, in step (C), when the result of the determination is that an action event is determined and the occupancy rate of the temporary storage unit is not greater than the threshold, Store the current encoded image in the temporary storage unit as the image to be transmitted, and the bit rate of the encoded image encoded by the encoding parameter before update is less than the bit of the encoded image encoded by the updated encoding parameter Yuan rate. 如請求項1所述的視訊位元率傳輸控制方法,其中,在步驟(C)中,當該判定結果為判定出沒有一動作事件發生且該暫存單元的佔用率大於該門檻值時,將該當前編碼影像儲存至該暫存單元,以作為待傳輸影像,更新前的該編碼參數所編碼出的編碼影像的位元率大於更新後的該編碼參數所編碼出的編碼影像的位元率。 The video bit rate transmission control method according to claim 1, wherein, in step (C), when the determination result is that no action event is determined and the occupancy rate of the temporary storage unit is greater than the threshold, Store the current encoded image in the temporary storage unit as an image to be transmitted, the bit rate of the encoded image encoded by the encoding parameter before update is greater than the bit rate of the encoded image encoded by the updated encoding parameter rate. 如請求項1所述的視訊位元率傳輸控制方法,其中,在步 驟(C)中,當該判定結果為判定出沒有一動作事件發生時且該暫存單元的佔用率小於該門檻值時,將該當前編碼影像儲存至該暫存單元,以作為待傳輸影像,更新前的該編碼參數所編碼出的編碼影像的位元率大於更新後的該編碼參數所編碼出的編碼影像的位元率。 The video bit rate transmission control method according to claim 1, wherein in the step In step (C), when the result of the determination is that no action event occurs and the occupancy rate of the temporary storage unit is less than the threshold, the current encoded image is stored in the temporary storage unit as the image to be transmitted , The bit rate of the encoded image encoded by the encoding parameter before the update is greater than the bit rate of the encoded image encoded by the updated encoding parameter. 如請求項5所述的視訊位元率傳輸控制方法,在步驟(C)後還包含以下步驟:(F)判定該儲存單元是否儲存有先前的編碼影像;及(G)當判定出該儲存單元儲存有先前的編碼影像時,將該儲存單元儲存的先前的當前編碼影像儲存至該暫存單元,以作為待傳輸影像。 The video bit rate transmission control method as described in claim 5, after step (C), further includes the following steps: (F) determining whether the storage unit stores a previously encoded image; and (G) when the storage is determined When the unit stores the previous encoded image, the previous current encoded image stored in the storage unit is stored in the temporary storage unit as the image to be transmitted. 如請求項1所述的視訊位元率傳輸控制方法,其中,在步驟(A)中,還根據一前一編碼影像將該影像編碼成該當前編碼影像,且該影像以一框架內編碼技術及一框間編碼技術之其中一者編碼,在步驟(A)與步驟(B)之間還包含以下步驟:(H)判定該當前編碼影像是否以該框架內編碼技術編碼;及(I)當判定出該當前編碼影像以該框架內編碼技術編碼時,將該當前編碼影像加密。 The video bit rate transmission control method according to claim 1, wherein, in step (A), the image is also encoded into the current encoded image based on a previous encoded image, and the image is encoded in a frame And one of the inter-frame coding techniques, the following steps are also included between step (A) and step (B): (H) determine whether the currently coded image is coded with the intra-frame coding technique; and (I) When it is determined that the currently encoded video is encoded with the in-frame encoding technology, the currently encoded video is encrypted.
TW107143007A 2018-11-30 2018-11-30 Video bit rate transmission control method based on dynamic picture information TWI683572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107143007A TWI683572B (en) 2018-11-30 2018-11-30 Video bit rate transmission control method based on dynamic picture information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107143007A TWI683572B (en) 2018-11-30 2018-11-30 Video bit rate transmission control method based on dynamic picture information

Publications (2)

Publication Number Publication Date
TWI683572B true TWI683572B (en) 2020-01-21
TW202023281A TW202023281A (en) 2020-06-16

Family

ID=69942938

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107143007A TWI683572B (en) 2018-11-30 2018-11-30 Video bit rate transmission control method based on dynamic picture information

Country Status (1)

Country Link
TW (1) TWI683572B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201212655A (en) * 2010-09-14 2012-03-16 Alpha Imaging Technology Corp Image encoding integrated circuit and image encoding data transmission method thereof
TW201427391A (en) * 2012-12-17 2014-07-01 Ind Tech Res Inst Media streaming method, device therewith and device for providing the media streaming

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201212655A (en) * 2010-09-14 2012-03-16 Alpha Imaging Technology Corp Image encoding integrated circuit and image encoding data transmission method thereof
TW201427391A (en) * 2012-12-17 2014-07-01 Ind Tech Res Inst Media streaming method, device therewith and device for providing the media streaming

Also Published As

Publication number Publication date
TW202023281A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
US11190570B2 (en) Video encoding using starve mode
KR101859155B1 (en) Tuning video compression for high frame rate and variable frame rate capture
KR100942395B1 (en) Rate control for multi-layer video design
US7958532B2 (en) Method of transmitting layered video-coded information
US9071841B2 (en) Video transcoding with dynamically modifiable spatial resolution
US9253063B2 (en) Bi-directional video compression for real-time video streams during transport in a packet switched network
US20060262790A1 (en) Low-delay video encoding method for concealing the effects of packet loss in multi-channel packet switched networks
WO2011038694A1 (en) Method, device and network system for transmission processing and sending processing of video data
US20110249127A1 (en) Estimating Video Quality Corruption in Lossy Networks
CN110392284B (en) Video encoding method, video data processing method, video encoding apparatus, video data processing apparatus, computer device, and storage medium
JP2008131143A (en) Encoding processor, and encoding processing method
WO2010107663A1 (en) Camera coupled reference frame
KR20130121970A (en) A video packet scheduling method for multimedia streaming
EP2308215B1 (en) Thinning of packet-switched video data
TWI683572B (en) Video bit rate transmission control method based on dynamic picture information
JP2005033556A (en) Data transmitter, data transmitting method, data receiver, data receiving method
EP4152747A1 (en) Methods and devices for controlling a transmission of a video stream
EP1739970A1 (en) Method for encoding and transmission of real-time video conference data
Sanhueza et al. Efficient video streaming rate control based on a deadline-sensitive selection of SVC layers
CN115037701B (en) Video processing method, device, server and medium
WO2024141075A1 (en) Adaptive method and apparatus for video stream bitrate, and computer device and storage medium
Li et al. A constrained spatial-temporal frame rate control model of conversational video for multipath transport system
Peña Ancavil Adaptive scalable video streaming based on deadline-sensitive criteria
Maloth et al. An Adaptive Cross-layer Mapping Algorithm for Multiview Video Coding over IEEE 802.11 e WLANs
Jung et al. Error-resilient surveillance video transmission based on a practical joint source-channel distortion computing model