Video variable-speed playing method and device, electronic equipment and storage medium

By identifying target objects and action features in video clips and dynamically adjusting the video playback speed, the problem of low efficiency and poor accuracy in video playback speed adjustment in the existing technology is solved, and the video viewing experience is improved.

CN118590723APending Publication Date: 2024-09-03BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Application Number
CN202310225360.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-01
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

In the existing technology, the video playback speed adjustment efficiency is low and the accuracy is poor, which affects the video viewing effect. In particular, effective playback speed adjustment cannot be achieved in recording and live broadcast scenarios.

Method used

By identifying the target object in the video clip, obtaining its action characteristics, and dynamically adjusting the video playback speed according to the action characteristics, slow playback or fast playback of the video content is achieved, improving the efficiency and accuracy of playback speed adjustment.

Benefits of technology

It realizes the matching of video playback speed and content, improves the video viewing experience, enhances users' ability to track content of interest, and avoids viewing obstacles caused by unreasonable playback speeds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590723A
    Figure CN118590723A
Patent Text Reader

Abstract

The embodiment of the invention provides a video variable-speed playing method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a target video which at least comprises a first video clip; identifying the first video clip to obtain at least one target object; obtaining action characteristics of the target object, and obtaining a target playing speed of the target video according to the action characteristics; and playing the target video based on the target playing speed. The target object in the target video is identified, and the video content currently played by the target video is played at a variable speed based on the action characteristics of the target object, so that the playing speed of the target video is matched with the video content; therefore, dynamic variable-speed playing of slowly-played interested video clips and quickly-played uninterested video clips is realized, the variable-speed adjusting efficiency and accuracy are improved, the influence of unreasonable playing speed on video watching is avoided, and the video watching effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of Internet technology, and in particular to a method, device, electronic device and storage medium for variable speed video playback. Background Art

[0002] Currently, live broadcast, rebroadcast and recorded broadcast of various competitions have become one of the main business contents of video platforms, satisfying users' needs for watching competitions by providing them with high-definition, low-latency video services.

[0003] In the prior art, for recorded videos, live broadcast platforms provide users with the functions of manual acceleration and deceleration and jump playback, so that users can manually locate the video clips they are interested in. However, the solutions for manually adjusting the video playback speed in the prior art have problems such as low adjustment efficiency and poor adjustment accuracy, which affects the video viewing effect. Summary of the invention

[0004] The embodiments of the present disclosure provide a method, device, electronic device and storage medium for variable speed video playback, so as to overcome the problems of low adjustment efficiency and poor adjustment accuracy when adjusting the video playback speed, which affects the video viewing effect.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for playing a video at a variable speed, comprising:

[0006] Acquire a target video, wherein the target video includes at least a first video clip; identify the first video clip to obtain at least one target object; acquire action features of the target object, and obtain a target playback speed of the target video based on the action features; and play the target video based on the target playback speed.

[0007] In a second aspect, an embodiment of the present disclosure provides a video speed-variable playback device, comprising:

[0008] An acquisition module, configured to acquire a target video, wherein the target video includes at least a first video segment, and identify the first video segment to obtain at least one target object;

[0009] A processing module, used to obtain the action characteristics of the target object, and obtain the target playback speed of the target video according to the action characteristics;

[0010] A playing module is used to play the target video based on the target playing speed.

[0011] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0012] A processor, and a memory communicatively connected to the processor;

[0013] The memory stores computer-executable instructions;

[0014] The processor executes the computer-executable instructions stored in the memory to implement the video speed-varying playback method as described in the first aspect and various possible designs of the first aspect.

[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the video speed-variable playback method described in the first aspect and various possible designs of the first aspect is implemented.

[0016] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the video speed-variable playback method as described in the first aspect and various possible designs of the first aspect.

[0017] The video speed-variable playback method, device, electronic device, and storage medium provided in this embodiment obtain a target video, wherein the target video includes at least a first video clip; identify the first video clip to obtain at least one target object; obtain the action characteristics of the target object, and obtain the target playback speed of the target video based on the action characteristics; and play the target video based on the target playback speed. By identifying the target object in the target video and playing the video content currently played by the target video at a variable speed based on the action characteristics of the target object, the playback speed of the target video is matched with the video content, thereby achieving dynamic speed-variable playback of slow-playing the video clips of interest and fast-playing the video clips of no interest, improving the efficiency and accuracy of speed-variable adjustment, avoiding the unreasonable playback speed from affecting video viewing, and improving the video viewing effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0019] Figure 1 A diagram of an application scenario of the video speed-variable playback method provided by the embodiment of the present disclosure;

[0020] Figure 2 The video speed-changing playback method provided by the present disclosure is shown in FIG. Figure 1 ;

[0021] Figure 3 for Figure 2 A flowchart of a specific implementation method of step S101 in the illustrated embodiment;

[0022] Figure 4 A schematic diagram of automatically adjusting a target playback speed based on action features provided by an embodiment of the present disclosure;

[0023] Figure 5 for Figure 2 A flowchart of a specific implementation method of step S103 in the illustrated embodiment;

[0024] Figure 6 A schematic diagram of a process of playing a target video provided by an embodiment of the present disclosure;

