CN114124309A - Data transmission method and equipment - Google Patents

Data transmission method and equipment Download PDF

Info

Publication number
CN114124309A
CN114124309A CN202210097045.XA CN202210097045A CN114124309A CN 114124309 A CN114124309 A CN 114124309A CN 202210097045 A CN202210097045 A CN 202210097045A CN 114124309 A CN114124309 A CN 114124309A
Authority
CN
China
Prior art keywords
range
attribute
modulation
preset
streaming media
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.)
Granted
Application number
CN202210097045.XA
Other languages
Chinese (zh)
Other versions
CN114124309B (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.)
Nanjing Dayu Semiconductor Co ltd
Original Assignee
Nanjing Dayu Semiconductor 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 Nanjing Dayu Semiconductor Co ltd filed Critical Nanjing Dayu Semiconductor Co ltd
Priority to CN202210097045.XA priority Critical patent/CN114124309B/en
Publication of CN114124309A publication Critical patent/CN114124309A/en
Application granted granted Critical
Publication of CN114124309B publication Critical patent/CN114124309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a data transmission method and equipment, and relates to the technical field of broadcast communication. The method comprises the following steps: acquiring streaming media data to be sent; detecting the streaming media data to obtain an attribute value of the streaming media data; according to the attribute value of the streaming media data, determining a modulation coding strategy corresponding to the attribute value as a target modulation coding strategy from multi-level preset modulation coding strategies; carrying out modulation coding on the streaming media data by adopting a target modulation coding strategy; and transmitting the data obtained by modulation coding to at least one receiver device by adopting a broadcast channel. Therefore, the streaming media data with different attribute values are modulated and coded by using the corresponding modulation and coding strategy, and a physical layer channel is fully utilized, so that important streaming media data are reserved as much as possible, and data transmission errors are reduced.

Description

