Video playing speed control method and device based on step frequency perception, equipment and medium

By preprocessing motion sensor data and using peak detection algorithms, the video playback speed is automatically adjusted to match the user's real-time step frequency, solving the problem of mismatch between the video playback device and the user's movement state, and realizing intelligent control without user intervention.

CN122160576APending Publication Date: 2026-06-05SHENZHEN COOCAA NETWORK TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN COOCAA NETWORK TECH CO LTD
Filing Date
2026-01-28
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Existing video playback devices lack the ability to effectively perceive the user's real-time motion status, resulting in a mismatch between the video playback rhythm and the user's physical activity status, requiring the user to actively intervene and control it.

Method used

By preprocessing motion sensor data, peak detection algorithms are used to identify the user's real-time step frequency, which is then converted into video playback speed instructions according to a preset mapping table, and the video playback speed is automatically adjusted to match the user's movement state.

Benefits of technology

It achieves automatic synchronization between video playback speed and user movement rhythm without user intervention, improving the naturalness and convenience of human-computer interaction, adapting to different exercise intensities, with strong compatibility and timely response.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122160576A_ABST
    Figure CN122160576A_ABST
Patent Text Reader

Abstract

The application relates to a video playing speed control method and device based on step frequency sensing, equipment and a storage medium. The method comprises the following steps: performing a preprocessing operation on motion sensor data to obtain an acceleration time sequence signal, analyzing the acceleration time sequence signal based on a peak value detection algorithm to obtain a real-time step frequency of a user, converting the real-time step frequency into a target video playing speed instruction according to a preconfigured conversion rule, and sending a control command to a terminal player based on the target video playing speed instruction. The application realizes automatic synchronization between the video playing speed and the real-time motion rhythm of the user, can complete the control operation of the video playing speed without manual intervention of the user, improves the naturalness and convenience of human-computer interaction, solves the problems of inconvenient video control and unmatched rhythm of the user in a motion state, and improves the user experience and the intelligent level.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of playback control technology, and in particular to a video playback speed control method, apparatus, device and storage medium based on step frequency sensing. Background Technology

[0002] Currently, video playback devices such as smart TVs, set-top boxes, and streaming media players generally rely on users to control playback via remote controls, touchscreens, or voice assistants, requiring active intervention. In scenarios such as fitness, running, or rehabilitation training, users often want the playback pace of video content to match their physical activity level; for example, pausing the video while walking slowly to watch instructions, and speeding up the video while running to maintain a consistent pace. However, existing technologies lack the ability to effectively perceive the user's real-time movement status. Even though some wearable devices can monitor steps or heart rate, they have not established a linkage mechanism between these physiological signals and video playback behavior.

[0003] Therefore, how to make video playback speed automatically respond to the user's natural movement behavior without increasing user operations has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0004] In view of the above, this application provides a video playback speed control method, apparatus, device and storage medium based on step frequency perception, the purpose of which is to solve the above technical problems.

[0005] In a first aspect, this application provides a video playback speed control method based on step frequency perception, the method comprising: Preprocessing operations are performed on the motion sensor data to obtain an acceleration time series signal; The user's real-time step frequency is obtained by analyzing the acceleration time series signal based on the peak detection algorithm; According to the pre-configured conversion rules, the real-time step frequency is converted into a target video playback speed command; Based on the target video playback speed instruction, a control command is sent to the terminal player.

[0006] Secondly, this application provides a video playback speed control device based on step frequency perception, the video playback speed control device based on step frequency perception includes: Preprocessing module: Used to preprocess motion sensor data to obtain acceleration time series signals; Analysis module: used to analyze the acceleration time series signal based on the peak detection algorithm to obtain the user's real-time step frequency; Conversion module: used to convert the real-time step frequency into a target video playback speed command according to a pre-configured conversion rule; Control module: Used to send control commands to the terminal player based on the target video playback speed instruction.

[0007] Thirdly, this application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in a memory, it implements the steps of the step frequency-aware video playback speed control method described in any embodiment of the first aspect.

[0008] Fourthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the step-frequency-aware video playback speed control method as described in any embodiment of the first aspect.

