A cross-platform playing optimization method and system for a geological disaster popular science video

By segmenting videos, collecting user behavior data, calculating audiovisual parameter offsets, and building a strategy configuration library, the problem of inconsistent audiovisual effects across platforms was solved, enabling dynamic optimization of video playback effects.

CN123145446APending Publication Date: 2026-11-20中国地质环境监测院(自然资源部地质灾害技术指导中心)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611389436.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-08
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technology cannot differentiate playback parameters based on differences in cross-platform audiovisual experience, resulting in inconsistent audiovisual effects of the same video on different devices.

Method used

By segmenting the target video, collecting user playback behavior and device information, calculating audiovisual parameter preference offsets, building a strategy configuration library, and optimizing playback parameters in real time.

Benefits of technology

It enables dynamic optimization of audio gain and screen brightness of video based on user preferences for different playback terminals and environments, thereby improving the consistency and adaptability of playback effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145446A_ABST
    Figure CN123145446A_ABST
Patent Text Reader

Abstract

The application provides a cross-platform playing optimization method and system for popular science videos of geological disasters, and belongs to the technical field of video playing optimization, which comprises the following steps: slicing and dividing a target video according to a preset time window to obtain a slice sequence containing multiple slices; collecting the playing behavior events of users on each playing terminal and the device information of the playing terminal, and determining the platform category; screening effective adjustment behaviors for each slice corresponding to each platform category, and calculating the audiovisual parameter preference offset of each slice under the corresponding platform category; determining the audio gain target value and the picture brightness compensation target value of each slice corresponding to each platform category, constructing and maintaining a strategy configuration library; and performing playing optimization on the target video. The application solves the problem that the prior art cannot perform differentiated regulation and control on playing parameters according to cross-platform audiovisual experience differences, resulting in inconsistent audiovisual effects of the same video on different terminals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of video playback optimization technology, specifically to a cross-platform playback optimization method and system for geological disaster science videos. Background Technology

[0002] Geological disaster science videos are typically disseminated through various playback devices such as mobile phones, tablets, PCs, and smart TVs. Different devices exhibit objective differences in screen brightness characteristics, speaker or headphone output characteristics, and browser kernel rendering, resulting in inconsistent audiovisual presentation of the same video content across different platforms.

[0003] In existing technologies, adaptive bitrate technology mainly adjusts the video bitrate based on changes in network bandwidth to address playback smoothness issues; HDR tone mapping technology mainly maps brightness and color based on the color gamut capabilities of the display device to address hardware capability differences. None of these technologies involve cross-platform differentiated adjustment of audiovisual parameters based on user behavior feedback during playback.

[0004] Therefore, when facing multi-terminal playback scenarios, existing technologies are unable to form an effective basis for adjusting playback parameters based on the actual differences in audiovisual experience, resulting in insufficient consistency of the audiovisual effect of the same video on different platforms, and the playback control process also lacks effective guarantees for smoothness and content adaptability. Summary of the Invention

[0005] This invention provides a cross-platform playback optimization method and system for geological disaster science videos, which solves the problem that existing technologies cannot differentiate playback parameters according to the differences in cross-platform audiovisual experience, resulting in inconsistent audiovisual effects of the same video on different terminals.

[0006] In a first aspect, the present invention provides a cross-platform playback optimization method for geological disaster science popularization videos, including: S1: Divide the target video into slices according to a preset time window to obtain a slice sequence containing multiple slices; S2: During the playback of the target video, collect the user's playback behavior events and the device information of the playback terminal on each playback terminal, and determine the platform category. The playback behavior events include at least manual volume adjustment events and manual screen brightness adjustment events. S3: For each slice corresponding to each platform category, select effective adjustment behaviors from the playback behavior events, and combine the effective adjustment behaviors with the global benchmark of each slice to calculate the audiovisual parameter preference offset on each slice under the corresponding platform category. S4: Based on the audio-visual parameter preference offset, determine the target audio gain value and target screen brightness compensation value for each platform category in each slice, and build and maintain the strategy configuration library; S5: During the subsequent playback of the target video, the playback optimization is performed on the target video by combining the strategy configuration library, the real-time device information, and the slice in which the current playback position is located.

[0007] Secondly, this invention provides a cross-platform playback optimization system for geological disaster science popularization videos, including: The video slicing module is used to divide the target video into slices according to a preset time window to obtain a slice sequence containing multiple slices; The behavior and device acquisition module is used to acquire user playback behavior events and device information of playback terminals on each playback terminal during the playback of the target video, and to determine the platform category. The playback behavior events include at least manual volume adjustment events and manual screen brightness adjustment events. The preference offset calculation module is used to filter effective adjustment behaviors from the playback behavior events for each slice corresponding to each platform category, and combine the effective adjustment behaviors with the global benchmark of each slice to calculate the audiovisual parameter preference offset on each slice under the corresponding platform category. The strategy configuration library maintenance module is used to determine the target audio gain value and target screen brightness compensation value for each platform category in each slice based on the audiovisual parameter preference offset, and to build and maintain the strategy configuration library. The playback optimization execution module is used to perform playback optimization on the target video during subsequent playback, by combining the strategy configuration library, the real-time device information, and the slice in which the current playback position is located.

[0008] One or more technical solutions provided in this invention have at least the following technical effects or advantages: The technical solution of this invention first divides the target video into slices, detects scene switching points, adjusts boundaries, and merges short slices to generate a slice sequence with balanced duration and aligned boundaries between scene switching positions. Then, it extracts the image brightness features, audio energy features, and warning audio semantic tags of each slice to provide a stable processing unit for subsequent analysis.

[0009] Furthermore, during playback, device type, operating system, playback environment, and audio output method are collected to determine the platform category, and hierarchical fallback is performed when the sample is insufficient; at the same time, user manual volume and brightness adjustment behavior is collected, and after cold start filtering, it is aggregated by day to provide a hierarchical data foundation for preference calculation.

[0010] Furthermore, effective adjustment behaviors are selected from behavioral events of each platform category, and weights are assigned based on whether users continue to watch after adjustment. Volume preference offset and brightness preference offset are calculated with the global benchmark of the slice as a reference to obtain the audiovisual adjustment tendency of each platform category on each slice.

[0011] Furthermore, the offset is multiplied by the compensation scaling factor, clipped at the safety boundary, and written into the policy configuration library. Then, it is deployed through grayscale verification and full release, and iterated and updated periodically to form a differentiated audiovisual compensation policy that can be distributed to the playback terminal.

[0012] Finally, during playback, device information is obtained in real time to determine the platform category. Combined with the current playback position, the strategy configuration library is queried. Audio gain and screen brightness compensation are performed synchronously for non-high dynamic range content. Brightness and audio changes between adjacent slices are smoothly transitioned. Warning audio content is guaranteed to have a fast response and a lower gain limit. Ultimately, dynamic playback optimization is achieved for different terminals and different slice content.

[0013] In summary, the technical solution of the present invention achieves dynamic audiovisual parameter optimization for different playback terminals, different playback environments, and different video content. It can dynamically optimize the audio gain and screen brightness of each slice of the target video according to the user adjustment preferences of different playback terminals and playback environments, so that the playback effect is more in line with the actual viewing habits of various users. Attached Figure Description

[0014] Figure 1 This is a flowchart illustrating a cross-platform playback optimization method for geological disaster science videos provided by the present invention.

[0015] Figure 2 This is a logical diagram illustrating the playback optimization in a cross-platform playback optimization method for geological disaster science videos provided by this invention.

[0016] Figure 3 This is a schematic diagram of the cross-platform playback optimization system for geological disaster science videos provided by the present invention.

[0017] In the attached diagram, the labels representing each component are as follows: The video slicing module 11, the behavior and device acquisition module 12, the preference offset calculation module 13, the strategy configuration library maintenance module 14, and the playback optimization execution module 15 are all included. Detailed Implementation

[0018] This invention provides a cross-platform playback optimization method and system for geological disaster science videos, solving the problem that existing technologies cannot differentiate playback parameters according to differences in cross-platform audiovisual experience, resulting in inconsistent audiovisual effects of the same video on different terminals.

[0019] It should be noted that the terms "comprising" and "having" are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or modules that are not explicitly listed or that are inherent to these processes, methods, products, or devices.

[0020] Example 1, as Figure 1 As shown, this invention provides a cross-platform playback optimization method for geological disaster science popularization videos, including:

[0021] S1: Divide the target video into slices according to a preset time window to obtain a slice sequence containing multiple slices.

[0022] This step involves dividing the target video into slices according to a preset time window, and then sequentially performing scene transition point detection, boundary adjustment, and short slice iterative merging to finally obtain a slice sequence with a balanced duration distribution and boundaries that are basically aligned with the scene transition positions.

[0023] This step S1 includes: S1.1: Using a preset base duration as a time window, the target video is initially divided into multiple base slices; S1.2: Traverse each of the basic slices to detect scene switching points, and adjust the boundaries of each basic slice to the nearest scene switching point based on the detection results to obtain the adjusted slice; S1.3: Iteratively merge the adjusted slices whose duration is shorter than the shortest preset duration with adjacent slices until all of them are longer than the shortest preset duration, and generate the slice sequence; S1.4: For each slice in the slice sequence, calculate the image brightness feature value and audio energy feature value respectively, identify the warning audio content, and label it with semantic tags.

[0024] Specifically, step S1.1 first uses a preset base duration as a time window to initially divide the target video into multiple base slices.

[0025] The preset base duration is set based on the typical scene duration of the target video and the requirements of subsequent processing on the granularity of the slices. The setting method is to select reference values ​​from the frame rate, resolution, and content type of the target video.

[0026] For example, for surveillance videos with a frame rate of 30fps and an average scene duration of 2 to 5 seconds, the default base duration is set to 3 seconds. During execution, starting from the beginning of the target video, it is continuously divided into base slices with a step size of 3 seconds. When the total duration of the target video is 20 seconds, the resulting base slices are: [0s, 3s], [3s, 6s], [6s, 9s], [9s, 12s], [12s, 15s], [15s, 18s], [18s, 20s]. The last base slice has a duration of 2 seconds, which is shorter than 3 seconds and is considered a boundary residue; it will be adjusted uniformly after entering S1.2.

[0027] Secondly, in step S1.2, each basic slice is traversed to detect scene switching points, and the boundaries of each basic slice are adjusted to the nearest scene switching point based on the detection results to obtain the adjusted slice.

[0028] The scene transition point detection employs a method to measure the difference between adjacent frames. For each base slice and its adjacent regions before and after it, the average absolute difference of the RGB three-channel pixel values ​​is calculated between every two adjacent frames. The difference calculation between adjacent frames is performed within a 2-second range before and after the boundary of each base slice to obtain scene transition points that can be used for boundary adjustment.

[0029] When the mean absolute difference is greater than the scene switching threshold, the adjacent frames are determined to be a scene switching point. The scene switching threshold is set to 30, based on the following: In 8-bit color depth, the range of RGB single-channel pixel values ​​is 0 to 255. When the mean absolute difference reaches 30, the human eye can clearly perceive changes in the image content. At the same time, when it is lower than this value, it is usually caused by noise or slight movement.

