CN112104909A - Interactive video playing method and device, computer equipment and readable storage medium - Google Patents

Interactive video playing method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN112104909A
CN112104909A CN201910525219.6A CN201910525219A CN112104909A CN 112104909 A CN112104909 A CN 112104909A CN 201910525219 A CN201910525219 A CN 201910525219A CN 112104909 A CN112104909 A CN 112104909A
Authority
CN
China
Prior art keywords
video
interactive video
interactive
information
segment
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
Application number
CN201910525219.6A
Other languages
Chinese (zh)
Inventor
郑龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN201910525219.6A priority Critical patent/CN112104909A/en
Publication of CN112104909A publication Critical patent/CN112104909A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8126Monomedia components thereof involving additional data, e.g. news, sports, stocks, weather forecasts
    • H04N21/8133Monomedia components thereof involving additional data, e.g. news, sports, stocks, weather forecasts specifically related to the content, e.g. biography of the actors in a movie, detailed information about an article seen in a video program
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8549Creating video summaries, e.g. movie trailer

Abstract

The invention discloses an interactive video playing method and device, computer equipment and a readable storage medium, and belongs to the technical field of videos. The interactive video playing method comprises the following steps: acquiring an interactive video file to be played; calling a video analyzer to analyze the interactive video file to obtain an interactive video information plot; and playing the interactive video file according to the interactive video information plot. The interactive video information plot is analyzed by the video analyzer, so that the interactive video can be played according to the interactive video information plot, and the interactivity of video playing is further improved.

Description

