Video transmission method and terminal device

By selecting appropriate resolution and bitrate before video transmission, the problems of latency, stuttering, and black screen caused by the limited processing capabilities of encryption and decryption chips in terminal devices during video calls are solved, achieving more stable video data transmission.

CN116828232BActive Publication Date: 2026-08-04CHENGDU TD TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHENGDU TD TECH LTD
Filing Date
2022-03-21
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

During video calls, terminal devices may experience delays, stuttering, or black screens when transmitting high-resolution video data due to the limited processing capabilities of encryption and decryption chips.

Method used

Before video transmission, the terminal device selects an appropriate resolution from the set of supported resolutions and determines the bitrate based on its own encryption and decryption capabilities to ensure that data transmission and processing can be completed in a timely manner.

Benefits of technology

By adjusting the resolution and bitrate, the latency, stuttering, and black screen issues during video data display were reduced, thus improving the stability of video calls.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116828232B_ABST
    Figure CN116828232B_ABST
Patent Text Reader

Abstract

The application provides a video transmission method and a terminal device, and relates to the technical field of video processing. When the maximum encryption and decryption rate of video data allowed by a second terminal is greater than the code rate corresponding to the first resolution, the first terminal can receive the first video data collected by the second terminal at a second resolution less than or equal to the first resolution and fed back by the second terminal. In this way, when the second terminal encrypts the first video data at the code rate corresponding to the second resolution, the second terminal can timely encrypt the first video data. Similarly, since the maximum encryption and decryption rate of video data allowed by the first terminal is greater than the code rate corresponding to the second resolution, when the first terminal decrypts the first video data at the code rate corresponding to the second resolution, the first terminal can timely decrypt the first video data. In this way, when the first terminal displays the first video data on the first interface, the possibility of delay, lag or even black screen of the first video data is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to video processing technology, and more particularly to a video transmission method and terminal device. Background Technology

[0002] Currently, with the development of terminal technology, terminal devices have become an integral part of people's work and life. For example, terminal devices can be used for functions such as video calls.

[0003] Terminal devices can be equipped with encryption / decryption chips. This allows them to be used in video call scenarios where data security is paramount, encrypting video data during calls to enhance security. For example, during a video call between two terminals, the first terminal can encrypt the video data using its encryption / decryption chip. Then, the first terminal transmits the encrypted video data to the second terminal, where its encryption / decryption chip can decrypt and display the video data. This ensures that the video data remains encrypted during transmission, providing high security.

[0004] However, due to the limited processing power of encryption and decryption chips, for high-resolution video data, the first terminal may not be able to encrypt every frame of the video data in a timely manner; similarly, the second terminal may also be unable to decrypt every frame of the video data in a timely manner. This can lead to delays, stuttering, or even black screens on the second terminal during video calls. Summary of the Invention

[0005] This application provides a video transmission method and terminal device to solve the problem that causes delays, stuttering, or even black screens when displaying video data on a second terminal during a video call.

[0006] In a first aspect, this application provides a video transmission method, including:

[0007] The first terminal displays a first interface of the target application. The first interface includes a first control, which is used to control the reception of first video data from the second terminal.

[0008] In response to a trigger operation on the first control, the first terminal determines a first resolution from the set of resolutions supported by the target application, wherein the bitrate corresponding to the first resolution is less than or equal to the maximum encryption / decryption rate allowed by the first terminal for video data.

[0009] The first terminal sends the first resolution to the second terminal;

[0010] If the maximum encryption / decryption rate allowed by the second terminal for video data is greater than the bitrate corresponding to the first resolution, the first terminal receives the first video data acquired from the second terminal at the second resolution, wherein the second resolution is less than or equal to the first resolution, and the first video data is encrypted.

[0011] The first terminal decrypts the first video data using the bitrate corresponding to the second resolution;

[0012] The first terminal displays the decrypted first video data on the second interface.

[0013] The video transmission method provided in this application requires determining a first resolution from the set of resolutions supported by the target application before the first terminal receives first video data from the second terminal. The maximum encryption / decryption rate allowed by the first terminal for video data is greater than the bitrate corresponding to the first resolution. Then, the first terminal sends the first resolution to the second terminal. When the maximum encryption / decryption rate allowed by the second terminal is greater than the bitrate corresponding to the first resolution, the first terminal can receive first video data acquired at a second resolution less than or equal to the first resolution from the second terminal. In this way, when the second terminal encrypts the first video data at the bitrate corresponding to the second resolution, it can encrypt each frame of the first video data in a timely manner. Similarly, since the maximum encryption / decryption rate allowed by the first terminal is greater than the bitrate corresponding to the second resolution, when the first terminal decrypts the first video data at the bitrate corresponding to the second resolution, it can decrypt each frame of the first video data in a timely manner. This reduces the possibility of delays, stuttering, or even black screens when the first terminal displays the decrypted first video data on the first interface.