[0030] Specifically, the calculation method is as follows: Let two adjacent frames be F(t) and F(t+1), with a resolution of W×H. Calculate pixel by pixel: Δ(t) = (1 / (W×H×3))×Σ|F(t)(x,y,c)−F(t+1)(x,y,c)|, where x and y are pixel coordinates, and c is the RGB channel. When Δ(t)>30, record time t as the scene transition point.

[0031] For example, within the base slice [3s, 6s], Δ=47 is detected at t=4.2s, which is determined to be a scene transition point. The nearest scene transition point at the right boundary of the base slice (6s) is 4.2s, so the right boundary is adjusted from 6s to 4.2s. No scene transition point is detected at the left boundary of the base slice (3s). The nearest scene transition point to the left boundary is located at t=2.8s within the previous base slice [0s, 3s]. The distance between 2.8s and 3s is 0.2s, which is less than the distance to 4.2s, so the left boundary is adjusted from 3s to 2.8s. The adjusted slice is then [2.8s, 4.2s].

[0032] After traversing all the basic slices, all slice boundaries are adjusted to the nearest scene switching point, allowing for brief overlaps or gaps between adjacent adjusted slices. The overlaps or gaps are eliminated uniformly during merging in S1.3.

[0033] Next, in step S1.3, the adjusted slices with a duration shorter than the shortest preset duration are iteratively merged with adjacent slices until all of them are longer than the shortest preset duration, thus generating a slice sequence.

[0034] The shortest preset duration is set to 1 second. The reason for this setting is that slices shorter than 1 second contain fewer than 30 audio frames and fewer than 30 video frames, making it difficult to stably calculate brightness features and audio energy features, and semantic label annotation is prone to failure.

[0035] Specifically, the merging rule is as follows: For adjustment slices with a duration shorter than 1 second, compare their duration differences with the previous and next slices, and prioritize merging them with adjacent slices that have smaller duration differences. If neither of the two adjacent slices exists, the original adjustment slice is retained. If the merged slice is still shorter than 1 second, iterative merging with adjacent slices continues until all slices have a duration greater than 1 second or merging can no longer continue.

[0036] For example, after adjustment by S1.2, the adjusted slice sequence is: [2.8s, 4.2s], [4.2s, 4.9s], [4.9s, 8.1s], [8.1s, 11.0s], [11.0s, 13.6s], [13.6s, 17.2s], [17.2s, 20s]. The duration of [4.2s, 4.9s] is 0.7 seconds, less than 1 second. Its preceding slice [2.8s, 4.2s] has a duration of 1.4 seconds, and its following slice [4.9s, 8.1s] has a duration of 3.2 seconds. Comparing the duration differences: merging with the preceding slice adds 0.7 seconds; merging with the following slice adds 0.7 seconds. Since the duration differences on both sides are the same, it is merged with the left slice first, resulting in [2.8s, 4.9s]. After merging, the durations of all slices are: [2.8s, 4.9s] 2.1 seconds, [4.9s, 8.1s] 3.2 seconds, [8.1s, 11.0s] 2.9 seconds, [11.0s, 13.6s] 2.6 seconds, [13.6s, 17.2s] 3.6 seconds, and [17.2s, 20s] 2.8 seconds, all greater than 1 second, generating a slice sequence.

[0037] Finally, in step S1.4, the image brightness feature value and audio energy feature value are calculated for each slice in the slice sequence, and the warning audio content is identified and labeled with semantic tags.

[0038] The image brightness feature value is represented by the average brightness of all video frames within each slice. The calculation method is as follows: the RGB image is converted to grayscale image frame by frame, and the grayscale value is calculated according to the formula Y=0.299R+0.587G+0.114B. Then, the average of the grayscale values ​​of all pixels in all frames within the slice is calculated to obtain the image brightness feature value of the slice.

[0039] The audio energy characteristic value is represented by the short-time root-mean-square energy of the audio signal within each slice. The calculation method is as follows: the audio signal is divided into frames with a frame length of 20ms and a frame shift of 10ms. The mean of the square of the amplitude of the sampling points in each frame is calculated. Then, the short-time energy of all audio frames in the slice is averaged to obtain the audio energy characteristic value of the slice.

[0040] Among them, the identification of warning-type audio content adopts a pre-built audio event classification model. The pre-built audio event classification model refers to a neural network classifier trained in advance using a labeled audio dataset. The input is the log-Melogram of the audio slices, and the output is the probability distribution on the preset audio event category.

[0041] In this invention, the preset warning audio events include: alarm sounds, glass breaking sounds, and impact sounds. When the model outputs a probability greater than 0.6 for a certain warning audio event, the slice is determined to contain that type of warning audio, and the corresponding semantic label is assigned.

[0042] The probability threshold of 0.6 is set based on the following: on a test set containing background noise, the combined F1 score of the three types of events, namely alarm sound, glass breaking sound, and impact sound, is the highest when the threshold is 0.6, while the false alarm rate is less than 10%.

[0043] For example, for the slice [2.8s, 4.9s], all video frames are extracted and the grayscale mean is calculated, resulting in a screen brightness feature value of 112.4. The audio signal is extracted, and the frames are shifted by 20ms and 10ms frames. The short-time energy of each frame is calculated and averaged, resulting in an audio energy feature value of 0.083. The audio log-Melogram is input into a pre-built audio event classification model, outputting probabilities of: alarm sound 0.12, glass breaking sound 0.81, and impact sound 0.05. The glass breaking sound probability is greater than 0.6, and it is labeled with the semantic tag: [glass breaking sound]. The same steps are performed on the remaining slices to complete the image brightness feature value, audio energy feature value, and warning audio semantic tag labeling for all slices.

[0044] It should be noted that the above values ​​are for illustrative purposes only and do not constitute a limitation on the present invention.

[0045] In summary, this step provides a structurally stable processing unit for subsequent image brightness feature calculation, audio energy feature calculation, and warning audio recognition, avoiding unstable feature calculation or semantic label failure due to excessively short slice duration or boundaries cutting into the middle of the scene.

[0046] S2: During the playback of the target video, collect the user's playback behavior events and the device information of the playback terminal on each playback terminal, and determine the platform category. The playback behavior events include at least manual volume adjustment events and manual screen brightness adjustment events.

[0047] This step involves collecting manual volume adjustment events and manual screen brightness adjustment events from users on each playback terminal during the target video playback process. At the same time, device information is collected and the platform category is determined to obtain user's active adjustment behavior data on volume and screen brightness under different platform categories.

[0048] This step S2 includes: S2.1: During playback session initialization, collect device information of the playback terminal, wherein the device information includes at least device type, operating system type, playback environment type, and audio output method; S2.2: Based on the device information, determine the platform category to which each playback terminal belongs according to the preset multi-level classification hierarchy, wherein the multi-level classification hierarchy includes at least the device type hierarchy, the operating system hierarchy, and the playback environment hierarchy; S2.3: Set a minimum sample size threshold for each of the classification levels. When the number of playback sessions within a preset statistical period is lower than the minimum sample size threshold, the corresponding level will be aggregated and reverted to the corresponding upper-level classification level. S2.4: During the playback of the target video, collect playback behavior events of users on each playback terminal, wherein the playback behavior events include at least manual volume adjustment events and manual screen brightness adjustment events; S2.5: The collected playback behavior events, device information, and platform category are reported to the data warehouse and offline aggregation processing is performed according to the preset aggregation cycle.

[0049] Specifically, step S2.1 first collects the device information of the playback terminal during playback session initialization. The device information includes at least the device type, operating system type, playback environment type, and audio output method.

[0050] Playback session initialization refers to the moment when the playback terminal begins loading the target video and establishes a playback instance. The acquisition method is as follows: when the playback terminal starts the player and creates a playback session, the player calls the terminal system interface to read device information and assembles it into structured data according to preset fields.

[0051] The device type is categorized by physical form, including: mobile phone, tablet, desktop computer, laptop, TV, and in-vehicle terminal. The operating system type is categorized by the operating system running on the terminal, including: Android, iOS, Windows, macOS, Linux, and HarmonyOS. The playback environment type is categorized by user scenario, including: indoor stationary, indoor mobile, outdoor stationary, outdoor mobile, and in-vehicle. The audio output method is categorized by sound playback path, including: built-in speaker, wired headphones, Bluetooth headphones, and external speakers.

[0052] For example, when a user plays a target video on their mobile phone, the player reads the device type as mobile phone, the operating system type as Android, the playback environment type as indoor and static, and the audio output method as built-in speaker during the initialization of the playback session. This set of information serves as the device information data for the current playback session and is recorded along with the session ID.

[0053] Secondly, step S2.2: Based on the device information, determine the platform category to which each playback terminal belongs according to the preset multi-level classification hierarchy. The multi-level classification hierarchy includes at least the device type hierarchy, the operating system hierarchy, and the playback environment hierarchy.

[0054] Multi-level classification refers to a pre-defined tree-like classification structure used to group different device information into progressively more detailed categories. Each level is arranged from coarse to fine, with each higher-level category containing multiple lower-level categories. In this invention, the hierarchical order is: device type level, operating system level, and playback environment level. The determination method is as follows: the corresponding fields in the device information collected in S2.1 are matched level by level in the pre-defined classification tree to obtain the platform category path corresponding to the playback session.

[0055] The device type level value directly adopts the device type from S2.1. The operating system level value is the operating system category under the device type, and the playback environment level value is the playback environment category under the operating system category. The audio output method does not participate in the level division and is only used as an auxiliary attribute when reporting behavioral events.

[0056] For example, the device information for a playback session is: Device type: Mobile phone, Operating system type: Android, Playback environment type: Indoor stationary. After multi-level classification matching, the platform category path for this session is: Mobile phone / Android / Indoor stationary. Another session has the following device information: Device type: Mobile phone, Operating system type: iOS, Playback environment type: Indoor mobile; the platform category path is: Mobile phone / iOS / Indoor mobile.

[0057] Next, step S2.3 sets a minimum sample size threshold for each category level. When the number of playback sessions within the preset statistical period is lower than the minimum sample size threshold, the corresponding level will be aggregated and reverted to the corresponding upper-level category level.

[0058] The minimum sample size threshold is used to ensure that the number of samples under each platform category is statistically significant in subsequent statistical analysis. The threshold is set separately for the device type level, operating system level, and playback environment level. In this invention, the minimum sample size threshold is set to 200 for the device type level, 100 for the operating system level, and 50 for the playback environment level. The rationale for this setting is that the device type level contains the largest number of sessions, requiring a higher threshold to ensure representativeness; the playback environment level has the highest degree of segmentation, so the threshold is appropriately lowered to retain more subcategories while avoiding too many samples and insufficient categories.

[0059] The aggregation rollback rule is as follows: when the number of playback sessions of a certain category under a certain level is lower than the minimum sample size threshold corresponding to that level within a preset statistical period, that category will no longer be retained separately, but its playback session data will be merged into its direct parent category.

[0060] The preset statistical period is set to 7 days, based on the principle that 7 days can cover the complete behavioral cycle of users during work and rest days, while maintaining data timeliness. A rollback judgment is performed after each 7-day period.