Data transmission method and equipment
Technical Field
The invention relates to the technical field of broadcast communication, in particular to a data transmission method and equipment.
Background
In broadcast communication, errors occur during signal transmission due to signal fading and interference, and thus, there is a need to enhance the system reliability by enhancing the capability of resisting various kinds of interference when data is transmitted in a channel. In the prior art, channel coding is adopted to achieve the purpose, a channel encoder encodes an output signal, so that the obtained encoded signal can be transmitted in a channel well, redundancy is generally added to enhance anti-interference performance and is transmitted to a receiving end, and a channel decoder decodes the received encoded signal, so that part of transmission errors can be overcome.
In the conventional broadcast communication, a fixed coding method and a fixed code rate are generally adopted for channel coding. In the actual communication process, in order to make the signal transmission distance longer and improve the anti-interference capability, it is often necessary to use the physical layer channel coding with a lower code rate and more repetitions, the lower code rate indicates that the degree of redundancy is more, and more repetitions are combined, so that when the receiving end receives the signal, the original data of the signal is kept as much as possible.
However, since the encoding method and the code rate in the broadcast communication are fixed, the physical layer channel cannot be fully utilized. However, the information in different signal transmission scenarios has different importance degrees, and the existing data transmission technology cannot perform different channel coding on the information in different signal transmission scenarios, which may cause an error in the transmission of important information.
Disclosure of Invention
The present invention aims to provide a data transmission method and device to solve the problem that in the prior art, different channel coding cannot be performed on information in different signal transmission scenarios, which may cause errors in transmission of important information, and the like.
In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a data transmission method, where the method includes:
acquiring streaming media data to be sent;
detecting the streaming media data to obtain an attribute value of the streaming media data;
according to the attribute value of the streaming media data, determining a modulation coding strategy corresponding to the attribute value as a target modulation coding strategy from multi-level preset modulation coding strategies;
modulating and coding the streaming media data by adopting the target modulation coding strategy;
and transmitting the data obtained by modulation coding to at least one receiver device by adopting a broadcast channel.
Optionally, the determining, according to the attribute value of the streaming media data, a modulation and coding strategy corresponding to the attribute value as a target modulation and coding strategy from among multiple preset modulation and coding strategies includes:
comparing the attribute values of the streaming media data with attribute ranges of a plurality of preset gears to obtain the attribute range of the attribute values of the streaming media data;
and according to the attribute range, determining the modulation coding strategy corresponding to the attribute range as the target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting the corresponding relation between the preset attribute range and the modulation coding strategies.
Optionally, the streaming media data includes: audio data, the attribute values of which are: the audio data volume, the attribute range of the plurality of gears is: a volume range of the plurality of gears;
the comparing the attribute value of the streaming media data with the attribute ranges of a plurality of preset gears to obtain the attribute range where the attribute value of the streaming media data is located includes:
if the volume of the audio data is in the minimum volume range of the volume ranges of the multiple gears or is smaller than the minimum volume range, determining that the volume range in which the volume of the audio data is located is a first volume range;
the determining, according to the attribute range, a preset attribute range and a corresponding relationship between modulation and coding strategies, that the modulation and coding strategy corresponding to the attribute range is the target modulation and coding strategy from the multi-gear preset modulation and coding strategies includes:
and determining the modulation coding strategy of the basic gear as the target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting a first corresponding relation between preset volume ranges and modulation coding strategies according to the first volume range.
Optionally, the comparing the attribute value of the streaming media data with the preset attribute ranges of multiple gears to obtain the attribute range in which the attribute value of the streaming media data is located includes:
if the volume of the audio data is larger than the minimum volume range, determining that the volume range in which the volume of the audio data is located is a second volume range;
the determining, according to the attribute range, a preset attribute range and a corresponding relationship between modulation and coding strategies, that the modulation and coding strategy corresponding to the attribute range is the target modulation and coding strategy from the multi-gear preset modulation and coding strategies includes:
and according to the second volume range, determining a modulation coding strategy with a gear lower than the basic gear as the target modulation coding strategy from the preset modulation coding strategies of multiple gears by adopting the first corresponding relation.
Optionally, the streaming media data includes: audio data, the attribute values of which are: the speech rate of the audio data and the attribute ranges of the multiple gears are as follows: the speech rate ranges of the plurality of gears;
the comparing the attribute value of the streaming media data with the attribute ranges of a plurality of preset gears to obtain the attribute range where the attribute value of the streaming media data is located includes:
if the speech rate of the audio data is in the maximum speech rate range of the speech rate ranges of the multiple gears or is larger than the maximum speech rate range, determining that the speech rate range in which the speech rate of the audio data is located is a first speech rate range;
the determining, according to the attribute range, a modulation and coding strategy corresponding to the attribute range as the target modulation and coding strategy from multiple preset modulation and coding strategies by using a preset corresponding relationship between the attribute range and the modulation and coding strategy includes:
and determining the modulation coding strategy of the basic gear as the target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting a second corresponding relation between a preset speech speed range and the modulation coding strategies according to the first speech speed range.
Optionally, the comparing the attribute value of the streaming media data with the preset attribute ranges of multiple gears to obtain the attribute range in which the attribute value of the streaming media data is located includes:
if the speech rate of the audio data is smaller than the maximum speech rate range, determining that the speech rate range where the speech rate of the audio data is located is a second speech rate range;
the determining, according to the attribute range, a modulation and coding strategy corresponding to the attribute range as the target modulation and coding strategy from multiple preset modulation and coding strategies by using a preset corresponding relationship between the attribute range and the modulation and coding strategy includes:
and determining a modulation coding strategy with a gear lower than the basic gear as the target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting the second corresponding relation according to the second speech speed range.
Optionally, the streaming media data includes: video data, the attribute values of the video data are: the change range of the adjacent frames of the video data is as follows: a range of variation of the plurality of gears;
the comparing the attribute value of the streaming media data with the attribute ranges of a plurality of preset gears to obtain the attribute range where the attribute value of the streaming media data is located includes:
if the change range of the adjacent frame of the video data is in the maximum change range of the change ranges of the plurality of gears or is larger than the maximum change range, determining the change range in which the change range of the adjacent frame of the video data is located as a first change range;
the determining, according to the attribute range, a modulation and coding strategy corresponding to the attribute range as the target modulation and coding strategy from multiple preset modulation and coding strategies by using a preset corresponding relationship between the attribute range and the modulation and coding strategy includes:
and determining the modulation coding strategy of the basic gear as the target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting a third corresponding relation between a preset variation range and the modulation coding strategies according to the first variation range.
Optionally, the comparing the attribute value of the streaming media data with the preset attribute ranges of multiple gears to obtain the attribute range in which the attribute value of the streaming media data is located includes:
if the variation range of the video data is smaller than the maximum variation range, determining the variation range in which the variation range of the adjacent frames of the video data is located as a second variation range;
the determining, according to the attribute range, a modulation and coding strategy corresponding to the attribute range as the target modulation and coding strategy from multiple preset modulation and coding strategies by using a preset corresponding relationship between the attribute range and the modulation and coding strategy includes:
and according to the second variation range, determining a modulation coding strategy with a gear lower than the basic gear as the target modulation coding strategy from the preset modulation coding strategies of multiple gears by adopting the third corresponding relation.
Optionally, before the comparing the attribute value of the streaming media data with the preset attribute ranges of multiple gears to obtain the attribute range where the attribute value of the streaming media data is located, the method further includes:
performing attribute detection on the streaming media data within a preset time length to obtain a reference attribute value and a limit attribute value of the streaming media data within the preset time length;
and segmenting the attribute range from the reference attribute value to the limit attribute value to obtain the attribute ranges of the plurality of gears.
In a second aspect, an embodiment of the present application provides a sender device, including: a processor, a storage medium storing a computer program operable on the processor, the processor executing the computer program to perform the method of any of the first aspects.
Compared with the prior art, the method has the following beneficial effects:
the application provides a data transmission method and equipment, wherein the method acquires streaming media data to be sent; detecting the streaming media data to obtain an attribute value of the streaming media data; according to the attribute value of the streaming media data, determining a modulation coding strategy corresponding to the attribute value as a target modulation coding strategy from multi-level preset modulation coding strategies; carrying out modulation coding on the streaming media data by adopting a target modulation coding strategy; and transmitting the data obtained by modulation coding to at least one receiver device by adopting a broadcast channel. Therefore, the streaming media data with different attribute values are modulated and coded by using the corresponding modulation and coding strategy, and a physical layer channel is fully utilized, so that important streaming media data are reserved as much as possible, data transmission errors are reduced, non-important streaming media data can be transmitted more quickly, and the power consumption is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for determining a target modulation and coding strategy in data transmission according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for determining attribute ranges of a plurality of gears according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for determining a target modulation and coding strategy in audio data transmission according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a method for determining a target modulation coding strategy according to a speech rate of audio data according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a method for determining a target modulation and coding strategy according to a volume and a speech rate of audio data according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a method for determining a target modulation and coding scheme in video data transmission according to an embodiment of the present application;
fig. 8 is a schematic diagram of a data transmission apparatus according to an embodiment of the present application;
fig. 9 is a schematic diagram of a sender device according to an embodiment of the present application.
Reference numerals: 801-acquisition module, 802-detection module, 803-determination module, 804-encoding module, 805-transmission module, 901-processor, 902-storage medium.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. 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.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
In data transmission of broadcast communication, data transmission is more complete by performing channel coding on the data, and a general channel coding transmission flow is as follows: the channel encoder carries out channel coding on data to be sent by a sending party, the sending party sends the coded data to a receiving party, the receiving party utilizes a channel decoder to decode transmission data to obtain decoded data, and redundant information is added in the process of carrying out channel coding on the data to enhance the anti-interference performance of the transmission data, so that even if data loss exists in the transmission process, the complete data can be obtained as accurately as possible after the transmission data are decoded. In the method for channel coding the data, the integrity of the data obtained by different coding modes is different, and people certainly expect higher data integrity when transmitting important data, have low requirement on the integrity of non-important data, can set higher code rate, and finish data transmission as soon as possible so as to reduce electric quantity consumption. However, in data transmission in conventional broadcast communication, a fixed channel coding scheme and a fixed code rate are generally adopted, and data with different importance levels cannot be distinguished. Therefore, the application provides a data transmission method and device, so that under different transmission scenes, a physical layer channel is fully utilized to flexibly transmit data.
The data transmission method provided in the embodiments of the present application is explained below by way of specific examples. Fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application, where an execution main body of the method may be a sender device, the sender device may be a device with a function of computing, processing, and sending streaming media data, such as a smart phone, a tablet computer, and the like, and one sender device may send streaming media data to multiple receiver devices. As shown in fig. 1, the method comprises:
s101, acquiring streaming media data to be sent.
The sending party equipment obtains streaming media data to be sent through modes of receiving or identifying and the like. Since the streaming media data is a series of media data packets, each media data needs to be sent in sequence to meet the requirements of instant acquisition and instant transmission. Therefore, the sender device compresses the immediately acquired media data into one media data packet, and sends or directly sends each media data packet after immediately processing.
S102, detecting the streaming media data to obtain the attribute value of the streaming media data.
The sender device acquires a media data packet in the streaming media data immediately, and needs to detect the media data packet immediately to obtain an attribute value of the media data packet. And in the whole data transmission process, the attribute value of each media data packet in the streaming media data is obtained in sequence. The attribute value of the streaming media data is a value that can represent the characteristics of the streaming media, such as the volume of audio data, the amplitude of change of adjacent frames of video data, and the like.
S103, according to the attribute value of the streaming media data, determining a modulation coding strategy corresponding to the attribute value as a target modulation coding strategy from multiple preset modulation coding strategies.
In the process of streaming media data transmission, in order to enhance the anti-interference capability of data and ensure that the receiving-side device obtains more complete streaming media data as much as possible, therefore, before the streaming media data transmission, channel coding needs to be performed on the streaming media data. Wherein, the modulation Coding strategy is mcs (modulation and Coding scheme).
According to different attribute values of the streaming media data, data modulation and coding strategies of different files are preset, wherein the data modulation and coding strategies comprise: data coding mode (how data are repeated to realize redundancy), and data coding rate (target sending data size/actual sending data size, the smaller the code rate, the more redundancy). For example, the importance degree of the streaming media data can be determined according to the attribute value of the streaming media data, the more important streaming media data requires a lower data coding rate, and the less important streaming media data requires a higher data coding rate. The corresponding modulation and coding strategy can be determined according to the attribute value of the immediately acquired media data packet, and the modulation and coding strategy is used as the target modulation and coding strategy of the media data packet.
Optionally, when the actual content of the streaming media data is different, the corresponding relationship between the attribute value corresponding to the streaming media data and the multi-gear modulation coding strategy is different, and the attribute value corresponding to the streaming media data and the gear of the modulation coding strategy may be positive correlation or negative correlation.
And S104, modulating and coding the streaming media data by adopting a target modulation coding strategy.
And determining a target modulation coding strategy corresponding to one media data packet in the streaming media data, and modulating and coding the media data packet according to a data coding mode and a data coding rate in the target modulation coding. And modulating the coded data to realize data redundancy in a data coding mode, and determining the data redundancy degree according to the data coding code rate, wherein the data redundancy degree comprises target data to be sent which are repeated for many times.
And S105, transmitting the data obtained by modulation and coding to at least one receiving party device by adopting a broadcast channel.
Since the modulation-coded data includes the target data to be transmitted which is repeated for many times, the receiver device receives the modulation-coded data packet to obtain the target data to be transmitted.
After the receiving side equipment receives the modulation-coded data, the method further comprises the following steps: and each time the receiving party equipment receives one media data packet, the receiving party equipment acquires a target modulation coding strategy of the media data packet, determines a corresponding target modulation decoding strategy according to the target modulation coding strategy, and decodes the media data packet according to the target modulation decoding strategy to obtain target sending data. And sequentially receiving and decoding each media data packet to obtain streaming media data to be sent.
To sum up, in the data transmission method provided in the embodiment of the present application, the streaming media data to be sent is obtained, and the streaming media data is detected to obtain the attribute value of the streaming media data; determining a modulation coding strategy corresponding to the attribute value as a target modulation coding strategy from multi-level preset modulation coding strategies according to the attribute value of the streaming media data; modulating and coding the streaming media data by adopting a target modulation coding strategy; and finally, transmitting the data obtained by modulation and coding to at least one receiver device by adopting a broadcast channel. Therefore, the streaming media data with different attribute values are modulated and coded by using the corresponding modulation and coding strategy, and a physical layer channel is fully utilized, so that important streaming media data are reserved as much as possible, data transmission errors are reduced, non-important streaming media data can be transmitted more quickly, and the power consumption is reduced.
On the basis of the data transmission method described in fig. 1, the embodiment of the present application further provides a method for determining a target modulation coding strategy in data transmission. Fig. 2 is a schematic flowchart of a method for determining a target modulation and coding strategy in data transmission according to an embodiment of the present application, and as shown in fig. 2, in S103, according to an attribute value of streaming media data, a modulation and coding strategy corresponding to the attribute value is determined from multiple preset modulation and coding strategies, and the method includes:
s201, comparing the attribute values of the streaming media data with the attribute ranges of the preset multiple gears to obtain the attribute range where the attribute values of the streaming media data are located.
Before the attribute values of the streaming media data are acquired, the attribute ranges of multiple gears of the streaming media data are preset, the attribute ranges of the multiple gears include all the attribute values of the streaming media data, and each attribute value can obtain the attribute range where the attribute value is located. For example, a specific number of gears may be set by the user, with the larger the gear, the finer the range division.
S202, according to the attribute range, the corresponding relation between the preset attribute range and the modulation coding strategy is adopted, and the modulation coding strategy corresponding to the attribute range is determined to be the target modulation coding strategy from the multi-gear preset modulation coding strategies.
Due to the fact that the attribute ranges are different, the adopted modulation and coding strategies are also different, and therefore the corresponding relation between the preset attribute range and the modulation and coding strategies is determined. Therefore, according to the attribute range in the multi-gear preset modulation coding strategy, the modulation coding strategy corresponding to the determined attribute range corresponding to the attribute range is determined to be the target modulation coding strategy.
Optionally, the preset attribute range determined by each type of streaming media data may have different correspondence with the modulation and coding strategy, and the attribute range corresponding to the streaming media data may be positively correlated with the gear of the modulation and coding strategy, that is, the larger the attribute range is, the larger the gear is, or negatively correlated with the gear, that is, the smaller the attribute range is, the smaller the gear is.
In summary, according to the method for determining the target modulation coding strategy in data transmission provided in the embodiment of the present application, the attribute range where the attribute value of the streaming media data is located is obtained by comparing the attribute value of the streaming media data with the attribute ranges of a plurality of preset gears; and according to the attribute range, determining the modulation coding strategy corresponding to the attribute range as a target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting the preset corresponding relation between the attribute range and the modulation coding strategies. By setting the attribute ranges of a plurality of gears, the attribute values can obtain the corresponding target modulation coding strategy more accurately and quickly.
On the basis of the method for determining the target modulation and coding strategy in data transmission described in fig. 2, the embodiment of the present application further provides a method for determining the attribute ranges of a plurality of gears. Fig. 3 is a schematic flowchart of a method for determining attribute ranges of multiple gears according to an embodiment of the present application, and as shown in fig. 3, before comparing an attribute value of streaming media data with preset attribute ranges of multiple gears to obtain an attribute range in which the attribute value of the streaming media data is located, the method further includes:
s301, carrying out attribute detection on the streaming media data in the preset time length to obtain a reference attribute value and a limit attribute value of the streaming media data in the preset time length.
The method comprises the steps that a sender device obtains streaming media data in a preset time length, performs attribute detection on the streaming media data in the preset time length, obtains a plurality of attribute values of the streaming media data in the preset time length, and further obtains a reference attribute value and a limit attribute value of the streaming media data in the preset time length. For example, the reference attribute value may be an average value of the attribute values, and the limit attribute value may be a maximum attribute value or a minimum attribute value, which is not limited herein as long as the effect of attribute range segmentation is achieved. And determining the category of the limit attribute value to be acquired according to the category of the streaming media data.
Optionally, the sender device may also perform dynamic detection on the obtained streaming media data, and continuously update the reference attribute value and a limit attribute value of the streaming media data, so as to obtain a more accurate reference attribute value and a more accurate limit attribute value.
S302, segmenting the attribute range from the reference attribute value to a limit attribute value to obtain attribute ranges of a plurality of gears.
The attribute range from the reference attribute to a limit attribute value is a larger attribute range, most attribute values of the streaming media data can be contained, and the larger range is divided to obtain attribute ranges of a plurality of gears. In addition, since the streaming media data corresponding to the attribute values outside the wide range is the non-important streaming media data, the attribute values outside the wide range and the attribute ranges adjacent to these attribute values are processed together in one file.
For example, the division manner for dividing the larger range may be uniform equal division, or may be divided according to the characteristics of the streaming media data, which is not limited herein.
In summary, according to the method for determining attribute ranges of multiple gears provided in the embodiments of the present application, by performing attribute detection on streaming media data within a preset time duration, a reference attribute value and a limit attribute value of the streaming media data within the preset time duration are obtained, and then an attribute range from the reference attribute value to the limit attribute value is segmented, so as to obtain attribute ranges of multiple gears. So that the attribute values of the streaming media data are divided into attribute ranges of a plurality of gears according to the characteristics of the streaming media data.
On the basis of the method for determining the target modulation and coding strategy in data transmission described in fig. 2, an embodiment of the present application further provides a method for determining the target modulation and coding strategy in audio data transmission. Fig. 4 is a flowchart illustrating a method for determining a target modulation and coding strategy in audio data transmission according to an embodiment of the present application, where the streaming media data includes: audio data, the attribute values of the streaming media data are: the audio data volume, the attribute range of the above-mentioned multiple gears is: the method comprises the steps that the volume ranges of a plurality of gears are obtained, the execution main body of the method can be sender equipment with an audio data calculation processing and sending function, such as a smart phone, a tablet computer, an interphone and the like, and one sender equipment can send audio data to a plurality of receiver equipment. As shown in fig. 4, the method includes:
s401, determining the volume of the audio data.
S402, if the volume of the audio data is in the minimum volume range of the volume ranges of the multiple gears or is smaller than the minimum volume range, determining that the volume range in which the volume of the audio data is located is a first volume range.
If the streaming media data is audio data and the attribute value of the audio data is the volume of the audio data, the attribute range of the multiple gears is the volume range of the multiple gears. The method comprises the steps of obtaining a plurality of volume values of audio data of a common user, obtaining an average volume value of the audio data and a maximum volume value of the audio data according to the volume values, dividing a volume range between the average volume value and the maximum volume value of the audio data into volume ranges of a plurality of gears, wherein the volume range of each gear corresponds to a modulation coding strategy. Since audio data with a larger volume is more important in audio data, audio data with a larger volume value is mainly focused, and audio data with a smaller volume value can be processed uniformly.
And comparing the acquired volume value of the audio data with preset volume ranges of multiple gears, and if the volume of the audio data is in the minimum volume range of the volume ranges of the multiple gears or is smaller than the minimum volume range, determining that the volume range in which the volume of the audio data is positioned is a first volume range.
S403, according to the first volume range, determining the modulation and coding strategy of the basic gear as a target modulation and coding strategy from the multi-gear preset modulation and coding strategies by adopting a first corresponding relation between the preset volume range and the modulation and coding strategies.
In a first corresponding relation between a preset volume range and a modulation and coding strategy, the first volume range is audio data around or smaller than the average volume value, the audio data in the first volume range is the most common content, and the modulation and coding strategy of the basic gear is determined to be a target modulation and coding strategy of the audio data to be sent. The data encoding mode and the data encoding code rate in the modulation and encoding strategy of the basic gear may be set according to the actual characteristics of the audio data, which is not limited herein.
S404, if the volume of the audio data is larger than the minimum volume range, determining that the volume range where the volume of the audio data is located is a second volume range.
If the volume range between the average volume value and the maximum volume value of the audio data is divided into the volume ranges of two gears, when the volume of the audio data is larger than the minimum volume range, the volume range where the volume of the audio data is located is determined to be the second volume range.
Optionally, if the volume range between the average volume value and the maximum volume value of the audio data is divided into the volume ranges of multiple gears, the volume range in which the volume of the audio data is located may also be determined as the volume ranges such as the third volume range and the fourth volume range.
S405, according to the second volume range, determining a modulation and coding strategy with the gear lower than the basic gear as a target modulation and coding strategy from multi-gear preset modulation and coding strategies by adopting the first corresponding relation.
In the first corresponding relationship between the preset volume range and the modulation and coding strategy, because the second volume range is the volume range larger than the average volume value, the volume value is larger, and it can be determined that the audio data in the second volume range is more important, the modulation and coding strategy with the gear lower than the basic gear is the target modulation and coding strategy, wherein the data coding rate of the target modulation and coding strategy is lower than that of the basic gear modulation and coding strategy, and the data is subjected to channel coding at the lower data coding rate, so that the transmission error can be reduced. For example, the data coding rate and the data coding mode in the modulation coding strategy corresponding to the second volume range are set according to the actual characteristics of the audio data with larger volume, which is not limited herein.
Optionally, if the volume range between the average volume value and the maximum volume value of the audio data is divided into the volume ranges of multiple gears, the modulation and coding strategy corresponding to the volume range of the gear where the current gear is located may also be determined as the target modulation and coding strategy according to the first corresponding relationship.
In summary, according to the method for determining the target modulation and coding strategy in the audio data transmission provided by the embodiment of the present application, if the volume of the audio data is in the minimum volume range of the volume ranges of the multiple gears, or is smaller than the minimum volume range, the volume range in which the volume of the audio data is located is determined to be the first volume range; according to the first volume range, determining a modulation and coding strategy of a basic gear as a target modulation and coding strategy from multi-gear preset modulation and coding strategies by adopting a first corresponding relation between the preset volume range and the modulation and coding strategies; if the volume of the audio data is larger than the minimum volume range, determining the volume range in which the volume of the audio data is located as a second volume range; and according to the second volume range, determining a modulation and coding strategy with the gear lower than the basic gear as a target modulation and coding strategy from the preset modulation and coding strategies of the multiple gears by adopting the first corresponding relation. Therefore, the volume value of the audio data is divided into a plurality of volume ranges, the volume range corresponding to the audio data to be sent is determined, and then the target modulation coding strategy corresponding to the audio data to be sent is determined, so that a physical layer channel is fully utilized, important audio data is reserved as far as possible, data transmission errors are reduced, non-important video data can be transmitted more quickly, and electric quantity consumption is reduced.
On the basis of the method for determining the target modulation and coding strategy in data transmission described in fig. 2, an embodiment of the present application further provides a method for determining the target modulation and coding strategy according to the speech rate of the audio data. Fig. 5 is a flowchart illustrating a method for determining a target modulation and coding strategy according to a speech rate of audio data according to an embodiment of the present application, where the streaming media data includes: audio data, the attribute values of the streaming media data are: the speech rate of the audio data, the attribute ranges of the plurality of gears are as follows: the method comprises the following steps that the speech speed ranges of a plurality of gears are set, an execution main body of the method can be sender equipment with an audio data calculation processing and sending function, such as a smart phone, a tablet computer, an interphone and the like, and one sender equipment can send audio data to a plurality of receiver equipment. As shown in fig. 5, the method includes:
s501, determining the speech rate of the audio data.
S502, if the speech speed of the audio data is in the maximum speech speed range of the speech speed ranges of the multiple gears or is larger than the maximum speech speed range, determining that the speech speed range in which the speech speed of the audio data is located is the first speech speed range.
If the streaming media data is audio data and the attribute value of the audio data is the speech rate of the audio data, the attribute range of the multiple gears is the speech rate range of the multiple gears. The method comprises the steps of obtaining a plurality of speech rate values of audio data of a common user, obtaining an average speech rate value of the audio data and a minimum speech rate value of the audio data according to the speech rate values, dividing a speech rate range between the average speech rate value and the minimum speech rate value of the audio data into speech rate ranges of a plurality of gears, wherein the speech rate range of each gear corresponds to a modulation coding strategy. In the audio data, the audio data with slower speech rate is more important, so the audio data with slower speech rate is mainly focused on, and the audio data with slower speech rate can be processed uniformly.
Comparing the obtained speech rate value of the audio data with the preset speech rate ranges of the multiple gears, and if the speech rate of the audio data is in the maximum speech rate range of the speech rate ranges of the multiple gears or is larger than the maximum speech rate range, determining that the speech rate range in which the speech rate of the audio data is located is the first speech rate range.
For example, after the audio data is acquired, a phone string in the audio data is identified, the phone string is composed into syllables, the number of the syllables per unit time is calculated, and a speech rate value of the audio data can be obtained.
S503, according to the first speech speed range, determining the modulation and coding strategy of the basic gear as a target modulation and coding strategy from the multi-gear preset modulation and coding strategies by adopting a second corresponding relation between the preset speech speed range and the modulation and coding strategies.
In a second corresponding relationship between the preset speech rate range and the modulation and coding strategy, the first speech rate range is audio data around the average speech rate value or larger than the average speech rate value, the audio data in the first speech rate range is the most common content, and the modulation and coding strategy of the basic gear is determined to be a target modulation and coding strategy of the audio data to be sent. The data encoding mode and the data encoding code rate in the modulation and encoding strategy of the basic gear may be set according to the actual characteristics of the audio data, which is not limited herein.
S504, if the speech rate of the audio data is smaller than the maximum speech rate range, determining that the speech rate range where the speech rate of the audio data is located is a second speech rate range.
If the speech speed range between the average speech speed value and the minimum speech speed value of the audio data is divided into two levels of speech speed ranges, when the speech speed of the audio data is smaller than the maximum speech speed range, the speech speed range where the speech speed of the audio data is located is determined to be the second speech speed range.
Optionally, if the speech rate range between the average speech rate value and the minimum speech rate value of the audio data is divided into speech rate ranges of multiple levels, the speech rate range in which the speech rate of the audio data is located may also be determined as the speech rate ranges such as the third speech rate range and the fourth speech rate range.
And S505, according to the second speech speed range, determining a modulation and coding strategy with a gear lower than the basic gear as a target modulation and coding strategy from multi-gear preset modulation and coding strategies by adopting a second corresponding relation.
In the second corresponding relationship between the preset speech rate range and the modulation and coding strategy, because the second speech rate range is the speech rate range smaller than the average speech rate value, the speech rate value is smaller, and it can be determined that the audio data in the second speech rate range is more important, so the modulation and coding strategy with the gear lower than the basic gear is the target modulation and coding strategy, wherein the data coding rate of the target modulation and coding strategy is lower than that of the basic gear modulation and coding strategy, and the transmission error can be reduced by performing channel coding on the data with the lower data coding rate. For example, the data coding rate and the data coding mode in the modulation coding strategy corresponding to the second volume range are set according to the actual characteristics of the audio data with a smaller speech rate, which is not limited herein.
Optionally, if the speech rate range between the average speech rate value and the minimum speech rate value of the audio data is divided into speech rate ranges of multiple gears, the modulation and coding strategy corresponding to the speech rate range of the current gear may also be determined as the target modulation and coding strategy according to the second corresponding relationship.
To sum up, according to another method for determining a target modulation and coding strategy in audio data transmission provided in the embodiment of the present application, if a speech rate of audio data is in a maximum speech rate range of speech rate ranges of multiple gears, or is greater than the maximum speech rate range, a speech rate range in which the speech rate of audio data is located is determined as a first speech rate range, and according to the first speech rate range, a second corresponding relationship between a preset speech rate range and a modulation and coding strategy is adopted, so that a modulation and coding strategy of a basic gear is determined as a target modulation and coding strategy from multiple gears of preset modulation and coding strategies; and if the speech speed of the audio data is smaller than the maximum speech speed range, determining the speech speed range in which the speech speed of the audio data is located as a second speech speed range, and according to the second speech speed range, adopting a second corresponding relation, and determining a modulation coding strategy with a gear lower than a basic gear as a target modulation coding strategy from multi-gear preset modulation coding strategies. Therefore, the speech rate value of the audio data is divided into a plurality of speech rate ranges, the speech rate range corresponding to the audio data to be sent is determined, the target modulation coding strategy corresponding to the audio data to be sent is further determined, the physical layer channel is fully utilized, important audio data are reserved as far as possible, data transmission errors are reduced, non-important audio volume data can be transmitted more quickly, and electric quantity consumption is reduced.
On the basis of the method for determining the target modulation coding strategy in audio data transmission described in fig. 4 to fig. 5, the embodiment of the present application further provides a method for determining the target modulation coding strategy according to the volume and the speech rate of the audio data. Fig. 6 is a flowchart illustrating a method for determining a target modulation and coding strategy according to a volume and a speech rate of audio data according to an embodiment of the present application, where the streaming media data includes: audio data, the attribute values of the streaming media data are: the audio data has a comprehensive value of volume and speech rate, and the attribute ranges of the plurality of gears are as follows: the execution main body of the method can be sender equipment with an audio data calculation processing sending function, such as a smart phone, a tablet computer, an interphone and the like, and one sender equipment can send audio data to a plurality of receiver equipments. As shown in fig. 6, the method includes:
s601, determining a comprehensive value of the audio data according to the volume of the audio data and the speech speed of the audio data.
And acquiring the volume of the audio data and the speech rate of the audio data, weighting the volume of the audio data and the speech rate of the audio data, and calculating to obtain a comprehensive value of the audio data.
For example, preset weighting parameters are respectively given to the volume and the speech rate of the audio data, and the ratio of the weighted volume to the weighted speech rate is taken as a comprehensive value of the audio data, so that the audio data is more important when the volume of the audio data is larger and the speech rate is smaller, that is, the comprehensive value is larger and the audio data is more important.
S602, if the comprehensive value of the audio data is in the minimum comprehensive value range of the comprehensive value ranges of the multiple gears or is smaller than the minimum comprehensive value range, determining that the comprehensive value range in which the comprehensive value of the audio data is located is a first comprehensive value range.
And if the streaming media data is audio data and the attribute value of the audio data is the comprehensive value of the audio data, the attribute range of the multiple gears is the comprehensive value range of the multiple gears. The method comprises the steps of obtaining a plurality of comprehensive values of audio data of a common user, obtaining an average comprehensive value of the audio data and a maximum comprehensive value of the audio data according to the plurality of comprehensive values, dividing a comprehensive value range between the average comprehensive value and the maximum comprehensive value of the audio data into comprehensive value ranges of a plurality of gears, wherein the comprehensive value range of each gear corresponds to a modulation coding strategy. In the audio data, the audio data with the larger integrated value is more important, so the audio data with the larger integrated value is mainly concerned, and the audio data with the smaller integrated value can be processed uniformly.
And comparing the acquired comprehensive value of the audio data with preset comprehensive value ranges of a plurality of gears, and if the comprehensive value of the audio data is in the minimum comprehensive value range of the comprehensive value ranges of the plurality of gears or is smaller than the minimum comprehensive value range, determining that the comprehensive value range in which the comprehensive value of the audio data is positioned is a first comprehensive value range.
S603, according to the first comprehensive value range, determining the modulation and coding strategy of the basic gear as a target modulation and coding strategy from the multi-gear preset modulation and coding strategies by adopting a preset fourth corresponding relation between the comprehensive value range and the modulation and coding strategies.
In a fourth corresponding relationship between the preset comprehensive value range and the modulation and coding strategy, if the first comprehensive value range is audio data around the average comprehensive value or smaller than the average comprehensive value, the audio data in the first comprehensive value range is the most common content, and the modulation and coding strategy of the basic gear is determined to be the target modulation and coding strategy of the audio data to be sent. The data encoding mode and the data encoding code rate in the modulation and encoding strategy of the basic gear may be set according to the actual characteristics of the audio data, which is not limited herein.
S604, if the comprehensive value of the audio data is larger than the minimum comprehensive value range, determining that the comprehensive value range in which the comprehensive value of the audio data is located is a second comprehensive value range.
If the comprehensive value range between the average comprehensive value and the maximum comprehensive value of the audio data is divided into the comprehensive value ranges of two gears, when the comprehensive value of the audio data is larger than the minimum comprehensive value range, the comprehensive value range in which the comprehensive value of the audio data is located is determined to be the second comprehensive value range.
Optionally, if the comprehensive value range between the average comprehensive value and the maximum comprehensive value of the audio data is divided into comprehensive value ranges of a plurality of gears, the comprehensive value range in which the comprehensive value of the audio data is located may also be determined as a third comprehensive value range, a fourth comprehensive value range, and other comprehensive value ranges.
And S605, according to the second comprehensive value range, determining a modulation and coding strategy with the gear lower than the basic gear as a target modulation and coding strategy from the multi-gear preset modulation and coding strategies by adopting a fourth corresponding relation.
In the fourth corresponding relationship between the preset comprehensive value range and the modulation and coding strategy, since the second comprehensive value range is the comprehensive value range larger than the average comprehensive value, the comprehensive value is larger, and it can be determined that the audio data in the second comprehensive value range is more important, the modulation and coding strategy with the gear lower than the basic gear is the target modulation and coding strategy, wherein the data coding rate of the target modulation and coding strategy is lower than that of the basic gear modulation and coding strategy, and the data is channel coded at the lower data coding rate, so that the transmission error can be reduced. For example, the data coding rate and the data coding mode in the modulation coding strategy corresponding to the second comprehensive value range are set according to the actual characteristics of the audio data with a larger comprehensive value, which is not limited herein.
Optionally, if the comprehensive value range between the average comprehensive value and the maximum comprehensive value of the audio data is divided into comprehensive value ranges of multiple gears, the modulation and coding strategy corresponding to the comprehensive value range of the current gear may also be determined as the target modulation and coding strategy according to the fourth corresponding relationship.
In addition, the method for calculating the comprehensive value may further assign preset weight parameters to the volume and the speech rate of the audio data, and use the ratio of the speech rate after weighting to the volume after weighting as the comprehensive value of the audio data, so that the larger the volume of the audio data is, the smaller the speech rate is, the more important the audio data is, that is, the smaller the comprehensive value is, the more important the audio data is. In this calculation manner, the logic for determining the target modulation code is the same as the logic for determining the target modulation code according to the speech rate of the audio data in fig. 5, and is not described herein again. It should be noted that the method for calculating the comprehensive value is not exclusive and is not limited herein, as long as the comprehensive value is obtained according to the volume and the speech rate of the audio data, and then the target modulation code is determined according to the comprehensive value and the determination logic corresponding to the comprehensive value.
In summary, according to another method for determining a target modulation coding strategy in audio data transmission provided in the embodiment of the present application, a comprehensive value of audio data is determined according to a volume of the audio data and a speech rate of the audio data; if the comprehensive value of the audio data is in the minimum comprehensive value range of the comprehensive value ranges of the multiple gears or is smaller than the minimum comprehensive value range, determining that the comprehensive value range in which the comprehensive value of the audio data is located is a first comprehensive value range; according to the first comprehensive value range, determining a modulation coding strategy of a basic gear as a target modulation coding strategy from multi-gear preset modulation coding strategies by adopting a preset fourth corresponding relation between the comprehensive value range and the modulation coding strategies; if the comprehensive value of the audio data is larger than the minimum comprehensive value range, determining that the comprehensive value range in which the comprehensive value of the audio data is located is a second comprehensive value range; and according to the second comprehensive value range, determining a modulation coding strategy with the gear lower than the basic gear as a target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting a fourth corresponding relation. Therefore, the comprehensive value of the audio data is divided into a plurality of comprehensive value ranges, the comprehensive value range corresponding to the audio data to be sent is determined, the target modulation coding strategy corresponding to the audio data to be sent is further determined, the physical layer channel is fully utilized, important audio data are reserved as far as possible, data transmission errors are reduced, non-important audio volume data can be transmitted more quickly, and electric quantity consumption is reduced.
On the basis of the method for determining the target modulation and coding strategy in data transmission described in fig. 2, an embodiment of the present application further provides a method for determining the target modulation and coding strategy in video data transmission. Fig. 7 is a flowchart illustrating a method for determining a target modulation and coding strategy in video data transmission according to an embodiment of the present application, where the streaming media data includes: video data, the attribute values of the streaming media data are: the attribute ranges of the multiple gears are as follows: the method comprises the following steps that the variation range of a plurality of gears is obtained, the execution main body of the method can be a sender device with a video data calculation processing and sending function, such as a smart phone, a tablet computer and the like, and one sender device can send video data to a plurality of receiver devices. As shown in fig. 7, the method includes:
s701, determining the change amplitude of adjacent frames of the video data.
S702, if the change range of the adjacent frames of the video data is in the maximum change range of the change ranges of the multiple gears or is larger than the maximum change range, determining the change range in which the change range of the adjacent frames of the video data is located as a first change range.
If the streaming media data is video data and the attribute value of the video data is the change amplitude of the adjacent frames of the video data, the attribute range of the multiple gears is the change range of the multiple gears. The method comprises the steps of obtaining a plurality of adjacent frame change amplitudes of video data, obtaining an average adjacent frame change amplitude of the video data and a minimum adjacent frame change amplitude of the video data according to the adjacent frame change amplitudes, dividing a change range between the average adjacent frame change amplitude and the minimum adjacent frame change amplitude of the video data into change ranges of a plurality of gears, wherein the change range of each gear corresponds to a modulation coding strategy. In the video data, the video data with smaller change amplitude of the adjacent frames is more important, so the video data with smaller change amplitude of the adjacent frames is mainly concerned, and the video data with larger change amplitude of the adjacent frames can be processed uniformly.
Comparing the adjacent frame change range of the acquired video data with the preset change ranges of the multiple gears, and if the adjacent frame change range of the video data is in the maximum change range of the change ranges of the multiple gears or is larger than the maximum change range, determining the change range in which the adjacent frame change range of the video data is located as a first change range.
And S703, determining the modulation and coding strategy of the basic gear as a target modulation and coding strategy from the multi-gear preset modulation and coding strategies according to the first change range and by adopting a third corresponding relation between the preset change range and the modulation and coding strategies.
In a third corresponding relationship between the preset variation range and the modulation and coding strategy, if the first variation range is video data around or greater than the average variation amplitude of the adjacent frames, the video data in the first variation range is the most common content, and the modulation and coding strategy of the basic gear is determined to be the target modulation and coding strategy of the video data to be transmitted. The data coding mode and the data coding rate in the modulation coding strategy of the basic gear may be set according to the actual characteristics of the video data, which is not limited here.
S704, if the variation range of the video data is smaller than the maximum variation range, determining the variation range in which the variation range of the adjacent frame of the video data is located as a second variation range.
If the change range between the average adjacent frame change range and the minimum adjacent frame change range of the video data is divided into the change ranges of two gears, when the adjacent frame change range of the video data is smaller than the maximum change range, the change range in which the adjacent frame change range of the video data is located is determined to be a second change range.
Optionally, if the variation range between the average adjacent frame variation range and the minimum adjacent frame variation range of the video data is divided into the variation ranges of multiple gears, the variation range in which the adjacent frame variation range of the video data is located may also be determined as the third variation range, the fourth variation range, and other variation ranges.
S705, according to the second variation range, determining a modulation and coding strategy with a gear lower than the basic gear as a target modulation and coding strategy from multi-gear preset modulation and coding strategies by adopting a third corresponding relation.
In the third corresponding relationship between the preset variation range and the modulation and coding strategy, since the second variation range is a variation range smaller than the variation range of the average adjacent frame, the variation range of the adjacent frame is smaller, and it can be determined that the video data in the second variation range is more important, the modulation and coding strategy with the gear lower than the basic gear is the target modulation and coding strategy, wherein the data coding rate of the target modulation and coding strategy is lower than that of the basic gear modulation and coding strategy, and the transmission error can be reduced by performing channel coding on the data with the lower data coding rate. For example, the data coding rate and the data coding mode in the modulation coding strategy corresponding to the second variation range are set according to the actual characteristics of the video data with small variation, which is not limited herein.
Optionally, if the variation range between the average adjacent frame variation range and the minimum adjacent frame variation range of the video data is divided into variation ranges of multiple gears, the modulation and coding strategy corresponding to the current gear variation range may also be determined to be the target modulation and coding strategy according to the third corresponding relationship.
In addition, it is worth mentioning that, in the process of transmitting the video data, not only the image data of each frame in the video data but also the audio data in the video data are transmitted. In the actual transmission of video data, the image data and the audio data in the video data are separated into two paths of data, and each path of data is mapped to a different physical layer channel for transmission. Therefore, in the video data transmission, the audio data is modulated and coded according to the target modulation coding strategy of the audio data, the image data is modulated and coded according to the target modulation coding strategy of the adjacent frame of the video data, and finally the video data is modulated and coded.
To sum up, according to the method for determining a target modulation coding strategy in video data transmission provided by the embodiment of the present application, if a change range of adjacent frames of video data is within a maximum change range of change ranges of a plurality of gears, or is greater than the maximum change range, a change range in which the change range of the adjacent frames of video data is located is determined as a first change range; according to the first variation range, determining the modulation coding strategy of the basic gear as a target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting a preset variation range and a third corresponding relation of the modulation coding strategies; if the variation range of the video data is smaller than the maximum variation range, determining the variation range in which the variation range of the adjacent frames of the video data is located as a second variation range; and according to the second variation range, determining a modulation coding strategy with the gear lower than the basic gear as a target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting a third corresponding relation. Therefore, the change amplitude of adjacent frames of the video data is divided into a plurality of change ranges, the change range corresponding to the video data to be sent is determined, and then the target modulation coding strategy corresponding to the video data to be sent is determined, so that a physical layer channel is fully utilized, important video data are reserved as much as possible, data transmission errors are reduced, non-important video data can be transmitted more quickly, and the power consumption is reduced.
The following describes a data transmission device, an apparatus, a storage medium, and the like for executing the data transmission device, the apparatus, the storage medium, and the like provided by the present application, and specific implementation processes and technical effects thereof are referred to above, and are not described in detail below.
Fig. 8 is a schematic diagram of a data transmission device according to an embodiment of the present application, and as shown in fig. 8, the data transmission device may include:
an obtaining module 801, configured to obtain streaming media data to be sent.
The detecting module 802 is configured to detect the streaming media data to obtain an attribute value of the streaming media data.
The determining module 803 is configured to determine, according to the attribute value of the streaming media data, a modulation and coding strategy corresponding to the attribute value as a target modulation and coding strategy from multiple preset modulation and coding strategies.
And an encoding module 804, configured to perform modulation encoding on the streaming media data by using a target modulation encoding strategy.
A sending module 805, configured to send the data obtained by modulation and coding to at least one receiving device by using a broadcast channel.
Further, the determining module 803 is specifically configured to compare the attribute value of the streaming media data with attribute ranges of multiple preset gears to obtain an attribute range in which the attribute value of the streaming media data is located; and according to the attribute range, determining the modulation coding strategy corresponding to the attribute range as a target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting the preset corresponding relation between the attribute range and the modulation coding strategies.
Further, the determining module 803 is specifically configured to determine that the volume range where the volume of the audio data is located is a first volume range if the volume of the audio data is in a minimum volume range of the volume ranges of the multiple gears, or is smaller than the minimum volume range; and according to the first volume range, determining the modulation and coding strategy of the basic gear as a target modulation and coding strategy from the multi-gear preset modulation and coding strategies by adopting a first corresponding relation between the preset volume range and the modulation and coding strategies.
Further, the determining module 803 is specifically configured to determine, if the volume of the audio data is greater than the minimum volume range, that the volume range where the volume of the audio data is located is a second volume range; and according to the second volume range, determining a modulation and coding strategy with the gear lower than the basic gear as a target modulation and coding strategy from the preset modulation and coding strategies of the multiple gears by adopting the first corresponding relation.
Further, the determining module 803 is specifically configured to determine that the speech speed range where the speech speed of the audio data is located is a first speech speed range if the speech speed of the audio data is in a maximum speech speed range of the speech speed ranges of the multiple gears, or is greater than the maximum speech speed range; and determining the modulation coding strategy of the basic gear as a target modulation coding strategy from the multi-gear preset modulation coding strategies according to the first speech speed range and by adopting a second corresponding relation between the preset speech speed range and the modulation coding strategies.
Further, the determining module 803 is specifically configured to determine, if the speech rate of the audio data is smaller than the maximum speech rate range, that the speech rate range where the speech rate of the audio data is located is a second speech rate range; and according to the second speech speed range, determining a modulation coding strategy with the gear lower than the basic gear as a target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting a second corresponding relation.
Further, the determining module 803 is specifically configured to determine, if the change range of the adjacent frame of the video data is in a maximum change range of the change ranges of the multiple gears, or is greater than the maximum change range, that the change range in which the change range of the adjacent frame of the video data is located is a first change range; and determining the modulation coding strategy of the basic gear as a target modulation coding strategy from the multi-gear preset modulation coding strategies according to the first change range and by adopting a third corresponding relation between the preset change range and the modulation coding strategies.
Further, the determining module 803 is specifically configured to determine, if the variation range of the video data is smaller than the maximum variation range, that the variation range in which the variation range of the adjacent frame of the video data is located is a second variation range; and according to the second variation range, determining a modulation coding strategy with the gear lower than the basic gear as a target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting a third corresponding relation.
Further, the determining module 803 is specifically configured to perform attribute detection on the streaming media data within the preset time duration to obtain a reference attribute value of the streaming media data within the preset time duration and a limit attribute value; and segmenting the attribute range from the reference attribute value to a limit attribute value to obtain attribute ranges of a plurality of gears.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 9 is a schematic diagram of a sender device according to an embodiment of the present application, where the sender device may be a device with a computing processing function.
The sender device includes: a processor 901, a storage medium 902. The processor 901 and the storage medium 902 are connected via a bus.
The storage medium 902 is used for storing a program, and the processor 901 calls the program stored in the storage medium 902 to execute the above-mentioned method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the invention also provides a program product, for example a computer-readable storage medium, comprising a program which, when being executed by a processor, is adapted to carry out the above-mentioned method embodiments.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the 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. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
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 solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. 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 other various media capable of storing program codes.