[0014] Secondly, this application also provides another video transmission method, including:

[0015] The first terminal displays the first interface of the target application. The first interface includes a first control, which is used to instruct the sending of first video data to the second terminal.

[0016] In response to a trigger operation on a first control, the first terminal determines a first resolution from the set of resolutions supported by the target application, wherein the bitrate corresponding to the first resolution is less than or equal to the maximum encryption / decryption rate allowed by the first terminal for video data.

[0017] The first terminal sends the first resolution to the second terminal;

[0018] If the maximum encryption / decryption rate allowed by the second terminal for video data is greater than the bitrate corresponding to the first resolution, the first terminal receives the second resolution from the second terminal, wherein the second resolution is less than or equal to the first resolution, and the first video data is encrypted.

[0019] The first terminal collects first video data based on the second resolution;

[0020] The first terminal encrypts the first video data at the bitrate corresponding to the second resolution.

[0021] The first terminal sends encrypted first video data to the second terminal.

[0022] The video transmission method provided in this application, because the bitrate corresponding to the second resolution is less than or equal to the maximum encryption / decryption rate allowed by the first terminal for video data, allows the first terminal to encrypt each frame of the first video data in a timely manner when encrypting it at the bitrate corresponding to the second resolution. Furthermore, because the bitrate corresponding to the second resolution is less than or equal to the maximum encryption / decryption rate allowed by the second terminal, the second terminal can also decrypt each frame of the first video data in a timely manner when decrypting it at the same bitrate. Therefore, when the first terminal transmits the encrypted first video data to the second terminal for display, the possibility of delays, stuttering, or even a black screen during the display of the first video data is reduced.

[0023] Thirdly, this application also provides a video transmission device, the device comprising:

[0024] The display unit is used to display the first interface of the target application. The first interface includes a first control, which is used to control the reception of first video data from the second terminal.

[0025] The processing unit is configured to, in response to a trigger operation on the first control, determine a first resolution from a set of resolutions supported by the target application, wherein the bitrate corresponding to the first resolution is less than or equal to the maximum encryption / decryption rate allowed by the first terminal for video data;

[0026] A communication unit, used to send the first resolution to the second terminal;

[0027] If the maximum encryption / decryption rate allowed by the second terminal for video data is greater than the bitrate corresponding to the first resolution, the communication unit is also used to receive the first video data acquired from the second terminal at the second resolution, wherein the second resolution is less than or equal to the first resolution, and the first video data is encrypted.

[0028] The processing unit is also used to decrypt the first video data at a bitrate corresponding to the second resolution;

[0029] The display unit is also used to display the decrypted first video data on the second interface.

[0030] Fourthly, this application also provides a terminal device, including:

[0031] processor;

[0032] Memory used to store processor-executable instructions;

[0033] The processor is configured to execute instructions to implement the video transmission method as described in the first aspect.

[0034] Fifthly, this application also provides a storage medium that, when the instructions in the storage medium are executed by the processor of a terminal device, enables the terminal device to perform a video transmission method as described in the first or second aspect.

[0035] Sixthly, this application also provides a computer program product, including a computer program that, when executed by a processor, is like the video transmission method of the first or second aspect. Attached Figure Description

[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0037] Figure 1 One of the flowcharts for the video transmission method provided in the embodiments of this application;

[0038] Figure 2 A schematic diagram illustrating the interaction between the cloud server and the first terminal and the second terminal, respectively, provided in an embodiment of this application;

[0039] Figure 3 A schematic diagram of a first interface displayed on a first terminal, provided in an embodiment of this application;

[0040] Figure 4 A schematic diagram of a first terminal displaying a second interface provided in an embodiment of this application;

[0041] Figure 5 A schematic diagram of a first terminal displaying a third interface provided in an embodiment of this application;

[0042] Figure 6 A second flowchart illustrating the video transmission method provided in this application embodiment;

[0043] Figure 7 This is a schematic diagram of the functional modules of the video transmission device provided in the embodiments of this application;

[0044] Figure 8This is a schematic diagram of the architecture of a terminal device provided in an embodiment of this application.