[0009] The technical solutions provided in this application have the following advantages compared with the prior art: This application achieves automatic synchronization between video playback speed and the user's real-time movement rhythm, enabling playback, pause, acceleration, or deceleration operations without manual user intervention, thus enhancing the naturalness and convenience of human-computer interaction. It employs a combination of acceleration signal preprocessing and adaptive peak detection to ensure accurate extraction of step frequency under varying motion intensities, enhancing the system's robustness. Through a pre-defined mapping table, it supports flexible adaptation to various application scenarios and utilizes a common consumer electronics control protocol to send commands to the terminal player, offering strong compatibility, simple deployment, and timely response. It solves the problems of inconvenient video control and rhythm mismatch during user movement, improving user experience and intelligence. Attached Figure Description

[0010] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0011] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 This is a flowchart illustrating a preferred embodiment of the video playback speed control method based on step frequency perception according to this application; Figure 2 This is a schematic diagram of a preferred embodiment of the video playback speed control device based on step frequency perception according to this application. Figure 3 This is a schematic diagram of a preferred embodiment of the electronic device of this application; The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0013] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0014] It should be noted that the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of those features. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed in this application.

[0015] Reference Figure 1 The diagram shown is a flowchart illustrating an embodiment of the video playback speed control method based on step frequency awareness according to this application. The method is executed by an electronic device, which can be implemented by a software system and / or a hardware system. The video playback speed control method based on step frequency awareness includes: Step S10: Perform preprocessing operations on the motion sensor data to obtain an acceleration time series signal; Step S20: Analyze the acceleration time series signal based on the peak detection algorithm to obtain the user's real-time step frequency; Step S30: Convert the real-time step frequency into a target video playback speed command according to the pre-configured conversion rules; Step S40: Based on the target video playback speed instruction, send a control command to the terminal player.

[0016] This embodiment aims to address the problem of existing video playback systems being disconnected from the user's physical movement. In scenarios such as fitness training, rehabilitation exercises, or daily activities, users often want the playback rhythm of video content to automatically adjust according to their exercise intensity (such as walking or running frequency) to improve the naturalness of interaction, training synchronization, and ease of use. To this end, this embodiment achieves intelligent linkage between video playback speed and the user's physical movement state by sensing step frequency in real time and generating corresponding playback commands.

[0017] The system receives a data stream containing raw triaxial acceleration data from a motion sensor worn by the user. This data is then processed sequentially through data unpacking, noise filtering, and vector synthesis to generate a continuous time-series acceleration signal that characterizes the overall motion intensity changes of the user. This preprocessing eliminates high-frequency interference and unifies the dimensions of the motion representation.

[0018] The acceleration time series signal is segmented and processed. Local maxima are identified within each signal segment using an adaptive threshold mechanism. Effective peak values ​​that conform to human gait patterns are selected by combining amplitude and time interval constraints. The number of effective peak values ​​within a unit time window is then counted and converted into real-time step frequency in standardized units. This reflects the user's current walking or running rhythm, overcoming the problem of missed or false detections under different exercise intensities caused by fixed threshold methods, and improving the robustness and real-time performance of step frequency recognition.

[0019] After obtaining the real-time step frequency, a preset step frequency-playback speed mapping table is invoked. This mapping table defines several step frequency intervals and their corresponding video playback operation types and speed levels. By matching the interval into which the current real-time step frequency falls, the corresponding playback control strategy can be determined, and a structured, executable target video playback speed instruction can be generated. The mapping table supports flexible configuration to meet the rhythm requirements of different application scenarios, enhancing the system's adaptability and scalability.

[0020] The target video playback speed command is encapsulated into a standard control command conforming to common consumer electronics control protocols (such as HDMI-CEC), and transmitted to the connected terminal player via a wired or wireless interface to drive it to perform corresponding play, pause, speed up, or slow down operations. This achieves dynamic synchronization between the video playback rhythm and the user's real-time pace without additional user intervention, enhancing the intelligence level of human-computer interaction and the user experience.

[0021] In one embodiment, the preprocessing operation on the motion sensor data to obtain the acceleration time series signal includes: Receive raw data packets from the motion sensor; Extract the X-axis raw acceleration sequence, Y-axis raw acceleration sequence, and Z-axis raw acceleration sequence from the original data packet; Low-pass filtering is performed on the original X-axis acceleration sequence, the original Y-axis acceleration sequence, and the original Z-axis acceleration sequence to obtain the X-axis filtered acceleration sequence, the Y-axis filtered acceleration sequence, and the Z-axis filtered acceleration sequence, respectively. The X-axis filtered acceleration sequence, Y-axis filtered acceleration sequence, and Z-axis filtered acceleration sequence are sampled point by point to generate an acceleration time series signal.

