TWI473498B - A video resolution switching method and device, a terminal and a switching system - Google Patents
A video resolution switching method and device, a terminal and a switching system Download PDFInfo
- Publication number
- TWI473498B TWI473498B TW100102092A TW100102092A TWI473498B TW I473498 B TWI473498 B TW I473498B TW 100102092 A TW100102092 A TW 100102092A TW 100102092 A TW100102092 A TW 100102092A TW I473498 B TWI473498 B TW I473498B
- Authority
- TW
- Taiwan
- Prior art keywords
- video
- resolution
- determining
- frame rate
- bandwidth
- Prior art date
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Description
本發明涉及通信技術領域,尤其涉及一種視訊解析度的切換方法及裝置、終端及切換系統。 The present invention relates to the field of communications technologies, and in particular, to a method and device for switching video resolution, a terminal, and a switching system.
隨著網路技術的不斷發展,網路視訊通信得到越來越廣泛的應用。在網路視訊通信中,首先視訊雙方建立網路連接,有網路攝影機的一方或者雙方啟動網路攝影機捕獲視訊流,並將捕獲的視訊流通過建立的網路連接發送給對方,接收到視訊流的一方將視訊呈現給用戶。 With the continuous development of network technology, network video communication has been more and more widely used. In network video communication, first, the videoconferencing parties establish a network connection, and one or both of the network cameras activate the network camera to capture the video stream, and send the captured video stream to the other party through the established network connection, and receive the video. The party to the stream presents the video to the user.
目前,大部分用戶所處的網路環境並不理想,網路連接的頻寬較小,只能支援320*240解析度的視訊。但是,有部分用戶的網路環境可以支援更大解析度的視訊,如640*480的解析度。然而目前網路攝影機捕獲的視訊流大部分對應320*240解析度的視訊,不能為支援更大解析度的用戶提供更清晰的視訊。 At present, most users are not in a good network environment. The bandwidth of the network connection is small, and only supports 320*240 resolution video. However, some users' network environments can support more resolution video, such as 640*480 resolution. However, most of the video streams captured by the network cameras currently correspond to 320*240 resolution video, and cannot provide clearer video for users with greater resolution.
本發明的實施例提供了一種視訊解析度的切換方法及裝置、終端及切換系統,實現視訊通信中的解析度切換。 Embodiments of the present invention provide a method and device for switching video resolution, a terminal, and a handover system, which implement resolution switching in video communication.
本發明的實施例提供一種視訊解析度的切換方法,包括:確定視訊發送端與視訊接收端建立視訊通信連接,獲得該視訊發送端的視訊初始解析度;確定該視訊通信連接的頻寬以及該視訊發送端的硬體符合預設條件, 將該視訊發送端的初始解析度切換到目標解析度,該目標解析度高於該初始解析度。 An embodiment of the present invention provides a method for switching video resolution, including: determining that a video communication terminal establishes a video communication connection with a video receiving end, obtaining a video initial resolution of the video transmitting end, determining a bandwidth of the video communication connection, and determining the video communication. The hardware of the sender meets the preset conditions. The initial resolution of the video sender is switched to a target resolution, which is higher than the initial resolution.
對應的,本發明的實施例提供一種視訊解析度的切換裝置,包括:獲取單元,用於確定視訊發送端與視訊接收端建立視訊通信連接,獲得該視訊發送端的視訊初始解析度;切換單元,用於確定該視訊通信連接的頻寬以及該視訊發送端的硬體符合預設條件,將該視訊發送端的初始解析度切換到目標解析度,該視訊發送端的目標解析度高於該初始解析度。 Correspondingly, an embodiment of the present invention provides a video resolution switching apparatus, including: an acquiring unit, configured to determine that a video communication terminal establishes a video communication connection with a video receiving end, and obtains a video initial resolution of the video transmitting end; The first resolution of the video transmitting end is switched to the target resolution, and the target resolution of the video transmitting end is higher than the initial resolution.
本發明的實施例還提供一種終端,包括上述視訊解析度的切換裝置。 An embodiment of the present invention further provides a terminal, including the foregoing video resolution switching device.
本發明的實施例還提供一種視訊解析度的切換系統,包括複數個上述終端,用於實現複數個終端間的視訊通信。 An embodiment of the present invention further provides a video resolution switching system, including a plurality of the foregoing terminals, for implementing video communication between a plurality of terminals.
由上述本發明的實施例提供的技術方案可以看出,終端間建立視訊通信連接後,確定使用視訊通信的終端硬體及頻寬允許的條件下,可以切換終端的解析度,為終端用戶提供更清晰視訊,並保障解析度的平滑切換。 According to the technical solution provided by the foregoing embodiments of the present invention, after establishing a video communication connection between terminals, determining the terminal hardware and bandwidth allowed by using video communication, the resolution of the terminal can be switched to provide the terminal user with Clearer video and guaranteed smooth switching of resolution.
為使本發明的目的、技術方案和優點更加清楚明白,以下舉具體實施例並參照附圖,對本發明作進一步詳細說明。 The present invention will be further described in detail below with reference to the accompanying drawings.
目前網路攝影機捕獲的視訊流大部分對應320*240解析度的視訊,從而導致視訊顯示不夠清晰。本發明實施例提出了一種視訊解析度的切換方法,如將視訊解析度從320*240解析度切換到640*480解析度,以便為支援更大解析度的用戶提供更清晰視訊通信。 At present, most of the video streams captured by the network camera correspond to 320*240 resolution video, which results in insufficient video display. The embodiment of the invention provides a method for switching video resolution, such as switching the resolution of the video from 320*240 resolution to 640*480 resolution, so as to provide clearer video communication for users who support greater resolution.
實施例一 Embodiment 1
第一圖為本發明實施例提供一種視訊解析度的切換方法流程圖。如第一圖所示,該切換方法包括: The first figure provides a flowchart of a method for switching video resolution according to an embodiment of the present invention. As shown in the first figure, the switching method includes:
11:確定視訊發送端與視訊接收端建立視訊通信連接,獲得視訊發送端的視訊初始解析度。 11: Determine that the video sending end establishes a video communication connection with the video receiving end, and obtains the initial video resolution of the video sending end.
12:確定視訊通信連接的頻寬以及視訊發送端的硬體滿足預設條件,將視訊發送端的初始解析度切換到目標解析度,目標解析度高於初始解析度。 12: Determine the bandwidth of the video communication connection and the hardware of the video transmitting end meet the preset condition, and switch the initial resolution of the video sending end to the target resolution, and the target resolution is higher than the initial resolution.
以上步驟11和12可以由發送終端來執行或者由與一個切換裝置來執行。 The above steps 11 and 12 can be performed by the transmitting terminal or by a switching device.
由上述本發明的實施例提供的技術方案可以看出,在視訊通信連接的頻寬及終端硬體允許的條件下,可以切換終端的解析度。視訊發送端的初始解析度低於目標解析度。例如,視訊發送端與視訊接收端建立視訊通信連接後,視訊發送端的初始解析度為320*240的解析度,而目標解析度假設為640*480的解析度。與320*240的初始解析度相比較而言,640*480的目標解析度可以為終端用戶提供更清晰的視訊通信。 It can be seen from the technical solution provided by the foregoing embodiments of the present invention that the resolution of the terminal can be switched under the condition that the bandwidth of the video communication connection and the terminal hardware allow. The initial resolution of the video sender is lower than the target resolution. For example, after the video transmitting end establishes a video communication connection with the video receiving end, the initial resolution of the video transmitting end is 320*240 resolution, and the target resolution holiday is set to a resolution of 640*480. Compared to the initial resolution of 320*240, the target resolution of 640*480 can provide clearer video communication for end users.
具體而言,步驟12中確定視訊通信連接的頻寬以及視訊發送端的硬體符合預設條件,可以包括:確定視訊通信連接的頻寬大於或等於一個頻寬預設值,該頻寬預設值根據目標解析度的大小來設置。 For example, determining the bandwidth of the video communication connection and the hardware of the video transmitting end according to the preset condition in step 12 may include: determining that the bandwidth of the video communication connection is greater than or equal to a bandwidth preset value, the bandwidth preset The value is set according to the size of the target resolution.
確定視訊發送端的CPU主頻大於或等於一個主頻預設值,該主頻預設值根據目標解析度的大小來設置。 It is determined that the CPU frequency of the video sending end is greater than or equal to a preset frequency value, and the preset frequency value is set according to the size of the target resolution.
可選的,可以在確定視訊通信連接的頻寬大於或等於頻寬預設值之後,確定視訊發送端的CPU主頻大於或等於主頻預設值,但具體先後順序不受限制。 Optionally, after determining that the bandwidth of the video communication connection is greater than or equal to the preset value of the bandwidth, determining that the CPU frequency of the video sending end is greater than or equal to the preset frequency of the primary frequency, but the specific sequence is not limited.
由於目標解析度高於視訊發送端與視訊接收端建立視訊通信連接後視訊發送端的解析度,例如640*480解析度的視訊流相當於320*240解析度視訊流的3倍多,因此為了保證視訊發送端能夠傳送視訊資料到視訊接收端,視訊通信連接的頻寬需要大於或等於頻寬預設值。 Since the resolution of the target is higher than the resolution of the video transmitting end after the video transmitting end and the video receiving end establish a video communication connection, for example, the video stream of 640*480 resolution is equivalent to more than three times of the 320*240 resolution video stream, so The video transmitting end can transmit the video data to the video receiving end, and the bandwidth of the video communication connection needs to be greater than or equal to the bandwidth preset value.
而且,由於視訊發送端傳送640*480解析度的視訊流,視訊發送端的CPU消耗比較大,因此需要判斷CPU的主頻是否能夠承受這麼大的消耗,例如,判斷視訊發送端的CPU主頻是否大於或等於主頻預設值。 Moreover, since the video transmitting end transmits the video stream of 640*480 resolution, the CPU consumption of the video transmitting end is relatively large, so it is necessary to determine whether the CPU's main frequency can withstand such a large consumption, for example, determining whether the CPU main frequency of the video transmitting end is greater than or equal to Or equal to the preset frequency.
具體而言,步驟12中確定視訊通信連接的頻寬以及視訊發送端的硬體符合預設條件,還可以包括:確定視訊發送端在初始解析度下的幀率及對應的網路丟包率符合預設條件,比如:確定在初始解析度下的幀率是否達到幀率預設值以及對應的網路丟包率是否小於或等網路丟包率預設值。 Specifically, in step 12, determining the bandwidth of the video communication connection and the hardware of the video transmitting end meet the preset condition, the method further includes: determining that the frame rate of the video sending end at the initial resolution and the corresponding network packet loss rate are consistent. Pre-set conditions, such as: determining whether the frame rate at the initial resolution reaches the frame rate preset value and whether the corresponding network packet loss rate is less than or equal to the network packet loss rate preset value.
由於實際網路應用中,網路的頻寬並不一定代表網路的可用頻寬,則通過提高初始解析度下的幀率來等效目標解析度下的幀率所需要的頻寬,確定初始解析度下的幀率是否達到幀率預設值,以及確定對應的網路丟包率是否小於或等於網路丟包率預設值。當確定初始解析度下的幀率達到幀率預設值,以及確定對應的網路丟包率小於或等於網路丟包率預設值時,可以認為網路頻寬滿足要求,將視訊發送端的初始解析度切換到目標解析度。 Since the bandwidth of the network does not necessarily represent the available bandwidth of the network in an actual network application, the bandwidth required for the frame rate under the equivalent target resolution is determined by increasing the frame rate at the initial resolution. Whether the frame rate under the initial resolution reaches the frame rate preset value, and whether the corresponding network packet loss rate is less than or equal to the network packet loss rate preset value. When it is determined that the frame rate under the initial resolution reaches the preset value of the frame rate, and the corresponding network packet loss rate is determined to be less than or equal to the preset value of the network packet loss rate, the network bandwidth can be considered to meet the requirement, and the video is sent. The initial resolution of the end is switched to the target resolution.
如,對於視訊資料,視訊頻寬=視訊解析度*視訊幀率,則通過提高320*240解析度下的高幀率來等效640*480解析度下低幀率所需要的視訊頻寬。而且,若視訊頻寬不允許,會導致視訊資料丟包嚴重,則在提高320*240解析度下的幀率同時,對網路進行丟包檢測。當320*240解析度下幀率大於或等於幀率預設值,且相應的網路丟包率小於或等於網路丟包率預設值,此時視訊頻寬滿足640*480解析度下的幀率。 For example, for video data, video bandwidth = video resolution * video frame rate, the video bandwidth required for the low frame rate at 640 * 480 resolution is improved by increasing the high frame rate at 320 * 240 resolution. Moreover, if the video bandwidth is not allowed, the video data packet loss will be severe, and the frame rate under the resolution of 320*240 is increased, and the network is detected as packet loss. When the frame rate is greater than or equal to the frame rate preset value at 320*240 resolution, and the corresponding network packet loss rate is less than or equal to the network packet loss rate preset value, the video bandwidth satisfies the 640*480 resolution. Frame rate.
可以知道,視訊發送端與視訊接收端建立視訊通信連接後,視訊發送端可以啟動網路攝影機捕獲視訊流並向視訊接收端輸出視訊流,此時捕獲視訊流的解析度為初始解析度,對視訊流進行編碼輸出,同理輸出視訊流的解析度亦為初始解析度,在此不作贅述。 It can be known that after the video transmitting end establishes a video communication connection with the video receiving end, the video transmitting end can start the network camera to capture the video stream and output the video stream to the video receiving end. At this time, the resolution of the captured video stream is the initial resolution, The video stream is encoded and outputted. The resolution of the output video stream is also the initial resolution, which is not described here.
可見,本發明實施例視訊解析度的切換方法,可以通過將視訊發送端的捕獲視訊的初始解析度切換到目標解析度,進而實現將視訊發送端的輸出解析度切換到目標解析度,為終端用戶提供更清晰的視訊通信。 It can be seen that, in the method for switching the video resolution of the embodiment of the present invention, the initial resolution of the captured video at the video transmitting end can be switched to the target resolution, thereby converting the output resolution of the video transmitting end to the target resolution, and providing the terminal user with Clearer video communication.
本發明實施例視訊解析度的切換方法,在確定視訊發送端與視訊接收端建立視訊通信連接的步驟11後,與視訊發送端輸出視訊流同時,執行步驟12中的確定視訊通信連接的頻寬以及視訊發送端的硬體符合預設條件並將視訊發送端的解析度切換到目標解析度。這樣,將視訊發送端的解析度切換到目標解析度過程中,用戶的視訊通信實現平滑過渡,即避免了切換到目標解析度後頻寬不允許或者硬體不支援而導致的視訊通信中斷或視訊通信品質下降。 In the method for switching the video resolution of the embodiment of the present invention, after determining the step 11 of establishing a video communication connection between the video transmitting end and the video receiving end, and simultaneously outputting the video stream with the video transmitting end, performing the determining the bandwidth of the video communication connection in step 12 And the hardware of the video sending end meets the preset condition and switches the resolution of the video sending end to the target resolution. In this way, when the resolution of the video transmitting end is switched to the target resolution process, the user's video communication realizes a smooth transition, that is, the video communication interruption or video communication caused by the bandwidth not allowed or the hardware is not supported after switching to the target resolution is avoided. Communication quality has declined.
或者,本發明實施例視訊解析度的切換方法,可以是:在確定視訊發送端與視訊接收端建立視訊通信連接的步驟11後,等待確定視訊通信連接 的頻寬以及視訊發送端的硬體符合預設條件執行完畢,視訊發送端再向視訊接收端輸出目標解析度的視訊。雖然這樣會存在一定的等待時間,但是由於等待時間較小,對進行視訊通信的用戶體驗的影響較小。 Alternatively, the method for switching the video resolution of the embodiment of the present invention may be: after determining the step 11 of establishing a video communication connection between the video transmitting end and the video receiving end, waiting for determining the video communication connection. The bandwidth and the hardware of the video transmitting end are executed according to the preset conditions, and the video transmitting end outputs the video of the target resolution to the video receiving end. Although there will be a certain waiting time, the impact on the user experience of video communication is small due to the small waiting time.
本發明實施例視訊解析度的切換方法中,視訊發送端,可以理解為視訊發送端設備。同理,視訊接收端,可以理解為視訊接收端設備。 In the method for switching the video resolution of the embodiment of the present invention, the video transmitting end can be understood as a video transmitting end device. Similarly, the video receiving end can be understood as a video receiving device.
對於視訊通信雙方而言,視訊發送端對應的視訊接收端亦可以作為視訊發送端,亦適用本發明實施例視訊解析度的切換方法。這樣,視訊通信的雙方,通過本發明實施例視訊解析度的切換方法,實現視訊解析度的切換,為終端用戶提供更清晰的視訊通信。 For the video communication, the video receiving end corresponding to the video transmitting end can also be used as the video transmitting end, and the method for switching the video resolution of the embodiment of the present invention is also applicable. In this way, both sides of the video communication realize the switching of the video resolution by the method for switching the video resolution according to the embodiment of the present invention, thereby providing the terminal user with clearer video communication.
實施例二 Embodiment 2
如第二圖所示,本發明實施例提供一種視訊解析度的切換裝置,包括: 獲取單元21,用於確定視訊發送端與視訊接收端建立視訊通信連接,獲得視訊發送端的視訊初始解析度。 As shown in the second figure, an embodiment of the present invention provides a video resolution switching apparatus, including: The obtaining unit 21 is configured to determine that the video sending end establishes a video communication connection with the video receiving end, and obtains a video initial resolution of the video sending end.
切換單元22,用於確定視訊通信連接的頻寬以及視訊發送端的硬體符合預設條件,將視訊發送端的初始解析度切換到目標解析度,視訊發送端的目標解析度高於該初始解析度。 The switching unit 22 is configured to determine the bandwidth of the video communication connection and the hardware of the video transmitting end meet the preset condition, and switch the initial resolution of the video sending end to the target resolution, and the target resolution of the video sending end is higher than the initial resolution.
由上述本發明的實施例提供的技術方案可以看出,終端間建立視訊通信連接後,確定使用視訊通信的終端硬體及頻寬允許的條件下,可以切換終端的解析度,為終端用戶提供更清晰的視訊通信,並保障解析度的平滑切換。 According to the technical solution provided by the foregoing embodiments of the present invention, after establishing a video communication connection between terminals, determining the terminal hardware and bandwidth allowed by using video communication, the resolution of the terminal can be switched to provide the terminal user with Clearer video communication and smooth switching of resolution.
如第三圖所示,切換單元22,可以包括:第一確定子單元221,用於確定視訊通信連接的頻寬大於或等於頻寬預 設值。 As shown in the third figure, the switching unit 22 may include: a first determining subunit 221, configured to determine that the bandwidth of the video communication connection is greater than or equal to the bandwidth pre- Set the value.
第二確定子單元222,用於確定視訊發送端的CPU主頻大於或等於主頻預設值;切換子單元223,用於根據第一確定子單元221和第二確定子單元222的確定結果,將視訊發送端的初始解析度切換到目標解析度。 The second determining sub-unit 222 is configured to determine that the CPU main frequency of the video sending end is greater than or equal to the main frequency preset value, and the switching sub-unit 223 is configured to determine, according to the determining result of the first determining sub-unit 221 and the second determining sub-unit 222, Switch the initial resolution of the video sender to the target resolution.
切換單元22,還可以包括:第三確定子單元224,用於確定視訊發送端在初始解析度下的幀率達到幀率預設值及對應的網路丟包率小於或等於網路丟包率預設值。 The switching unit 22 may further include: a third determining sub-unit 224, configured to determine that the frame rate of the video sending end reaches the frame rate preset value and the corresponding network packet loss rate is less than or equal to the network packet loss at the initial resolution. Rate preset.
進一步的,切換單元22,還可以包括:分析子單元,用於提高該初始解析度下的幀率來等效該目標解析度下的幀率所需要的頻寬,第三確定子單元224用於確定初始解析度下的提高後的幀率是否達到幀率預設值,以及確定對應的網路丟包率是否小於或等於網路丟包率預設值。在這裏,由於視訊頻寬=視訊解析度*視訊幀率,幀率預設值可以為:目標解析度下的幀率所需要的頻寬/初始解析度。對於初始解析度而言,如果提高幀率,就等效於提高頻寬。因此,在提高幀率的過程中,當提高的幀率達到幀率預設值時,如果對應的該幀率的網路丟包率小於或等於網路丟包率預設值,則當前網路頻寬滿足目標解析度對頻寬的需求。 Further, the switching unit 22 may further include: an analysis subunit, configured to increase a frame rate at the initial resolution to be equivalent to a bandwidth required for a frame rate at the target resolution, and the third determining subunit 224 Determine whether the increased frame rate under the initial resolution reaches a frame rate preset value, and determine whether the corresponding network packet loss rate is less than or equal to a network packet loss rate preset value. Here, due to the video bandwidth=video resolution* video frame rate, the frame rate preset value may be: the bandwidth/initial resolution required for the frame rate at the target resolution. For the initial resolution, if the frame rate is increased, it is equivalent to increasing the bandwidth. Therefore, in the process of increasing the frame rate, when the increased frame rate reaches the preset frame rate, if the network packet loss rate of the corresponding frame rate is less than or equal to the network packet loss rate preset value, the current network The road bandwidth satisfies the target resolution and bandwidth requirements.
本發明實施例視訊解析度的切換裝置及其構成部分,可以參考上述實施例提供的視訊解析度的切換方法得以理解,在此不作贅述。 The switching device for the video resolution of the embodiment of the present invention and the components thereof can be understood by referring to the method for switching the video resolution provided by the foregoing embodiments, and details are not described herein.
實施例三 Embodiment 3
如第四圖所示,基於上述實施例提供的視訊解析度的切換裝置,本發 明實施例還提供一種終端40,其包括上述實施例提供的視訊解析度的切換裝置41。 As shown in the fourth figure, the video resolution switching device provided by the above embodiment, the present invention The embodiment further provides a terminal 40, which includes the video resolution switching device 41 provided by the above embodiment.
視訊解析度的切換裝置41設置在終端40內部,或者連接於終端40的外部。 The video resolution switching device 41 is provided inside the terminal 40 or connected to the outside of the terminal 40.
視訊解析度的切換裝置41確定終端40與其他終端建立視訊通信連接後,確定視訊通信連接的頻寬以及終端40的硬體符合預設條件,將終端40的初始解析度切換到目標解析度,其中目標解析度高於初始解析度。 The video resolution switching device 41 determines that the terminal 40 establishes a video communication connection with other terminals, determines the bandwidth of the video communication connection, and the hardware of the terminal 40 meets the preset condition, and switches the initial resolution of the terminal 40 to the target resolution. The target resolution is higher than the initial resolution.
由上述本發明的實施例提供的技術方案可以看出,終端間建立視訊通信連接後,確定使用視訊通信的終端硬體及頻寬允許的條件下,可以切換終端的解析度,為終端用戶提供更清晰的視訊通信,並保障解析度的平滑切換。 According to the technical solution provided by the foregoing embodiments of the present invention, after establishing a video communication connection between terminals, determining the terminal hardware and bandwidth allowed by using video communication, the resolution of the terminal can be switched to provide the terminal user with Clearer video communication and smooth switching of resolution.
實施例四 Embodiment 4
如第五圖所示,基於上述實施例提供的視訊解析度的切換裝置,本發明的實施例還提供一種視訊解析度的切換系統50,包括複數個上述實施例提供的終端51。 As shown in FIG. 5, based on the video resolution switching apparatus provided in the above embodiment, the embodiment of the present invention further provides a video resolution switching system 50, which includes a plurality of terminals 51 provided by the foregoing embodiments.
以視訊解析度的切換系統50包括2個終端51為例,2個終端51分別為視訊通信的雙方,如視訊發送端與視訊接收端。 The video resolution switching system 50 includes two terminals 51 as an example, and the two terminals 51 are respectively video communication terminals, such as a video transmitting end and a video receiving end.
2個終端51建立視訊通信連接後,分別確定視訊通信連接的頻寬以及各自的硬體符合預設條件,將各自的解析度切換到目標解析度。 After establishing the video communication connection, the two terminals 51 respectively determine the bandwidth of the video communication connection and the respective hardware conform to the preset conditions, and switch the respective resolutions to the target resolution.
由上述本發明的實施例提供的技術方案可以看出,終端間建立視訊通信連接後,確定使用視訊通信的終端硬體及頻寬允許的條件下,可以切換終端的解析度,為終端用戶提供更清晰的視訊通信,並保障解析度的平滑 切換。 According to the technical solution provided by the foregoing embodiments of the present invention, after establishing a video communication connection between terminals, determining the terminal hardware and bandwidth allowed by using video communication, the resolution of the terminal can be switched to provide the terminal user with Clearer video communication and smooth resolution Switch.
如第六圖所示,本發明一實施例視訊解析度的切換方法具體應用流程圖,說明視訊甲從320*240解析度過度到640*480解析度的切換方法。在第六圖中,視訊甲等同於視訊通信雙方的用戶端甲,視訊乙等同於視訊通信雙方的用戶端乙。該方法包括: As shown in FIG. 6 , a specific application flowchart of a method for switching video resolution according to an embodiment of the present invention illustrates a method for switching a resolution of a video from a resolution of 320*240 to a resolution of 640*480. In the sixth figure, video A is equivalent to the user terminal A of both parties of the video communication, and video B is equivalent to the user terminal B of both parties of the video communication. The method includes:
61、視訊甲乙雙方已經建立了320*240解析度的視訊連接,視訊甲啟動網路攝影機捕獲320*240解析度的視訊流,並向視訊乙發送320*240解析度的視訊流。 61. Both video and B have established a video connection with 320*240 resolution. Video A starts the network camera to capture the video stream of 320*240 resolution, and sends 320*240 resolution video stream to video B.
視訊甲乙雙方建立視訊連接,網路攝影機捕獲並發送視訊流的具體實現方式為現有技術,在此不作贅述。 The video A and B establish a video connection, and the specific implementation of the video camera to capture and send the video stream is prior art, and will not be described here.
62、視訊甲通過連接通道向視訊乙連續發送複數個資料包。 62. Video A continuously sends a plurality of data packets to video communication B through the connection channel.
例如視訊甲通過連接通道向視訊乙連續發送4個資料包。 For example, video A continuously sends 4 packets to video B through the connection channel.
63、視訊乙接收到複數個資料包,視訊乙根據資料包之間的間隔進行頻寬的計算,並將計算結果發送給視訊甲。 63. Video B receives a plurality of data packets, and video B calculates the bandwidth according to the interval between the data packets, and sends the calculation result to the video camera A.
例如視訊乙接收到視訊甲發送的4個資料包,並根據發送的資料包個數與頻寬之間的關係計算得到頻寬大於或等於60KB,進入步驟64,否則結束。 For example, video B receives 4 data packets sent by video A, and calculates a bandwidth greater than or equal to 60 KB according to the relationship between the number of transmitted data packets and the bandwidth, and proceeds to step 64, otherwise ends.
上述步驟62、63完成了頻寬的測量,具體實現方式為現有技術,在此不作贅述。頻寬測量不僅僅限制於步驟62、63的實現方式,其他可以實現頻寬測量的方式亦可以適用。 The foregoing steps 62 and 63 complete the measurement of the bandwidth. The specific implementation is the prior art, and details are not described herein. The bandwidth measurement is not limited to the implementation of steps 62 and 63, and other ways in which the bandwidth measurement can be implemented are also applicable.
64、視訊甲判斷其CPU主頻是否大於等於主頻預設值。 64. Video A determines whether the CPU frequency is greater than or equal to the preset frequency.
本步驟中,由於目標解析度為640*480,終端的CPU消耗比較大,因此 需要判斷CPU的主頻是否能承受這麼大的消耗。在本實施例中,如果CPU主頻大於等於雙核主頻2.0GHz,進入步驟65,否則結束。 In this step, since the target resolution is 640*480, the CPU consumption of the terminal is relatively large, so Need to determine whether the CPU's main frequency can withstand such a large consumption. In this embodiment, if the CPU main frequency is greater than or equal to the dual core frequency of 2.0 GHz, the process proceeds to step 65, otherwise it ends.
步驟64可以理解為本地硬體檢查。本地硬體檢查不僅僅限制於步驟64的判斷CPU主頻,亦可以使用其他方式。 Step 64 can be understood as a local hardware check. The local hardware check is not limited to the judgment of the CPU frequency in step 64, and other methods may be used.
65、視訊甲提高320*240解析度視訊的幀率同時,進行丟包檢測。 65. Video A increases the frame rate of the resolution of 320*240 video at the same time, and performs packet loss detection.
通過提高320*240解析度下的幀率來等效640*480解析度下的幀率所需要的頻寬,若320*240解析度下幀率大於或等於20幀,相應的網路丟包率又小於或等於3%,確定頻寬滿足640*480解析度視訊下的幀率,進入步驟66,否則結束。 By increasing the frame rate at 320*240 resolution to achieve the bandwidth required for the frame rate at 640*480 resolution, if the frame rate is greater than or equal to 20 frames at 320*240 resolution, the corresponding network packet loss The rate is less than or equal to 3%, and the bandwidth is determined to satisfy the frame rate under 640*480 resolution video, and the process proceeds to step 66, otherwise it ends.
66、視訊甲發送信號通知視訊乙可以啟用640*480解析度的視訊。 66. Video A sends a signal to notify Video B that it can enable 640*480 resolution video.
如視訊甲發送顯示繪圖陣列(VGA,Video Graphic Array)視訊可用資訊給視訊乙,告知視訊乙可以啟用640*480解析度的視訊。 For example, Video A sends a video display VGA (Video Graphic Array) video information to Video B, which tells Video B that it can enable 640*480 resolution video.
67、視訊乙接收到視訊甲發送的通知信號,視訊乙確認接受640*480解析度的視訊後發送確認信號給視訊甲。 67. Video B receives the notification signal sent by Video A. Video B confirms to accept the video of 640*480 resolution and sends an acknowledgement signal to Video A.
例如,視訊乙發送確認信號觸發視訊甲啟動VGA視訊請求。 For example, video B sends an acknowledgment signal to trigger video com to initiate a VGA video request.
68、視訊甲接收到視訊乙的確認信號,啟動網路攝影機捕獲640*480解析度的視訊流,並向視訊乙發送640*480解析度的視訊流。 68. Video A receives the confirmation signal of Video B, activates the network camera to capture the video stream of 640*480 resolution, and sends a video stream of 640*480 resolution to Video B.
例如,視訊甲輸出640*480解析度的VGA視訊流。 For example, Video A outputs a 640 video stream of 640*480 resolution.
上述步驟61-68,完成視訊解析度由320*240切換到640*480的過程。 In the above steps 61-68, the process of switching the video resolution from 320*240 to 640*480 is completed.
對於視訊乙而言,其亦可以實現視訊解析度由320*240切換到640*480的過程,與上述步驟62-68類似,在此不再贅述。 For video B, it can also switch from 320*240 to 640*480, which is similar to the above steps 62-68, and will not be described here.
由上述本發明的實施例提供的技術方案可以看出,終端間建立視訊通 信連接後,確定使用視訊通信的終端硬體及頻寬允許的條件下,可以切換終端的解析度,為終端用戶提供更清晰的視訊通信,並保障解析度的平滑切換。 It can be seen from the technical solution provided by the foregoing embodiments of the present invention that video communication is established between terminals. After the connection is made, it is determined that the resolution of the terminal can be switched under the condition that the terminal hardware and the bandwidth of the video communication are allowed, so that the terminal user can provide clearer video communication and ensure smooth switching of the resolution.
需要說明的是,對於前述實施例,為了簡單描述,故將其都表述為一系列的動作組合,但是本領域技術人員應該知悉,本發明並不受所描述的動作順序的限制,因為依據本發明,某些步驟可以採用其他順序或者同時進行。其次,本領域技術人員亦應該知悉,說明書中所描述的實施例均屬於最佳實施例,所涉及的動作和模組並不一定是本發明所必須的。 It should be noted that, for the foregoing embodiments, for the sake of brevity, they are all described as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence, because Invented, certain steps may be performed in other orders or simultaneously. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述實施例中,對各個實施例的描述都各有側重,某個實施例中沒有詳述的部分,可以參見其他實施例的相關描述。 In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
本領域普通技術人員可以理解實現上述實施例方法中的全部或部分流程,可以通過電腦程式來指令相關的硬體完成,該程式可存儲於電腦可讀取存儲介質中,該程式在執行時,可包括上述各方法的實施例的流程。其中,該存儲介質可為磁碟、光碟、唯讀存儲記憶體(Read-Only Memory,ROM)或隨機存儲記憶體(Random Access Memory,RAM)等。 A person skilled in the art can understand all or part of the process of implementing the above embodiments, and can execute the related hardware by a computer program, and the program can be stored in a computer readable storage medium. The flow of an embodiment of each of the above methods may be included. The storage medium may be a magnetic disk, a optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上該僅為本發明的較佳實施例而已,並不用以限制本發明,凡在本發明的精神和原則之內所做的任何修改、等同替換和改進等,均應包含在本發明的保護範圍之內。 The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.
21‧‧‧獲取單元 21‧‧‧Acquisition unit
22‧‧‧切換單元 22‧‧‧Switch unit
221‧‧‧第一確定子單元 221‧‧‧First identified subunit
222‧‧‧第二確定子單元 222‧‧‧Secondary subunit
223‧‧‧切換子單元 223‧‧‧Switch subunit
224‧‧‧第三確定子單元 224‧‧‧ third determining subunit
40‧‧‧終端 40‧‧‧ Terminal
41‧‧‧切換裝置 41‧‧‧Switching device
50‧‧‧切換系統 50‧‧‧Switching system
51‧‧‧終端 51‧‧‧ Terminal
第一圖為本發明一實施例視訊解析度的切換方法流程圖;第二圖為本發明一實施例視訊解析度的切換裝置的結構示意圖; 第三圖為本發明另一實施例視訊解析度的切換裝置的結構示意圖;第四圖為本發明一實施例終端的結構示意圖;第五圖為本發明一實施例視訊解析度的切換系統的示意圖;第六圖為本發明一實施例視訊解析度的切換方法應用流程圖。 1 is a flowchart of a method for switching video resolution according to an embodiment of the present invention; and FIG. 2 is a schematic structural diagram of a video resolution switching device according to an embodiment of the present invention; 3 is a schematic structural diagram of a video resolution switching apparatus according to another embodiment of the present invention; FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention; and FIG. 5 is a schematic diagram of a video resolution switching system according to an embodiment of the present invention; FIG. 6 is a flow chart showing an application of a method for switching video resolution according to an embodiment of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100102092A TWI473498B (en) | 2011-01-20 | 2011-01-20 | A video resolution switching method and device, a terminal and a switching system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100102092A TWI473498B (en) | 2011-01-20 | 2011-01-20 | A video resolution switching method and device, a terminal and a switching system |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201233176A TW201233176A (en) | 2012-08-01 |
TWI473498B true TWI473498B (en) | 2015-02-11 |
Family
ID=47069824
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW100102092A TWI473498B (en) | 2011-01-20 | 2011-01-20 | A video resolution switching method and device, a terminal and a switching system |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI473498B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105376642B (en) * | 2014-08-18 | 2019-12-03 | 深圳Tcl新技术有限公司 | Video playing resolution ratio switching method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6483543B1 (en) * | 1998-07-27 | 2002-11-19 | Cisco Technology, Inc. | System and method for transcoding multiple channels of compressed video streams using a self-contained data unit |
US20040201862A1 (en) * | 2003-04-14 | 2004-10-14 | Bailey James Ray | Maximizing performance in a hardware image scaling module |
US20050030369A1 (en) * | 2003-06-14 | 2005-02-10 | Lg Electronics Inc. | Image data processing system and method of mobile communication terminal |
US20050164679A1 (en) * | 2002-02-02 | 2005-07-28 | Superscape Group Plc | Apparatus and method for sending image data |
TW201010430A (en) * | 2008-05-28 | 2010-03-01 | Broadcom Corp | Edge device that enables efficient delivery of video to handheld device |
TW201043029A (en) * | 2009-05-12 | 2010-12-01 | Ibm | Web conference performance monitoring system |
-
2011
- 2011-01-20 TW TW100102092A patent/TWI473498B/en active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6483543B1 (en) * | 1998-07-27 | 2002-11-19 | Cisco Technology, Inc. | System and method for transcoding multiple channels of compressed video streams using a self-contained data unit |
US20050164679A1 (en) * | 2002-02-02 | 2005-07-28 | Superscape Group Plc | Apparatus and method for sending image data |
US20040201862A1 (en) * | 2003-04-14 | 2004-10-14 | Bailey James Ray | Maximizing performance in a hardware image scaling module |
US20050030369A1 (en) * | 2003-06-14 | 2005-02-10 | Lg Electronics Inc. | Image data processing system and method of mobile communication terminal |
TW201010430A (en) * | 2008-05-28 | 2010-03-01 | Broadcom Corp | Edge device that enables efficient delivery of video to handheld device |
TW201043029A (en) * | 2009-05-12 | 2010-12-01 | Ibm | Web conference performance monitoring system |
Also Published As
Publication number | Publication date |
---|---|
TW201233176A (en) | 2012-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2011088769A1 (en) | Method and apparatus for video resolution switch, terminal and switch system | |
US20150350723A1 (en) | Video Communication Method, Home Terminal, and Home Server | |
KR20140020733A (en) | Image capturing method and local endpoint host device | |
US20200169774A1 (en) | Control method and device | |
WO2014086142A1 (en) | Method and apparatus for processing video image | |
CN107211158B (en) | Method and apparatus for controlling screen sharing among a plurality of terminals, and recording medium | |
EP2934007A1 (en) | Method for switching coding mode, sending end and receiving end | |
CN113992883B (en) | Video conference processing method, processing device, conference system, and storage medium | |
CN108023869B (en) | Parameter adjusting method and device for multimedia communication and mobile terminal | |
JP2018507662A (en) | Recording medium and apparatus for recording program for providing low-delay live broadcast content | |
WO2015043370A1 (en) | Mobile video quality detection method and apparatus | |
JP2016506206A (en) | Retransmission and frame synchronization for error control | |
JP6345254B2 (en) | Video communication termination method and apparatus | |
US20180048866A1 (en) | Videoconference communication device | |
KR101682627B1 (en) | Method and System for Providing Video Stream, and Relaying Apparatus | |
TWI473498B (en) | A video resolution switching method and device, a terminal and a switching system | |
US20110044332A1 (en) | Communication apparatus, communication system, and communication method | |
CN107147917B (en) | For obtaining method, mobile terminal and the system of video | |
JP2016149648A5 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM | |
US20150189231A1 (en) | Video conferencing system | |
WO2014082294A1 (en) | Media stream transmission method and relevant device and system | |
JP4947160B2 (en) | Codec converter | |
CN105791223B (en) | media stream data processing method and system and electronic equipment | |
WO2012151854A1 (en) | Video data transmission method and device | |
WO2015135409A1 (en) | Session establishment method, terminal and system |