[0045] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0046] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0047] Technical terminology used in this application:

[0048] 1080P: is a video display format with a resolution of 1920×1080.

[0049] 720P: This is a video display format with a resolution of 1280×720.

[0050] D1: is a video display format with a resolution of 720×480.

[0051] CIF is one of the commonly used standardized video display formats (common intermediate format, CIF), with a resolution of 320×288.

[0052] QCIF is one of the commonly used standardized video display formats (Quarter Common Intermediate Format, QCIF), with a resolution of 176×144.

[0053] Please see Figure 1 This application provides a video transmission method applied to a communication system. For example... Figure 2 As shown, the communication system includes a first terminal 100, a second terminal 200, and a cloud server 300, with the cloud server 300 communicatively connected to both the first terminal 100 and the second terminal 200. The video transmission method provided in this application includes:

[0054] S101: The first terminal 100 displays the first interface 101 of the target application.

[0055] The first interface 101 includes a first control, which is used to control the reception of first video data from the second terminal 200.

[0056] The target application could be a video calling application. For example... Figure 3 As shown, the first terminal 100 displays a first interface 101 of the call application. The first interface 101 may include the contact's name "XXX", the call number "XXXXXXXXXXX", a control 102 marked "Video Call", a control 103 marked "Video Feedback", and a control 104 marked "Video Monitoring". Among them, the control 102 marked "Video Monitoring" can be understood as the first control.

[0057] S102: In response to the triggering operation of the first control, the first terminal 100 determines the first resolution from the set of resolutions supported by the target application.

[0058] Among them, the bitrate corresponding to the first resolution is less than or equal to the maximum encryption / decryption rate allowed by the first terminal 100 for video data.

[0059] Understandably, the higher the resolution of the first video data, the more data needs to be transmitted, and therefore the higher the required bitrate; conversely, the lower the resolution of the first video data, the less data needs to be transmitted, and therefore the lower the required bitrate. In this embodiment, the first terminal 100 has a preset one-to-one mapping relationship between the resolutions supported by the target application and the bitrate, and the resolutions supported by the target application are positively correlated with the bitrate.

[0060] Optionally, the maximum encryption / decryption rate allowed by the first terminal 100 for video data can be the maximum bitrate tested by the first terminal 100 beforehand when decrypting the second video data. For example, when the first terminal 100 is connected to a test device, the second terminal 200 encrypts or decrypts second video data of a preset size (e.g., 1.3M). The test device records the duration of the encryption or decryption process. Therefore, the test device can determine the maximum encryption / decryption rate allowed by the first terminal 100 for video data based on the size of the second video data and the duration of the encryption or decryption process. Since the maximum encryption / decryption rate allowed by the first terminal 100 for video data is obtained through testing by the first terminal 100 beforehand when encrypting or decrypting the second video data, it is more realistic and has higher reliability.

[0061] The following example illustrates S102 above. When a user triggers the control 102 marked "Video Monitoring," the first terminal 100, in response to the triggering operation of the control 104 marked "Video Monitoring," determines the set of bitrates (e.g., bitrate 1, bitrate 2, bitrate 3, bitrate 4, and bitrate 5) corresponding to the resolution set (1080P, 720P, D1, CIF, and QCIF) supported by the video call application. Then, the first terminal 100 determines from the bitrate set (e.g., bitrate 1, bitrate 2, bitrate 3, bitrate 4, and bitrate 5) that is less than or equal to the maximum encryption / decryption rate allowed by the first terminal 100 for video data. Here, bitrate 3 corresponds to resolution D1, bitrate 4 corresponds to resolution CIF, and bitrate 5 corresponds to resolution QCIF. Thus, resolution D1, resolution CIF, and resolution QCIF are determined multiple first resolutions. Of course, in other embodiments, the determined first resolution may also be a single resolution, which is not limited here.

[0062] S103: The first terminal 100 sends the first resolution to the second terminal 200.

[0063] For example, the first terminal 100 can assemble multiple first resolutions (D1, CIF, and QCIF) into SIP signaling and send the SIP signaling to the cloud server 300. The cloud server 300 forwards the SIP signaling carrying multiple first resolutions (D1, CIF, and QCIF) to the second terminal 200.

[0064] S104: If the maximum encryption / decryption rate allowed by the second terminal 200 for video data is greater than the bitrate corresponding to the first resolution, the first terminal 100 receives the first video data acquired from the second terminal 200 at the second resolution, wherein the second resolution is less than or equal to the first resolution, and the first video data is encrypted.