[0022] The system receives raw data packets from motion sensors worn by the user (such as smart bracelets, smartphones, or inertial measurement units) via wireless or wired communication. These packets continuously transmit raw sensor data containing triaxial acceleration information at a fixed sampling frequency. The raw data packets are then parsed to extract the raw acceleration sequences corresponding to the three orthogonal directions in space: the X-axis, Y-axis, and Z-axis, which serve as the basic input for subsequent signal processing.

[0023] To suppress the interference of high-frequency noise (such as equipment vibration, electromagnetic interference, or non-gait-related vibration) on step frequency recognition, low-pass filtering was applied to the original X-axis, Y-axis, and Z-axis acceleration sequences to obtain smoothed X-axis filtered acceleration sequences, Y-axis filtered acceleration sequences, and Z-axis filtered acceleration sequences. Vector synthesis was performed on the X-axis, Y-axis filtered acceleration sequences, and Z-axis filtered acceleration sequences at each sampling time point. Specifically, the square root of the sum of the squares of the three components at each time point was calculated, thereby generating a one-dimensional acceleration time-series signal representing the change of the user's overall motion intensity over time. This signal effectively integrates three-dimensional motion information and eliminates direction dependence.

[0024] In one embodiment, the step of analyzing the acceleration time series signal based on a peak detection algorithm to obtain the user's real-time step frequency includes: The acceleration time series signal is segmented by a sliding window to obtain multiple continuous acceleration signal segments; The effective peak values ​​are extracted from the acceleration signal segment based on the adaptive threshold peak detection algorithm, and the real-time step frequency is generated based on the number of effective peak values ​​per unit time.

[0025] Since a user's motion state may change dynamically over time, it is difficult to take into account the signal characteristics of different stages in a globally unified process. Therefore, a sliding window mechanism can be used to divide long-sequence signals into local segments, so that subsequent peak detection can be based on more stable and representative local data, thereby improving the response capability to instantaneous step frequency changes.

[0026] Because fixed threshold methods are prone to false negatives or missed detections when dealing with different exercise intensities (such as walking and running), adaptive threshold mechanisms can dynamically adjust the judgment criteria based on the amplitude distribution of the current signal segment, improving the robustness of peak recognition. Simultaneously, physiological constraints are used to filter initially identified peaks, eliminating non-gait interference and ensuring that the extracted peaks accurately reflect walking movements. Furthermore, by counting and standardizing the effective peaks within a unit time window, continuously updated real-time cadence is output. This not only improves the accuracy and stability of cadence estimation but also achieves applicability in diverse exercise scenarios.

[0027] Further, the method of extracting effective peak values ​​from the acceleration signal segment based on the adaptive threshold peak detection algorithm and generating a real-time step frequency based on the number of effective peak values ​​per unit time includes: Within each acceleration signal segment, a peak detection algorithm with an adaptive threshold is used to identify local maxima. Filter out the valid peak values ​​that meet the preset amplitude and interval conditions; The number of valid peak values ​​within a statistical unit time window; Based on the number of effective peak values, a real-time step frequency in preset units is generated.

[0028] Since the acceleration amplitude generated by users varies greatly under different motion intensities, using a fixed threshold can easily lead to the missed detection of weak signals or the over-detection of strong signals. Therefore, the judgment threshold can be automatically adjusted based on the statistical characteristics of the current signal segment (such as local mean, dynamic range or energy level) so that peak detection can adapt to the time-varying characteristics of signal intensity, thereby initially capturing the location of potential gait events in various motion states.

[0029] By setting reasonable lower limits for amplitude and minimum time intervals between adjacent peaks based on the physiological laws of human gait, and retaining only local maxima that simultaneously satisfy these two constraints as valid peaks, this screening mechanism can improve the physiological reliability of the extracted peaks and provide high-quality input for subsequent gait frequency calculation.

[0030] By counting effective peak values ​​within a sliding or fixed-length time window, the actual number of steps taken by the user during that time period can be reflected, forming raw cadence data directly corresponding to the movement rhythm. This statistical method balances real-time performance and stability, avoiding drastic jumps in cadence caused by instantaneous fluctuations.