[0025] Figure 7 A schematic diagram of the process of the video speed-variable playback method provided by the embodiment of the present disclosure Figure 2 ;

[0026] Figure 8 for Figure 7 A flowchart of a specific implementation method of step S202 in the illustrated embodiment;

[0027] Fig. 9 for Figure 7 A flowchart of a specific implementation method of step S203 in the illustrated embodiment;

[0028] Fig.10 for Fig. 9 A flowchart of a specific implementation method of step S2032 in the illustrated embodiment;

[0029] Fig.11 A structural block diagram of a video speed-variable playback device provided in an embodiment of the present disclosure;

[0030] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;

[0031] Fig.13 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0033] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0034] The application scenarios of the embodiments of the present disclosure are explained below:

[0035] Figure 1 This is an application scenario diagram of the video speed-changing playback method provided by the embodiment of the present disclosure. The video speed-changing playback method provided by the embodiment of the present disclosure can be applied to application scenarios of video live broadcast, video relay and recorded broadcast based on a video platform, and can also be applied to local video playback based on a terminal device. Specifically, taking the video live broadcast application scenario based on a video platform as an example, Figure 1 As shown, the method provided by the embodiment of the present disclosure can be applied to terminal devices, such as smart phones, tablet computers, etc. The terminal device communicates data with the server. On the other hand, the terminal device runs a client of the video platform, and on the server side, the server runs a server of the video platform. The server side sends the video data (segmented target video) to the terminal device in the form of video stream. The terminal device parses the video data through the client and plays each segment of the target video in sequence.

[0036] In the prior art, for recorded videos, live broadcast platforms provide users with the functions of manual acceleration and deceleration and jump playback, so that users can locate the video clips of interest through manual operation. However, since users cannot know the content of the video in advance, when users adjust the playback speed, they often adjust the video playback speed based on guesses about the unplayed video content, which makes it easy to miss the content of interest, so it is necessary to roll back the video playback progress and watch it again. This leads to the problems of low adjustment efficiency and poor adjustment accuracy in the solutions for manually adjusting the video playback speed in the prior art, which affects the video viewing effect. At the same time, for the scenario of live video broadcasting, the solutions in the prior art have the problem of being unable to adjust the playback speed of the live video.

[0037] The disclosed embodiment provides a video speed-variable playback method to solve the above-mentioned problem.

[0038] refer to Figure 2 , Figure 2 The video speed-changing playback method provided by the present disclosure is shown in FIG. Figure 1The method of this embodiment can be applied to a terminal device, a server, or an electronic device with similar functions. For example, taking a terminal device as an example, the video speed-variable playback method includes:

[0039] Step S101: obtaining a target video, the target video including at least a first video clip, and identifying the target video to obtain a target object in the target video.

[0040] Exemplarily, obtaining the target video refers to the process of obtaining and loading the video data corresponding to the target video. The executor of the method provided in this embodiment is a terminal device, such as a smart phone. The target video can be stored locally on the terminal device (i.e., local video). The terminal device can read the video file of the target video locally and load it, thereby obtaining the target video; the target video can also be stored on a server (i.e., online video). The terminal device obtains the corresponding video file and loads it by accessing the server, thereby obtaining the target video. Among them, in different application scenarios, the target video can refer to a complete video, such as a movie, a complete game, or a part of a complete video. More specifically, for example, in the process of the terminal device obtaining streaming media data from the server, the video corresponding to the video data received by the terminal device each time can also be shown as the target video.

[0041] Further, the target video includes at least a first video clip. After obtaining the target video, the terminal device identifies the first video clip in the target video to obtain an object of interest in the target video, that is, the target object. The first video clip may be a video clip corresponding to the current moment during the playback of the target video. The first video clip includes at least a video clip within a first duration before the current moment in the target video, and / or a video clip within a second duration after the current moment in the target video. The implementation method of identifying the first video clip in the target video includes, for example: extracting pixel features of a video frame in the first video clip, and then mapping the pixel features to a corresponding object, thereby obtaining an object object in the first video clip; then, based on a preset rule, screening the object objects, and determining the object object of interest therein as the target object. Specifically, for example, the video content of the target video is a football match. After extracting at least one video frame in the first video clip of the target video, pixel feature extraction and feature mapping are performed on the video frame, and the object objects obtained include, for example, "audience", "football", "referee", "player", and "camera". Then, according to the preset screening rules, "football" and "player" are determined as target objects.

[0042] In one possible implementation, Figure 3 As shown, the specific implementation steps of step S101 include:

[0043] Step S1011: Acquire first reference information of a target video, where the first reference information is used to characterize a video scene corresponding to the target video.

[0044] Step S1012: Determine a corresponding target reference object according to the first reference information.

[0045] Step S1013: performing target recognition on the first video clip based on the target reference object to obtain at least one target object.

[0046] Exemplarily, the target video has corresponding first reference information, and the first reference information is used to characterize the video scene corresponding to the target video. The video scene includes a content scene and an environmental scene. Specifically, for example, according to the first reference information, the content scene represented by the first reference information is, for example, "football match", "basketball match", "action movie", etc.; the content scene represented by the first reference information is, for example, "outdoor", "indoor", "seaside", "early morning", "night", etc. The first reference information can express the above information through a specific identifier or field. The specific implementation method can be set as needed and will not be further introduced by example. The first reference information can be stored locally on the terminal device or on the server. When the server sends the target video to the terminal device, the first reference information is sent at the same time or in advance, so that the terminal device obtains the first reference information.