[0065] The second terminal 200 determines the second resolution from multiple first resolutions (D1, CIF, and QCIF). The principle by which the second terminal 200 determines the first resolution from multiple first resolutions (D1, CIF, and QCIF) is the same as that by the first terminal 100 determining the first resolution from a set of resolutions supported by the target application.

[0066] The maximum encryption / decryption rate allowed by the second terminal 200 for video data can be the maximum bitrate tested beforehand when decrypting the second video data, which is more realistic and reliable. Since the bitrate corresponding to the second resolution is less than or equal to the maximum encryption / decryption rate allowed by the second terminal 200 for video data, when the second terminal 200 encrypts the first video data at the bitrate corresponding to the second resolution, the second terminal 200 can encrypt each frame of the first video data in a timely manner.

[0067] For example, still as Figure 3 As shown, S104 above includes:

[0068] S401: If the maximum encryption / decryption rate allowed by the second terminal 200 for video data is greater than the bitrate corresponding to the first resolution, the first terminal 100 receives the second resolution from the second terminal 200.

[0069] For example, based on the embodiment corresponding to S103 above, the first terminal 100 can receive a status code from the second terminal 200. The status code carries a second resolution and is used to indicate successful reception of SIP signaling. For example, the status code could be "200 OK".

[0070] S402: The first terminal 100 sends an acknowledgment packet in response to the second resolution to the second terminal 200.

[0071] For example, the first terminal 100 sends an acknowledgment packet in response to a status code to the second terminal 200. The acknowledgment packet indicates that the status code "200 OK" has been successfully received. For example, the acknowledgment packet could be an ACK character.

[0072] S403: The first terminal 100 receives first video data acquired at a second resolution from the second terminal 200. The first video data is encrypted by the second terminal 200.

[0073] S105: The first terminal 100 decrypts the first video data at the bitrate corresponding to the second resolution.

[0074] Understandably, since the bitrate corresponding to the first resolution is less than or equal to the maximum encryption / decryption rate allowed by the first terminal 100 for video data, the second resolution is also less than or equal to the maximum encryption / decryption rate allowed by the first terminal 100 for video data. Therefore, when the first terminal 100 decrypts the first video data at the bitrate corresponding to the second resolution, the first terminal 100 can decrypt each frame of the first video data in a timely manner.

[0075] S106: The first terminal 100 displays the decrypted first video data on the second interface 105.

[0076] Understandably, because the second terminal 200 can encrypt each frame of the first video data in a timely manner, the possibility of delays, stuttering, or even black screens in the first video data is reduced when the first terminal 100 displays the decrypted first video data on the first interface 101. Furthermore, because the first terminal 100 can decrypt each frame of the first video data in a timely manner, the possibility of delays, stuttering, or even black screens in the display of the first video data is further reduced.

[0077] like Figure 4 As shown, the first terminal 100 displays the second interface 105, which displays the decrypted first video data.

[0078] As can be seen, through the above steps S101-S106, the first terminal 100 can display video data collected from the second terminal 200, thus realizing "video surveillance".

[0079] In addition, the second interface 105 also includes a second control, which is used to indicate hanging up the video call. After S106 above, the method provided by this application further includes: the first terminal 100 stops receiving the first video data from the second terminal 200 in response to the user's trigger operation on the second control.

[0080] Still Figure 4 As shown, the second interface 105 of the first terminal 100 includes a hang-up control 106. In response to the user's triggering operation on the hang-up control 106, the first terminal 100 stops receiving the first video data from the second terminal 200. Therefore, the hang-up control 106 is the second control.

[0081] In summary, the video transmission method provided in this application requires, before the first terminal 100 receives the first video data from the second terminal 200, to determine a first resolution from the set of resolutions supported by the target application, and the maximum encryption / decryption rate allowed by the first terminal 100 for the video data must be greater than the bitrate corresponding to the first resolution. Then, the first terminal 100 sends the first resolution to the second terminal 200. When the maximum encryption / decryption rate allowed by the second terminal 200 for the video data is greater than the bitrate corresponding to the first resolution, the first terminal 100 can receive the first video data acquired at a second resolution less than or equal to the first resolution from the second terminal 200. In this way, when the second terminal 200 encrypts the first video data at the bitrate corresponding to the second resolution, the second terminal 200 can encrypt each frame of the first video data in a timely manner. Similarly, since the maximum encryption / decryption rate allowed by the first terminal 100 for video data is greater than the bitrate corresponding to the second resolution, when the first terminal 100 decrypts the first video data at the bitrate corresponding to the second resolution, the first terminal 100 can decrypt each frame of the first video data in a timely manner. When the first terminal 100 displays the decrypted first video data on the first interface 101, the possibility of delay, stuttering, or even black screen in the first video data is reduced.

