Multimedia playback method and system based on matching video resolution based on user terminal status
By collecting device status information at the user terminal, calculating and correcting the priority value of the video resolution, and selecting the appropriate resolution type for playback, the problem of unsatisfied user needs in the existing technology is solved, and the video viewing experience and resource utilization are improved. efficiency.
Patent Information
- Application Number
- CN202211585843.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-09
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-12-09
AI Technical Summary
The existing technology fails to effectively combine user preferences, network speed, user terminal storage resources and screen resolution, resulting in users' different needs for video resolution types not being fully met, affecting the video viewing experience.
By collecting device status information at the user terminal, the priority value of the video resolution is calculated and corrected, and the appropriate resolution type is selected for playback based on the corrected priority value to ensure that the screen resolution, video resolution, network transmission speed and computing resources are taken into consideration to avoid Video freezes or mosaics.
It improves the user viewing experience, makes full use of high-resolution video resources, avoids video freezes and unreasonable consumption of computing costs, and optimizes the resource usage of user terminals.
Smart Images

Figure CN115883881B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a multimedia playback method and system for matching video resolution based on user terminal status, and in particular to a reasonable use of videos with different resolution types provided by a server. Background Art
[0002] In order to meet the different video resolution requirements of users, the videos provided by the server side are not limited to one resolution type, but usually have several resolution types to choose from, such as 360P, 720P, and 2K. The current video playback method of mobile device clients (referred to as user terminals) mainly targets videos of resolution types such as 360P, 720P, and 2K. Users can choose videos of corresponding resolutions to play, and user terminals can also choose videos of resolutions that match the network speed to play according to the network speed of the user terminal.
[0003] With the emergence of 4K and 8K ultra-high-definition videos in videos provided by the server, and the updates to the network transmission, storage, and computing capabilities of user terminals, the number of resolution types available to users has increased. User requirements for playing videos of various resolutions are not the same. Playback is performed only based on network speed and the resolution type selected by the user, ignoring the impact of other states of the user terminal on the video viewing experience.
[0004] Specifically, no matter whether the video resolution is large or small, it has its own advantages and disadvantages: videos with lower resolutions have unclear picture quality, but do not require high network transmission speed, storage capacity and computing power of user terminals, and can be played smoothly on user terminals with low network speeds or poor performance; while ultra-high-definition resolution 4K and 8K videos have clear picture quality and rich colors, but have high requirements on network transmission speed, storage capacity and computing power of user terminals. In a network speed environment or on a user terminal with insufficient running memory, there will be a phenomenon of lag when playing.
[0005] Therefore, there are differences in users' preferences for videos, the network environment of user terminals, and the performance of user terminals, which leads to differences in users' demands for video resolution types. For example, users who like to watch selfie short videos, users who use low-performance mobile phones, and users who use data to play videos tend to choose to watch low-resolution videos to ensure that short videos can consume less data and play smoothly and continuously; users who like to watch documentaries or action movies, and users who use large-screen mobile terminals such as tablets tend to choose to watch high-resolution videos to obtain a more shocking and refreshing viewing experience. For different user needs, simply selecting each resolution type based on network speed or letting users choose it by themselves is not intelligent and diverse enough.
[0006] In addition, the screen size of mobile user terminals is much smaller than that of TVs and computer monitors. The visual effects of watching high-definition (1080P) and ultra-high-definition (4K) videos are very similar. The visual effects obtained by users are obviously disproportionate to the computing and memory costs paid by the user terminals.
[0007] In the prior art, there is no playback method that reasonably combines user preferences, network speed, user terminal storage resources, and screen resolution. It is difficult to fully utilize the advantages of user terminal resources or video resources of multiple resolution types, which is not conducive to improving user viewing experience. Summary of the invention
[0008] In view of the above problems, the inventors have made the present invention, which provides a multimedia playback method and system for matching video resolution based on user terminal status. The purpose is to reasonably use the resolution type of the video provided by the server based on the status of the user terminal to improve the user's viewing experience.
[0009] The first technical solution of the present invention is a multimedia playback method for matching video resolution based on user terminal status, wherein the user terminal obtains a video from a server for playback, and the server provides videos with different resolution types. When the user terminal plays the video, the user terminal determines the resolution type of the played video, and is characterized in that it includes the following steps:
[0010] The user terminal status collection step is to obtain information related to the device status when playing the video, including the screen resolution, network transmission speed, memory resource occupancy rate and computing resource occupancy rate of the user terminal.
[0011] In the step of obtaining video resolution information, the user terminal or the server obtains various resolution type information of the played video provided by the server.
[0012] In the primary priority value determination step, the user terminal or the server side calculates the primary priority values Pv of various resolution types for playing videos according to the device status information of the user terminal.
[0013] In the primary priority value correction step, the user terminal or the server side corrects the primary priority values of various resolution types respectively to obtain the corrected priority values PXv of various resolution types.
[0014] In the step of selecting a video resolution type, the user terminal or the server side selects a video of a video resolution type having the largest correction priority value PXv from the server side for playback according to the correction priority values PXv of various resolution types in descending order.
[0015] When playing a video, for various resolution types of the video provided by the server, the primary priority values Pv of various resolution types are calculated according to the device status information of the user terminal (screen resolution, network transmission speed, memory resource occupancy rate, computing resource occupancy rate) (primary priority value determination step); and the primary priority values Pv of various resolution types are respectively corrected to obtain corrected priority values PXv of various resolution types (primary priority value correction step).
[0016] Therefore, first, the corrected priority value PXv (primary priority value Pv) includes information about screen resolution, video resolution, network transmission speed, memory resource occupancy, and computing resource occupancy. The video resolution type corresponding to the largest corrected priority value PXv can take into account the screen resolution, video resolution, network transmission speed, memory resource occupancy, and computing resources that have the greatest impact on the user's viewing experience, and can maximize the use of the server to provide high-resolution video without causing video freezes or mosaics, and will not affect the work of other application software in the user terminal.
[0017] Second, since the modified priority value PXv is obtained by modifying the primary priority value Pv, for example, the user's video playback strategy can be reflected in the selection of the video resolution type through the modification, so that the video playback is more in line with the user's subjective feelings.
[0018] Preferably, the primary priority value determining step comprises the following steps:
[0019] The steps of establishing the coordinate system are to establish a plane direct coordinate system with the width of the resolution as the horizontal axis and the height of the resolution as the vertical axis.
[0020] The diagonal endpoint determination step uses the screen resolution of the user terminal and the width and height of the resolutions of various resolution types of the video played on the server as coordinates to determine the diagonal endpoints of the corresponding resolutions.
[0021] Determine the rectangle corresponding to each diagonal line, set the origin of the coordinate system as the common endpoint, and determine the rectangle corresponding to the screen resolution of the user terminal and each resolution type of the server-side video according to the diagonal endpoints corresponding to the screen resolution of the user terminal and the various resolution types of the server-side video, and each side of the rectangle is perpendicular or parallel to the coordinate axis.
[0022] The matching coefficient calculation step is to calculate the matching coefficient between various resolution types of the played video and the user terminal through the following expression.
[0023]
[0024] Among them, WH vis the matching coefficient between the vth resolution type of the server-side video and the mobile device, v is the resolution type number of the server-side video, M is the screen resolution of the mobile device, k is the expansion coefficient of the mobile device, k is greater than 1, M·k represents the rectangle formed in the coordinate system after the mobile device is expanded k times, A MK is the area of the rectangle corresponding to M·k, C v It is the rectangle corresponding to the vth resolution type of the server-side video in the coordinate system.
[0025] It is C v The area of the corresponding rectangle, R MK is the matching factor, R MK Less than 1 and greater than 0.
[0026] The primary priority value calculation step calculates the primary priority values of various resolution types of the played video through the following expressions.
[0027]
[0028] Among them, P v is the primary priority value of the vth resolution type of the server-side video, S is the network transmission speed of the mobile device, and R N is the memory resource occupancy rate bonus factor of the mobile device, N is the memory resource occupancy rate of the mobile device, R E is the computing resource occupancy rate addition factor of the mobile device, E is the computing resource occupancy rate of the mobile device, and D v It is the product of the width and height of the vth resolution of the server-side video.
[0029] By taking screen resolution, network transmission speed, computing resources, memory resources and video resolution as parameters and performing reasonable correlation calculations on each parameter, we can achieve a multiple combination of screen resolution, network transmission speed, computing resources, memory resources and video resolution, and thus more reasonably take into account the impact of other states of the user terminal on the video viewing experience.
[0030] Preferably, in the primary preferred value correction step, the corrected priority values PXv of various resolution types under different playback strategies are calculated by the following expressions, and the playback strategies include: video clarity priority, device resource saving priority, video fluency priority, and resolution matching priority.
[0031]
[0032] In the video resolution type selection step, according to the playback strategy selected by the user, in descending order of the correction priority values PXv of various resolution types, a video of the video resolution type with the largest correction priority value PXv is selected from the server side for playback.
[0033] Since the matching coefficient WH v =0, the correction priority value PXv=0, so when the video resolution type selection step S500 is performed to sort by size, the corresponding correction priority value PXv will be ranked last, that is, the corresponding video resolution type can be eliminated. If the user does not manually modify the resolution type, the video will not be played, so the computing cost of the user terminal and the user's visual experience can be taken into account, and the playback effect is more reasonable.
[0034] Therefore, through the above expression, the video of the corresponding resolution is played according to the playback strategy selected by the user, which fully considers the user's demand for video resolution and improves the user experience.
[0035] Preferably, in the step of determining the rectangles corresponding to the diagonal lines, the expansion coefficient k is set according to the screen resolution of the user terminal. The higher the screen resolution of the user terminal, the larger the expansion coefficient k.
[0036] The resolution value corresponding to the width and height of the rectangle M·k represents the limit of the resolution display clarity effect that the user's naked eye can experience, that is, the visual effect difference of the video resolution corresponding to the width and height of the rectangle M·k is extremely small and the user's naked eye cannot distinguish it.
[0037] By setting the parameter k, some video resolution types that occupy too much memory capacity of the user terminal can be screened out, so that the computing cost of the user terminal and the user's visual experience can be better taken into account, and the playback effect is more reasonable.
[0038] Preferably, in the video resolution type selection step, the user terminal status is updated at the end of each video playback.
[0039] Therefore, the user terminal can play videos of appropriate resolution types according to the updated network environment, device memory and computing resource status, avoiding the trouble of video freezes caused by changes in the network environment and device status, having to wake up the UI interface to switch the video resolution type, and manually modifying the video resolution.
[0040] The second technical solution of the present invention is based on the same concept and provides a multimedia playback system that matches the video resolution based on the user terminal status, including a user terminal and a server. The server provides videos with different resolution types, and the user terminal obtains the video from the server for playback. When playing the video, the resolution type of the played video is determined.
[0041] The user terminal includes the following modules:
[0042] The user terminal status acquisition module obtains information related to the device status when playing the video, including the screen resolution, network transmission speed, memory resource occupancy rate and computing resource occupancy rate of the user terminal.
[0043] The video resolution information acquisition module obtains various resolution type information of the played video from the server.
[0044] The primary priority value determination module calculates the primary priority values Pv of various resolution types for playing videos according to the device status information of the user terminal.
[0045] The primary priority value correction module corrects the primary priority values of various resolution types respectively to obtain the corrected priority values PXv of various resolution types.
[0046] The video resolution type selection module selects a video of a video resolution type with the largest correction priority value PXv from the server side for playback according to the correction priority values PXv of various resolution types from large to small.
[0047] Therefore, similar to the first technical solution, when playing a video, the server can provide high-resolution video to the maximum extent, without causing video freeze or mosaic, and without affecting the operation of other application software in the user terminal. Preferably, the primary priority value determination module includes the following submodules:
[0048] A coordinate system establishment module is used to establish a plane rectangular coordinate system with the width of the resolution as the horizontal axis and the height of the resolution as the vertical axis;
[0049] A diagonal endpoint determination module, using the screen resolution of the user terminal and the width and height of the resolutions of various resolution types of the video played on the server as coordinates, to determine the diagonal endpoints of the corresponding resolutions;
[0050] Determine the rectangular modules corresponding to each diagonal line, set the origin of the coordinate system as the common endpoint, and determine the rectangles corresponding to the screen resolution of the user terminal and each resolution type of the server-side video according to the diagonal endpoints corresponding to the screen resolution of the user terminal and the various resolution types of the server-side video, with each side of the rectangle being perpendicular or parallel to the coordinate axis;
[0051] The matching coefficient calculation module calculates the matching coefficients between various resolution types of the played video and the user terminal through the following expression:
[0052]
[0053] Among them, WH vis the matching coefficient between the vth resolution type of the server-side video and the mobile device, v is the resolution type number of the server-side video, M is the screen resolution of the mobile device, k is the expansion coefficient of the mobile device, k is greater than 1, M·k represents the rectangle formed in the coordinate system after the mobile device is expanded k times, A MK is the area of the rectangle corresponding to M·k, C v It is the rectangle corresponding to the vth resolution type of the server-side video in the coordinate system.
[0054] It is C v The area of the corresponding rectangle, R MK is the matching factor, R MK Less than 1 and greater than 0.
[0055] The primary priority value calculation module calculates the primary priority values of various resolution types of the played video through the following expressions:
[0056]
[0057] Among them, P v is the primary priority value of the vth resolution type of the server-side video, S is the network transmission speed of the mobile device, and R N is the memory resource occupancy rate bonus factor of the mobile device, N is the memory resource occupancy rate of the mobile device, R E is the computing resource occupancy rate addition factor of the mobile device, E is the computing resource occupancy rate of the mobile device, and D v It is the product of the width and height of the vth resolution of the server-side video.
[0058] By taking screen resolution, network transmission speed, computing resources, memory resources and video resolution as parameters and performing reasonable correlation calculations on each parameter, we can achieve a multiple combination of screen resolution, network transmission speed, computing resources, memory resources and video resolution, and thus more reasonably take into account the impact of other states of the user terminal on the video viewing experience.
[0059] Preferably, the primary priority value correction module calculates the correction priority values PXv of various resolution types under different playback strategies through the following expressions. The playback strategies include: video clarity priority, device resource saving priority, video fluency priority, and resolution matching priority.
[0060]
[0061] The video resolution type selection module selects a video of the video resolution type with the largest correction priority value PXv from the server side for playback according to the playback strategy selected by the user and in descending order of the correction priority values PXv of various resolution types.
[0062] Through the above expressions, the video of the corresponding resolution is played according to the playback strategy selected by the user, which fully considers the user's demand for video resolution and improves the user experience.
[0063] Preferably, in the rectangular modules corresponding to the diagonal lines, the expansion coefficient k is set according to the screen resolution of the user terminal. The higher the screen resolution of the user terminal, the greater the expansion coefficient k.
[0064] The resolution value corresponding to the width and height of the rectangle M·k is the limit of the resolution display clarity effect that can be experienced by the user's naked eye. That is, the visual effect difference of the video resolution corresponding to the width and height of the rectangle M·k is extremely small and cannot be distinguished by the user's naked eye.
[0065] By setting the parameter k, some video resolution types that occupy too much memory capacity of the user terminal can be screened out, which can better balance the computing cost of the user terminal and the user's visual experience, and the playback effect is more reasonable.
[0066] Preferably, the video resolution type selection module updates the user terminal status at the end of each video playback.
[0067] Therefore, the user terminal can play videos of appropriate resolution types according to the updated network environment, device memory and computing resource status, avoiding the trouble of video freezes caused by changes in the network environment and device status, having to wake up the UI interface to switch the video resolution type, and manually modifying the video resolution.
[0068] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 It is an overall structural illustration of a multimedia playback system that matches video resolution based on user terminal status;
[0070] Figure 2 It is a functional module illustration diagram of a user terminal;
[0071] Figure 3 is a submodule illustration diagram of a primary priority value determination module;
[0072] Figure 4 It is a diagram illustrating the workflow of a user terminal;
[0073] Figure 5 is a flowchart illustrating the steps of determining the primary priority value;
[0074] Figure 6 is a flowchart illustrating the steps of modifying the primary priority value;
[0075] Figure 7 is an illustration of rectangle M·k;
[0076] Figure 8 is an illustration of rectangle C1;
[0077] Fig. 9 is an illustration of rectangle C2;
[0078] Fig.10 is an illustration of rectangle C3;
[0079] Fig.11 It is an illustration of the intersection operation of rectangle M·k and rectangle C1;
[0080] Fig.12 It is an explanatory diagram of the intersection operation of rectangle M·k and rectangle C2. DETAILED DESCRIPTION
[0081] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. Reference numerals refer to components and technologies in the present invention so that the advantages and features of the present invention can be more easily understood in a suitable environment. The following description is a specific embodiment of the claims of the present invention.
[0082] The multimedia playback method and system for matching video resolution based on user terminal status of the present invention are described below through specific embodiments.
[0083] Figure 1 The diagram is a diagram illustrating the overall structure of a multimedia playback system that matches video resolution based on user terminal status.
[0084] like Figure 1 As shown, the multimedia playback system for matching video resolution based on user terminal status is composed of multiple user terminals 1a...1n and a server 2, and each user terminal 1a...1n is connected to the server 2 via the Internet 3. Users can obtain the playback video (hereinafter referred to as video) provided by the server 2 through their respective user terminals.
[0085] Each video stored in the server side 2 has different resolution types, that is, the video is processed into a variety of resolution forms in advance, and videos with different resolutions are obtained for the user terminal to select and play.
[0086] For example, assuming that the video provided by the server 2 has three resolution types: 2560 pixels * 1440 pixels (1440P), 1920 pixels * 1080 pixels (1080P), and 1024 pixels * 720P (720P), during playback, the user terminal plays the video with any one of the resolutions.
[0087] The functional modules of the user terminal are described below.
[0088] Figure 2 2 is a diagram illustrating the functional modules of a user terminal. The following description will be given by taking the user terminal 1a as an example.
[0089] like Figure 2 As shown, the user terminal 1a includes: a user terminal status acquisition module 100, a video resolution information acquisition module 300, a primary priority value determination module 300, a primary priority value correction module 400, a video resolution type selection module 500, a playback module 600 and a communication module 700.
[0090] The communication module 700 is used to establish communication with the server 2 and send and receive data.
[0091] The user terminal status acquisition module 100 obtains information related to the device status when playing a video, including the screen resolution, network transmission speed, memory resource occupancy rate and computing resource occupancy rate of the user terminal.
[0092] The video resolution information acquisition module 200 acquires various resolution type information of the played video from the server 2. The resolution type information includes the resolution height and resolution width of the video. For example, if there are m video resolution types, there are m types of video resolution height and resolution width.
[0093] The primary priority value determination module 300 calculates primary priority values Pv (v=1...m) of various resolution types of the played video. The calculation method of the priority value Pv (v=1...m) can be found in the following part of the description of the process of the primary priority value determination step.
[0094] The description of the submodules of the primary priority value determination module 300 can be found in the following description of the submodules of the primary priority value determination module 300 .
[0095] The primary priority value correction module 400 calculates the corrected priority values PXv (v=1...m) of various resolution types under different playback strategies. The calculation method of the corrected priority value PXv (v=1...m) can be found in the part of the description of the process of the corrected priority value determination step later.
[0096] The video resolution type selection module 500 selects the video of the video resolution type with the largest correction priority value PXv from the server side 2 in descending order of the correction priority values PXv (v=1…m) of various resolution types, and plays it through the playback module 600.
[0097] The submodules of the primary priority value determination module 300 are described below.
[0098] Figure 3 It is a submodule illustration of the primary priority value determination module.
[0099] like Figure 3 As shown, the primary priority value determination module 300 includes the following submodules: a coordinate system establishment module 310 , a diagonal endpoint determination module 320 , a module 330 for determining rectangles corresponding to each diagonal line, a matching coefficient calculation module 340 and a primary priority value calculation module 350 .
[0100] The diagonal endpoint determination module 320 uses the screen resolution of the user terminal 1 and the width and height of the resolutions of various resolution types of the video played by the server 2 as coordinates to determine the diagonal endpoints of the corresponding resolutions.
[0101] Determine the rectangle module 330 corresponding to each diagonal line, set the origin of the coordinate system as the common endpoint, and determine the rectangle corresponding to the screen resolution of the user terminal and each resolution type of the server-side video according to the diagonal endpoints corresponding to the screen resolution of the user terminal and the various resolution types of the server-side video, with each side of the rectangle being perpendicular or parallel to the coordinate axis.
[0102] The matching coefficient calculation module 340 calculates the matching coefficients WHv (v=1...m) between various resolution types of the played video and the user terminal. The matching coefficient calculation method can be found in the part describing the matching coefficient calculation steps later.
[0103] The primary priority value calculation module 350 calculates the primary priority values Pv (v=1...m) of various resolution types of the played video according to the matching coefficient, network transmission speed, memory resource occupancy rate, computing resource occupancy rate and video resolution information.
[0104] The following describes the workflow of the user terminal.
[0105] Figure 4 This is a diagram illustrating the workflow of a user terminal.
[0106] like Figure 2 , 4 As shown, when the user terminal plays a video, the workflow of the user terminal 1a includes the following steps:
[0107] User terminal status collection step S100: obtaining information related to the device status, including the screen resolution, network transmission speed, memory resource occupancy rate and computing resource occupancy rate of the user terminal.
[0108] Video resolution information acquisition step S200: acquiring various resolution type information of the video provided by the server end 2.
[0109] Primary priority value determination step S300: For various resolution types of the played video, primary priority values Pv (v=1...m) of various resolution types are calculated according to the device status information of the user terminal.
[0110] Primary priority value correction step S400: Correct the primary priority values of various resolution types respectively to obtain the corrected priority values PXv of various resolution types.
[0111] Video resolution type selection step S500: According to the order of the modified priority values PXv of various resolution types from large to small, a video of the video resolution type with the largest modified priority value PXv is selected from the server side 2 for playback.
[0112] At the end of playback, the user terminal status is updated, so the user terminal can play videos of appropriate resolution types according to the updated network environment, device memory and computing resource status, avoiding the trouble of video freezes caused by changes in network environment and device status, having to wake up the UI interface to switch video resolution types, and manually modifying the video resolution.
[0113] The following is an explanation of the process of the primary priority value determination step.
[0114] Figure 5 This is a flowchart illustrating the steps of determining the primary priority value.
[0115] like Figure 5 As shown, the primary priority value determination step S300 includes the following sub-steps:
[0116] In the coordinate system establishment step S310, a plane direct coordinate system is established with the width of the resolution as the horizontal axis and the height of the resolution as the vertical axis.
[0117] In the diagonal endpoint determination step S320, the diagonal endpoints of the corresponding resolutions are determined using the screen resolution of the user terminal 1 and the width and height of the resolutions of the various resolution types of the video played by the server 2 as coordinates. For example, as shown in the figure, there are m types of video resolutions, that is, M diagonal endpoints of the corresponding resolutions are determined.
[0118] In step S330, the origin of the coordinate system is set as the common endpoint, and the rectangles corresponding to the screen resolution of the user terminal and each resolution type of the server-side video are determined according to the diagonal endpoints corresponding to the screen resolution of the user terminal and the various resolution types of the server-side video, and the sides of the rectangles are perpendicular or parallel to the coordinate axes.
[0119] The matching coefficient calculation step S340 calculates the matching coefficient WHv (v=1…m) between various resolution types of the played video and the user terminal through the following expression:
[0120]
[0121] In the above expression, WH v is the matching coefficient between the vth resolution type of the server-side video and the mobile device, v is the resolution type number of the server-side video, M is the screen resolution of the mobile device, k is the expansion coefficient of the mobile device, M·k represents the rectangle formed in the coordinate system after the mobile device is expanded k times, A MK is the area of the rectangle corresponding to M·k, C v It is the rectangle corresponding to the vth resolution type of the server-side video in the coordinate system. It is C v The area of the corresponding rectangle, R MK is the matching factor.
[0122] The expansion coefficient k is a constant greater than 1. Different screen resolutions correspond to different k values. The larger the screen resolution, the larger the k value. Assuming that the screen resolution of user terminal 1a is 2376 pixels * 1080 pixels, k = 1.2, then the width and height of rectangle M·k are 1.2 times the width and height of the screen resolution, that is, 2851.2 pixels * 1296 pixels. It can be considered that the resolution value corresponding to the width and height of rectangle M·k is the limit of the resolution display clarity effect that the user's naked eye can experience, that is, the visual effect of the video resolution corresponding to the width and height of rectangle M·k is extremely different, and the user's naked eye cannot distinguish. The k value can be adjusted according to the test results.
[0123] Matching Factor R MK is a constant greater than 0 and less than 1. Different screen resolutions correspond to R MK The value is different. Generally, the larger the screen resolution, the higher the R MK The smaller the value. MK The function is to adjust the calculation result of the matching coefficient WHv. When the screen resolution is large, you can set R MK is closer to 0, thus making the calculated result of the matching coefficient WHv larger. MK The value can be adjusted according to the test results.
[0124] like Figure 5 As shown, the rectangle intersection determination step S340a determines whether the rectangle M·k and the rectangle C v Is the intersection of (v=1…m) equal to rectangle C? v (v = 1 ... m);
[0125] If they are not equal, the width and / or height of rectangle M·k exceeds that of rectangle C. v The range of rectangle C vThe corresponding video resolution exceeds the limit of the resolution display clarity effect that the user's naked eye can experience. At this time, the matching coefficient WH v =0.
[0126] If they are equal, the width and height of rectangle M·k do not exceed rectangle C. v The range of rectangle C v The corresponding video resolutions are obviously different when viewed by the naked eye.
[0127] Through the above calculation, the matching coefficients WHv (v=1...m) corresponding to various video resolutions are obtained.
[0128] The primary priority value calculation step S350 calculates the primary priority values Pv (v=1...m) of various resolution types of the played video respectively by the following expressions:
[0129]
[0130] In the above expression, P v It is the primary priority value of the vth resolution type of the server-side video. v is the matching coefficient calculated in step S340, S is the network transmission speed of the mobile device, and R N is the memory resource occupancy rate bonus factor (constant) of the mobile device, N is the memory resource occupancy rate of the mobile device, R E is the computing resource occupancy rate addition factor of the mobile device, E is the computing resource occupancy rate of the mobile device (constant), and D v It is the product of the width and height of the vth resolution of the server-side video. You can set the memory resource usage bonus factor R N Computing resource utilization factor R E The value of strengthens or weakens the influence of the user terminal memory resource occupancy rate and the computing resource occupancy rate on the initial priority value Pv, thereby weakening or strengthening the influence of the user terminal memory resource occupancy rate and the computing resource occupancy rate on the video resolution type selection.
[0131] The process of the primary priority value modification step 400 is described below.
[0132] Figure 6 This is a flowchart illustrating the primary priority value correction step.
[0133] Before playing a video, the user selects one of the play strategies in advance on the user terminal. The play strategies include: video clarity priority, device resource saving priority, video fluency priority, and resolution matching priority.
[0134] In the primary priority value modification step S400, the modified priority values PXv (v=1...m) of various resolution types under different playback strategies are calculated by the following expressions.
[0135]
[0136] like Figure 6 As shown, the primary priority value correction module 400 reads the playback strategy and determines whether the playback strategy is "when video clarity is prioritized". If so, PX is calculated. v =P v ·D v ; If not, determine whether the playback strategy is "when saving device resources is prioritized", if so, calculate If not, determine whether the playback strategy is "when video fluency is prioritized". If so, calculate If not, determine whether the playback strategy is "when resolution matching is prioritized". If so, calculate PX v =P v ·WH v , if not, re-read the playback strategy.
[0137] After calculation, the correction priority value PXv (v=1...m) of various resolution types can be obtained.
[0138] The correction priority value PXv includes information about screen resolution, video resolution, network transmission speed, memory resource occupancy rate, and computing resource occupancy rate. When users select different playback strategies, they will obtain corresponding calculation results, and the user terminal can play videos of corresponding resolutions according to the playback strategies selected by the users.
[0139] Since the matching coefficient WH v =0, the correction priority value PXv=0, so when the video resolution type selection step S500 is performed to sort by size, the corresponding correction priority value PXv will be ranked last, that is, the corresponding video resolution type can be eliminated. The user will not play the video without manually modifying the resolution type. Therefore, the computing cost of the user terminal and the user's visual experience can be taken into account, and the playback effect is more reasonable.
[0140] Through the expression described above, we can use screen resolution, network transmission speed, computing resources, memory resources and video resolution as parameters, calculate the reasonable correlation of each parameter according to the playback strategy corresponding to the user's preferences, and then select the corresponding video resolution type for playback based on the calculation results. Therefore, the screen resolution, network transmission speed, computing resources, memory resources, video resolution and other influencing factors and user preferences are combined in a multi-faceted manner, giving full play to the advantages of user resource terminals and video resources of various resolution types, and improving the user's viewing experience.
[0141] As a variation, the server side 2 reads the user terminal status of the user terminals 1a…1n, calculates the primary priority value and the modified priority value corresponding to each user terminal based on the video resolution type information, sorts the modified priority values, and selects the video of the appropriate resolution type to transmit to each user terminal for playback.
[0142] Example
[0143] This embodiment takes the case where the user terminal 1a plays one of the three video resolution types as an example to illustrate the process of the multimedia playback method for matching the video resolution based on the user terminal state:
[0144] The specific data used in this embodiment can be seen in the following Table 1 and Table 2:
[0145] Table 1
[0146] name Screen resolution k Video Resolution1 Video Resolution2 Video Resolution 3 value 2376*1080 1.2 2560*1440 1920*1080 1024*720
[0147] Table 2
[0148]
[0149] As shown in Table 1 and Table 2, the screen resolution of the user terminal is 2376 pixels * 1080 pixels, and the k value corresponding to the screen resolution is 1.2. The video provided by the server 2 has three video resolution types (2560 pixels * 1440 pixels, 1920 pixels * 1080 pixels, and 1024 pixels * 720 pixels). The network transmission speed of the user terminal 1a is 2.8M / s, the memory resource occupancy rate is 60%, the computing resource occupancy rate is 40%, the memory resource factor value is 3, and the computing resource factor value is 4.
[0150] When playing the video, the user terminal status acquisition module 100 obtains information related to the device status, including that the screen resolution of the user terminal is 2376 pixels * 1080 pixels, the network transmission speed is 2.8M / s, the memory resource occupancy rate is 60% and the computing resource occupancy rate is 40% (step S100).
[0151] The resolution information acquisition module 200 acquires the resolution type information of the video provided by the server 2, that is, there are three types of video resolution information: 2560 pixels*1440 pixels, 1920 pixels*1080 pixels, and 1024 pixels*720 pixels (step S200).
[0152] The primary priority value determination module 300 calculates the primary priority values Pv (v=1…m) of various resolution types of the video according to the device status information of the user terminal: in this embodiment, there are three video resolution types, so v=1, 2, 3 (step S300).
[0153] Figure 7 is an illustration of rectangle M·k, Figure 8 is an illustration of rectangle C1, Fig. 9 is an illustration of rectangle C2. Fig.10 is an illustration of rectangle C3. Fig.11 This is an illustration of the intersection operation of rectangle M·k and rectangle C1. Fig.12 This is an illustration of the intersection operation of rectangle M·k and rectangle C2. Figure 7-12 The specific calculation process of the primary priority value Pv (v=1, 2, 3) is described as follows:
[0154] The coordinate system establishment module 310 establishes a plane direct coordinate system with the width of the resolution as the horizontal axis and the height of the resolution as the vertical axis (step S310), that is, Figure 7-12 The coordinate system in .
[0155] The diagonal endpoint determination module 320 uses the screen resolution of the user terminal 1 and the width and height of the resolutions of various resolution types of the video played by the server 2 as coordinates to determine the diagonal endpoints of the corresponding resolutions (S320), sets the origin of the coordinate system as the common endpoint, and determines the corresponding rectangles M·k, rectangle C1, rectangle C2, and rectangle C3 according to the corresponding diagonal endpoints.
[0156] like Figure 7 As shown, the endpoint coordinates of the rectangle M·k are 1.2 times the screen resolution (2376, 1080) of the user terminal 1a. The diagonal endpoints are determined to be (2851.2, 1296), and the rectangle M·k can be determined. (Steps S320a, S330a)
[0157] like Figure 8 As shown, the video resolution type corresponding to rectangle C1 is 2560 pixels * 1440 pixels, and the diagonal endpoints are (2560, 1440); Fig. 9 As shown, the video resolution type corresponding to rectangle C2 is 1920 pixels * 1080 pixels, and the diagonal endpoints are (1920, 1080); Fig.10 As shown, the video resolution type corresponding to rectangle C3 is 1024 pixels * 720 pixels, and the diagonal endpoints are (1024, 720). Rectangle C1, rectangle C2, and rectangle C3 can be determined. (Steps S320b, S330b)
[0158] According to the expression The calculation process is as follows:
[0159] Determine (M·k)∩C v and C v Relationship:
[0160] like Fig.11 As shown, Fig.11 The rectangle filled with oblique lines is the rectangle M·k, the rectangle filled with vertical lines is the rectangle C1, and the rectangle filled with cross lines is (M·k)∩C1. Obviously, (M·k)∩C1≠C1 (step S340a), so the resolution type is 2560 pixels * 1440 pixels and the matching coefficient WH1=0 (step S340b).
[0161] like Fig.12 As shown, Fig.12 The rectangle filled with oblique lines is rectangle M·k, the rectangle filled with vertical lines is rectangle C2, and the rectangle filled with cross lines is (M·k)∩C2. Obviously, (M·k)∩C1=C1 (step S340a), so the resolution type is the matching coefficient of 1920 pixels * 1080 pixels. (The calculation results this time and in the following text are all rounded to two decimal places; the calculations in the following text omit the process of substituting numbers).
[0162] The same method can be used to calculate the matching coefficient WH3=1.40 for a resolution type of 1024 pixels*720 pixels (step S340f).
[0163] The primary priority value calculation module 350 calculates the value of the priority value according to the data collected in step S100 and step 200 by the expression Calculate the width and height product DV(*10 6 ) and primary priority value Pv (v=1, 2, 3) (step S350). After calculation, the results are shown in Table 3:
[0164] Table 3
[0165] v Video resolution type Wlq Dv Pv 1 2560*1440 0 3.69 0 2 1920*1080 2.12 2.07 1.35 3 1024*720 1.40 0.74 1.28
[0166] The primary priority value correction module 400 calculates the correction priority values PXv (v=1, 2, 3) of various resolution types under different playback strategies through the following expression (step S400):
[0167]
[0168] The video resolution type selection module 500 sorts the modified priority values PXv (v=1, 2, 3), and selects a video of a video resolution type with the largest modified priority value PXv (v=1, 2, 3) from the server 2 for playback (step S500).
[0169] The following are the calculation results of various playback strategies selected by the user:
[0170] When the user selects the playback strategy of "when video clarity is prioritized" (step S420a), the calculation result of the modified priority value PXv (step S430a, step S440) is shown in Table 4:
[0171] Table 4
[0172] v Video resolution type PxX 1 2560*1440 0 2 1920*1080 2.79 3 1024*720 0.95
[0173] PX2>PX3>PX1(2.79>0.95>0), so the user terminal 1a plays the video of the video resolution type 1920 pixels*1080 pixels corresponding to the maximum correction priority value PX2.
[0174] When the user selects the playback strategy of "when saving device resources is prioritized" (step S420b), the calculation result of the modified priority value PXv (step S430b, step S440) is shown in Table 5:
[0175] Table 5
[0176] v Video resolution type PxX 1 2560*1440 0 2 1920*1080 0.65 3 1024*720 1.73
[0177] PX3>PX2>PX1(1.73>0.65>0), so the user terminal 1a plays the video of the video resolution type 1024 pixels*720 pixels corresponding to the maximum correction priority value PX3.
[0178] When the user selects the playback strategy of "when video fluency is prioritized" (step S420c), the calculation result of the modified priority value PXv (step S430c, step S440) is shown in Table 6:
[0179] Table 6
[0180] v Video resolution type PxX 1 2560*1440 0 2 1920*1080 1.38 3 1024*720 2.42
[0181] PX3>PX2>PX1(2.42>1.38>0), so the user terminal 1a plays the video of the video resolution type 1024 pixels*720 pixels corresponding to the maximum value of the modified priority value PX3.
[0182] When the user selects the playback strategy of "when resolution matching is prioritized" (step S420d), the calculation result of the modified priority value PXv (step S430d, step S440) is shown in Table 7:
[0183] Table 7
[0184] v Video resolution type PxX 1 2560*1440 0 2 1920*1080 1.38 3 1024*720 2.42
[0185] PX2>PX3>PX1(2.86>1.79>0), so the user terminal 1a plays the video of the video resolution type 1920 pixels*1080 pixels corresponding to the correction priority value PX3 with the largest numerical value.
[0186] In summary, when the user selects different playback strategies, the user terminal 1a finally plays the video of the corresponding resolution type. The summary of the playback results is shown in Table 8:
[0187] Table 8
[0188]
[0189] From the contents listed in Table 8, because 2560 pixels * 1440 pixels exceeds the limit of the resolution display clarity effect that the user's naked eyes can experience, no matter which playback strategy the user chooses, as long as the video resolution is not manually modified, the 2560 pixels * 1440 pixels video will not be played.
[0190] After excluding videos with a resolution of 2560 pixels * 1440 pixels, videos with a resolution of 1920 pixels * 1080 pixels are the clearest and most closely match the screen resolution. Therefore, when users select the playback strategy of "prioritize video clarity" or "prioritize resolution matching", they can watch videos with a resolution of 1920 pixels * 1080 pixels.
[0191] 1024 pixels * 720 pixels videos have minimal requirements on the computing resources, memory resources, and network transmission speed of the user terminal. Therefore, when the user selects the playback strategy "saving device resources first" or "video fluency first", he can watch 1024 pixels * 720 pixels videos.
[0192] At the end of the playback, the user terminal status is updated.
[0193] It should be noted that the above embodiments illustrate the present invention rather than limit the present invention, and those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation to the claims.
Claims
1. A multimedia playback method for matching video resolution based on user terminal status, wherein a user terminal (1) obtains a video from a server (2) for playback, the server (2) providing videos with different resolution types, and the user terminal (1) determines the resolution type of the video when playing the video, characterized in that: The following steps are involved: A user terminal status acquisition step (S100), when playing a video, the user terminal (1) or the server (2) acquires information related to the device status, including the screen resolution, network transmission speed, memory resource occupancy rate and computing resource occupancy rate of the user terminal (1); In a video resolution information acquisition step (S200), the user terminal (1) or the server (2) acquires information of various resolution types of the playback video provided by the server (2). The primary priority value determination step (S300) is that the user terminal (1) or the server (2) calculates the primary priority values P of various resolution types for the various resolution types of the played video according to the device status information of the user terminal. v ; In a primary priority value correction step (S400), the user terminal (1) or the server (2) corrects the primary priority values of various resolution types respectively to obtain the corrected priority values PX of various resolution types. v ; In a video resolution type selection step (S500), the user terminal (1) or the server side (2) selects a video of the video resolution type having the largest correction priority value PXv from the server side (2) for playback according to the correction priority values PXv of various resolution types in descending order. The primary priority value determination step (S300) comprises the following steps: A coordinate system establishment step (S310) is to establish a plane direct coordinate system with the width of the resolution as the horizontal axis and the height of the resolution as the vertical axis; A diagonal endpoint determination step (S320), using the screen resolution of the user terminal (1) and the width and height of the resolutions of various resolution types of the video played by the server (2) as coordinates, to determine the diagonal endpoints of the corresponding resolutions; Determine the rectangle corresponding to each diagonal line (S330), set the origin of the coordinate system as a common endpoint, and determine the rectangle corresponding to the screen resolution of the user terminal (1) and each resolution type of the server-side (2) video according to the diagonal endpoints corresponding to the screen resolution of the user terminal and the various resolution types of the server-side video, wherein each side of the rectangle is perpendicular or parallel to the coordinate axis; The matching coefficient calculation step (S340) calculates the matching coefficients between various resolution types of the played video and the user terminal through the following expression: ; Among them, WH v is the matching coefficient between the vth resolution type of the server-side video and the user terminal, v is the server-side video resolution type number, M is the screen resolution of the user terminal, k is the expansion coefficient of the user terminal, k is greater than 1, M·k represents the rectangle formed in the coordinate system after the user terminal is expanded k times, A MK is the area of the rectangle corresponding to M·k, C v is the rectangle corresponding to the vth resolution type of the server-side video in the coordinate system, It is C v The area of the corresponding rectangle, R MK is the matching factor, R MK Less than 1 and greater than 0; The primary priority value calculation step (S350) is to calculate the primary priority values of various resolution types of the played video respectively through the following expressions: ; Among them, P v is the primary priority value of the vth resolution type of the server-side video, S is the network transmission speed of the user terminal, R N is the memory resource occupancy rate addition factor of the user terminal, N is the memory resource occupancy rate of the user terminal, R E is the computing resource occupancy rate addition factor of the user terminal, E is the computing resource occupancy rate of the user terminal, and D v It is the product of the width and height of the vth resolution of the server-side video. In the primary priority value modification step (S400), the modified priority values PX of various resolution types under different playback strategies are calculated by the following expression: v The playback strategies include: giving priority to video clarity, saving device resources, video fluency, and resolution matching. ; In the video resolution type selection step (S500), according to the playback strategy selected by the user, the modified priority values PX of various resolution types are selected. v In descending order, select the modified priority value PX from the server side (2) v The maximum video resolution of the type of video to play.
2. The multimedia playing method according to claim 1, wherein: In the step of determining the rectangles corresponding to each diagonal line (S340), the expansion coefficient k is set according to the screen resolution of the user terminal (1). The higher the screen resolution of the user terminal (1), the larger the expansion coefficient k.
3. The multimedia playing method according to claim 1 or 2, characterized in that: In the video resolution type selection step (S500), the user terminal status is updated at the end of each video playback.
4. A multimedia playback system for matching video resolution based on user terminal status, comprising a user terminal (1) and a server (2), wherein the server (2) provides videos with different resolution types, and the user terminal (1) obtains the video from the server (2) for playback, and when playing the video, determines the resolution type of the played video, characterized in that: The user terminal (1) comprises the following modules: A user terminal status acquisition module (100) acquires information related to the device status when playing a video, including the screen resolution, network transmission speed, memory resource occupancy rate and computing resource occupancy rate of the user terminal (1); The video resolution information acquisition module (200) acquires various resolution type information of the played video from the server side (2). The primary priority value determination module (300) calculates the primary priority value P of each resolution type according to the device status information of the user terminal for each resolution type of the played video. v ; The primary priority value correction module (400) corrects the primary priority values of various resolution types respectively to obtain the corrected priority values PX of various resolution types. v ; The video resolution type selection module (500) selects the video resolution type according to the correction priority value PX of each resolution type. v In descending order, select the modified priority value PX from the server side (2) v The maximum video resolution of the type of video to play, The primary priority value determination module (300) comprises the following submodules: A coordinate system establishment module (310) establishes a plane rectangular coordinate system with the width of the resolution as the horizontal axis and the height of the resolution as the vertical axis; A diagonal endpoint determination module (320) determines diagonal endpoints of corresponding resolutions using the screen resolution of the user terminal (1) and the width and height of resolutions of various resolution types of videos played by the server (2) as coordinates; A module (330) for determining rectangles corresponding to each diagonal line, setting the origin of the coordinate system as a common endpoint, and determining rectangles corresponding to the screen resolution of the user terminal (1) and each resolution type of the video on the server side (2) according to the diagonal endpoints corresponding to the screen resolution of the user terminal (1) and each resolution type of the video on the server side (2), wherein each side of the rectangle is perpendicular or parallel to the coordinate axis; The matching coefficient calculation module (340) calculates the matching coefficients between various resolution types of the played video and the user terminal through the following expression: ; Among them, WH v is the matching coefficient between the vth resolution type of the server-side video and the user terminal, v is the server-side video resolution type number, M is the screen resolution of the user terminal, k is the expansion coefficient of the user terminal, k is greater than 1, M·k represents the rectangle formed in the coordinate system after the user terminal is expanded k times, A MK is the area of the rectangle corresponding to M·k, C v is the rectangle corresponding to the vth resolution type of the server-side video in the coordinate system, It is C v The area of the corresponding rectangle, R MK is the matching factor, R MK Less than 1 and greater than 0; The primary priority value calculation module (350) calculates the primary priority values of various resolution types of the played video respectively through the following expressions: ; Among them, P v is the primary priority value of the vth resolution type of the server-side video, S is the network transmission speed of the user terminal, and R N is the memory resource occupancy rate addition factor of the user terminal, N is the memory resource occupancy rate of the user terminal, R E is the computing resource occupancy rate addition factor of the user terminal, E is the computing resource occupancy rate of the user terminal, and D v It is the product of the width and height of the vth resolution of the server-side video. The primary priority value correction module (400) calculates the correction priority values PX of various resolution types under different playback strategies through the following expressions: v The playback strategies include: giving priority to video clarity, saving device resources, video fluency, and resolution matching. ; The video resolution type selection module (500) selects the video resolution type according to the playback strategy selected by the user and the modified priority values PX of various resolution types. v In descending order, select the modified priority value PX from the server side (2) v The maximum video resolution of the type of video to play.
5. The multimedia playback system according to claim 4, characterized in that: In the module (330) for determining the rectangles corresponding to each diagonal line, the expansion coefficient k is set according to the screen resolution of the user terminal (1); the higher the screen resolution of the user terminal (1), the larger the expansion coefficient k.
6. The multimedia playback system according to claim 4 or 5, characterized in that: The video resolution type selection module (500) updates the user terminal status each time the video playback ends.
Citation Information
Patent Citations
Cloud-computing-based high-definition video playing system and method
CN102970600A
Video playing resolution switching method and system
CN105376642A
Network video playing processing method and device
CN106792169A
A method and device for acquiring media resources
CN109040802A
Video resolution adaptation method and apparatus, and virtual reality terminal
WO2017193576A1