[0047] Furthermore, after the terminal device obtains the first reference information, it determines the target reference object corresponding to the first reference information based on the first reference information. Specifically, when the content in the first reference information is different, it corresponds to different target reference objects. For example, when the video scene represented by the first reference information is a "football match", the corresponding target reference objects are "football", "player", "goal", etc. Based on the target reference object, target recognition is performed on the video frames in the first video clip, that is, it is detected whether the video frames contain the above-mentioned target reference objects, thereby obtaining at least one target object. Image feature recognition and detection based on target objects are existing technologies and will not be repeated here.

[0048] It can be understood that, in this embodiment, the target object and the corresponding action features are introduced by taking the scene of a football match as an example of the content of the target video, but the method provided in this embodiment is not limited to the application scenario of the game video playback of "football match", and can also be applied to other application scenarios of game video playback such as basketball games, track and field competitions, and e-sports competitions. Correspondingly, in different application scenarios, the target object and action features in the target video have corresponding implementation forms, which will not be elaborated one by one here.

[0049] In this embodiment, the target reference object is dynamically determined by obtaining the first reference information corresponding to the target video, so as to obtain a matching target object in the target videos of different video scenes, realize accurate recognition of the target object, and improve recognition efficiency and accuracy.

[0050] Step S102: Acquire the motion features of the target object, and obtain the target playback speed of the target video according to the motion features.

[0051] Exemplarily, after determining the target object, the action features of the target object are captured. Exemplarily, taking the scene of the target video content being a "football match" as an example, the target object is a "player", and the action features of the target object, that is, the posture of the "player", when the "player" is in a standing posture, the target object corresponds to one action feature; and when the "player" is in a shooting posture, the target object corresponds to another action feature. Through the action features of the target object, the degree of viewing and the degree of user interest of the first video clip of the currently playing target video can be mapped. Among them, the dynamic features can be obtained by further feature recognition of the target object. This process can be processed by a pre-trained action recognition model, that is, the image containing the target object can be input into the action recognition model to obtain the identifier, array or matrix representing the action features output by the action recognition model, which will not be repeated here.

[0052] In a possible implementation, the target object includes a first object and a second object; the specific implementation steps of obtaining the action feature of the target object include: obtaining the positional relationship between the first object and the second object; and obtaining the action feature of at least one target object according to the positional relationship.

[0053] Exemplarily, at least one target object may be composed of multiple objects, for example, a "player" and a "football" constitute two target objects, wherein the "player" is the first object and the "football" is the second object. In the process of judging the action features of the target object, in order to more accurately judge the overall action features composed of multiple target objects, the positional relationship between the first object and the second object is combined to obtain accurate action features. For example, when the spatial distance between the first object ("player") and the second object ("football") is greater than the first distance, the overall action feature composed of the action features corresponding to the two target objects is determined to be the first action feature, representing the "non-scramble state"; when the spatial distance between the first object and the second object is less than the first distance, the overall action feature composed of the action features corresponding to the two target objects is determined to be the second action feature, representing the "scramble state". This increases the realization categories of the action features, further refines the distinction of the action features, and improves the expression accuracy of the action features.

[0054] Of course, it can be understood that the above description is only exemplary. In order to further improve the accuracy of the expression of the action features, the positional relationship between the first object and the second object may include a direction relationship in addition to the spatial distance relationship in the above example. The first object and the second object may also refer to players from different teams, or players and other objects such as goals. The positional relationship can be represented by a matrix, which will not be described one by one here. The method for obtaining the positional relationship between two object objects in a video or image is a prior art known to those skilled in the art and will not be described here.

[0055] Furthermore, after obtaining the action features, the action features have a mapping relationship with the viewing quality of the video content, and the higher the viewing quality of the video content, the lower the playback speed is set for it, and vice versa, the lower the viewing quality of the video content, the higher the playback speed is set for it, so based on this principle, the action features are mapped to the corresponding target playback speed. Specifically, when the action features of the target object (for example, when the player is in a shooting posture) are mapped to high-viewing video content, the playback speed of the target video is reduced, so that the user can clearly watch the high-viewing video content; conversely, when the action features of the target object (for example, when the player is in a standing posture) are mapped to low-viewing video content, the playback speed of the target video is increased, so that the user can quickly skip the low-viewing video content, and realize dynamic adjustment of the playback speed.

[0056] Figure 4 A schematic diagram of automatically adjusting the target playback speed based on action features provided by an embodiment of the present disclosure, such as Figure 4 As shown, the terminal device is, for example, a smart phone. During the process of the terminal device playing the target video through the video client, when the target object displayed in the target video (shown as a "player") has a first action feature (for example, a shooting action), it indicates that the target video is currently playing a video content with high ornamental value, and the terminal device sets the target playback speed to 0.6 times the normal playback speed (shown as target playback speed = 0.6 in the figure), and displays the text "slow playback" in the figure; and when the target object displayed in the target video has a second action feature (for example, standing still or jogging), it indicates that the target video is currently playing a video content with low ornamental value, and the terminal device sets the target playback speed to 1.5 times the normal playback speed (shown as target playback speed = 1.5 in the figure), and displays the text "fast playback" in the figure.