[0031] The count values ​​are converted into continuous step frequency output in a standardized unit (such as "steps / minute") to make them universal and interpretable, facilitating integration with subsequent mapping rules. Specifically, the number of valid peaks can be normalized according to a preset time window length. For example, if the current time window is 10 seconds and 25 valid peaks are detected within that window, the value is multiplied by 6 (i.e., 60 seconds / 10 seconds) to calculate the corresponding real-time step frequency as 150 steps / minute. Alternatively, if 7 valid peaks are detected within a 5-second window, the real-time step frequency is 84 steps / minute (7 × 12). Through this conversion, regardless of the selected time window length, the final output real-time step frequency is always uniformly expressed in the preset unit of "steps / minute".

[0032] In one embodiment, converting the real-time step frequency into a target video playback speed instruction according to a pre-configured conversion rule includes: Obtain a pre-configured mapping table between step frequency and playback speed, wherein the mapping table defines multiple step frequency intervals and the corresponding video playback speeds for each step frequency interval; The real-time step frequency is matched with each step frequency interval in the mapping table to determine the target step frequency interval to which the real-time step frequency belongs; Based on the video playback speed corresponding to the target step frequency range in the mapping table, a target video playback speed instruction is generated.

[0033] The mapping table is loaded during system initialization and can be preset by the device manufacturer or customized by the user through the application. For example, a step frequency range of 0 to 30 steps / minute corresponds to a "pause" command (suitable for standing or very slow movement), 31 to 80 steps / minute corresponds to "0.8x speed playback" (suitable for slow walking), 81 to 140 steps / minute corresponds to "1.0x speed playback" (suitable for normal walking or light running), 141 to 200 steps / minute corresponds to "1.5x speed fast forward" (suitable for faster running), and above 200 steps / minute, the upper limit speed is maintained to avoid over-acceleration. The mapping table is stored in memory in the form of a data structure (such as a list of key-value pairs or a range tree) to ensure efficient lookup.

[0034] By comparing numerical values ​​and traversing all step frequency interval boundaries in the mapping table, the system determines which preset interval the current real-time step frequency falls into. Since the step frequency intervals do not overlap and cover a reasonable range of human movement (usually 0–220 steps / minute), this matching process can uniquely identify a target step frequency interval. For example, when a user's real-time step frequency is detected to be 125 steps / minute, the system identifies it as falling within the 81–140 steps / minute interval, thus determining this interval as the target step frequency interval.

[0035] The system reads the playback behavior description associated with the target step frequency range (e.g., "play at 1.0x speed") and encapsulates it into a structured instruction object that can be parsed by subsequent communication modules. This object is the target video playback speed instruction, which can include the operation type (play, pause, fast forward, etc.) and speed coefficient (e.g., 1.0, 1.5, etc.) to provide standardized input for sending control commands to the terminal player. For example, for a real-time step frequency of 125 steps / minute, the system generates a target video playback speed instruction indicating "play at 1.0x speed".

[0036] In one embodiment, sending control commands to the terminal player based on the target video playback speed instruction includes: The target video playback speed command is converted into a control command conforming to the HDMI-CEC protocol; The control commands are sent to the terminal player via the HDMI interface.

[0037] Based on the operation type indicated by the target video playback speed command (such as play, pause, fast forward, etc.), the corresponding predefined opcode in the HDMI-CEC standard is found. For example, when the target video playback speed command is "pause," it is mapped to the HDMI-CEC opcode. <pause>Command (Opcode 0x48); when the instruction is "Normal Playback", it is mapped to <play>Command (Opcode 0x41); when the instruction is "fast forward", it is mapped to<Fast Forward> The command (Opcode 0x49) encapsulates the opcode and the terminal's logical address (such as 0x00 for a TV) into a complete HDMI-CEC control command frame.

[0038] Upon receiving the command, a CEC-compliant player (such as a smart TV or a playback box connected to a TV) automatically parses and executes the corresponding operation, such as pausing the current video, playing it at standard speed, or fast-forwarding. The entire process requires no user intervention or additional software installation; motion sensing and video control are coordinated solely through a standard HDMI connection.

[0039] In one embodiment, the method further includes: The real-time cadence and the target video playback speed commands are displayed in the user interface.

