Method, device, terminal device, and storage medium for video effect processing
First Claim
Patent Images
1. A method for video effect processing, comprising:
- receiving a video effect processing instruction associated with a video;
performing a movement amount detection on each of a plurality of video frames of the video to determine target video frames that require the video effect processing; and
performing the video effect processing on the target video frames during playback of the video,wherein when the video effect processing instruction includes a slow motion video effect processing instruction, performing the movement amount detection to determine the target video frames includes, for each of the plurality of video frames;
acquiring motion vector magnitude values of all preset blocks in the video frame;
determining a number of fast blocks in the video frame, a fast block being a preset block that has a motion vector magnitude value greater than a motion vector threshold;
calculating a first ratio between the number of fast blocks and a total number of preset blocks in the video frame;
determining whether the first ratio is greater than a first preset ratio threshold; and
determining, if the first ratio is greater than the first preset ratio threshold, the video frame to be a target video frame; and
wherein when the video effect processing instruction includes a fast forward video effect processing instruction that is configured to trigger the video to be played faster than a normal speed, performing the movement amount detection to determine the target video frames includes, for each of the plurality of video frames;
acquiring motion vector magnitude values of all preset blocks in the video frame;
determining a number of slow blocks in the video frame, a slow block being a preset block that has a motion vector magnitude value smaller than the motion vector threshold;
calculating a second ratio between the number of slow blocks and the total number of preset blocks in the video frame;
determining whether the second ratio is greater than a second preset ratio threshold; and
determining, if the second ratio is greater than the second preset ratio threshold, the video frame to be the target video frame.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for video effect processing includes receiving a video effect processing instruction associated with a video, performing a movement amount detection on each of a plurality of video frames of the video to determine target video frames that require the video effect processing, and performing the video effect processing on the target video frames during playback of the video.
-
Citations
9 Claims
-
1. A method for video effect processing, comprising:
-
receiving a video effect processing instruction associated with a video; performing a movement amount detection on each of a plurality of video frames of the video to determine target video frames that require the video effect processing; and performing the video effect processing on the target video frames during playback of the video, wherein when the video effect processing instruction includes a slow motion video effect processing instruction, performing the movement amount detection to determine the target video frames includes, for each of the plurality of video frames; acquiring motion vector magnitude values of all preset blocks in the video frame; determining a number of fast blocks in the video frame, a fast block being a preset block that has a motion vector magnitude value greater than a motion vector threshold; calculating a first ratio between the number of fast blocks and a total number of preset blocks in the video frame; determining whether the first ratio is greater than a first preset ratio threshold; and determining, if the first ratio is greater than the first preset ratio threshold, the video frame to be a target video frame; and wherein when the video effect processing instruction includes a fast forward video effect processing instruction that is configured to trigger the video to be played faster than a normal speed, performing the movement amount detection to determine the target video frames includes, for each of the plurality of video frames; acquiring motion vector magnitude values of all preset blocks in the video frame; determining a number of slow blocks in the video frame, a slow block being a preset block that has a motion vector magnitude value smaller than the motion vector threshold; calculating a second ratio between the number of slow blocks and the total number of preset blocks in the video frame; determining whether the second ratio is greater than a second preset ratio threshold; and determining, if the second ratio is greater than the second preset ratio threshold, the video frame to be the target video frame. - View Dependent Claims (2, 3, 4)
-
-
5. A terminal device, comprising:
-
a processor; and a memory storing instructions that, when executed by the processor, cause the processor to; receive a video effect processing instruction associated with a video; perform a movement amount detection on each of a plurality of video frames of the video to determine target video frames that require the video effect processing; and perform the video effect processing on the target video frames during playback of the video, wherein when the video effect processing instruction includes a slow motion video effect processing instruction, the instructions further cause the processor to, for each of the plurality of video frames; acquire motion vector magnitude values of all preset blocks in the video frame; determine a number of fast blocks in the video frame, a fast block being a preset block that has a motion vector magnitude value greater than a motion vector threshold; calculate a first ratio between the number of fast blocks and a total number of preset blocks in the video frame; determine whether the first ratio is greater than a first preset ratio threshold; and determine, if the first ratio is greater than the first preset ratio threshold, the video frame to be a target video frame; and wherein when the video effect processing instruction includes a fast forward video effect processing instruction that is configured to trigger the video to be played faster than a normal speed, the instructions further cause the processor to, for each of the plurality of video frames; acquire motion vector magnitude values of all preset blocks in the video frame; determine a number of slow blocks in the video frame, a slow block being a preset block that has a motion vector magnitude value smaller than the motion vector threshold; calculate a second ratio between the number of slow blocks and the total number of preset blocks in the video frame; determine whether the second ratio is greater than a second preset ratio threshold; and determine, if the second ratio is greater than the second preset ratio threshold, the video frame to be the target video frame. - View Dependent Claims (6, 7, 8)
-
-
9. A non-transitory computer-readable storage medium storing instructions that, when executed by a processor in a terminal, cause the terminal to:
-
receive a video effect processing instruction associated with a video; perform a movement amount detection on each of a plurality of video frames of the video to determine target video frames that require the video effect processing; and perform the video effect processing on the target video frames during playback of the video, wherein when the video effect processing instruction includes a slow motion video effect processing instruction, the instructions further cause the terminal to, for each of the plurality of video frames; acquire motion vector magnitude values of all preset blocks in the video frame; determine a number of fast blocks in the video frame, a fast block being a preset block that has a motion vector magnitude value greater than a motion vector threshold; calculate a first ratio between the number of fast blocks and a total number of preset blocks in the video frame; determine whether the first ratio is greater than a first preset ratio threshold; and determine, if the first ratio is greater than the first preset ratio threshold, the video frame to be a target video frame; and wherein when the video effect processing instruction includes a fast forward video effect processing instruction that is configured to trigger the video to be played faster than a normal speed, the instructions further cause the processor to, for each of the plurality of video frames; acquire motion vector magnitude values of all preset blocks in the video frame; determine a number of slow blocks in the video frame, a slow block being a preset block that has a motion vector magnitude value smaller than the motion vector threshold; calculate a second ratio between the number of slow blocks and the total number of preset blocks in the video frame; determine whether the second ratio is greater than a second preset ratio threshold; and determine, if the second ratio is greater than the second preset ratio threshold, the video frame to be the target video frame.
-
Specification