[0057] Step S103: Play the target video based on the target playback speed.

[0058] Exemplarily, after determining the target playback speed, the terminal device plays the target video based on the target playback speed, thereby realizing variable speed playback of the target video. The target playback speed may be a speed coefficient, for example, the target playback speed is 0.8, which represents 0.8 times the normal playback speed; the target playback speed may also be a specific value of the playback speed, such as 60 frames per second, which may be set as required, and no specific limitation is made here. Specifically, the target video may include multiple video clips, and playing the target video based on the target playback speed may be playing all the video clips in the target video based on the target playback speed, or only the first video clip in the target video may be played based on the target playback speed.

[0059] In a possible implementation, before playing the target video based on the target playback speed, it also includes: obtaining a first playback speed of the target video, where the first playback speed is the playback speed of the target video before the first video segment is played. Specifically, the first playback speed is the playback speed of the target video before the speed change occurs. The first playback speed may be a normal playback speed, that is, a normal playback speed of the target video, or may be another playback speed set by the user, such as a playback speed twice the normal playback speed. Exemplarily, the target video also includes a second video segment, which is played after the first video segment, such as Figure 5 As shown, the specific implementation of step S103 includes:

[0060] Step S1031: Play the first video clip based on the target playback speed and continue for a first duration, wherein the first duration is determined based on the target action feature of the target object in the first video clip.

[0061] Step S1032: After the first duration, play the second video segment based on the first play speed.

[0062] For example, the implementation method of playing the target video based on the target playback speed provided in this embodiment means that after playing the highly enjoyable video clips in the target video at the target playback speed, the first playback speed is restored to the previous speed, so that the automatic deceleration playback can be realized during the user's speed playback process. Figure 6 A schematic diagram of a process of playing a target video provided by an embodiment of the present disclosure is shown below. Figure 6 The above process is introduced as follows: Figure 6As shown, during the process of playing the target video, the terminal device plays the target video at a first playback speed (illustrated as X2, indicating double speed) based on the user's settings before playing to the first moment. When the target video is played to the first moment, the terminal device generates a video playback speed that matches the current highly ornamental video content based on the recognition of the target object and the extraction and judgment of the corresponding action features, namely, the target playback speed (illustrated as X1, indicating single speed), and plays the first video clip at the target playback speed. At the same time, the terminal device continues to recognize and judge the action features of the target object appearing in the target video. When the target object in the target video disappears, or the action features of the target object no longer represent the video content of interest (that is, the target action features of the target object cannot be detected, and the target action features correspond to the video content of interest), the terminal device continues to play the target video based on the first playback speed. That is, at the second moment, the terminal device continues to play the second video clip based on the first playback speed. Among them, the duration of the terminal device playing the first video clip at the target playback speed is the first duration, that is, the interval between the first moment and the second moment. From the above introduction, it can be seen that the first duration is determined based on the target action characteristics of the target object in the target video.

[0063] In the steps of this embodiment, by recording the first playback speed of the target video before the speed change, and after the target action features of the target object in the target video disappear, the target video (the second video clip) continues to be played at the first playback speed set before, thereby achieving precise speed control of the video content of interest in the target video, meeting the user's personalized playback needs, and improving the efficiency of video speed change playback.

[0064] In this embodiment, a target video is obtained, which includes at least a first video clip; the first video clip is identified to obtain at least one target object; the action features of the target object are obtained, and the target playback speed of the target video is obtained according to the action features; and the target video is played based on the target playback speed. By identifying the target object in the target video and playing the video content currently played by the target video at a variable speed based on the action features of the target object, the playback speed of the target video is matched with the video content, thereby achieving dynamic variable speed playback of slow-playing the video clip of interest and fast-playing the video clip of no interest, improving the efficiency and accuracy of variable speed adjustment, avoiding the unreasonable playback speed from affecting video viewing, and improving the video viewing effect.

[0065] refer to Figure 7 , Figure 7 A schematic diagram of the process of the video speed-variable playback method provided by the embodiment of the present disclosure Figure 2 In this embodiment Figure 2Based on the embodiment shown, steps S102-S103 are further refined, and the video speed-variable playback method includes:

[0066] Step S201: Obtain a target video, and identify a first video segment in the target video to obtain a target object.

[0067] Step S202: Acquire the action features of the target object.

[0068] For example, in the previous embodiment, the implementation method of obtaining the motion features of the target object based on a single video frame in the first video clip is introduced, which will not be repeated here. In another possible implementation method, more accurate motion features can be obtained by obtaining multiple frames of images of the first video clip and based on the change relationship between the multiple frames of images.

[0069] For example, Figure 8 As shown, the specific implementation of step S202 includes:

[0070] Step S2021: Obtain a first video segment corresponding to the current playback moment in the target video, where the first video segment at least includes a video segment within a first duration before the current playback moment and / or a video segment within a second duration after the current playback moment.

[0071] Step S2022: Obtain at least two static action features of the target object according to at least two video frames in the first video clip.

[0072] Step S2023: Obtaining the action feature of the target object according to at least two static action features of the target object.

