Video data transmission method and device, storage medium and electronic equipment
By detecting playback stuttering and compressing video frames, the bandwidth allocation is adjusted according to the packet size of the compressed video data, the problem of video stuttering when the network is poor is solved, and the smoothness of video playback and user experience is improved.
Patent Information
- Application Number
- CN202510645231.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-19
- Publication Date
- 2025-08-08
AI Technical Summary
When the network is poor, the multimedia module still transmits video frames with large data packets, resulting in stuttering video playback, which cannot be effectively solved by the existing technology.
The network module detects the playback stuttering situation, compresses the video frames to be transmitted, and generates bandwidth allocations based on the packet size of the compressed video data, and adjusts the bandwidth allocated to the multimedia module to ensure reliable transmission of video data.
It effectively improves the smoothness of video playback, improves user experience, and avoids lag problems caused by insufficient bandwidth.
Smart Images

Figure CN120455784A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a video data transmission method, device, storage medium and electronic device. Background Art
[0002] Currently, the multimedia module and network module in the device are usually two independent submodules. The network module allocates bandwidth to the multimedia module according to the network conditions, and the multimedia module transmits the video frame data to the playback module for playback based on the allocated bandwidth.
[0003] When the network is poor, the network module will allocate a smaller bandwidth to the multimedia module. However, the multimedia module is unaware of the poor network and will still transmit the video frame to the playback module in a larger data packet. However, due to the small bandwidth, the video frame cannot be sent to the playback module in time, resulting in video playback freeze. Summary of the Invention
[0004] The embodiments of the present application provide a solution that can effectively improve the smoothness of video playback and enhance user experience.
[0005] The embodiments of this application provide the following technical solutions:
[0006] According to one embodiment of the present application, a video data transmission method includes: during the process of playing a video through a network, detecting whether playback freezes occur through a network module; if so, compressing the video frames to be transmitted to obtain compressed video data; generating a bandwidth allocation amount based on the data packet size of the compressed video data; and adjusting the bandwidth allocated to a multimedia module according to the bandwidth allocation amount through the network module, so that the multimedia module transmits the compressed video data based on the allocated bandwidth.
[0007] In some embodiments of the present application, compressing the video frames to be transmitted to obtain compressed video data includes: acquiring network status data; and compressing the video frames to be transmitted according to the network status data to obtain compressed video data.
[0008] In some embodiments of the present application, compressing the video frame to be transmitted according to the network status data to obtain compressed video data includes: performing status rating according to the network status data to obtain a network status level; determining a compression size according to the network status level; and compressing the video frame to be transmitted according to the compression size to obtain the compressed video data.
[0009] In some embodiments of the present application, determining the compression size based on the network status level includes one of the following methods: determining a predetermined size corresponding to the network status level as the compression size; calculating a compression level based on a user rating of a video viewing user and the network status level, and determining the compression size based on the compression level.
[0010] In some embodiments of the present application, the user rating of the video viewing user is obtained in the following manner: obtaining the user characteristics, video preferences and video type of the video viewing user played through the network; analyzing according to the user characteristics, the video preferences and the video type to obtain the user rating; and transmitting the user rating to the network module.
[0011] In some embodiments of the present application, the compression level is calculated based on the user rating and the network status level, including one of the following methods: weighted summing the user rating and the network status level according to a predetermined weighting coefficient to obtain the compression level; determining a dynamic weighting coefficient that matches the viewing status of the video viewing user, and weighted summing the user rating and the network status level according to the dynamic weighting coefficient to obtain the compression level.
[0012] In some embodiments of the present application, the analysis based on the user characteristics, the video preferences and the video type to obtain the user rating includes: determining a deviation score based on the video preferences and the video type; determining a feature score based on the user characteristics; calculating based on the deviation score and the feature score to obtain a user score; and determining the user rating based on the user score.
[0013] According to one embodiment of the present application, a video data transmission device is applied to a network module, and the device includes: a detection unit, which is used to detect whether playback freezes occur during video playback through the network; a compression unit, which is used to compress the video frames to be transmitted to obtain compressed video data if so; an allocation unit, which is used to generate a bandwidth allocation amount according to the data packet size of the compressed video data; and an adjustment unit, which is used to adjust the bandwidth allocated to the multimedia module according to the bandwidth allocation amount, so that the multimedia module transmits the compressed video data based on the allocated bandwidth.
[0014] In some embodiments of the present application, the compression unit is used to: obtain network status data; and compress the video frame to be transmitted according to the network status data to obtain compressed video data.
[0015] In some embodiments of the present application, the compression unit is used to: perform status rating based on the network status data to obtain a network status level; determine a compression size based on the network status level; and compress the video frame to be transmitted based on the compression size to obtain the compressed video data.
[0016] In some embodiments of the present application, the compression unit is used to implement one of the following methods: determining the predetermined size corresponding to the network status level as the compressed size; calculating the compression level based on the user rating of the video viewing user and the network status level, and determining the compressed size based on the compression level.
[0017] In some embodiments of the present application, the user rating of the video viewing user is obtained in the following manner: obtaining the user characteristics, video preferences and video type of the video viewing user played through the network; analyzing according to the user characteristics, the video preferences and the video type to obtain the user rating; and transmitting the user rating to the network module.
[0018] In some embodiments of the present application, the compression unit is used to implement one of the following methods: weighting and summing the user rating and the network status level according to a predetermined weighting coefficient to obtain the compression level; determining a dynamic weighting coefficient that matches the viewing status of the video viewing user, and weighting and summing the user rating and the network status level according to the dynamic weighting coefficient to obtain the compression level.
[0019] In some embodiments of the present application, the analysis based on the user characteristics, the video preferences and the video type to obtain the user rating includes: determining a deviation score based on the video preferences and the video type; determining a feature score based on the user characteristics; calculating based on the deviation score and the feature score to obtain a user score; and determining the user rating based on the user score.
[0020] According to another embodiment of the present application, a storage medium stores a computer program thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method described in the embodiment of the present application.
[0021] According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application.
[0022] According to another embodiment of the present application, a computer program product or computer program includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations described in the embodiments of the present application.
[0023] In an embodiment of the present application, during the process of playing a video over a network, a network module is used to detect whether playback freezes occur; if so, the video frames to be transmitted are compressed to obtain compressed video data; a bandwidth allocation amount is generated based on the data packet size of the compressed video data; and the network module adjusts the bandwidth allocated to the multimedia module based on the bandwidth allocation amount, so that the multimedia module transmits the compressed video data based on the allocated bandwidth.
[0024] In this manner according to the embodiments of the present application, during the process of playing a video over the network, the network module detects playback freezes in real time and when playback freezes are detected, the video frames to be transmitted are compressed, and the bandwidth allocation amount is generated in reverse based on the data packet size of the compressed video data. The network module further adjusts the bandwidth allocated to the multimedia module based on the bandwidth allocation amount, so that the multimedia module can reliably transmit the compressed video data based on the allocated bandwidth, thereby effectively improving the smoothness of video playback and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0026] Figure 1 A flowchart of a video data transmission method according to an embodiment of the present application is shown.
[0027] Figure 2 A compression process flow chart according to an embodiment of the present application is shown.
[0028] Figure 3 A compression process flow chart according to another embodiment of the present application is shown.
[0029] Figure 4 A block diagram of a video data transmission device according to an embodiment of the present application is shown.
[0030] Figure 5 A block diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0031] The present disclosure will be further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the examples provided herein are merely for explaining the present disclosure and are not intended to limit the present disclosure. In addition, the examples provided below are partial examples for implementing the present disclosure, rather than providing all examples for implementing the present disclosure. In the absence of conflict, the technical solutions described in the examples of the present disclosure may be implemented in any combination.
[0032] It should be noted that, in the embodiments of the present disclosure, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus comprising a series of elements includes not only the elements explicitly stated, but also other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other related elements (such as steps in the method or units in the apparatus, for example, a unit may be part of a circuit, part of a processor, part of a program or software, etc.) in the method or apparatus comprising the element.
[0033] For example, the video data transmission method provided by the embodiment of the present disclosure includes a series of steps, but the video data transmission method provided by the embodiment of the present disclosure is not limited to the recorded steps. Similarly, the video data transmission device provided by the embodiment of the present disclosure includes a series of units, but the device provided by the embodiment of the present disclosure is not limited to including the units explicitly recorded, and can also include units that need to be set up to obtain relevant information or perform processing based on information.
[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which the present disclosure pertains. The terms used herein are for the purpose of describing specific embodiments only and are not intended to limit the present disclosure.
[0035] It is understandable that in the specific implementation of this application, relevant data is involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0036] Figure 1 The flowchart of the video data transmission method according to one embodiment of the present application is schematically shown. The execution subject of the video data transmission method can be any device with video playback capability, such as a TV, computer, mobile phone, smart watch, and home appliance.
[0037] like Figure 1As shown, the video data transmission method may include steps S110 to S140.
[0038] Step S110, during the video playback via the network, detecting whether playback freeze occurs through the network module;
[0039] Step S120: If yes, compress the video frame to be transmitted to obtain compressed video data;
[0040] Step S130, generating a bandwidth allocation amount according to the data packet size of the compressed video data;
[0041] Step S140: adjusting the bandwidth allocated to the multimedia module according to the bandwidth allocation amount through the network module, so that the multimedia module transmits the compressed video data based on the allocated bandwidth.
[0042] When playing a video over the network, the device receives video data from the network through the network module and transmits the video frames in the video data to the multimedia module, which then transmits the frames to the playback module for playback. In the embodiment of the present application, the network module provides a video playback detection function. During the process of playing a video over the network, the network module detects whether there is any playback freeze in the playback module.
[0043] After detecting playback freezes, the network module compresses the "untransmitted video frames" in the video data received by the network module that have not yet been transmitted to the multimedia module to generate compressed video data. Each compressed untransmitted video frame may include one or more video frames. Based on the packet size of the compressed video data, the bandwidth allocation corresponding to the packet size is further determined.
[0044] Furthermore, the network module adjusts the bandwidth allocated to the multimedia module according to the bandwidth allocation amount, so that the multimedia module transmits the compressed video data to the playback module based on the allocated bandwidth, thereby reliably avoiding the multimedia module from being unable to send video frame data to the playback module in a timely manner due to the small bandwidth, and reliably avoiding video playback freezes.
[0045] In this manner according to the embodiments of the present application, during the process of playing a video over the network, the network module detects playback freezes in real time and when playback freezes are detected, the video frames to be transmitted are compressed, and the bandwidth allocation amount is generated in reverse based on the data packet size of the compressed video data. The network module further adjusts the bandwidth allocated to the multimedia module based on the bandwidth allocation amount, so that the multimedia module can reliably transmit the compressed video data based on the allocated bandwidth, thereby effectively improving the smoothness of video playback and enhancing the user experience.
[0046] Described below Figure 1 When video data is transmitted under the embodiment, further optional specific embodiments are provided for each step performed.
[0047] In one embodiment, see Figure 2 The method of compressing the video frame to be transmitted to obtain compressed video data includes: step S210, obtaining network status data; step S220, compressing the video frame to be transmitted according to the network status data to obtain compressed video data.
[0048] The network status data may include but is not limited to available bandwidth, throughput, signal strength, etc. The network module compresses the video frames to be transmitted according to the network status data, which can further ensure the transmission effect of the compressed video data.
[0049] It can be understood that in other optional embodiments, compressing the video frames to be transmitted to obtain compressed video data includes: compressing the video frames to be transmitted according to a predetermined compression method to obtain compressed video data.
[0050] In one embodiment, see Figure 3 , compressing the video frame to be transmitted according to the network status data to obtain compressed video data, including: step S310, performing status rating according to the network status data to obtain a network status level; step S320, determining a compression size according to the network status level; step S330, compressing the video frame to be transmitted according to the compression size to obtain the compressed video data.
[0051] According to the network status data, a status rating can be performed to obtain the current network status level. The higher the network status level, the better the network condition. The compression size is determined according to the network status level, and the video frame to be transmitted is compressed according to the compression size, that is, the compressed video data can be reliably obtained according to different network conditions.
[0052] In one embodiment, determining the compression size according to the network status level includes one of the following methods:
[0053] First, determining a predetermined size corresponding to the network status level as the compressed size;
[0054] The second method is to calculate a compression level according to a user rating of a video viewing user and the network status level, and determine the compression size according to the compression level.
[0055] In the first manner, corresponding predetermined sizes are set for different network status levels. The network module can determine the corresponding predetermined size according to the current network status level, and determine the predetermined size corresponding to the network status level as the compressed size.
[0056] In the second method, user ratings of video viewing users are further introduced. The network module calculates the compression level based on the user ratings of video viewing users and the network status level, and determines the compression size based on the compression level. Compression processing based on the compression size can further take user conditions into consideration and further ensure the user experience when transmitting based on compressed video data.
[0057] In one embodiment, the user rating of the video viewing user can be obtained in the following manner: obtaining the user characteristics, video preferences and video types of the video viewing user played through the network; analyzing according to the user characteristics, the video preferences and the video types to obtain the user rating; and transmitting the user rating to the network module.
[0058] In this embodiment, the device can pre-collect and record user characteristics and video preferences of video viewers. User characteristics may include, but are not limited to, age and vision data, and video preferences refer to the types of videos preferred by the user. The device can also obtain the type of the video currently being played over the network in real time.
[0059] The device analyzes the user characteristics, the video preferences and the video type to obtain the user rating, and transmits the user rating to the network module. The network module can then calculate the compression level based on the user rating and the network status level.
[0060] In one embodiment, the analysis based on the user characteristics, the video preferences and the video type to obtain the user rating may include: determining a deviation score based on the video preferences and the video type; determining a feature score based on the user characteristics; calculating based on the deviation score and the feature score to obtain a user score; and determining the user rating based on the user score.
[0061] Video preference refers to the video type preferred by the user. Based on the video preference and the video type, a deviation score between the video preference and the video type can be determined from a predetermined deviation table. The higher the deviation score, the greater the difference between the video preference and the video type.
[0062] User features may include but are not limited to sub-features such as age and vision data. The sub-feature scores of sub-features such as age and vision data may be queried from a preset feature score table, and the sub-feature scores of all sub-features may be summed to obtain the feature score of the user feature.
[0063] The user score is calculated based on the deviation score and the feature score according to a predetermined formula. For example, the deviation score and the feature score are summed to obtain the user score. Then, the user rating corresponding to the user score can be determined from the preset rating table.
[0064] In one embodiment, the compression level is calculated based on the user rating and the network status level, including one of the following methods:
[0065] The first method is to perform weighted summation of the user rating and the network status level according to a predetermined weighting coefficient to obtain the compression level;
[0066] The second method is to determine a dynamic weighting coefficient that matches the viewing status of the video viewing user, and perform weighted summation on the user rating and the network status level according to the dynamic weighting coefficient to obtain the compression level.
[0067] In the first manner, a fixed predetermined weighting coefficient is predetermined in advance, and then the user rating and the network status level are weighted and summed according to the predetermined weighting coefficient to obtain the compression level.
[0068] In the second approach, the device can first determine the viewing state of the video viewer, which can be an emotional state obtained through facial emotion recognition. It then determines a dynamic weighting coefficient that matches the video viewer's viewing state from a coefficient table. The coefficient table specifies dynamic weighting coefficients corresponding to different viewing states. The user rating and network status level are then weighted and summed according to the dynamic weighting coefficients to obtain the compression level. Based on this compression level, the compression size is determined for compression, further enhancing the user's viewing experience.
[0069] To facilitate better implementation of the video data transmission method provided in the embodiments of the present application, the embodiments of the present application also provide a video data transmission device based on the above-mentioned video data transmission method. The meanings of the terms herein are the same as those in the above-mentioned video data transmission method, and the specific implementation details can be referred to the description in the method embodiment. Figure 4 A block diagram of a video data transmission device according to an embodiment of the present application is shown.
[0070] like Figure 4The video data transmission device 400 shown can be applied to a network module, and the video data transmission device 400 may include: a detection unit 410 can be used to: detect whether playback freezes occur during video playback through the network; a compression unit 420 can be used to: if so, compress the video frame to be transmitted to obtain compressed video data; an allocation unit 430 can be used to: generate a bandwidth allocation amount according to the data packet size of the compressed video data; an adjustment unit 440 can be used to: adjust the bandwidth allocated to the multimedia module according to the bandwidth allocation amount, so that the multimedia module transmits the compressed video data based on the allocated bandwidth.
[0071] In some embodiments of the present application, the compression unit is used to: obtain network status data; and compress the video frame to be transmitted according to the network status data to obtain compressed video data.
[0072] In some embodiments of the present application, the compression unit is used to: perform status rating based on the network status data to obtain a network status level; determine a compression size based on the network status level; and compress the video frame to be transmitted based on the compression size to obtain the compressed video data.
[0073] In some embodiments of the present application, the compression unit is used to implement one of the following methods: determining the predetermined size corresponding to the network status level as the compressed size; calculating the compression level based on the user rating of the video viewing user and the network status level, and determining the compressed size based on the compression level.
[0074] In some embodiments of the present application, the user rating of the video viewing user is obtained in the following manner: obtaining the user characteristics, video preferences and video type of the video viewing user played through the network; analyzing according to the user characteristics, the video preferences and the video type to obtain the user rating; and transmitting the user rating to the network module.
[0075] In some embodiments of the present application, the compression unit is used to implement one of the following methods: weighting and summing the user rating and the network status level according to a predetermined weighting coefficient to obtain the compression level; determining a dynamic weighting coefficient that matches the viewing status of the video viewing user, and weighting and summing the user rating and the network status level according to the dynamic weighting coefficient to obtain the compression level.
[0076] In some embodiments of the present application, the analysis based on the user characteristics, the video preferences and the video type to obtain the user rating includes: determining a deviation score based on the video preferences and the video type; determining a feature score based on the user characteristics; calculating based on the deviation score and the feature score to obtain a user score; and determining the user rating based on the user score.
[0077] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiment of the application, the features and functions of two or more modules or units described above can be concretized in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.
[0078] In addition, the present invention also provides an electronic device, such as Figure 5 As shown, Figure 5 A block diagram of an electronic device according to an embodiment of the present application is shown, specifically:
[0079] The electronic device may include one or more processors 501, one or more computer-readable storage media memories 502, a power supply 503, an input unit 504, and other components. It will be understood by those skilled in the art that Figure 5 The electronic device structure shown in the figure does not constitute a limitation to the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0080] in:
[0081] Processor 501 is the control center of the electronic device. It utilizes various interfaces and circuits to connect the various components of the entire computer device. By running or executing software programs and / or modules stored in memory 502 and accessing data stored in memory 502, it performs various computer device functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, processor 501 may include one or more processing cores; preferably, processor 501 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interfaces, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 501.
[0082] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0083] The electronic device also includes a power supply 503 for supplying power to various components. Preferably, the power supply 503 can be logically connected to the processor 501 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 503 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0084] The electronic device may further include an input unit 504, which may 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.
[0085] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically, in this embodiment, the processor 501 in the electronic device may load executable files corresponding to one or more computer program processes into the memory 502 according to instructions, and the processor 501 may execute the computer programs stored in the memory 502, thereby implementing the various functions described in the aforementioned embodiments of the present application.
[0086] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0087] To this end, an embodiment of the present application further provides a storage medium storing a computer program, which can be loaded by a processor to execute the steps of any method provided in the embodiment of the present application.
[0088] The storage medium may be a computer-readable storage medium, and the storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0089] Since the computer program stored in the storage medium can execute the steps of any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0090] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of this application and include common knowledge or customary techniques in the art that are not disclosed herein.
[0091] It should be understood that the present application is not limited to the embodiments that have been described above and shown in the accompanying drawings, but various modifications and changes may be made without departing from the scope thereof.
Claims
1. A video data transmission method, characterized in that: include: During video playback over the network, the network module detects whether playback freezes. If yes, the video frame to be transmitted is compressed to obtain compressed video data; generating a bandwidth allocation amount according to a data packet size of the compressed video data; The bandwidth allocated to the multimedia module is adjusted by the network module according to the bandwidth allocation amount, so that the multimedia module transmits the compressed video data based on the allocated bandwidth.
2. The method according to claim 1, characterized in that The step of compressing the video frame to be transmitted to obtain compressed video data includes: Get network status data; The video frame to be transmitted is compressed according to the network status data to obtain compressed video data.
3. The method according to claim 2, characterized in that The compressing the video frame to be transmitted according to the network status data to obtain compressed video data includes: Performing a status rating based on the network status data to obtain a network status grade; Determining a compression size according to the network status level; The video frame to be transmitted is compressed according to the compression size to obtain the compressed video data.
4. The method according to claim 3, characterized in that The determining of the compression size according to the network status level includes one of the following methods: Determining a predetermined size corresponding to the network status level as the compressed size; The compression level is calculated based on the user rating of the video viewing user and the network status level, and the compression size is determined based on the compression level.
5. The method according to claim 4, characterized in that The user rating of the video viewing user is obtained in the following manner: Obtaining user characteristics, video preferences, and video types of the video viewed by the user; Analyze the user characteristics, the video preferences, and the video types to obtain the user rating; The user rating is transmitted to the network module.
6. The method according to claim 4, characterized in that The compression level is calculated according to the user rating and the network status level, including one of the following methods: Performing a weighted summation on the user rating and the network status level according to a predetermined weighting coefficient to obtain the compression level; A dynamic weighting coefficient matching the viewing status of the video viewing user is determined, and the user rating and the network status level are weighted and summed according to the dynamic weighting coefficient to obtain the compression level.
7. The method according to claim 5, characterized in that The analyzing according to the user characteristics, the video preferences, and the video types to obtain the user rating includes: determining a bias score based on the video preference and the video type; determining a feature score based on the user feature; Calculate the user score based on the deviation score and the feature score; The user rating is determined based on the user score.
8. A video data transmission device, characterized in that: Applied to a network module, the device includes: The detection unit is used to detect whether playback freeze occurs during video playback over the network; A compression unit, configured to: if yes, compress the video frame to be transmitted to obtain compressed video data; An allocation unit, configured to generate a bandwidth allocation amount according to a data packet size of the compressed video data; The adjusting unit is configured to adjust the bandwidth allocated to the multimedia module according to the bandwidth allocation amount, so that the multimedia module transmits the compressed video data based on the allocated bandwidth.
9. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: include: a memory storing a computer program; A processor reads a computer program stored in a memory to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Streaming media playing method and device
CN104125482A
Image transmission process image compression ratio adjusting method and mobile terminal
CN108206960A
Satellite network TCP congestion control method based on bandwidth estimation and congestion prediction
CN114422443A
Data transmission method and device based on network broadcast, and electronic equipment
CN119052518A
Video transmission method and device, storage medium and electronic equipment
CN119383376A