[0061] For example, within a preset statistical period of 7 days, if there are 43 playback sessions under the "Mobile / Android / Indoor Still" category, which is below the minimum sample size threshold of 50 for the playback environment level, a rollback is triggered. The 43 playback sessions in this category are merged into its direct parent category, "Mobile / Android". After the rollback, the number of sessions in the "Mobile / Android" category increases accordingly. If there are 122 playback sessions under the "Mobile / Android / Outdoor Still" category, which is not less than 50, it remains an independent category and is not rolled back.

[0062] Next, in step S2.4, during the playback of the target video, the playback behavior events of the users on each playback terminal are collected. The playback behavior events include at least manual volume adjustment events and manual screen brightness adjustment events.

[0063] Specifically, the data collection method is as follows: the player listens for volume button events and brightness adjustment control events on the terminal system during target video playback. When the user actively changes the volume or screen brightness, a corresponding playback behavior event is generated. The playback behavior event record includes: event type, time of occurrence, target video playback position, value before adjustment, value after adjustment, and session ID.

[0064] Manual volume adjustment events refer to user actions that change the playback volume using the physical volume buttons on the terminal or the volume controls on the player. Manual screen brightness adjustment events refer to user actions that change the screen brightness using the brightness adjustment controls on the player. Events caused by automatic system adjustments or the player automatically adapting to ambient brightness are not recorded.

[0065] For example, when a user plays a target video at the 12-second mark, they adjust the volume from 40 to 55 using the phone's volume buttons. The player generates a manual volume adjustment event, recording the event type: volume adjustment, occurrence time: 12 seconds into the target video, initial value: 40, final value: 55, and session ID: S001. The same user, at the 28-second mark, adjusts the screen brightness from 60 to 45 using the player controls, generating a manual screen brightness adjustment event, recording the initial value: 60, final value: 45, and session ID: S001.

[0066] In step S2.4, when the player starts a playback session on the target video for the first time, and there is no corresponding historical playback behavior event in the policy configuration library for the current platform category, the acquisition process still executes normally, that is, it listens for the terminal volume key event and the player brightness adjustment control event and generates playback behavior event.

[0067] Additionally, at the start of the first playback session, the player creates a cold start flag field locally to record whether the current session is the first time behavior data has been collected under this platform category. The field value includes: Yes or No. The determination method is as follows: the player queries the policy configuration library to see if there are any reported playback behavior event records for the current platform category. If not, the cold start flag is set to Yes; otherwise, it is set to No.

[0068] Finally, step S2.5 reports the collected playback behavior events, device information, and platform category to the data warehouse, and performs offline aggregation processing according to a preset aggregation cycle. The reporting method is as follows: after a playback session ends, the playback terminal packages all playback behavior events collected in the current session, the device information collected in S2.1, and the platform category path determined in S2.2, and sends them to the data warehouse through the data reporting interface. The data warehouse receives the data and stores it according to the session ID.

[0069] The preset aggregation period is set to 24 hours. The reason for this setting is that the amount of playback behavior data is large, and daily aggregation can control the amount of data calculated in a single aggregation while ensuring the timeliness of the analysis.

[0070] Offline aggregation processing starts when the preset aggregation period arrives, and groups and statistically analyzes all playback behavior events reported in the past 24 hours by platform category level and event type. The statistical results include: the number of manual volume adjustment events under each platform category, the number of manual screen brightness adjustment events under each platform category, and the distribution of adjustment magnitude under each platform category.

[0071] The aggregation rollback in step S2.3 above is performed separately at the end of each preset statistical period, i.e., 7 days. The category assignment after the execution is completed is used as the grouping basis for offline aggregation in S2.5. The preset aggregation period for S2.5 is 24 hours, but the aggregation calculation reads the category assignment results after the rollback in S2.3 has been completed. In actual execution, the daily aggregation uses the category structure after the most recent 7-day rollback.

[0072] For example, a user generated playback session S001 within 7 days, with device information as Mobile / Android / Indoor Stationary. However, the number of sessions in this category within 7 days was 43, and it has been rolled back to Mobile / Android. Session S001 generated 2 manual volume adjustment events and 1 manual screen brightness adjustment event. When the 24-hour aggregation period arrived, the 3 events of this session were classified under the Mobile / Android category for statistics. The Mobile / Android category aggregated a total of 316 manual volume adjustment events and 189 manual screen brightness adjustment events within this aggregation period, with the adjustment range mainly being volume increase of 10 to 15 and brightness decrease of 10 to 20.

[0073] It should be noted that the above values ​​are for illustrative purposes only and do not constitute a limitation on the present invention.

[0074] In summary, this step performs stratified statistics on the data according to dimensions such as device type, operating system, and playback environment. When the sample size is insufficient, stratified aggregation and rollback are used to ensure the stability of the statistical results, providing a data foundation for analyzing the adjustment preferences of different playback terminal users for the target video audiovisual parameters.

[0075] S3: For each slice corresponding to each platform category, select effective adjustment behaviors from the playback behavior events, and combine the effective adjustment behaviors with the global benchmark of each slice to calculate the audiovisual parameter preference offset on each slice under the corresponding platform category.

[0076] This step involves filtering effective adjustment behaviors from playback behavior events across different platform categories, assigning weights to behaviors based on the user's completion status after each segment, and then performing weighted calculations using a global benchmark to obtain the volume preference offset and brightness preference offset for each platform category in each segment.

[0077] This step S3 includes:

[0078] S3.1: Using the platform category as an index, traverse the playback behavior events, filter the segment categories in the playback behavior events where manual adjustment behavior occurred, determine them as valid adjustment behaviors, and determine the corresponding users as valid behavior users. The manual adjustment behaviors include manual volume adjustment behavior and manual screen brightness adjustment behavior.

[0079] S3.2: Obtain the completion status data corresponding to each effective adjustment behavior, wherein the completion status data represents whether the user of the corresponding effective behavior continues to watch within a preset observation period after the slice of the effective adjustment behavior;

[0080] S3.3: Based on the completion status data, assign corresponding behavior weight values ​​to each of the effective behavior users, wherein users who continue watching are assigned a first weight value, users who do not continue watching are assigned a second weight value, and the first weight value is greater than the second weight value.

[0081] S3.4: Based on the behavior weight value, the adjustment behavior data of each effective behavior user in each slice are weighted, and the volume preference offset and brightness preference offset are calculated respectively in combination with the global benchmark of the corresponding slice, as the audiovisual parameter preference offset of the corresponding platform category in the corresponding slice.

[0082] Specifically, step S3.1 first uses the platform category as an index to traverse playback behavior events, filters the segment categories in the playback behavior events in which manual adjustment behavior has occurred, determines them as valid adjustment behaviors, and determines the corresponding users as valid behavior users. Among them, manual adjustment behaviors include manual volume adjustment behavior and manual screen brightness adjustment behavior.

[0083] The platform category follows the multi-level classification path defined in S2.2. The slice scope follows the time range corresponding to each slice in the slice sequence generated in S1. The traversal method is as follows: using the platform category as the grouping key, traverse all manual adjustment behavior events reported in all playback sessions under that category one by one. For each playback behavior event, read its event type and target video playback position. If the event type is manual volume adjustment behavior or manual screen brightness adjustment behavior, match the target video playback position where the event occurred to the corresponding slice, record the slice as a valid adjustment behavior, and identify the user who triggered the event as a valid behavior user.

[0084] When the same user manually adjusts a parameter in multiple slices, each adjustment is counted as a valid adjustment in each slice. When the same user adjusts the same parameter multiple times in the same slice, the multiple adjustments are combined into a single valid adjustment within that slice. The value before the adjustment is the value before the first adjustment, and the value after the adjustment is the value after the last adjustment.

[0085] For playback sessions marked as "cold start," if a manual adjustment behavior event is collected in the session, it will still be processed as a valid adjustment behavior according to the normal procedure. For sessions marked as "cold start" but without any manual adjustment behavior events, they will not participate in the valid adjustment behavior screening, nor will they be included in the minimum sample size threshold statistics in S2.3, to avoid diluting the proportion of valid behaviors by cold start sessions without adjustment behaviors.

[0086] For example, platform category: mobile phone / Android / indoor stillness. User U001 manually adjusts the volume once within the slice [2.8s, 4.9s], with the playback position at 3.5s. This slice [2.8s, 4.9s] is determined to be a valid adjustment behavior, and user U001 is identified as a valid user behavior user within this slice. User U001 then manually adjusts the screen brightness twice within the slice [4.9s, 8.1s]. This is combined into one valid adjustment behavior within this slice, and user U001 is again identified as a valid user behavior user within this slice.

[0087] In another scenario, if a playback session is marked as "cold start," meaning the user did not manually adjust the volume or screen brightness during that session, then that session will not be included in the valid adjustment behavior filtering and will not be counted in the playback session count for that platform category in S2.3. The platform category corresponding to that session will not have its valid user count changed due to the existence of that session when subsequently calculating the offset.

[0088] Secondly, step S3.2 obtains the completion status data corresponding to each effective adjustment behavior. The completion status data represents whether the user of the corresponding effective behavior continues to watch within the preset observation time after the slice of the effective adjustment behavior.

[0089] The completion status data is obtained from the playback progress record of the playback session. The preset observation time is set to 10 seconds. The setting is based on whether the user continues to watch within 10 seconds after the manual adjustment behavior occurs. This can reflect the user's immediate acceptance of the audiovisual parameter adjustment results of the current segment. At the same time, the observation time is shorter than the duration of a basic segment, which can avoid the interference of the user continuing to watch due to the attractiveness of subsequent content.

[0090] The determination method is as follows: starting from the moment a valid adjustment behavior occurs, check whether the user has a continuous playback record within the next 10 seconds of the playback session. If a continuous playback record exists, it is determined that the user continues watching; if playback is exited, the player is closed, or the playback session is interrupted, it is determined that the user did not continue watching.

[0091] For example, user U001's effective adjustment action within the slice [2.8s, 4.9s] occurred at 3.5s. Reading this user's playback session record, playback progress was continuously recorded from 3.5s to 13.5s, indicating continued viewing. User U002's effective adjustment action within the slice [4.9s, 8.1s] occurred at 6.0s. Reading the playback session record, from 6.0s to 16.0s, an exit playback event was detected at 8.2s, indicating no further viewing.

[0092] Next, in step S3.3, based on the completion status data, each valid user is assigned a corresponding behavior weight value. Users who continue watching are assigned a first weight value, and users who do not continue watching are assigned a second weight value, with the first weight value being greater than the second weight value.

[0093] Specifically, the first weight value is set to 1.0, and the second weight value is set to 0.3. The rationale is as follows: continuing to watch indicates that the user did not show significant rejection of the adjusted audiovisual parameters, and the adjustment behavior has positive reference value, thus it should be given full weight; not continuing to watch may be due to various reasons, and does not necessarily mean that the adjustment behavior has no reference value, therefore it still retains some weight, but its confidence level is lower than that of continuing to watch. The ratio of the first weight value to the second weight value is approximately 3.3:1, ensuring that the behavior of users who continue to watch dominates in the subsequent offset calculation, while not completely excluding data from users who do not continue to watch.

[0094] The assignment method is as follows: after obtaining the completion status data in S3.2, values ​​are assigned according to the user's completion status on that slice. If the same user has different completion statuses on different slices, a corresponding weight value is assigned to each slice respectively.

