CN110971963A - Video playing control method, electronic equipment and storage medium - Google Patents

Video playing control method, electronic equipment and storage medium Download PDF

Info

Publication number
CN110971963A
CN110971963A CN201911416314.9A CN201911416314A CN110971963A CN 110971963 A CN110971963 A CN 110971963A CN 201911416314 A CN201911416314 A CN 201911416314A CN 110971963 A CN110971963 A CN 110971963A
Authority
CN
China
Prior art keywords
video
playing
action
target
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911416314.9A
Other languages
Chinese (zh)
Inventor
刘小东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911416314.9A priority Critical patent/CN110971963A/en
Publication of CN110971963A publication Critical patent/CN110971963A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44218Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Abstract

The embodiment of the invention discloses a video playing control method, electronic equipment and a storage medium. The method for controlling video playing comprises the following steps: recording a second video under the condition of playing the first video; and under the condition that the target user action in the second video is not matched with the target playing action in the first video, adjusting the video playing parameters of the first video. By utilizing the video playing control method, the electronic equipment and the storage medium, the playing state of the video can be automatically adjusted.

Description

Video playing control method, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a video playing control method, electronic equipment and a storage medium.
Background
At present, a user can preset the playing speed of a video, and a player can play the video according to the playing speed set by the user.
However, if the user wants to readjust the playing speed of the video or adjust the playing progress of the video during the playing of the video, the user needs to manually adjust the playing parameters again. And after receiving the playing parameters reset by the user, the player plays the video according to the playing parameters reset by the user.
However, the method for manually adjusting the video playing parameters requires the user to manually adjust the video playing parameters each time, and the operation of the user is cumbersome.
Disclosure of Invention
Embodiments of the present invention provide a method for controlling video playing, an electronic device, and a storage medium, which can solve the problem in the prior art that if a user action is inconsistent with a playing action in a video, a user needs to manually adjust a playing parameter, which results in a complicated operation of the user.
In a first aspect, an embodiment of the present invention provides a method for controlling video playback, which is applied to an electronic device, and includes:
recording a second video under the condition of playing the first video;
and under the condition that the target user action in the second video is not matched with the target playing action in the first video, adjusting the video playing parameters of the first video.
In a second aspect, an embodiment of the present invention provides an electronic device for playing a video, including:
the recording module is used for recording a second video under the condition of playing the first video;
and the adjusting module is used for adjusting the video playing parameters of the first video under the condition that the target user action in the second video is not matched with the target playing action in the first video.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program instructions to implement the steps of the method for controlling video playback according to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for controlling video playing according to the first aspect.
In the embodiment of the invention, the electronic device can continuously record the user action to obtain the second video when the user imitates the playing action, and adjust the video playing parameter of the first video under the condition that the target user action in the second video is not matched with the target playing action in the first video. The electronic equipment can automatically adjust the playing parameters of the first video according to the comparison between the recorded second video and the target playing action in the first video, the user does not need to interrupt the current learning state, the playing speed or the playing progress is manually adjusted, and the complex operation degree of the user is reduced.
Drawings
Fig. 1 is a flowchart illustrating a method for controlling video playback according to an embodiment of the present invention;
FIG. 2a is a diagram illustrating a target playing action in a first video according to an embodiment of the present invention;
FIG. 2b is a diagram illustrating a target user action in a second video according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a degree of inconsistency between a target user action and a target playback action according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for controlling video playback according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for playing video according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a video playing control method, electronic equipment and a medium, wherein the video playing control method can automatically adjust the playing parameters of a video.
Fig. 1 is a flowchart illustrating a method for controlling video playback according to an embodiment of the present invention. As shown in fig. 1, the method for controlling video playback applied to an electronic device includes:
step 101, recording a second video under the condition of playing the first video.
In one embodiment of the present invention, the first video may refer to a video currently being played by the electronic device, and the recording of the second video may refer to a recording of an action of the user imitating a play action in the video currently being played by the electronic device.
And 102, under the condition that the target user action in the second video is not matched with the target playing action in the first video, adjusting the video playing parameters of the first video.
In one embodiment of the invention, the target user action comprises at least two user actions in at least two video frames in the second video, and the target playback action comprises at least two playback actions in at least two video frames in the first video. If the electronic device detects that the target user action in the second video is not matched with the target playing action in the first video, the video playing parameters of the first video are automatically adjusted.
In the embodiment of the invention, when the user imitates the playing action, the electronic equipment continuously records the user action to obtain the second video, and adjusts the video playing parameter of the first video under the condition that the target user action in the second video is not matched with the target playing action in the first video. The electronic equipment can automatically adjust the playing parameters of the first video according to the comparison between the recorded second video and the target playing action in the first video, the user does not need to interrupt the current learning state, the playing speed or the playing progress is manually adjusted, and the complex operation degree of the user is reduced.
In the embodiment of the invention, the electronic equipment can continuously record the second video under the condition of playing the first video, so that the continuity of recording the second video is improved.
In one embodiment of the present invention, if there are at least two users in front of the screen of the electronic device, the user closest to the electronic screen may be taken as a first target user, and the electronic device records a second video including the first target user.
If the number of the users closest to the electronic screen is greater than or equal to two, the central position of the screen of the electronic device can be used as a preset area, the user which is located at the central position of the screen of the electronic device and is closest to the screen of the electronic device is used as a second target user, and the electronic device records a second video including the second target user.
In addition, the user can set the identification area on the screen by himself, the user of the identification area is used as a third target user, and the electronic device records a second video including the third target user.
In an embodiment of the present invention, step 101 is described in detail by taking the first video as a dance video and the target playing motion as a dance motion as an example.
In the process of playing the dance video by the electronic equipment, the user can simulate the dance action in real time in front of the screen of the electronic equipment. At this time, the electronic device may record a second video corresponding to the user imitating the dance motion in real time.
In the embodiment of the invention, the electronic equipment can acquire the action of the user for imitating the target playing action in real time by recording the second video corresponding to the dance action in real time, so that the video playing parameters can be automatically adjusted more accurately according to the real-time imitation target playing action of the user in the following process.
In one embodiment of the present invention, it may be determined whether the target user action matches the target play action according to a similarity between the first user action included in the target user action and the first play action included in the target play action.
For example, if the similarity between the first user action included in the target user action and the first playing action included in the target playing action is smaller than a preset threshold, it is determined that the target user action is not matched with the target playing action; and if the similarity between the first user action included in the target user action and the first playing action included in the target playing action is not smaller than a preset threshold value, determining that the target user action is matched with the target playing action.
The preset threshold value can be set by a user according to own requirements, or can be automatically set by the electronic equipment. In some embodiments, in order to ensure the accuracy of the adjustment of the video playing parameters, the preset threshold may be set to be high. In other embodiments, the preset threshold may be set to be lower if the learning confidence of the user can be enhanced. The value of the preset threshold is not limited at all.
As shown in fig. 2a, fig. 2a is a schematic diagram of a target playing action in a first video according to an embodiment of the present invention. Taking the nth frame of video frame as an example, as can be seen from fig. 2a, the first playing action in the target playing actions corresponding to the nth frame of video frame in the first video is shown in fig. 2 a.
Fig. 2b shows a first user action in the target user actions corresponding to the nth frame of video frame in the second video recorded by the electronic device, where fig. 2b is a schematic diagram of the target user action in the second video according to an embodiment of the present invention.
As can be seen from comparing fig. 2a and fig. 2b, the hand motion and the step motion of the user are not consistent, which may cause the similarity between the first user motion in the target user motion and the first playing motion in the target playing motion shown in fig. 2b to be smaller than the preset threshold, that is, the target user motion and the target playing motion are not matched. Wherein N is understood to be a positive integer.
In the embodiment of the invention, the electronic device can determine whether the imitated target playing action of the user is accurate by judging the similarity between the first user action in the target user actions and the first playing action in the target playing action, so that the video playing parameters can be automatically adjusted subsequently when the target user action is determined not to be matched with the target playing action.
In another embodiment of the present invention, it may also be determined whether the action consistency degree of the target user action is consistent with the action consistency degree of the target playing action according to the first user action included in the target user action and the first playing action included in the target playing action, so as to determine whether the target user action is matched with the target playing action.
For example, when determining whether the motion consistency of the target user motion is consistent with the motion consistency of the target play motion, each video frame in the first video may be compared with each video frame in the second video starting from a starting video frame in the first video including the target play motion and a starting video frame in the second video.
If the next N frames of video frames after the initial video frame of the first video are all matched with the next N frames of video frames of the initial video frame of the second video one by one (namely the first playing action in each video in the next N frames of video frames of the first video is matched with the first user action in each video frame in the next N frames of video frames of the second video), the action consistency degree of the target user is determined to be consistent with the consistency degree of the target playing action, and the action of the target user is matched with the target playing action.
For example, the first video includes 3 video frames, the second video includes 3 video frames, and if the first frame of the first video is used as the start video frame of the first video, the second frame of the second video is used as the start video frame of the second video. And if the second frame video frame of the first video is matched with the second frame video frame of the second video and the third frame video frame of the first video is matched with the third frame video frame of the second video, the target user action is considered to be matched with the target playing action.
However, if the next N frames of video frames after the starting video frame of the first video are not completely matched with the next N frames of video frames of the starting video frame of the second video one by one (that is, the first play action in at least one video frame of the next N frames of video frames of the first video is different from the corresponding first user action in the next N frames of video frames of the second video), it is determined that the action consistency of the target user is inconsistent with the consistency of the target play action, and the target user action is not matched with the target play action.
For example, if the next N video frames of the first video do not match the next N video frames of the second video one by one, but match the next N + D0 video frames of the second video one by one, it is determined that the action consistency of the target user is not consistent with the consistency of the target play action, and the action of the target user is not matched with the target play action.
As an example, referring to fig. 3, fig. 3 is a schematic diagram illustrating a degree of inconsistency of action consistency between a target user action and a target play action according to an embodiment of the present invention.
The first video comprises 3 video frames, the second video comprises 3 video frames, and if the first frame of the first video is used as the starting video frame of the first video, the second frame of the second video is used as the starting video frame of the second video. Then if the second frame video frame of the first video does not match the second frame video frame of the second video (i.e., the next 1 frame video frame of the first video does not match the next 1 frame video frame of the second video), but matches the third frame video frame of the second video (i.e., the next 1 frame video frame of the first video does not match the next 1+1(D0) frame video frame of the second video), the target user action is considered not matching the target play action.
In the embodiment of the invention, whether the action consistency degree between the action of the target user and the action of the target playing is consistent or not is judged, so that whether the simulated target playing action of the user keeps up with the playing progress of the video or not can be determined, and the video playing parameters can be automatically adjusted when the action of the target user is determined to be not matched with the action of the target playing.
In an embodiment of the present invention, if the target user action and the target playing action are not matched due to the similarity not reaching the preset threshold, the playing speed may be reduced according to the similarity between the target user action and the target playing action.
For example, when the similarity between the target user action and the target playback action is 50%, the playback speed may be reduced by 0.75 times the initial playback speed, and when the similarity between the target user action and the target playback action is 70%, the playback speed may be reduced by 0.9 times the initial playback speed.
In another embodiment of the present invention, the target video segment including at least the first video may also be played in a loop K times according to the similarity between the target user action and the target playing action. Wherein K is understood to be a positive integer. Alternatively, K may be a default or may be set by the user.
For example, when the similarity between the target user action and the target play action is 50%, the target video segment including at least the first video may be played in a loop 5 times, and when the similarity between the target user action and the target play action is 70%, the target video segment including at least the first video may be played in a loop 3 times.
In another embodiment of the present invention, if the similarity between the target playing motion and the target user motion does not reach the preset threshold, the target area may be enlarged, displayed and played.
For example, if the electronic device detects that the similarity of the motions of the hand positions in the first video and the second video does not reach the preset threshold, the motions of the hand positions (target areas) may be amplified and played during playing, and the motions may be played according to the number of times of loop playing corresponding to the similarity.
In the embodiment of the invention, the playing speed corresponding to the similarity is determined according to the similarity between the target user action and the target playing action and the preset corresponding relation between the similarity and the playing speed; or, determining the playing speed corresponding to the similarity according to the similarity between the target user action and the target playing action and the preset corresponding relation between the similarity and the playing speed. The video playing parameters can be automatically adjusted after the target user action is determined to be not matched with the target playing action, the user is not required to interrupt the learning state of the user to manually adjust the video playing parameters, the complexity of user operation is reduced, and the current learning state of the user is not required to be interrupted, so that the electronic equipment can continuously record the second video, and the phenomenon of interruption when the second video is recorded is avoided.
In another embodiment of the present invention, if the action consistency is inconsistent, the action of the target user and the action of the target playing are not matched, the playing speed and the number of times of the circular playing of the video can be automatically adjusted, so that the playing of the video can better meet the requirement of the user.
In one embodiment of the present invention, the first video may include a plurality of video segments, for example, the plurality of video segments included in the first video may be a first video segment, a second video segment, a third video segment, and the like, which are divided according to the play time length of the first video.
For example, a first video with a playing time of 60 minutes can be divided into a first video segment (0-20 minutes), a second video segment (21-40 minutes) and a third video segment (41-60 minutes).
After the video playing parameters are adjusted, the video clip where the target playing action is located can be replayed only according to the adjusted video playing parameters until the target user action is matched with the target playing action, and then the next video clip is played.
For example, if the video segment in which the target playing action is located is the first video segment, when playing is performed according to the adjusted video playing parameters, the first video segment may be played only according to the adjusted video playing parameters, and the second video segment and the third video segment may be played after the target user action and the target playing action are matched.
According to the video playing control method provided by the embodiment of the invention, the video playing parameters of the first video are adjusted through the second video under the condition that the target user action in the second video is not matched with the target playing action in the first video, so that the electronic equipment can play the first video at least comprising the target playing action again according to the adjusted video playing parameters. The electronic equipment can automatically adjust the playing speed or the playing progress according to the second video obtained by recording the action of the target user for simulating the target playing action in real time, the user is not required to interrupt the current learning state, the playing speed is manually adjusted or the playing progress is manually adjusted, and the complex operation degree of the user is reduced.
In another embodiment of the present invention, taking the nth frame of video frame as an example, with continuing reference to fig. 3, as can be seen from fig. 3, the nth frame of video frame of the first video does not match the nth frame of video frame of the second video, but matches the N + D0 th frame of video frame of the second video.
Therefore, in order to adjust the playing parameters of the video more accurately, D0 may be recorded before step 102, where D0 is a positive integer.
At this time, the playback speed in the video playback parameters may be reduced by D0 frames per unit time. In addition, if the playing speed in the video playing parameters at this time and the lowest playing speed satisfy the preset relationship, the video can be played circularly according to the lowest playing speed. The preset relationship may be that the playing speed in the video playing parameters is very close to the minimum playing speed, and the video can be played in a circulating manner. The number of times of loop playing and the minimum playing speed can be preset.
In the embodiment of the present invention, if there is a match between the nth frame video frame in the first video and the N + D0 th frame video frame in the second video, it may be shown that the current playing speed is D0 frames faster per unit time than the action of the target user imitating the target playing action, and therefore, reducing the playing speed by D0 frames per unit time may make the playing speed of the target video more consistent with the actual imitation situation of the target user.
In an embodiment of the present invention, if the next N frames of video frames in the first video match the next N frames of video frames in the second video one by one, but the next N + M frames in the first video do not match the next N + M frames in the second video, but match the next N + M + D1 frames in the second video, it may be considered that the action consistency between the target user action and the target playing action is inconsistent, that is, the target user action and the target playing action are not matched.
For example, the first video includes 4 frames of video frames, the second video includes 4 frames of video frames, and if the first frame of the first video is used as the start video frame of the first video, the second frame of the second video is used as the start video frame of the second video. If the next 1 frame of the starting video frame in the first video frame (i.e., the 2 nd frame video frame in the first video) matches with the next 1 frame of the starting video frame in the second video frame (i.e., the 2 nd frame video frame in the second video), but the next 1+1(N + M) frame of the starting video frame in the first video (i.e., the 3 rd frame video frame in the first video) does not match with the next 1 frame of the starting video frame in the second video frame (i.e., the 3 rd frame video frame in the second video), but matches with the next 1+1+1(N + M + D1) frame of the starting video frame in the second video (i.e., the 4 th frame video frame in the second video), it can be considered that the degree of coherence between the target user action and the target play action is inconsistent, i.e., the target user action does not match with the target play action.
Therefore, in order to adjust the playing parameters of the video more accurately, the timestamps and D1 corresponding to the N + M video frames may be recorded before step 102. It should be understood that both M and D1 are positive integers.
In another embodiment of the present invention, if the consistency of the target user actions is inconsistent with the consistency of the target playing actions, a first time interval between a first time corresponding to a first user action in the target user actions and a second time corresponding to a second user action in the target user actions needs to be further determined. Wherein, it should be understood that, when judging the consistency of the actions, the first user action and the second user action should be two consecutive user actions.
Then, a second time interval between a third time corresponding to a third play action and a fourth time corresponding to a fourth play action in the target play actions is determined, and similarly, the third play action and the fourth play action are taken as continuous play actions.
And then, calculating the time difference between the first time interval and the second time interval according to the obtained first time interval and the second time interval, and adjusting the video playing parameter corresponding to the third time and the fourth time in the first video under the condition that the time difference is greater than a preset time difference threshold value, wherein the video playing parameter comprises the playing speed or the circulating playing times.
If the consistency between the target user action and the target playing action is consistent, the time difference between the first time interval and the second time interval should be small, even 0. Therefore, whether the consistency degree of the target user action and the target playing action is consistent or not is indicated by the preset threshold value.
For example, the preset threshold is set to 2 seconds, and the electronic device determines that the first time interval is 10 seconds. When the second time interval is 5 seconds, it means that the time interval between two consecutive playing actions in the first video is 5 seconds, and when the user imitates the playing action in the first video, the time interval between two consecutive user actions is 10 seconds, the time difference between the first time interval and the second time interval is 5 seconds, which is greater than the preset threshold value of 2 seconds, and it is necessary to adjust the corresponding video playing parameter between the third time and the fourth time in the first video.
The adjusting of the video playing parameter corresponding to the third time and the fourth time in the first video may be determining a target video frame number played between the third time and the fourth time, and then decreasing the video playing speed by the target video frame number per unit time.
In addition, if the video playing speed and the lowest playing speed at this time satisfy the preset relationship, the first video at least including the target playing action can be played circularly according to the lowest playing speed. The number of times of the loop playing can be preset.
In the embodiment of the invention, the electronic equipment can determine the specific video frame with discontinuous target user action through the time difference, so that the video playing parameters can be automatically and pertinently adjusted, and the user does not need to interrupt the current learning state of the user, and manually adjust the playing speed or manually adjust the playing progress.
The above embodiment describes a case where the electronic device has one screen, and a video playing method provided by a real-time embodiment of the present invention and applied to an electronic device having two screens is described in detail below with reference to fig. 6.
In an embodiment of the present invention, if the electronic device may include the first screen and the second screen, a flow of the method for controlling video playing may be as shown in fig. 4, where fig. 4 is a schematic flow chart of a method for controlling video playing according to another embodiment of the present invention.
Step 401, in the case that the first video is played on both the first screen and the second screen, recording a second video including a target user action corresponding to the first user facing the first screen and a third video including a target user action corresponding to the second user facing the second screen.
Wherein the target user action is an action by the first user and the second user to mimic the target play action in the first video.
Step 402, judging whether the target user action of the first user is matched with the target playing action corresponding to the first screen according to the first video corresponding to the first user and the second video corresponding to the first user; or judging whether the target user action of the second user is matched with the target playing action corresponding to the second screen or not according to the first video corresponding to the second user and the third video corresponding to the second user. If yes, go to step 407, otherwise go to step 403.
Step 403, under the condition that the target user action of the first user does not match the target playing action corresponding to the first screen, adjusting the video playing parameter of the first video played on the first screen faced by the first user; and under the condition that the target user action of the second user is not matched with the target playing action corresponding to the second screen, adjusting the video playing parameter of the first video played on the second screen faced by the second user.
In step 404, when the playing parameter includes a playing speed, a target playing speed of the target video is determined based on a size relationship between the adjusted video playing speed corresponding to the first user and the adjusted video playing speed corresponding to the second user.
For example, the smaller video playback speed of the adjusted video playback speed corresponding to the first user and the adjusted video playback speed corresponding to the second user may be used as the target playback speed, or the larger video playback speed may be used as the target playback speed.
Step 405, according to the target playing speed, a target video at least comprising the first video is played back on the first screen and the second screen.
In the embodiment of the present invention, when the electronic device has two screens, the playing parameters of the two screens of the electronic device may be played according to the setting (according to the slower playing speed) preset by the user, or the playing parameters of the two screens of the electronic device may be played according to the setting (according to the faster playing speed) preset by the user.
In another embodiment of the present invention, the video playing method applied to an electronic device including two screens may further include, after step 403:
step 406, according to the adjusted video playing speed corresponding to the first user, re-playing the first video at least including the target playing action on the first screen, and according to the adjusted video playing speed corresponding to the second user, re-playing the first video at least including the target playing action on the second screen.
Step 407, the first screen and the second screen play the first video according to the initial video playing parameters, respectively, without adjusting the video playing parameters.
In the embodiment of the invention, under the condition that the electronic equipment is provided with two screens, the playing parameters of the two screens of the electronic equipment can be respectively played at the corresponding playing speeds, so that users facing the two screens can independently learn the video content without influencing the learning progress of other practicers.
Based on the specific implementation manner of the method for controlling video playing provided by the above embodiment, correspondingly, the application further provides a specific implementation manner of the electronic device for video playing. Please refer to fig. 5.
Fig. 5 is a schematic structural diagram of an electronic device for playing video according to an embodiment of the present invention. As shown in fig. 5, the electronic device for video playing includes:
the recording module 510 is configured to record a second video when the first video is played.
And an adjusting module 520, configured to adjust the video playing parameter of the first video when the target user action in the second video does not match the target playing action in the first video.
By the electronic equipment for video playing provided by the embodiment of the invention, when a user imitates a playing action, the electronic equipment can continuously record the user action to obtain a second video, and the video playing parameter of the first video is adjusted under the condition that the target user action in the second video is not matched with the target playing action in the first video. The electronic equipment can automatically adjust the playing parameters of the target video according to the recorded second video based on the comparison between the target playing action in the first video and the target playing action in the first video, the user does not need to interrupt the current learning state of the user, the playing speed or the playing progress is manually adjusted, and the complex operation degree of the user is reduced.
In an embodiment of the present invention, the electronic device for video playing further includes:
and the playing module is used for playing the target video clip at least comprising the target playing action in the first video again according to the adjusted video playing parameters.
In one embodiment of the invention, the target user action comprises at least two user actions in at least two video frames in the second video, and the target playback action comprises at least two playback actions in at least two video frames in the first video.
In an embodiment of the present invention, the electronic device for video playing further includes:
the first determining module is used for determining that the target user action is not matched with the target playing action under the condition that the similarity between the user action included in the target user action and the playing action included in the target playing action is smaller than a preset threshold value; or the like, or, alternatively,
the first determining module is used for determining that the target user action is not matched with the target playing action under the condition that the action consistency degree between the user action included in the target user action and the playing action included in the target playing action is not consistent.
In an embodiment of the present invention, in the case of inconsistent consistency of the actions, the adjusting module 520 includes:
the first determining submodule is used for determining a first time interval between a first time corresponding to a first user action and a second time corresponding to a second user action in the target user actions, wherein the first user action and the second user action are continuous user actions;
the second determining submodule is used for determining a second time interval between a third time corresponding to a third playing action and a fourth time corresponding to a fourth playing action in the target playing actions, wherein the third playing action and the fourth playing action are used as continuous playing actions;
the calculating submodule is used for calculating the time difference between the first time interval and the second time interval;
and the adjusting submodule is used for adjusting the corresponding video playing parameter between the third time and the fourth time in the first video under the condition that the time difference is greater than the preset time difference threshold value.
In an embodiment of the present invention, in the case that the similarity is smaller than the preset threshold, the adjusting module 520 includes:
the third determining submodule is used for determining the playing speed corresponding to the similarity based on the similarity between the target user action and the target playing action and the preset corresponding relation between the similarity and the playing speed;
or the like, or, alternatively,
and the third determining submodule is used for determining the circulation playing times corresponding to the similarity based on the similarity between the target user action and the target playing action and the preset corresponding relation between the similarity and the circulation playing times.
In an embodiment of the present invention, when the similarity is smaller than the preset threshold, the adjusting module 520 is specifically configured to:
and amplifying, displaying and playing the target area with the similarity between the target playing action and the target user action smaller than a preset threshold value.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 610 records the second video under the condition of playing the first video; and under the condition that the target user action in the second video is not matched with the target playing action in the first video, adjusting the video playing parameters of the first video.
In the embodiment of the invention, the electronic device can continuously record the user action to obtain the second video when the user imitates the playing action, and adjust the video playing parameter of the first video under the condition that the target user action in the second video is not matched with the target playing action in the first video. The electronic equipment can automatically adjust the playing parameters of the target video according to the comparison between the recorded second video and the target playing action in the first video, the user does not need to interrupt the current learning state, the playing speed or the playing progress is manually adjusted, and the complex operation degree of the user is reduced.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 602, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the electronic apparatus 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The electronic device 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the electronic apparatus 600 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the electronic device, and this is not limited here.
The interface unit 608 is an interface for connecting an external device to the electronic apparatus 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 600 or may be used to transmit data between the electronic device 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 609, and calling data stored in the memory 609, thereby performing overall monitoring of the electronic device. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The electronic device 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 may be logically connected to the processor 610 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
In addition, the electronic device 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program is executed by the processor 610 to implement each process of the above-mentioned method for controlling video playing, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned method for controlling video playing, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for controlling video playing is applied to electronic equipment, and is characterized by comprising the following steps: recording a second video under the condition of playing the first video;
and under the condition that the target user action in the second video is not matched with the target playing action in the first video, adjusting the video playing parameters of the first video.
2. The method of claim 1, wherein after adjusting the video playing parameters of the first video, further comprising:
and according to the adjusted video playing parameters, re-playing a target video segment at least comprising the target playing action in the first video.
3. The method of claim 1, wherein the target user action comprises at least two user actions in at least two video frames of the second video, and wherein the target playback action comprises at least two playback actions in at least two video frames of the first video.
4. The method of claim 3, wherein before adjusting the video playback parameters of the first video, the method further comprises:
determining that the target user action is not matched with the target playing action under the condition that the similarity between the user action included in the target user action and the playing action included in the target playing action is smaller than a preset threshold value; or the like, or, alternatively,
determining that the target user action does not match the target playback action in the event that a degree of action coherence between the user action included in the target user action and the playback action included in the target playback action is inconsistent.
5. The method of claim 4, wherein in the case that the consistency of the action is inconsistent, the adjusting the video playing parameter of the first video comprises:
determining a first time interval between a first time corresponding to a first user action and a second time corresponding to a second user action in the target user actions, wherein the first user action and the second user action are continuous user actions;
determining a second time interval between a third time corresponding to a third playing action and a fourth time corresponding to a fourth playing action in the target playing actions, wherein the third playing action and the fourth playing action are taken as continuous playing actions;
calculating a time difference between the first time interval and the second time interval;
and under the condition that the time difference is greater than a preset time difference threshold value, adjusting video playing parameters corresponding to the third time and the fourth time in the first video.
6. The method according to claim 4, wherein in a case that the similarity is smaller than a preset threshold, the adjusting the video playing parameter of the first video comprises:
determining a playing speed corresponding to the similarity based on the similarity between the target user action and the target playing action and a preset corresponding relation between the similarity and the playing speed;
or the like, or, alternatively,
and determining the circulation playing times corresponding to the similarity based on the similarity between the target user action and the target playing action and the preset corresponding relation between the similarity and the circulation playing times.
7. The method according to claim 4, wherein in a case that the similarity is smaller than a preset threshold, the adjusting the video playing parameter of the first video comprises:
and amplifying, displaying and playing a target area with the similarity between the target playing action and the target user action being smaller than the preset threshold value.
8. An electronic device for video playback, comprising:
the recording module is used for recording a second video under the condition of playing the first video;
and the adjusting module is used for adjusting the video playing parameters of the first video under the condition that the target user action in the second video is not matched with the target playing action in the first video.
9. An electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of video playback control as claimed in any one of claims 1 to 7 when executing the computer program instructions.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of video playback control according to any one of claims 1 to 7.
CN201911416314.9A 2019-12-31 2019-12-31 Video playing control method, electronic equipment and storage medium Pending CN110971963A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911416314.9A CN110971963A (en) 2019-12-31 2019-12-31 Video playing control method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911416314.9A CN110971963A (en) 2019-12-31 2019-12-31 Video playing control method, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110971963A true CN110971963A (en) 2020-04-07