[0073] Exemplarily, based on the current moment of playing the target video, a corresponding first video clip is obtained, and the first video clip may be a video clip before or after the video playback position corresponding to the current moment. Then, based on at least two target video frames in the first video clip, the action features of the target object in each target video frame are captured to obtain the corresponding features of each target video frame, i.e., static action features. More specifically, static action features are features that characterize the posture and shape of the recognized object. For a method of obtaining static action features, see Figure 2 The description of step S102 in the illustrated embodiment will not be repeated here.

[0074] Furthermore, after obtaining at least two static action features, an action feature is generated based on the continuity feature between at least two static action features. For example, video frame P1 and video frame P2 in the first video clip are taken, and after performing action feature capture respectively, the corresponding first static action feature and second static action feature are obtained. More specifically, the first static action feature, for example, represents the posture of "dribbling past a person", and the second static action feature, for example, represents the posture of "shooting action". Afterwards, the dynamic feature composed of the first static feature and the second static feature is used as the action feature of the target object, that is, the continuous action of "dribbling past a person and shooting". Furthermore, when the target object in the first video clip includes multiple objects (for example, the first object and the second object), the action features corresponding to each target object can be determined separately through the above steps, which will not be repeated.

[0075] In this embodiment, multiple video frames corresponding to the current moment are obtained and feature capture is performed separately to obtain multiple corresponding static action features. Then, the multiple static action features are combined to obtain action features that can characterize continuous actions. This makes the action features of the target object have time and posture dimensions, so that the obtained action features can more accurately express the video content.

[0076] Step S203: Obtaining a target playback speed of the target video according to the action characteristics.

[0077] For example, after the action feature is obtained, in a possible implementation, the corresponding target playback speed can be obtained based on the action feature and the preset mapping information. For a specific implementation, see Figure 2 In another possible implementation, as shown in the following example, Fig. 9 As shown, the specific implementation of step S203 includes:

[0078] Step S2031: Obtaining a video event corresponding to the first video clip according to the action feature.

[0079] Step S2032: Determine the corresponding target speed coefficient according to the video event.

[0080] Step S2033: Determine the target playback speed according to the target speed coefficient.

[0081] Exemplarily, in the first video clip, one or more target objects may be included, such as "players" in a specific scenario. For each target object, a corresponding action feature is respectively provided. Therefore, in the target video, according to the set of action features corresponding to all target objects, corresponding video events may be mapped, such as "goal", "pause", "end of game", etc. Video events correspond to more specific and clear video content. Therefore, speed adjustment based on video time can obtain better speed adjustment effect and improve the accuracy of speed adjustment. For example, the user demand of "fast forward to the start of the second half" requires accurate determination of the video event "start of the second half" in the target video, and the video event is jointly determined by the action features of multiple target objects. For example, when multiple players (target objects) in the venue are in standing, sitting, and other postures (action features), the corresponding video event is determined to be "end of game".

[0082] Furthermore, after determining the video event corresponding to the current moment, the corresponding target speed coefficient can be obtained based on the mapping relationship between the video event and the speed coefficient, and then, the target playback speed can be obtained based on the target speed coefficient and the normal playback speed of the target video.

[0083] For example, Fig.10 As shown, the specific implementation steps of step S2032 include:

[0084] Step S2032A: Obtain a first number of target objects in a first video clip at the current playback moment, and obtain a first speed coefficient based on the first number.

[0085] Step S2032B: Obtain a second speed coefficient according to the video event.

[0086] Step S2032C: Obtain a target speed coefficient according to the first speed coefficient and the second speed coefficient.

[0087] Exemplarily, in a possible scenario, the number of target objects will have an impact on the viewing effect of the target video. For example, when multiple "players" appear crowded together in the target video, the user needs to watch the game carefully at a slower playback speed. Therefore, the video playback speed can be further adjusted based on the number of target objects in the first video clip. Specifically, based on the first number of target objects in the first video clip at the current playback moment, the corresponding first speed coefficient is determined, and then the second speed coefficient is obtained according to the video event obtained in the previous step. The target playback speed is obtained according to the product of the first speed coefficient and the second speed coefficient. In this embodiment, the corresponding first speed coefficient is determined by detecting the first number of target objects, and the target playback speed finally generated is fine-tuned based on the first speed coefficient, so as to further improve the accuracy and rationality of the target playback speed and improve the user's viewing experience.

[0088] Exemplarily, in the application scenario of live broadcast and rebroadcast of a game, the terminal device streams and receives the target video sent by the server and caches it, and then plays each video segment of the target video in sequence according to the video playback order. In this process, when video events such as "goal" and "shot" occur, the terminal device determines a target playback speed that is inconsistent with the normal playback speed (for example, 0.5 times the speed of playback), and plays it based on the target playback speed, which will cause the following problems: If the terminal device slows down a certain video segment in the target video, the overall playback progress of the target video will lag behind, and the overall playback time will increase. In the scenario of live broadcast of a game, this problem will cause users who watch the video to know the result of the game later, resulting in the problem of "spoiler of the game result". Therefore, in order to solve the problem of delayed playback progress caused by using the above-mentioned video speed-changing playback method in the scenario of live video, this embodiment provides the following solution. Exemplarily, the target video also includes a second video segment, and the second video segment is played after the first video segment. The specific steps include:

