CN112565909A - Video playing method and device, electronic equipment and readable storage medium - Google Patents

Video playing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112565909A
CN112565909A CN202011377180.7A CN202011377180A CN112565909A CN 112565909 A CN112565909 A CN 112565909A CN 202011377180 A CN202011377180 A CN 202011377180A CN 112565909 A CN112565909 A CN 112565909A
Authority
CN
China
Prior art keywords
frame image
repetition rate
comparison
played
determining
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.)
Granted
Application number
CN202011377180.7A
Other languages
Chinese (zh)
Other versions
CN112565909B (en
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 CN202011377180.7A priority Critical patent/CN112565909B/en
Publication of CN112565909A publication Critical patent/CN112565909A/en
Application granted granted Critical
Publication of CN112565909B publication Critical patent/CN112565909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/47202End-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 requesting content on demand, e.g. video on demand
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application discloses a video playing method and device, electronic equipment and a readable storage medium, and belongs to the field of electronic equipment. In the method, a current frame image and a frame image to be played are obtained under the condition that a video is played at an N-fold speed, wherein the frame image to be played is a video frame image behind the current frame image, then a target frame image is determined according to the repetition rate between the current frame image and the frame image to be played, the repetition rate of the target frame image is matched with a preset repetition rate threshold value corresponding to the N-fold speed, and finally the target frame image is displayed after the current frame image is displayed. Therefore, the playing of the next frame of video image is determined according to the repetition rate of the video image, the number of the played video images can be reduced to a certain extent, the fast playing is ensured, the connection between the played video images is more natural and smooth, and the video playing effect can be improved.

Description

Video playing method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a video playing method and device, electronic equipment and a readable storage medium.
Background
With the continuous popularization of electronic equipment, people use the electronic equipment to watch videos more and more conveniently. When watching videos, the needs of users are more and more diversified, for example, when the time is relatively urgent, the users often need to play the videos quickly so as to obtain the content of the videos in a short time, and when needing to carefully research the content of the videos, the users often need to play the videos slowly.
The existing video playing method generally skips video images with the same frame number at equal intervals directly during playing video according to a fast forward multiple selected by a user, for example, when the user selects fast forward double speed playing, video images with three frames at equal intervals of M seconds are often skips. Therefore, the connection between the played video pictures is relatively rigid, and the video playing effect is poor.
Disclosure of Invention
An object of the embodiments of the present application is to provide a video playing method, an apparatus, an electronic device, and a readable storage medium, which can solve the problems of relatively hard link between played video pictures and poor video playing effect.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a video playing method, where the method includes:
under the condition that a video is played at an N-speed, acquiring a current frame image and a frame image to be played, wherein the frame image to be played is a video frame image behind the current frame image;
determining a target frame image according to the repetition rate between the current frame image and the frame image to be played; the repetition rate of the target frame image is matched with a preset repetition rate threshold corresponding to the N times of speed;
and displaying the target frame image after the current frame image is displayed.
In a second aspect, an embodiment of the present application provides a video playing apparatus, where the apparatus includes:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a current frame image and a frame image to be played under the condition that a video is played at an N-fold speed, and the frame image to be played is a video frame image behind the current frame image;
the determining module is used for determining a target frame image according to the repetition rate between the current frame image and the frame image to be played; the repetition rate of the target frame image is matched with a preset repetition rate threshold corresponding to the N times of speed;
and the display module is used for displaying the target frame image after the current frame image is displayed.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the video playing method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the steps of the video playing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the video playing method according to the first aspect.
In summary, in the video playing method provided in the embodiment of the present invention, under the condition that the video is played at an N-speed, the current frame image and the frame image to be played are obtained, where the frame image to be played is a video frame image after the current frame image, then, according to the repetition rate between the current frame image and the frame image to be played, the target frame image is determined, the repetition rate of the target frame image is matched with the preset repetition rate threshold corresponding to the N-speed, and finally, after the current frame image is displayed, the target frame image is displayed. Therefore, the playing of the next frame of video image is determined according to the repetition rate of the video image, the number of the played video images can be reduced to a certain extent, the fast playing is ensured, the connection between the played video images is more natural and smooth, and the video playing effect can be improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a video playing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of another video playing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a display video playback interface according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a display video image according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another embodiment of the present invention for displaying video images;
fig. 6 is a block diagram illustrating a structure of a video playing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes video playing provided by the embodiments of the present application in detail through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating steps of a video playing method according to an embodiment of the present invention, as shown in fig. 1, the method may include:
step 101, under the condition that a video is played at an N-fold speed, obtaining a current frame image and a frame image to be played, wherein the frame image to be played is a video frame image behind the current frame image.
In the embodiment of the present invention, the current frame image and the frame image to be played are obtained, which may be frame images corresponding to each playing time sequence in a video obtained through video decoding, and based on the current playing time of the video, the frame images with the same playing time sequence as the current frame image are used, and then according to the playing time sequence of the video, all frame images which are not played after the current playing time are used as the frame images to be played. It should be noted that the video may be a video stored on the electronic device, or may be a video played online.
In the embodiment of the present invention, when the video is played at the N-speed, the first input may be received, and the N-speed of the video playing may be determined in response to the first input. Specifically, the first input may be an input operation performed by a user for a video playing speed, where the input operation may be a selection operation performed by the user according to at least one displayed video playing speed, or an input operation performed by the user in a video playing speed input field, and the input numerical value is used as the video playing speed determined by the user, or a voice input operation performed for the video playing speed input field, for example, a voice instruction "to adjust the video playing speed to double-speed playing" may be input, which is not limited by the present invention. Specifically, if the first input is a selection operation, the selected playback speed may be set as an N-speed of the video playback, and if the first input is an input operation, the input playback speed may be set as an N-speed of the video playback, where N is a positive number, N may be 0.5, 0.75, 1, 1.25, 1.5, and the like, and accordingly, the speed of the video playback is 0.5-speed, 0.75-speed, 1-speed, 1.25-speed, 1.5-speed, and the like. The user may perform a first input when the video playing speed needs to be adjusted, and accordingly, the electronic device may receive the first input. For example, assuming that the playing speed of the current video is normal playing, that is, one-time playing, the user performs the first input, and accordingly, the electronic device receives the first input indicating that the playing speed is two-time playing, it may be determined that the N-time speed of the video playing is two-time speed.
It should be noted that the video playing speed may be displayed on the video playing setting interface in a preset display style, and the specific style is not limited in the present invention. After entering the play setting interface, the user may execute a first input for the video play speed to adjust the video play speed. The video playing speed can also be displayed on the video playing interface, the display style is not limited in the invention, and the user can execute the first input aiming at the video playing speed on the video playing interface.
Step 102, determining a target frame image according to the repetition rate between the current frame image and a frame image to be played; and the repetition rate of the target frame image is matched with a preset repetition rate threshold corresponding to the N times of speed.
In the embodiment of the present invention, the repetition rate between the current frame image and the frame image to be played may be: the method comprises the steps of firstly determining the content appearing in a frame image to be played and the content appearing in a current frame image, and determining the ratio of the same content in the two contents in the frame image to be played as the repetition rate.
Specifically, a ratio between the area of the same content and the total area of the frame image to be played may be used as a repetition rate of the frame image to be played, or a ratio between the number of pixels included in the same content and the total number of pixels of the frame image to be played may be used as a repetition rate of the frame image to be played, which is not limited in this embodiment of the present invention. It should be noted that, the content appearing in the frame image to be played is the same as the content appearing in the current frame image, and whether the two contents are the same content may be determined by determining whether the parameter values corresponding to the color, shape, size, and the like of the contents are the same, where the contents may be a person, a scene, and the like, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, the frame image to be played with the repetition rate matched with the preset repetition rate threshold corresponding to the N-fold speed is determined as the target frame image, the corresponding preset repetition rate threshold can be determined according to the N-fold speed of video playing, whether the repetition rate of the frame image to be played is matched with the preset repetition rate threshold is judged, and the frame image to be played with the repetition rate matched is taken as the target frame image. The preset repetition rate threshold value can be associated with each video playing speed in advance, so that the video playing speeds can correspond to the preset repetition rate threshold values one to one, and the size of the preset repetition rate threshold value is in negative correlation with the size of the video playing speed, that is, when the video playing speed is higher, the preset repetition rate threshold value corresponding to the video playing speed is smaller.
For example, the video playing speed is one-time speed, that is, when the video is played normally, the corresponding preset repetition rate threshold is 100%; when the video playing speed is 1.5 times, the corresponding preset repetition rate threshold value is less than 70%; when the video playing speed is 2 times, the corresponding preset repetition rate threshold value is less than 60%; when the video playing speed is 2.5 times, the corresponding preset repetition rate threshold value is less than 50%; when the video playing speed is 3 times, the corresponding preset repetition rate threshold value is less than 40%.
And 103, displaying the target frame image after the current frame image is displayed.
In the embodiment of the present invention, the video can be played according to the video playing speed selected by the user by displaying the target frame image after the current frame image is displayed.
It should be noted that, the target video image is displayed while corresponding audio information is also included, the audio corresponding to the target frame image may be played after the audio corresponding to the current frame image is played, or the corresponding audio may be played at equal intervals according to the video playing speed and the matching time interval determined according to the video playing speed, which is not limited in this embodiment of the present invention.
In summary, in the video playing method provided in the embodiment of the present invention, under the condition that the video is played at an N-speed, the current frame image and the frame image to be played are obtained, where the frame image to be played is a video frame image after the current frame image, then, according to the repetition rate between the current frame image and the frame image to be played, the target frame image is determined, the repetition rate of the target frame image is matched with the preset repetition rate threshold corresponding to the N-speed, and finally, after the current frame image is displayed, the target frame image is displayed. Therefore, the playing of the next frame of video image is determined according to the repetition rate of the video image, the number of the played video images can be reduced to a certain extent, the fast playing is ensured, the connection between the played video images is more natural and smooth, and the video playing effect can be improved.
Fig. 2 is a flowchart illustrating steps of another video playing method according to an embodiment of the present invention, as shown in fig. 2, the method may include:
step 201, under the condition that a video is played at an N-fold speed, obtaining a current frame image and a frame image to be played, wherein the frame image to be played is a video frame image behind the current frame image.
Specifically, the step 101 may be referred to in an implementation manner of this step, which is not limited in this embodiment of the present invention.
Exemplarily, fig. 3 is a schematic diagram of a display video playing interface according to an embodiment of the present invention, as shown in fig. 3, a video playing progress bar 02 and a playing speed setting interface 03 are displayed on a display screen 01 of an electronic device, and the playing speed setting interface 03 includes a one-time fast forward, a two-time fast forward and a three-time fast forward. When the electronic device receives an input operation of a user for double-speed fast forwarding, the double-speed fast forwarding can be determined as the playing speed of the video.
Step 202, using a frame image to be played next to the current frame image as a comparison frame image, and determining a repetition rate between the comparison frame image and the current frame image.
In the embodiment of the present invention, the repetition rate between the comparison frame image and the current frame image may be determined by first determining whether the color of each object in the comparison frame image is the same as the color of the object in the current frame image, and if the colors are the same, determining that the two objects are the same object, and then determining the ratio of the same object in the comparison frame image.
It should be understood that the repetition rate between the comparison frame image and the current frame image is determined, and the change degree of the video content between different frame images can be determined, so that the target frame image to be displayed can be conveniently determined subsequently, and the video processing efficiency is improved.
It should be noted that the comparison frame image may be a video frame image that is not played after the current frame image, for example, the playing timing of the current frame image is 13 minutes 04 seconds 16 th frame, all the video frame images that are not played after the 13 minutes 04 seconds 16 th frame may be taken as frame images to be played, and the comparison frame image may be a frame image to be played next after the current frame image, that is, the comparison frame image may be a video image corresponding to the 13 minutes 04 seconds 17 th frame.
Optionally, the frame image to be played in the embodiment of the present invention may include k frame image groups to be played, and the method for determining and comparing frame images may further include: if the repetition rate of the p comparison frame images is greater than the preset repetition rate threshold value; determining the ratio of the p to the total number of images in the target image group; the target image group is a frame image group to be played to which the p comparison frame images belong; and if the ratio is greater than a preset ratio threshold, determining the frame image to be played in the next group of frame image groups to be played of the frame image to be played as the comparison frame image.
In the embodiment of the invention, the frame to be played can be divided into k frame image groups to be played, each frame image group to be played comprises at least two frame images to be played, wherein k is a positive integer. When the repetition rate between the comparison frame image and the current frame image is determined, if the repetition rate of the p comparison frame images is larger than a preset repetition rate threshold, determining the ratio of the p to the total number of images in a target image group, wherein the target image group is a frame image group to be played to which the p comparison frame images belong, and p is a positive integer.
For example, if the video playing speed is a double speed, the corresponding preset repetition rate threshold is less than 60%, and p is assumed to be 20, that is, if the repetition rate of 20 compared frame images is greater than 60%, the ratio between 20 and the total number of images in the target image group is determined, and if the total number of images in the target image group is 100, the ratio may be 0.2.
In the embodiment of the present invention, if the ratio is greater than the preset ratio threshold, the frame image to be played in the frame image group to be played next to the frame image to be played is determined as the comparison frame image, where when the ratio is greater than the preset ratio threshold, the frame image group to be played to which p comparison frame images belong is skipped, and the frame image to be played in the frame image group to be played next to the frame image to be played is determined as the comparison frame image, where the preset ratio threshold may be preset by a user according to an actual situation, for example, may be 90%. Therefore, the frame image to be played is divided into a plurality of image groups, when the repetition rate of the images with the number exceeding the preset number is larger than the preset repetition rate threshold value, the repetition rate of the rest of the images in the image group does not need to be detected, the image group can be directly skipped, the frame image to be played in the next image group is used as a comparison frame image, the repetition rate of each frame image to be played does not need to be determined, the time for image processing can be reduced, and the image processing efficiency is improved.
For example, in the frame image group to be played of the 1 st to 100 th frames, the repetition rate of 93 comparison frame images is greater than the preset repetition rate threshold, and since the ratio of the 93 comparison frame images to the total number of images in the frame image group to be played is 93%, and the ratio is greater than the preset ratio threshold 90%, the frame image group to be played of the 1 st to 100 th frames can be skipped, and the image group after the frame image group to be played of the 1 st to 100 th frames, that is, the frame image to be played in the frame image group to be played of the 101 st and 200 th frames, is determined to be the comparison frame image.
Specifically, the determination of the repetition rate between the comparison frame image and the current frame image may be implemented by the following steps 2021 to 2022.
Step 2021, determining the target number of the matched pixels in the comparison frame image and the current frame image according to the display parameters of the pixels in the comparison frame image and the display parameters of the pixels in the current frame image.
In the embodiment of the present invention, the target number of the pixels in the comparison frame image and the current frame image that are matched is determined, which may be determining whether the display parameter of each pixel in the comparison frame image is matched with the display parameter of the pixel at the corresponding position in the current frame image, counting the number of the pixels in the comparison frame image having the matched display parameters, and taking the number of the pixels as the target number.
In the embodiment of the invention, the display parameter can be the pixel value of the pixel point, and the gray characteristic, the contrast characteristic and the brightness characteristic of the pixel point can be embodied through the pixel value. It should be noted that the display parameters may also be gray scale values, contrast, brightness, and the like of the pixels. The display parameters of the pixel points reflect the display characteristics of the video content in the video image, and the target number of the pixel points matched with the current frame image in the comparison frame image is determined, so that whether the video content same as the current frame image exists in the comparison frame image or not and the ratio of the same video content in the comparison frame image can be determined, and the accuracy of calculating the repetition rate of the comparison frame image can be improved.
Step 2022, determining the repetition rate according to the ratio of the target number to the total number of the pixel points in the comparison frame image.
In the embodiment of the present invention, a ratio between the target number and the total number of the pixel points in the comparison frame image may be calculated, and the ratio is used as the repetition rate of the comparison frame image. For example, if the total number of pixels in the comparison frame image is 76800 and the target number is 25600, the ratio between the target number and the total number of pixels in the comparison frame image is 0.3333, and the repetition rate of the comparison frame image is 33.33%. The ratio of the target number to the total number of the pixel points in the comparison frame image is determined as the repetition rate of the comparison frame image, so that the change degree of video contents in different frame images can be reflected, the target frame image needing to be displayed can be conveniently determined subsequently, and the image processing efficiency is improved.
Step 203, if the repetition rate is not greater than the preset repetition rate threshold, determining the comparison frame image as the target frame image.
For example, the speed N times the video playing speed selected by the user is 1.5 times, the preset repetition rate threshold corresponding to the speed 1.5 times is less than 70%, and if the repetition rate of the comparison frame image is 63%, that is, the repetition rate of the comparison frame image is less than the preset repetition rate threshold, the comparison frame image may be determined as the target frame image. The comparison frame image with the repetition rate not greater than the preset repetition rate threshold is determined as the target frame image, so that the target frame image not only meets the video playing speed selected by the user, but also can ensure that the video contents among different played frame images are related, and the user is prevented from missing important video contents.
Step 204, if the repetition rate is greater than the preset repetition rate threshold, taking a frame image to be played next to the comparison frame image as a comparison frame image, and re-executing the operation of determining the repetition rate between the comparison frame image and the current frame image until the repetition rate of the comparison frame image is not greater than the preset repetition rate threshold, and determining the comparison frame image as the target frame image.
In the embodiment of the present invention, when the repetition rate of the comparison frame image is greater than the preset repetition rate threshold, the comparison frame image may be skipped, the frame image to be played next to the comparison frame image is used as a new comparison frame image, the repetition rate between the new comparison frame image and the current frame image is determined for the new comparison frame image, if the repetition rate of the new comparison frame image is not greater than the preset repetition rate threshold, the new comparison frame image is determined as a target frame image, if the repetition rate of the new comparison frame image is greater than the preset repetition rate threshold, the new comparison frame image is skipped, the frame image to be played next to the new comparison frame image is used as a comparison frame image, and the operation of determining the repetition rate between the comparison frame image and the current frame image is executed again until the target frame image is determined. By selectively skipping the frame images with the repetition rate larger than the preset repetition rate threshold value and taking the frame images to be played with the repetition rate smaller than or equal to the preset repetition rate threshold value as the target frame images, the frame images with the repetition rate lower and the video content containing more different contents can be prevented from being skipped, so that the video content is linked more naturally and smoothly, and the video playing effect can be improved.
Illustratively, the speed N of the video playing speed selected by the user is 1.5 times, the preset repetition rate threshold corresponding to the 1.5 times speed is less than 70%, the playing time sequence of the current frame image is 13 minutes 32 seconds 14 th frame, the playing time sequence of the comparison frame image is 13 minutes 32 seconds 15 th frame, and the repetition rate between the comparison frame image and the current frame image is 87 percent, namely, if the repetition rate of the comparison frame image is greater than the preset repetition rate threshold, the comparison frame image with the playing time sequence of 13 minutes, 32 seconds and 15 frames can be skipped, the frame image to be played with the playing time sequence of 13 minutes, 32 seconds and 16 frames can be used as a new comparison frame image, the repetition rate between the new comparison frame image and the current frame image is determined, and the repetition rate of the new comparison frame image is 68 percent, that is, if the repetition rate of the new comparison frame image is smaller than the preset repetition rate threshold, the new comparison frame image of the 16 th frame with the playing time sequence of 13 minutes and 32 seconds may be determined as the target frame image.
For example, fig. 4 is a schematic diagram of displaying a video image according to an embodiment of the present invention, and as shown in fig. 4, a video image and a video playing progress bar 02 are displayed on a display screen 01 of an electronic device, where the video image is a current frame image, and the playing timing is 12' 36 ″ 14. Fig. 5 is a schematic diagram of another embodiment of displaying a video image, as shown in fig. 5, a frame image to be played is displayed on a display screen 01, and the playing timing of the frame image to be played is 12' 36 ″ 17. The repetition rate between the frame image to be played and the current frame image can be determined to be 69%, when the video playing speed selected by the user is 1.5 times, the corresponding preset repetition rate threshold value is less than 70%, and the frame image to be played can be determined to be the target frame image because the repetition rate of the frame image to be played meets the preset repetition rate threshold value; when the video playing speed selected by the user is 2 times, the corresponding preset repetition rate threshold value is less than 60%, and the frame image to be played can be skipped over because the repetition rate of the frame image to be played does not meet the preset repetition rate threshold value.
And step 205, displaying the target frame image after the current frame image is displayed.
For example, the playing timing of the current frame image is 18 minutes, 26 seconds and 16 frames, and the playing timing of the target frame image is 18 minutes, 41 seconds and 06 frames, so that the target frame image of 18 minutes, 41 seconds and 06 frames can be displayed after the current frame image of 18 minutes, 26 seconds and 16 frames is displayed.
Optionally, the determining, according to the display parameter of each pixel in the comparison frame image and the display parameter of each pixel in the current frame image, the target number of pixels matching in the comparison frame image and the current frame image may include:
for any first pixel point in the comparison frame image, determining display position information of the first pixel point and display position information of each pixel point of the current frame image, and determining a second pixel point corresponding to the position of the first pixel point in the current frame image; if the pixel value of the first pixel point is the same as the pixel value of the second pixel point, determining that the first pixel point is matched with the second pixel point; determining the number of first pixel points of a target to obtain the target number; the target first pixel point is a first pixel point with a matched second pixel point.
In the embodiment of the present invention, the display position information of the pixel point may be a coordinate position of the pixel point in the image, specifically, the position of the pixel point in the image may be indicated based on a coordinate system established in the horizontal direction and the vertical direction on the basis of each pixel point on the image, for example, the pixel point located in the first row and the fourth column on the image, and the display position information of the pixel point may be (1, 4). Determining a second pixel point corresponding to the position of the first pixel point in the current frame image, wherein the pixel point on the current frame image, which is the same as the display position information of the first pixel point, can be used as the second pixel point corresponding to the position of the first pixel point in the current frame image according to the display position information of the first pixel point in the comparison frame image. For example, if the display position information of the first pixel point a on the frame image is compared to (12,15), the pixel point B with the display position information of (12,15) on the current frame image is used as the second pixel point corresponding to the first pixel point in the current frame image, that is, the display position information of the second pixel point is (12, 15).
In an embodiment of the present invention, the pixel value of the pixel point may be a channel value of each color of the pixel point in a Red-Green-Blue (RGB) color space, and may include a channel value of an R channel, a channel value of a G channel, and a channel value of a B channel, for example, a black RGB value is (0,0,0), a white RGB value is (255 ), and a Red RGB value is (255,0, 0). When the pixel value of the first pixel point is the same as the pixel value of the second pixel point, it can be determined that the first pixel point is matched with the second pixel point, for example, the pixel value of the first pixel point is (255,128,43), the pixel value of the second pixel point is (255,128,43), and the pixel value of the first pixel point is the same as the pixel value of the second pixel point, it can be determined that the first pixel point is matched with the second pixel point. The number of the first pixel points having the matched second pixel points is used as the target number, for example, when there are 452 first pixel points having the matched second pixel points, the target number is 452. By determining whether the pixel value of each pixel point in the comparison frame image is the same as the pixel value of the pixel point in the current frame image at the corresponding display position, whether the display content in the comparison frame image is the same can be determined, and then the comparison frame image and the current frame image can be used for determining the repetition rate, so that the accuracy of processing the image can be improved.
Optionally, the determining, according to the display parameter of each pixel in the comparison frame image and the display parameter of each pixel in the current frame image, the target number of pixels matching in the comparison frame image and the current frame image may further include:
dividing the comparison frame image in a preset dividing mode to obtain at least one first sub-region, and dividing the current frame image to obtain at least one second sub-region; for any first subregion, determining a second subregion corresponding to the position of the first subregion in the current frame image according to the display position information of the pixel points in the first subregion and the display position information of the pixel points in each second subregion in the current frame image, and obtaining a third subregion; if the first pixel mean value is the same as the second pixel mean value, determining that the first sub-area is matched with the third sub-area; the first pixel mean value is the mean value of the pixel values of the pixel points in the first sub-area, and the second pixel mean value is the mean value of the pixel values of the pixel points in the third sub-area; and calculating to obtain the target quantity according to the quantity of the first sub-areas of the third sub-areas which are matched with each other and the quantity of the pixel points contained in the first sub-areas.
In the embodiment of the present invention, at least one first sub-region is obtained by comparing the frame image according to a preset dividing mode, and at least one second sub-region is obtained by dividing the current frame image according to the preset dividing mode, for example, the preset dividing mode is a ten-equal dividing mode of equally dividing the area, 10 first sub-regions can be obtained by comparing the frame image, and 10 second sub-regions can be obtained by dividing the current frame image. And taking the second sub-area corresponding to the position of the first sub-area in the current frame image as a third sub-area according to the display position information of the pixel points in each first sub-area and the display position information of the pixel points in each second sub-area in the current frame image. And if the average value of the pixel values of the pixel points in the first sub-area is the same as the average value of the pixel values of the pixel points in the third sub-area, determining that the first sub-area is matched with the third sub-area.
In the embodiment of the present invention, the target number is calculated according to the number of the first sub-regions where the matched third sub-regions exist and the number of the pixel points included in the first sub-regions, for example, assuming that the number of the first sub-regions where the matched third sub-regions exist is 12, and the number of the pixel points included in each first sub-region is 100, the target number may be 1200. The average values of the pixel values of the two areas at the same position are compared by dividing the areas on the comparison frame image and the current frame image, and when the average values of the pixel values of the areas are the same, the pixel values of the pixel points in the two areas can be considered to be the same, so that the time for processing data can be saved, and the calculation efficiency can be improved.
Optionally, the method for determining the target frame image in the embodiment of the present invention may further include: if the repetition rate of m continuous comparison frame images is larger than the preset repetition rate threshold, selecting n comparison frame images from the m comparison frame images as the target frame images.
In the embodiment of the invention, when m comparison frame images continuously appear and the repetition rate of each comparison frame image is greater than the preset repetition rate threshold, n comparison frame images are selected from the m comparison frame images to be used as target frame images, wherein m and n are positive integers respectively, and n is less than m. For example, when the repetition rate of 10 comparison frame images appearing consecutively is greater than the preset repetition rate threshold, 2 comparison frame images may be selected from the 10 comparison frame images as the target frame image. Therefore, the problem that when a plurality of frame images with repetition rates larger than the preset repetition rate threshold value appear, the plurality of frame images can be skipped all at once according to the video playing speed, so that the relevance of the video contents among the plurality of frame images is low can be avoided, and the video contents acquired by a user can be ensured to be coherent.
Optionally, the method for determining the target frame image in the embodiment of the present invention may further include: if the repetition rate of the target frame image is smaller than a first specified value, increasing the preset repetition rate threshold; if the repetition rate of the target frame image is greater than a second specified value, reducing the preset repetition rate threshold value; wherein the first specified value and the second specified value are both smaller than the preset repetition rate threshold, and the first specified value is smaller than the second specified value.
In this embodiment of the present invention, the first specified value may be a repetition rate specified by a user in advance, for example, may be 20%. When the repetition rate of the target frame image is less than the first designated value, the preset repetition rate threshold may be increased by increasing an adjustment value based on the preset repetition rate threshold, where the adjustment value may be preset according to actual conditions, for example, may be 5%. The second specified value may be a repetition rate specified in advance by the user, for example, may be 60%. When the repetition rate of the target frame image is greater than the second designated value, the adjustment value may be subtracted from the preset repetition rate threshold to lower the preset repetition rate threshold. It should be noted that both the first specified value and the second specified value are smaller than the preset repetition rate threshold, and the first specified value is smaller than the second specified value. Therefore, when the repetition rate of the target frame image is low, the condition for determining the target frame image can be relaxed by increasing the preset repetition rate threshold, and when the video content changes greatly, the video image with the high repetition rate can be selected as the transition image, so that the played video content is more continuous, and the user can check the video content conveniently. When the repetition rate of the target frame image is high, the preset repetition rate threshold value is reduced, so that the condition for selecting the target frame image can be tightened, the high repetition rate of the video content is avoided, and the video watching efficiency of a user is reduced.
For example, assuming that the preset repetition rate threshold is 70%, when the repetition rate of the target frame image is smaller than the first specified value, the preset repetition rate threshold may be increased, that is, the increase is 75%; when the repetition rate of the target frame image is greater than the second specified value, the preset repetition rate threshold may be decreased, i.e., decreased to 65%.
The process that the invention can realize is: the video playing speed N times input by a user is obtained, the repetition rate of the frame image to be played is calculated, and the video can be played in a fast forward mode according to the repetition rate. For example, the video image of the first frame is a current frame image of the user, the repetition rate of the video image of the second frame with the first frame is 65%, and the repetition rate of the video image of the third frame with the first frame is 57%, if the video playing speed currently selected by the user is 1.5 times, the corresponding preset repetition rate threshold is less than 70%, because the repetition rates of the video image of the second frame and the video image of the third frame both satisfy the preset repetition rate threshold corresponding to 1.5 times, the video image of the second frame can be played, and the video image of the third frame is played; if the video playing speed currently selected by the user is 2 times speed and the corresponding preset repetition rate threshold is less than 60%, the video image of the second frame can be skipped to play the video image of the third frame because the repetition rate of the video image of the second frame does not meet the preset repetition rate threshold corresponding to the 2 times speed and the repetition rate of the video image of the third frame meets the preset repetition rate threshold corresponding to the 2 times speed.
To sum up, in the video playing method provided in the embodiment of the present invention, a current frame image and a frame image to be played are obtained when a video is played at an N-fold speed, where the frame image to be played is a video frame image after the current frame image, then a frame image to be played next to the current frame image is used as a comparison frame image, a repetition rate between the comparison frame image and the current frame image is determined, if the repetition rate is not greater than a preset repetition rate threshold, the comparison frame image is determined as a target frame image, if the repetition rate is greater than the preset repetition rate threshold, the frame image to be played next to the comparison frame image is used as the comparison frame image, and an operation of determining the repetition rate between the comparison frame image and the current frame image is executed again until the repetition rate of the comparison frame image is not greater than the preset repetition rate threshold, the comparison frame image is determined as the target frame image, finally, after the current frame image is displayed, the target frame image is displayed. Therefore, the playing of the next frame of video image is determined according to the repetition rate of the video image, the comparison frame image with the repetition rate not greater than the preset repetition rate threshold value is determined as the target frame image, the target frame image can meet the video playing speed selected by a user, association of video contents in different played frame video images can be guaranteed, the number of played video images can be reduced to a certain extent, the fast playing is guaranteed, the linkage between the played video images is more natural and smooth, and the video playing effect can be improved.
It should be noted that, in the video playing method provided in the embodiment of the present application, the execution main body may be a video playing device, or a control module in the video playing device for executing the video playing method. In the embodiment of the present application, a video playing device executing a video playing method is taken as an example to describe the video playing device provided in the embodiment of the present application.
Fig. 6 is a block diagram of a video playing apparatus according to an embodiment of the present invention, and as shown in fig. 6, the video playing apparatus 30 may include:
an obtaining module 301, configured to obtain a current frame image and a frame image to be played when a video is played at an N-fold speed, where the frame image to be played is a video frame image after the current frame image;
a determining module 302, configured to determine a target frame image according to a repetition rate between the current frame image and a frame image to be played; the repetition rate of the target frame image is matched with a preset repetition rate threshold corresponding to the N times of speed;
a display module 303, configured to display the target frame image after the current frame image is displayed.
In summary, the video playing apparatus provided in the embodiment of the present invention may first acquire a current frame image and a frame image to be played under a condition that a video is played at an N-speed, where the frame image to be played is a video frame image after the current frame image, then determine a target frame image according to a repetition rate between the current frame image and the frame image to be played, where the repetition rate of the target frame image is matched with a preset repetition rate threshold corresponding to the N-speed, and finally display the target frame image after the current frame image is displayed. Therefore, the playing of the next frame of video image is determined according to the repetition rate of the video image, the number of the played video images can be reduced to a certain extent, the fast playing is ensured, the connection between the played video images is more natural and smooth, and the video playing effect can be improved.
Optionally, the determining module 302 is further configured to:
taking a frame image to be played next to the current frame image as a comparison frame image, and determining the repetition rate between the comparison frame image and the current frame image;
if the repetition rate is not greater than the preset repetition rate threshold, determining the comparison frame image as the target frame image;
if the repetition rate is greater than the preset repetition rate threshold, taking a frame image to be played next to the comparison frame image as a comparison frame image, and re-executing the operation of determining the repetition rate between the comparison frame image and the current frame image until the repetition rate of the comparison frame image is not greater than the preset repetition rate threshold, and determining the comparison frame image as the target frame image.
Optionally, the determining module 302 is further configured to:
determining the target number of matched pixels in the comparison frame image and the current frame image according to the display parameters of the pixels in the comparison frame image and the display parameters of the pixels in the current frame image;
and determining the repetition rate according to the ratio of the target number to the total number of pixel points in the comparison frame image.
Optionally, the display parameter includes display position information and a pixel value;
the determining module 302 is further configured to:
for any first pixel point in the comparison frame image, determining display position information of the first pixel point and display position information of each pixel point of the current frame image, and determining a second pixel point corresponding to the position of the first pixel point in the current frame image;
if the pixel value of the first pixel point is the same as the pixel value of the second pixel point, determining that the first pixel point is matched with the second pixel point;
determining the number of first pixel points of a target to obtain the target number; the target first pixel point is a first pixel point with a matched second pixel point.
Optionally, the display parameter includes display position information and a pixel value;
the determining module 302 is further configured to:
dividing the comparison frame image in a preset dividing mode to obtain at least one first sub-region, and dividing the current frame image to obtain at least one second sub-region; for any first subregion, determining a second subregion corresponding to the position of the first subregion in the current frame image according to the display position information of the pixel points in the first subregion and the display position information of the pixel points in each second subregion in the current frame image, and obtaining a third subregion;
if the first pixel mean value is the same as the second pixel mean value, determining that the first sub-area is matched with the third sub-area; the first pixel mean value is the mean value of the pixel values of the pixel points in the first sub-area, and the second pixel mean value is the mean value of the pixel values of the pixel points in the third sub-area;
and calculating to obtain the target quantity according to the quantity of the first sub-areas of the third sub-areas which are matched with each other and the quantity of the pixel points contained in the first sub-areas.
Optionally, the apparatus 30 further includes:
a selecting module, configured to select n comparison frame images from the m comparison frame images as the target frame image if a repetition rate of m comparison frame images occurring consecutively is greater than the preset repetition rate threshold;
wherein m and n are positive integers respectively, and n is less than m.
Optionally, the frame images to be played include k frame image groups to be played; the device 30 further comprises:
the selecting module is used for judging whether the repetition rate of the p comparison frame images is greater than the preset repetition rate threshold value or not; determining the ratio of the p to the total number of images in the target image group; the target image group is a frame image group to be played to which the p comparison frame images belong; and if the ratio is greater than a preset ratio threshold, determining the frame image to be played in the frame image group to be played next to the frame image to be played as the comparison frame image.
Optionally, the apparatus 30 further includes:
the adjusting module is used for increasing the preset repetition rate threshold value if the repetition rate of the target frame image is smaller than a first specified value; if the repetition rate of the target frame image is greater than a second specified value, reducing the preset repetition rate threshold value; wherein the first specified value and the second specified value are both smaller than the preset repetition rate threshold, and the first specified value is smaller than the second specified value.
To sum up, the video playing apparatus provided in the embodiment of the present invention obtains a current frame image and a frame image to be played when a video is played at an N-fold speed, where the frame image to be played is a video frame image after the current frame image, then uses a frame image to be played next to the current frame image as a comparison frame image, and determines a repetition rate between the comparison frame image and the current frame image, if the repetition rate is not greater than a preset repetition rate threshold, the comparison frame image is determined as a target frame image, if the repetition rate is greater than the preset repetition rate threshold, the frame image to be played next to the comparison frame image is determined as the comparison frame image, and the operation of determining the repetition rate between the comparison frame image and the current frame image is executed again until the repetition rate of the comparison frame image is not greater than the preset repetition rate threshold, the comparison frame image is determined as the target frame image, finally, after the current frame image is displayed, the target frame image is displayed. Therefore, the playing of the next frame of video image is determined according to the repetition rate of the video image, the comparison frame image with the repetition rate not greater than the preset repetition rate threshold value is determined as the target frame image, the target frame image can meet the video playing speed selected by a user, association of video contents in different played frame video images can be guaranteed, the number of played video images can be reduced to a certain extent, the fast playing is guaranteed, the linkage between the played video images is more natural and smooth, and the video playing effect can be improved.
Video playing in the embodiment of the applicationDevice for measuring the position of a moving objectMay be a device or may be a component, integrated circuit, or chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The video playing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The video playing device provided in the embodiment of the present application can implement each process in the method embodiments of fig. 1 to fig. 5, and is not described herein again to avoid repetition.
Optionally, an electronic device 400 is further provided in this embodiment of the present application, and includes a processor 410, a memory 409, and a program or an instruction stored in the memory 409 and executable on the processor 410, where the program or the instruction is executed by the processor 410 to implement each process of the above-described embodiment of the video playing method, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 400 includes, but is not limited to: radio unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the electronic device 400 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 410 is configured to acquire a current frame image and a frame image to be played under the condition that a video is played at an N-fold speed, where the frame image to be played is a video frame image after the current frame image;
the processor 410 is configured to determine a target frame image according to a repetition rate between the current frame image and a frame image to be played; the repetition rate of the target frame image is matched with a preset repetition rate threshold corresponding to the N times of speed;
a display unit 406, configured to display the target frame image after the current frame image is displayed.
In summary, in the video playing method provided in the embodiment of the present invention, under the condition that the video is played at an N-speed, the current frame image and the frame image to be played are obtained, where the frame image to be played is a video frame image after the current frame image, then, according to the repetition rate between the current frame image and the frame image to be played, the target frame image is determined, the repetition rate of the target frame image is matched with the preset repetition rate threshold corresponding to the N-speed, and finally, after the current frame image is displayed, the target frame image is displayed. Therefore, the playing of the next frame of video image is determined according to the repetition rate of the video image, the number of the played video images can be reduced to a certain extent, the fast playing is ensured, the connection between the played video images is more natural and smooth, and the video playing effect can be improved.
It should be understood that in the embodiment of the present application, the input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes a touch panel 4071 and other input devices 4072. A touch panel 4071, also referred to as a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 410 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the video playing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above video playing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application 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 application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A video playback method, the method comprising:
under the condition that a video is played at an N-speed, acquiring a current frame image and a frame image to be played, wherein the frame image to be played is a video frame image behind the current frame image;
determining a target frame image according to the repetition rate between the current frame image and the frame image to be played; the repetition rate of the target frame image is matched with a preset repetition rate threshold corresponding to the N times of speed;
and displaying the target frame image after the current frame image is displayed.
2. The method according to claim 1, wherein the determining a target frame image according to the repetition rate between the current frame image and the frame image to be played comprises:
taking a frame image to be played next to the current frame image as a comparison frame image, and determining the repetition rate between the comparison frame image and the current frame image;
if the repetition rate is not greater than the preset repetition rate threshold, determining the comparison frame image as the target frame image;
if the repetition rate is greater than the preset repetition rate threshold, taking a frame image to be played next to the comparison frame image as a comparison frame image, and re-executing the operation of determining the repetition rate between the comparison frame image and the current frame image until the repetition rate of the comparison frame image is not greater than the preset repetition rate threshold, and determining the comparison frame image as the target frame image.
3. The method of claim 2, wherein determining the repetition rate between the comparison frame image and the current frame image comprises:
determining the target number of matched pixels in the comparison frame image and the current frame image according to the display parameters of the pixels in the comparison frame image and the display parameters of the pixels in the current frame image;
and determining the repetition rate according to the ratio of the target number to the total number of pixel points in the comparison frame image.
4. The method of claim 3, wherein the display parameters include display position information and pixel values;
the determining the target number of the matched pixels in the comparison frame image and the current frame image according to the display parameters of the pixels in the comparison frame image and the display parameters of the pixels in the current frame image includes:
for any first pixel point in the comparison frame image, determining display position information of the first pixel point and display position information of each pixel point of the current frame image, and determining a second pixel point corresponding to the position of the first pixel point in the current frame image;
if the pixel value of the first pixel point is the same as the pixel value of the second pixel point, determining that the first pixel point is matched with the second pixel point;
determining the number of first pixel points of a target to obtain the target number; the target first pixel point is a first pixel point with a matched second pixel point.
5. The method of claim 2, further comprising:
if the repetition rate of m continuous comparison frame images is greater than the preset repetition rate threshold, selecting n comparison frame images from the m comparison frame images as the target frame images;
wherein m and n are positive integers respectively, and n is less than m.
6. A video playback apparatus, comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a current frame image and a frame image to be played under the condition that a video is played at an N-fold speed, and the frame image to be played is a video frame image behind the current frame image;
the determining module is used for determining a target frame image according to the repetition rate between the current frame image and the frame image to be played; the repetition rate of the target frame image is matched with a preset repetition rate threshold corresponding to the N times of speed;
and the display module is used for displaying the target frame image after the current frame image is displayed.
7. The apparatus of claim 6, wherein the determining module is further configured to:
taking a frame image to be played next to the current frame image as a comparison frame image, and determining the repetition rate between the comparison frame image and the current frame image;
if the repetition rate is not greater than the preset repetition rate threshold, determining the comparison frame image as the target frame image;
if the repetition rate is greater than the preset repetition rate threshold, taking a frame image to be played next to the comparison frame image as a comparison frame image, and re-executing the operation of determining the repetition rate between the comparison frame image and the current frame image until the repetition rate of the comparison frame image is not greater than the preset repetition rate threshold, and determining the comparison frame image as the target frame image.
8. The apparatus of claim 7, wherein the determining module is further configured to:
determining the target number of matched pixels in the comparison frame image and the current frame image according to the display parameters of the pixels in the comparison frame image and the display parameters of the pixels in the current frame image;
and determining the repetition rate according to the ratio of the target number to the total number of pixel points in the comparison frame image.
9. The apparatus of claim 8, wherein the display parameters comprise display position information and pixel values;
the determining module is further configured to:
for any first pixel point in the comparison frame image, determining display position information of the first pixel point and display position information of each pixel point of the current frame image, and determining a second pixel point corresponding to the position of the first pixel point in the current frame image;
if the pixel value of the first pixel point is the same as the pixel value of the second pixel point, determining that the first pixel point is matched with the second pixel point;
determining the number of first pixel points of a target to obtain the target number; the target first pixel point is a first pixel point with a matched second pixel point.
10. The apparatus of claim 7, further comprising:
a selecting module, configured to select n comparison frame images from the m comparison frame images as the target frame image if a repetition rate of m comparison frame images occurring consecutively is greater than the preset repetition rate threshold;
wherein m and n are positive integers respectively, and n is less than m.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the video playback method as claimed in any one of claims 1 to 5.
12. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the video playback method according to any one of claims 1 to 5.
CN202011377180.7A 2020-11-30 2020-11-30 Video playing method and device, electronic equipment and readable storage medium Active CN112565909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011377180.7A CN112565909B (en) 2020-11-30 2020-11-30 Video playing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011377180.7A CN112565909B (en) 2020-11-30 2020-11-30 Video playing method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112565909A true CN112565909A (en) 2021-03-26
CN112565909B CN112565909B (en) 2023-04-11

Family

ID=75046114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011377180.7A Active CN112565909B (en) 2020-11-30 2020-11-30 Video playing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112565909B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115190363A (en) * 2021-04-02 2022-10-14 花瓣云科技有限公司 Video playing method, device and storage medium
CN116993253A (en) * 2023-07-12 2023-11-03 哈尔滨商业大学 Real-time logistics information tracking method and system

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07274112A (en) * 1994-03-31 1995-10-20 Hitachi Ltd Digital information reproducing device
US20040189691A1 (en) * 2003-03-28 2004-09-30 Nebojsa Jojic User interface for adaptive video fast forward
KR20070111264A (en) * 2006-05-17 2007-11-21 삼성전자주식회사 Apparatus and method for video retrieval
US20140286577A1 (en) * 2013-03-22 2014-09-25 Electronics And Telecommunications Research Institute Image registration device and operation method of the same
US20160313903A1 (en) * 2013-12-11 2016-10-27 Given Imaging Ltd. System and method for controlling the display of an image stream
CN106559712A (en) * 2016-11-28 2017-04-05 北京小米移动软件有限公司 Video playback processing method, device and terminal device
CN108012164A (en) * 2017-12-05 2018-05-08 北京奇艺世纪科技有限公司 A kind of video broadcasting method, device and electronic equipment
CN108322831A (en) * 2018-02-28 2018-07-24 广东美晨通讯有限公司 video playing control method, mobile terminal and computer readable storage medium
WO2019136897A1 (en) * 2018-01-10 2019-07-18 武汉斗鱼网络科技有限公司 Image processing method, apparatus, electronic device and storage medium
CN110113666A (en) * 2019-05-10 2019-08-09 腾讯科技(深圳)有限公司 A kind of method for broadcasting multimedia file, device, equipment and storage medium
CN110121098A (en) * 2018-02-05 2019-08-13 腾讯科技(深圳)有限公司 Video broadcasting method, device, storage medium and electronic device
CN110856042A (en) * 2019-11-18 2020-02-28 腾讯科技(深圳)有限公司 Video playing method and device, computer readable storage medium and computer equipment
CN111327966A (en) * 2020-03-27 2020-06-23 深圳市酷开网络科技有限公司 Video double-speed playing method, system and storage medium
CN111488932A (en) * 2020-04-10 2020-08-04 中国科学院大学 Self-supervision video time-space characterization learning method based on frame rate perception
CN111598794A (en) * 2020-04-24 2020-08-28 山东易华录信息技术有限公司 Image imaging method and device for removing underwater overlapping condition

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07274112A (en) * 1994-03-31 1995-10-20 Hitachi Ltd Digital information reproducing device
US20040189691A1 (en) * 2003-03-28 2004-09-30 Nebojsa Jojic User interface for adaptive video fast forward
KR20070111264A (en) * 2006-05-17 2007-11-21 삼성전자주식회사 Apparatus and method for video retrieval
US20140286577A1 (en) * 2013-03-22 2014-09-25 Electronics And Telecommunications Research Institute Image registration device and operation method of the same
US20160313903A1 (en) * 2013-12-11 2016-10-27 Given Imaging Ltd. System and method for controlling the display of an image stream
CN106559712A (en) * 2016-11-28 2017-04-05 北京小米移动软件有限公司 Video playback processing method, device and terminal device
CN108012164A (en) * 2017-12-05 2018-05-08 北京奇艺世纪科技有限公司 A kind of video broadcasting method, device and electronic equipment
WO2019136897A1 (en) * 2018-01-10 2019-07-18 武汉斗鱼网络科技有限公司 Image processing method, apparatus, electronic device and storage medium
CN110121098A (en) * 2018-02-05 2019-08-13 腾讯科技(深圳)有限公司 Video broadcasting method, device, storage medium and electronic device
CN108322831A (en) * 2018-02-28 2018-07-24 广东美晨通讯有限公司 video playing control method, mobile terminal and computer readable storage medium
CN110113666A (en) * 2019-05-10 2019-08-09 腾讯科技(深圳)有限公司 A kind of method for broadcasting multimedia file, device, equipment and storage medium
CN110856042A (en) * 2019-11-18 2020-02-28 腾讯科技(深圳)有限公司 Video playing method and device, computer readable storage medium and computer equipment
CN111327966A (en) * 2020-03-27 2020-06-23 深圳市酷开网络科技有限公司 Video double-speed playing method, system and storage medium
CN111488932A (en) * 2020-04-10 2020-08-04 中国科学院大学 Self-supervision video time-space characterization learning method based on frame rate perception
CN111598794A (en) * 2020-04-24 2020-08-28 山东易华录信息技术有限公司 Image imaging method and device for removing underwater overlapping condition

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
何天琦等: "视频帧率上转换检测技术综述", 《网络与信息安全学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115190363A (en) * 2021-04-02 2022-10-14 花瓣云科技有限公司 Video playing method, device and storage medium
CN115190363B (en) * 2021-04-02 2024-05-17 花瓣云科技有限公司 Video playing method, device and storage medium
CN116993253A (en) * 2023-07-12 2023-11-03 哈尔滨商业大学 Real-time logistics information tracking method and system

Also Published As

Publication number Publication date
CN112565909B (en) 2023-04-11

Similar Documents

Publication Publication Date Title
CN109783178B (en) Color adjusting method, device, equipment and medium for interface component
CN112565909B (en) Video playing method and device, electronic equipment and readable storage medium
CN112004117B (en) Video playing method and device
CN111816139A (en) Screen refresh rate switching method and electronic equipment
CN112565868A (en) Video playing method and device and electronic equipment
CN112037160A (en) Image processing method, device and equipment
CN112289278A (en) Screen brightness adjusting method, screen brightness adjusting device and electronic equipment
CN112616078A (en) Screen projection processing method and device, electronic equipment and storage medium
CN112291480B (en) Tracking focusing method, tracking focusing device, electronic device and readable storage medium
CN112199149A (en) Interface rendering method and device and electronic equipment
CN113282212A (en) Interface display method, interface display device and electronic equipment
WO2023125553A1 (en) Frame interpolation method and apparatus and electronic device
CN113271494B (en) Video frame processing method and device and electronic equipment
CN115543137A (en) Video playing method and device
CN112910875B (en) Display method and device
CN111654640B (en) Exposure adjusting method and device and electronic equipment
CN112418942A (en) Advertisement display method and device and electronic equipment
CN113891018A (en) Shooting method and device and electronic equipment
CN114155151A (en) Image drawing method, device, equipment and storage medium
CN113923392A (en) Video recording method, video recording device and electronic equipment
CN112511890A (en) Video image processing method and device and electronic equipment
CN113038094B (en) Image acquisition method and device
CN113114930B (en) Information display method, device, equipment and medium
CN112637528B (en) Picture processing method and device
CN111722891B (en) Display method, display device, computer-readable storage medium, and computer apparatus

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
GR01 Patent grant
GR01 Patent grant