[0082] In some other embodiments, if the first resolution is not found in the resolution set, the first terminal 100 displays a first prompt message on the first interface 101, which is used to indicate that the reception has failed.

[0083] If the first resolution is not present in the resolution set, the first terminal 100 cannot encrypt or decrypt each frame of the first video data in a timely manner. Therefore, the first terminal 100 displays a first prompt message on the first interface 101, indicating a reception failure. This avoids the possibility of delays, stuttering, or even a black screen when the first terminal 100 displays the first video data.

[0084] Alternatively, if the maximum encryption / decryption rate allowed by the second terminal 200 for video data is less than the bitrate corresponding to the first resolution, the first terminal 100 receives first information from the second terminal 200, which indicates that the second terminal 200 does not support the first resolution. In response to the first information, the first terminal 100 displays a first prompt message on the first interface 101, indicating reception failure.

[0085] If the bitrate of the first resolution pair exceeds the maximum encryption / decryption rate allowed by the second terminal 200 for video data, the second terminal 200 cannot encrypt each frame of the first video data in a timely manner. Therefore, the second terminal 200 does not collect the first video data but instead indicates to the first terminal 100 that it does not support the first resolution. This avoids the possibility of delays, stuttering, or even a black screen when the first terminal 100 displays the first video data.

[0086] In other embodiments, the first control is also used to control the transmission of third video data to the second terminal 200. Exemplarily, as follows... Figure 3 As shown, the control 102 marked "Video Call" can be understood as the first control. In this case, the bitrate corresponding to the first resolution is less than or equal to half of the maximum encryption / decryption rate allowed by the first terminal 100 for video data. Understandably, when the first control is also used to control the transmission of third video data to the second terminal 200, the first terminal 100 must not only decrypt the first video data from the second terminal 200 but also encrypt the third video data transmitted to the second terminal 200. Therefore, to ensure that the first terminal 100 can decrypt each frame of the third video data and encrypt each frame of the first video data in a timely manner, the bitrate corresponding to the first resolution needs to be less than or equal to half of the maximum encryption / decryption rate allowed by the first terminal 100 for video data.

[0087] Following S402 above, the method provided in this application may further include:

[0088] S404: The first terminal 100 acquires third video data at a second resolution.

[0089] S405: The first terminal 100 sends encrypted third video data to the second terminal 200.

[0090] Understandably, there is no sequential order between S404-S405 and S403 mentioned above.

[0091] In this scenario, the bitrate corresponding to the second resolution is less than or equal to half of the maximum encryption / decryption rate allowed by the second terminal 200 for video data. Understandably, when the first control is also used to control the transmission of third video data to the second terminal 200, the second terminal 200 must not only decrypt the third video data from the first terminal 100 but also encrypt the first video data transmitted to the first terminal 100. Therefore, to ensure that the second terminal 200 can decrypt each frame of the third video data and encrypt each frame of the first video data in a timely manner, the bitrate corresponding to the second resolution needs to be less than or equal to half of the maximum encryption / decryption rate allowed by the second terminal 200 for video data.

[0092] As can be seen, by combining S101-S106 and S401-S404 above, the first terminal 100 can display the first video data collected from the second terminal 200, and the second terminal 200 can display the third video data collected from the first terminal 100, thus realizing "video call".

[0093] In the above embodiments, the first control, when triggered, sends a first request to the second terminal 200 to receive first video data from the second terminal 200. The first request is used to request a video call. Exemplarily, as follows... Figure 3 As shown, when the control 102 labeled "Video Call" or the control 103 labeled "Video Monitoring" sends a first request to the second terminal 200 to receive first video data from the second terminal 200, it can be seen that in this case, the first terminal 100 is the calling end.

[0094] Alternatively, the first interface 101 is displayed when the first terminal 100 receives a first request from the second terminal 200. The first request is used to request a video call, and the first control is also used to confirm the first request to receive the first video data from the second terminal 200.

[0095] like Figure 5 As shown, when the first terminal 100 receives the first request from the second terminal 200, it displays a third interface 107. The third interface 107 includes a call answering control 108. When the first terminal 100 responds to the triggering operation of the call answering control 108, it confirms the first request to receive the first video data from the second terminal 200. Therefore, in this case, the first terminal 100 is the called party.