[0089] Step S204: Obtain the total playback duration of the target video, and obtain a second duration based on the difference between the total duration and the first duration, where the first duration is the duration of the first video segment.

[0090] Step S205: Obtaining a second playback speed corresponding to the second video clip according to the second duration.

[0091] Step S206: Play the first video clip based on the target playback speed and continue for a first duration.

[0092] Step S207: After the first duration, play the second video segment based on the second play speed.

[0093] Exemplarily, first, the total playback time of the target video is obtained, wherein the target video may refer to a complete game video in a video broadcast scenario; or, the target video may also be a segment of a game video in a video live broadcast scenario, such as a 5-minute or 10-minute video segment. After the terminal device obtains the target video, it determines the total playback time of the target video, and at the same time, executes steps S201 to S203. When interesting and highly ornamental video content (the first video segment) appears in the target video, the corresponding target playback speed and the corresponding first duration are obtained, wherein the first duration is the duration of the first video segment, and the first duration is determined based on the target action features of the target object in the first video segment. The method for determining the first duration is described in detail in the example of FIG. Figure 2 The corresponding steps in the illustrated embodiment have been introduced and will not be described again here. Afterwards, the second duration is obtained based on the difference between the total duration and the first duration, and the second duration is the remaining playable duration of the target video while ensuring that the total playable duration of the target video remains unchanged, that is, the remaining playable duration of the second video segment after the first video segment. After that, the compensation speed coefficient can be obtained according to the proportional relationship between the second duration and the video length of the second video segment of the target video. Specifically, for example, the target video is composed of the first video segment and the second video segment. Based on the total playback duration of the target video and the first duration corresponding to the first video segment, the second duration corresponding to the second video segment is 30 seconds. After the target video is played at a reduced speed (played at the target playback speed) for the first duration, if the target video is required to play the target video at the end of the playback at a normal speed relative to the whole process, without playback lag (i.e., the target video played at a normal speed has been played, but the target video played at a variable speed by the first video segment has not been played), then the remaining second video segment of the target video needs to be played within 30 seconds. For example, it takes 60 seconds to play the second video segment at a normal playback speed. Accordingly, the second playback speed corresponding to the second video segment is twice the normal playback speed, i.e., the second playback speed is 2 (compensation speed coefficient). This is equivalent to accelerating the playback in the second half of the target video, thereby ensuring that the overall playback duration of the target video will not be extended, thereby solving the playback lag problem.

[0094] In this embodiment, step S201 is consistent with step S101 in the above embodiment. For a detailed discussion, please refer to the discussion of step S101, which will not be repeated here.

[0095] Corresponding to the video speed changing method of the above embodiment, Fig.11 This is a structural block diagram of a video speed-variable playback device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Fig.11 , the video speed-changing playback device 3 comprises:

[0096] An acquisition module 31 is used to acquire a target video, wherein the target video includes at least a first video segment, and identify the first video segment to obtain at least one target object;

[0097] The processing module 32 is used to obtain the motion characteristics of the target object and obtain the target playback speed of the target video according to the motion characteristics;

[0098] The playing module 33 is used to play the target video based on the target playing speed.

[0099] In one embodiment of the present disclosure, when the acquisition module 31 identifies the first video clip and obtains at least one target object, it is specifically used to: obtain first reference information of the target video, the first reference information is used to characterize the video scene corresponding to the target video; determine the corresponding target reference object based on the first reference information; perform target recognition on the first video clip based on the target reference object to obtain at least one target object.

[0100] In one embodiment of the present disclosure, when the processing module 32 obtains the target playback speed of the target video according to the action features, it is specifically used to: obtain the video event corresponding to the first video clip according to the action features; and determine the target playback speed according to the video event.

[0101] In one embodiment of the present disclosure, when the processing module 32 determines the target playback speed based on the video event, it is specifically used to: obtain a first number of target objects in the first video clip at the current playback moment, and obtain a first speed coefficient based on the first number; obtain a second speed coefficient based on the video event; and obtain a target speed coefficient based on the first speed coefficient and the second speed coefficient.

[0102] In one embodiment of the present disclosure, the target object includes a first object and a second object; when acquiring the action features of the target object, the processing module 32 is specifically used to: acquire the positional relationship between the first object and the second object; and obtain the action features of at least one target object according to the positional relationship.

[0103] In one embodiment of the present disclosure, when acquiring the action features of the target object, the processing module 32 is specifically used to: obtain at least two static action features of the target object based on at least two video frames in the first video clip; and obtain the action features of the target object based on the at least two static action features of the target object.

[0104] In one embodiment of the present disclosure, before playing the target video based on the target playback speed, the acquisition module 31 is also used to: obtain a first playback speed of the target video, the first playback speed being the playback speed of the target video before playing the first video segment; the playback module 33 is specifically used to: play the first video segment based on the target playback speed for a first duration, wherein the first duration is determined based on the target action features of the target object in the first video segment; after the first duration, play the second video segment based on the first playback speed.

[0105] In one embodiment of the present disclosure, the acquisition module 31 is also used to: obtain a second playback speed corresponding to the second video segment based on the difference between the total playback time of the target video and the first duration, where the first duration is the duration of the first video segment; the playback module 33 is specifically used to: play the first video segment based on the target playback speed and continue for the first duration; and play the second video segment based on the second playback speed after the first duration.

