×

Method, device, terminal device, and storage medium for video effect processing

  • US 10,212,386 B2
  • Filed: 05/18/2016
  • Issued: 02/19/2019
  • Est. Priority Date: 08/28/2015
  • Status: Active Grant
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.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×