Interactive video playing method and device, computer equipment and readable storage medium
Technical Field
The present invention relates to the field of video technologies, and in particular, to an interactive video playing method and apparatus, a computer device, and a readable storage medium.
Background
The interactive video is a video composed of a plurality of video segments, and during the playing process, after the playing of the current video segment is finished, the next video segment to be played can be selected according to the selection of a user, instead of playing the next video segment in the time sequence as the common video.
However, the existing video player has a single function and cannot support the playing of the interactive video.
Therefore, how to play interactive video by using a common video player becomes a difficult problem to be solved urgently.
Disclosure of Invention
In order to solve the problem that the video player in the prior art cannot play the interactive video, a method, an apparatus, a computer device and a computer readable storage medium for playing the interactive video are provided.
The invention provides an interactive video playing method, which comprises the following steps:
acquiring an interactive video file to be played;
calling a video analyzer to analyze the interactive video file to obtain an interactive video information plot;
and playing the interactive video file according to the interactive video information plot.
Optionally, invoking a video parser to parse the interactive video file to obtain an interactive video information plot includes:
determining a video format of the interactive video file;
and calling a video analyzer corresponding to the video format to analyze the interactive video file so as to obtain an interactive video information plot.
Optionally, the step of invoking a video parser to parse the interactive video file to obtain an interactive video information plot includes:
reading out interaction information and media information from the interaction video file through the called video analyzer;
and converting the interactive information and the media information into the interactive video information plot.
Optionally, the interactive video information storyline is stored in a chained tree.
Optionally, the full-segment interactive video corresponding to the interactive video file includes at least three video segments, and the interactive video information plot includes start and stop times of each video segment in the full-segment interactive video, title information of each video segment, next video segment information of each video segment, and plot branch button information.
Optionally, the step of playing the interactive video file according to the interactive video information plot further includes:
and when the current video clip is played, popping up an option button according to the next video clip information of the current video clip so as to enable a user to select the next video clip to be played.
Optionally, the video parser is integrated in an interactive video player.
The invention also provides an interactive video playing device, which comprises:
the acquisition module is used for acquiring an interactive video file to be played;
the calling module is used for calling a video analyzer to analyze the interactive video file so as to obtain an interactive video information plot;
and the playing module is used for playing the interactive video file according to the interactive video information plot.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
The invention also provides a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
The beneficial effects of the above technical scheme are that:
in the technical scheme, the interactive video file to be played is obtained; calling a video analyzer to analyze the interactive video file to obtain an interactive video information plot; and playing the interactive video file according to the interactive video information plot. The scheme analyzes the interactive video information plot through the video analyzer, so that the interactive video can be played according to the interactive video information plot, and the interactivity of video playing is improved.
Drawings
FIG. 1 is a block diagram of an embodiment of a system block diagram for interactive video playback according to the present invention;
FIG. 2 is a flowchart illustrating an interactive video playing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interactive video information plot of the present invention;
FIG. 4 is a flowchart illustrating an interactive video playing method according to another embodiment of the present invention;
FIG. 5 is a flowchart illustrating an interactive video playing method according to another embodiment of the present invention;
FIG. 6 is a flowchart illustrating an interactive video playing method according to another embodiment of the present invention;
FIG. 7 is a block diagram of an interactive video playback device according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of a computer device for executing an interactive video playing method according to an embodiment of the present invention.
Detailed Description
The advantages of the invention are further illustrated in the following description of specific embodiments in conjunction with the accompanying drawings.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the description of the present invention, it should be understood that the numerical references before the steps do not identify the order of performing the steps, but merely serve to facilitate the description of the present invention and to distinguish each step, and thus should not be construed as limiting the present invention.
The interactive video of the embodiment of the application may be presented on clients such as large-scale video playing devices, game machines, desktop computers, smart phones, tablet computers, MP3(movingpicture expeerpercgroupandioudiolayer iii, motion picture experts push standard audio layer) players, MP4(movingpicture expeerportgrouudouudiooyerlv) players, laptop portable computers, e-book readers, and other display terminals.
In the embodiment of the application, after the shot video clips are processed by the computer equipment, the shot video clips can be sent to the watching terminals by the computer equipment, and the interactive video is played by the watching terminals. Referring to fig. 1, fig. 1 is a system architecture diagram of interactive video playing provided in the embodiment of the present application. As shown in fig. 1, after a plurality of video clips are shot by a user a, the video clips are transmitted to a computer device W through a wireless network or a wired network, and users B and C watch an interactive video composed of the video clips shot by the user a through the wireless network. And the D user and the E user watch the interactive video formed by the video clips shot by the A user through the cable network. Only one computer device W is shown here, and the application scenario herein may also include multiple computer devices communicating with each other. The computer device W is preferably a server, which may be a cloud server or a local server. In the embodiment of the present application, the computer device W is placed on the cloud side. If the user A sends a plurality of video clips, the computer device W processes the video clips and forwards the interactive video obtained after the video clips are processed to the user A, the user B, the user C, the user D and the user E.
The invention provides an interactive video playing method for solving the problem that the existing video player cannot play interactive video. Referring to fig. 2, which is a schematic flow chart of an interactive video playing method according to an embodiment of the present invention, it can be seen that the interactive video playing method provided in this embodiment mainly includes the following steps:
step S20, obtaining an interactive video file to be played;
specifically, compared with the existing video file, the interactive information and the media information are stored in the preset position of the interactive video file in the embodiment of the present invention, and the preset position is a position preset by a user. The interactive information comprises scenario branch information, and the scenario branch information is information of a next video segment of the current video segment. In this embodiment, there may be one or more next video segments corresponding to the current video segment, and when there is only one video segment, the scenario branch information may include title information of the one video segment, and a start timestamp and an end timestamp of the one video segment in the full-segment video; when there are a plurality of next video segments corresponding to the current video segment, the scenario branch information may include title information of each video segment, a start time stamp and an end time stamp of each video segment in the full-segment video, and scenario branch button information. Wherein the scenario branch button information may include a left branch button, a right branch button, or may include a first branch button, a second branch button, a third branch button, and the like. The media information comprises the title information of the current video segment, and the starting time stamp and the ending time stamp of the current video segment in the full-segment video.
In one embodiment, the full segment of the interactive video corresponding to the interactive video file includes at least three video segments. The format of the interactive video file may be FLV format, MP4 format, or MKV format, and the like, which is not limited in this embodiment.
And step S22, calling a video analyzer to analyze the interactive video file so as to obtain an interactive video information plot.
Specifically, after the interactive video file is obtained, the interactive video player may call the video parser to parse the interactive video file, so as to obtain an interactive video information plot.
In one embodiment, the video parser is integrated in an interactive video player, wherein the interactive video player is used for playing interactive video, but the interactive video player can also be used for playing normal video. The video parser comprises at least one of an FLV parser, an MP4 parser, an MKV parser, etc.
In another embodiment, the video parser may also be stored in the cloud platform, and when the video parser needs to be used, the video parser in the corresponding format is downloaded from the cloud.
In this embodiment, the interactive video information plot is stored in a chain tree. The interactive video information plot comprises the starting and ending time of each video clip in the whole interactive video, the title information of each video clip, the next video clip information of each video clip and the plot branch button information. The next video segment information of each video segment includes the title information of the next video segment, the start and end time of the next video segment in the full interactive video is one or more than one next video segment. The scenario branch button information may include a left branch button, a right branch button, or may include a first branch button, a second branch button, a third branch button, and the like.
In the embodiment, the interactive video information plot is stored through the chain tree structure, so that the plot relation before each video segment is very clear, the data is stored in the chain tree structure, and after the current segmented video is played, the next video segment to be played can be directly determined. In one embodiment, the plot of interactive video information is shown in fig. 3.
It should be noted that the start time stamp and the end time stamp (start-stop time) in the present embodiment refer to the start position and the end position of the video segment in the full segment video. For example, the full-segment video includes a video segment 1, a video segment 2, and a video segment 3, where the position of the full-segment video of the video segment 1 is 0-10 seconds, the position of the full-segment video of the video segment is 10-20 seconds, and the position of the full-segment video of the video segment 3 is 20-30 seconds, then the start timestamp and the end timestamp of the video segment 1 are 0 second and 10 seconds, respectively, the start timestamp and the end timestamp of the video segment 2 are 10 seconds and 20 seconds, respectively, and the start timestamp and the end timestamp of the video segment 3 are 20 seconds and 30 seconds, respectively.
And step S24, playing the interactive video file according to the interactive video information plot.
Specifically, since the title information, the start timestamp, and the end timestamp of each video segment and the information of the next video segment of the current video segment are stored in the interactive video information storyline, the video segment to be played currently and the video segment to be played next can be determined according to the interactive video storyline.
For example, in a specific playing scene, an interactive video information plot is shown in fig. 3, and it can be known from the plot that when an interactive video file is played, a video segment 1 is played first, then a video segment 2 or a video segment 3 can be played according to a selection of a user, and when the video segment 2 is played, a video segment 4 or a video segment 5 can be further played according to the selection of the user.
In the embodiment, the interactive video file to be played is acquired; calling a video analyzer to analyze the interactive video file to obtain an interactive video information plot; and playing the interactive video file according to the interactive video information plot. The scheme analyzes the interactive video information plot through the video analyzer, so that the interactive video can be played according to the interactive video information plot, and the interactivity of video playing is improved.
Further, referring to fig. 4, which is a schematic flow chart of an interactive video playing method according to another embodiment of the present invention, it can be seen that the interactive video playing method provided in this embodiment mainly includes the following steps:
and step S40, acquiring the interactive video file to be played.
Specifically, compared with the existing video file, the interactive information and the media information are stored in the preset position of the interactive video file in the embodiment of the present invention, and the preset position is a position preset by a user. The interactive information comprises scenario branch information, and the scenario branch information is information of a next video segment of the current video segment. In this embodiment, there may be one or more next video segments corresponding to the current video segment, and when there is only one video segment, the scenario branch information may include title information of the one video segment, and a start timestamp and an end timestamp of the one video segment in the full-segment video; when there are a plurality of next video segments corresponding to the current video segment, the scenario branch information may include title information of each video segment, a start time stamp and an end time stamp of each video segment in the full-segment video, and scenario branch button information. Wherein the scenario branch button information may include a left branch button, a right branch button, or may include a first branch button, a second branch button, a third branch button, and the like. The media information comprises the title information of the current video segment, and the starting time stamp and the ending time stamp of the current video segment in the full-segment video.
In one embodiment, the full segment of the interactive video corresponding to the interactive video file includes at least three video segments. The format of the interactive video file may be FLV format, MP4 format, or MKV format, and the like, which is not limited in this embodiment.
And step S42, determining the video format of the interactive video file.
Specifically, the video format of the interactive video file can be determined by acquiring the extension of the interactive video file. For example, if the extension of the obtained interactive video file is MP4, it indicates that the video format of the interactive video file is MP4 format; if the extension name of the acquired interactive video file is FLV, indicating that the video format of the interactive video file is FLV format; and if the extension name of the acquired interactive video file is AVI, indicating that the video format of the interactive video file is AVI format.
And step S44, calling a video analyzer corresponding to the video format to analyze the interactive video file so as to obtain an interactive video information plot.
Specifically, when the format of the interactive video file is an FLV format, an FLV analyzer is called to analyze the interactive video file, so that an interactive video information plot is obtained; and when the format of the interactive video file is the MP4 format, calling an MP4 parser to parse the interactive video file so as to obtain an interactive video information plot. Similarly, when the format of the interactive video file is other formats, other types of video analyzers corresponding to the format are called to analyze the interactive video file so as to obtain an interactive video information plot.
And step S46, playing the interactive video file according to the interactive video information plot.
Specifically, since the title information, the start timestamp, and the end timestamp of each video segment and the information of the next video segment of the current video segment are stored in the interactive video information storyline, the video segment to be played currently and the video segment to be played next can be determined according to the interactive video storyline.
In this embodiment, by identifying the video format of the interactive video file and then calling the corresponding video parser according to the format of the interactive video file, the interactive video player can play the interactive videos in various formats.
Referring to fig. 5, which is a schematic flowchart illustrating an interactive video playing method according to another embodiment of the present invention, it can be seen that the interactive video playing method provided in this embodiment mainly includes the following steps:
and step S50, acquiring the interactive video file to be played.
And step S52, determining the video format of the interactive video file.
Specifically, steps S50-S52 in the embodiment of the present invention are substantially the same as steps S40-S42 in the above embodiment, and are not repeated in this embodiment
And step S54, calling a video parser corresponding to the video format, and reading the interaction information and the media information from the interaction video file through the called video parser.
Specifically, the video parser corresponding to the video format has a function of reading interactive information and media information from an interactive video file. The video analyzer can analyze the interactive video file, so that interactive information and media information contained in the interactive video file are analyzed from a preset position of the interactive video file. It should be noted that the preset position is a position preset by the user and used for storing the interactive information and the media information of the interactive video file. In an embodiment, when the format of the interactive video file is FLV format, the preset location may be a second AMF protocol packet in a MetaData Tag structure in the interactive video file; when the format of the interactive video file is MP4 format, the predetermined location may be a MOOV type packet in the interactive video file in MP4 format.
The interactive information comprises scenario branch information, and the scenario branch information is information of a next video segment of the current video segment. In this embodiment, there may be one or more next video segments corresponding to the current video segment, and when there is only one video segment, the scenario branch information may include title information of the one video segment, and a start timestamp and an end timestamp of the one video segment in the full-segment video; when there are a plurality of next video segments corresponding to the current video segment, the scenario branch information may include title information of each video segment, a start time stamp and an end time stamp of each video segment in the full-segment video, and scenario branch button information. Wherein the scenario branch button information may include a left branch button, a right branch button, or may include a first branch button, a second branch button, a third branch button, and the like. The media information comprises the title information of the current video segment, and the starting time stamp and the ending time stamp of the current video segment in the full-segment video.
Step S56, converting the interactive information and the media information into the interactive video information plot.
Specifically, after the interactive information and the media information are read from the interactive video file, the video parser needs to convert the interactive information and the media information into an interactive video information plot that can be recognized by the interactive video player, which has been described in detail in the above embodiments and is not described in detail in this embodiment.
And step S58, playing the interactive video file according to the interactive video information plot.
Specifically, since the title information, the start timestamp, and the end timestamp of each video segment and the information of the next video segment of the current video segment are stored in the interactive video information storyline, the video segment to be played currently and the video segment to be played next can be determined according to the interactive video storyline.
In this embodiment, the interactive video player can play the interactive video file conveniently according to the interactive video information plot by converting the interactive information and the media information into the interactive video information plot.
Further, referring to fig. 6, which is a schematic flow chart of an interactive video playing method according to another embodiment of the present invention, it can be seen that the interactive video playing method provided in this embodiment mainly includes the following steps:
step S60, obtaining an interactive video file to be played;
and step S62, calling a video analyzer to analyze the interactive video file so as to obtain an interactive video information plot.
Specifically, steps S60-S62 in the embodiment of the present invention are substantially the same as steps S20-S22 in the above embodiment, and are not repeated in this embodiment.
Step S64, when playing the current video clip, popping up an option button according to the next video clip information of the current video clip, so that the user can select the next video clip to be played.
Specifically, in the process that the interactive video player plays each video segment according to the interactive video scenario diagram, when the current video segment is played, the video player searches for a next video segment to be played according to the interactive video scenario diagram, and when a plurality of video frequency bands to be played exist, the interactive video player pops up an option button according to next video segment information of the current video segment in the interactive video scenario diagram so that a user can select the next video segment to be played. Illustratively, when there are two video clips to be played next, two option buttons are popped up for the user to select the video clip to be played; when three video clips to be played next exist, three option buttons are popped up for the user to select the video clips to be played.
In an embodiment, when the option button is popped up for the user to select the video clip to be played, the title of the video clip to be played corresponding to each option button may be displayed, or the type of the button option may be displayed, for example, a left button option, a right button option, a first button option, a second button option, or the like is displayed.
In one embodiment, the timing for the ejection of the button option may be set by the user or default by the system, for example, the ejection timing may be when the current video clip needs 3 seconds to play out.
According to the embodiment of the invention, when the current video clip is played, the option button is popped up according to the next video clip information of the current video clip so that the user can select the next video clip to be played, so that the user can select the next video to be played according to the interest of the user, and the interactivity of video playing is improved.
Fig. 7 is a block diagram of an interactive video playback device 700 according to an embodiment of the present invention.
In this embodiment, the interactive video playing apparatus 700 includes a series of computer program instructions stored in a memory, and when the computer program instructions are executed by a processor, the interactive video playing function of the embodiments of the present invention can be realized. In some embodiments, the interactive video playback device 700 may be divided into one or more modules based on the particular operations implemented by the portions of the computer program instructions. For example, in fig. 7, the interactive video playback apparatus 700 can be divided into an acquisition module 701, a calling module 702, and a playback module 703. Wherein:
an obtaining module 701, configured to obtain an interactive video file to be played;
specifically, compared with the existing video file, the interactive information and the media information are stored in the preset position of the interactive video file in the embodiment of the present invention, and the preset position is a position preset by a user. The interactive information comprises scenario branch information, and the scenario branch information is information of a next video segment of the current video segment. In this embodiment, there may be one or more next video segments corresponding to the current video segment, and when there is only one video segment, the scenario branch information may include title information of the one video segment, and a start timestamp and an end timestamp of the one video segment in the full-segment video; when there are a plurality of next video segments corresponding to the current video segment, the scenario branch information may include title information of each video segment, a start time stamp and an end time stamp of each video segment in the full-segment video, and scenario branch button information. Wherein the scenario branch button information may include a left branch button, a right branch button, or may include a first branch button, a second branch button, a third branch button, and the like. The media information comprises the title information of the current video segment, and the starting time stamp and the ending time stamp of the current video segment in the full-segment video.
In one embodiment, the full segment of the interactive video corresponding to the interactive video file includes at least three video segments. The format of the interactive video file may be FLV format, MP4 format, or MKV format, and the like, which is not limited in this embodiment.
And the calling module 702 is used for calling a video analyzer to analyze the interactive video file so as to obtain an interactive video information plot.
Specifically, after the interactive video file is obtained, the calling module 702 may call a video parser to parse the interactive video file, so as to obtain an interactive video information plot.
In one embodiment, the video parser is integrated in an interactive video player, wherein the interactive video player is used for playing interactive video, but the interactive video player can also be used for playing normal video. The video parser comprises at least one of an FLV parser, an MP4 parser, an MKV parser, etc.
In another embodiment, the video parser may also be stored in the cloud platform, and when the video parser needs to be used, the video parser in the corresponding format is downloaded from the cloud.
In this embodiment, the interactive video information plot is stored in a chain tree. The interactive video information plot comprises the starting and ending time of each video clip in the whole interactive video, the title information of each video clip, the next video clip information of each video clip and the plot branch button information. The next video segment information of each video segment includes the title information of the next video segment, the start and end time of the next video segment in the full interactive video is one or more than one next video segment. The scenario branch button information may include a left branch button, a right branch button, or may include a first branch button, a second branch button, a third branch button, and the like.
In the embodiment, the interactive video information plot is stored through the chain tree structure, so that the plot relation before each video segment is very clear, the data is stored in the chain tree structure, and after the current segmented video is played, the next video segment to be played can be directly determined. In one embodiment, the plot of interactive video information is shown in fig. 3.
It should be noted that the start time stamp and the end time stamp (start-stop time) in the present embodiment refer to the start position and the end position of the video segment in the full segment video. For example, the full-segment video includes a video segment 1, a video segment 2, and a video segment 3, where the position of the full-segment video of the video segment 1 is 0-10 seconds, the position of the full-segment video of the video segment is 10-20 seconds, and the position of the full-segment video of the video segment 3 is 20-30 seconds, then the start timestamp and the end timestamp of the video segment 1 are 0 second and 10 seconds, respectively, the start timestamp and the end timestamp of the video segment 2 are 10 seconds and 20 seconds, respectively, and the start timestamp and the end timestamp of the video segment 3 are 20 seconds and 30 seconds, respectively.
And the playing module 703 is configured to play the interactive video file according to the interactive video information plot.
Specifically, since the title information, the start timestamp, and the end timestamp of each video segment and the information of the next video segment of the current video segment are stored in the interactive video information storyline, the video segment to be played currently and the video segment to be played next can be determined according to the interactive video storyline.
For example, in a specific playing scene, an interactive video information plot is shown in fig. 3, and it can be known from the plot that when an interactive video file is played, a video segment 1 is played first, then a video segment 2 or a video segment 3 can be played according to a selection of a user, and when the video segment 2 is played, a video segment 4 or a video segment 5 can be further played according to the selection of the user.
In the embodiment, the interactive video file to be played is acquired; calling a video analyzer to analyze the interactive video file to obtain an interactive video information plot; and playing the interactive video file according to the interactive video information plot. The scheme analyzes the interactive video information plot through the video analyzer, so that the interactive video can be played according to the interactive video information plot, and the interactivity of video playing is improved.
In an embodiment, the invoking module 702 is further configured to determine a video format of the interactive video file; and the video analyzer is used for calling the video analyzer corresponding to the video format to analyze the interactive video file so as to obtain an interactive video information plot.
Specifically, the video format of the interactive video file can be determined by acquiring the extension of the interactive video file. For example, if the extension of the obtained interactive video file is MP4, it indicates that the video format of the interactive video file is MP4 format; if the extension name of the acquired interactive video file is FLV, indicating that the video format of the interactive video file is FLV format; and if the extension name of the acquired interactive video file is AVI, indicating that the video format of the interactive video file is AVI format.
Specifically, when the interactive video file is determined to be in the FLV format, an FLV analyzer is called to analyze the interactive video file, so that an interactive video information plot is obtained; and when the format of the interactive video file is determined to be the MP4 format, calling an MP4 parser to parse the interactive video file so as to obtain an interactive video information plot. Similarly, when the format of the interactive video file is determined to be other formats, other types of video analyzers corresponding to the format are called to analyze the interactive video file, so that an interactive video information plot is obtained.
In this embodiment, by identifying the video format of the interactive video file and then calling the corresponding video parser according to the format of the interactive video file, the interactive video player can play the interactive videos in various formats.
In another embodiment, the invoking module 702 is further configured to determine a video format of the interactive video file; the video parser is used for calling the video parser corresponding to the video format and reading the interaction information and the media information from the interaction video file through the called video parser; and the system is used for converting the interactive information and the media information into the interactive video information plot.
Specifically, the video parser corresponding to the video format has a function of reading interactive information and media information from an interactive video file. The video analyzer can analyze the interactive video file, so that interactive information and media information contained in the interactive video file are analyzed from a preset position of the interactive video file. It should be noted that the preset position is a position preset by the user and used for storing the interactive information and the media information of the interactive video file. In an embodiment, when the format of the interactive video file is FLV format, the preset location may be a second AMF protocol packet in a MetaData Tag structure in the interactive video file; when the format of the interactive video file is MP4 format, the predetermined location may be a MOOV type packet in the interactive video file in MP4 format.
The interactive information comprises scenario branch information, and the scenario branch information is information of a next video segment of the current video segment. In this embodiment, there may be one or more next video segments corresponding to the current video segment, and when there is only one video segment, the scenario branch information may include title information of the one video segment, and a start timestamp and an end timestamp of the one video segment in the full-segment video; when there are a plurality of next video segments corresponding to the current video segment, the scenario branch information may include title information of each video segment, a start time stamp and an end time stamp of each video segment in the full-segment video, and scenario branch button information. Wherein the scenario branch button information may include a left branch button, a right branch button, or may include a first branch button, a second branch button, a third branch button, and the like. The media information comprises the title information of the current video segment, and the starting time stamp and the ending time stamp of the current video segment in the full-segment video.
After the video parser reads the interactive information and the media information from the interactive video file, the interactive information and the media information can be converted into an interactive video information plot that can be recognized by the interactive video player, which has been described in detail in the above embodiments, and is not repeated in this embodiment
In this embodiment, the interactive video player can play the interactive video file conveniently according to the interactive video information plot by converting the interactive information and the media information into the interactive video information plot.
In another embodiment, the playing module 703 is further configured to pop up an option button according to information of a next video segment of the current video segment when the current video segment is played, so that a user selects a next video segment to be played.
Specifically, in the process that the interactive video player plays each video segment according to the interactive video scenario diagram, when the current video segment is played, the video player searches for a next video segment to be played according to the interactive video scenario diagram, and when a plurality of video frequency bands to be played exist, the interactive video player pops up an option button according to next video segment information of the current video segment in the interactive video scenario diagram so that a user can select the next video segment to be played. Illustratively, when there are two video clips to be played next, two option buttons are popped up for the user to select the video clip to be played; when three video clips to be played next exist, three option buttons are popped up for the user to select the video clips to be played.
In an embodiment, when the option button is popped up for the user to select the video clip to be played, the title of the video clip to be played corresponding to each option button may be displayed, or the type of the button option may be displayed, for example, a left button option, a right button option, a first button option, a second button option, or the like is displayed.
In one embodiment, the timing for the ejection of the button option may be set by the user or default by the system, for example, the ejection timing may be when the current video clip needs 3 seconds to play out.
According to the embodiment of the invention, when the current video clip is played, the option button is popped up according to the next video clip information of the current video clip so that the user can select the next video clip to be played, so that the user can select the next video to be played according to the interest of the user, and the interactivity of video playing is improved.
As shown in fig. 8, a computer device 2, the computer device 2 comprising:
a memory 21 for storing executable program code; and
a processor 22 for calling the executable program code in the memory 21, and executing the method including the above-mentioned interactive video playing.
In fig. 8, one processor 22 is taken as an example.
The memory 21 is used as a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for interactive video playing in the embodiment of the present application (for example, the obtaining module 701, the calling module 702, and the playing module 703 shown in fig. 7). The processor 22 executes various functional applications and data processing of the computer device 2 by executing the nonvolatile software programs, instructions and modules stored in the memory 21, namely, implements the method for interactive video playing of the above-mentioned method embodiment.
The memory 21 may include a program storage area and a data storage area, wherein the program storage area may store an application program required for at least one function of the operating system; the storage data area may store playback information of the user on the computer device 2. Further, the memory 21 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 21 may optionally include memory 21 located remotely from the processor 22, and these remote memories 21 may be connected to the interactive video playback device 700 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 21, and when executed by the one or more processors 22, perform the method for interactive video playing in any of the above-described method embodiments, for example, perform the above-described method steps S20 to S24 in fig. 2, method steps S40 to S46 in fig. 4, method steps S50 to S58 in fig. 5, and steps S60 to S64 in fig. 6, so as to implement the functions of the obtaining module 701, the calling module 702, and the playing module 703 in fig. 7.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
The computer device 2 of the embodiment of the present application exists in various forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic devices with data interaction functions.
Embodiments of the present application provide a non-transitory computer-readable storage medium, which stores computer-executable instructions, which are executed by one or more processors, such as one processor 22 in fig. 8, so that the one or more processors 22 may execute the method for interactive video playing in any of the method embodiments, for example, execute the above-described method steps S20 to S24 in fig. 2, method steps S40 to S46 in fig. 4, method steps S50 to S58 in fig. 5, and steps S60 to S64 in fig. 6, so as to implement the functions of the obtaining module 701, the calling module 702, and the playing module 703 shown in fig. 7.
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 the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on at least two network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application. 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 can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application 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 or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. An interactive video playing method is characterized by comprising the following steps:
acquiring an interactive video file to be played;
calling a video analyzer to analyze the interactive video file to obtain an interactive video information plot;
and playing the interactive video file according to the interactive video information plot.
2. The interactive video playing method according to claim 1, wherein the invoking a video parser to parse the interactive video file to obtain an interactive video information plot comprises:
determining a video format of the interactive video file;
and calling a video analyzer corresponding to the video format to analyze the interactive video file so as to obtain an interactive video information plot.
3. The interactive video playing method according to claim 2, wherein the step of invoking a video parser to parse the interactive video file to obtain an interactive video information plot further comprises:
reading out interaction information and media information from the interaction video file through the called video analyzer;
and converting the interactive information and the media information into the interactive video information plot.
4. The interactive video playback method of claim 3, wherein the interactive video information plot is stored in a chain tree.
5. The interactive video playing method according to any one of claims 1 to 4, wherein the full-segment interactive video corresponding to the interactive video file includes at least three video segments, and the interactive video information plot includes start and stop times of each video segment in the full-segment interactive video, title information of each video segment, next video segment information of each video segment, and plot branching button information.
6. The interactive video playing method according to claim 5, wherein the step of playing the interactive video file according to the interactive video information plot further comprises:
and when the current video clip is played, popping up an option button according to the next video clip information of the current video clip so as to enable a user to select the next video clip to be played.
7. The interactive video playing method of claim 1, wherein the video parser is integrated into an interactive video player.
8. An interactive video playback device, comprising:
the acquisition module is used for acquiring an interactive video file to be played;
the calling module is used for calling a video analyzer to analyze the interactive video file so as to obtain an interactive video information plot;
and the playing module is used for playing the interactive video file according to the interactive video information plot.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the interactive video playback method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor implements the steps of the interactive video playback method of any of claims 1 to 7.
CN201910525219.6A 2019-06-18 2019-06-18 Interactive video playing method and device, computer equipment and readable storage medium Pending CN112104909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910525219.6A CN112104909A (en) 2019-06-18 2019-06-18 Interactive video playing method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910525219.6A CN112104909A (en) 2019-06-18 2019-06-18 Interactive video playing method and device, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112104909A true CN112104909A (en) 2020-12-18

