CN113973218A - Interactive video generation method, client and script server - Google Patents

Interactive video generation method, client and script server Download PDF

Info

Publication number
CN113973218A
CN113973218A CN202111220724.3A CN202111220724A CN113973218A CN 113973218 A CN113973218 A CN 113973218A CN 202111220724 A CN202111220724 A CN 202111220724A CN 113973218 A CN113973218 A CN 113973218A
Authority
CN
China
Prior art keywords
interactive
script
interaction
video
latest
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111220724.3A
Other languages
Chinese (zh)
Other versions
CN113973218B (en
Inventor
吴平妹
薛潋
廖正东
苏衎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media 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 Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202111220724.3A priority Critical patent/CN113973218B/en
Publication of CN113973218A publication Critical patent/CN113973218A/en
Application granted granted Critical
Publication of CN113973218B publication Critical patent/CN113973218B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4316Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • 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/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
    • 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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/4722End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting additional data associated with the content
    • H04N21/4725End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting additional data associated with the content using interactive regions of the image, e.g. hot spots

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Human Computer Interaction (AREA)
  • Marketing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • Television Signal Processing For Recording (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses an interactive video generation method, a client and a script server, wherein an interactive layer and a video layer are decoupled, when visual interactive editing is carried out on the interactive layer, an interactive editing instruction for editing a target interactive assembly is generated based on an interactive script, the interactive editing instruction and a target interactive assembly ID are sent to the script server to generate a latest interactive script, the latest interactive script is subjected to correctness verification, and the client renders the latest interactive script passing the verification to generate an interactive video. The interactive script is used for describing the interactive elements, the interactive layer and the video layer are decoupled, visual interactive editing is carried out on the interactive layer, the interactive elements are borne on the interactive layer and are superposed on the video content, when the interactive elements are changed or the interactive content needs to be modified, only the interactive elements on the interactive layer need to be modified, the interactive video clips do not need to be re-manufactured, and the labor cost and the material cost are saved.

Description

Interactive video generation method, client and script server
Technical Field
The invention relates to the technical field of internet, in particular to a method for generating an interactive video, a client and a script server.
Background
Different from a passive receiving form of a traditional video, the interactive video means that a viewer can participate in a scenario, and the viewer changes the scenario trend and the picture display in the interactive video by operating interactive components and interactive elements in the interactive video, so that the viewer is more immersed in the scenario.
At present, the technology for generating interactive videos in China mainly adopts special customization, namely, deep customization development is independently carried out on each interactive video. Since some interactive elements in the interactive video developed by deep customization are directly compressed in the video content, a problem arises in that if the interactive elements are changed or the interactive content (e.g., text, picture, etc.) needs to be modified, the interactive video segment needs to be re-produced, and then uploaded, transcoded, and replaced into the modified interactive video, which requires a great deal of labor and material cost.
Disclosure of Invention
In view of this, the present invention discloses a method for generating an interactive video, a client and a script server, so as to implement that when an interactive element is changed or interactive content needs to be modified, a corresponding interactive video segment does not need to be re-made.
A generation method of an interactive video is applied to a client, and comprises the following steps:
decoupling the interactive layer from the video layer;
when visual interactive editing is carried out on the interactive layer, an interactive editing instruction for editing a target interactive component is generated based on an interactive script, wherein the interactive script is used for describing interactive elements and is obtained based on video source data;
sending the interactive editing instruction and the target interactive component ID to a script server, generating a latest interactive script by the script server based on the interactive editing instruction and the target interactive component ID, and checking the correctness of the latest interactive script;
acquiring the latest interaction script, and sending the latest interaction script after the latest interaction script is successfully verified by the script server;
and rendering the latest interactive script to generate an interactive video.
Optionally, the generating process of the interaction script includes:
acquiring the video source data;
generating a script address based on the video source data, and sending the script address to the script server;
and acquiring the interaction script which is returned by the script server and corresponds to the script address.
Optionally, the acquiring the video source data specifically includes:
sending a video information request to an authentication server, wherein the video information request carries a video ID;
acquiring video data information returned by the authentication server, wherein the video data information is sent after the authentication server successfully authenticates the video information request;
requesting video source data from a video source server based on the video data information;
and acquiring the video source data returned by the video source server.
A generation method of an interactive video is applied to a script server and comprises the following steps:
the method comprises the steps of obtaining an interactive editing instruction and a target interactive component ID sent by a client, wherein the interactive editing instruction is generated for editing a target interactive component based on an interactive script when the client carries out visual interactive editing on an interactive layer, the interactive script is description of interactive elements and is obtained based on video source data, and the interactive layer and the video layer are decoupled;
generating a latest interaction script based on the interaction editing instruction and the target interaction component ID;
checking the correctness of the latest interaction script;
and when the latest interaction script is successfully verified, sending the latest interaction script to the client, and rendering the latest interaction script by the client to generate an interaction video.
Optionally, the generating a latest interaction script based on the interaction editing instruction and the target interaction component ID specifically includes:
when the target interaction component is edited by using the interaction editing instruction, determining the target interaction component as a current interaction point, and acquiring a forced unlocking instruction of the current interaction point, which is sent by a client other than the client;
editing and unlocking the current interaction point based on the forced unlocking instruction;
acquiring a latest interaction editing instruction of the current interaction point, wherein the latest interaction editing instruction is sent by the client and/or the client sending the forced unlocking instruction;
and editing the target interaction assembly according to the latest interaction editing instruction, and determining an editing result obtained based on the latest editing instruction as the latest interaction script.
A client, comprising:
the decoupling unit is used for decoupling the interactive layer from the video layer;
the instruction generating unit is used for generating an interactive editing instruction for editing a target interactive component based on an interactive script when the interactive layer is subjected to visual interactive editing, wherein the interactive script is used for describing interactive elements and is obtained based on video source data;
the sending unit is used for sending the interactive editing instruction and the target interactive component ID to a script server, the script server generates a latest interactive script based on the interactive editing instruction and the target interactive component ID, and the correctness of the latest interactive script is checked;
the script acquisition unit is used for acquiring the latest interaction script, and the latest interaction script is transmitted after being successfully verified by the script server;
and the script rendering unit is used for rendering the latest interactive script to generate an interactive video.
Optionally, the method further includes:
the first script generation unit is used for generating the interaction script;
the first script generation unit specifically includes:
the data acquisition subunit is used for acquiring the video source data;
the script address generating subunit is used for generating a script address based on the video source data and sending the script address to the script server;
and the script acquisition subunit is used for acquiring the interaction script which is returned by the script server and corresponds to the script address.
Optionally, the data obtaining subunit is specifically configured to:
sending a video information request to an authentication server, wherein the video information request carries a video ID;
acquiring video data information returned by the authentication server, wherein the video data information is sent after the authentication server successfully authenticates the video information request;
requesting video source data from a video source server based on the video data information;
and acquiring the video source data returned by the video source server.
A script server, comprising:
the interactive information acquisition unit is used for acquiring an interactive editing instruction and a target interactive component ID which are sent by a client, wherein the interactive editing instruction is generated for editing the target interactive component based on an interactive script when the client performs visual interactive editing on an interactive layer, the interactive script is used for describing interactive elements and is obtained based on video source data, and the interactive layer and the video layer are decoupled;
the second script generation unit is used for generating a latest interaction script based on the interaction editing instruction and the ID of the target interaction component;
the checking unit is used for checking the correctness of the latest interaction script;
and the script sending unit is used for sending the latest interaction script to the client when the latest interaction script is successfully verified, and rendering the latest interaction script by the client to generate an interaction video.
Optionally, the second script generating unit is specifically configured to:
when the target interaction component is edited by using the interaction editing instruction, determining the target interaction component as a current interaction point, and acquiring a forced unlocking instruction of the current interaction point, which is sent by a client other than the client;
editing and unlocking the current interaction point based on the forced unlocking instruction;
acquiring a latest interaction editing instruction of the current interaction point, wherein the latest interaction editing instruction is sent by the client and/or the client sending the forced unlocking instruction;
and editing the target interaction assembly according to the latest interaction editing instruction, and determining an editing result obtained based on the latest editing instruction as the latest interaction script.
According to the technical scheme, after the interactive layer and the video layer are decoupled, when visual interactive editing is carried out on the interactive layer, an interactive editing instruction for editing a target interactive component is generated based on an interactive script, the interactive editing instruction and the target interactive component ID are sent to the script server, the script server generates a latest interactive script based on the interactive editing instruction and the target interactive component ID, correctness verification is carried out on the latest interactive script, and the client renders the latest interactive script passing the verification to generate the interactive video. According to the interactive editing method and device, the interactive script is used for describing the interactive elements, the interactive layer and the video layer are decoupled, visual interactive editing is carried out on the interactive layer, the interactive elements are borne on the interactive layer and are superposed on the video content, therefore, when the interactive elements are changed or the interactive content needs to be modified, only the interactive elements on the interactive layer need to be modified, the corresponding interactive video segments do not need to be re-manufactured, the labor and material resource cost is saved, and the generation efficiency of the interactive video is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the disclosed drawings without creative efforts.
Fig. 1 is a flowchart of a method for generating an interactive video according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for generating an interactive script according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for acquiring video source data according to an embodiment of the present invention;
FIG. 4 is a timing diagram illustrating an interactive video generation method according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for generating an interactive video according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a client according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a script server according to an embodiment of the present invention.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The embodiment of the invention discloses a method for generating an interactive video, a client and a script server, wherein after an interactive layer and a video layer are decoupled, when visual interactive editing is carried out on the interactive layer, an interactive editing instruction for editing a target interactive component is generated based on an interactive script, the interactive editing instruction and a target interactive component ID are sent to the script server, the script server generates a latest interactive script based on the interactive editing instruction and the target interactive component ID, the latest interactive script is subjected to correctness verification, and the client renders the latest interactive script passing the verification to generate the interactive video. According to the interactive editing method and device, the interactive script is used for describing the interactive elements, the interactive layer and the video layer are decoupled, visual interactive editing is carried out on the interactive layer, the interactive elements are borne on the interactive layer and are superposed on the video content, therefore, when the interactive elements are changed or the interactive content needs to be modified, only the interactive elements on the interactive layer need to be modified, the corresponding interactive video segments do not need to be re-manufactured, the labor and material resource cost is saved, and the generation efficiency of the interactive video is greatly improved.
Referring to fig. 1, a flowchart of a method for generating an interactive video, which is disclosed in the embodiment of the present invention, is applied to a client, and the method includes:
s101, decoupling an interactive layer and a video layer;
in the invention, the interactive layer is realized by multilayer superposition of canvas layers, Iframes and other DOM elements. The video layer supports the assembly of segmented video according to a branching context map or event configuration.
The process of decoupling the interactive layer and the video layer comprises the following steps:
(1) uploading a video file, the video file being bound to the context map.
(2) Interactive element editing, comprising: edit the context map and the interaction event track.
In practical application, a single venation graph node can be bound with a branch video, and the video can be bound repeatedly, so that the video can be conveniently recycled. Interaction events can be added to the video corresponding to a single context map node, and a plurality of interaction events can be added to the single context map node.
Step S102, when visual interactive editing is carried out on the interactive layer, an interactive editing instruction for editing a target interactive component is generated based on an interactive script;
the interactive script is description of an interactive element and is obtained based on video source data.
In this embodiment, the interaction is defined as various interaction components (e.g., a countdown component, a role switching component, an interrupt component, a user-defined component, a plug-in component, etc.), and then each interaction component is divided into various interaction editing instructions, and the corresponding interaction component can be edited by using each interaction editing instruction.
In practical application, the interactive script can be rendered first, and then an interactive editing instruction for editing the target interactive component is generated by using the rendered interactive script.
It should be noted that, the target interaction components in this embodiment are: and when the user performs video interaction, the interactive components correspond to the interactive contents.
Step S103, sending the interactive editing instruction and the target interactive component ID to a script server, generating a latest interactive script by the script server based on the interactive editing instruction and the target interactive component ID, and checking the correctness of the latest interactive script;
the content for checking the correctness of the latest interactive script includes but is not limited to: whether the latest interaction script conforms to the interaction script specification.
In this embodiment, only after the latest interaction script is successfully verified (i.e., the correctness is verified), the script server returns the latest interaction script to the client, and otherwise, a prompt message indicating that the latest interaction script is failed to be verified is returned to the client.
Step S104, acquiring the latest interaction script;
and the latest interaction script is sent after being successfully verified by the script server.
And S105, rendering the latest interactive script to generate an interactive video.
In this embodiment, after the client receives the latest interaction script returned by the script server, the latest interaction script is rendered to generate an interaction video, so that the video interaction of this time is completed.
In practical application, an interactive editing player can be installed on a client, and an interactive video is generated through the interactive editing player.
In summary, the invention discloses a method for generating an interactive video, which comprises the steps of decoupling an interactive layer from a video layer, generating an interactive editing instruction for editing a target interactive component based on an interactive script when visual interactive editing is carried out on the interactive layer, sending the interactive editing instruction and a target interactive component ID to a script server, generating a latest interactive script by the script server based on the interactive editing instruction and the target interactive component ID, carrying out correctness verification on the latest interactive script, and rendering the latest interactive script passing the verification by a client to generate the interactive video. According to the interactive editing method and device, the interactive script is used for describing the interactive elements, the interactive layer and the video layer are decoupled, visual interactive editing is carried out on the interactive layer, the interactive elements are borne on the interactive layer and are superposed on the video content, therefore, when the interactive elements are changed or the interactive content needs to be modified, only the interactive elements on the interactive layer need to be modified, the corresponding interactive video segments do not need to be re-manufactured, the labor and material resource cost is saved, and the generation efficiency of the interactive video is greatly improved.
In order to further optimize the above embodiment, referring to fig. 2, a flowchart of a method for generating an interactive script disclosed in the embodiment of the present invention, that is, a process of generating an interactive script used in step S102, includes:
step S201, video source data is obtained;
the video source data in this embodiment includes: video source information such as video address and routing address.
Step S202, generating a script address based on the video source data, and sending the script address to a script server;
and step S203, acquiring the interactive script which is returned by the script server and corresponds to the script address.
After the script server obtains the script address, the corresponding interaction script can be found according to the script address, and the interaction script is returned to the client.
To further optimize the above embodiments, referring to fig. 3, a flowchart of a method for acquiring video source data according to an embodiment of the present invention is disclosed, where the method includes:
step S301, sending the video information request to an authentication server;
the video information request carries a video ID, and the video information request can also carry other information besides the video ID, such as user login information, operation authority, and the like.
Step S302, video data information returned by the authentication server is obtained;
and the video data information is sent after the authentication server successfully authenticates the video information request.
The authentication described in this embodiment refers to: and verifying the user login information, verifying the operation authority of the user for the user who passes the verification and successfully logs in, determining whether the user has the operation authority of the video corresponding to the video ID, and acquiring corresponding video data information only if the user has the corresponding operation authority.
The video data information includes: video ID, video collection information, video name, video thumbnail, video definition, etc.
Step S303, requesting video source data from a video source server based on the video data information;
and step S304, acquiring the video source data returned by the video source server.
Because the video data information carries the video ID, the video source server can obtain the corresponding video source data based on the video data information.
For facilitating understanding of the interactive video generation process, referring to fig. 4, a timing chart of an interactive video generation method disclosed by the embodiment of the invention relates to hardware comprising: the system comprises a client, an authentication server, a script server and a video source server.
Specifically, a client sends a video information request to an authentication server;
the authentication server returns video data information to the client according to the video information request;
a client requests video source data from a video source server;
the video source server returns video source data to the client;
the client generates a script address based on the video source data and sends the script address to a script server to request an interactive script;
the script server returns an interactive script corresponding to the script address to the client and renders the interactive script;
after the interactive layer and the video layer are decoupled by the client, when the client carries out visual editing on the interactive layer, an interactive editing instruction for editing a target interactive component is generated based on an interactive script, and the interactive editing instruction and the ID of the target interactive component are sent to a script server;
the script server generates a latest interactive script (the process comprises the step of analyzing the interactive editing instruction) based on the interactive editing instruction and the target interactive assembly ID, and the correctness of the latest interactive script is verified;
the client requests the latest interaction script from the script server, and when the correctness of the latest interaction script is verified, the script server returns the latest interaction script to the client;
and the client renders the latest interactive script to generate an interactive video.
In summary, the invention discloses a method for generating an interactive video, and because an interactive script is a description of an interactive element, the interactive script is decoupled from a video layer, and visual interactive editing is performed on the interactive layer, so that the interactive element can be borne on the interactive layer and superposed on video content, and therefore, when the interactive element is changed or the interactive content needs to be modified, only the interactive element on the interactive layer needs to be modified, and corresponding interactive video segments do not need to be re-made, thereby not only saving the cost of manpower and material resources, but also greatly improving the generation efficiency of the interactive video.
Corresponding to the above method embodiment, referring to fig. 5, a flowchart of another interactive video generation method disclosed in the embodiment of the present invention is applied to a script server, and the generation method includes:
s401, acquiring an interactive editing instruction and a target interactive component ID sent by a client;
when the client performs visual interactive editing on the interactive layer, the interactive editing instruction is generated for editing the target interactive component based on the interactive script, the interactive script is a description of the interactive element and is obtained based on the video source data, the interactive layer and the video layer are decoupled, and details are shown in the corresponding part of the embodiment shown in fig. 1.
S402, generating a latest interaction script based on the interaction editing instruction and the ID of the target interaction component;
step S403, checking the correctness of the latest interaction script;
and S404, when the latest interaction script is successfully verified, sending the latest interaction script to the client, and rendering the latest interaction script by the client to generate an interaction video.
It should be noted that the embodiment shown in fig. 5 corresponds to the embodiment shown in fig. 1, and for details of working principles of various steps, please refer to corresponding parts of the embodiment shown in fig. 1, which are not described herein again.
At present, the interactive video generation platform in China generally generates corresponding scripts in a unified way by the front end of a client after local editing and interaction and uploads the scripts to a script server, so that only one person can edit an interactive video at the same time. Under the conditions that the episode of the interactive video is not complex and the interactive points are not many, the editing of the interactive video can be independently completed by one person, but when the episode of the interactive video is more complex, the editing efficiency of the interactive video is low due to the condition that only one person can edit in the traditional scheme.
In order to realize the simultaneous online editing of interactive videos by multiple people, the technical scheme is improved.
Therefore, to further optimize the above embodiment, step S102 may specifically include:
(1) when the target interaction component is edited by using an interaction editing instruction, determining the target interaction component as a current interaction point, and acquiring a forced unlocking instruction of the current interaction point, which is sent by a client other than the client;
(2) editing and unlocking the current interaction point based on the forced unlocking instruction;
(3) acquiring a latest interaction editing instruction of the current interaction point, wherein the latest interaction editing instruction is sent by the client and/or the client sending the forced unlocking instruction;
(4) and editing the target interaction assembly according to the latest interaction editing instruction, and determining an editing result obtained based on the latest editing instruction as a latest interaction script.
For example, assume that client a and client B edit the same interaction point.
The client A sends an editing interaction instruction of the interaction point 1 to a script server, and the script server records the interaction point 1 and a current editor (namely the client A) and locks the interaction point 1;
the client B enters the interaction point 1, displays the viewing mode of the interaction point 1, and determines whether to display the unlocking interaction point 1 or not according to the editing authority;
and the client B enters the interaction point 2 and shows the editing mode of the interaction point 2, and the client A and the client B can edit the interaction point 1 and the interaction point 2 simultaneously.
And the client B clicks a forced unlocking button of the interaction point 1, the client B can also enter an editing mode, at the moment, the client A and the client B can simultaneously edit the interaction point 1, and the script server determines an editing result obtained by the latest editing instruction as the latest interaction script.
And exiting the interactive editing interface of the client, or closing the client and sending an exiting editing instruction to the script server after a preset time period, wherein the client A and the client B are unlocked automatically.
The invention divides the editing operations of adding, deleting, modifying and the like of different interactive components into different interactive editing instructions, when modifying a certain interactive point, only the interactive editing instruction of the part and the operated interactive component ID are needed to be sent to generate the corresponding latest interactive script, and the original interactive script is updated into the latest interactive script, therefore, the technical characteristic enables a plurality of people to edit online at the same time. As long as the same interactive point is not edited by multiple persons, the multiple interactive points can be completed by the cooperation of the multiple persons, and meanwhile, the invention can realize the parallel editing interaction. The interactive lock function in the invention can prompt the user that the current interactive video is being edited by other users at the current moment, and the other users can edit the same interactive point at the current moment with the current editing user by forcibly releasing the interactive lock through the forced unlocking instruction. If a plurality of persons edit the same interaction point at the same time, the editing result is subject to the latest editing.
Corresponding to the embodiment of the method, the invention also discloses a client and a script server.
Referring to fig. 6, a schematic structural diagram of a client disclosed in the embodiment of the present invention includes:
a decoupling unit 501, configured to decouple the interactive layer from the video layer;
in the invention, the interactive layer is realized by multilayer superposition of canvas layers, Iframes and other DOM elements. The video layer supports the assembly of segmented video according to a branching context map or event configuration.
The instruction generating unit 502 is configured to generate an interactive editing instruction for editing a target interactive component based on an interactive script when performing visual interactive editing on the interactive layer, where the interactive script is a description of an interactive element and is obtained based on video source data;
the interactive script is description of an interactive element and is obtained based on video source data.
In this embodiment, the interaction is defined as various interaction components (e.g., a countdown component, a role switching component, an interrupt component, a user-defined component, a plug-in component, etc.), and then each interaction component is divided into various interaction editing instructions, and the corresponding interaction component can be edited by using each interaction editing instruction.
In practical application, the interactive script can be rendered first, and then an interactive editing instruction for editing the target interactive component is generated by using the rendered interactive script.
It should be noted that, the target interaction components in this embodiment are: and when the user performs video interaction, the interactive components correspond to the interactive contents.
A sending unit 503, configured to send the interactive editing instruction and the target interactive component ID to a script server, where the script server generates a latest interactive script based on the interactive editing instruction and the target interactive component ID, and performs correctness check on the latest interactive script;
the content for checking the correctness of the latest interactive script includes but is not limited to: whether the latest interaction script conforms to the interaction script specification.
In this embodiment, only after the latest interaction script is successfully verified (i.e., the correctness is verified), the script server returns the latest interaction script to the client, and otherwise, a prompt message indicating that the latest interaction script is failed to be verified is returned to the client.
A script obtaining unit 504, configured to obtain the latest interaction script, where the latest interaction script is sent after being successfully verified by the script server;
and a script rendering unit 505, configured to render the latest interactive script to generate an interactive video.
In this embodiment, after the client receives the latest interaction script returned by the script server, the latest interaction script is rendered to generate an interaction video, so that the video interaction of this time is completed.
In practical application, an interactive editing player can be installed on a client, and an interactive video is generated through the interactive editing player.
In summary, the invention discloses a client, after an interactive layer and a video layer are decoupled, when visual interactive editing is performed on the interactive layer, an interactive editing instruction for editing a target interactive component is generated based on an interactive script, the interactive editing instruction and a target interactive component ID are sent to a script server, a latest interactive script is generated by the script server based on the interactive editing instruction and the target interactive component ID, the latest interactive script is subjected to correctness verification, and the client renders the latest interactive script passing the verification to generate an interactive video. According to the interactive editing method and device, the interactive script is used for describing the interactive elements, the interactive layer and the video layer are decoupled, visual interactive editing is carried out on the interactive layer, the interactive elements are borne on the interactive layer and are superposed on the video content, therefore, when the interactive elements are changed or the interactive content needs to be modified, only the interactive elements on the interactive layer need to be modified, the corresponding interactive video segments do not need to be re-manufactured, the labor and material resource cost is saved, and the generation efficiency of the interactive video is greatly improved.
In order to further optimize the embodiment, the invention also discloses a generation process of the interactive script.
Accordingly, the client may further include: the first script generation unit is used for generating the interaction script.
The first script generation unit specifically includes:
the data acquisition subunit is used for acquiring the video source data;
the script address generating subunit is used for generating a script address based on the video source data and sending the script address to the script server;
and the script acquisition subunit is used for acquiring the interaction script which is returned by the script server and corresponds to the script address.
The video source data in this embodiment includes: video source information such as video address and routing address.
In this embodiment, the data obtaining subunit may specifically be configured to:
sending a video information request to an authentication server, wherein the video information request carries a video ID;
acquiring video data information returned by the authentication server, wherein the video data information is sent after the authentication server successfully authenticates the video information request;
requesting video source data from a video source server based on the video data information;
and acquiring the video source data returned by the video source server.
The video information request carries a video ID, and the video information request can also carry other information besides the video ID, such as user login information, operation authority, and the like.
The video data information includes: video ID, video collection information, video name, video thumbnail, video definition, etc.
In order to further optimize the above embodiment, referring to fig. 7, a schematic structural diagram of a script server disclosed in the embodiment of the present invention is shown, where the script server includes:
an interaction information obtaining unit 601, configured to obtain an interaction editing instruction and a target interaction component ID that are sent by a client, where the interaction editing instruction is generated for editing a target interaction component based on an interaction script when the client performs visual interaction editing on an interaction layer, the interaction script is a description of an interaction element and is obtained based on video source data, and the interaction layer and the video layer are decoupled;
a second script generating unit 602, configured to generate a latest interaction script based on the interaction editing instruction and the target interaction component ID;
a checking unit 603, configured to check correctness of the latest interaction script;
a script sending unit 604, configured to send the latest interaction script to the client when the latest interaction script is successfully verified, and render the latest interaction script by the client to generate an interaction video.
At present, the interactive video generation platform in China generally generates corresponding scripts in a unified way by the front end of a client after local editing and interaction and uploads the scripts to a script server, so that only one person can edit an interactive video at the same time. Under the conditions that the episode of the interactive video is not complex and the interactive points are not many, the editing of the interactive video can be independently completed by one person, but when the episode of the interactive video is more complex, the editing efficiency of the interactive video is low due to the condition that only one person can edit in the traditional scheme.
In order to realize the simultaneous online editing of interactive videos by multiple people, the technical scheme is improved.
Therefore, to further optimize the above-described embodiments,
the second script generating unit 602 is specifically configured to:
when the target interaction component is edited by using the interaction editing instruction, determining the target interaction component as a current interaction point, and acquiring a forced unlocking instruction of the current interaction point, which is sent by a client other than the client;
editing and unlocking the current interaction point based on the forced unlocking instruction;
acquiring a latest interaction editing instruction of the current interaction point, wherein the latest interaction editing instruction is sent by the client and/or the client sending the forced unlocking instruction;
and editing the target interaction assembly according to the latest interaction editing instruction, and determining an editing result obtained based on the latest editing instruction as the latest interaction script.
The invention divides the editing operations of adding, deleting, modifying and the like of different interactive components into different interactive editing instructions, when modifying a certain interactive point, only the interactive editing instruction of the part and the operated interactive component ID are needed to be sent to generate the corresponding latest interactive script, and the original interactive script is updated into the latest interactive script, therefore, the technical characteristic enables a plurality of people to edit online at the same time. As long as the same interactive point is not edited by multiple persons, the multiple interactive points can be completed by the cooperation of the multiple persons, and meanwhile, the invention can realize the parallel editing interaction. The interactive lock function in the invention can prompt the user that the current interactive video is being edited by other users at the current moment, and the other users can edit the same interactive point at the current moment with the current editing user by forcibly releasing the interactive lock through the forced unlocking instruction. If a plurality of persons edit the same interaction point at the same time, the editing result is subject to the latest editing.
It should be noted that, for concrete working principles of each component in the client and the script server, please refer to the corresponding part of the method embodiment, which is not described herein again.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A generation method of an interactive video is applied to a client, and comprises the following steps:
decoupling the interactive layer from the video layer;
when visual interactive editing is carried out on the interactive layer, an interactive editing instruction for editing a target interactive component is generated based on an interactive script, wherein the interactive script is used for describing interactive elements and is obtained based on video source data;
sending the interactive editing instruction and the target interactive component ID to a script server, generating a latest interactive script by the script server based on the interactive editing instruction and the target interactive component ID, and checking the correctness of the latest interactive script;
acquiring the latest interaction script, and sending the latest interaction script after the latest interaction script is successfully verified by the script server;
and rendering the latest interactive script to generate an interactive video.
2. The generation method of claim 1, wherein the generation process of the interactive script comprises:
acquiring the video source data;
generating a script address based on the video source data, and sending the script address to the script server;
and acquiring the interaction script which is returned by the script server and corresponds to the script address.
3. The generation method according to claim 2, wherein the acquiring the video source data specifically includes:
sending a video information request to an authentication server, wherein the video information request carries a video ID;
acquiring video data information returned by the authentication server, wherein the video data information is sent after the authentication server successfully authenticates the video information request;
requesting video source data from a video source server based on the video data information;
and acquiring the video source data returned by the video source server.
4. A method for generating an interactive video, which is applied to a script server, comprises the following steps:
the method comprises the steps of obtaining an interactive editing instruction and a target interactive component ID sent by a client, wherein the interactive editing instruction is generated for editing a target interactive component based on an interactive script when the client carries out visual interactive editing on an interactive layer, the interactive script is description of interactive elements and is obtained based on video source data, and the interactive layer and the video layer are decoupled;
generating a latest interaction script based on the interaction editing instruction and the target interaction component ID;
checking the correctness of the latest interaction script;
and when the latest interaction script is successfully verified, sending the latest interaction script to the client, and rendering the latest interaction script by the client to generate an interaction video.
5. The generation method according to claim 4, wherein the generating a latest interaction script based on the interaction editing instruction and the target interaction component ID specifically includes:
when the target interaction component is edited by using the interaction editing instruction, determining the target interaction component as a current interaction point, and acquiring a forced unlocking instruction of the current interaction point, which is sent by a client other than the client;
editing and unlocking the current interaction point based on the forced unlocking instruction;
acquiring a latest interaction editing instruction of the current interaction point, wherein the latest interaction editing instruction is sent by the client and/or the client sending the forced unlocking instruction;
and editing the target interaction assembly according to the latest interaction editing instruction, and determining an editing result obtained based on the latest editing instruction as the latest interaction script.
6. A client, comprising:
the decoupling unit is used for decoupling the interactive layer from the video layer;
the instruction generating unit is used for generating an interactive editing instruction for editing a target interactive component based on an interactive script when the interactive layer is subjected to visual interactive editing, wherein the interactive script is used for describing interactive elements and is obtained based on video source data;
the sending unit is used for sending the interactive editing instruction and the target interactive component ID to a script server, the script server generates a latest interactive script based on the interactive editing instruction and the target interactive component ID, and the correctness of the latest interactive script is checked;
the script acquisition unit is used for acquiring the latest interaction script, and the latest interaction script is transmitted after being successfully verified by the script server;
and the script rendering unit is used for rendering the latest interactive script to generate an interactive video.
7. The client of claim 6, further comprising:
the first script generation unit is used for generating the interaction script;
the first script generation unit specifically includes:
the data acquisition subunit is used for acquiring the video source data;
the script address generating subunit is used for generating a script address based on the video source data and sending the script address to the script server;
and the script acquisition subunit is used for acquiring the interaction script which is returned by the script server and corresponds to the script address.
8. The client according to claim 7, wherein the data obtaining subunit is specifically configured to:
sending a video information request to an authentication server, wherein the video information request carries a video ID;
acquiring video data information returned by the authentication server, wherein the video data information is sent after the authentication server successfully authenticates the video information request;
requesting video source data from a video source server based on the video data information;
and acquiring the video source data returned by the video source server.
9. A script server, comprising:
the interactive information acquisition unit is used for acquiring an interactive editing instruction and a target interactive component ID which are sent by a client, wherein the interactive editing instruction is generated for editing the target interactive component based on an interactive script when the client performs visual interactive editing on an interactive layer, the interactive script is used for describing interactive elements and is obtained based on video source data, and the interactive layer and the video layer are decoupled;
the second script generation unit is used for generating a latest interaction script based on the interaction editing instruction and the ID of the target interaction component;
the checking unit is used for checking the correctness of the latest interaction script;
and the script sending unit is used for sending the latest interaction script to the client when the latest interaction script is successfully verified, and rendering the latest interaction script by the client to generate an interaction video.
10. The script server according to claim 9, wherein the second script generation unit is specifically configured to:
when the target interaction component is edited by using the interaction editing instruction, determining the target interaction component as a current interaction point, and acquiring a forced unlocking instruction of the current interaction point, which is sent by a client other than the client;
editing and unlocking the current interaction point based on the forced unlocking instruction;
acquiring a latest interaction editing instruction of the current interaction point, wherein the latest interaction editing instruction is sent by the client and/or the client sending the forced unlocking instruction;
and editing the target interaction assembly according to the latest interaction editing instruction, and determining an editing result obtained based on the latest editing instruction as the latest interaction script.
CN202111220724.3A 2021-10-20 2021-10-20 Interactive video generation method, client and script server Active CN113973218B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111220724.3A CN113973218B (en) 2021-10-20 2021-10-20 Interactive video generation method, client and script server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111220724.3A CN113973218B (en) 2021-10-20 2021-10-20 Interactive video generation method, client and script server

Publications (2)

Publication Number Publication Date
CN113973218A true CN113973218A (en) 2022-01-25
CN113973218B CN113973218B (en) 2024-04-30

Family

ID=79587946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111220724.3A Active CN113973218B (en) 2021-10-20 2021-10-20 Interactive video generation method, client and script server

Country Status (1)

Country Link
CN (1) CN113973218B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980373A (en) * 2005-12-01 2007-06-13 天津标帜科技有限公司 Composition type interacting video-performance system
CN110536155A (en) * 2019-09-09 2019-12-03 北京为快科技有限公司 A kind of method and device improving VR video interactive efficiency
US20200154060A1 (en) * 2017-06-19 2020-05-14 Mykhailo Hennadiiovych KOVSHOV Automated system for creating, processing and generating videos
CN111459836A (en) * 2020-04-16 2020-07-28 大连即时智能科技有限公司 Conversation strategy configuration method and conversation system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980373A (en) * 2005-12-01 2007-06-13 天津标帜科技有限公司 Composition type interacting video-performance system
US20200154060A1 (en) * 2017-06-19 2020-05-14 Mykhailo Hennadiiovych KOVSHOV Automated system for creating, processing and generating videos
CN110536155A (en) * 2019-09-09 2019-12-03 北京为快科技有限公司 A kind of method and device improving VR video interactive efficiency
CN111459836A (en) * 2020-04-16 2020-07-28 大连即时智能科技有限公司 Conversation strategy configuration method and conversation system

Also Published As

Publication number Publication date
CN113973218B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
CN110535660B (en) Evidence obtaining service system based on block chain
CN111475757B (en) Page updating method and device
US11102206B2 (en) Methods and apparatus for establishing shared memory spaces for data access and distribution
US9971901B2 (en) Content management apparatus and content management method
CN110663040A (en) Method and system for securely embedding a dashboard into a content management system
WO2017084290A1 (en) Public account two-dimensional code generation method and server, and public account following method, server and terminal
US20140165156A1 (en) Using a session continuity token to access an online content management system
EA007778B1 (en) Application generator
US20170324570A1 (en) Group management method, apparatus, and system
CN111143207B (en) Method for checking model training notice and training log at mobile terminal
CN105741121B (en) It is a kind of based on entry reference product traceability information write and storage method
CN111651418B (en) Document content downloading method and device, computer equipment and storage medium
CN105740047A (en) Cloud computing based virtual machine template management system and method
CN110636057A (en) Application access method and device and computer readable storage medium
CN113010328A (en) Information sharing method and device, terminal equipment and storage medium
CN110458445B (en) Passenger information publishing management system
CN113129008B (en) Data processing method, device, computer readable medium and electronic equipment
JP2008117220A (en) User management system, user management program and user management method
CN113973218B (en) Interactive video generation method, client and script server
CN117235400A (en) Unified multi-platform portal system based on Kafka technology
CN113420133B (en) Session processing method, device, equipment and storage medium
CN114491210A (en) Data acquisition method and device based on web crawler
CN115237394A (en) Application program development method and device, electronic equipment and readable medium
CN110134530B (en) Session content processing method and device
CN113986327A (en) Applet management method, device, third-party platform and storage medium

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