[0040] After generating real-time cadence and target video playback speed commands, both are simultaneously pushed to the user interface module running on a smart terminal (such as a smartphone, tablet, or smartwatch) or a connected display device. The user interface presents information graphically, for example, displaying "Current Cadence: 120 steps / minute" and "Playback Status: 1.0x speed" in a fixed area of ​​the screen. Readability can also be enhanced using icons, progress bars, or color coding, such as green for normal playback, yellow for slow playback, and red for fast forward.

[0041] Reference Figure 2 The diagram shown is a functional module schematic of the video playback speed control device 100 based on step frequency perception according to this application.

[0042] The step-frequency-aware video playback speed control device 100 described in this application is installed in an electronic device. Depending on its function, the step-frequency-aware video playback speed control device 100 includes a preprocessing module 110, an analysis module 120, a conversion module 130, and a control module 140. These modules can also be referred to as units, which are a series of computer program segments that can be executed by the processor of an electronic device and perform a fixed function, and are stored in the memory of the electronic device.

[0043] In this embodiment, the functions of each module / unit are as follows: Preprocessing module 110: used to preprocess motion sensor data to obtain acceleration time series signals; Analysis module 120: used to analyze the acceleration time series signal based on the peak detection algorithm to obtain the user's real-time step frequency; Conversion module 130: used to convert the real-time step frequency into a target video playback speed command according to a pre-configured conversion rule; Control module 140: Used to send control commands to the terminal player based on the target video playback speed instruction.

[0044] The specific implementation of the video playback speed control device based on step frequency perception in this application is largely the same as the specific implementation of the video playback speed control method based on step frequency perception described above, and will not be repeated here.

[0045] Reference Figure 3 The diagram shown is a schematic representation of a preferred embodiment of the electronic device of this application.

[0046] The electronic device includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114. The memory 113 is used to store computer programs, such as a video playback speed control program based on step frequency perception; In some embodiments, the processor 111 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 111 is typically used to control the overall operation of the electronic device, such as performing data interaction or communication-related control and processing. In this embodiment, the processor 111 is used to run program code stored in the memory 113 or process data.

[0047] The communication interface 112 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The communication interface 112 may also be used to establish a communication connection between the electronic device and other electronic devices.

[0048] The memory 113 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 113 may be an internal storage unit of the electronic device, such as the hard disk or memory of the electronic device. In other embodiments, the memory 113 may also be an external storage device of the electronic device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. of the electronic device. Of course, the memory 113 may include both internal storage units and external storage devices of the electronic device. In this embodiment, the memory 113 is typically used to store the operating system and various computer programs installed on the electronic device, such as the program code of a video playback speed control program based on step frequency perception. In addition, the memory 113 can also be used to temporarily store various types of data that have been output or will be output.

[0049] Figure 3 Only an electronic device with components 111-114 is shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0050] In one embodiment of this application, when the processor 111 executes the program stored in the memory 113, it implements the video playback speed control method based on step frequency perception provided in any of the foregoing method embodiments, including: Preprocessing operations are performed on the motion sensor data to obtain an acceleration time series signal; The user's real-time step frequency is obtained by analyzing the acceleration time series signal based on the peak detection algorithm; According to the pre-configured conversion rules, the real-time step frequency is converted into a target video playback speed command; Based on the target video playback speed instruction, a control command is sent to the terminal player.

[0051] For a detailed explanation of the above steps, please refer to the above. Figure 1 A flowchart illustrating an embodiment of a video playback speed control method based on step frequency perception.

[0052] Furthermore, this application also proposes a computer-readable storage medium that is both non-volatile and volatile. This computer-readable storage medium is any one or any combination of several of the following: hard disk, multimedia card, SD card, flash memory card, SMC, read-only memory (ROM), erasable programmable read-only memory (EPROM), portable compact disc read-only memory (CD-ROM), USB memory, etc. The computer-readable storage medium includes a data storage area and a program storage area. The program storage area stores a step-frequency-aware video playback speed control program. When executed by a processor, the step-frequency-aware video playback speed control program performs the following operations: Preprocessing operations are performed on the motion sensor data to obtain an acceleration time series signal; The user's real-time step frequency is obtained by analyzing the acceleration time series signal based on the peak detection algorithm; According to the pre-configured conversion rules, the real-time step frequency is converted into a target video playback speed command; Based on the target video playback speed instruction, a control command is sent to the terminal player.