[0096] Please refer to section 6, which describes a video transmission method provided in this application, applied to a communication system. For example... Figure 2 As shown, the communication system includes a first terminal 100, a second terminal 200, and a cloud server 300, with the cloud server 300 communicatively connected to both the first terminal 100 and the second terminal 200. The video transmission method provided in this application includes:

[0097] S601: The first terminal 100 displays a first interface 101 of the target application. The first interface 101 includes a first control, which is used to instruct the sending of first video data to the second terminal 200.

[0098] The target application could be a video calling application. For example... Figure 3As shown, the first terminal 100 displays a first interface 101 of the call application. The first interface 101 may include the contact's name "XXX", the call number "XXXXXXXXXXX", and a control 103 marked "Video Return". The control 103 marked "Video Return" can be understood as the first control.

[0099] S602: In response to a trigger operation on the first control, the first terminal 100 determines a first resolution from the set of resolutions supported by the target application.

[0100] Among them, the bitrate corresponding to the first resolution is less than or equal to the maximum encryption / decryption rate allowed by the first terminal 100 for video data.

[0101] S602 operates on the same principle as S102 described above, and will not be repeated here.

[0102] S603: The first terminal 100 sends the first resolution to the second terminal 200.

[0103] S603 operates on the same principle as S103 described above, and will not be repeated here.

[0104] S604: If the maximum encryption / decryption rate allowed by the second terminal 200 for video data is greater than the bitrate corresponding to the first resolution, the first terminal 100 receives the second resolution from the second terminal 200, wherein the second resolution is less than or equal to the first resolution, and the first video data is encrypted.

[0105] S604 operates on the same principle as S104 described above, and will not be repeated here.

[0106] S605: The first terminal 100 collects the first video data according to the second resolution.

[0107] S606: The first terminal 100 encrypts the first video data at the bitrate corresponding to the second resolution.

[0108] S607: The first terminal 100 sends encrypted first video data to the second terminal 200.

[0109] In this way, the second terminal 200 can decrypt the first video data according to the bitrate corresponding to the second resolution. Then, the second terminal 200 displays the first video data.

[0110] Understandably, Figure 6The video transmission method provided in the corresponding embodiment, since the bitrate corresponding to the second resolution is less than or equal to the maximum encryption / decryption rate allowed by the first terminal 100 for video data, allows the first terminal 100 to encrypt each frame of the first video data in a timely manner when encrypting the first video data at the bitrate corresponding to the second resolution. Furthermore, since the bitrate corresponding to the second resolution is less than or equal to the maximum encryption / decryption rate allowed by the second terminal 200, the second terminal 200 can decrypt each frame of the first video data in a timely manner when decrypting it at the same bitrate. Thus, when the first terminal 100 transmits the encrypted first video data to the second terminal 200 for display, the possibility of delays, stuttering, or even a black screen during the display of the first video data on the second terminal 200 is reduced.

[0111] It should be noted that the encryption or decryption operation of the first terminal 100 or the second terminal 200 in the above embodiments is performed in the encryption or decryption chip of the first terminal 100 or the second terminal 200.

[0112] Please see Figure 7 This application also provides a video transmission device 700, applied to a first terminal 100, which is located in a communication system. Figure 2 As shown, the communication system also includes a second terminal 200 and a cloud server 300, the cloud server 300 being communicatively connected to the first terminal 100 and the second terminal 200 respectively. The apparatus 700 provided in this embodiment includes:

[0113] Display unit 701 is used to display a first interface 101 of the target application. The first interface 101 includes a first control for controlling the reception of first video data from the second terminal 200. Processing unit 702 is used to determine a first resolution from a set of resolutions supported by the target application in response to a trigger operation of the first control, wherein the bitrate corresponding to the first resolution is less than or equal to the maximum encryption / decryption rate allowed by the first terminal 100 for video data. Communication unit 703 is used to send the first resolution to the second terminal 200. If the maximum encryption / decryption rate allowed by the second terminal 200 for video data is greater than the bitrate corresponding to the first resolution, communication unit 703 is also used to receive first video data acquired from the second terminal 200 at a second resolution, wherein the second resolution is less than or equal to the first resolution, and the first video data is encrypted. Processing unit 702 is also used to decrypt the first video data at the bitrate corresponding to the second resolution. Display unit 701 is also used to display the decrypted first video data on the second interface 105.