[0106] The acquisition module 31, the processing module 32 and the playing module 33 are connected in sequence. The video speed-changing playing 3 provided in this embodiment can implement the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.

[0107] Fig.12 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown in FIG. Fig.12 As shown, the electronic device 4 includes:

[0108] A processor 41, and a memory 42 communicatively connected to the processor 41;

[0109] The memory 42 stores computer executable instructions;

[0110] The processor 41 executes the computer execution instructions stored in the memory 42 to implement the following Figure 2-Figure 10 The video speed-variable playback method in the illustrated embodiment.

[0111] Optionally, the processor 41 and the memory 42 are connected via a bus 43 .

[0112] For related instructions, please refer to Figure 2-Figure 10 The relevant descriptions and effects corresponding to the steps in the corresponding embodiments can be understood, and no further elaboration is made here.

[0113] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which are used to implement the present invention when executed by a processor. Figure 2-Figure 10 The video speed-varying playback method provided by any one of the corresponding embodiments.

[0114] The present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements Figure 2-Figure 10 The video speed-varying playback method in the embodiment shown,

[0115] refer to Fig.13 , which shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present disclosure, and the electronic device 900 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.13 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0116] like Fig.13 As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0117] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.13 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0118] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0119] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0120] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0121] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0122] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0123] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0124] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0125] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0126] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0127] In a first aspect, according to one or more embodiments of the present disclosure, a method for playing a video at a variable speed is provided, comprising:

[0128] Acquire a target video, wherein the target video includes at least a first video clip; identify the first video clip to obtain at least one target object; acquire action features of the target object, and obtain a target playback speed of the target video based on the action features; and play the target video based on the target playback speed.

[0129] According to one or more embodiments of the present disclosure, the identifying the first video clip to obtain at least one target object includes: obtaining first reference information of the target video, the first reference information being used to characterize a video scene corresponding to the target video; determining a corresponding target reference object based on the first reference information; and performing target identification on the first video clip based on the target reference object to obtain at least one target object.

[0130] According to one or more embodiments of the present disclosure, the target playback speed of the target video is obtained according to the action features, including: obtaining a video event corresponding to the first video clip according to a combination of at least two of the action features; and determining the target playback speed according to the video event.

[0131] According to one or more embodiments of the present disclosure, determining the target playback speed based on the video event includes: obtaining a first number of target objects in the first video clip at the current playback moment, and obtaining a first speed coefficient based on the first number; obtaining a second speed coefficient based on the video event; and obtaining the target playback speed based on the first speed coefficient and the second speed coefficient.

[0132] According to one or more embodiments of the present disclosure, the at least one target object includes a first object and a second object; obtaining the action characteristics of the target object includes: obtaining the positional relationship between the first object and the second object; and obtaining the action characteristics of the target object based on the positional relationship.

[0133] According to one or more embodiments of the present disclosure, obtaining the action features of the target object includes: obtaining at least two static action features of the target object based on at least two video frames in the first video clip; and obtaining the action features of the target object based on the at least two static action features of the target object.

[0134] According to one or more embodiments of the present disclosure, before playing the target video based on the target playback speed, it also includes: acquiring a first playback speed of the target video, the first playback speed being the playback speed of the target video before playing the first video clip; playing the target video based on the target playback speed, including: playing the first video clip based on the target playback speed for a first duration, wherein the first duration is determined based on the target action features of the target object in the first video clip; after the first duration, playing the second video clip based on the first playback speed.

[0135] According to one or more embodiments of the present disclosure, the method further includes: obtaining a second playback speed corresponding to the second video segment based on the difference between the total playback time of the target video and a first duration, the first duration being the duration of the first video segment; playing the target video based on the target playback speed includes: playing the first video segment based on the target playback speed and continuing for the first duration; and playing the second video segment based on the second playback speed after the first duration.

[0136] In a second aspect, according to one or more embodiments of the present disclosure, a video speed-variable playback device is provided, comprising:

[0137] An acquisition module, configured to acquire a target video, wherein the target video includes at least a first video segment, and identify the first video segment to obtain at least one target object;

[0138] A processing module, used to obtain the action characteristics of the target object, and obtain the target playback speed of the target video according to the action characteristics;

[0139] A playing module is used to play the target video based on the target playing speed.

[0140] According to one or more embodiments of the present disclosure, when the acquisition module identifies the first video clip and obtains at least one target object, it is specifically used to: obtain first reference information of the target video, where the first reference information is used to characterize the video scene corresponding to the target video; determine the corresponding target reference object based on the first reference information; and perform target recognition on the first video clip based on the target reference object to obtain at least one target object.

[0141] According to one or more embodiments of the present disclosure, when the processing module obtains the target playback speed of the target video based on the action features, it is specifically used to: obtain the video event corresponding to the first video clip based on a combination of at least two of the action features; and determine the target playback speed based on the video event.

[0142] According to one or more embodiments of the present disclosure, when the processing module determines the target playback speed based on the video event, it is specifically used to: obtain a first number of target objects in the first video clip at the current playback moment, and obtain a first speed coefficient based on the first number; obtain a second speed coefficient based on the video event; and obtain the target speed coefficient based on the first speed coefficient and the second speed coefficient.