Family

ID=73748957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910525219.6A Pending CN112104909A (en) 2019-06-18 2019-06-18 Interactive video playing method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112104909A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113423003A (en) * 2021-06-10 2021-09-21 山东云缦智能科技有限公司 Method for playing interactive video
CN113596595A (en) * 2021-07-30 2021-11-02 北京奇艺世纪科技有限公司 Information interaction method and device
CN114302228A (en) * 2021-12-29 2022-04-08 北京力拓飞远科技有限公司 Interactive video playing method, system and storage medium
CN114598922A (en) * 2022-03-07 2022-06-07 深圳创维-Rgb电子有限公司 Voice message interaction method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921610A (en) * 2006-09-11 2007-02-28 龚湘明 Client-based video stream interactive processing method and processing system
CN102917258A (en) * 2012-10-12 2013-02-06 深圳Tcl新技术有限公司 Video playing method, terminal and system based on video contents
CN103384253A (en) * 2013-07-18 2013-11-06 博大龙 Playing system presenting multimedia interaction function in video and construction method of playing system
CN105472456A (en) * 2015-11-27 2016-04-06 北京奇艺世纪科技有限公司 Video playing method and device
CN105828125A (en) * 2016-03-31 2016-08-03 北京奇艺世纪科技有限公司 Video push method and apparatus
CN108124187A (en) * 2017-11-24 2018-06-05 互影科技(北京)有限公司 The generation method and device of interactive video
CN108924584A (en) * 2018-05-30 2018-11-30 互影科技(北京)有限公司 The packaging method and device of interactive video

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921610A (en) * 2006-09-11 2007-02-28 龚湘明 Client-based video stream interactive processing method and processing system
CN102917258A (en) * 2012-10-12 2013-02-06 深圳Tcl新技术有限公司 Video playing method, terminal and system based on video contents
CN103384253A (en) * 2013-07-18 2013-11-06 博大龙 Playing system presenting multimedia interaction function in video and construction method of playing system
CN105472456A (en) * 2015-11-27 2016-04-06 北京奇艺世纪科技有限公司 Video playing method and device
CN105828125A (en) * 2016-03-31 2016-08-03 北京奇艺世纪科技有限公司 Video push method and apparatus
CN108124187A (en) * 2017-11-24 2018-06-05 互影科技(北京)有限公司 The generation method and device of interactive video
CN108924584A (en) * 2018-05-30 2018-11-30 互影科技(北京)有限公司 The packaging method and device of interactive video

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113423003A (en) * 2021-06-10 2021-09-21 山东云缦智能科技有限公司 Method for playing interactive video
CN113596595A (en) * 2021-07-30 2021-11-02 北京奇艺世纪科技有限公司 Information interaction method and device
CN114302228A (en) * 2021-12-29 2022-04-08 北京力拓飞远科技有限公司 Interactive video playing method, system and storage medium
CN114598922A (en) * 2022-03-07 2022-06-07 深圳创维-Rgb电子有限公司 Voice message interaction method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112104909A (en) Interactive video playing method and device, computer equipment and readable storage medium
US20200312327A1 (en) Method and system for processing comment information
CN110062284B (en) Video playing method and device and electronic equipment
US20170163992A1 (en) Video compressing and playing method and device
US20180255359A1 (en) Method for sharing a captured video clip and electronic device
CN106792152B (en) Video synthesis method and terminal
CN106658226B (en) Playing method and device
CN108038398B (en) Two-dimensional code analysis capability test method and device and electronic equipment
US20170180445A1 (en) Advertisement data acquisition method and electronic equipment
EP2953132B1 (en) Method and apparatus for processing audio/video file
US20170171329A1 (en) Video recommendaton method and system, and server
US20170168660A1 (en) Voice bullet screen generation method and electronic device
CN112619130A (en) Multi-scene playback method and device for game
CN108174242A (en) Live data multiplexing method, device, storage medium and equipment
CN112601127A (en) Video display method and device, electronic equipment and computer readable storage medium
CN107454447B (en) Plug-in loading method and device for player and television
CN111356023B (en) Playing mode determining method and device
CN109376254A (en) Processing method, device, electronic equipment and the readable storage medium storing program for executing of data flow
CN111346377A (en) Recording and playback method and device for online game, server and terminal
CN106331763A (en) Method of playing slicing media files seamlessly and device of realizing the method
CN111506747B (en) File analysis method, device, electronic equipment and storage medium
US11863834B2 (en) Systems and methods for recommending content using progress bars
CN112218166A (en) Play starting method and related device for memory play of on-demand video
US20160142456A1 (en) Method and Device for Acquiring Media File
CN112203108A (en) Method and equipment for identifying and switching to live video stream according to short video stream

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