Claims (10)

1. A method of data transmission, the method comprising:
acquiring streaming media data to be sent;
detecting the streaming media data to obtain an attribute value of the streaming media data;
according to the attribute value of the streaming media data, determining a modulation coding strategy corresponding to the attribute value as a target modulation coding strategy from multi-level preset modulation coding strategies;
modulating and coding the streaming media data by adopting the target modulation coding strategy;
and transmitting the data obtained by modulation coding to at least one receiver device by adopting a broadcast channel.
2. The method according to claim 1, wherein the determining, according to the attribute value of the streaming media data, a modulation and coding strategy corresponding to the attribute value as a target modulation and coding strategy from among multiple preset modulation and coding strategies includes:
comparing the attribute values of the streaming media data with attribute ranges of a plurality of preset gears to obtain the attribute range of the attribute values of the streaming media data;
and according to the attribute range, determining the modulation coding strategy corresponding to the attribute range as the target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting the corresponding relation between the preset attribute range and the modulation coding strategies.
3. The method of claim 2, wherein the streaming media data comprises: audio data, the attribute values of which are: the audio data volume, the attribute range of the plurality of gears is: a volume range of the plurality of gears;
the comparing the attribute value of the streaming media data with the attribute ranges of a plurality of preset gears to obtain the attribute range where the attribute value of the streaming media data is located includes:
if the volume of the audio data is in the minimum volume range of the volume ranges of the multiple gears or is smaller than the minimum volume range, determining that the volume range in which the volume of the audio data is located is a first volume range;
the determining, according to the attribute range, a preset attribute range and a corresponding relationship between modulation and coding strategies, that the modulation and coding strategy corresponding to the attribute range is the target modulation and coding strategy from the multi-gear preset modulation and coding strategies includes:
and determining the modulation coding strategy of the basic gear as the target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting a first corresponding relation between preset volume ranges and modulation coding strategies according to the first volume range.
4. The method according to claim 3, wherein the comparing the attribute value of the streaming media data with the attribute ranges of a plurality of preset gears to obtain the attribute range in which the attribute value of the streaming media data is located comprises:
if the volume of the audio data is larger than the minimum volume range, determining that the volume range in which the volume of the audio data is located is a second volume range;
the determining, according to the attribute range, a preset attribute range and a corresponding relationship between modulation and coding strategies, that the modulation and coding strategy corresponding to the attribute range is the target modulation and coding strategy from the multi-gear preset modulation and coding strategies includes:
and according to the second volume range, determining a modulation coding strategy with a gear lower than the basic gear as the target modulation coding strategy from the preset modulation coding strategies of multiple gears by adopting the first corresponding relation.
5. The method of claim 2, wherein the streaming media data comprises: audio data, the attribute values of which are: the speech rate of the audio data and the attribute ranges of the multiple gears are as follows: the speech rate ranges of the plurality of gears;
the comparing the attribute value of the streaming media data with the attribute ranges of a plurality of preset gears to obtain the attribute range where the attribute value of the streaming media data is located includes:
if the speech rate of the audio data is in the maximum speech rate range of the speech rate ranges of the multiple gears or is larger than the maximum speech rate range, determining that the speech rate range in which the speech rate of the audio data is located is a first speech rate range;
the determining, according to the attribute range, a modulation and coding strategy corresponding to the attribute range as the target modulation and coding strategy from multiple preset modulation and coding strategies by using a preset corresponding relationship between the attribute range and the modulation and coding strategy includes:
and determining the modulation coding strategy of the basic gear as the target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting a second corresponding relation between a preset speech speed range and the modulation coding strategies according to the first speech speed range.
6. The method according to claim 5, wherein the comparing the attribute value of the streaming media data with the attribute ranges of a plurality of preset gears to obtain the attribute range in which the attribute value of the streaming media data is located comprises:
if the speech rate of the audio data is smaller than the maximum speech rate range, determining that the speech rate range where the speech rate of the audio data is located is a second speech rate range;
the determining, according to the attribute range, a modulation and coding strategy corresponding to the attribute range as the target modulation and coding strategy from multiple preset modulation and coding strategies by using a preset corresponding relationship between the attribute range and the modulation and coding strategy includes:
and determining a modulation coding strategy with a gear lower than the basic gear as the target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting the second corresponding relation according to the second speech speed range.
7. The method of claim 2, wherein the streaming media data comprises: video data, the attribute values of the video data are: the change range of the adjacent frames of the video data is as follows: a range of variation of the plurality of gears;
the comparing the attribute value of the streaming media data with the attribute ranges of a plurality of preset gears to obtain the attribute range where the attribute value of the streaming media data is located includes:
if the change range of the adjacent frame of the video data is in the maximum change range of the change ranges of the plurality of gears or is larger than the maximum change range, determining the change range in which the change range of the adjacent frame of the video data is located as a first change range;
the determining, according to the attribute range, a modulation and coding strategy corresponding to the attribute range as the target modulation and coding strategy from multiple preset modulation and coding strategies by using a preset corresponding relationship between the attribute range and the modulation and coding strategy includes:
and determining the modulation coding strategy of the basic gear as the target modulation coding strategy from the multi-gear preset modulation coding strategies by adopting a third corresponding relation between a preset variation range and the modulation coding strategies according to the first variation range.
8. The method according to claim 7, wherein the comparing the attribute value of the streaming media data with the attribute ranges of a plurality of preset gears to obtain the attribute range in which the attribute value of the streaming media data is located comprises:
if the variation range of the video data is smaller than the maximum variation range, determining the variation range in which the variation range of the adjacent frames of the video data is located as a second variation range;
the determining, according to the attribute range, a modulation and coding strategy corresponding to the attribute range as the target modulation and coding strategy from multiple preset modulation and coding strategies by using a preset corresponding relationship between the attribute range and the modulation and coding strategy includes:
and according to the second variation range, determining a modulation coding strategy with a gear lower than the basic gear as the target modulation coding strategy from the preset modulation coding strategies of multiple gears by adopting the third corresponding relation.
9. The method according to claim 2, wherein before comparing the attribute value of the streaming media data with the attribute ranges of the preset multiple gears to obtain the attribute range in which the attribute value of the streaming media data is located, the method further comprises:
performing attribute detection on the streaming media data within a preset time length to obtain a reference attribute value and a limit attribute value of the streaming media data within the preset time length;
and segmenting the attribute range from the reference attribute value to the limit attribute value to obtain the attribute ranges of the plurality of gears.
10. A sender device, comprising: a processor, a storage medium storing a computer program operable on the processor, the processor executing the computer program to perform the method of any of the preceding claims 1-9.
CN202210097045.XA 2022-01-27 2022-01-27 Data transmission method and equipment Active CN114124309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210097045.XA CN114124309B (en) 2022-01-27 2022-01-27 Data transmission method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210097045.XA CN114124309B (en) 2022-01-27 2022-01-27 Data transmission method and equipment

Publications (2)

Publication Number Publication Date
CN114124309A true CN114124309A (en) 2022-03-01
CN114124309B CN114124309B (en) 2022-06-14

Family

ID=80361162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210097045.XA Active CN114124309B (en) 2022-01-27 2022-01-27 Data transmission method and equipment

Country Status (1)

Country Link
CN (1) CN114124309B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140119429A1 (en) * 2012-10-31 2014-05-01 General Instrument Corporation Method and apparatus for determining a media encoding format of a media stream
CN110121071A (en) * 2018-02-05 2019-08-13 广东欧珀移动通信有限公司 Method for video coding and Related product
CN110944015A (en) * 2019-12-19 2020-03-31 斑马网络技术有限公司 Audio remote transmission method, device, server and storage medium
CN112468855A (en) * 2020-11-11 2021-03-09 西安万像电子科技有限公司 Data transmission method and device and nonvolatile storage medium
CN112491494A (en) * 2019-09-11 2021-03-12 中国移动通信有限公司研究院 Code determination method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140119429A1 (en) * 2012-10-31 2014-05-01 General Instrument Corporation Method and apparatus for determining a media encoding format of a media stream
CN110121071A (en) * 2018-02-05 2019-08-13 广东欧珀移动通信有限公司 Method for video coding and Related product
CN112491494A (en) * 2019-09-11 2021-03-12 中国移动通信有限公司研究院 Code determination method, device, equipment and storage medium
CN110944015A (en) * 2019-12-19 2020-03-31 斑马网络技术有限公司 Audio remote transmission method, device, server and storage medium
CN112468855A (en) * 2020-11-11 2021-03-09 西安万像电子科技有限公司 Data transmission method and device and nonvolatile storage medium