[0143] According to one or more embodiments of the present disclosure, the at least one target object includes a first object and a second object; when the processing module obtains the action characteristics of the target object, it is specifically used to: obtain the positional relationship between the first object and the second object; and obtain the action characteristics of the target object based on the positional relationship.

[0144] According to one or more embodiments of the present disclosure, when acquiring the action features of the target object, the processing module is specifically used to: obtain at least two static action features of the target object based on at least two video frames in the first video clip; and obtain the action features of the target object based on the at least two static action features of the target object.

[0145] According to one or more embodiments of the present disclosure, before playing the target video based on the target playback speed, the acquisition module is further used to: acquire a first playback speed of the target video, wherein the first playback speed is the playback speed of the target video before playing the first video segment; the playback module is specifically used to: play the first video segment based on the target playback speed for a first duration, wherein the first duration is determined based on the target action features of the target object in the first video segment; and after the first duration, play the second video segment based on the first playback speed.

[0146] According to one or more embodiments of the present disclosure, the acquisition module is further used to: obtain a second playback speed corresponding to the second video segment based on the difference between the total playback time of the target video and the first duration, the first duration being the duration of the first video segment; the playback module 33 is specifically used to: play the first video segment based on the target playback speed and for the first duration; and play the second video segment based on the second playback speed after the first duration.

[0147] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0148] The memory stores computer-executable instructions;

[0149] The processor executes the computer-executable instructions stored in the memory to implement the video speed-varying playback method as described in the first aspect and various possible designs of the first aspect.

[0150] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the video speed-varying playback method described in the first aspect and various possible designs of the first aspect is implemented.

[0151] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the video speed-variable playback method as described in the first aspect and various possible designs of the first aspect.

[0152] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0153] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0154] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A video speed-variable playback method, characterized in that: include: Acquire a target video, wherein the target video includes at least a first video clip; Identify the first video clip to obtain at least one target object; Acquire the action features of the target object, and obtain the target playback speed of the target video according to the action features; The target video is played based on the target playback speed.

2. The method according to claim 1, characterized in that The step of identifying the first video clip to obtain at least one target object includes: Acquire first reference information of the target video, where the first reference information is used to characterize a video scene corresponding to the target video; Determining a corresponding target reference object according to the first reference information; Perform target recognition on the first video clip based on the target reference object to obtain at least one target object.

3. The method according to claim 1, characterized in that Obtaining a target playback speed of the target video according to the action feature includes: Obtaining a video event corresponding to the first video clip according to a combination of at least two of the action features; The target playback speed is determined according to the video event.

4. The method according to claim 3, characterized in that Determining the target playback speed according to the video event includes: Obtaining a first number of target objects in the first video clip at a current playback moment, and obtaining a first speed coefficient according to the first number; According to the video event, obtaining a second speed coefficient; The target playback speed is obtained according to the first speed coefficient and the second speed coefficient.

5. The method according to claim 1, characterized in that The at least one target object includes a first object and a second object; The acquiring the action feature of the target object includes: Acquire a positional relationship between the first object and the second object; According to the positional relationship, the action feature of the target object is obtained.

6. The method according to claim 1, characterized in that The acquiring the action feature of the target object includes: Obtaining at least two static action features of the target object according to at least two video frames in the first video clip; An action feature of the target object is obtained according to at least two static action features of the target object.

7. The method according to claim 1, characterized in that The target video also includes a second video segment, which is played after the first video segment; and before playing the target video based on the target playback speed, it also includes: Acquire a first playback speed of the target video, where the first playback speed is the playback speed of the target video before playing the first video segment; Playing the target video based on the target playback speed includes: Playing the first video clip based on the target playback speed for a first duration, wherein the first duration is determined based on a target action feature of a target object in the first video clip; After the first duration, the second video segment is played based on the first playback speed.

8. The method according to claim 1, characterized in that The target video also includes a second video segment, and the second video segment is played after the first video segment; the method also includes: Obtaining a second playback speed corresponding to the second video segment according to a difference between the total playback duration of the target video and a first duration, wherein the first duration is a duration of the first video segment; The step of playing the target video based on the target playback speed includes: Play the first video clip based on the target playback speed and for the first duration; After the first duration, the second video segment is played based on the second playback speed.

9. A video speed-variable playback device, characterized in that: include: An acquisition module, configured to acquire a target video, wherein the target video includes at least a first video segment, and identify the first video segment to obtain at least one target object; A processing module, used to obtain the action characteristics of the target object, and obtain the target playback speed of the target video according to the action characteristics; A playing module is used to play the target video based on the target playing speed.

10. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the video speed-varying playback method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the video speed-variable playback method according to any one of claims 1 to 8 is implemented.

12. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the video speed-varying playback method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Image processing method and electronic device

    CN105812853A

  • VIDEO PROCESSING METHOD, device thereof, TERMINAL AND MEDIUM

    CN109151595A

  • Video playing method, device, equipment and storage medium

    CN114071211A

  • Trick play in digital video streaming

    US20150016804A1

Cited By

  • Internet-based course progress management and control system and method

    CN119887472A

  • Video variable-speed playing method and apparatus, and electronic device and storage medium

    EP4676068A1