[0095] For example, user U001's viewing status after completing the video in segment [2.8s, 4.9s] is "Continue Watching," so it is assigned a first weight value of 1.0. User U001's viewing status after completing the video in segment [4.9s, 8.1s] is also "Continue Watching," so it is still assigned a first weight value of 1.0. User U002's viewing status after completing the video in segment [4.9s, 8.1s] is "Not Continue Watching," so it is assigned a second weight value of 0.3.

[0096] Finally, step S3.4, based on the behavior weight value, weights the adjustment behavior data of each effective user in each slice, and calculates the volume preference offset and brightness preference offset respectively in combination with the global benchmark of the corresponding slice, as the audiovisual parameter preference offset of the corresponding platform category in the corresponding slice.

[0097] The adjustment behavior data includes both pre-adjustment and post-adjustment values. Volume adjustment behavior data is expressed in volume values, ranging from 0 to 100. Brightness adjustment behavior data is expressed as a brightness percentage, also ranging from 0 to 100. The global baseline is the average of playback parameters for all users across all platform categories on the corresponding segment. The calculation method is as follows: For each segment, first, the pre-adjustment volume and brightness values ​​for all valid users across all platform categories on that segment are statistically analyzed, and then averaged to obtain the global volume and global brightness baselines for that segment.

[0098] The formulas for calculating volume preference offset are: Volume preference offset = Σ(weight value (i) × (volume adjusted value (i) − global volume baseline)) / Σweight value (i); and Brightness preference offset = Σ(weight value (i) × (brightness adjusted value (i) − global brightness baseline)) / Σweight value (i). The weight value (i) mentioned above is the weight value of the i-th valid user's behavior in this slice, and the adjusted value (i) is the adjusted value of this user in this slice. The calculation is only for users corresponding to valid adjustment behaviors; users who have not performed manual adjustment behaviors are not included in the calculation.

[0099] When a platform category has no users making any effective adjustments on the corresponding slice, the volume preference offset and brightness preference offset for that platform category on that slice are both initialized to 0, indicating that no compensation is generated.

[0100] For example, in the slice [2.8s, 4.9s], there are 3 valid user behaviors under the category of mobile phone / Android / indoor stillness. The global baseline for volume in this slice is 45, and the global baseline for brightness is 60. User U001 has a weight of 1.0, and after adjusting the volume, the value is 55; after adjusting the brightness, the value is 50. User U002 has a weight of 1.0, and after adjusting the volume, the value is 50; after adjusting the brightness, the value is 58. User U003 has a weight of 0.3, and after adjusting the volume, the value is 40; after adjusting the brightness, the value is 65. The volume preference offset is calculated as follows: (1.0×(55−45)+1.0×(50−45)+0.3×(40−45)) / (1.0+1.0+0.3)≈5.87; the brightness preference offset is calculated as follows: (1.0×(50−60)+1.0×(58−60)+0.3×(65−60)) / (1.0+1.0+0.3)≈−4.57. The volume preference offset for this platform category on slice [2.8s, 4.9s] is +5.87, indicating that users in this category tend to adjust the volume to approximately 5.87 units higher than the global baseline; the brightness preference offset is −4.57, indicating that users in this category tend to adjust the brightness to approximately 4.57 units lower than the global baseline. These offsets are output as the audiovisual parameter preference offsets for the mobile / Android / indoor static platform category on slice [2.8s, 4.9s].

[0101] In another scenario, if a user on a certain platform category (mobile phone / Android / vehicle terminal) does not exhibit any effective adjustment behavior during the slice [2.8s, 4.9s], then the volume preference offset and brightness preference offset for that platform category in that slice are both 0. Subsequently, in S4, the target values ​​for audio gain and screen brightness compensation for that platform category in that slice are both 0, and no compensation is applied.

[0102] It should be noted that the above values ​​are for illustrative purposes only and do not constitute a limitation on the present invention.

[0103] In summary, the offset obtained in this step can directly reflect the tendency of users on different platform categories to actively adjust the audiovisual parameters of each slice of the target video, providing a quantitative basis for dynamically adjusting the playback volume and screen brightness according to the platform category in the future.

[0104] S4: Based on the audiovisual parameter preference offset, determine the target audio gain value and target screen brightness compensation value for each platform category in each slice, and build and maintain the strategy configuration library.

[0105] This step involves multiplying the volume preference offset and brightness preference offset of each platform category on each slice by the corresponding compensation scaling factor, and then writing them into the policy configuration library after safety boundary clipping. Finally, it is deployed through grayscale verification and full release to quantify user preferences into audio gain target values ​​and screen brightness compensation target values ​​that the player can call.

[0106] This step S4 includes: S4.1: Multiply the volume preference offset in the audio-visual parameter preference offset by the audio compensation scaling factor to calculate the audio gain target value; multiply the brightness preference offset in the audio-visual parameter preference offset by the brightness compensation scaling factor to calculate the screen brightness compensation target value. S4.2: Perform safety boundary clipping on the target audio gain value and the target image brightness compensation value respectively; S4.3: Write the target audio gain value and the target image brightness compensation value corresponding to each slice for each platform category after cropping into the strategy configuration library; S4.4: Perform gray-scale verification on the updated policy configuration library. After the verification is successful, release it to the full library and iteratively update the policy configuration library according to the preset update cycle. The audio compensation scaling factor takes different values ​​depending on the audio output method of the playback terminal. The value corresponding to the Bluetooth headphone scenario is smaller than the value corresponding to the speaker playback scenario and the wired headphone scenario.

[0107] Specifically, in step S4.1, the volume preference offset in the audiovisual parameter preference offset is first multiplied by the audio compensation scaling factor to calculate the audio gain target value, and the brightness preference offset in the audiovisual parameter preference offset is multiplied by the brightness compensation scaling factor to calculate the screen brightness compensation target value.

[0108] The volume preference offset and brightness preference offset use the calculation results from S3.4. The audio compensation scaling factor is used to convert the volume offset from volume units to audio gain units. The audio gain target value is expressed in decibels, representing the amount of gain that needs to be added or reduced based on the current playback volume. The brightness compensation scaling factor is used to convert the brightness offset from brightness percentage units to screen brightness compensation amounts. The screen brightness compensation target value is expressed as a brightness percentage, representing the amount of compensation that needs to be added or reduced based on the current screen brightness.

[0109] The above audio compensation scaling factor takes different values ​​depending on the audio output method of the playback terminal. The setting method is as follows: 0.6 for speaker playback, 0.6 for wired headphones, and 0.3 for Bluetooth headphones. The reason for this setting is that Bluetooth headphone output links usually have encoding compression and volume limit restrictions, and large gain adjustments can easily introduce clipping distortion. Therefore, a smaller scaling factor is used to reduce the compensation amplitude; speaker playback and wired headphone outputs have a larger dynamic range, so a larger scaling factor can be used.

[0110] The brightness compensation scaling factor is uniformly set to 0.8. The rationale for this setting is that brightness compensation directly affects the display device, and excessive compensation can lead to overexposure or underexposure of the image. A factor of 0.8 allows for a 20% adjustment margin while responding to user preferences.

[0111] Specifically, the audio gain target value is calculated as follows: audio gain target value = volume preference offset × audio compensation scaling factor; screen brightness compensation target value = brightness preference offset × brightness compensation scaling factor.

[0112] For example, for the mobile phone / Android / Bluetooth headset platform category, the volume preference offset is +5.87 and the brightness preference offset is -4.57 in the slice [2.8s, 4.9s]. The audio output method for this category is Bluetooth headset, and the audio compensation scaling factor is 0.3. Therefore, the target audio gain value is 5.87 × 0.3 = +1.76dB. The target screen brightness compensation value is -4.57 × 0.8 = -3.66%. The compensation targets for this platform category in this slice are audio gain +1.76dB and screen brightness -3.66%.

[0113] Secondly, step S4.2 performs safety boundary clipping on the audio gain target value and the screen brightness compensation target value to prevent the compensation target value from exceeding the hardware capabilities of the playback terminal or the safe range of auditory and visual perception.

[0114] The safe boundary for the audio gain target value is set to -6dB to +6dB. This is based on the following: gain exceeding +6dB can easily lead to audio signal clipping distortion, while attenuation exceeding -6dB will result in volume that is too low to hear clearly. The safe boundary for the image brightness compensation target value is set to -40% to +40%. This is based on the following: brightness compensation exceeding +40% will cause severe overexposure, while exceeding -40% will cause the image to be too dark and lose detail.

[0115] The cropping method is as follows: if the calculated target audio gain value is less than -6dB, it is cropped to -6dB; if it is greater than +6dB, it is cropped to +6dB; if it is within the boundary range, the original value is retained. The target value for screen brightness compensation is cropped in the same way, according to the boundary between -40% and +40%.

[0116] For example, the target audio gain for the mobile phone / Android / Bluetooth headset category on slice [2.8s, 4.9s] is +1.76dB, which falls within the range of -6dB to +6dB, so it is not cropped and remains at +1.76dB. The target brightness compensation is -3.66%, which falls within the range of -40% to +40%, so it is not cropped and remains at -3.66%. For another platform category, mobile phone / iOS / wired headsets, the target audio gain for a certain slice is +8.2dB, which exceeds the +6dB boundary, so it is cropped to +6dB. For another platform category, mobile phone / Android / built-in speaker, the target brightness compensation for a certain slice is -52%, which exceeds the -40% boundary, so it is cropped to -40%.

[0117] Next, step S4.3 writes the target audio gain and target image brightness compensation values ​​for each platform category in each slice into the strategy configuration library.

[0118] The strategy configuration library is a data table that stores the mapping relationship between platform categories, slice identifiers, audio gain target values, and image brightness compensation target values. The writing method is as follows: the cropped compensation target value for each platform category on each slice is written to the strategy configuration library as a record. Record fields include: platform category path, audio output method, slice start time, slice end time, audio gain target value, image brightness compensation target value, and update time. If an old record corresponding to the same platform category and the same slice already exists in the strategy configuration library, the old record is overwritten.

[0119] The offset initialized to 0 in S3.4 is converted into an audio gain target value of 0dB and a screen brightness compensation target value of 0% and then written into the policy configuration library as the initial policy for the corresponding slice of this platform category. Subsequently, as S2.4 continuously collects playback behavior events, this platform category gradually accumulates effective adjustment behavior data, and then recalculates the offset and updates the policy configuration library through S3 and S4 according to the preset update cycle, completing the cold start transition.

[0120] For example, for the "Mobile / Android / Bluetooth Headset" category, after cropping at slice [2.8s, 4.9s], the target audio gain is +1.76dB, and the target screen brightness compensation is -3.66%. The record written to the policy configuration library is: Platform Category Path: Mobile / Android / Indoor Stillness, Audio Output Method: Bluetooth Headset, Slice Start Time: 2.8s, Slice End Time: 4.9s, Audio Gain Target Value: +1.76, Screen Brightness Compensation Target Value: -3.66, Update Time: 2025-09-03 10:00:00. This process iterates through all platform categories and all slices, writing the values ​​one by one.