[0053] The specific implementation of the computer-readable storage medium in this application is largely the same as the specific implementation of the video playback speed control method based on step frequency perception described above, and will not be repeated here.

[0054] It should be noted that the sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, apparatus, article, or method. Without further limitations, an element defined by the phrase "comprising one…" does not exclude the presence of other identical elements in the process, apparatus, article, or method that includes that element.

[0055] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware simulation platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device to execute the methods described in the various embodiments of this application.

[0056] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.< / play> < / pause>

Claims

1. A video playback speed control method based on step frequency perception, characterized in that, The method includes: Preprocessing operations are performed on the motion sensor data to obtain an acceleration time series signal; The user's real-time step frequency is obtained by analyzing the acceleration time series signal based on the peak detection algorithm; According to the pre-configured conversion rules, the real-time step frequency is converted into a target video playback speed command; Based on the target video playback speed instruction, a control command is sent to the terminal player.

2. The video playback speed control method based on step frequency perception as described in claim 1, characterized in that, The preprocessing operation on motion sensor data to obtain an acceleration time series signal includes: Receive raw data packets from the motion sensor; Extract the X-axis raw acceleration sequence, Y-axis raw acceleration sequence, and Z-axis raw acceleration sequence from the original data packet; Low-pass filtering is performed on the original X-axis acceleration sequence, the original Y-axis acceleration sequence, and the original Z-axis acceleration sequence to obtain the X-axis filtered acceleration sequence, the Y-axis filtered acceleration sequence, and the Z-axis filtered acceleration sequence, respectively. The X-axis filtered acceleration sequence, Y-axis filtered acceleration sequence, and Z-axis filtered acceleration sequence are sampled point by point to generate an acceleration time series signal.

3. The video playback speed control method based on step frequency perception as described in claim 1, characterized in that, The analysis of the acceleration time series signal based on the peak detection algorithm to obtain the user's real-time step frequency includes: The acceleration time series signal is segmented by a sliding window to obtain multiple continuous acceleration signal segments; The effective peak values ​​are extracted from the acceleration signal segment based on the adaptive threshold peak detection algorithm, and the real-time step frequency is generated based on the number of effective peak values ​​per unit time.

4. The video playback speed control method based on step frequency perception as described in claim 3, characterized in that, The adaptive threshold peak detection algorithm extracts effective peaks from the acceleration signal segment and generates a real-time step frequency based on the number of effective peaks per unit time, including: Within each acceleration signal segment, a peak detection algorithm with an adaptive threshold is used to identify local maxima. Filter out the valid peak values ​​that meet the preset amplitude and interval conditions; The number of valid peak values ​​within a statistical unit time window; Based on the number of effective peak values, a real-time step frequency in preset units is generated.

5. The video playback speed control method based on step frequency perception as described in claim 1, characterized in that, The step of converting the real-time step frequency into a target video playback speed command according to a pre-configured conversion rule includes: Obtain a pre-configured mapping table between step frequency and playback speed, wherein the mapping table defines multiple step frequency intervals and the corresponding video playback speeds for each step frequency interval; The real-time step frequency is matched with each step frequency interval in the mapping table to determine the target step frequency interval to which the real-time step frequency belongs; Based on the video playback speed corresponding to the target step frequency range in the mapping table, a target video playback speed instruction is generated.

6. The video playback speed control method based on step frequency perception as described in claim 1, characterized in that, The step of sending control commands to the terminal player based on the target video playback speed instruction includes: The target video playback speed command is converted into a control command conforming to the HDMI-CEC protocol; The control commands are sent to the terminal player via the HDMI interface.

7. The video playback speed control method based on step frequency perception as described in claim 1, characterized in that, The method further includes: The real-time cadence and the target video playback speed commands are displayed in the user interface.

8. A video playback speed control device based on step frequency perception, characterized in that, The device includes: Preprocessing module: Used to preprocess motion sensor data to obtain acceleration time series signals; Analysis module: used to analyze the acceleration time series signal based on the peak detection algorithm to obtain the user's real-time step frequency; Conversion module: used to convert the real-time step frequency into a target video playback speed command according to a pre-configured conversion rule; Control module: Used to send control commands to the terminal player based on the target video playback speed instruction.

9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in a memory, implements the video playback speed control method based on step frequency perception as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the video playback speed control method based on step frequency perception as described in any one of claims 1 to 7.