CN114422867A - Video playing method, system, storage medium and electronic equipment - Google Patents
Video playing method, system, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN114422867A CN114422867A CN202111540746.8A CN202111540746A CN114422867A CN 114422867 A CN114422867 A CN 114422867A CN 202111540746 A CN202111540746 A CN 202111540746A CN 114422867 A CN114422867 A CN 114422867A
- Authority
- CN
- China
- Prior art keywords
- video
- target image
- preset
- image
- video frame
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000004590 computer program Methods 0.000 claims description 16
- 230000001815 facial effect Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000005236 sound signal Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/65—Transmission of management data between client and server
- H04N21/658—Transmission by the client directed to the server
- H04N21/6587—Control parameters, e.g. trick play commands, viewpoint selection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
- H04N21/2387—Stream processing in response to a playback request from an end-user, e.g. for trick-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-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/47205—End-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 manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-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/47214—End-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 content reservation or setting reminders; for requesting event notification, e.g. of sport results or stock market
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Business, Economics & Management (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention relates to the technical field of video players and discloses a video playing method, a video playing system, a storage medium and electronic equipment. The video playing method comprises the following steps: when an acquisition instruction is received, acquiring a target image in a video according to a preset rule; acquiring all video frames containing the target image from the video; and when a processing instruction is received, processing all the video frames containing the target image according to a preset processing mode. Specific frames in the video can be flexibly marked, the marked video frames can be automatically skipped over, the continuity of video playing is well guaranteed, and the watching experience is improved.
Description
Technical Field
The present invention relates to the field of video player technologies, and in particular, to a video playing method, a video playing system, a storage medium, and an electronic device.
Background
With the development of communication technology, users who choose to watch videos through a network are more and more, many users are attracted to and dislike certain characters in a drama, and when the disliked characters appear in the videos, fast forward is usually chosen to avoid the pictures.
In the prior art, if a user wants to skip the segments appearing in some roles, the segment appearing in each role can be screened out in advance and marked by a video provider, so that the user can select fast forwarding autonomously, but the switching among different roles can affect the viewing experience.
Disclosure of Invention
In view of the above problems, the present invention provides a video playing method, system, storage medium and electronic device, which solve the technical problems that a user cannot autonomously and flexibly determine a target image and cannot autonomously process a video frame including a preset image.
In a first aspect of the present invention, a video playing method is provided, where the method includes:
when an acquisition instruction is received, acquiring a target image in a video according to a preset rule;
acquiring all video frames containing the target image from the video;
and when a processing instruction is received, processing all the video frames containing the target image according to a preset processing mode.
In some embodiments, when the obtaining instruction is received, obtaining the target image in the video according to a preset rule includes:
and when an acquisition instruction is received, acquiring a target image from all video frames in the video within the preset time from the beginning of the current playing progress.
In some embodiments, the target image comprises:
one or more of a facial image of a person, an image of a character, and an image of a prop.
In some embodiments, the obtaining, from the video, all video frames containing the target image includes:
comparing the target image to each video frame image in the video;
when the video frame image compared with the target image meets a preset condition, judging that the video frame corresponding to the video frame image comprises the target image;
and acquiring the video frame.
In some embodiments, the determining that the video frame corresponding to the video frame image includes the target image when the video frame image compared with the target image satisfies a preset condition includes:
and when the picture occupation ratio of the target image in the current video frame image to be compared is greater than or equal to a preset picture occupation ratio threshold value, judging that the video frame corresponding to the video frame image comprises the target image.
In some embodiments, after said obtaining all video frames containing said target image from said video, further comprises:
determining a time node of each video frame containing a target image in the video;
and displaying the progress bar of each video frame containing the target image at the position corresponding to the time node in the video according to a preset display mode.
In some embodiments, when the processing instruction is received, processing all the video frames containing the target image according to a preset processing mode includes:
when a processing instruction is received, setting a non-playing mark for all video frames containing a target image; or the like, or, alternatively,
and when a processing instruction is received, setting the playing speed of all the video frames containing the target image as the preset playing speed.
In a second aspect of the present invention, there is provided a video playback system, including:
the first acquisition unit is used for acquiring a target image in a video according to a preset rule when an acquisition instruction is received;
a second obtaining unit, configured to obtain all video frames including the target image from the video;
and the processing unit is used for processing all the video frames containing the target image according to a preset processing mode when receiving the processing instruction.
In a third aspect of the present invention, a storage medium storing a computer program executable by one or more processors for implementing the video playback method as described above is provided.
In a fourth aspect of the present invention, an electronic device is provided, which includes a memory and a processor, the memory stores a computer program, the memory and the processor are communicatively connected to each other, and the computer program, when executed by the processor, implements the video playing method as described above.
Compared with the prior art, the technical scheme of the invention has the following advantages or beneficial effects:
specific frames in the video can be flexibly marked, the marked video frames can be automatically skipped over, the continuity of video playing is well guaranteed, and the watching experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a video playing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a video playing system according to an embodiment of the present application;
fig. 3 is a connection block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following detailed description will be provided with reference to the accompanying drawings and embodiments, so that how to apply the technical means to solve the technical problems and achieve the corresponding technical effects can be fully understood and implemented. The embodiments and various features in the embodiments of the present application can be combined with each other without conflict, and the formed technical solutions are all within the scope of protection of the present application.
Example one
Fig. 1 is a flowchart of a video playing method provided in an embodiment of the present application, and as shown in fig. 1, the method of the present embodiment includes:
and S100, when an acquisition instruction is received, acquiring a target image in the video according to a preset rule.
In some embodiments, when the obtaining instruction is received, obtaining the target image in the video according to a preset rule, including:
and when an acquisition instruction is received, acquiring the target image from all video frames in the preset time of the current playing progress in the video.
Alternatively, the preset time may be set to (-2S, 1S) to indicate that the target image is acquired from all video frames within a period of time (total 3 seconds) from the first 2 seconds at the current play progress position to the last 1 second at the current play progress position, and the preset time may also be set to (-3S, 0S) to indicate that the target image is acquired from all video frames within the first 3 seconds at the current play progress position.
Optionally, the preset rule may be set as: firstly, all face images within a preset time are acquired, then a target face image is selected from a face image list, for example, if a key for acquiring the target image is clicked in the video playing process, all video frames within the last 3 seconds in the video are acquired at first, all face images are analyzed from the video frames, if similar face images exist, the face images are automatically combined, the acquired face images are displayed in a centralized mode in a list mode, and when an acquisition instruction is received, one or more target face images are determined from the face image list.
It should be noted that both the preset time and the preset rule can be set according to the actual requirements of the user, and are not limited herein.
In some embodiments, the target image comprises:
one or more of a facial image of a person, an image of a character, and an image of a prop.
Optionally, the key for obtaining the target image is clicked in the video playing process, then all video frames in the last 3 seconds in the video are automatically obtained, the target image is analyzed from the video frames, and if similar target images exist, the target images are automatically merged. At this time, the state of the progress bar in which the video is played may be regarded as the initial state of the progress bar.
S200, all video frames containing the target image are acquired from the video.
Optionally, all video frames containing the target image are obtained from all video frames in the video through a corresponding algorithm.
In some embodiments, all video frames containing the target image are obtained from the unplayed video frames after the current playing progress of the video.
In some embodiments, obtaining all video frames containing the target image from the video includes:
comparing the target image with each video frame image in the video;
when the video frame image compared with the target image meets the preset condition, judging that the video frame corresponding to the video frame image comprises the target image;
a video frame is acquired.
In some embodiments, when the video frame image compared with the target image satisfies the preset condition, determining that the video frame corresponding to the video frame image includes the target image includes:
and when the picture occupation ratio of the target image in the current video frame image to be compared is greater than or equal to a preset picture occupation ratio threshold, judging that the video frame corresponding to the video frame image comprises the target image.
It should be noted that the preset condition may be set according to an actual requirement of a user, and is not limited herein.
In some embodiments, after acquiring all video frames containing the target image from the video, the method further includes:
determining a time node of each video frame containing the target image in the video;
and displaying the progress bar of each video frame containing the target image at the position corresponding to the time node in the video according to a preset display mode.
It should be noted that the preset display mode may be set according to the actual requirement of the user, and is not limited herein.
Optionally, the target image is compared with each video frame image in the video, after the matching is successful, according to whether the proportion of the target image in the video frame is greater than or equal to the picture proportion threshold, when the proportion of the target image in the video frame is greater than or equal to the picture proportion threshold (for example, the picture proportion threshold may be set to 10%), it may be considered that the video frame includes the target image, and the video frame and the time node of the video frame in the video are stored, and the progress bar at the corresponding position of the video frame in the video is displayed according to a preset manner (for example, the progress bar is thickened, or another color is used to identify the progress bar at the corresponding position).
It should be noted that the frame ratio threshold of the target image may be set according to the actual requirement of the user, and is not limited herein.
Further, the significance of setting the screen duty threshold is as follows: if the proportion of the target image selected by the user in the picture is small, the target image is not considered to be a key object to be watched in the picture of the video frame, the watching experience cannot be influenced even if the video frame is skipped, and the continuity and the integrity of video playing can be ensured to the maximum extent by adopting the processing mode.
In some embodiments, before acquiring all video frames containing the target image from the video, the method further includes:
and acquiring all video frames containing preset images from the video frames.
In some embodiments, after acquiring all video frames containing the preset image from the video frames, the method further includes:
comparing the target image with each video frame image containing a preset image;
when the video frame image compared with the target image meets the preset condition, judging that the video frame corresponding to the video frame image comprises the target image;
a video frame is acquired.
Specifically, all video frames containing faces (preset images) in a video are acquired, then a target face (target image) is compared with the faces in all the video frames containing faces (preset images), and the video frames containing the target face are screened out after matching is successful.
And S300, when a processing instruction is received, processing all video frames containing the target image according to a preset processing mode.
In some embodiments, when the processing instruction is received, all video frames containing the target image are processed according to a preset processing mode, including:
when a processing instruction is received, setting a non-playing mark for all video frames containing a target image; or the like, or, alternatively,
and when a processing instruction is received, setting the playing speed of all the video frames containing the target image as the preset playing speed.
Optionally, after determining all video frames containing the target image from the video, sending a prompting message to the user, the user determining the prompting message, processing all video frames containing the target image according to a preset processing mode after receiving the determining message, ignoring all acquired video frames containing the target image after receiving the ignoring message, and restoring the progress bar to the initial state.
Optionally, when the processing instruction is received, the non-play flag may be set for all the video frames containing the target image, for example, when the video is played to the video frames, skipping processing is directly performed, so that the video frames containing the target image are not played; alternatively, the playing speed of all video frames containing the target image is set to the preset playing speed, for example, when the video frames are played, the video frames are played at a speed 5 times the normal playing speed.
It should be noted that the preset playing speed may be set according to the actual requirement of the user, and is not limited herein.
The embodiment acquires the preset image in the video when receiving the acquisition instruction; when a selection instruction is received, selecting a target image from preset images; acquiring all video frames containing target images from a video; and when a processing instruction is received, processing all video frames containing the target image according to a preset processing mode. Specific frames in the video can be labeled, and the labeled video frames can be skipped automatically, so that the continuity of video playing is better ensured, and the watching experience is improved.
Example two
Fig. 2 is a schematic view of a video playing system provided in an embodiment of the present application, and as shown in fig. 2, a video playing system 200 provided in this embodiment includes:
the first acquiring unit 201 is configured to acquire a target image in a video according to a preset rule when an acquiring instruction is received.
In some embodiments, when receiving the acquiring instruction, the first acquiring unit 201 is configured to acquire the target image from all video frames in the video within a preset time from the start of the current playing progress.
It should be noted that both the preset time and the preset rule can be set according to the actual requirements of the user, and are not limited herein.
In some embodiments, the target image comprises:
one or more of a facial image of a person, an image of a character, and an image of a prop.
Optionally, the key for obtaining the target image is clicked in the video playing process, then all video frames in the last 3 seconds in the video are automatically obtained, the target image is analyzed from the video frames, and if similar target images exist, the target images are automatically merged. At this time, the state of the progress bar in which the video is played may be regarded as the initial state of the progress bar.
A second obtaining unit 202, configured to obtain all video frames containing the target image from the video.
Optionally, all video frames containing the target image are obtained from all video frames in the video through a corresponding algorithm.
In some embodiments, all video frames containing the target image are obtained from the unplayed video frames after the current playing progress of the video.
In some embodiments, the second obtaining unit 202 further includes: the comparison subunit is used for comparing the target image with each video frame image in the video; the judgment subunit is used for judging that the video frame corresponding to the video frame image comprises the target image when the video frame image compared with the target image meets the preset condition; the acquisition subunit is used for acquiring the video frame.
In some embodiments, when the video frame image compared with the target image satisfies the preset condition, determining that the video frame corresponding to the video frame image includes the target image includes:
and when the picture occupation ratio of the target image in the current video frame image to be compared is greater than or equal to a preset picture occupation ratio threshold, judging that the video frame corresponding to the video frame image comprises the target image.
In some embodiments, after acquiring all video frames containing the target image from the video, the method further includes:
determining a time node of each video frame containing the target image in the video;
and displaying the progress bar of each video frame containing the target image at the position corresponding to the time node in the video according to a preset display mode.
It should be noted that the preset display mode may be set according to the actual requirement of the user, and is not limited herein.
Optionally, the target image is compared with each video frame image in the video, after the matching is successful, according to whether the proportion of the target image in the video frame is greater than or equal to the picture proportion threshold, when the proportion of the target image in the video frame is greater than or equal to the picture proportion threshold (for example, the picture proportion threshold may be set to 10%), it may be considered that the video frame includes the target image, and the video frame and the time node of the video frame in the video are stored, and the progress bar of the video frame at the corresponding position in the video is highlighted (for example, the progress bar is thickened, or another color is used to identify the progress bar at the corresponding position, and the like).
It should be noted that the frame ratio threshold of the target image may be set according to the actual requirement of the user, and is not limited herein.
Further, the significance of setting the screen duty threshold is as follows: if the proportion of the target image selected by the user in the picture is small, the target image is not considered to be a key object to be watched in the picture of the video frame, the watching experience cannot be influenced even if the video frame is skipped, and the continuity and the integrity of video playing can be ensured to the maximum extent by adopting the processing mode.
And the processing unit 203 is used for processing all video frames containing the target image according to a preset processing mode when receiving the processing instruction.
In some embodiments, when the processing instruction is received, all video frames containing the target image are processed according to a preset processing mode, including:
when a processing instruction is received, setting a non-playing mark for all video frames containing a target image; or the like, or, alternatively,
and when a processing instruction is received, setting the playing speed of all the video frames containing the target image as the preset playing speed.
Optionally, after determining all video frames containing the target image from the video, sending a prompting message to the user, the user determining the prompting message, processing all video frames containing the target image according to a preset processing mode after receiving the determining message, ignoring all acquired video frames containing the target image after receiving the ignoring message, and restoring the progress bar to the initial state.
Optionally, when the processing instruction is received, the non-play flag may be set for all the video frames containing the target image, for example, when the video is played to the video frames, skipping processing is directly performed, so that the video frames containing the target image are not played; alternatively, the playing speed of all video frames containing the target image is set to the preset playing speed, for example, when the video frames are played, the video frames are played at a speed 5 times the normal playing speed.
It should be noted that the preset playing speed may be set according to the actual requirement of the user, and is not limited herein.
The video playing system of the embodiment comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining a target image in a video according to a preset rule when receiving an obtaining instruction; the second acquisition unit is used for acquiring all video frames containing the target image from the video; and the processing unit is used for processing all video frames containing the target image according to a preset processing mode when receiving the processing instruction. Specific frames in the video can be labeled, and the labeled video frames can be skipped automatically, so that the continuity of video playing is better ensured, and the watching experience is improved.
EXAMPLE III
The present embodiment further provides a storage medium, where a computer program is stored in the storage medium, and the computer program, when executed by a processor, can implement the method steps in the first embodiment, and the description of the embodiment is not repeated herein.
The storage medium may also include, among other things, a computer program, a data file, a data structure, etc., alone or in combination. The storage medium or computer program may be specially designed and understood by those skilled in the computer software arts, or the storage medium may be known and available to those skilled in the computer software arts. Examples of the storage medium include: magnetic media such as hard disks, floppy disks, and magnetic tape; optical media, such as CDROM disks and DVDs; magneto-optical media, e.g., optical disks; and hardware devices, particularly configured to store and execute computer programs, such as Read Only Memory (ROM), Random Access Memory (RAM), flash memory; or a server, app application mall, etc. Examples of computer programs include both machine code, such as produced by a compiler, and files containing higher level code that may be executed by the computer using an interpreter. The described hardware devices may be configured to act as one or more software modules to perform the operations and methods described above, and vice versa. In addition, the storage medium can be distributed over network coupled computer systems and can store and execute program code or computer programs in a distributed fashion.
Example four
Fig. 3 is a connection block diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 3, the electronic device 500 may include: a processor 501, a memory 502, a multimedia component 503, an input/output (I/O) interface 504, and a communication component 505.
The processor 501 is configured to execute all or part of the steps in the video playing method according to the first embodiment. The memory 502 is used to store various types of data, which may include, for example, instructions for any application or method in the electronic device, as well as application-related data.
The Processor 501 may be implemented by an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, and is configured to execute the video playing method in the first embodiment.
The Memory 502 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk.
The multimedia component 503 may include a screen, which may be a touch screen, and an audio component for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in a memory or transmitted through a communication component. The audio assembly also includes at least one speaker for outputting audio signals.
The I/O interface 504 provides an interface between the processor 501 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons.
The communication component 505 is used for wired or wireless communication between the electronic device 500 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 505 may include: Wi-Fi module, bluetooth module, NFC module.
In summary, the present application provides a video playing method, a video playing system, a storage medium, and an electronic device, where the video playing method includes: when an acquisition instruction is received, acquiring a target image in a video according to a preset rule; acquiring all video frames containing target images from a video; and when a processing instruction is received, processing all video frames containing the target image according to a preset processing mode. Specific frames in the video can be labeled, and the labeled video frames can be skipped automatically, so that the continuity of video playing is better ensured, and the watching experience is improved.
It should be further understood that the method or system disclosed in the embodiments of the present invention may be implemented in other ways. The method or system embodiments described above are merely illustrative, for example, the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and apparatus according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, a segment, or a portion of a computer program, which comprises one or more computer programs for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures, or indeed, may be executed substantially concurrently, or in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer programs.
In the present invention, 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 identical elements in a process, method, apparatus or device comprising the element; if the description to "first", "second", etc. is used for descriptive purposes only, it is not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated; in the description of the present invention, the terms "plurality" and "plurality" mean at least two unless otherwise specified; if the server is described, it should be noted that the server may be an independent physical server or terminal, or a server cluster formed by a plurality of physical servers, or a cloud server capable of providing basic cloud computing services such as a cloud server, a cloud database, a cloud storage, a CDN, and the like; if a smart terminal or a mobile device is described, it should be noted that the smart terminal or the mobile device may be, but is not limited to, a smart phone, a tablet computer, a smart watch, a smart television, a smart sound, a notebook computer, a desktop computer, and the like.
Finally, it is noted that throughout the description of the present specification, references to the description of "one embodiment," "some embodiments," "an example" or "some examples" or the like are intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described, it is to be understood that the above embodiments are exemplary and that the present invention is illustrative only and is not to be construed as limited thereto. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A video playback method, the method comprising:
when an acquisition instruction is received, acquiring a target image in a video according to a preset rule;
acquiring all video frames containing the target image from the video;
and when a processing instruction is received, processing all the video frames containing the target image according to a preset processing mode.
2. The method according to claim 1, wherein when receiving the acquisition instruction, acquiring the target image in the video according to a preset rule comprises:
and when an acquisition instruction is received, acquiring a target image from all video frames in the video within the preset time from the beginning of the current playing progress.
3. The method of claim 1, wherein the target image comprises:
one or more of a facial image of a person, an image of a character, and an image of a prop.
4. The method according to claim 1, wherein said obtaining all video frames containing said target image from said video comprises:
comparing the target image to each video frame image in the video;
when the video frame image compared with the target image meets a preset condition, judging that the video frame corresponding to the video frame image comprises the target image;
and acquiring the video frame.
5. The method according to claim 4, wherein the determining that the target image is included in the video frame corresponding to the video frame image when the video frame image compared with the target image satisfies a preset condition comprises:
and when the picture occupation ratio of the target image in the current video frame image to be compared is greater than or equal to a preset picture occupation ratio threshold value, judging that the video frame corresponding to the video frame image comprises the target image.
6. The method according to claim 1, further comprising, after said obtaining all video frames containing said target image from said video:
determining a time node of each video frame containing a target image in the video;
and displaying the progress bar of each video frame containing the target image at the position corresponding to the time node in the video according to a preset display mode.
7. The method according to claim 1, wherein when receiving the processing instruction, processing all the video frames containing the target image according to a preset processing mode comprises:
when a processing instruction is received, setting a non-playing mark for all video frames containing a target image; or the like, or, alternatively,
and when a processing instruction is received, setting the playing speed of all the video frames containing the target image as the preset playing speed.
8. A video playback system, comprising:
the first acquisition unit is used for acquiring a target image in a video according to a preset rule when an acquisition instruction is received;
a second obtaining unit, configured to obtain all video frames including the target image from the video;
and the processing unit is used for processing all the video frames containing the target image according to a preset processing mode when receiving the processing instruction.
9. A storage medium storing a computer program executable by one or more processors for implementing a video playback method as claimed in any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, the memory having a computer program stored thereon, the memory and the processor being communicatively coupled to each other, the computer program, when executed by the processor, performing a video playback method as recited in any of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111540746.8A CN114422867A (en) | 2021-12-16 | 2021-12-16 | Video playing method, system, storage medium and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111540746.8A CN114422867A (en) | 2021-12-16 | 2021-12-16 | Video playing method, system, storage medium and electronic equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114422867A true CN114422867A (en) | 2022-04-29 |
Family
ID=81268516
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111540746.8A Pending CN114422867A (en) | 2021-12-16 | 2021-12-16 | Video playing method, system, storage medium and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114422867A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106385624A (en) * | 2016-09-29 | 2017-02-08 | 乐视控股(北京)有限公司 | Video playing method and device |
| CN109168037A (en) * | 2017-01-05 | 2019-01-08 | 腾讯科技(深圳)有限公司 | Video broadcasting method and device |
| CN110177296A (en) * | 2019-06-27 | 2019-08-27 | 维沃移动通信有限公司 | A kind of video broadcasting method and mobile terminal |
| CN110475148A (en) * | 2019-08-13 | 2019-11-19 | 北京奇艺世纪科技有限公司 | Video broadcasting method, device and electronic equipment |
-
2021
- 2021-12-16 CN CN202111540746.8A patent/CN114422867A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106385624A (en) * | 2016-09-29 | 2017-02-08 | 乐视控股(北京)有限公司 | Video playing method and device |
| CN109168037A (en) * | 2017-01-05 | 2019-01-08 | 腾讯科技(深圳)有限公司 | Video broadcasting method and device |
| CN110177296A (en) * | 2019-06-27 | 2019-08-27 | 维沃移动通信有限公司 | A kind of video broadcasting method and mobile terminal |
| CN110475148A (en) * | 2019-08-13 | 2019-11-19 | 北京奇艺世纪科技有限公司 | Video broadcasting method, device and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109640188B (en) | Video preview method and device, electronic equipment and computer readable storage medium | |
| CN109413483B (en) | Live content preview method, device, equipment and medium | |
| US10194189B1 (en) | Playback of content using multiple devices | |
| CN102714762B (en) | Automatic Media Asset Updates via Online Social Networks | |
| CN109640129B (en) | Video recommendation method and device, client device, server and storage medium | |
| US11025967B2 (en) | Method for inserting information push into live video streaming, server, and terminal | |
| US10271105B2 (en) | Method for playing video, client, and computer storage medium | |
| CN107920274B (en) | Video processing method, client and server | |
| CN108259409A (en) | Information processing method, terminal and system | |
| JP2023523067A (en) | Video processing method, apparatus, equipment and medium | |
| CN113852767A (en) | Video editing method, apparatus, equipment and medium | |
| CN105657502A (en) | Custom menu implementation methods and apparatuses, client and server | |
| CN108650547A (en) | A kind of video sharing method, apparatus and equipment | |
| CN106604127A (en) | Multimedia information sharing method, device and terminal device | |
| JP7058795B2 (en) | Video processing methods, devices, terminals and storage media | |
| CN110740261A (en) | Video recording method, device, terminal and storage medium | |
| KR101387207B1 (en) | Scene control system and method and recording medium thereof | |
| KR20230120668A (en) | Video call method and device | |
| CN117676047A (en) | Special effects processing method, device, electronic equipment and storage medium | |
| CN117714765B (en) | Video push processing methods, devices, equipment and media | |
| CN104333769A (en) | Method and device for live video streaming | |
| JP6266827B1 (en) | Terminal and server | |
| CN114640876B (en) | Multimedia service video display method, device, computer equipment and storage medium | |
| CN109561337A (en) | The playing method and device of preview video | |
| CN114422867A (en) | Video playing method, system, storage medium and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220429 |
|
| RJ01 | Rejection of invention patent application after publication |