Family

ID=70037634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911416314.9A Pending CN110971963A (en) 2019-12-31 2019-12-31 Video playing control method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110971963A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394906A (en) * 2006-01-24 2009-03-25 索尼株式会社 Audio reproducing device, audio reproducing method, and audio reproducing program
KR20150080237A (en) * 2013-12-31 2015-07-09 주식회사 케이티 Method and Apparatus for Control of Multimedia Contents Play Based on User Action
KR20150106351A (en) * 2014-03-11 2015-09-21 엑시스 에이비 Method and system for playback of motion video
CN105872698A (en) * 2016-03-31 2016-08-17 宇龙计算机通信科技(深圳)有限公司 Playing method, playing system and virtual reality terminal
CN107952238A (en) * 2017-11-23 2018-04-24 乐蜜有限公司 Video generation method, device and electronic equipment
US20180322905A1 (en) * 2017-05-02 2018-11-08 Microsoft Technology Licensing, Llc Control Video Playback Speed Based on User Interaction
CN109144247A (en) * 2018-07-17 2019-01-04 尚晟 The method of video interactive and based on can interactive video motion assistant system
CN110012311A (en) * 2019-05-08 2019-07-12 江苏康兮运动健康研究院有限公司 A kind of action director's audio and video playing methods, devices and systems

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394906A (en) * 2006-01-24 2009-03-25 索尼株式会社 Audio reproducing device, audio reproducing method, and audio reproducing program
KR20150080237A (en) * 2013-12-31 2015-07-09 주식회사 케이티 Method and Apparatus for Control of Multimedia Contents Play Based on User Action
KR20150106351A (en) * 2014-03-11 2015-09-21 엑시스 에이비 Method and system for playback of motion video
CN105872698A (en) * 2016-03-31 2016-08-17 宇龙计算机通信科技(深圳)有限公司 Playing method, playing system and virtual reality terminal
US20180322905A1 (en) * 2017-05-02 2018-11-08 Microsoft Technology Licensing, Llc Control Video Playback Speed Based on User Interaction
CN107952238A (en) * 2017-11-23 2018-04-24 乐蜜有限公司 Video generation method, device and electronic equipment
CN109144247A (en) * 2018-07-17 2019-01-04 尚晟 The method of video interactive and based on can interactive video motion assistant system
CN110012311A (en) * 2019-05-08 2019-07-12 江苏康兮运动健康研究院有限公司 A kind of action director's audio and video playing methods, devices and systems

