CN111698565B - Video playing method and device and electronic equipment - Google Patents
Video playing method and device and electronic equipment Download PDFInfo
- Publication number
- CN111698565B CN111698565B CN202010494793.2A CN202010494793A CN111698565B CN 111698565 B CN111698565 B CN 111698565B CN 202010494793 A CN202010494793 A CN 202010494793A CN 111698565 B CN111698565 B CN 111698565B
- Authority
- CN
- China
- Prior art keywords
- video
- text introduction
- playing
- video text
- skip
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 230000009191 jumping Effects 0.000 claims description 22
- 239000003086 colorant Substances 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 5
- 230000002452 interceptive effect Effects 0.000 abstract description 12
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 4
- 229910001374 Invar Inorganic materials 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 238000003058 natural language processing Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 244000052769 pathogen Species 0.000 description 2
- 230000001717 pathogenic effect Effects 0.000 description 2
- 206010020751 Hypersensitivity Diseases 0.000 description 1
- 101710198693 Invasin Proteins 0.000 description 1
- 208000026935 allergic disease Diseases 0.000 description 1
- 230000007815 allergy Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000008451 emotion Effects 0.000 description 1
- 230000002996 emotional effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered 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/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/47217—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 controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
-
- 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/482—End-user interface for program 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8455—Structuring of content, e.g. decomposing content into time segments involving pointers to the content, e.g. pointers to the I-frames of 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- Television Signal Processing For Recording (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides a video playing method, a video playing device and electronic equipment, wherein the method comprises the following steps: if the operation of video text introduction of the video conforms to a preset video playing control condition, determining a target video text introduction segment corresponding to the operation; wherein the video text introduction comprises at least one video text introduction segment; determining a skip playing position corresponding to the target video text introduction segment according to a preset incidence relation between the video text introduction segment and the skip playing position; and playing the video according to the jump playing position corresponding to the target video text introduction segment. According to the video playing method, the video playing device and the electronic equipment, the video text introduction segment is determined through the interactive operation of the user, the skip playing position for playing the video is further determined according to the preset incidence relation, and the video skip playing is accurately positioned.
Description
Technical Field
The present invention relates to the field of computers, and in particular, to a video playing method and apparatus, and an electronic device.
Background
When playing an internet video, a user often wants to skip video segments such as advertisements and uninteresting scenarios, and quickly skips to a video content that the user wants to watch to play.
In the prior art, a user wants to skip a current video segment, and usually adopts operation modes such as fast forward, dragging a video playing progress bar, and double-speed playing. However, for the operation mode of fast-forwarding or dragging the video playing progress bar, the user cannot know the length of the video segment to be skipped in advance, so that the user needs to perform the operation of fast-forwarding or dragging the video playing progress bar many times in order to skip to the playing position desired by the user; for the operation mode of double-speed playing, the user is required to cancel the double-speed playing mode at the proper video playing position in time, otherwise, the video playing position which is not fit for the user expectation is located. Therefore, the video playing method in the prior art has the problem of inaccurate skip positioning.
Disclosure of Invention
In view of at least one technical problem in the prior art, embodiments of the present invention provide a video playing method, an apparatus and an electronic device.
In a first aspect, an embodiment of the present invention provides a video playing method, including:
if the operation of video text introduction of the video conforms to a preset video playing control condition, determining a target video text introduction segment corresponding to the operation; wherein the video text introduction comprises at least one video text introduction segment;
determining a skip playing position corresponding to the target video text introduction segment according to a preset incidence relation between the video text introduction segment and the skip playing position;
and playing the video according to the jump playing position corresponding to the target video text introduction segment.
Optionally, the playing the video according to the skip playing position corresponding to the video text introduction segment includes:
if the video text introduction segment has an association relation with a jump playing position, starting to play the video from the jump playing position;
if the video text introduction segment has an association relation with a plurality of jumping playing positions, respectively playing the video in a split-screen window corresponding to each jumping playing position from each jumping playing position in a split-screen mode; and determining the split screen window selected by the user according to the selection operation of the user, and starting to play the video in a full screen mode from the jump playing position corresponding to the split screen window.
Optionally, the video word introduction comprises at least two video word introduction segments;
correspondingly, the method further comprises:
and if the operation on the video text introduction conforms to the preset video preview control condition, distinguishing and displaying the target video text introduction segment and other video text introduction segments in the at least two video text introduction segments.
Optionally, the method further comprises:
displaying video preview windows corresponding to different video text introduction segments in the at least two video text introduction segments in the same video playing interface;
and according to the preset association relation, in the corresponding video preview windows, the videos are played respectively from the jump playing positions corresponding to the different video text introduction segments.
Optionally, the display mode adopted for performing differentiated display on the video text introduction segment is matched with the display mode of the corresponding video preview window.
Optionally, the performing the differentiated display on the video text introduction segment includes:
displaying different video text introduction segments as different colors;
the display mode adopted for distinguishing and displaying the video text introduction segments is matched with the display mode of the corresponding video preview window, and the method comprises the following steps:
the designated color of the video preview window is the same as the color of the corresponding video text introduction segment;
wherein the specified color comprises: a background color of the window and/or a color of a floating window on the window.
Optionally, the method further comprises:
dividing the video into a plurality of video segments, and dividing the video text introduction into a corresponding number of video text introduction segments;
and sequentially establishing the association relationship between the jumping playing position of each video clip and the video text introduction clip.
Optionally, the method further comprises:
extracting a plurality of key frames from the video, and acquiring corresponding position information of the key frames in the video as skip playing positions of the key frames;
analyzing frame pictures of the plurality of key frames to obtain key frame information corresponding to the plurality of key frames;
dividing the video text introduction into a plurality of video text introduction segments, and analyzing the plurality of video text introduction segments to obtain key introduction information corresponding to the plurality of video text introduction segments;
and establishing the association relationship between the skip playing position corresponding to the key frame information and the video text introduction segment corresponding to the key introduction information by matching the key frame information with the key introduction information.
In a second aspect, an embodiment of the present invention provides a video playing apparatus, including:
the segment determining module is used for determining a video character introduction segment corresponding to the skip operation if the skip operation for the video character introduction conforms to a preset video playing control condition; wherein the video text introduction comprises at least one video text introduction segment;
the playing position determining module is used for determining a skip playing position corresponding to the video character introduction segment according to a predetermined association relation between the video character introduction segment and the skip playing position;
and the skip playing module is used for playing the video according to the skip playing position corresponding to the video text introduction segment.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the method as provided in the first aspect are implemented.
According to the video playing method provided by the embodiment of the invention, the video text introduction segment is determined through the interactive operation of the user, and the skip playing position for playing the video is further determined according to the preset incidence relation, so that the accurate positioning of the skip playing of the video is realized.
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 embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a video playing method according to an embodiment of the present invention;
fig. 2 is a schematic page diagram of a video playing method according to an embodiment of the present invention;
FIG. 3 is a schematic flowchart illustrating a video playing method according to another embodiment of the present invention;
FIG. 4 is a schematic flowchart of a video playing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another page of a video playing method according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart of a video playing method according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a video playback device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device in an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flowchart of a video playing method according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
s110, if the operation of video character introduction of the video conforms to a preset video playing control condition, determining a target video character introduction segment corresponding to the operation; wherein the video text introduction comprises at least one video text introduction segment.
Specifically, for the video playing method introduced in the embodiment of the present invention, fig. 2 shows a corresponding video playing page 210, where the page 210 at least includes a video playing and previewing area 211 and a video introduction area 212. The video play and preview area 211 is used to present video content when a user previews and plays a video, and the video introduction area 212 is used to present a video textual introduction to the video.
Specifically, the video text introduction in the embodiment of the present invention refers to introduction content corresponding to a video browsed by a user, and may be represented as a segment of text, where the specific content may be a text description of a scenario in the video, and a display position of the text introduction may be in a specific area below the video. The above description is merely exemplary, and the video text presentation in the embodiment of the present invention may have other expressions, contents, and display positions. Further, the video textual introduction may include a plurality of video textual introduction segments. For example, in the case where the video text introduction is a piece of text, the video text introduction segment may be one or more words in the piece of text.
Specifically, the jump operation in the embodiment of the present invention refers to an operation performed by a user watching a video on a video playing terminal. The specific meaning of the jump operation is correspondingly different for different terminals.
For example, when the terminal is a mobile phone, a tablet or other touch device, the skip operation may be a press operation; further, to prevent a user from operating erroneously, the skip operation may be an operation in which the pressing time or the pressing force degree exceeds a preset threshold. Currently, mainstream touch screen devices support the function of detecting parameters such as pressing time and pressing force.
Similarly, when the terminal is a non-touch device such as a personal computer, the skip operation may be a click operation; further, to prevent the user from misoperation, the skip operation may be an operation in which the click duration of the left button of the mouse exceeds a preset threshold, and the acquisition of the click duration may be implemented by detecting a pressing event and a lifting event of the mouse and calculating a difference between the pressing event and the lifting event.
The skip operation in this step is specifically a skip operation of the user for the video text introduction, and therefore, the operation position of the skip operation may be in the page area where the video text introduction is located. In the step, the video text introduction segment which the user wants to select is determined according to the jumping operation of the user, and firstly, the position of the jumping operation on the page is determined. The video text introduction segment can be displayed in a text form on a page, but can be used as an interactive carrier, and particularly can be implemented as an interactive control. When the position of the skip operation triggers a certain interactive control, the video text introduction segment corresponding to the skip operation is determined.
And S120, determining a skip playing position corresponding to the target video text introduction segment according to a preset incidence relation between the video text introduction segment and the skip playing position.
Specifically, in order to realize that a video is played from an accurate position, the skip playing position of the video needs to be determined, which may be understood as a time node on a playing time axis in one video, or may be understood as a position of a certain episode in a group of videos of a tv series. The embodiment of the invention realizes the skip playing in a mode that a user selects the video text introduction segment. After the video text introduction segment selected by the user is determined, the skip playing position for playing the video is determined according to the predetermined association relationship between the video text introduction segment and the skip playing position.
The association relationship may be predetermined by the server, and after the user performs the skip operation and triggers the interactive control corresponding to the video text introduction segment, a corresponding instruction is automatically triggered to invoke the association relationship, so as to determine the skip playing position for playing the video.
S130, playing the video according to the jump playing position corresponding to the target video text introduction segment.
Specifically, the purpose of determining the jump playing position in the embodiment of the present invention is to jump the video to the jump playing position for playing. The skip playing position is timestamp information on a video playing time axis, and at the moment, the system calls a corresponding playing instruction, so that the skip playing operation can be realized.
According to the video playing method provided by the embodiment of the invention, the video text introduction segment is determined through the interactive operation of the user, and the skip playing position for playing the video is further determined according to the preset incidence relation, so that the accurate positioning of the video skip playing is realized.
Based on any of the above embodiments, fig. 3 is a schematic flowchart of a video playing method according to an embodiment of the present invention, and as shown in fig. 3, step S130 specifically includes:
s310, if the video text introduction segment is associated with a jump playing position, starting to play a video from the jump playing position;
specifically, after the skip play position for playing the video is determined in step S120 according to the predetermined association relationship between the video text introduction segment and the skip play position, it may be the case that the determined skip play position is one, that is, one video text introduction segment is associated with only one skip play position. In this case, for the video text introduction segment selected by the user, the position where the user wants to skip to play the video can be uniquely determined, and the video can be played from the uniquely determined skip playing position.
S320, if the video text introduction segment is associated with a plurality of jumping play positions, respectively playing the video in a split screen window corresponding to each jumping play position from each jumping play position in a split screen mode; and determining the split screen window selected by the user according to the selection operation of the user, and starting to play the video in a full screen mode from the jump playing position corresponding to the split screen window.
Specifically, in the embodiment of the present invention, step S310 and step S320 respectively belong to two cases that one or more jump playing positions corresponding to the video text introduction segment are provided, and the two steps may be alternatively executed according to actual situations. The number of the jump playing positions corresponding to the video text introduction segment is specifically one or more, and depends on how the association relationship between the video text introduction segment and the jump playing positions is established. If the video text introduction segments and the skip playing positions are in one-to-one correspondence when the association relationship is established, the skip playing positions corresponding to the video text introduction segments are one; if the video text introduction segment can be related to a plurality of jumping play positions when the association relationship is established, the jumping play positions corresponding to the video text introduction segment can be a plurality.
Specifically, after the skip play position for playing the video is determined in step S120 according to the predetermined association relationship between the video text introduction segment and the skip play position, another situation may occur in which the determined skip play position is multiple, that is, one video text introduction segment is associated with multiple skip play positions. In this case, after the user performs the skip operation, since there are a plurality of skip play positions to be selected, the position of the video skip play cannot be determined immediately, and the user is required to further select one of the plurality of skip play positions.
In the above situation, the video playing area is switched to the split-screen playing mode, where the split-screen playing refers to dividing the video playing and preview area of the page into multiple small playing areas, and each playing area plays a video respectively. And each split screen corresponds to one skip playing position respectively, and the video is pre-played from each skip playing position in the split screen window corresponding to each skip playing position respectively. At this time, after watching the video played in each split-screen window, the user can determine which split-screen window plays the video that is the video content that the user wants to skip to play.
At this time, the user may perform a selection operation to select one of the split screen windows, but the system may automatically switch back to the full screen playing mode, and play the video starting from the skip playing position corresponding to the split screen window selected by the selection operation, thereby implementing skip playing. Further, the selection operation may be a single click, a double click, a press, or the like for the split screen. The full-screen playing refers to playing a specific video in the whole video playing and previewing area of the page.
According to the video playing method provided by the embodiment of the invention, under the condition that the determined jumping playing positions are multiple, the user can further determine the jumping playing position through selection operation, so that the accurate positioning of the jumping playing of the video is realized.
Based on any of the above embodiments, fig. 4 is a schematic flowchart of a video playing method according to an embodiment of the present invention, before step S110, the method further includes:
s410, dividing the video into a plurality of video segments, and dividing the video text introduction into a corresponding number of video text introduction segments;
specifically, before step S110, that is, before the user performs the skip operation, the embodiment of the present invention needs to establish an association relationship between the skip playing position and the video text introduction segment first, so that step S120 can use the association relationship. Steps S410 to S420 are a method for establishing an association relationship according to an embodiment of the present invention.
Specifically, the corresponding video can be divided into a plurality of video segments according to the content of the video text introduction; meanwhile, the video text introduction can be divided into a plurality of video text introduction segments according to the content of the video, the division principle of the video text introduction segments and the video text introduction segments is based on the corresponding relation on the content, and the division quantity of the video text introduction segments and the video text introduction segments is also corresponding, so that the user can be positioned to the corresponding video segments for playing according to the video text introduction segments subsequently. The division can be manually or automatically divided by a machine algorithm, and the embodiment of the invention does not specifically limit the video and the division method introduced by the video characters.
For example, the video to be played is a certain set of "yitian buthilong character" of a drama, and according to the progress of the drama, the video can be divided into six segments, which respectively represent the drama "strive for butcher dragon knife", "zhuangshan invasin acquaintance", "zhuang indian liberty education master", "zhuang indian emotions, zhou zhi if entering pathogen" and "zhuang indian zhao xi accompany". Meanwhile, the video text introduction is divided into six video text introduction segments according to the six plots.
S420, sequentially establishing the association relationship between the jumping playing position of each video clip and the video text introduction clip.
Specifically, the plurality of divided video segments and the plurality of video text introduction segments have a corresponding relationship in content, and the number of the two divided video segments and the number of the two divided video text introduction segments are the same. Therefore, the correspondence relationship between the two can be established sequentially. In addition, for each video clip, the jumping play position is the attribute which is most concerned by the user when jumping play, so that when establishing the corresponding relation, the jumping play position of each video clip is associated with the video text introduction clip. For the above example, the jumping play positions of the six video clips and the six video text introduction clip sequences represented by "fight against butcher sword", "zhangyun invar acquaintance", "zhangyun zhi zhen ji", "zhi if entering evil" and "zhangwu zhi zhao yi accompany" may be associated.
After the association relationship between the video text introduction segment and the skip playing position is pre-established according to steps S410 and S420, before the user performs the skip operation in step S110, it is considered that the skip operation of the user is selected based on the text content of the video text introduction segment, and the text content is not very intuitive for the user, so that the user may not select the video position that the user really wants to skip playing according to the selection operation of the video text introduction segment. The embodiment of the invention provides a method for previewing a video, which further helps a user to perform positioning more accurately and skip playing.
S430, if the operation of the video text introduction conforms to a preset video preview control condition, distinguishing and displaying the target video text introduction segment and other video text introduction segments in the at least two video text introduction segments;
specifically, the preview operation in this step may be an operation that the representative user wants to trigger the video preview. The preview operation and the jump operation are similar and are executed in the page area where the video text introduction is located. It is understood that if the user operation is performed in the video playing area, the operation may be considered as an operation on the video, such as pause, play, and the like. The preview operation may specifically be a single click, a double click, a press, a slide, or other operation mode, and the operation mode is generally set to be a different operation mode from the jump operation, so that the system can distinguish the operation modes. For example, if the jump operation is an operation in which the pressing time or the pressing force exceeds a preset threshold, the preview operation may be a normal pressing operation in which both the pressing time and the pressing force are smaller than the preset threshold.
After the user performs the preview operation, the video text introduction part generates feedback on the operation, and the specific expression form can be that the text of a plurality of video text introduction segments in the video text introduction can be displayed in different colors, so that the different video text introduction segments are visually distinguished from the user more obviously. In addition, the specific display mode of the differentiated display may also be a mode in which the text of the video text introduction segment is displayed in different fonts, different background colors, different transparencies, and the like, and the embodiment of the present invention is not particularly limited.
S440, displaying video preview windows corresponding to different video text introduction segments in the at least two video text introduction segments in the same video playing interface; and according to the preset association relation, in the corresponding video preview windows, the videos are played from the jump playing positions corresponding to the different video text introduction segments respectively.
Specifically, the embodiment of the invention aims to provide video preview for a user, namely, videos corresponding to a plurality of video text introduction segments are displayed simultaneously for the user to preview and judge. Therefore, the carrier of the video preview, i.e. the video preview window corresponding to each video text introduction segment, is displayed first.
Further, in order to avoid that the number of the video preview windows is too large, which results in that the display size of the video preview windows is small, so that the user cannot see clear preview video, the video display area may be divided into a fixed number of video preview windows, such as 1, 2, and 4, according to the size of the video display area. At this time, the video display area displays only a fixed number of video preview windows, and the remaining video preview windows may be displayed in a page next to the current video display area. When other preview windows need to be displayed, the operation can be performed in a page turning mode.
Specifically, in this step, videos need to be previewed simultaneously in a plurality of video preview windows, where the content of the previewed video in each video preview window is determined by the jump playing position corresponding to each video preview window. In the illustrative example of "yitian butcher goddess", each preview window previews six videos related to "fight for butcher goddess", "zhuangshan invar acquaintance", "zhang taboo empitake teacher", "zhang taboo emotional feeling rectification", "zhou zhi if entering pathogen" and "zhang taboo Zhao allergy" according to different jump playing positions. Each preview window can sequentially display preview videos corresponding to the video text introduction segments from left to right and from top to bottom, and the specific display effect is shown in the schematic page diagram of fig. 5. FIG. 5 shows a page when a user views a video, above which is a video preview area consisting of 6 video preview windows; the lower part of the page is a video text introduction area which consists of text contents of 6 video text introduction segments.
S450, the display modes adopted for distinguishing and displaying the video text introduction segments are matched with the display modes of the corresponding video preview windows.
Specifically, in the embodiment of the present invention, the display manner adopted for performing differentiated display on the video text introduction segment and the corresponding video preview window may be a manner of performing differentiated display by using color. For example, when the differentiated display mode of the video text introduction segment is to display different video text introduction segments in different colors, the display mode adopted for differentiated display of the video text introduction segment is matched with the display mode of the corresponding video preview window, and the method includes: the designated color of the video preview window is the same as the color of the corresponding video text introduction segment; wherein the specified color comprises: a background color of the window and/or a color of a floating window on the window.
In order to visually represent the correlation between the video preview window and the corresponding video text introduction segment, and on the basis that the texts of the video text introduction segments are displayed in different colors, the background color of the preview window corresponding to the video text introduction segments is also set to be the same as the color of the texts of the corresponding video text introduction segments. Therefore, the user can watch videos of a plurality of preview windows at the same time, and can intuitively determine the corresponding relation between the preview windows and the video text introduction segments.
Another implementation manner of this step is to display only the text of the candidate video text introduction segment in a preset color. Specifically, this step highlights only one selected video text introduction segment, which may be understood as a video text introduction segment that the user wants to focus on for preview, and other video text introduction segments may be in a default display mode.
Further, in order to visually represent the correlation between the candidate video text introduction segment and the corresponding video preview window, and on the basis that the text of the candidate video text introduction segment is displayed in the preset color, the background color of the corresponding preview window is also set to be the same preset color. Therefore, the user can not only watch videos of a plurality of preview windows at the same time, but also intuitively determine the corresponding relation between the candidate video text introduction segment and the corresponding preview window.
In addition, in the embodiment of the present invention, the display mode adopted for distinguishing and displaying the video text introduction segment and the corresponding video preview window may also be a mode in which transparency is used for distinguishing and displaying. For example, the video introduction sections are displayed in a manner of being differentiated in such a way that different video introduction sections are displayed with different transparencies, and the transparencies of the plurality of video preview windows are adapted to the transparencies of the corresponding video introduction sections. At this time, the user can not only view videos of a plurality of preview windows at the same time, but also intuitively determine the correspondence between the candidate video text introduction segment and the corresponding preview window thereof through transparency information.
Therefore, after the video preview is performed, the user can determine which video to select for skip playing, and further can perform formal skip playing by performing subsequent user operations.
According to the video playing method provided by the embodiment of the invention, the incidence relation between the video clip and the video text introduction clip is established, and the video preview is provided for the user before the user formally selects the skip video, so that the user can conveniently select the position of the skip playing video, and the accurate positioning of the skip playing of the video can be realized.
Based on any of the above embodiments, fig. 6 is a schematic flowchart of a video playing method according to an embodiment of the present invention, before step S110, the method further includes:
s610, extracting a plurality of key frames from the video, and acquiring corresponding position information of the key frames in the video as skip playing positions of the key frames;
specifically, before step S110, that is, before the user performs the skip operation, the embodiment of the present invention needs to establish an association relationship between the skip playing position and the video text introduction segment first, so that step S120 can use the association relationship. Steps S610 to S640 are another association relationship establishing method in the embodiment of the present invention with respect to steps S410 to S420.
Specifically, compared with the step S410 of sequentially dividing the video and the video text introduction according to the video content and the video text introduction content, in this step, a plurality of key frames are extracted from the video, and the position of each key frame in the video is a position where a subsequent user can skip to play. The method for extracting the key frames is not particularly limited, and the number of the extracted key frames is flexibly determined according to the actual application scene of the user.
S620, analyzing the frame pictures of the plurality of key frames to obtain key frame information corresponding to the plurality of key frames;
specifically, the embodiment of the present invention determines to establish the association relationship between the key frame and the video text introduction segment based on the semantic information included in the key frame and the semantic information in the video text introduction segment. Therefore, in this step, the frame picture of the key frame is first analyzed to obtain key frame information corresponding to the plurality of key frames.
Specifically, the method for parsing a frame picture adopted in the embodiment of the present invention may adopt an image understanding method in the prior art, and the parsed key frame information may include the following attributes: people in the frame, such as Zhangwu; objects in the frame, such as butcher knives; events in the frame picture, such as martial arts. The attributes specifically contained in the key frame information may be determined by setting a specific matching dictionary in the image understanding method employed.
S630, dividing the video text introduction into a plurality of video text introduction segments, and analyzing the plurality of video text introduction segments to obtain key introduction information corresponding to the plurality of video text introduction segments;
specifically, in the embodiment of the present invention, a plurality of video text introduction segments also need to be analyzed to obtain key introduction information corresponding to the plurality of video text introduction segments. The specific parsing method may adopt a natural language processing or natural language understanding method in the prior art, and the parsed key introduction information may include attributes corresponding to the key frame information, and specifically may include characters, objects, events, and the like included in the video text introduction segment. The attributes specifically contained in the key introduction information may be determined by setting a specific matching dictionary in the natural language processing or natural language understanding method employed.
And S640, establishing the association relationship between the skip playing position corresponding to the key frame information and the video text introduction segment corresponding to the key introduction information by matching the key frame information with the key introduction information.
Specifically, in this step, the key frame information corresponding to all key frames in the video is matched with the key introduction information corresponding to all video text introduction segments one by one. If the two are successfully matched, establishing an association relationship between the skip playing position corresponding to the key frame information and the video text introduction segment corresponding to the key introduction information; for the key frame information and the key introduction information which are not successfully matched, no association relation is established between the corresponding jump playing position and the video text introduction segment.
Specifically, in this step, it is determined that the key frame information and the key introduction information are matched, and the matching method adopted by the step refers to matching corresponding attributes specifically included between the two, for example, adopting a matching operation based on a character string or a matching operation based on a near-synonym dictionary, which is not specifically limited in the embodiment of the present invention.
It can be understood that, based on the content analyzed by the key frames and the video text introduction segments, the established association relationship between the jumping play position and the video text introduction segment may be a one-to-many association relationship, that is, one video text introduction segment may correspond to the jumping play positions of a plurality of video frames. Therefore, more choices are provided for the user when the skip playing is realized, and the skip playing of the video can be positioned more accurately.
It can be understood that after steps S610 to S640 are completed, the association relationship representing the association relationship between the skip playing position and the video text introduction segment is established, and then steps S430 to S450 may be performed to perform the video preview operation, or steps S110 to S130 may be directly performed to perform the video play operation.
According to the video playing method provided by the embodiment of the invention, the incidence relation between the video frame and the video text introduction segment is established, and the video preview is provided for the user before the user formally selects the skip video, so that the user can conveniently select the position of the skip playing video, and the accurate positioning of the skip playing of the video can be realized.
Based on any of the above embodiments, fig. 7 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present invention, where the apparatus includes:
a segment determining module 710, configured to determine a video text introduction segment corresponding to a skip operation if the skip operation for video text introduction conforms to a preset video playing control condition; wherein the video text introduction comprises at least one video text introduction segment;
specifically, the video text introduction in the embodiment of the present invention refers to introduction content corresponding to a video browsed by a user, and may be represented as a segment of text, where the specific content may be a text description of a scenario in the video, and a display position of the text introduction may be in a specific area below the video. The skip operation in the embodiment of the present invention refers to an operation performed by a user watching a video on a video playing terminal. The specific meaning of the jump operation is correspondingly different according to different terminals, and the jump operation can be operations such as pressing and clicking.
The skip operation in the snippet determining module 710 is, specifically, a skip operation of the user for the video text introduction, and therefore, the operation position of the skip operation may be in the page area where the video text introduction is located. In the step, the video text introduction segment which the user wants to select is determined according to the jump operation of the user, and firstly, the position of the jump operation on the page needs to be determined. The video text introduction segment can be displayed in a text form on a page, but can be used as an interactive carrier, and particularly can be implemented as an interactive control. When the position of the skip operation triggers a certain interactive control, the video text introduction segment corresponding to the skip operation is determined.
And the playing position determining module 720 is configured to determine a skip playing position corresponding to the video text introduction segment according to a predetermined association relationship between the video text introduction segment and the skip playing position.
Specifically, in order to realize that a video is played from an accurate position, the skip playing position of the video needs to be determined, which may be understood as a time node on a video playing time axis, or may be understood as a position of a certain episode in a group of videos of a tv series. The embodiment of the invention realizes the skip playing in a mode that a user selects the video text introduction segment. After the video text introduction segment selected by the user is determined, the skip playing position for playing the video is determined according to the predetermined association relationship between the video text introduction segment and the skip playing position.
The association relationship may be predetermined by the server, and after the user performs the skip operation and triggers the interactive control corresponding to the video text introduction segment, the association relationship may be invoked by automatically triggering the corresponding instruction, so as to determine the skip playing position for playing the video.
And the skip playing module 730 is configured to play the video according to the skip playing position corresponding to the video text introduction segment.
Specifically, the purpose of determining the skip playing position in the embodiment of the present invention is to skip the video to the skip playing position for playing. The skip playing position is timestamp information on a video playing time axis, and at the moment, the system calls a corresponding playing instruction, so that the skip playing operation can be realized.
Further, if the video text introduction segment has an association relation with a jump playing position, starting to play the video from the jump playing position; if the video text introduction segment and the plurality of skip playing positions have an incidence relation, respectively playing the video in a split screen window corresponding to each skip playing position from each skip playing position in a split screen mode; and determining the split screen window selected by the user according to the selection operation of the user, and starting to play the video from the jump playing position corresponding to the split screen window.
The video playing device provided by the embodiment of the invention determines the video text introduction segment through the interactive operation of the user, and further determines the skip playing position for playing the video according to the preset incidence relation, thereby realizing the accurate positioning of the video skip playing.
Fig. 8 illustrates a physical structure diagram of an electronic device, and as shown in fig. 8, the electronic device may include: a processor (processor)810, a communication Interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication Interface 820 and the memory 830 communicate with each other via the communication bus 840. The processor 810 may call logic instructions in the memory 830 to perform the following method: according to the skip operation of a user on the video text introduction, determining a video text introduction segment corresponding to the skip operation; wherein the video text introduction comprises a plurality of video text introduction segments; and determining the skip playing position for playing the video according to the predetermined association relationship between the video text introduction segment and the skip playing position.
In addition, the logic instructions in the memory 830 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present invention may be substantially or partially contributed to by the prior art, or may be embodied in a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the video playing method provided in the foregoing embodiments when executed by a processor, and for example, the method includes: according to the skip operation of a user on video text introduction, determining a video text introduction segment corresponding to the skip operation; wherein the video text introduction comprises a plurality of video text introduction segments; and determining the skip playing position for playing the video according to the predetermined association relationship between the video text introduction segment and the skip playing position. .
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (9)
1. A video playback method, comprising:
if the operation for video text introduction of the video in the video playing page accords with a preset video playing control condition, determining a target video text introduction segment corresponding to the operation; wherein the video text introduction comprises at least one video text introduction segment;
determining a skip playing position corresponding to the target video text introduction segment according to a preset incidence relation between the video text introduction segment and the skip playing position;
playing the video according to the jump playing position corresponding to the target video text introduction segment;
the video text introduction comprises at least two video text introduction segments;
correspondingly, the method further comprises:
and if the operation on the video text introduction conforms to the preset video preview control condition, distinguishing and displaying the target video text introduction segment and other video text introduction segments in the at least two video text introduction segments.
2. The video playing method according to claim 1, wherein playing the video according to the jump playing position corresponding to the video text introduction segment includes:
if the video text introduction segment has an association relation with a skip playing position, starting to play the video from the skip playing position;
if the video text introduction segment and the plurality of skip playing positions have an incidence relation, respectively playing the video in a split screen window corresponding to each skip playing position from each skip playing position in a split screen mode; and determining the split screen window selected by the user according to the selection operation of the user, and starting to play the video in a full screen mode from the jump playing position corresponding to the split screen window.
3. The video playback method of claim 1, wherein the method further comprises:
displaying video preview windows corresponding to different video text introduction segments in the at least two video text introduction segments in the same video playing interface;
and according to the preset association relation, in the corresponding video preview windows, the videos are played from the jump playing positions corresponding to the different video text introduction segments respectively.
4. The video playing method according to claim 3, wherein the display modes for displaying the video text introduction segments in a differentiated manner are matched with the display modes of the corresponding video preview windows.
5. The video playing method according to claim 4, wherein said displaying the video text introduction segments in a differentiated manner comprises:
displaying different video text introduction segments as different colors;
the display mode adopted for distinguishing and displaying the video text introduction segments is matched with the display mode of the corresponding video preview window, and the method comprises the following steps:
the designated color of the video preview window is the same as the color of the corresponding video text introduction segment;
wherein the specified color comprises: a background color of the window and/or a color of a floating window on the window.
6. The video playback method according to any one of claims 1 to 5, wherein the method further comprises:
dividing the video into a plurality of video segments, and dividing the video text introduction into a corresponding number of video text introduction segments;
and sequentially establishing the association relationship between the jumping playing position of each video clip and the video text introduction clip.
7. The video playback method according to any one of claims 1 to 5, wherein the method further comprises:
extracting a plurality of key frames from the video, and acquiring corresponding position information of the key frames in the video as skip playing positions of the key frames;
analyzing frame pictures of the plurality of key frames to obtain key frame information corresponding to the plurality of key frames;
dividing the video text introduction into a plurality of video text introduction segments, and analyzing the plurality of video text introduction segments to obtain key introduction information corresponding to the plurality of video text introduction segments;
and establishing the association relationship between the skip playing position corresponding to the key frame information and the video text introduction segment corresponding to the key introduction information by matching the key frame information with the key introduction information.
8. A video playback apparatus, comprising:
the segment determining module is used for determining a target video text introduction segment corresponding to the operation if the operation on the video text introduction of the video in the video playing page accords with a preset video playing control condition; wherein the video text introduction comprises at least one video text introduction segment;
the playing position determining module is used for determining a skip playing position corresponding to the target video character introduction segment according to a preset incidence relation between the video character introduction segment and the skip playing position;
the skip playing module is used for playing the video according to a skip playing position corresponding to the target video text introduction segment;
the video text introduction comprises at least two video text introduction segments;
correspondingly, the device further comprises:
and the distinguishing and displaying module is used for distinguishing and displaying the target video text introduction segment and other video text introduction segments in the at least two video text introduction segments under the condition that the operation of the video text introduction conforms to a preset video preview control condition.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the video playback method according to any of claims 1 to 7 are implemented when the processor executes the program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010494793.2A CN111698565B (en) | 2020-06-03 | 2020-06-03 | Video playing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010494793.2A CN111698565B (en) | 2020-06-03 | 2020-06-03 | Video playing method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111698565A CN111698565A (en) | 2020-09-22 |
CN111698565B true CN111698565B (en) | 2022-09-27 |
Family
ID=72479345
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010494793.2A Active CN111698565B (en) | 2020-06-03 | 2020-06-03 | Video playing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111698565B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112616082A (en) * | 2020-12-08 | 2021-04-06 | 广州酷狗计算机科技有限公司 | Video preview method, device, terminal and storage medium |
CN113411657B (en) * | 2021-06-16 | 2023-03-21 | 湖南快乐阳光互动娱乐传媒有限公司 | Video playing control method and device and electronic equipment |
CN114339375B (en) * | 2021-08-17 | 2024-04-02 | 腾讯科技(深圳)有限公司 | Video playing method, method for generating video catalogue and related products |
CN114584840B (en) * | 2022-02-28 | 2024-02-23 | 北京梧桐车联科技有限责任公司 | Audio and video playing method and device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107155138A (en) * | 2017-06-06 | 2017-09-12 | 深圳Tcl数字技术有限公司 | Video playback jump method, equipment and computer-readable recording medium |
CN109189987A (en) * | 2017-09-04 | 2019-01-11 | 优酷网络技术(北京)有限公司 | Video searching method and device |
CN109391856A (en) * | 2018-10-22 | 2019-02-26 | 百度在线网络技术(北京)有限公司 | Video broadcasting method, device, computer equipment and storage medium |
CN110087117A (en) * | 2019-04-26 | 2019-08-02 | 维沃移动通信有限公司 | A kind of video broadcasting method and terminal |
CN110719524A (en) * | 2019-10-16 | 2020-01-21 | 腾讯科技(深圳)有限公司 | Video playing method and device, intelligent playing equipment and storage medium |
CN111212317A (en) * | 2020-01-15 | 2020-05-29 | 清华大学 | Skip navigation method for video playing |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102137302A (en) * | 2010-12-09 | 2011-07-27 | 华为技术有限公司 | Method and device for playing video contents of streaming media |
-
2020
- 2020-06-03 CN CN202010494793.2A patent/CN111698565B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107155138A (en) * | 2017-06-06 | 2017-09-12 | 深圳Tcl数字技术有限公司 | Video playback jump method, equipment and computer-readable recording medium |
CN109189987A (en) * | 2017-09-04 | 2019-01-11 | 优酷网络技术(北京)有限公司 | Video searching method and device |
CN109391856A (en) * | 2018-10-22 | 2019-02-26 | 百度在线网络技术(北京)有限公司 | Video broadcasting method, device, computer equipment and storage medium |
CN110087117A (en) * | 2019-04-26 | 2019-08-02 | 维沃移动通信有限公司 | A kind of video broadcasting method and terminal |
CN110719524A (en) * | 2019-10-16 | 2020-01-21 | 腾讯科技(深圳)有限公司 | Video playing method and device, intelligent playing equipment and storage medium |
CN111212317A (en) * | 2020-01-15 | 2020-05-29 | 清华大学 | Skip navigation method for video playing |
Also Published As
Publication number | Publication date |
---|---|
CN111698565A (en) | 2020-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111698565B (en) | Video playing method and device and electronic equipment | |
KR102436734B1 (en) | method for confirming a position of video playback node, apparatus, electronic equipment, computer readable storage medium and computer program | |
CN110418151B (en) | Bullet screen information sending and processing method, device, equipment and medium in live game | |
US10448081B2 (en) | Multimedia information processing method, terminal, and computer storage medium for interactive user screen | |
US11140462B2 (en) | Method, apparatus, and device for generating an essence video and storage medium | |
CN111078070B (en) | PPT video barrage play control method, device, terminal and medium | |
US10271105B2 (en) | Method for playing video, client, and computer storage medium | |
WO2014201832A1 (en) | Page turning method, page turning apparatus and terminal as well as computer readable medium | |
CN111857517B (en) | Video information processing method and device, electronic equipment and storage medium | |
US12028558B2 (en) | Method for processing live broadcast information, electronic device and storage medium | |
CN111078078B (en) | Video playing control method, device, terminal and computer readable storage medium | |
US20240103697A1 (en) | Video display method and apparatus, and computer device and storage medium | |
CN112073738B (en) | Information processing method and device | |
CN111818393B (en) | Video progress adjusting method and device and electronic equipment | |
CN113992972B (en) | Subtitle display method and device, electronic equipment and readable storage medium | |
CN112019936B (en) | Method, device, storage medium and computer equipment for controlling video playing | |
CN113556568A (en) | Cloud application program operation method, system, device and storage medium | |
CN112988005B (en) | Method for automatically loading captions | |
JP6803104B1 (en) | Viewing analyzer | |
CN107277602B (en) | Information acquisition method and electronic equipment | |
CN114501042A (en) | Cross-border live broadcast processing method and electronic equipment | |
CN106604145B (en) | A kind of media file processing method and system | |
CN110659533A (en) | Method for identifying two-dimensional code in video and computer readable storage medium | |
CN111079051A (en) | Display content playing method and device | |
CN111638845B (en) | Animation element obtaining method and device 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |