Multimedia data transmission method and apparatus, medium, and device
By setting the expected delay and calculating the playable duration of the multimedia data buffer in real time and adjusting the playback speed, the problem of screen freezes caused by network congestion in real-time video transmission is solved and the user experience is improved.
Patent Information
- Application Number
- PCT/CN2024/075841
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-01
- Filing Date
- 2024-02-04
- Publication Date
- 2024-09-06
AI Technical Summary
In real-time video transmission application scenarios, when the network is suddenly congested, the receiving end cannot receive video data normally, resulting in screen freezes and affecting user experience.
By setting an acceptable expected delay and calculating the playable duration in the multimedia data buffer in real time, it determines whether to adjust the playback speed. When the playable duration is less than the expected delay, the playback speed is reduced to avoid screen freezes.
It effectively avoids the problem of screen freezes caused by network abnormalities, improves the user's viewing experience, and ensures the continuity of video transmission.
Smart Images

Figure CN2024075841_06092024_PF_FP
Abstract
Description
Multimedia data transmission method, device, medium and equipment
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 1, 2023, with application number 202310225656.2 and invention name “Multimedia Data Transmission Method, Device, Medium and Equipment”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to a multimedia data transmission method, apparatus, medium and equipment. Background Art
[0003] In current real-time video transmission scenarios, ensuring proper transmission typically requires that the video meet pre-defined performance requirements, primarily including latency, picture quality, and audio quality. During transmission, parameters such as image resolution and audio encoding format are selected based on the current network bandwidth. When the network is smooth, the video can meet these requirements. However, when network congestion (jitter) occurs, the receiving end (user end) will be unable to properly receive the video data to be played, resulting in image lag and discontinuity, impacting the user's viewing experience.
[0004] In summary, a simpler and more effective method is needed to avoid the problem of screen freezes on the user side caused by data reception delay at the receiving end due to the current poor network in real-time video transmission application scenarios.
[0005] Application Contents
[0006] The embodiments of the present application provide a multimedia data transmission method, apparatus, medium, and device. Using the multimedia data transmission method provided by the embodiments of the present application, an acceptable expected delay is set, and the playable duration corresponding to the buffered multimedia data sent to the buffer is calculated in real time. The playable duration is compared with the expected delay, and a decision is made based on the comparison result whether to adjust the current playback speed. Specifically, when the playable duration in the current buffer is less than the expected delay, it indicates that there is a transmission anomaly in the current network, resulting in no new buffered data entering the buffer. At this time, by reducing the playback speed of the currently playable multimedia data, screen freezes can be avoided.
[0007] On the one hand, an embodiment of the present application provides a multimedia data transmission method, the multimedia data transmission method comprising:
[0008] Receive multimedia data packets transmitted by the sender;
[0009] Storing the multimedia data to be played in the multimedia data packet into a multimedia data buffer for buffering;
[0010] Calculate the playable duration of multimedia data in the buffer in real time;
[0011] When the playable duration does not exceed the target expected delay, the first play speed of the multimedia data in the buffer is reduced to obtain a second play speed.
[0012] Accordingly, another embodiment of the present application further provides a multimedia data transmission method, including:
[0013] Acquiring multimedia data to be transmitted;
[0014] The multimedia data packet to be transmitted is transmitted to the receiving end, so that the receiving end stores the multimedia data to be played in the multimedia data packet into a multimedia data buffer for buffering processing, and calculates the playable duration corresponding to the multimedia data in the multimedia data buffer in real time. When the playable duration does not exceed the target expected delay, the first play speed of the multimedia data in the multimedia data buffer is reduced to obtain a second play speed.
[0015] Accordingly, another aspect of the present application further provides a multimedia data transmission device, the multimedia data transmission device comprising:
[0016] A data receiving module is used to receive multimedia data packets transmitted by the sending end;
[0017] A data buffer module, configured to store the multimedia data to be played in the multimedia data packet into a multimedia data buffer for buffering;
[0018] Duration calculation module, used to calculate the playable duration of multimedia data in the buffer in real time;
[0019] The first speed adjustment module is configured to reduce the first playback speed of the multimedia data in the buffer to obtain a second playback speed when the playable duration does not exceed the target expected delay.
[0020] Accordingly, another aspect of the embodiment of the present application further provides a data acquisition module, wherein the multimedia data transmission device includes:
[0021] Used to obtain multimedia data to be transmitted;
[0022] A data transmission module is used to transmit the multimedia data packet to be transmitted to a receiving end, so that the receiving end stores the multimedia data to be played in the multimedia data packet into a multimedia data buffer for buffering processing, and calculates the corresponding playable duration of the multimedia data in the multimedia data buffer in real time. When the playable duration does not exceed the target expected delay, the first play speed of the multimedia data in the multimedia data buffer is reduced to obtain a second play speed.
[0023] Correspondingly, another aspect of the embodiment of the present application further provides a storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the multimedia data transmission method as described above.
[0024] Correspondingly, on the other hand, an embodiment of the present application further provides a terminal device, including a processor and a memory, wherein the memory stores multiple instructions, and the processor loads the instructions to execute the multimedia data transmission method as described above.
[0025] The embodiment of the present application provides a multimedia data transmission method, apparatus, medium and equipment, which receives a multimedia data packet transmitted by a sending end; stores the multimedia data to be played in the multimedia data packet into a multimedia data buffer for buffering; calculates the playable duration corresponding to the multimedia data in the buffer in real time; and when the playable duration does not exceed the target expected delay, reduces the first play speed of the multimedia data in the buffer to obtain a second play speed. Utilizing the multimedia data transmission method provided by the embodiment of the present application, by setting an acceptable expected delay and calculating the playable duration corresponding to the buffered multimedia data sent into the buffer in real time, the playable duration is compared with the expected delay, and whether to adjust the current play speed is determined based on the comparison result. Specifically, when the playable duration in the current buffer is less than the expected delay, it indicates that there is a transmission anomaly in the current network, resulting in no new buffered data entering the buffer. At this time, by reducing the play speed of the current playable multimedia data, screen freezes can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. Those skilled in the art can also derive other drawings based on these drawings without inventive effort.
[0027] FIG1 is a schematic diagram of an application scenario of the multimedia data transmission method provided in an embodiment of the present application.
[0028] FIG2 is a flow chart of a multimedia data transmission method provided in an embodiment of the present application.
[0029] FIG3 is another schematic flow chart of the multimedia data transmission device provided in an embodiment of the present application.
[0030] FIG4 is a schematic structural diagram of a multimedia data transmission device provided in an embodiment of the present application.
[0031] FIG5 is another schematic structural diagram of the multimedia data transmission device provided in an embodiment of the present application.
[0032] FIG6 is another schematic structural diagram of the multimedia data transmission device provided in an embodiment of the present application.
[0033] FIG7 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0035] The embodiment of the present application provides a multimedia data transmission method. By setting an acceptable expected delay and calculating in real time the playable duration corresponding to the buffered multimedia data in the buffer, the playable duration is compared with the expected delay. Based on the comparison result, it is determined whether to adjust the current playback speed. Specifically, when the playable duration in the current buffer is less than the expected delay, it indicates that there is a transmission anomaly in the current network, resulting in no new buffered data entering the buffer. In this case, by reducing the playback speed of the currently playable multimedia data, screen freezes can be avoided. Detailed descriptions are given below.
[0036] The term "and / or" as used in this application can be used to describe an association relationship between related objects, indicating that three possible relationships exist. For example, A and / or B can represent the following three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this application generally indicates that the related objects are in an "or" relationship.
[0037] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to the steps or modules clearly listed, but may include other steps or modules that are not clearly listed or that are inherent to these processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The named or numbered process steps can be changed in the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved. The division of modules in this application is a logical division. In actual application, there may be other division methods. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection between modules can be electrical or other similar forms, which are not limited in this application. Moreover, the modules or submodules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed into multiple circuit modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this application.
[0038] The application scenario of the embodiment of the present application is shown in Figure 1, which includes: a sending end 101 and a receiving end 102. The receiving end 102 and the sending end 101 can communicate with each other through a network connection.
[0039] Exemplarily, the sending end 101 can be a computer, a server, etc., which is not limited here. Alternatively, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, which is not limited here.
[0040] The receiving end 102 can be a television, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, an intelligent voice interaction device, a smart home appliance, and a car terminal, etc., which are not limited here.
[0041] For ease of understanding, the specific process in the embodiment of the present application is described below, please refer to Figure 2.
[0042] FIG2 is a flow chart of an embodiment of a multimedia data transmission method provided in an embodiment of the present application.
[0043] In the embodiment shown in FIG2 , the method may include the following steps:
[0044] Step 201: Receive a multimedia data packet transmitted by a sending end.
[0045] This solution can be applied to live broadcast scenarios or other real-time video transmission scenarios, and is not limited here. In this embodiment, taking the live broadcast scenario as an example, after the receiving end and the sending end establish a network transmission channel and enable the live broadcast function, the receiving end receives the multimedia data packets transmitted by the sending end.
[0046] Step 202: The multimedia data to be played in the multimedia data packet is stored in a multimedia data buffer for buffering.
[0047] In this embodiment, the receiving end reads the multimedia data to be played in the multimedia data packet, wherein the multimedia data refers to video data or audio data or audio and video data, which is not limited here.
[0048] It's important to explain that the multimedia data buffer, serving as a buffer between the decoding and display threads, primarily serves two purposes: ensuring audio / video synchronization and mitigating rendering jitter. Without the multimedia data buffer, the decoding and display threads would operate serially. This would result in both video frames and audio data being immediately fed into the rendering module after decoding, preventing the addition of audio / video synchronization logic. If the rendering module experiences jitter, data would be blocked, preventing asynchronous decoding of the frame buffer data, reducing data processing efficiency.
[0049] Among them, the multimedia data buffer in this scheme is mainly used to store multimedia data to be played. Under normal circumstances, that is, when the network is unobstructed, the multimedia data generated by the sending end will be continuously transmitted to the receiving end and stored in the multimedia data buffer to supplement the multimedia data that has been passed into the "display thread", so that the "display thread" can continuously play the multimedia data through the multimedia data playback device at the receiving end without the problem of screen freeze.
[0050] Step 203: Calculate the playable duration corresponding to the multimedia data in the buffer in real time.
[0051] In this embodiment, the playable duration is calculated based on the total number of multimedia data frames currently stored in the buffer.
[0052] Step 204 : When the playable duration does not exceed the target expected delay, reduce the first play speed of the multimedia data in the buffer to obtain a second play speed.
[0053] It's important to clarify that target latency refers to the time required for real-time video to travel from its source to its destination, often referred to as "end-to-end" latency. For example, it's the time it takes for a single frame of video to travel from a camera to its final display. This latency varies significantly across different industries, typically around 5-10 seconds for broadcast television and 30 seconds or more for streaming media. However, for live video production or more interactive live streaming (such as competitions and sports betting), latency is often less than 1 second.
[0054] Based on the concept of target expected delay, we can combine the playable duration of the multimedia data in the multimedia data buffer to determine whether the currently playable multimedia data can wait for the newly added multimedia data supplemented by the sender before the end of playback. Assuming that the currently playable multimedia data fails to wait for the newly added multimedia data supplemented by the sender before the end of playback, the playable duration in the buffer is 0 at this time, and the receiving end does not know at what specific time period it will receive the multimedia data transmitted by the sender again. In theory, the picture currently seen by the user will become stuck and will not continue to play.
[0055] For example, if the playable duration of multimedia data in the multimedia data buffer is 250ms, and the target expected delay is 250ms, ideally the playable duration equals the target expected delay. That is, whenever a frame of multimedia data in the multimedia data buffer is consumed, the transmitter will immediately replenish the buffer with a new frame of data. If the playable duration does not exceed the target expected delay, it indicates that there may be a network transmission anomaly, resulting in a lack of new multimedia data entering the multimedia data buffer. Continuing to play the multimedia data at normal speed will result in video freezes.
[0056] Among them, when the playable time in the current buffer is less than the expected delay, it means that there is a transmission abnormality in the current network, resulting in no new buffered data entering the buffer. At this time, the screen freeze can be avoided by reducing the playback speed of the current playable multimedia data.
[0057] Specifically, the playable duration and the target expected delay are input into a preset play rate adjustment algorithm to obtain an adjusted deceleration ratio value; and the first play speed is modified according to the deceleration ratio value to obtain a second play speed.
[0058] Playback rate adjustment algorithm:
[0059] Deceleration ratio value ratio = (playable time - target expected delay) / target expected delay
[0060] The actual playback speed of the current playback device, play_ratio = 1.0 + ratio. If playback has not started, play_ratio is an invalid value.
[0061] It should be noted that when the playable time in the current buffer is longer than the target expected delay, it means that the network recovery causes an instantaneous influx of multiple frames of data. In order to avoid extending the delay, it is necessary to accelerate the playback of the current multimedia data to avoid excessive data in the receiving end buffer, which will cause longer delays and affect the user experience.
[0062] Therefore, if the judgment result is that the playable time exceeds the target expected delay, the first play speed of the multimedia data in the buffer is increased. The specific adjustment process can refer to the above-mentioned play rate adjustment algorithm.
[0063] In summary, in actual applications, the network environment is complex and changeable, and it is difficult to ensure that the network can always remain in a good state in real-time video transmission application scenarios (such as live broadcast scenarios). Therefore, if multimedia data is played while maintaining a normal playback speed, the problem of screen freeze is inevitable. In order to solve this problem, this solution sets an acceptable target expected delay, and calculates the playable time corresponding to the buffered multimedia data sent to the buffer in real time, compares the playable time of the multimedia data in the current multimedia data buffer with the expected delay, and decides whether to adjust the current playback speed based on the comparison result, so as to avoid the problem of screen freeze when no new multimedia data enters the buffer.
[0064] In some embodiments, as shown in FIG3 , the target expected delay is the result of negotiation between the sender and the receiver. The specific negotiation process can be divided into two types:
[0065] One is that when the receiving end receives a multimedia data packet, it sends a preset target expected delay to the sending end, so that the sending end can negotiate based on the received preset expected delay and its own data processing capability to obtain a negotiation result; if the preset expected delay matches the receiving end's own data processing capability, the preset expected delay is used as the target expected delay;
[0066] The other is that if the preset expected delay does not match the data processing capability of the receiving end, it means that the data processing capability of the sending end is insufficient to send the multimedia data to the receiving end within the preset expected delay. Then the preset expected delay needs to be adjusted. Specifically, the value is increased based on the preset expected delay to obtain the adjusted target expected delay.
[0067] In some embodiments, although the multimedia data transmission method provided by this solution can achieve adjustable playback speed, since too fast or too slow playback speed of multimedia data will affect the viewing experience, it is necessary to limit the adjustment range of the playback speed.
[0068] By determining whether the playback speed falls within a preset allowable playback speed range, if the second playback speed does not fall within the allowable playback speed range, the second playback speed is adjusted to a third playback speed, and the third playback speed is a critical value within the allowable playback speed range that is closest to the second playback speed.
[0069] In some embodiments, the multimedia data transmission method provided by this solution can achieve adjustable playback speed. However, if the image is constantly changing speed, it will affect the user's viewing experience. Therefore, to address this issue, this solution sets a prerequisite for playback speed adjustment. The difference between the first playback speed and the previous historical playback speed is calculated; a determination is made as to whether the absolute value of the difference exceeds a preset allowable fluctuation range. If so, the first playback speed is modified according to the deceleration ratio to obtain a second playback speed. If not, playback continues at the previously set playback speed.
[0070] In some embodiments, in order to enable the sending end to adjust the parameters of the multimedia data packet to be sent in real time or periodically according to the actual situation of the receiving end, the transmission effect of the multimedia data can better meet the current data receiving conditions of the receiving end.
[0071] As shown in Figure 3, the current playable duration and playback speed are obtained and transmitted back to the transmitter. The average playable duration and average playback speed obtained within a preset period are calculated, respectively, for the transmitter to periodically analyze and determine whether to adjust the transmission parameters of the multimedia data to be transmitted. The transmission parameters include the multimedia frame rate and multimedia bit rate.
[0072] In another embodiment, in the embodiment shown in FIG2 , the method may further include the following steps:
[0073] Step 301: obtain multimedia data to be transmitted, construct a multimedia data packet to be transmitted, and transmit the multimedia data packet to be transmitted to a receiving end, so that the receiving end stores the multimedia data to be played in the multimedia data packet into a multimedia data buffer for buffering processing, and calculates the playable duration corresponding to the multimedia data in the multimedia data buffer in real time. When the playable duration does not exceed the target expected delay, reduce the first play speed of the multimedia data in the multimedia data buffer to obtain a second play speed.
[0074] In some embodiments, after transmitting the multimedia data packet to be transmitted to the receiving end, the method further includes the following steps:
[0075] receiving a preset target expected delay sent by the receiving end, and performing negotiation based on the received preset expected delay and its own data processing capability to obtain a negotiation result;
[0076] If the preset expected delay matches the data processing capability of the receiving end, the preset expected delay is used as the target expected delay, and the target expected delay is transmitted back to the receiving end;
[0077] If the preset expected delay does not match the data processing capability of the receiving end, the preset expected delay is adjusted to obtain an adjusted target expected delay, and the target expected delay is transmitted back to the receiving end.
[0078] It should be noted that the target expected delay mentioned in this solution is the result of negotiation between the sender and the receiver. The specific negotiation process can be divided into two types:
[0079] One is to receive the preset target delay sent by the receiving end, negotiate based on the received preset expected delay and its own data processing capability, and obtain the negotiation result;
[0080] If the preset expected delay matches the data processing capability of the receiving end, the preset expected delay is used as the target expected delay, and the target expected delay is transmitted back to the receiving end;
[0081] The other is that if the preset expected delay does not match the data processing capability of the receiving end, it means that the data processing capability of the sending end is insufficient to send the multimedia data to the receiving end within the preset expected delay. Then the preset expected delay is adjusted. Specifically, the value is increased based on the preset expected delay to obtain the adjusted target expected delay, and the target expected delay is transmitted back to the receiving end.
[0082] In some embodiments, the method further comprises the following steps:
[0083] Receive the average playable time and average play speed transmitted by the receiving end, determine whether the average playable time falls within a preset allowable delay range, and obtain a second judgment result. Based on the second judgment result, analyze whether the configuration parameters of the to-be-sent data are reasonable, thereby ensuring that the receiving end can receive the data normally and does not exceed the target expected delay;
[0084] If the second judgment result is that the average playable time does not fall within the allowable delay range, it indicates that there are unreasonable configuration parameters of the data to be sent, and it is necessary to further determine whether the average play speed exceeds the first preset threshold, thereby obtaining a third judgment result;
[0085] If the third judgment result is that the average playback speed does not exceed the first preset threshold (the first preset threshold is 1 in this solution), the average playback speed is further compared with the historical average playback speed sent back by the receiving end last time to determine whether it is showing a decreasing trend. If so, it means that the problem reflected by the receiving end is that the multimedia data in the multimedia buffer cannot be continuously replenished, and the screen freeze problem still exists. It can only be avoided by continuously slowing down the playback speed, which is obviously unreasonable, and the transmission parameters of the multimedia data to be transmitted need to be adjusted.
[0086] If the third judgment result is that the average playable time is less than the second preset threshold, and the second preset threshold is less than the first preset threshold, it means that even if the current network of the receiving end has recovered and can continue to receive the multimedia data sent by the sending end, due to the long interval time in between, if the multimedia data at this time continues to be played, it will cause more serious data delays, so this part of the multimedia data packet to be transmitted needs to be discarded.
[0087] In summary, in multimedia data transmission, for a given expected delay, this solution can use this parameter to estimate the playback quality of the receiving end based on the feedback from the receiving end. The receiving end adjusts the playback rate, and the sending end adjusts the encoding parameters. Together, they ensure audio and video continuity and improve the user experience.
[0088] All of the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and will not be described in detail here.
[0089] During specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.
[0090] As can be seen from the above, the multimedia data transmission method provided by the embodiment of the present application is through receiving the multimedia data packet transmitted by the sending end; storing the multimedia data to be played in the multimedia data packet into the multimedia data buffer for buffering processing; calculating the playable time corresponding to the multimedia data in the buffer in real time; when the playable time does not exceed the target expected delay, reducing the first play speed of the multimedia data in the buffer to obtain the second play speed. Utilizing the multimedia data transmission method provided by the embodiment of the present application, by setting an acceptable expected delay and calculating the playable time corresponding to the multimedia data that has been buffered and sent into the buffer in real time, the playable time is compared with the expected delay, and according to the comparison result, it is decided whether to adjust the current play speed. Specifically, when the playable time in the current buffer is less than the expected delay, it indicates that there is a transmission anomaly in the current network, resulting in no new buffered data entering the buffer. At this time, by reducing the play speed of the current playable multimedia data, the screen freeze can be avoided.
[0091] An embodiment of the present application further provides a multimedia data transmission device, which can be integrated into a terminal device.
[0092] Please refer to Figure 4, which is a schematic diagram of the structure of a multimedia data transmission device provided in an embodiment of the present application. The multimedia data transmission device 30 may include:
[0093] The data receiving module 31 is used to receive multimedia data packets transmitted by the sending end;
[0094] The data buffer module 32 is used to store the multimedia data to be played in the multimedia data packet into the multimedia data buffer for buffering;
[0095] Duration calculation module 33, used for calculating the playable duration corresponding to the multimedia data in the buffer in real time;
[0096] The first speed adjustment module 34 is configured to reduce the first playing speed of the multimedia data in the buffer to obtain a second playing speed when the playable duration does not exceed the target expected delay.
[0097] In some embodiments, the device also includes a first negotiation module, which is used to send a preset target expected delay to the sending end, so that the sending end can negotiate based on the preset expected delay and its own data processing capability to obtain a negotiation result; if the preset expected delay matches the receiving end's own data processing capability, the preset expected delay is used as the target expected delay; if the preset expected delay does not match the receiving end's own data processing capability, the preset expected delay is adjusted to obtain the adjusted target expected delay.
[0098] In some embodiments, the device further includes a second speed adjustment module configured to increase the first playback speed of the multimedia data in the buffer when the playable duration exceeds the target expected delay.
[0099] In some embodiments, the first speed adjustment module 34 is configured to input the playable time and the target expected delay into a preset play rate adjustment algorithm to obtain an adjusted deceleration ratio value;
[0100] The first playback speed is modified according to the deceleration ratio value to obtain a second playback speed.
[0101] In some embodiments, the device also includes a third speed adjustment module, which is used to determine whether the second playback speed falls within a preset allowable playback speed range; if the second playback speed does not fall within the allowable playback speed range, the second playback speed is adjusted to a third playback speed, and the third playback speed is the critical value within the allowable playback speed range that is closest to the second playback speed.
[0102] In some embodiments, the device also includes a fourth speed adjustment module, which is used to calculate the difference between the first playback speed and the last historical playback speed; determine whether the absolute value of the difference exceeds a preset allowable fluctuation range; if it exceeds the allowable fluctuation range, modify the first playback speed according to the deceleration ratio value to obtain a second playback speed.
[0103] In some embodiments, the device also includes a data feedback module for obtaining the current playable time and play speed and transmitting them back to the sending end; respectively calculating the average playable time and average play speed obtained within a preset period, so that the sending end can regularly analyze and determine whether to adjust the transmission parameters of the multimedia data to be transmitted, the transmission parameters including the multimedia frame rate and the multimedia bit rate.
[0104] During specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.
[0105] As can be seen from the above, the multimedia data transmission device 30 provided in the embodiment of the present application, wherein the data receiving module 31 is used to receive the multimedia data packet transmitted by the sending end; the data buffer module 32 is used to store the multimedia data to be played in the multimedia data packet into the multimedia data buffer for buffering processing; the duration calculation module 33 is used to calculate the playable duration corresponding to the multimedia data in the buffer in real time; the first speed adjustment module 34 is used to reduce the first playback speed of the multimedia data in the buffer to obtain a second playback speed when the playable duration does not exceed the target expected delay.
[0106] An embodiment of the present application further provides a multimedia data transmission device, which can be integrated into a terminal device.
[0107] Please refer to Figure 5, which is a schematic diagram of the structure of a multimedia data transmission device provided in an embodiment of the present application. The multimedia data transmission device 40 may include:
[0108] A data acquisition module 41 is used to acquire multimedia data to be transmitted;
[0109] The data transmission module 42 is used to transmit the multimedia data packet to be transmitted to the receiving end, so that the receiving end stores the multimedia data to be played in the multimedia data packet into a multimedia data buffer for buffering processing, and calculates the corresponding playable time of the multimedia data in the multimedia data buffer in real time. When the playable time does not exceed the target expected delay, the first play speed of the multimedia data in the multimedia data buffer is reduced to obtain a second play speed.
[0110] In some embodiments, the device also includes a second negotiation module, which is used to receive the preset target expected delay sent by the receiving end, negotiate based on the received preset expected delay and its own data processing capability, and obtain a negotiation result; if the preset expected delay matches the receiving end's own data processing capability, the preset expected delay is used as the target expected delay, and the target expected delay is returned to the receiving end; if the preset expected delay does not match the receiving end's own data processing capability, the preset expected delay is adjusted to obtain the adjusted target expected delay, and the target expected delay is returned to the receiving end.
[0111] In some embodiments, the device also includes a data adjustment module for receiving the average playable time and average play speed transmitted back by the receiving end, judging whether the average playable time falls within a preset allowable delay range, and obtaining a second judgment result; if the second judgment result is that the average playable time does not fall within the allowable delay range, further judging whether the average play speed exceeds a first preset threshold value, and obtaining a third judgment result; if the third judgment result is that the average play speed does not exceed the first preset threshold value, further comparing the average play speed with the historical average play speed transmitted back by the receiving end last time to judge whether it shows a decreasing trend, and if so, adjusting the transmission parameters of the multimedia data to be transmitted.
[0112] In some embodiments, the device also includes a data discarding module for discarding the multimedia data packet to be transmitted if the third judgment result is that the average playable time is less than the second preset threshold, and the second preset threshold is less than the first preset threshold.
[0113] During specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.
[0114] As can be seen from the above, the multimedia data transmission device 40 provided in the embodiment of the present application, wherein the data acquisition module 41 is used to acquire the multimedia data to be transmitted; the data transmission module 42 is used to transmit the multimedia data packet to be transmitted to the receiving end, so that the receiving end stores the multimedia data to be played in the multimedia data packet into the multimedia data buffer for buffering processing, and calculates the playable time corresponding to the multimedia data in the multimedia data buffer in real time. When the playable time does not exceed the target expected delay, the first playback speed of the multimedia data in the multimedia data buffer is reduced to obtain a second playback speed.
[0115] Please refer to Figure 6, which is another schematic diagram of the structure of a multimedia data transmission device provided in an embodiment of the present application. The multimedia data transmission device 30 includes a memory 120, one or more processors 180, and one or more application programs, wherein the one or more application programs are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a data receiving module 31, a data buffer module 32, a duration calculation module 33, and a first speed adjustment module 34. For example, the structure and connection relationship of the above components can be as follows:
[0116] The memory 120 can be used to store applications and data. The applications stored in the memory 120 include executable code. The applications can be composed of various functional modules. The processor 180 executes various functional applications and data processing by running the applications stored in the memory 120. In addition, the memory 120 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
[0117] Processor 180 is the control center of the device, connecting all components of the terminal using various interfaces and circuits. It executes or runs applications stored in memory 120 and accesses data stored in memory 120 to perform various device functions and process data, thereby providing overall monitoring of the device. Optionally, processor 180 may include one or more processing cores; preferably, processor 180 may integrate an application processor and a modem processor, with the application processor primarily processing the operating system, user interface, and application programs.
[0118] Specifically, in this embodiment, the processor 180 loads the executable code corresponding to one or more application processes into the memory 120 according to the following instructions, and the processor 180 runs the application stored in the memory 120 to implement various functions:
[0119] Data receiving instruction, used to receive multimedia data packets transmitted by the sending end;
[0120] A data calculation instruction, used for storing the multimedia data to be played in the multimedia data packet into a multimedia data buffer for buffering;
[0121] Duration calculation instruction, used to calculate the playable duration corresponding to the multimedia data in the buffer in real time;
[0122] The first speed adjustment instruction is used to reduce the first playback speed of the multimedia data in the buffer to obtain a second playback speed when the playable time does not exceed the target expected delay.
[0123] In some embodiments, the program also includes a first negotiation instruction, which is used to send a preset target expected delay to the sending end, so that the sending end can negotiate based on the received preset expected delay and its own data processing capability to obtain a negotiation result; if the preset expected delay matches the receiving end's own data processing capability, the preset expected delay is used as the target expected delay; if the preset expected delay does not match the receiving end's own data processing capability, the preset expected delay is adjusted to obtain the adjusted target expected delay.
[0124] In some embodiments, the program further includes a second speed adjustment instruction for increasing the first playback speed of the multimedia data in the buffer when the playable duration exceeds the target expected delay.
[0125] In some embodiments, the first speed adjustment instruction is used to input the playable time and the target expected delay into a preset play rate adjustment algorithm to obtain an adjusted deceleration ratio value;
[0126] The first playback speed is modified according to the deceleration ratio value to obtain a second playback speed.
[0127] In some embodiments, the program also includes a third speed adjustment instruction for determining whether the second playback speed falls within a preset allowable playback speed range; if the second playback speed does not fall within the allowable playback speed range, the second playback speed is adjusted to a third playback speed, and the third playback speed is the critical value within the allowable playback speed range that is closest to the second playback speed.
[0128] In some embodiments, the program also includes a fourth speed adjustment instruction for calculating the difference between the first playback speed and the last historical playback speed; determining whether the absolute value of the difference exceeds a preset allowable fluctuation range; if it exceeds the allowable fluctuation range, modifying the first playback speed according to the deceleration ratio value to obtain a second playback speed.
[0129] In some embodiments, the program also includes data return instructions for obtaining the current playable time and play speed and returning them to the sending end; respectively calculating the average playable time and average play speed obtained within a preset period, so that the sending end can regularly analyze and determine whether to adjust the transmission parameters of the multimedia data to be transmitted, and the transmission parameters include multimedia frame rate and multimedia bit rate.
[0130] The present application also provides a terminal device, which may be a server, a smart phone, a computer, a tablet computer, or the like.
[0131] Please refer to Figure 7, which shows a schematic diagram of the structure of a terminal device provided in an embodiment of the present application, which can be used to implement the multimedia data transmission method provided in the above embodiment. The terminal device 1200 can be a television, a smart phone, or a tablet computer.
[0132] As shown in FIG7 , the terminal device 1200 may include components such as an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. It will be understood by those skilled in the art that the structure of the terminal device 1200 shown in FIG7 does not limit the terminal device 1200 and may include more or fewer components than shown, or combine certain components, or arrange the components differently. Among them:
[0133] RF circuit 110 is used to receive and transmit electromagnetic waves, converting them into electrical signals, thereby enabling communication with a communications network or other devices. RF circuit 110 may include various existing circuit components for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, and memory. RF circuit 110 can communicate with various networks, such as the Internet, an intranet, or a wireless network, or with other devices via a wireless network.
[0134] The memory 120 can be used to store software programs and modules, such as the program instructions / modules corresponding to the multimedia data transmission method in the above-mentioned embodiment. The processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120. It can automatically select a vibration reminder mode for multimedia data transmission based on the current scene of the terminal device. This can not only ensure that scenes such as meetings are not interrupted, but also ensure that users can be aware of incoming calls, thereby enhancing the intelligence of the terminal device. The memory 120 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include a memory remotely located relative to the processor 180, and this remote memory can be connected to the terminal device 120 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0135] The input unit 130 can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also known as a touch display or touchpad, can collect user touch operations on or near it (for example, operations performed by a user using a finger, stylus, or any other suitable object or accessory on or near the touch-sensitive surface 131) and drive corresponding connected devices according to a pre-set program. Optionally, the touch-sensitive surface 131 may include a touch detection device and a touch controller. The touch detection device detects the user's touch position and detects signals generated by the touch operation, transmitting the signals to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 180. It can also receive and execute commands from the processor 180. In addition, the touch-sensitive surface 131 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131, the input unit 130 can also include other input devices 132. Specifically, the other input devices 132 can include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power keys, etc.), a trackball, a mouse, a joystick, and the like.
[0136] The display unit 140 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the terminal device 1200. These graphical user interfaces can be composed of graphics, text, icons, videos, or any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 can be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Furthermore, the touch-sensitive surface 131 can cover the display panel 141. When the touch-sensitive surface 131 detects a touch operation on or near it, it transmits the information to the processor 180 to determine the type of touch event. The processor 180 then provides a corresponding visual output on the display panel 141 based on the type of touch event. Although in Figure 7, the touch-sensitive surface 131 and the display panel 141 are implemented as two independent components to implement input and output functions, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to implement input and output functions.
[0137] The terminal device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and / or the backlight when the terminal device 1200 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that recognize the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the terminal device 1200, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be described here.
[0138] The audio circuit 160, speaker 161, and microphone 162 provide an audio interface between the user and the terminal device 1200. The audio circuit 160 can convert received audio data into electrical signals and transmit them to the speaker 161, which then converts them into sound signals for output. Meanwhile, the microphone 162 converts collected sound signals into electrical signals, which are then received by the audio circuit 160 and converted into audio data. The audio data is then processed by the processor 180 and transmitted via the RF circuit 110 to, for example, another terminal. Alternatively, the audio data can be output to the memory 120 for further processing. The audio circuit 160 may also include an earphone jack to allow communication between an external headset and the terminal device 1200.
[0139] The terminal device 1200 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 170 (e.g., a Wi-Fi module), providing users with wireless broadband Internet access. Although FIG7 shows the transmission module 170, it is understood that it is not a necessary component of the terminal device 1200 and can be omitted as needed without changing the essence of the invention.
[0140] Processor 180 is the control center of terminal device 1200. It connects all components of the phone using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 120 and accessing data stored in memory 120, it executes various functions of terminal device 1200 and processes data, thereby providing overall monitoring of the phone. Optionally, processor 180 may include one or more processing cores. In some embodiments, processor 180 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 180.
[0141] The terminal device 1200 also includes a power supply 190 for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 180 via a power management system, thereby enabling the power management system to manage discharge and power consumption. The power supply 190 can also include any components such as one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, and a power status indicator.
[0142] Although not shown, the terminal device 1200 may further include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically, in this embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, and the terminal device 1200 also includes a memory 120 and one or more programs, wherein one or more programs are stored in the memory 120 and are configured to be executed by one or more processors 180. The one or more programs include instructions for performing the following operations:
[0143] Data receiving instruction, used to receive multimedia data packets transmitted by the sending end;
[0144] A data calculation instruction, used for storing the multimedia data to be played in the multimedia data packet into a multimedia data buffer for buffering;
[0145] Duration calculation instruction, used to calculate the playable duration corresponding to the multimedia data in the buffer in real time;
[0146] The first speed adjustment instruction is used to reduce the first playback speed of the multimedia data in the buffer to obtain a second playback speed when the playable time does not exceed the target expected delay.
[0147] In some embodiments, the program also includes a first negotiation instruction, which is used to send a preset target expected delay to the sending end, so that the sending end can negotiate based on the received preset expected delay and its own data processing capability to obtain a negotiation result; if the preset expected delay matches the receiving end's own data processing capability, the preset expected delay is used as the target expected delay; if the preset expected delay does not match the receiving end's own data processing capability, the preset expected delay is adjusted to obtain the adjusted target expected delay.
[0148] In some embodiments, the program further includes a second speed adjustment instruction for increasing the first playback speed of the multimedia data in the buffer when the playable duration exceeds the target expected delay.
[0149] In some embodiments, the first speed adjustment instruction is used to input the playable time and the target expected delay into a preset play rate adjustment algorithm to obtain an adjusted deceleration ratio value;
[0150] The first playback speed is modified according to the deceleration ratio value to obtain a second playback speed.
[0151] In some embodiments, the program also includes a third speed adjustment instruction for determining whether the second playback speed falls within a preset allowable playback speed range; if the second playback speed does not fall within the allowable playback speed range, the second playback speed is adjusted to a third playback speed, and the third playback speed is the critical value within the allowable playback speed range that is closest to the second playback speed.
[0152] In some embodiments, the program also includes a fourth speed adjustment instruction for calculating the difference between the first playback speed and the last historical playback speed; determining whether the absolute value of the difference exceeds a preset allowable fluctuation range; if it exceeds the allowable fluctuation range, modifying the first playback speed according to the deceleration ratio value to obtain a second playback speed.
[0153] In some embodiments, the program also includes data return instructions for obtaining the current playable time and play speed and returning them to the sending end; respectively calculating the average playable time and average play speed obtained within a preset period, so that the sending end can regularly analyze and determine whether to adjust the transmission parameters of the multimedia data to be transmitted, and the transmission parameters include multimedia frame rate and multimedia bit rate.
[0154] The present application also provides a terminal device, which may be a smartphone, computer, or other device.
[0155] As can be seen from the above, the embodiment of the present application provides a terminal device 1200, and the terminal device 1200 performs the following steps:
[0156] Receiving a multimedia data packet transmitted by a sending end, and reading the multimedia data to be played in the multimedia data packet;
[0157] Storing the to-be-played multimedia data in the multimedia data packet into a multimedia data buffer for buffering, and calculating in real time the playable duration corresponding to the multimedia data in the buffer;
[0158] Determine whether the playable time exceeds the target expected delay, and obtain a determination result;
[0159] If the judgment result is that the playable duration does not exceed the target expected delay, the play speed of the multimedia data in the buffer is reduced.
[0160] In another embodiment, the terminal device 1200 further performs the following steps:
[0161] Acquiring multimedia data to be transmitted;
[0162] The multimedia data packet to be transmitted is transmitted to the receiving end, so that the receiving end stores the multimedia data to be played in the multimedia data packet into a multimedia data buffer for buffering processing, and calculates the playable duration corresponding to the multimedia data in the multimedia data buffer in real time. When the playable duration does not exceed the target expected delay, the first play speed of the multimedia data in the multimedia data buffer is reduced to obtain a second play speed.
[0163] An embodiment of the present application further provides a storage medium, wherein a computer program is stored in the storage medium. When the computer program is run on a computer, the computer executes the multimedia data transmission method described in any one of the above embodiments.
[0164] It should be noted that, with respect to the multimedia data transmission method described herein, a person skilled in the art will understand that all or part of the process of implementing the multimedia data transmission method described in the embodiments of the present application can be accomplished by controlling the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, such as a memory of a terminal device, and executed by at least one processor within the terminal device. During execution, the process may include the process of the embodiments of the multimedia data transmission method. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), or the like.
[0165] For the multimedia data transmission device of the embodiment of the present application, its various functional modules can be integrated into a single processing chip, or each module can exist physically separately, or two or more modules can be integrated into a single module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk.
[0166] The above is a detailed introduction to the multimedia data transmission method, device, medium, and equipment provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only intended to help understand the method and core concept of the present application. At the same time, for those skilled in the art, based on the concept of the present application, there may be changes in the specific implementation methods and application scope. In summary, the contents of this specification should not be understood as limiting the present application.
Claims
1. A multimedia data transmission method, wherein: include: receiving multimedia data packets transmitted by a sender; Storing the to-be-played multimedia data in the multimedia data packet into a multimedia data buffer for buffering; Calculate the playable duration of multimedia data in the buffer in real time; When the playable duration does not exceed the target expected delay, the first play speed of the multimedia data in the buffer is reduced to obtain a second play speed.
2. The method of claim 1, wherein: When the playable duration does not exceed the target expected delay, before reducing the first play speed of the multimedia data in the buffer to obtain the second play speed, the method further includes: Sending a preset target expected delay to the sending end, so that the sending end can negotiate according to the preset expected delay and its own data processing capability to obtain a negotiation result; If the preset expected delay matches the data processing capability of the receiving end, the preset expected delay is used as the target expected delay; If the preset expected delay does not match the data processing capability of the receiving end itself, the preset expected delay is adjusted to obtain an adjusted target expected delay.
3. The method of claim 1, wherein: After the real-time calculation of the playable duration corresponding to the multimedia data in the buffer, the method further includes: When the playable duration exceeds the target expected delay, the first play speed of the multimedia data in the buffer is increased.
4. The method of claim 1, wherein: The reducing the first playback speed of the multimedia data in the buffer to obtain a second playback speed includes: Inputting the playable time and the target expected delay into a preset play rate adjustment algorithm to obtain an adjusted deceleration ratio value; The first play speed is modified according to the deceleration ratio value to obtain a second play speed.
5. The method of claim 4, wherein: The playback rate adjustment algorithm is: deceleration ratio ratio = (playable time - target expected delay) / target expected delay The actual playback speed of the current playback device play_ratio=1.0+ratio. If playback has not started, play_ratio is an invalid value.
6. The method of claim 4, wherein: After modifying the first playback speed according to the deceleration ratio value to obtain a second playback speed, the method further includes: Determining whether the second playback speed falls within a preset allowable playback speed range; If the second playback speed does not fall within the allowable playback speed range, the second playback speed is adjusted to a third playback speed, where the third playback speed is a critical value within the allowable playback speed range that is closest to the second playback speed.
7. The method of claim 4, wherein: Before modifying the first playback speed according to the deceleration ratio value to obtain the second playback speed, the method further includes: Calculating the difference between the first playback speed and the previous historical playback speed; Determining whether the absolute value of the difference exceeds a preset allowable fluctuation range; Correspondingly, modifying the first playback speed according to the deceleration ratio value to obtain a second playback speed includes: If it exceeds the allowable fluctuation range, the first playback speed is modified according to the deceleration ratio value to obtain a second playback speed.
8. The method of claim 1, wherein: After reducing the first playback speed of the multimedia data in the buffer to obtain a second playback speed, the method further includes: Obtain the current playable duration and play speed and transmit them back to the sending end; The average playable duration and the average play speed obtained within the preset period are calculated respectively, so that the sending end can periodically analyze and determine whether to adjust the transmission parameters of the multimedia data to be transmitted, wherein the transmission parameters include the multimedia frame rate and the multimedia bit rate.
9. A multimedia data transmission method, wherein: include: Obtaining multimedia data packets to be transmitted; The multimedia data packet to be transmitted is transmitted to a receiving end, so that the receiving end stores the multimedia data to be played in the multimedia data packet into a multimedia data buffer for buffering processing, and calculates in real time the playable time corresponding to the multimedia data in the multimedia data buffer; when the playable time does not exceed the target expected delay, the first play speed of the multimedia data in the multimedia data buffer is reduced to obtain a second play speed.
10. The multimedia data transmission method according to claim 9, wherein: Before the real-time calculation of the playable duration corresponding to the multimedia data in the multimedia data buffer, the method further includes: Receive the preset target expected delay sent by the receiving end, and according to the received preset expected delay and Negotiate with the data processing capability of the user to obtain the negotiation result; If the preset expected delay matches the data processing capability of the receiving end, the preset expected delay is used as the target expected delay, and the target expected delay is transmitted back to the receiving end.
11. The multimedia data transmission method according to claim 9, wherein: After receiving the preset target expected delay sent by the receiving end, performing negotiation according to the received preset expected delay and its own data processing capability, and obtaining a negotiation result, the method further includes: If the preset expected delay does not match the data processing capability of the receiving end itself, the preset expected delay is adjusted to obtain an adjusted target expected delay, and the target expected delay is transmitted back to the receiving end.
12. The multimedia data transmission method according to claim 10, wherein: After reducing the first playback speed of the multimedia data in the multimedia data buffer to obtain a second playback speed, the method further includes: Receiving the average playable time and the average play speed returned by the receiving end, determining whether the average playable time falls within a preset allowable delay range, and obtaining a second determination result; If the second judgment result is that the average playable time does not fall within the allowable delay range, it is further judged whether the average play speed exceeds the first preset threshold to obtain a third judgment result.
13. The multimedia data transmission method according to claim 12, wherein: After obtaining the second judgment result, the method further includes: If the third judgment result is that the average playback speed does not exceed the first preset threshold, the average playback speed is further compared with the historical average playback speed sent back by the receiving end last time to determine whether it is showing a decreasing trend. If so, the transmission parameters of the multimedia data to be transmitted are adjusted.
14. The multimedia data transmission method according to claim 10, wherein: After obtaining the third judgment result, the method further includes: If the third judgment result is that the average playable time is less than the second preset threshold, the multimedia data packet to be transmitted is discarded, and the second preset threshold is less than the first preset threshold.
15. A multimedia data transmission device, wherein: The multimedia data transmission device comprises: A data receiving module, used for receiving multimedia data packets transmitted by a sending end; A data buffer module, used for storing the to-be-played multimedia data in the multimedia data packet into a multimedia data buffer for buffering; The duration calculation module is used to calculate the playable duration corresponding to the multimedia data in the buffer in real time; The first speed adjustment module is used to reduce the first playback speed of the multimedia data in the buffer to obtain a second playback speed when the playable time does not exceed the target expected delay.
16. The device of claim 15, wherein: When the playable time does not exceed the target expected delay, the device also includes a first negotiation module, which is used to send a preset target expected delay to the sending end, so that the sending end can negotiate according to the preset expected delay and its own data processing capability to obtain a negotiation result; if the preset expected delay matches the data processing capability of the receiving end, the preset expected delay is used as the target expected delay; if the preset expected delay does not match the data processing capability of the receiving end, the preset expected delay is adjusted to obtain the adjusted target expected delay.
17. A multimedia data transmission device, wherein: The multimedia data transmission device comprises: A data acquisition module, used to acquire multimedia data to be transmitted; A data transmission module is used to transmit the multimedia data packet to be transmitted to a receiving end, so that the receiving end stores the multimedia data to be played in the multimedia data packet into a multimedia data buffer for buffering processing, and calculates in real time the playable time corresponding to the multimedia data in the multimedia data buffer. When the playable time does not exceed the target expected delay, the first play speed of the multimedia data in the multimedia data buffer is reduced to obtain a second play speed.
18. The device of claim 17, wherein: The device also includes a second negotiation module, which is used to receive the preset target expected delay sent by the receiving end, and negotiate according to the received preset expected delay and its own data processing capability to obtain a negotiation result; if the preset expected delay matches the receiving end's own data processing capability, the preset expected delay is used as the target expected delay, and the target expected delay is transmitted back to the receiving end.
19. A computer-readable storage medium, wherein: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the multimedia data transmission method according to any one of claims 1-8 or 9-14.
20. A terminal device, wherein: It comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the multimedia data transmission method according to any one of claims 1-8 or 9-14.
Citation Information
Patent Citations
A data buffering method and a mobile terminal
CN109831689A
Multimedia live broadcast method, device and equipment
CN110933516A
Video playing method and system for real-time video call
CN113727186A
Multimedia data transmission method and device, medium and equipment
CN117412102A
Method, Apparatus, Recording Medium and Computer Program for Delivery Streaming Content using a Buffer Capacity and Playback Speed Control
KR1020170018604A
Cited By
Data buffering adjustment method and device, medium and equipment
CN119233008A