[0114] In an optional implementation, if the maximum encryption / decryption rate allowed by the second terminal 200 for video data is less than the bitrate of the first resolution pair, the communication unit 703 is further configured to receive first information from the second terminal 200, the first information indicating that the second terminal 200 does not support the first resolution. The display unit 701 is further configured to display first prompt information on the first interface 101 in response to the first information, the first prompt information indicating reception failure.

[0115] In an optional implementation, the first control is further configured to control the transmission of third video data to the second terminal 200, wherein the bit rate corresponding to the first resolution is less than or equal to half of the maximum encryption / decryption rate allowed by the first terminal 100 for the video data.

[0116] The communication unit 703 is further configured to, if the maximum encryption / decryption rate allowed by the second terminal 200 for video data is greater than half the bitrate corresponding to the first resolution, allow the first terminal 100 to receive first video data acquired at a second resolution from the second terminal 200. The processing unit 702 is further configured to, allow the first terminal 100 to acquire third video data at the second resolution. The communication unit 703 is further configured to, send encrypted third video data to the second terminal 200.

[0117] In one alternative implementation, the maximum encryption / decryption rate allowed by the first terminal 100 for video data is the maximum bitrate that the first terminal 100 tests beforehand when decrypting the second video data.

[0118] In one optional implementation, the communication unit 703 is specifically configured to: receive a second resolution from the second terminal 200; send an acknowledgment packet in response to the second resolution to the second terminal 200; and receive first video data acquired at the second resolution from the second terminal 200 if the maximum encryption / decryption rate allowed by the second terminal 200 is greater than the bitrate corresponding to the first resolution.

[0119] In an optional implementation, the communication unit 703 is further configured to send a first request to the second terminal 200 to receive first video data from the second terminal 200 when triggered, the first request being used to request a video call.

[0120] Alternatively, the first interface 101 is displayed when the first terminal 100 receives a first request from the second terminal 200. The first request is used to request a video call, and the first control is also used to confirm the first request to receive the first video data from the second terminal 200.

[0121] In an optional implementation, the second interface 105 further includes a second control for indicating that the video call should be ended, and the communication unit 703 is also used to stop receiving first video data from the second terminal 200 in response to the user's triggering operation on the second control.

[0122] Figure 8 This is a block diagram of a terminal device 800 according to an exemplary embodiment. The terminal device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0123] When the processing component 802 executes a computer program, it causes the terminal device 800 to perform the video transmission method as described in the above embodiments. The processing component 802 typically controls the overall operation of the terminal device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Furthermore, the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.

[0124] Memory 804 is configured to store various types of data to support operation on terminal device 800. Examples of this data include instructions for any application or method operating on terminal device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0125] Power supply component 806 provides power to various components of terminal device 800. Power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to terminal device 800.

[0126] Multimedia component 808 includes a screen that provides an output interface between the terminal device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the terminal device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0127] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when terminal device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.

[0128] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0129] Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of terminal device 800. For example, sensor assembly 814 can detect the on / off state of terminal device 800, the relative positioning of components such as the display and keypad of terminal device 800, changes in position of terminal device 800 or a component of terminal device 800, the presence or absence of user contact with terminal device 800, orientation or acceleration / deceleration of terminal device 800, and temperature changes of terminal device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0130] Communication component 816 is configured to facilitate wired or wireless communication between terminal device 800 and other devices. Terminal device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0131] In an exemplary embodiment, the terminal device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0132] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of a terminal device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device, etc. This non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the terminal device, enables the terminal device 800 to perform... Figure 1 or Figure 6 The video transmission method shown.

[0133] This application also provides a computer program product, including a computer program, which, when executed by a processor, performs... Figure 1 or Figure 6 The video transmission method shown.

[0134] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0135] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A video transmission method, characterized in that, The method includes: The first terminal displays a first interface of the target application. The first interface includes a first control, which is used to control the reception of first video data from the second terminal. In response to a trigger operation on the first control, the first terminal determines a first resolution from the set of resolutions supported by the target application, wherein the bitrate corresponding to the first resolution is less than or equal to the maximum encryption / decryption rate allowed by the first terminal for video data. The first terminal sends the first resolution to the second terminal; If the maximum encryption / decryption rate allowed by the second terminal for video data is greater than the bitrate corresponding to the first resolution, the first terminal receives the first video data acquired from the second terminal at the second resolution, wherein the second resolution is less than or equal to the first resolution, and the first video data is encrypted. The first terminal decrypts the first video data at the bitrate corresponding to the second resolution. The first terminal displays the decrypted first video data on the second interface.