Similar Documents

Publication Publication Date Title
US11327574B2 (en) Method for controlling play of multimedia file and terminal device
CN109343759B (en) Screen-turning display control method and terminal
CN110174993B (en) Display control method, terminal equipment and computer readable storage medium
WO2019196929A1 (en) Video data processing method and mobile terminal
CN111010608B (en) Video playing method and electronic equipment
CN110062273B (en) Screenshot method and mobile terminal
CN109086027B (en) Audio signal playing method and terminal
CN111459456A (en) Audio control method and electronic equipment
CN108196815B (en) Method for adjusting call sound and mobile terminal
WO2019214502A1 (en) Method for operating multimedia content, and mobile terminal
CN111324235A (en) Screen refreshing frequency adjusting method and electronic equipment
CN108668024B (en) Voice processing method and terminal
CN111370018B (en) Audio data processing method, electronic device and medium
CN108196753B (en) Interface switching method and mobile terminal
CN108124059B (en) Recording method and mobile terminal
CN111147919A (en) Play adjustment method, electronic equipment and computer readable storage medium
CN111261128B (en) Screen brightness adjusting method and electronic equipment
CN111061407B (en) Video program operation control method, electronic device, and storage medium
CN110456959B (en) Terminal control method and terminal
CN108536272B (en) Method for adjusting frame rate of application program and mobile terminal
CN108418961B (en) Audio playing method and mobile terminal
CN110851107A (en) Control method of electronic equipment and electronic equipment
CN109819118B (en) Volume adjusting method and mobile terminal
CN109542293B (en) Menu interface setting method and mobile terminal
CN110519544B (en) Video call method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200407