Also Published As

Publication number Publication date
CN114124309B (en) 2022-06-14

Similar Documents

Publication Publication Date Title
US11227612B2 (en) Audio frame loss and recovery with redundant frames
CN108347302B (en) Coding and decoding method and terminal
CN103533631A (en) Radio link performance prediction in wireless communication terminal
JP7383138B2 (en) Audio transmission method, its system, device, computer program, and computer equipment
CN110166168B (en) Method, device and system for determining size of transmission block
CN108140393B (en) Method, device and system for processing multichannel audio signals
US9385750B2 (en) Split gain shape vector coding
WO2023142716A1 (en) Encoding method and apparatus, real-time communication method and apparatus, device, and storage medium
CN111726878A (en) Method and device for detecting downlink control information
CN114333862B (en) Audio encoding method, decoding method, device, equipment, storage medium and product
CN114124309B (en) Data transmission method and equipment
TR201909562T4 (en) Methods and devices for DTX residue in audio coding.
CN108540140B (en) Polar code decoding method and device
CN107431809A (en) The method and apparatus of image procossing
CN104541469A (en) Method and apparatus for error recovery using information related to the transmitter
CN110401458B (en) Data check coding method and system
CN107682020B (en) Encoding and decoding method and device based on Turbo code
CN113572483B (en) Viterbi decoding method and apparatus
CN112769524B (en) Voice transmission method, device, computer equipment and storage medium
CN106937168B (en) Video coding method, electronic equipment and system using long-term reference frame
EP2512052B1 (en) Method and device for determining in-band signalling decoding mode
CN111800227A (en) Virtual inspection filtering method and device, storage medium and receiver
CN112994836B (en) Detection method, detection device, terminal and storage medium
GB2391774A (en) TFCI decoding
CN110958100A (en) Equipment control method and device

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