[0121] In another scenario, for the mobile / Android / vehicle terminal platform category, the volume preference offset and brightness preference offset on slice [2.8s, 4.9s] are both 0. After calculation in S4.1 and cropping in S4.2, the target audio gain value remains 0dB, and the target screen brightness compensation value remains 0%, and this is written to the policy configuration library. Seven days later, there are 18 playback sessions under this platform category, of which 5 sessions involve manual adjustment. Based on the data from these sessions, S3 and S4 are re-executed to calculate the offset of this platform category on this slice and update the corresponding record in the policy configuration library.

[0122] Finally, step S4.4 performs gray-scale verification on the updated policy configuration library. After successful verification, it is fully released and the policy configuration library is iteratively updated according to the preset update cycle.

[0123] Gray-scale verification refers to the process of distributing the updated policy configuration to a small number of playback terminals before the new policy is fully applied, and observing whether the compensation target value triggers any anomalies. The traffic ratio for gray-scale verification is set to 5%, based on the premise that 5% of the terminals is sufficient to cover the main platform categories, while the impact of anomalies is controllable. Verification indicators include: the number of audio clipping events reported by gray-scale terminals, the number of screen brightness exceeding limits events, and changes in playback exit rate. The verification pass condition is that during the gray-scale period, the difference in playback exit rate between gray-scale and non-gray-scale terminals does not exceed 1 percentage point, and there is no concentrated reporting of audio clipping events. The gray-scale period is set to 24 hours.

[0124] Full rollout refers to distributing the updated strategy configuration library to all playback terminals after the gray-scale verification is passed. The distribution method is as follows: before playing the target video, the playback terminal retrieves the compensation target value corresponding to the platform category and slice range from the strategy configuration library and caches it locally.

[0125] The preset update cycle is set to 7 days, consistent with the preset statistical cycle in S2.3. This setting is based on the premise that 7 days is sufficient to accumulate enough new playback behavior data for recalculating the offset and updating the strategy. The iterative update method is as follows: at the end of each update cycle, based on the new playback behavior events added within the last 7 days, S3 to S4.3 are re-executed to generate a new strategy configuration that overwrites the old configuration, followed by another round of gray-scale verification and full deployment.

[0126] For example, after updating the policy configuration library and writing all records on September 3, 2025, the new configuration was distributed to 5% of the playback terminals. During the 24-hour gray-scale verification, no audio clipping events were reported by the gray-scale terminals, and the playback exit rate was 2.1%, while the playback exit rate for non-gray-scale terminals was 2.4%, a difference of 0.3 percentage points, less than 1 percentage point, thus the verification was deemed successful. Subsequently, the policy configuration library was fully distributed to all playback terminals. Seven days later, based on playback behavior data from September 4 to September 10, 2025, the offset was recalculated and the policy configuration library was updated, and gray-scale verification and full distribution were performed again.

[0127] It should be noted that the above values ​​are for illustrative purposes only and do not constitute a limitation on the present invention.

[0128] In summary, this step can provide differentiated audiovisual parameter compensation for different playback terminals according to platform category and slice position. While avoiding abnormalities such as overexposure and clipping, it makes the playback effect more in line with the actual adjustment preferences of various users, and maintains the timeliness of the strategy through periodic iteration.

[0129] S5: During the subsequent playback of the target video, the playback optimization is performed on the target video by combining the strategy configuration library, the real-time device information, and the slice in which the current playback position is located.

[0130] like Figure 2 As shown, this step involves acquiring device information in real time to determine the platform category during subsequent playback of the target video. Combining this with the strategy configuration library and the current playback position within the specified slice, it dynamically queries and applies the corresponding audio gain target value and screen brightness compensation target value. During the compensation process, screen brightness compensation is skipped for high dynamic range content, a smooth transition is implemented between brightness and audio gain changes between adjacent slices, and a minimum audio gain limit and rapid response are guaranteed for slices containing warning audio content.

[0131] This step S5 includes: S5.1: Update the obtained device information and determine the platform category to which the current playback terminal belongs; S5.2: Based on the platform category, traverse and query the strategy configuration library to determine the audio gain target value list and screen brightness compensation target value list corresponding to the current playback terminal; S5.3: Based on the slice where the current playback position is located, query and determine the audio gain target value and the screen brightness compensation target value in real time from the audio gain target value list and the screen brightness compensation target value list; S5.4: Based on the target audio gain value and the target screen brightness compensation value, synchronously perform audio gain and screen brightness compensation on the slice where the current playback position is located to achieve playback optimization.

[0132] Specifically, step S5.1 first updates the acquired device information to determine the platform category of the current playback terminal. Updating the acquisition means rereading the device information of the current terminal each time a playback session starts, rather than reusing historical cache. The acquisition method is consistent with S2.1, that is, the player calls the terminal system interface to read the device type, operating system type, playback environment type, and audio output method. After obtaining the device information, it is matched according to the multi-level classification hierarchy in S2.2 to obtain the platform category path of the current playback terminal.

[0133] The audio output method in the device information requires special attention. Since users may switch audio output devices during playback, such as from the built-in speakers to Bluetooth headphones, the player needs to reread the audio output method and update the platform category determination result for the current session when the playback session starts and when a change in the audio output device is detected. The playback environment type generally remains stable within a single playback session and is not dynamically updated.

[0134] For example, when a user plays a target video on their mobile phone, the player reads the device type as mobile phone, the operating system type as Android, the playback environment type as indoor and static, and the audio output method as Bluetooth headphones when the playback session starts. After multi-level classification matching, the platform category path of the current playback terminal is determined to be mobile phone / Android / indoor and static. The audio output method is used as an independent query condition, combined with the platform category path, and then queried in the policy configuration library. At the 30-second mark of playback, the user switches the audio output method from Bluetooth headphones to the built-in speaker. The player detects the change in output device and rereads the audio output method as built-in speaker. The platform category path remains mobile phone / Android / indoor and static, and the audio output method in the query condition is updated to built-in speaker.

[0135] Secondly, step S5.2 involves traversing and querying the strategy configuration library according to the platform category to determine the audio gain target value list and screen brightness compensation target value list corresponding to the current playback terminal.

[0136] The strategy configuration library stores the target audio gain and target image brightness compensation values ​​for each platform category across each slice. The query method is as follows: using the platform category path and audio output method determined in S5.1 as joint query conditions, a query is initiated to the strategy configuration library to retrieve the audio gain and target image brightness compensation value records for all slices under that platform category. The query results are sorted in ascending order by slice start time, forming a list of audio gain target values ​​and a list of target image brightness compensation values.

[0137] Each record in the audio gain target value list includes: slice start time, slice end time, and audio gain target value. Each record in the image brightness compensation target value list includes: slice start time, slice end time, and image brightness compensation target value. If no record is found for the current platform category, it means that a valid compensation strategy has not yet been generated for that platform category. In this case, both the audio gain target value list and the image brightness compensation target value list are empty, and no compensation will be performed in subsequent steps.

[0138] For example, the player uses the platform category path "Mobile / Android / Indoor Stillness" and the audio output method "Bluetooth Headphones" as joint query conditions to retrieve the compensation target value records for all slices under this category from the policy configuration library, totaling 6 records, corresponding to slices [2.8s, 4.9s], [4.9s, 8.1s], [8.1s, 11.0s], [11.0s, 13.6s], [13.6s, 17.2s], and [17.2s, 20s]. The first record in the audio gain target value list is: slice start 2.8s, slice end 4.9s, audio gain target value +1.76dB. The first record in the screen brightness compensation target value list is: slice start 2.8s, slice end 4.9s, screen brightness compensation target value -3.66%.

[0139] Next, step S5.3 determines the target audio gain value and the target image brightness compensation value in real time by querying the audio gain target value list and the image brightness compensation target value list based on the slice where the current playback position is located.

[0140] Specifically, the real-time query method is as follows: During playback, the player continuously obtains the current playback position and matches the time value of the current playback position with the slice start time and slice end time of each record in the list. When the current playback position falls within the time interval of a certain record, the audio gain target value and the screen brightness compensation target value in that record are taken as the compensation target values ​​to be applied to the current slice.

[0141] The player performs a matching check every time the playback position is updated. The playback position update frequency is consistent with the video frame timestamp; for a 30fps video, a check is performed every 33.3ms. If the playback position crosses into a new slice between two adjacent checks, the compensation target value corresponding to the new slice is read immediately upon crossing. If the current playback position has not yet entered any slice time interval, no compensation is applied. If the list retrieved for the current platform category is empty, this step is not executed, and no compensation target value is output.

[0142] For example, the current playback position is 3.5s, which falls within the time interval of slice [2.8s, 4.9s]. The player queries the audio gain target value list and the screen brightness compensation target value list to find that the audio gain target value for this slice is +1.76dB, and the screen brightness compensation target value is −3.66%. The player uses these two values ​​as the compensation target values ​​to be applied to the current slice. When the playback position advances to 4.9s, the next record is matched, and the player switches to the compensation target value corresponding to slice [4.9s, 8.1s].

[0143] Finally, step S5.4 performs audio gain and image brightness compensation on the slice where the current playback position is located simultaneously based on the target audio gain value and the target image brightness compensation value, thereby achieving playback optimization.

[0144] Synchronization compensation refers to the simultaneous application of audio gain compensation and image brightness compensation at the same playback position update point, preventing audio and image from being out of sync in terms of compensation timing. Audio gain compensation works by adding a target audio gain value to the base playback volume of the current audio output link. When the target audio gain value is positive, the gain increases; when it is negative, the gain decreases. Image brightness compensation works by adding a target image brightness compensation value to the base image brightness. When the target image brightness compensation value is positive, the image brightens; when it is negative, the image dims.

[0145] The audio gain and screen brightness compensation mentioned above both use a gradual transition method with a transition duration of 200ms. This setting is based on the principle that a 200ms transition time is sufficient for smooth changes in gain and brightness, avoiding abrupt changes that could cause jarring auditory or visual effects, while also not significantly lagging behind slice transitions. The transition start point is the slice boundary or the moment the current playback position enters the slice, and the transition end point is 200ms after the start point. During the transition, the compensation value linearly transitions from 0 to the target value; for the remaining time of the slice, the compensation value remains unchanged at the target value. If the slice duration is less than 200ms, the slice duration is used as the transition duration; however, in real-world scenarios, slice durations are typically greater than 1 second, so this situation will not occur.

[0146] For example, at the current playback position of 3.5s, within the slice [2.8s, 4.9s], the target audio gain for this slice is +1.76dB, and the target brightness compensation is -3.66%. The player begins the compensation transition at 3.5s, smoothly increasing the audio gain from 0 to +1.76dB within 200ms, while simultaneously smoothly adjusting the brightness from 0 to -3.66%. After the transition, the +1.76dB audio gain and -3.66% brightness compensation remain unchanged for the remaining playback time of the slice [2.8s, 4.9s]. When the playback position reaches 4.9s and enters the next slice, the player presses the corresponding compensation target value for each slice and re-executes the 200ms gradual transition.

[0147] In this step, based on the target audio gain value and the target image brightness compensation value, the audio gain and image brightness compensation of the slice at the current playback position are performed synchronously to achieve playback optimization. Prior to this, the following steps are also included: Detect whether the currently playing video is high dynamic range content; If the detection result is yes, skip the screen brightness compensation and only perform audio gain; If the detection result is negative, perform synchronous audio gain and screen brightness compensation.