2. The method according to claim 1, characterized in that, If the maximum encryption / decryption rate allowed by the second terminal for video data is greater than the bitrate corresponding to the first resolution, the first terminal receives the first video data acquired from the second terminal at the second resolution, including: If the maximum encryption / decryption rate allowed by the second terminal for video data is greater than the bitrate corresponding to the first resolution, the first terminal receives the second resolution from the second terminal. The first terminal sends an acknowledgment packet in response to the second resolution to the second terminal; The first terminal receives first video data acquired from the second terminal at a second resolution.

3. The method according to claim 2, characterized in that, The first control is also used to control the transmission of third video data to the second terminal, wherein the bit rate corresponding to the first resolution is less than or equal to half of the maximum encryption / decryption rate allowed by the first terminal for video data; The first terminal receiving first video data acquired at a second resolution from the second terminal when the maximum encryption / decryption rate allowed by the second terminal for video data is greater than the bitrate corresponding to the first resolution includes: the first terminal receiving first video data acquired at a second resolution from the second terminal when the maximum encryption / decryption rate allowed by the second terminal for video data is greater than half the bitrate corresponding to the first resolution. After the first terminal sends an acknowledgment packet in response to the second resolution to the second terminal, the method further includes: the first terminal acquiring the third video data at the second resolution and sending the encrypted third video data to the second terminal.

4. The method according to claim 1, characterized in that, The maximum encryption / decryption rate allowed by the first terminal for video data is the maximum bitrate that the first terminal tested beforehand when decrypting the second video data.

5. The method according to any one of claims 1-4, characterized in that, If the first resolution is not found in the set of resolutions, the first terminal displays a first prompt message on the first interface, the first prompt message being used to indicate reception failure. Alternatively, if the maximum encryption / decryption rate allowed by the second terminal for video data is less than the bitrate of the first resolution pair, the first terminal receives first information from the second terminal, the first information indicating that the second terminal does not support the first resolution; in response to the first information, the first terminal displays first prompt information on the first interface, the first prompt information indicating reception failure.

6. The method according to any one of claims 1-4, characterized in that, The first control is used to send a first request to the second terminal to receive the first video data from the second terminal when it is triggered; the first request is used to request a video call. Alternatively, the first interface is displayed when the first terminal receives a first request from the second terminal, the first request being used to request a video call, and the first control is also used to confirm the first request to receive the first video data from the second terminal.

7. A video transmission method, characterized in that, The method includes: The first terminal displays a first interface of the target application, the first interface including a first control, the first control being used to instruct the sending of first video data to the second terminal; In response to a trigger operation on the first control, the first terminal determines a first resolution from the set of resolutions supported by the target application, wherein the bitrate corresponding to the first resolution is less than or equal to the maximum encryption / decryption rate allowed by the first terminal for video data. The first terminal sends the first resolution to the second terminal; If the maximum encryption / decryption rate allowed by the second terminal for video data is greater than the bitrate corresponding to the first resolution, the first terminal receives the second resolution from the second terminal, wherein the second resolution is less than or equal to the first resolution, and the first video data is encrypted. The first terminal collects the first video data according to the second resolution; The first terminal encrypts the first video data at the bitrate corresponding to the second resolution; The first terminal sends the encrypted first video data to the second terminal.

8. A video transmission device, characterized in that, The device includes: A display unit is used to display a first interface of a target application. The first interface includes a first control, which is used to control the reception of first video data from a second terminal. The processing unit is configured to, in response to a trigger operation on the first control, determine a first resolution from a set of resolutions supported by the target application, wherein the bitrate corresponding to the first resolution is less than or equal to the maximum encryption / decryption rate allowed by the first terminal for video data; A communication unit is used to send the first resolution to the second terminal; If the maximum encryption / decryption rate allowed by the second terminal for video data is greater than the bitrate corresponding to the first resolution, the communication unit is further configured to receive first video data acquired from the second terminal at a second resolution, wherein the second resolution is less than or equal to the first resolution, and the first video data is encrypted. The processing unit is further configured to decrypt the first video data at a bitrate corresponding to the second resolution; The display unit is also used to display the decrypted first video data on a second interface.

9. A terminal device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the video transmission method as described in any one of claims 1 to 7.

10. A storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable a terminal device to perform the video transmission method as described in any one of claims 1 to 7.