CN115103211B - Data transmission method, electronic device, equipment and computer readable storage medium - Google Patents

Data transmission method, electronic device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN115103211B
CN115103211B CN202210893378.3A CN202210893378A CN115103211B CN 115103211 B CN115103211 B CN 115103211B CN 202210893378 A CN202210893378 A CN 202210893378A CN 115103211 B CN115103211 B CN 115103211B
Authority
CN
China
Prior art keywords
resolution
encoding
coding
video receiving
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210893378.3A
Other languages
Chinese (zh)
Other versions
CN115103211A (en
Inventor
吴玉波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Maile Information Technology Co ltd
Original Assignee
Guangzhou Maile Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Maile Information Technology Co ltd filed Critical Guangzhou Maile Information Technology Co ltd
Priority to CN202210893378.3A priority Critical patent/CN115103211B/en
Publication of CN115103211A publication Critical patent/CN115103211A/en
Application granted granted Critical
Publication of CN115103211B publication Critical patent/CN115103211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234363Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the spatial resolution, e.g. for clients with a lower screen resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25825Management of client data involving client display capabilities, e.g. screen resolution of a mobile phone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA

Abstract

The application discloses a video data transmission method, an electronic device, equipment and a computer readable storage medium. The method comprises the following steps: determining video receiving parameters of a plurality of video receiving ends; switching the coding resolution of the target coding module according to the video receiving parameters so as to enable the coding resolution of the target coding module to be matched with the video receiving parameters of a plurality of video receiving ends; and coding the data according to the coding resolution of the coding module, and sending the coded data to a video receiving end according to the video receiving parameters. By means of the method, the performance utilization rate of the coding equipment can be improved, and the output resolution of the coding equipment is improved.

Description

Data transmission method, electronic device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of video coding, and in particular, to a method for transmitting video data, an electronic device, a coding apparatus, and a computer-readable storage medium.
Background
In modern society with more and more advanced information technology, video communication is an indispensable part of people's life and work. With the continuous increase of the upper limit of the data transmission rate, in part of working scenes, people have higher and higher requirements on the resolution of video communication. For example, a resolution of 1080P is becoming a necessary requirement for most video communications. But for some low-performance encoding devices, the maximum performance can only support 720P resolution video encoding, i.e. the maximum performance is 180P, 360P and 720P resolution video encoding at the same time. How to adapt these devices to the increasing user demands, improve the encoding capability of the devices for video data, and improve the maximum resolution of the devices for video data encoding becomes a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The present application mainly aims to provide a video data transmission method, an electronic device, an encoding apparatus, and a computer-readable storage medium, which can solve the technical problem that the maximum encoding resolution of the encoding apparatus is not high due to performance reasons and cannot meet the requirements of customers.
In order to solve the above technical problem, the first technical solution adopted by the present application is: a method for transmitting video data is provided. The method comprises the following steps: determining video receiving parameters of a plurality of video receiving ends; switching the coding resolution of the target coding module according to the video receiving parameters so as to enable the coding resolution of the target coding module to be matched with the video receiving parameters of a plurality of video receiving ends; coding the data according to the coding resolution of the coding module, and sending the coded data to a video receiving end according to the video receiving parameters; the target coding module supports coding of a first resolution and a second resolution, the first resolution is greater than the second resolution, when the video receiving parameter includes the first resolution and does not include the second resolution, the coding resolution of the target coding module is switched to the first resolution, the first resolution is greater than a preset highest coding resolution of the coding device, and the second resolution is smaller than or equal to the preset highest coding resolution.
In order to solve the above technical problem, the second technical solution adopted by the present application is: an electronic device is provided. The electronic device comprises an encoding module, a decoding module and a display module, wherein the encoding module is used for encoding video data; the communication module is used for receiving the video receiving parameters and sending data to the video receiving end; and the control module is connected with the coding module and the communication module to realize the method in the first technical scheme.
In order to solve the above technical problem, the third technical solution adopted by the present application is: an encoding apparatus is provided. The encoding device comprises a memory for storing program data that can be executed by a processor for implementing the method as described in the first aspect and a processor.
In order to solve the above technical problem, a fourth technical solution adopted by the present application is: a computer-readable storage medium is provided. The computer readable storage medium stores program data that can be executed by a processor to implement the method as described in the first aspect.
The beneficial effect of this application is: be different from prior art, this application sets up coding module in the coding device into two kinds of changeable coding resolutions, wherein include and be greater than the first resolution that the coding device predetermines the highest resolution and be not more than the second resolution that the coding device predetermines the highest resolution, make when receiving the demand of video receiving end, if the coding resolution of video receiving end demand does not include the second resolution for including the first resolution, the coding device can utilize and be used for second resolution nature and redundant performance encoded originally, realize the encoding to first resolution video data, satisfy the demand of video receiving end to first resolution encoding, realize the improvement of coding device output resolution.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of video transmission according to the present application;
fig. 2 is a schematic flow chart of a first embodiment of a video data transmission method according to the present application;
FIG. 3 is a performance footprint of the encoding device;
FIG. 4 is a further performance occupancy of the encoding device;
fig. 5 is a flowchart illustrating a second embodiment of a video data transmission method according to the present application;
fig. 6 is a schematic flow chart of a third embodiment of a video data transmission method according to the present application;
fig. 7 is a schematic flowchart of a fourth embodiment of a video data transmission method according to the present application;
fig. 8 is a flowchart illustrating a fifth embodiment of the video data transmission method according to the present application;
FIG. 9 is a schematic structural diagram of a first embodiment of the encoding apparatus of the present application;
FIG. 10 is a schematic structural diagram of a first embodiment of a computer-readable storage medium of the present application;
fig. 11 is a schematic structural diagram of an embodiment of an electronic device according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first", "second", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The related background art of the present application will now be briefly described with reference to fig. 1.
The encoding unit 10 receives video data and encodes the video data for data transmission to a video client. The video client transmits a video receiving request of a required video resolution to the client where the encoding unit is located. As shown in fig. 1, fig. 1 includes a first user terminal 20, a second user terminal 30, and a third user terminal 40. The first user terminal 20 sends a 180P-resolution video receiving request to the user terminal of the coding unit to request transmission of 180P-resolution video data, the second user terminal 30 sends a 360P-resolution video receiving request to the user terminal of the coding unit to request transmission of 360P-resolution video data, and the third user terminal 40 sends a 720P-resolution video receiving request to the user terminal of the coding unit to request transmission of 720P-resolution video data. After receiving the video receiving request sent by each user terminal, the encoding unit 10 encodes the video data according to the resolution requirement in the video receiving request, so as to send the encoded video data to the corresponding user terminal. Generally, an encoder corresponds to an output of resolution coding, if a video receiving request of a user side with a resolution of 1080P is continuously increased, an encoder needs to be added to a coding unit to perform coding of 1080P resolution video data, and when the video coding requirements of 180P, 360P, 720P and 1080P are received, the video coding requirements of 180P, 360P, 720P and 1080P are simultaneously performed, but the CPU performance may not meet the calculation requirements of simultaneous coding, and the CPU occupation is too high, which may cause a jam or a program crash. Therefore, the present application proposes a video data transmission method capable of supporting 1080P resolution coding, which can refer to the following embodiments.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a video data transmission method according to the present application. The method is applied to an encoding device comprising a number of encoding modules for video encoding, the method comprising the steps of:
s11: and determining video receiving parameters of a plurality of video receiving ends.
The video receiving parameters include video resolutions required by the respective video receiving ends. For the sending end, the resolution of the encoding module can be determined only by receiving the video resolution of the video receiving end, the encoding resolution of the encoding module is matched with the video resolution sent by the video receiving end, and the original video is further encoded and output.
S12: and switching the coding resolution of the target coding module according to the video receiving parameters.
The video resolution of a video receiving end is determined, and the resolution of an encoding module is determined. The target encoding module is an encoding module that can perform video encoding with the first resolution or the second resolution. The first resolution is larger than the second resolution, and the target coding module can only output data coded by one resolution at the same time. The encoding resolution switching of the target encoding module may be performed by changing the set internal parameters. The first resolution is greater than a preset highest resolution of the encoding apparatus, and the second resolution is less than or equal to the preset highest resolution.
The preset highest resolution of the coding device is set according to the maximum performance of the coding device. And accumulating the performance parameters from the performance consumed by the lowest resolution coding to the performance consumed by the higher-resolution coding until the performance is greater than the maximum performance of the coding equipment. The resolution one level lower than the highest resolution at this time is the preset highest resolution of the encoding apparatus. For example, the maximum encoding performance of the encoding device is ninety percent, the video encoding resolutions are sequentially ranked as 180P, 360P, 720P, 1080P, 2K, 4K, etc., the performance consumption is ten percent when the encoding device is used for only 180P encoding, the performance consumption is twenty percent when the encoding device is used for only 360P encoding, the performance consumption is forty percent when the encoding device is used for only 720P encoding, the performance consumption is sixty percent when the encoding device is used for only 1080P encoding, the resolution at the lowest level is accumulated, the performance occupies seventy percent when the encoding device is used for 180P, 360P, 720P encoding, and the performance of 1080P encoding is accumulated to exceed the maximum encoding performance of the encoding device, so 720P is the preset highest resolution of the encoding device.
In one embodiment, the device may support three encoders at the same time for data transmission, 180P, 360P, 720P respectively. The 720P encoder is set as a target encoder supporting 720P or 1080P. In this device, the newly existing three-way encoders are 720P/1080P encoder, 360P encoder, and 180P encoder.
S13: and coding the data according to the coding resolution of the coding module, and sending the coded data to the video receiving end according to the video receiving parameters.
The target coding module supports coding of a first resolution and a second resolution, and when the video receiving parameters include the first resolution and do not include the second resolution at the same time, the coding resolution of the target coding module is switched to the first resolution.
In one embodiment, the three-way encoders present in the device are 720P/1080P encoders, 360P encoders, and 180P encoders. The 720P/1080P encoder is a target encoder. When the received video receiving parameters include the resolution requirements of 720P and 1080P, the output resolution of the target encoder is switched to 720P. Other video receiving parameters, such as 360P and 180P, are selected to correspond to the respective encoders for data encoding output.
In the original three-way encoder, due to the limitation of device performance, the highest resolution is preset to be 720P, and only a 720P encoder, a 360P encoder and a 180P encoder can be set, because the simultaneous encoding of 180P, 360P, 720P and 1080P is insufficient in system performance. On the other hand, if there is less demand at the receiving end, for example, only 1080P exists or 180P, 360P, 1080P exists, etc., the performance of the device can support its complete resolution data encoding, which is a waste of the performance of the encoding device. Therefore, in order to fully utilize the performance of the coding device, a target coding module is arranged for the coding device, and the coding device can support coding of two resolutions, namely the original resolution of the coding device and the resolution larger than the preset highest resolution of the coding device. For example, the target encoding module supports 720P and 1080P, and when there is a 1080P requirement and there is no 720P requirement, the encoding device can perform 1080P encoding by using the performance originally consumed by 720 encoding and the redundancy performance. The redundancy performance is the difference between the performance occupied by the coding equipment when coding is carried out at the same time by using the resolutions of all levels from the lowest resolution to the preset highest resolution and the maximum performance used by the coding equipment for coding. As shown in fig. 3, when a three-way encoding device encodes 180P, 360P, and 720P simultaneously, the performance occupies about 86%, and if the encoding device further increases 1080P, the performance occupies more than 90%, and 90% is a preset performance threshold of the system, which may affect the normal use of the system. As shown in fig. 4, the performance of the encoding apparatus occupies about 89% when the encoding apparatus encodes 180P, 360P, and 1080P simultaneously. For the encoding device, 1080P resolution can be supported through resolution switching, the maximum utilization of the device performance can be realized, the device can support higher resolution, and the application scene of the device is increased.
In another embodiment, the existing target encoder may also be a 360P/1080P encoder or a 180P/1080P encoder.
Through the embodiment, the encoding module in the encoding device is set to be capable of switching two encoding resolutions, wherein the encoding resolution includes a first resolution larger than a preset highest resolution of the encoding device and a second resolution not larger than the preset highest resolution of the encoding device, so that when the requirement of the video receiving end is received, if the encoding resolution required by the video receiving end includes the first resolution and does not include the second resolution, the encoding device can utilize the performance and the redundancy performance originally used for encoding the second resolution, the encoding of the video data with the first resolution is realized, the requirement of the video receiving end for encoding the first resolution is met, the improvement of the output resolution of the encoding device is realized, the performance utilization rate of the encoding device is improved, and the use scene of the device is increased.
Referring to fig. 5, fig. 5 is a flowchart illustrating a video data transmission method according to a second embodiment of the present application. The method is a further extension of the above embodiment. Which comprises the following steps:
s21: when the video receiving parameter includes the first resolution and the second resolution, the encoding resolution of the target encoding module is switched to the second resolution.
When the requirements of the first resolution and the second resolution are received simultaneously, the target coding module is switched to the second resolution for coding.
S22: and determining a video receiving end which requires the first resolution and the second resolution according to the video receiving parameters.
S23: and transmitting the data encoded at the second resolution to a video receiving end which requires the first resolution and the second resolution.
And after the target coding module is switched to the second resolution, the target coding module performs data coding output according to the second resolution. And transmitting the encoded data of the second resolution to a video receiving end requiring the second resolution. And for the video receiving end requiring the first resolution, the data of the second resolution is also transmitted to the video receiving end. Because the target encoding module can only output data of one encoding resolution at the same time, the target encoding module is encoded according to the second resolution at the moment, cannot encode the data of the first resolution, and does not have the output data of the first resolution.
In one embodiment, the three-way encoders present in the device are 720P/1080P encoders, 360P encoders, and 180P encoders. The 720P/1080P encoder is a target encoder. The received video receiving parameters include requirements of resolution 180P, 360P, 720P, 1080P. Since both 720P, 1080P resolutions exist, the target encoder selects the 720P resolution as the output resolution. The resulting encoded data includes data at 720P resolution, 360P resolution, and 180P resolution. And sending the 180P coded data to a video receiving end with a 180P resolution request, sending the 360P coded data to a video receiving end with a 360P resolution request, and sending the 720P coded data to a video receiving end with a 720P resolution request and a 1080P resolution request.
When the first resolution and the second resolution of the target encoding module are not adjacent to each other in the conventional encoding resolution, the resolution of the data transmitted to the video receiving end required by the first resolution may also be set according to actual conditions. The adjacent-size resolution in the conventional encoding resolution means that, for example, in four resolutions of 180P, 360P, 720P and 1080P, 180P and 360P are adjacent in size, 360P and 720P are adjacent in size, 720P and 1080P are adjacent in size, and 360P and 1080P are not adjacent in size.
In one embodiment, the three-way encoders present in the device are a 360P/1080P encoder, a 720P encoder, and a 180P encoder. The 360P/1080P encoder is the target encoder. The received video receiving parameters include requirements of resolution 180P, 360P, 720P, 1080P. Since there are both 360P, 1080P resolutions, the target encoder selects 360P resolution as the output resolution. The resulting encoded data includes data at 720P resolution, 360P resolution, and 180P resolution. The method comprises the steps of sending 180P coded data to a video receiving end with a 180P resolution request, sending 360P coded data to a video receiving end with a 360P resolution request, sending 720P coded data to a video receiving end with a 720P resolution request, and sending 720P coded data to a video receiving end with a 1080P resolution request instead of sending 360P coded data to the video receiving end with a 1080P resolution request in order to guarantee the watching experience of the video receiving end with the 1080P resolution. The encoded data sent to the video receiving end requiring the first resolution may be the encoded data of the highest resolution except the first resolution in the obtained encoded data.
Referring to fig. 6, fig. 6 is a flowchart illustrating a video data transmission method according to a third embodiment of the present application. The method is a further extension of the above embodiment. In this embodiment, the encoding device is provided with a first target encoding module and a second target encoding module, where the first target encoding module supports a first resolution and a second resolution, and the second target encoding module supports a first resolution and a third resolution. The first resolution is greater than the second resolution, and the second resolution is greater than the third resolution. The first resolution is greater than the preset highest resolution, and the second resolution is less than or equal to the preset highest resolution. The method comprises the following steps:
s31: when the video receiving parameter includes the first resolution, the second resolution, and the third resolution, it is determined whether the system occupation performance is greater than a preset threshold when encoding including the first resolution and the second resolution is performed according to the video receiving parameter.
The preset threshold is the maximum performance threshold which can be used for coding by a system of the coding device, and is a critical value which is set for the system and ensures the normal operation of the system. When the system occupancy performance exceeds the threshold, the system may be stuck, crashed, and the like. For example, if the preset threshold is 90%, the system occupation performance when encoding is performed according to the above-mentioned encoding resolution selection exceeds 90%, and is 92%, during the encoding process, the problems of coding failure and encoded data error may occur due to stagnation and collapse.
If the system occupancy performance is not greater than the preset threshold, step S32 is executed. If the threshold value is greater than the preset threshold value, step S33 is executed.
S32: and switching the coding resolution of the first target coding module to the second resolution, and switching the coding resolution of the second target coding module to the first resolution.
And when the system occupation performance is not greater than the preset threshold, the system performance is indicated to be capable of meeting the current resolution requirement. In order to meet the requirement of a video receiving end to the maximum extent, the first target coding module is switched to the second resolution, and the second target coding module is switched to the first resolution, so that the coding device can perform data coding of the first resolution and the second resolution.
S33: and switching the coding resolution of the first target coding module to the first resolution, and switching the coding resolution of the second target coding module to the third resolution.
And when the system occupation performance is larger than a preset threshold value, the system occupation performance is indicated to be incapable of meeting the current resolution requirement. The resolution at which the encoding device actually performs encoding needs to be adjusted. The first target coding module is switched to the first resolution, and the second target coding module is switched to the third resolution, so that the system occupation performance of the coding equipment is reduced, and the coding output of the first resolution can still be carried out.
After the first target encoding module is switched to the first resolution and the second target encoding module is switched to the third resolution, the encoded data needs to be sent to the video receiving end. Because the video receiving end needs the encoded data of the first resolution and the second resolution, but for performance reasons, the encoding device can only output the encoded data of the first resolution and the third resolution at the highest. Therefore, the video receiving end which requires the first resolution and the second resolution is determined according to the video receiving parameters. Then, in order to reduce the reduction of user experience to the maximum extent, the data coded with the first resolution is sent to the video receiving end which requires the first resolution, and the data coded with the third resolution is sent to the video receiving end which requires the second resolution.
In one embodiment, the three-way encoders present in the device are 720P/1080P encoders, 360P/1080P encoders, and 180P encoders. The 720P/1080P encoder is a first target encoder, and the 360P/1080P encoder is a second target encoder. 1080P is the first resolution, 720P is the preset highest resolution, and is also the second resolution, and 360P is the third resolution. When the received video receiving parameters include the requirements of the resolution of 180P, 720P and 1080P. Since the resolutions of 720P and 1080P exist at the same time, and the resolution of 360P does not exist, the system firstly judges the performance occupation situation when the 180P, 720P and 1080P coding is carried out. If the performance occupation does not exceed the preset threshold, the first target encoder is switched to 720P encoding, the second target encoder is switched to 1080P encoding, and the 180P encoder performs 180P encoding in order to meet the requirements of the video receiving end to the maximum extent. If the performance occupation exceeds the threshold, the first target encoder is switched to 1080P encoding, the second target encoder is switched to 360P encoding, and the 180P encoder performs 180P encoding to reduce the performance occupation of the system. And sending the 1080P coded data to the 1080P required video receiving end, and sending the 360P data to the 720P required video receiving end.
Further, if the performance occupation still exceeds the threshold, one of the first target encoder and the second target encoder is switched to the first resolution for encoding, the other target encoder does not perform encoding, and the 180P encoder performs 180P encoding. And sending the 1080P coded data to a 1080P video receiving end of the demand, and sending the 180P data to 720P and 180P video receiving ends.
Referring to fig. 7, fig. 7 is a flowchart illustrating a fourth embodiment of a video data transmission method according to the present application. The method is a further extension of the third embodiment. Which comprises the following steps:
s41: when the video receiving parameter includes the first resolution and the third resolution and does not include the second resolution, whether the system occupation performance is greater than a preset threshold value is judged when encoding including the first resolution and the third resolution is performed according to the video receiving parameter.
If the system occupancy performance is not greater than the preset threshold, step S42 is executed. If the threshold value is greater than the preset threshold value, step S43 is executed.
S42: and switching the coding resolution of the first target coding module to the first resolution, and switching the coding resolution of the second target coding module to the third resolution.
And when the system occupation performance is not greater than the preset threshold, the system performance is indicated to be capable of meeting the current resolution requirement. And switching the first target coding module to the first resolution and switching the second target coding module to the third resolution, so that the coding equipment can carry out data coding on the first resolution and the third resolution.
S43: and switching the coding resolution of the first target coding module to the second resolution, and switching the coding resolution of the second target coding module to the third resolution.
And when the system occupation performance is larger than a preset threshold value, the system occupation performance is indicated to be incapable of meeting the current resolution requirement. The resolution at which the encoding device actually performs encoding needs to be adjusted. And switching the first target coding module to the second resolution and switching the second target coding module to the third resolution, so that the system occupation performance of the coding device is reduced.
After the first target encoding module is switched to the second resolution and the second target encoding module is switched to the third resolution, the encoded data needs to be sent to the video receiving end. Because the video receiving end needs the encoded data of the first resolution and the third resolution, but for performance reasons, the encoding device can only output the encoded data of the second resolution and the third resolution at the highest. Therefore, the video receiving end requiring the first resolution and the third resolution is determined according to the video receiving parameters. Then, in order to reduce the reduction of user experience to the maximum extent, the data coded with the second resolution is sent to the video receiving end which requires the first resolution, and the data coded with the third resolution is sent to the video receiving end which requires the third resolution.
In one embodiment, the three-way encoders present in the device are 720P/1080P encoders, 360P/1080P encoders, and 180P encoders. The 720P/1080P encoder is a first target encoder, and the 360P/1080P encoder is a second target encoder. 1080P is the first resolution, 720P is the preset highest resolution, and is also the second resolution, and 360P is the third resolution. When the received video receiving parameters include the requirements of 180P, 360P and 1080P. Because the resolution of 360P and 1080P exists at the same time, and the resolution of 720P does not exist, the system firstly judges the performance occupation condition when the 180P, 360P and 1080P coding is carried out. If the performance occupation does not exceed the preset threshold, the first target encoder is switched to 1080P encoding, the second target encoder is switched to 360P encoding, and the 180P encoder performs 180P encoding in order to meet the requirements of the video receiving end to the maximum extent. If the performance occupation exceeds the threshold, the first target encoder is switched to 720P encoding, the second target encoder is switched to 360P encoding, and the 180P encoder performs 180P encoding to reduce the performance occupation of the system. And the 720P coded data is sent to the 1080P required video receiving end, and the 360P data is sent to the 360P required video receiving end.
Or one of the first target encoder and the second target encoder is switched to the first resolution for encoding, the other target encoder does not perform encoding, and the 180P encoder performs 180P encoding. And sending the 1080P coded data to a 1080P required video receiving end, and sending the 180P data to 360P and 180P required video receiving ends.
Referring to fig. 8, fig. 8 is a flowchart illustrating a fifth embodiment of a video data transmission method according to the present application. The method is a further extension of the above embodiment. Which comprises the following steps:
s51: when the video receiving parameters include the first resolution, the second resolution and the third resolution, whether the system occupation performance is greater than a preset threshold value when the coding including the first resolution and the second resolution is carried out according to the video receiving parameters is judged.
If the system occupancy performance is not greater than the preset threshold, step S52 is executed. If the threshold value is greater than the preset threshold value, step S53 is executed.
S52: and switching the coding resolution of the first target coding module to the second resolution, and switching the coding resolution of the second target coding module to the first resolution.
And when the system occupation performance is not greater than the preset threshold, the system performance is indicated to be capable of meeting the current resolution requirement. In order to meet the requirement of a video receiving end to the maximum extent, the first target coding module is switched to the second resolution, and the second target coding module is switched to the first resolution, so that the coding device can perform data coding of the first resolution and the second resolution.
S53: and judging whether the system occupation performance is greater than a preset threshold value when the coding comprising the first resolution and the third resolution is carried out according to the video receiving parameters.
And when the system occupation performance is greater than a preset threshold value, the system occupation performance is indicated to be incapable of meeting the current resolution requirement. The resolution at which the encoding device actually performs encoding needs to be adjusted. Since the second resolution and the third resolution exist at the same time, it is necessary to further determine whether the system occupation performance is greater than a preset threshold when encoding including the first resolution and the third resolution is performed according to the video receiving parameter.
And continuing to judge the occupation of the system coding performance, and if the system occupation performance is not greater than the preset threshold, executing step S54. If the threshold value is greater than the preset threshold value, step S55 is executed.
S54: and switching the coding resolution of the second target coding module to the third resolution, and switching the coding resolution of the first target coding module to the first resolution.
And when the system occupation performance is not greater than the preset threshold, the system performance is indicated to be capable of meeting the current resolution requirement. In order to meet the requirements of a video receiving end to the maximum extent, the first target coding module is switched to the first resolution, and the second target coding module is switched to the third resolution, so that the coding device can perform data coding of the first resolution and the third resolution.
S55: and switching the coding resolution of the second target coding module to the third resolution, and switching the coding resolution of the first target coding module to the second resolution.
And when the system occupation performance is larger than a preset threshold value, the system occupation performance is indicated to be incapable of meeting the current resolution requirement. The resolution at which the encoding device actually performs encoding needs to be adjusted. And switching the first target coding module to the second resolution and switching the second target coding module to the first resolution, so that the coding equipment can carry out data coding of the first resolution and the second resolution.
In one embodiment, the three way encoders present in the device are 720P/1080P encoders, 360P/1080P encoders, and 180P encoders. The 720P/1080P encoder is a first target encoder, and the 360P/1080P encoder is a second target encoder. 1080P is the first resolution, 720P is the preset highest resolution, and is also the second resolution, and 360P is the third resolution. When the received video receiving parameters include the requirements of the resolution of 180P, 360P, 720P and 1080P. Because the resolutions of 360P, 720P and 1080P exist at the same time, the system firstly judges the performance occupation condition when the 180P, 720P and 1080P coding is carried out. If the performance occupation does not exceed the preset threshold, the first target encoder is switched to 1080P encoding, the second target encoder is switched to 720P encoding, and the 180P encoder performs 180P encoding in order to meet the video receiving end requirement to the maximum extent. If the performance occupation exceeds the threshold, the judgment standard is lowered, and the performance occupation condition is judged when 180P, 360P and 1080P coding is carried out. If the performance occupation does not exceed the preset threshold, the first target encoder is switched to 1080P encoding, and the second target encoder is switched to 360P encoding. If the performance still exceeds the threshold, the first target transformer switches to 720P for encoding, the second target encoder switches to 360P for encoding, and the 180P encoder performs 180P for encoding, thereby reducing the performance requirement.
Or one of the first target encoder and the second target encoder is switched to the first resolution for encoding, the other target encoder does not perform encoding, and the 180P encoder performs 180P encoding. And sending the 1080P coded data to a 1080P required video receiving end, and sending the 180P data to 360P and 180P required video receiving ends.
As shown in fig. 9, fig. 9 is a schematic structural diagram of a first embodiment of the encoding apparatus of the present application.
The encoding device includes a processor 110, a memory 120.
The processor 110 controls the operation of the encoding device, and the processor 110 may also be referred to as a Central Processing Unit (CPU). The processor 110 may be an integrated circuit chip having the processing capability of signal sequences. The processor 110 may also be a general purpose processor, a digital signal sequence processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 120 stores instructions and program data required for the processor 110 to operate.
The processor 110 is used for executing instructions to realize the method provided by any embodiment and possible combination of the video data transmission method of the present application.
As shown in fig. 10, fig. 10 is a schematic structural diagram of a first embodiment of a computer-readable storage medium according to the present application.
An embodiment of the storage medium readable by the application includes a memory 210, and the memory 210 stores program data, and when the program data is executed, the method provided by any embodiment and possible combination of the transmission method of video data of the application is implemented.
The Memory 210 may include a medium that can store program instructions, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or may also be a server that stores the program instructions, and the server may send the stored program instructions to other devices for operation, or may self-operate the stored program instructions.
As shown in fig. 11, fig. 11 is a schematic structural diagram of an embodiment of an electronic device according to the present application.
The electronic device includes an encoding module 310, a communication module 320, and a control module 330.
The encoding module 310 is configured to encode video data, and the communication module 320 is configured to receive video receiving parameters and send the encoded video data to a video receiving end. The control module 330 is connected to the encoding module 310 and the communication module 320 to implement the method provided by any embodiment and possible combination of the above-mentioned video data transmission method.
To sum up, this application sets up to two kinds of changeable coding resolutions through the coding module with in the coding equipment, wherein include and be greater than the first resolution that the coding equipment predetermines the highest resolution and be not more than the second resolution that the coding equipment predetermines the highest resolution, make when receiving the demand of video receiving end, if the coding resolution of video receiving end demand is for including first resolution and not including the second resolution, coding equipment can utilize and be used for the performance and the redundancy performance of second resolution coding originally, realize the coding to first resolution video data, satisfy the demand of video receiving end to first resolution coding, realize the improvement of coding equipment output resolution, the performance utilization ratio of coding equipment has been improved, the use scene of this equipment has been increased.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units in the other embodiments described above may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.

Claims (10)

1. A method for transmitting video data, applied to an encoding device including a plurality of encoding modules for video encoding, the plurality of encoding modules including a target encoding module, the method comprising:
determining video receiving parameters of a plurality of video receiving ends;
switching the coding resolution of the target coding module according to the video receiving parameters so as to enable the coding resolution of the target coding module to be matched with at least one video receiving parameter in a plurality of video receiving parameters of the video receiving end;
coding data according to the coding resolution of the coding modules, and sending the coded data to the video receiving end according to video receiving parameters;
wherein the target encoding module supports encoding of a first resolution and a second resolution, the first resolution being greater than the second resolution, and when the video receiving parameter includes the first resolution and does not include the second resolution, the encoding resolution of the target encoding module is switched to the first resolution, the first resolution being greater than a preset highest encoding resolution of the encoding apparatus, and the second resolution being less than or equal to the preset highest encoding resolution.
2. The method of claim 1, wherein switching the encoding resolution of the target encoding module according to the video reception parameter further comprises:
switching the encoding resolution of the target encoding module to the second resolution when the video receiving parameters include the first resolution and the second resolution;
the sending the encoded data to the video receiving end according to the video receiving parameters comprises:
determining the video receiving end which requires the first resolution and the second resolution according to video receiving parameters;
and sending the data encoded at the second resolution to the video receiving end which requires the first resolution and the second resolution.
3. The method of claim 1,
the plurality of coding modules comprise a first target coding module and a second target coding module; wherein the first target encoding module supports encoding of the first resolution and the second resolution, the second target encoding module supports encoding of the first resolution and a third resolution, the second resolution being greater than the third resolution;
the switching the encoding resolution of the target encoding module according to the video receiving parameter includes:
when the video receiving parameters include the first resolution, the second resolution and the third resolution, judging whether the system occupation performance is greater than a preset threshold value when encoding including the first resolution and the second resolution is carried out according to the video receiving parameters;
if not, switching the coding resolution of the first target coding module to the second resolution, and switching the coding resolution of the second target coding module to the first resolution;
if so, the encoding resolution of the first target encoding module is switched to the first resolution, and the encoding resolution of the second target encoding module is switched to the third resolution.
4. The method of claim 3, wherein switching the encoding resolution of the first target encoding module to the first resolution and switching the encoding resolution of the second target encoding module to the third resolution further comprises:
determining the video receiving end which requires the first resolution and the second resolution according to video receiving parameters;
and sending the data coded by the first resolution to the video receiving end requiring the first resolution, and sending the data coded by the third resolution to the video receiving end requiring the second resolution.
5. The method of claim 3, wherein switching the encoding resolution of the target encoding module according to the video reception parameter comprises:
when the video receiving parameters include the first resolution and the third resolution and do not include the second resolution, judging whether the system occupation performance is greater than the preset threshold value when encoding including the first resolution and the third resolution is carried out according to the video receiving parameters;
if not, switching the coding resolution of the first target coding module to the first resolution, and switching the coding resolution of the second target coding module to the third resolution;
if so, the encoding resolution of the first target encoding module is switched to the second resolution, and the encoding resolution of the second target encoding module is switched to the third resolution.
6. The method of claim 3, wherein switching the encoding resolution of the target encoding module according to the video reception parameter comprises:
when the video receiving parameters comprise a first resolution, a second resolution and a third resolution, judging whether the system occupation performance is greater than the preset threshold value when the coding comprising the first resolution and the second resolution is carried out according to the video receiving parameters;
if not, switching the coding resolution of the first target coding module to the second resolution, and switching the coding resolution of the second target coding module to the first resolution;
if yes, judging whether the system occupation performance is larger than a preset threshold value when the coding including the first resolution and the third resolution is carried out according to the video receiving parameters.
7. The method of claim 6, wherein the determining whether the system occupation performance is greater than a preset threshold when the encoding including the first resolution and the third resolution is performed according to the video receiving parameters further comprises:
if not, switching the coding resolution of the second target coding module to the third resolution, and switching the coding resolution of the first target coding module to the first resolution;
if yes, the coding resolution of the second target coding module is switched to the third resolution, and the coding resolution of the first target coding module is switched to the second resolution.
8. An electronic device, comprising:
the encoding module is used for encoding the video data;
the communication module is used for receiving the video receiving parameters and sending data to the video receiving end;
a control module connecting the encoding module and the communication module to implement the method of any one of claims 1-7.
9. An encoding device, comprising a memory for storing program data executable by a processor to implement the method of any one of claims 1-7 and a processor.
10. A computer-readable storage medium, in which program data are stored, which can be executed by a processor to implement the method according to any one of claims 1-7.
CN202210893378.3A 2022-07-27 2022-07-27 Data transmission method, electronic device, equipment and computer readable storage medium Active CN115103211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210893378.3A CN115103211B (en) 2022-07-27 2022-07-27 Data transmission method, electronic device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210893378.3A CN115103211B (en) 2022-07-27 2022-07-27 Data transmission method, electronic device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN115103211A CN115103211A (en) 2022-09-23
CN115103211B true CN115103211B (en) 2023-01-10

Family

ID=83300414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210893378.3A Active CN115103211B (en) 2022-07-27 2022-07-27 Data transmission method, electronic device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115103211B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959700A (en) * 2016-05-31 2016-09-21 腾讯科技(深圳)有限公司 Video image coding method and device
CN109936744A (en) * 2017-12-19 2019-06-25 腾讯科技(深圳)有限公司 Video coding processing method, device and the application with Video coding function
CN109996116A (en) * 2019-03-27 2019-07-09 深圳创维-Rgb电子有限公司 Promote method, terminal and the readable storage medium storing program for executing of video resolution
CN111327896A (en) * 2018-12-13 2020-06-23 浙江宇视科技有限公司 Video transmission method and device, electronic equipment and readable storage medium
CN111741298A (en) * 2020-08-26 2020-10-02 腾讯科技(深圳)有限公司 Video coding method and device, electronic equipment and readable storage medium
CN112492395A (en) * 2020-11-30 2021-03-12 维沃移动通信有限公司 Data processing method and device and electronic equipment
CN114025171A (en) * 2021-11-02 2022-02-08 视联动力信息技术股份有限公司 Video processing method and device, terminal equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009077082A (en) * 2007-09-19 2009-04-09 Toshiba Corp Resolution converting apparatus, resolution converting method, and pre-view displaying apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959700A (en) * 2016-05-31 2016-09-21 腾讯科技(深圳)有限公司 Video image coding method and device
CN109936744A (en) * 2017-12-19 2019-06-25 腾讯科技(深圳)有限公司 Video coding processing method, device and the application with Video coding function
CN111327896A (en) * 2018-12-13 2020-06-23 浙江宇视科技有限公司 Video transmission method and device, electronic equipment and readable storage medium
CN109996116A (en) * 2019-03-27 2019-07-09 深圳创维-Rgb电子有限公司 Promote method, terminal and the readable storage medium storing program for executing of video resolution
CN111741298A (en) * 2020-08-26 2020-10-02 腾讯科技(深圳)有限公司 Video coding method and device, electronic equipment and readable storage medium
CN112492395A (en) * 2020-11-30 2021-03-12 维沃移动通信有限公司 Data processing method and device and electronic equipment
CN114025171A (en) * 2021-11-02 2022-02-08 视联动力信息技术股份有限公司 Video processing method and device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN115103211A (en) 2022-09-23

Similar Documents

Publication Publication Date Title
AU689658B2 (en) Method and apparatus for adaptive encoding/decoding
EP0828392B1 (en) Picture coder, picture decoder, and picture transmission system
US20030142872A1 (en) Image processing apparatus, decoding device, encoding device, image processing system, image processing method, and encoding method
CN102668558B (en) Wireless display encoder architecture
CN102457544B (en) Method and system for acquiring screen image in screen sharing system based on Internet
JPH0216075B2 (en)
WO2019119950A1 (en) Video coding processing method and apparatus, and application having video coding function
US11949853B2 (en) Data decoding method and apparatus, and data coding method and apparatus
CN101742294A (en) Method and device for enhancing monitoring video compression ratio
CN113597757A (en) Shape adaptive discrete cosine transform with region number adaptive geometric partitioning
CN115103211B (en) Data transmission method, electronic device, equipment and computer readable storage medium
CN111131828A (en) Image compression method and device
CN108513320B (en) Method and device for coding and decoding negotiation
JP3278948B2 (en) Variable length coding method
JP3202433B2 (en) Quantization device, inverse quantization device, image processing device, quantization method, inverse quantization method, and image processing method
CN112822517A (en) Resolution adaptation method and device and nonvolatile storage medium
US6917648B1 (en) Encoder and decoder for moving picture
CN109996116B (en) Method for improving video resolution, terminal and readable storage medium
CN101409836B (en) Image processing device and method
CN104994407A (en) Concentrated self-adaptive video transcoding method
JP2005006245A (en) Network monitoring system and reproduction terminal or monitoring terminal
US6885704B1 (en) Coding apparatus and coding method of time-varying image signal
CN112675535A (en) Display interface adjusting method and device, network equipment and storage medium
JP5663293B2 (en) Noise reduction device, noise reduction method, and noise reduction program
JP2007329814A (en) Video reproduction terminal, video distribution apparatus, video distribution system and video distribution control program

Legal Events

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