[0148] Specifically, it detects whether the currently playing video is high dynamic range content; if the detection result is yes, it skips screen brightness compensation and only performs audio gain; if the detection result is no, it performs synchronous audio gain and screen brightness compensation.

[0149] High dynamic range (HDR) content refers to video footage encoded using HDR encoding, where the dynamic range of the luminance component exceeds the standard dynamic range. The detection method involves the player reading the encoded metadata of the current video stream to determine the presence of an HDR identifier. Specific detection fields include video encoding type and color information. When the video encoding type is HEVC or AV1, and the color information contains the SMPTE ST 2084 transfer function or the HLG transfer function, the current video is determined to be HDR content.

[0150] Specifically, the settings are based on the following: High dynamic range (HDR) content inherently has a wide brightness range, and image brightness compensation would alter the display mapping curve, easily disrupting the brightness levels and color consistency of HDR content; therefore, image brightness compensation is not performed. Standard dynamic range (SVR) content has a limited brightness range, and image brightness compensation's impact on content brightness is within acceptable limits and can be implemented normally.

[0151] The judgment process is as follows: Each time the player enters a new segment and determines the corresponding audio gain target value and screen brightness compensation target value, it first performs high dynamic range content detection. If the detection result is yes, only the audio gain target value is sent to the audio processing module, and the screen brightness compensation target value is not effective, maintaining the screen brightness at the current player's base brightness. If the detection result is no, both the audio gain target value and the screen brightness compensation target value are sent simultaneously, and synchronous compensation is performed.

[0152] For example, if the currently playing video is HEVC encoded and its color information contains the SMPTE ST 2084 transfer function, it is determined to be high dynamic range (HDR) content. The player queries the slice [2.8s, 4.9s] and finds an audio gain target value of +1.76dB and a screen brightness compensation target value of -3.66%. Since the HDR content detection result is positive, screen brightness compensation is skipped, and only the audio gain of +1.76dB is performed, while the screen brightness remains unchanged at the base brightness. If the currently playing video is H.264 encoded and its color information does not contain an HDR transfer function, the detection result is negative, and both the audio gain of +1.76dB and screen brightness compensation of -3.66% are performed simultaneously.

[0153] In this step, when the current image brightness compensation target value of the current slice is different from the next image brightness compensation target value of the next slice, an asymmetric smooth transition is performed on the image brightness compensation, including: S5.4a1: Calculate the difference in lightness level based on the lightness levels of the current slice and the next slice; S5.4a2: When the difference in brightness level is greater than the preset direction determination threshold, the direction of brightness change is determined to be the upward direction. Before the current slice ends, the transition to the brightness compensation target value of the next frame is triggered in advance, and the transition is completed within the preset advance transition time using a deceleration easing curve. S5.4a3: When the difference in brightness level is less than zero and the absolute value is greater than the preset direction determination threshold, the direction of brightness change is determined to be the downward direction. The transition is not triggered before the end of the current slice, and after entering the next slice, an acceleration easing curve is used to transition to the brightness compensation target value of the next frame within a preset lag waiting time. S5.4a4: When the absolute value of the difference in brightness level is not greater than the preset direction determination threshold, the direction of brightness change is determined to be the flat direction, and the transition is completed within the preset transition time using linear interpolation.

[0154] Specifically, step S5.4a1 first calculates the difference in brightness levels based on the brightness levels of the current slice and the next slice. Brightness level refers to the level value after discretizing the brightness characteristic values ​​of the slice image. The brightness characteristic values ​​are the same as those calculated in S1.4, ranging from 0 to 255. The brightness level is divided into 5 intervals, each interval corresponding to a brightness level, with a value from 1 to 5. The interval boundaries are: 0 to 50 corresponds to level 1, 51 to 102 to level 2, 103 to 153 to level 3, 154 to 204 to level 4, and 205 to 255 to level 5.

[0155] The brightness level difference is calculated by subtracting the brightness level of the current slice from the brightness level of the next slice. A positive difference indicates that the image will transition from a darker slice to a brighter slice; a negative difference indicates that the image will transition from a brighter slice to a darker slice; and a difference of 0 indicates that the two slices have the same brightness level.

[0156] For example, the current slice [2.8s, 4.9s] has a brightness characteristic value of 72, corresponding to brightness level 2. The next slice [4.9s, 8.1s] has a brightness characteristic value of 168, corresponding to brightness level 4. The difference in brightness level = 4 − 2 = +2.

[0157] Secondly, in step S5.4a2, when the difference in brightness level is greater than the preset direction determination threshold, the direction of brightness change is determined to be the upward direction. Before the current slice ends, the transition to the brightness compensation target value of the next frame is triggered in advance, and the transition is completed within the preset advance transition time using a deceleration curve.

[0158] The preset direction determination threshold is set to 0. The setting is based on the following criteria: a positive difference in brightness level indicates a change from dark to bright; a negative difference indicates a change from bright to dark; and a difference of 0 indicates that the brightness remains constant. A threshold of 0 can directly distinguish between three directions: rising, falling, and constant.

[0159] The condition for early triggering is: the difference in brightness levels is greater than 0. The early trigger time is set before the end of the current slice, and the advance amount is the preset early transition time. The preset early transition time is set to 300ms. The reason for this setting is that 300ms is sufficient for the brightness compensation value to complete the main changes before the slice switch, and at the same time, due to the short time, the early change in brightness at the end of the current slice is not easily perceived by the user.

[0160] The deceleration curve is used for the transition in the upward direction. A deceleration curve refers to a curve where the rate of change of values ​​gradually slows down during the transition. This invention uses a quadratic deceleration curve, with the transition progress p(t) = 1 − (1 − t / T)², where t is the elapsed time from the start of the transition, and T is the preset advance transition duration. During the transition, the target brightness compensation value gradually changes from the current value to the next target brightness compensation value according to p(t). The rate of change is faster at the beginning of the transition and slows down near the end, matching the human eye's adaptation to the rapid increase in brightness when the image changes from dark to bright.

[0161] For example, the target brightness compensation value for the current slice [2.8s, 4.9s] is -3.66%, and the target brightness compensation value for the next slice [4.9s, 8.1s] is +5.20%. The brightness level difference is +2, which is greater than 0, and the direction is determined to be upward. The preset advance transition time is 300ms. The current slice ends at 4.9s, and the advance trigger time is 4.6s. Starting from 4.6s, the target brightness compensation value transitions from -3.66% to +5.20%. The transition uses a deceleration curve p(t)=1−(1−t / 0.3)², where t is in seconds. In the first 100ms after the transition begins, the compensation value changes rapidly, quickly approaching +5.20% from -3.66%; as it approaches 4.9s, the rate of change slows down, and at 4.9s, the compensation value reaches +5.20%, connecting with the target value of the next slice.

[0162] Furthermore, in step S5.4a3, when the difference in brightness level is less than zero and the absolute value is greater than the preset direction determination threshold, the direction of brightness change is determined to be the downward direction. The transition is not triggered before the end of the current slice, and after entering the next slice, the preset lag waiting time is waited first, and then the accelerated easing curve is used to transition to the brightness compensation target value of the next frame within the preset downward transition time.

[0163] The criteria for determining the downward direction are: the difference in brightness levels is less than 0, and the absolute value is greater than 0. The transition is not triggered prematurely in the downward direction because if the brightness is reduced before the current slice ends when the image transitions from bright to dark, the latter half of the current slice will darken prematurely, affecting the user's viewing experience. Therefore, the transition is postponed until after the next slice begins.

[0164] The preset lag time is set to 300ms. This setting is based on the fact that after entering a darker slice, users need approximately 300ms to perceive the change in screen content. The brightness decrease transition only begins after this waiting period, avoiding the dual stimulation of the user simultaneously perceiving a change in screen content and a decrease in brightness at the moment of slice switching. The preset decrease transition time is also set to 300ms, the same as the preset lag time.

[0165] An acceleration-easing curve is used for the transition in the descent direction. An acceleration-easing curve refers to a curve where the rate of numerical change gradually increases during the transition. This invention uses a quadratic acceleration curve, with the transition progress q(t) = (t / T)², where t is the elapsed time from the start of the transition, and T is the preset descent transition duration. The rate of change is slow at the beginning of the transition, then gradually accelerates, matching the characteristic that the human eye needs a brief period of adaptation before quickly accepting a decrease in brightness when the screen changes from bright to dark.

[0166] For example, the target brightness compensation value for the current slice [8.1s, 11.0s] is +4.80%, and the target brightness compensation value for the next slice [11.0s, 13.6s] is -6.20%. The current slice's brightness level is 4, and the next slice's brightness level is 1. The brightness level difference is -3, which is less than 0 and its absolute value is greater than 0, indicating a downward direction. The current slice ends at 11.0s, and no transition is triggered before 11.0s, maintaining the brightness at +4.80%. After entering the next slice, a 300ms wait begins from 11.0s, meaning the transition begins at 11.3s. An accelerated easing curve is used to complete the transition between 11.3s and 11.6s. The transition uses an accelerated easing curve q(t) = (t / 0.3)², where t is in seconds. In the initial phase after the transition begins, the brightness changes slowly; as t approaches 0.3s, the rate of change accelerates, and by 11.6s, the compensation value transitions from +4.80% to -6.20%.

[0167] Finally, in step S5.4a4, when the absolute value of the difference in brightness level is not greater than the preset direction determination threshold, the direction of brightness change is determined to be the flat direction, and the transition is completed within the preset transition time using linear interpolation.

[0168] In the case of a flat direction where the absolute value of the difference in brightness level is 0, meaning the two slices have the same brightness level, there is no significant change in the direction of light and dark, and a symmetrical linear transition is sufficient. The preset transition duration is set to 300ms, based on the fact that a flat downward direction does not require directional adaptation, and 300ms is sufficient to complete a smooth transition without causing a sense of lag in the change of compensation value.

[0169] Specifically, the linear interpolation method is as follows: transition progress r(t) = t / T, where t is the elapsed time since the start of the transition, and T is the preset transition duration. The transition start time is the slice switching point, i.e., the moment when the current slice ends and the next slice begins. From this moment on, the target value for image brightness compensation changes uniformly from the value of the current slice to the value of the next slice.

[0170] For example, the target brightness compensation value for the current slice [13.6s, 17.2s] is +1.10%, and the target brightness compensation value for the next slice [17.2s, 20s] is +3.40%. Both slices have a brightness level of 4, a difference of 0, and are considered to be in the same direction. The preset transition time is 300ms. Starting at 17.2s, the target brightness compensation value changes uniformly from +1.10% using linear interpolation r(t) = t / 0.3, reaching +3.40% at 17.5s, completing the transition. During the transition, the brightness change rate is uniform, with no directional differences.

[0171] In this step, when the current audio gain target value of the current slice is different from the next audio gain target value of the next slice, a smooth transition is performed on the audio gain adjustment, including: S5.4b1: Within a preset standard transition time, transition from the current audio gain target value to the next audio gain target value using linear interpolation; S5.4b2: When it is detected that the next slice contains warning audio content, the transition time is shortened to complete the transition within a preset fast response time. S5.4b3: For slices containing warning audio content, the lower limit of the audio gain target value is forcibly set to the minimum gain threshold for warnings.

[0172] Specifically, step S5.4b1 first transitions from the current audio gain target value to the next audio gain target value using linear interpolation within a preset standard transition time.

[0173] The preset standard transition duration is set to 200ms. This is based on the principle that 200ms is sufficient for a smooth change in audio gain, avoiding abrupt changes that could sound jarring, while also not significantly lagging behind slice switching. The linear interpolation method is: transition progress r(t) = t / T, where t is the elapsed time from the start of the transition, and T is the preset standard transition duration. The transition start time is the slice switching point, i.e., the moment when the current slice ends and the next slice begins. From this moment on, the target audio gain value changes uniformly from the target value of the current slice to the target value of the next slice.

[0174] For example, the target audio gain for the current slice [2.8s, 4.9s] is +1.76dB, while the target audio gain for the next slice [4.9s, 8.1s] is -2.40dB. Since they are different, a linear interpolation transition is performed starting at 4.9s, with a preset standard transition duration of 200ms. During the transition, the target audio gain decreases uniformly from +1.76dB to -2.40dB within 200ms, completing the transition at 5.1s. The audio gain changes continuously during the transition without abrupt changes.

[0175] Next, in step S5.4b2, when the target slice is detected to contain warning audio content, the transition duration is shortened to within the preset fast response duration to complete the transition. When the target slice is the next slice, the transition before entering the next slice takes 50ms; when the target slice is the current slice, the player takes 50ms to complete the gain switching when entering the current slice. The fast response transition only applies when entering a slice containing warning audio content; when leaving a warning slice and entering a non-warning slice, the standard transition is still performed.

[0176] Warning audio content uses the semantic tags identified and labeled in S1.4. Warning audio content includes alarm sounds, glass breaking sounds, and impact sounds. The detection method is as follows: before playing to the next segment, read the semantic tags of the segment. If the semantic tags contain warning audio content, a fast response transition is triggered.

[0177] The preset fast response time is set to 50ms, based on the principle that warning audio content needs to be output with sufficient gain as quickly as possible to enhance the perceptibility of the warning. Completing the gain switch within 50ms ensures that the user is largely unaware of the gain transition process, while also guaranteeing that the loudness of the warning audio quickly reaches the compensation target. The transition start point remains the slice switching point. The fast response transition also uses linear interpolation, but the total duration is shortened to 50ms.

[0178] For example, the semantic tag for the next slice [13.6s, 17.2s] is: impact sound, belonging to the warning audio content category. The target audio gain value for the current slice [11.0s, 13.6s] is +0.60dB, and the target audio gain value for the next slice is +3.50dB. The player detects that the next slice contains warning audio content and shortens the transition time from 200ms to 50ms. Starting at 13.6s, the target audio gain value rapidly transitions from +0.60dB to +3.50dB within 50ms, completing the transition at 13.65s, ensuring the impact sound is output with high gain as quickly as possible after the slice begins.

[0179] Finally, in step S5.4b3, for slices containing warning audio content, based on the target value after clipping at the safety boundary in S4.2, the lower limit of the audio gain target value is forcibly set to the minimum gain threshold for warnings. If the clipped target value is lower than -3dB, it is increased to -3dB; if the clipped target value is not lower than -3dB, the clipped value remains unchanged. This rule only applies to slices containing warning audio content.

[0180] The minimum gain threshold for warning audio content is set to -3dB, based on the principle that warning audio content needs to maintain sufficient loudness to be clearly perceived by the user. If the originally calculated audio gain target value is lower than -3dB, it will be forcibly increased to -3dB. This lower limit only takes effect when the slice is detected to contain warning audio content. When the slice does not contain warning audio content, the clipped audio gain target value in S4.2 is still used, and no additional lower limit constraint is applied.

[0181] The forced setting method is as follows: Before entering a segment containing warning audio content, the target audio gain value corresponding to that segment is read. If the target value is lower than -3dB, it is replaced with -3dB; if the target value is not lower than -3dB, the original value is retained. The forced setting target value is used as the execution value for audio gain adjustment within that segment.

[0182] For example, the semantic tag for the segment [17.2s, 20s] is: alarm sound, containing warning audio content. The target audio gain for this segment in the policy configuration library is -5.20dB. Before entering this segment, the player detects warning audio content and forcibly increases the target audio gain from -5.20dB to -3dB. The actual target audio gain for this segment is -3dB to ensure the alarm sound is clearly audible. If the original target audio gain for this segment is -1.00dB, which is not lower than -3dB, then it remains unchanged at -1.00dB.

[0183] It should be noted that the above values ​​are for illustrative purposes only and do not constitute a limitation on the present invention.

[0184] In summary, this step achieves dynamic audiovisual parameter compensation for different platform categories and different slice content, improving the playback adaptability and user experience of the target video on different playback terminals.

[0185] In summary, this invention achieves dynamic audiovisual parameter optimization for different playback terminals, playback environments, and video content. It can dynamically optimize the audio gain and screen brightness of each slice of the target video according to the user's adjustment preferences in different playback terminals and playback environments, making the playback effect more in line with the actual viewing habits of various users.

[0186] Example 2, as Figure 3 As shown, this invention provides a cross-platform playback optimization system for geological disaster science videos, including: The video slicing module 11 is used to slice the target video according to a preset time window to obtain a slice sequence containing multiple slices.

[0187] The target video is divided into slices according to a preset time window to obtain a slice sequence containing multiple slices, including: Using a preset base duration as a time window, the target video is initially divided into multiple basic slices; The basic slices are traversed to detect scene switching points, and the boundaries of each basic slice are adjusted to the nearest scene switching point based on the detection results to obtain the adjusted slices. The adjusted slice with a duration shorter than the shortest preset duration is iteratively merged with adjacent slices until all of them are longer than the shortest preset duration, thus generating the slice sequence. For each slice in the slice sequence, calculate the image brightness feature value and audio energy feature value, identify warning audio content, and label it with semantic tags.

[0188] The behavior and device acquisition module 12 is used to acquire user playback behavior events and device information of playback terminals on each playback terminal during the playback of the target video, and to determine the platform category. The playback behavior events include at least manual volume adjustment events and manual screen brightness adjustment events.

[0189] During the playback of the target video, user playback behavior events and device information of each playback terminal are collected, and the platform category is determined. The playback behavior events include at least manual volume adjustment events and manual screen brightness adjustment events, including: During playback session initialization, device information of the playback terminal is collected, including at least device type, operating system type, playback environment type, and audio output method. Based on the device information, the platform category of each playback terminal is determined according to the preset multi-level classification hierarchy, wherein the multi-level classification hierarchy includes at least the device type hierarchy, the operating system hierarchy, and the playback environment hierarchy; A minimum sample size threshold is set for each of the classification levels. When the number of playback sessions within a preset statistical period is lower than the minimum sample size threshold, the corresponding level is aggregated and reverted to the corresponding upper-level classification level. During the playback of the target video, playback behavior events of users on each playback terminal are collected, wherein the playback behavior events include at least manual volume adjustment events and manual screen brightness adjustment events;

[0190] The collected playback behavior events, device information, and platform category are reported to the data warehouse and processed offline according to a preset aggregation cycle.

[0191] The preference offset calculation module 13 is used to filter effective adjustment behaviors from the playback behavior events for each slice corresponding to each platform category, and calculate the audiovisual parameter preference offset on each slice under the corresponding platform category by combining the effective adjustment behaviors with the global benchmark of each slice.

[0192] Specifically, for each slice corresponding to each platform category, effective adjustment behaviors are selected from the playback behavior events, and the audiovisual parameter preference offset on each slice under the corresponding platform category is calculated by combining the effective adjustment behaviors with the global benchmark of each slice, including:

[0193] Using platform category as index, the playback behavior events are traversed, and the segment categories in the playback behavior events in which manual adjustment behavior occurred are filtered out to determine the effective adjustment behavior, and the corresponding users are determined to be effective behavior users. The manual adjustment behavior includes manual volume adjustment behavior and manual screen brightness adjustment behavior.

[0194] Obtain the completion status data corresponding to each effective adjustment behavior, wherein the completion status data represents whether the user of the corresponding effective behavior continues to watch within a preset observation period after the slice of the effective adjustment behavior.

[0195] Based on the completion status data, each user with a valid behavior is assigned a corresponding behavior weight value. Users who continue watching are assigned a first weight value, and users who do not continue watching are assigned a second weight value. The first weight value is greater than the second weight value.

[0196] Based on the aforementioned behavior weight values, the adjustment behavior data of each effective user in each slice are weighted, and combined with the global benchmark of the corresponding slice, the volume preference offset and brightness preference offset are calculated respectively, which are used as the audiovisual parameter preference offset of the corresponding platform category in the corresponding slice.

[0197] The strategy configuration library maintenance module 14 is used to determine the target audio gain value and target screen brightness compensation value for each platform category in each slice based on the audiovisual parameter preference offset, and to build and maintain the strategy configuration library.

[0198] Specifically, based on the audiovisual parameter preference offset, the target values ​​for audio gain and screen brightness compensation for each platform category in each slice are determined, and a strategy configuration library is constructed and maintained, including: Multiply the volume preference offset in the audio-visual parameter preference offset by the audio compensation scaling factor to calculate the audio gain target value; multiply the brightness preference offset in the audio-visual parameter preference offset by the brightness compensation scaling factor to calculate the screen brightness compensation target value. The target audio gain value and the target image brightness compensation value are respectively cropped with safety boundaries; Write the target audio gain value and the target image brightness compensation value corresponding to each slice for each platform category after cropping into the strategy configuration library; Perform canary-scale verification on the updated policy configuration library. After successful verification, release it to the full library and iteratively update the policy configuration library according to a preset update cycle. The audio compensation scaling factor takes different values ​​depending on the audio output method of the playback terminal. The value corresponding to the Bluetooth headphone scenario is smaller than the value corresponding to the speaker playback scenario and the wired headphone scenario.

[0199] The playback optimization execution module 15 is used to perform playback optimization on the target video during subsequent playback, in combination with the strategy configuration library, the real-time device information, and the slice where the current playback position is located.

[0200] Specifically, during the subsequent playback of the target video, playback optimization is performed on the target video by combining the strategy configuration library, the real-time device information, and the slice in which the current playback position is located, including: Update the obtained device information to determine the platform category to which the current playback terminal belongs; Based on the platform category, the strategy configuration library is traversed and queried to determine the audio gain target value list and the screen brightness compensation target value list corresponding to the current playback terminal; Based on the slice where the current playback position is located, the target audio gain value and the target image brightness compensation value are determined in real time by querying the list of target audio gain values ​​and the list of target image brightness compensation values. Based on the target audio gain value and the target screen brightness compensation value, the audio gain and screen brightness compensation are synchronously applied to the slice where the current playback position is located to achieve playback optimization.

[0201] Specifically, based on the target audio gain value and the target image brightness compensation value, the audio gain and image brightness compensation are synchronously applied to the slice where the current playback position is located to achieve playback optimization. Prior to this, it also includes: Detect whether the currently playing video is high dynamic range content; If the detection result is yes, skip the screen brightness compensation and only perform audio gain; If the detection result is negative, perform synchronous audio gain and screen brightness compensation.

[0202] When the target value for brightness compensation of the current slice is different from the target value for brightness compensation of the next slice, an asymmetric smooth transition is performed on the brightness compensation, including: Calculate the difference in lightness level based on the lightness levels of the current slice and the next slice; When the difference in brightness level is greater than the preset direction determination threshold, the direction of brightness change is determined to be the upward direction. Before the current slice ends, the transition to the brightness compensation target value of the next frame is triggered in advance, and the transition is completed within the preset advance transition time using a deceleration easing curve. When the difference in brightness level is less than zero and the absolute value is greater than the preset direction determination threshold, the direction of brightness change is determined to be a downward direction. The transition is not triggered before the end of the current slice, and after entering the next slice, an acceleration easing curve is used to transition to the brightness compensation target value of the next frame within a preset lag waiting time. When the absolute value of the difference in brightness level is not greater than the preset direction determination threshold, the direction of brightness change is determined to be the flat direction, and the transition is completed within the preset transition time using linear interpolation.

[0203] When the current audio gain target value of the current slice is different from the next audio gain target value of the next slice, a smooth transition is performed on the audio gain adjustment, including: Within a preset standard transition time, the audio gain target value is transitioned to the next audio gain target value using linear interpolation. When the next slice is detected to contain warning audio content, the transition time will be shortened to complete the transition within a preset fast response time. For segments containing warning audio content, the lower limit of the audio gain target value is forcibly set to the minimum gain threshold for warnings.

[0204] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

[0205] This specification and accompanying drawings are merely illustrative examples of the invention and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the invention. Clearly, those skilled in the art can make various alterations and modifications to the invention without departing from its scope. Therefore, if such modifications and modifications fall within the scope of the invention and its equivalents, the invention is intended to include these modifications and modifications.

Claims

1. A method for optimizing cross-platform playback of geological disaster science videos, characterized in that, include: S1: Divide the target video into slices according to a preset time window to obtain a slice sequence containing multiple slices; S2: During the playback of the target video, collect the user's playback behavior events and the device information of the playback terminal on each playback terminal, and determine the platform category. The playback behavior events include at least manual volume adjustment events and manual screen brightness adjustment events. S3: For each slice corresponding to each platform category, select effective adjustment behaviors from the playback behavior events, and combine the effective adjustment behaviors with the global benchmark of each slice to calculate the audiovisual parameter preference offset on each slice under the corresponding platform category. S4: Based on the audio-visual parameter preference offset, determine the target audio gain value and target image brightness compensation value for each platform category in each slice, and build and maintain the strategy configuration library; S5: During the subsequent playback of the target video, the playback optimization is performed on the target video by combining the strategy configuration library, the real-time device information, and the slice in which the current playback position is located.

2. The method for optimizing cross-platform playback of geological disaster science videos as described in claim 1, characterized in that, The target video is divided into slices according to a preset time window to obtain a slice sequence containing multiple slices. S1 includes: S1.1: Using a preset base duration as a time window, the target video is initially divided into multiple base slices; S1.2: Traverse each of the basic slices to detect scene switching points, and adjust the boundaries of each basic slice to the nearest scene switching point based on the detection results to obtain the adjusted slice; S1.3: Iteratively merge the adjusted slices whose duration is shorter than the shortest preset duration with adjacent slices until all of them are longer than the shortest preset duration, and generate the slice sequence; S1.4: For each slice in the slice sequence, calculate the image brightness feature value and audio energy feature value respectively, identify the warning audio content, and label it with semantic tags.

3. The method for optimizing cross-platform playback of geological disaster science videos as described in claim 1, characterized in that, During the playback of the target video, user playback behavior events and device information of the playback terminals are collected on each playback terminal, and the platform category is determined. The playback behavior events include at least manual volume adjustment events and manual screen brightness adjustment events. S2 includes: S2.1: During playback session initialization, collect device information of the playback terminal, wherein the device information includes at least device type, operating system type, playback environment type, and audio output method; S2.2: Based on the device information, determine the platform category to which each playback terminal belongs according to the preset multi-level classification hierarchy, wherein the multi-level classification hierarchy includes at least the device type hierarchy, the operating system hierarchy, and the playback environment hierarchy; S2.3: Set a minimum sample size threshold for each of the classification levels. When the number of playback sessions within a preset statistical period is lower than the minimum sample size threshold, the corresponding level will be aggregated and reverted to the corresponding upper-level classification level. S2.4: During the playback of the target video, collect playback behavior events of users on each playback terminal, wherein the playback behavior events include at least manual volume adjustment events and manual screen brightness adjustment events; S2.5: The collected playback behavior events, device information, and platform category are reported to the data warehouse and offline aggregation processing is performed according to the preset aggregation cycle.

4. The method for optimizing cross-platform playback of geological disaster science videos as described in claim 1, characterized in that, For each slice corresponding to each platform category, effective adjustment behaviors are selected from the playback behavior events, and the audiovisual parameter preference offset on each slice under the corresponding platform category is calculated by combining the effective adjustment behaviors with the global benchmark of each slice. S3 includes: S3.1: Using the platform category as an index, traverse the playback behavior events, filter the segment categories in the playback behavior events where manual adjustment behavior occurred, determine them as valid adjustment behaviors, and determine the corresponding users as valid behavior users. The manual adjustment behaviors include manual volume adjustment behavior and manual screen brightness adjustment behavior. S3.2: Obtain the completion status data corresponding to each effective adjustment behavior, wherein the completion status data represents whether the user of the corresponding effective behavior continues to watch within a preset observation period after the slice of the effective adjustment behavior; S3.3: Based on the completion status data, assign corresponding behavior weight values ​​to each of the effective behavior users, wherein users who continue watching are assigned a first weight value, users who do not continue watching are assigned a second weight value, and the first weight value is greater than the second weight value. S3.4: Based on the behavior weight value, the adjustment behavior data of each effective behavior user in each slice are weighted, and the volume preference offset and brightness preference offset are calculated respectively in combination with the global benchmark of the corresponding slice, as the audiovisual parameter preference offset of the corresponding platform category in the corresponding slice.

5. The cross-platform playback optimization method for geological disaster science videos as described in claim 1, characterized in that, Based on the aforementioned audiovisual parameter preference offset, determine the target audio gain value and target image brightness compensation value for each platform category in each slice, and construct and maintain a strategy configuration library. S4 includes: S4.1: Multiply the volume preference offset in the audio-visual parameter preference offset by the audio compensation scaling factor to calculate the audio gain target value; multiply the brightness preference offset in the audio-visual parameter preference offset by the brightness compensation scaling factor to calculate the screen brightness compensation target value. S4.2: Perform safety boundary clipping on the target audio gain value and the target image brightness compensation value respectively; S4.3: Write the target audio gain value and the target image brightness compensation value corresponding to each slice for each platform category after cropping into the strategy configuration library; S4.4: Perform gray-scale verification on the updated policy configuration library. After the verification is successful, release it to the full library and iteratively update the policy configuration library according to the preset update cycle. The audio compensation scaling factor takes different values ​​depending on the audio output method of the playback terminal. The value corresponding to the Bluetooth headphone scenario is smaller than the value corresponding to the speaker playback scenario and the wired headphone scenario.

6. The cross-platform playback optimization method for geological disaster science videos as described in claim 1, characterized in that, During the subsequent playback of the target video, based on the strategy configuration library, the real-time device information, and the current playback position within the slice, playback optimization is performed on the target video. S5 includes: S5.1: Update the obtained device information and determine the platform category to which the current playback terminal belongs; S5.2: Based on the platform category, traverse and query the strategy configuration library to determine the audio gain target value list and screen brightness compensation target value list corresponding to the current playback terminal; S5.3: Based on the slice where the current playback position is located, query and determine the audio gain target value and the screen brightness compensation target value in real time from the audio gain target value list and the screen brightness compensation target value list; S5.4: Based on the target audio gain value and the target screen brightness compensation value, synchronously perform audio gain and screen brightness compensation on the slice where the current playback position is located to achieve playback optimization.

7. The cross-platform playback optimization method for geological disaster science videos as described in claim 6, characterized in that, Based on the target audio gain value and the target image brightness compensation value, the audio gain and image brightness compensation are simultaneously applied to the slice where the current playback position is located to achieve playback optimization. Prior to this, the following steps are also included: Detect whether the currently playing video is high dynamic range content; If the detection result is yes, skip the screen brightness compensation and only perform audio gain; If the detection result is negative, perform synchronous audio gain and screen brightness compensation.

8. The cross-platform playback optimization method for geological disaster science videos as described in claim 6, characterized in that, When the target value for brightness compensation of the current slice is different from the target value for brightness compensation of the next slice, an asymmetric smooth transition is performed on the brightness compensation, including: S5.4a1: Calculate the difference in lightness level based on the lightness levels of the current slice and the next slice; S5.4a2: When the difference in brightness level is greater than the preset direction determination threshold, the direction of brightness change is determined to be the upward direction. Before the current slice ends, the transition to the brightness compensation target value of the next frame is triggered in advance, and the transition is completed within the preset advance transition time using a deceleration easing curve. S5.4a3: When the difference in brightness level is less than zero and the absolute value is greater than the preset direction determination threshold, the direction of brightness change is determined to be the downward direction. The transition is not triggered before the end of the current slice, and after entering the next slice, an acceleration easing curve is used to transition to the brightness compensation target value of the next frame within a preset lag waiting time. S5.4a4: When the absolute value of the difference in brightness level is not greater than the preset direction determination threshold, the direction of brightness change is determined to be the flat direction, and the transition is completed within the preset transition time using linear interpolation.

9. The cross-platform playback optimization method for geological disaster science videos as described in claim 6, characterized in that, When the current audio gain target value of the current slice is different from the next audio gain target value of the next slice, a smooth transition is performed on the audio gain adjustment, including: S5.4b1: Within a preset standard transition time, transition from the current audio gain target value to the next audio gain target value using linear interpolation; S5.4b2: When it is detected that the next slice contains warning audio content, the transition time is shortened to complete the transition within a preset fast response time. S5.4b3: For slices containing warning audio content, the lower limit of the audio gain target value is forcibly set to the minimum gain threshold for warnings.

10. A cross-platform playback optimization system for geological disaster science videos, characterized in that, A cross-platform playback optimization method for executing a geological disaster science popularization video as described in any one of claims 1 to 9 includes: The video slicing module is used to divide the target video into slices according to a preset time window to obtain a slice sequence containing multiple slices; The behavior and device acquisition module is used to acquire user playback behavior events and device information of playback terminals on each playback terminal during the playback of the target video, and to determine the platform category. The playback behavior events include at least manual volume adjustment events and manual screen brightness adjustment events. The preference offset calculation module is used to filter effective adjustment behaviors from the playback behavior events for each slice corresponding to each platform category, and combine the effective adjustment behaviors with the global benchmark of each slice to calculate the audiovisual parameter preference offset on each slice under the corresponding platform category. The strategy configuration library maintenance module is used to determine the target audio gain value and target screen brightness compensation value for each platform category in each slice based on the audiovisual parameter preference offset, and to build and maintain the strategy configuration library. The playback optimization execution module is used to perform playback optimization on the target video during subsequent playback, by combining the strategy configuration library, the real-time device information, and the slice in which the current playback position is located.