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

Interactive video generation method, client and script server Download PDF

Info

Publication number
CN113973218B
CN113973218B CN202111220724.3A CN202111220724A CN113973218B CN 113973218 B CN113973218 B CN 113973218B CN 202111220724 A CN202111220724 A CN 202111220724A CN 113973218 B CN113973218 B CN 113973218B
Authority
CN
China
Prior art keywords
interactive
script
interaction
video
editing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111220724.3A
Other languages
Chinese (zh)
Other versions
CN113973218A (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

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)
  • Social Psychology (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Television Signal Processing For Recording (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a generation method of an interactive video, a client and a script server, wherein an interactive layer is decoupled 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 the interactive script, the interactive editing instruction and a target interactive component ID are sent to the script server to generate a latest interactive script, correctness verification is carried out on the latest interactive script, and the client renders the latest interactive script which passes verification to generate the interactive video. According to the invention, the interactive script is a description of the interactive elements, the interactive layer and the video layer are decoupled, so that visual interactive editing is carried out on the interactive layer, the interactive elements are carried 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 fragment does not need to be manufactured again, and the cost of manpower and material resources is saved.

Description

Interactive video generation method, client and script server
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method for generating an interactive video, a client, and a script server.
Background
Unlike the passive receiving form of the traditional video, the interactive video means that the viewer can participate in the scenario, and the viewer changes the scenario trend and the picture display in the interactive video by operating the interactive component and the interactive element in the interactive video, so that the viewer is immersed in the scenario.
At present, the technology for generating the interactive video in China mainly adopts special customization, namely, the deep customization development is independently carried out on each interactive video. Because some interactive elements are directly pressed in the video content in the interactive video developed by the depth customization, a problem is caused, if the interactive elements are changed or the interactive content (such as text, pictures and the like) needs to be modified, the interactive video segment needs to be re-manufactured, and then uploaded, transcoded and replaced by the modified interactive video, so that a great deal of labor and material costs are required.
Disclosure of Invention
In view of this, the invention discloses a method, a client and a script server for generating an interactive video, so as to realize that when an interactive element is changed or an interactive content needs to be modified, the corresponding interactive video fragment does not need to be reproduced.
The generation method of the 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, generating an interactive editing instruction for editing a target interactive component based on an interactive script, wherein the interactive script is a description of interactive elements and is obtained based on video source data;
The interactive editing instruction and the target interactive component ID are sent 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 correctness checking is carried out on the latest interactive script;
Acquiring the latest interaction script, and sending the latest interaction script after the latest interaction script is checked successfully by the script server;
and rendering the latest interaction script to generate an interaction 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 corresponding to the script address returned by the script server.
Optionally, the acquiring the video source data specifically includes:
Transmitting 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, and transmitting the video data information 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 generation method of the interactive video is applied to a script server, and comprises the following steps:
The method comprises the steps that an interactive editing instruction and a target interactive component ID (identity) sent by a client are obtained, when the interactive editing instruction is subjected to visual interactive editing by the client on an interactive layer, an interactive script for editing a target interactive component is generated, the interactive script is a 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;
Performing correctness checking on the latest interaction script;
And when the latest interaction script is successfully checked, the latest interaction script is sent to the client, and the client renders the latest interaction script to generate an interaction video.
Optionally, the generating the 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 utilizing the interaction editing instruction, determining the target interaction component as a current interaction point, and acquiring a forced unlocking instruction which is sent by a client side except the client side and is used for the current interaction point;
Editing and unlocking the current interaction point based on the forced unlocking instruction;
Acquiring a latest interaction editing instruction for the current interaction point, wherein the latest interaction editing instruction is sent by the client and/or a 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 interaction editing instruction as the latest interaction script.
A client, comprising:
the decoupling unit is used for decoupling the interaction layer from the video layer;
the instruction generation unit is used for generating an interactive editing instruction for editing the target interactive component based on an interactive script when visual interactive editing is carried out on the interactive layer, wherein the interactive script is a description of 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, 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 script acquisition unit is used for acquiring the latest interaction script, and the latest interaction script is sent after being checked successfully by the script server;
and the script rendering unit is used for rendering the latest interaction script to generate an interaction video.
Optionally, the method further comprises:
the first script generation unit is used for generating the interaction script;
The first script generation unit specifically includes:
A data acquisition subunit, configured to acquire the video source data;
A script address generation subunit, configured to generate a script address based on the video source data, and send the script address to the script server;
and the script acquisition subunit is used for acquiring the interaction script corresponding to the script address returned by the script server.
Optionally, the data acquisition subunit is specifically configured to:
Transmitting 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, and transmitting the video data information 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, wherein the interactive editing instruction is transmitted by a client, when the client performs visual interactive editing on an interactive layer, the interactive editing instruction is used for editing a target interactive component based on an interactive script, the interactive script is a description of 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 an up-to-date interaction script based on the interaction editing instruction and the target interaction component ID;
The verification unit is used for verifying 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 checked, 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 utilizing the interaction editing instruction, determining the target interaction component as a current interaction point, and acquiring a forced unlocking instruction which is sent by a client side except the client side and is used for the current interaction point;
Editing and unlocking the current interaction point based on the forced unlocking instruction;
Acquiring a latest interaction editing instruction for the current interaction point, wherein the latest interaction editing instruction is sent by the client and/or a 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 interaction editing instruction as the latest interaction script.
According to the technical scheme, after the interaction layer and the video layer are decoupled, when visual interaction editing is carried out on the interaction layer, an interaction editing instruction for editing a target interaction component is generated based on the interaction script, the interaction editing instruction and the target interaction component ID are sent to the script server, the script server generates the latest interaction script based on the interaction editing instruction and the target interaction component ID, correctness verification is carried out on the latest interaction script, and the client carries out rendering on the latest interaction script which passes verification to generate the interaction video. According to the invention, the interactive script is a description of the interactive elements, and the interactive layer and the video layer are decoupled, so that the visual interactive editing is carried out on the interactive layer, and the interactive elements are carried 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, and the corresponding interactive video segments do not need to be manufactured again, so that the labor and material 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 that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the disclosed drawings without inventive effort for a person skilled in the art.
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 obtaining video source data according to an embodiment of the present invention;
FIG. 4 is a timing diagram of 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 following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention discloses a generation method of an interactive video, a client and a script server, wherein after an interactive layer is decoupled 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, 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, correctness verification is carried out on the latest interactive script, and the client renders the latest interactive script which passes verification to generate the interactive video. According to the invention, the interactive script is a description of the interactive elements, and the interactive layer and the video layer are decoupled, so that the visual interactive editing is carried out on the interactive layer, and the interactive elements are carried 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, and the corresponding interactive video segments do not need to be manufactured again, so that the labor and material 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 according to an embodiment of the present invention is disclosed, where the method is applied to a client, and the method includes:
step S101, decoupling an interaction layer and a video layer;
in the invention, the interactive layer is realized by overlapping canvas layers and Iframes and other DOM elements in a multilayer manner. The video layer supports the assembly of segmented video in a branching context 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: editing the context graph and the interaction event track.
In practical application, a single chorogram node can bind a branch video, and the video can be repeatedly bound, so that the video can be conveniently reused. Interaction events can be added to the video corresponding to the single context graph node, and a plurality of interaction events can be added to the single context graph node.
Step S102, when visual interactive editing is carried out on the interactive layer, generating an interactive editing instruction for editing a target interactive component based on an interactive script;
the interactive script is a description of the interactive elements and is obtained based on video source data.
In this embodiment, the interaction is defined as various interaction components (such as a countdown component, a role switching component, a breaking component, a custom component, and a plug-in component), and then each interaction component is split into various interaction editing instructions, and editing of the corresponding interaction component can be achieved 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 component in this embodiment is: and when the user performs video interaction, the interaction component corresponds to the interaction content.
Step S103, the interactive editing instruction and the target interactive component ID are sent 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 correctness verification is carried out on the latest interactive script;
the content for verifying the correctness of the latest interaction script includes, but is not limited to: whether the latest interaction script meets the specification of the interaction script.
In this embodiment, only after the verification of the latest interaction script is successful (i.e. the correctness verification is passed), the script server returns the latest interaction script to the client, otherwise returns the prompt message of failure of the verification of the latest interaction script to the client.
Step S104, obtaining the latest interaction script;
And the latest interaction script is sent after the script server checks the latest interaction script successfully.
And step 105, rendering the latest interaction script to generate an interaction video.
In this embodiment, after the client receives the latest interaction script returned by the script server, the client renders the latest interaction script to generate an interaction video, thereby completing the video interaction.
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 is characterized in that after an interactive layer is decoupled from a video layer, 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, the script server generates a latest interactive script based on the interactive editing instruction and the target interactive component ID, correctness verification is performed on the latest interactive script, and a client renders the latest interactive script which passes verification to generate the interactive video. According to the invention, the interactive script is a description of the interactive elements, and the interactive layer and the video layer are decoupled, so that the visual interactive editing is carried out on the interactive layer, and the interactive elements are carried 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, and the corresponding interactive video segments do not need to be manufactured again, so that the labor and material cost is saved, and the generation efficiency of the interactive video is greatly improved.
In order to further optimize the above embodiments, referring to fig. 2, a flowchart of a method for generating an interaction script according to an embodiment of the present invention, that is, a generating process of an interaction script used in step S102, the generating method includes:
step S201, obtaining video source data;
The video source data in this embodiment includes: video source information such as video address, routing address, etc.
Step S202, generating a script address based on the video source data, and sending the script address to a script server;
step S203, an interactive script corresponding to the script address returned by the script server is obtained.
After the script server obtains the script address, the corresponding interactive script can be found according to the script address, and the interactive script is returned to the client.
In order to further optimize the foregoing 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, a video information request is sent to an authentication server;
The video information request carries a video ID, and the video information request may also carry other information, such as user login information, operation authority, and the like, in addition to the video ID.
Step S302, obtaining video data information returned by the authentication server;
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 checking the user login information, and checking the operation authority of the user for the user which passes the check and successfully logs in, so as to determine whether the user has the operation authority of the video corresponding to the video ID, wherein the user can acquire the corresponding video data information only if the user has the corresponding operation authority.
The video data information includes: video ID, video syndication information, video name, video thumbnail, video sharpness, etc.
Step S303, requesting video source data from a video source server based on the video data information;
Step S304, the video source data returned by the video source server are obtained.
Because the video data information carries the video ID, the video source server can acquire corresponding video source data based on the video data information.
In order to facilitate understanding of the interactive video generation process, referring to fig. 4, a timing chart of an interactive video generation method disclosed in an embodiment of the present invention, hardware involved in the whole process includes: 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;
The client requests video source data from the 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 the 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 decoupling the interactive layer and the video layer, the client generates an interactive editing instruction for editing the target interactive component based on the interactive script when the client performs visual editing on the interactive layer, and sends the interactive editing instruction and the target interactive component ID to the script server;
the script server generates the latest interaction script based on the interaction editing instruction and the target interaction component ID (the process comprises the steps of analyzing the interaction editing instruction), and performs correctness check on the latest interaction script;
the client requests the latest interaction script from the script server, and when the correctness of the latest interaction script passes the verification, the script server returns the latest interaction script to the client;
and the client renders the latest interaction script to generate the interaction video.
In summary, the invention discloses a method for generating an interactive video, because an interactive script is a description of interactive elements, the interactive video generation method can lead the interactive elements to be borne on the interactive layer and be overlapped on video contents by decoupling the interactive layer from the video layer and performing visual interactive editing on the interactive layer, therefore, when the interactive elements are changed or the interactive contents need to be modified, only the interactive elements on the interactive layer need to be modified, and the corresponding interactive video segments do not need to be manufactured again, thereby saving the cost of manpower and material resources and greatly improving the generation efficiency of the interactive video.
Corresponding to the above method embodiment, referring to fig. 5, another flowchart of a method for generating an interactive video disclosed in the embodiment of the present invention is applied to a script server, where the method includes:
step S401, an interactive editing instruction and a target interactive component ID sent by a client are obtained;
When the client performs visual interactive editing on the interactive layer, the interactive editing instruction is used for editing a target interactive component based on an interactive script, the interactive script is a description of interactive elements and is obtained based on video source data, and the interactive layer and the video layer are decoupled, and the detailed description is shown in the corresponding part of the embodiment shown in fig. 1.
Step S402, generating an up-to-date interaction script based on the interaction editing instruction and the target interaction component ID;
Step S403, checking the correctness of the latest interaction script;
and step S404, when the verification of the latest interaction script is successful, the latest interaction script is sent to the client, and the client renders the latest interaction script 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 the specific working principle of each step is referred to the corresponding portion of the embodiment shown in fig. 1, which is not repeated here.
At present, a domestic interactive video generation platform generally generates corresponding scripts uniformly by the front end of a client after local editing and interaction, and uploads the corresponding scripts to a script server, so that only one person can edit one 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 interactive video editing can be completed by one person alone, but when the episode of the interactive video is complex, the condition that only one person can edit in the traditional scheme can lead to low editing efficiency of the interactive video.
In order to realize simultaneous online editing of interactive videos by multiple people, the technical scheme is improved.
Thus, to further optimize the above embodiment, step S102 may specifically include:
(1) When editing a target interaction component by utilizing an interaction editing instruction, determining the target interaction component as a current interaction point, and acquiring a forced unlocking instruction which is sent by a client outside the client and is used for the current interaction point;
(2) Editing and unlocking the current interaction point based on the forced unlocking instruction;
(3) Acquiring a latest interaction editing instruction for the current interaction point, wherein the latest interaction editing instruction is sent by the client and/or a 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, suppose 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 (i.e. the client A) and locks the interaction point 1;
The client B enters an interaction point 1, shows a viewing mode of the interaction point 1, and decides whether to display the unlocking interaction point 1 according to editing permission;
The client B enters the interaction point 2 and displays 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.
The client B clicks the forced unlocking button of the interaction point 1, so that the client B can also enter an editing mode, at the moment, the client A and the client B can edit the interaction point 1 at the same time, and the script server determines an editing result obtained by the latest editing instruction as the latest interaction script.
And the interactive editing interface of the client is exited, or the client is closed, and then an exiting editing instruction is sent to the script server after a preset time period, and both the client A and the client B are automatically unlocked.
According to the invention, editing operations such as adding, deleting and modifying different interactive components are split into different interactive editing instructions, when a certain interactive point is modified, a corresponding latest interactive script can be generated by only sending the interactive editing instruction of the part and the interactive component ID of the operation, and the original interactive script is updated to the latest interactive script, so that the technical characteristics enable online editing of multiple persons simultaneously. As long as the editing of multiple persons is not the same interaction point, the multiple persons can cooperate to complete multiple interaction points, and meanwhile, the invention can realize 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 with the current user at the current moment by forcibly releasing the interactive lock by the forced unlocking instruction. If a plurality of people are editing the same interaction point at the same time, the editing result is subject to the latest.
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 an embodiment of the present invention, the client includes:
a decoupling unit 501, configured to decouple the interaction layer from the video layer;
in the invention, the interactive layer is realized by overlapping canvas layers and Iframes and other DOM elements in a multilayer manner. The video layer supports the assembly of segmented video in a branching context or event configuration.
The instruction generating unit 502 is configured to generate, when performing visual interactive editing on the interactive layer, an interactive editing instruction for editing a target interactive component based on an interactive script, where the interactive script is a description of an interactive element and is obtained based on video source data;
the interactive script is a description of the interactive elements and is obtained based on video source data.
In this embodiment, the interaction is defined as various interaction components (such as a countdown component, a role switching component, a breaking component, a custom component, and a plug-in component), and then each interaction component is split into various interaction editing instructions, and editing of the corresponding interaction component can be achieved 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 component in this embodiment is: and when the user performs video interaction, the interaction component corresponds to the interaction content.
A sending unit 503, configured to send the interactive editing instruction and the target interactive component ID to a script server, generate, by the script server, a latest interactive script based on the interactive editing instruction and the target interactive component ID, and perform correctness checking on the latest interactive script;
the content for verifying the correctness of the latest interaction script includes, but is not limited to: whether the latest interaction script meets the specification of the interaction script.
In this embodiment, only after the verification of the latest interaction script is successful (i.e. the correctness verification is passed), the script server returns the latest interaction script to the client, otherwise returns the prompt message of failure of the verification of the latest interaction script to the client.
A script obtaining unit 504, configured to obtain the latest interaction script, where the latest interaction script is sent after being checked successfully by the script server;
And the script rendering unit 505 is used for rendering the latest interaction script to generate an interaction video.
In this embodiment, after the client receives the latest interaction script returned by the script server, the client renders the latest interaction script to generate an interaction video, thereby completing the video interaction.
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 decoupling an interactive layer from a video layer, when visual interactive editing is performed on the interactive layer, generating an interactive editing instruction for editing a target interactive component based on an interactive script, sending the interactive editing instruction and the target interactive component ID to a script server, generating a latest interactive script based on the interactive editing instruction and the target interactive component ID by the script server, checking the correctness of the latest interactive script, and rendering the latest interactive script which passes the checking by the client to generate an interactive video. According to the invention, the interactive script is a description of the interactive elements, and the interactive layer and the video layer are decoupled, so that the visual interactive editing is carried out on the interactive layer, and the interactive elements are carried 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, and the corresponding interactive video segments do not need to be manufactured again, so that the labor and material 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 interaction script.
Thus, the client may further comprise: and the first script generation unit is used for generating the interaction script.
The first script generation unit specifically includes:
A data acquisition subunit, configured to acquire the video source data;
A script address generation subunit, configured to generate a script address based on the video source data, and send the script address to the script server;
and the script acquisition subunit is used for acquiring the interaction script corresponding to the script address returned by the script server.
The video source data in this embodiment includes: video source information such as video address, routing address, etc.
In this embodiment, the data acquisition subunit may specifically be configured to:
Transmitting 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, and transmitting the video data information 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 may also carry other information, such as user login information, operation authority, and the like, in addition to the video ID.
The video data information includes: video ID, video syndication information, video name, video thumbnail, video sharpness, etc.
In order to further optimize the foregoing embodiments, referring to fig. 7, a structural schematic diagram of a script server according to an embodiment of the present invention is disclosed, where the script server includes:
The interactive information obtaining unit 601 is configured to obtain an interactive editing instruction and a target interactive component ID sent by a client, where the interactive editing instruction is used to edit a target interactive component based on an interactive script when the client performs visual interactive editing on an interactive layer, the interactive script is a description of an interactive element and is obtained based on video source data, and the interactive layer and the video layer are decoupled;
A second script generating unit 602, configured to generate an latest interaction script based on the interaction editing instruction and the target interaction component ID;
A verification unit 603, configured to perform correctness verification on the latest interaction script;
And the script sending unit 604 is configured to send the latest interaction script to the client when the latest interaction script is successfully verified, and the client renders the latest interaction script to generate an interactive video.
At present, a domestic interactive video generation platform generally generates corresponding scripts uniformly by the front end of a client after local editing and interaction, and uploads the corresponding scripts to a script server, so that only one person can edit one 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 interactive video editing can be completed by one person alone, but when the episode of the interactive video is complex, the condition that only one person can edit in the traditional scheme can lead to low editing efficiency of the interactive video.
In order to realize simultaneous online editing of interactive videos by multiple people, the technical scheme is improved.
Therefore, in order to further optimize the above embodiment,
The second script generating unit 602 is specifically configured to:
When the target interaction component is edited by utilizing the interaction editing instruction, determining the target interaction component as a current interaction point, and acquiring a forced unlocking instruction which is sent by a client side except the client side and is used for the current interaction point;
Editing and unlocking the current interaction point based on the forced unlocking instruction;
Acquiring a latest interaction editing instruction for the current interaction point, wherein the latest interaction editing instruction is sent by the client and/or a 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 interaction editing instruction as the latest interaction script.
According to the invention, editing operations such as adding, deleting and modifying different interactive components are split into different interactive editing instructions, when a certain interactive point is modified, a corresponding latest interactive script can be generated by only sending the interactive editing instruction of the part and the interactive component ID of the operation, and the original interactive script is updated to the latest interactive script, so that the technical characteristics enable online editing of multiple persons simultaneously. As long as the editing of multiple persons is not the same interaction point, the multiple persons can cooperate to complete multiple interaction points, and meanwhile, the invention can realize 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 with the current user at the current moment by forcibly releasing the interactive lock by the forced unlocking instruction. If a plurality of people are editing the same interaction point at the same time, the editing result is subject to the latest.
It should be noted that, for specific working principles of each component in the client and the script server, please refer to the corresponding portion of the method embodiment, and no further description is given here.
Finally, it is further noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer 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. The method for generating the interactive video is characterized by being 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, generating an interactive editing instruction for editing a target interactive component based on an interactive script, wherein the interactive script is a description of interactive elements and is obtained based on video source data;
The interactive editing instruction and the target interactive component ID are sent 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 correctness checking is carried out on the latest interactive script;
Acquiring the latest interaction script, and sending the latest interaction script after the latest interaction script is checked successfully by the script server;
and rendering the latest interaction script to generate an interaction video.
2. The method according to claim 1, wherein the generating 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 corresponding to the script address returned by the script server.
3. The method according to claim 2, wherein the obtaining the video source data specifically includes:
Transmitting 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, and transmitting the video data information 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. The method for generating the interactive video is characterized by being applied to a script server, and comprises the following steps:
The method comprises the steps that an interactive editing instruction and a target interactive component ID (identity) sent by a client are obtained, when the interactive editing instruction is subjected to visual interactive editing by the client on an interactive layer, an interactive script for editing a target interactive component is generated, the interactive script is a 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;
Performing correctness checking on the latest interaction script;
And when the latest interaction script is successfully checked, the latest interaction script is sent to the client, and the client renders the latest interaction script to generate an interaction video.
5. The method according to claim 4, wherein generating the latest interaction script based on the interaction editing instruction and the target interaction component ID specifically comprises:
When the target interaction component is edited by utilizing the interaction editing instruction, determining the target interaction component as a current interaction point, and acquiring a forced unlocking instruction which is sent by a client side except the client side and is used for the current interaction point;
Editing and unlocking the current interaction point based on the forced unlocking instruction;
Acquiring a latest interaction editing instruction for the current interaction point, wherein the latest interaction editing instruction is sent by the client and/or a client sending the forced unlocking instruction;
Editing the target interaction assembly according to the latest interaction editing instruction, and determining an editing result obtained based on the latest interaction editing instruction as the latest interaction script.
6. A client, comprising:
the decoupling unit is used for decoupling the interaction layer from the video layer;
the instruction generation unit is used for generating an interactive editing instruction for editing the target interactive component based on an interactive script when visual interactive editing is carried out on the interactive layer, wherein the interactive script is a description of 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, 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 script acquisition unit is used for acquiring the latest interaction script, and the latest interaction script is sent after being checked successfully by the script server;
and the script rendering unit is used for rendering the latest interaction script to generate an interaction 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:
A data acquisition subunit, configured to acquire the video source data;
A script address generation subunit, configured to generate a script address based on the video source data, and send the script address to the script server;
and the script acquisition subunit is used for acquiring the interaction script corresponding to the script address returned by the script server.
8. The client of claim 7, wherein the data acquisition subunit is specifically configured to:
Transmitting 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, and transmitting the video data information 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, wherein the interactive editing instruction is transmitted by a client, when the client performs visual interactive editing on an interactive layer, the interactive editing instruction is used for editing a target interactive component based on an interactive script, the interactive script is a description of 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 an up-to-date interaction script based on the interaction editing instruction and the target interaction component ID;
The verification unit is used for verifying 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 checked, and rendering the latest interaction script by the client to generate an interaction video.
10. The script server of claim 9, wherein the second script generation unit is specifically configured to:
When the target interaction component is edited by utilizing the interaction editing instruction, determining the target interaction component as a current interaction point, and acquiring a forced unlocking instruction which is sent by a client side except the client side and is used for the current interaction point;
Editing and unlocking the current interaction point based on the forced unlocking instruction;
Acquiring a latest interaction editing instruction for the current interaction point, wherein the latest interaction editing instruction is sent by the client and/or a client sending the forced unlocking instruction;
Editing the target interaction assembly according to the latest interaction editing instruction, and determining an editing result obtained based on the latest interaction 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 CN113973218A (en) 2022-01-25
CN113973218B true 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 (3)

* 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
CN111459836A (en) * 2020-04-16 2020-07-28 大连即时智能科技有限公司 Conversation strategy configuration method and conversation system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
UA121608U (en) * 2017-06-19 2017-12-11 Михайло Геннадійович Ковшов AUTOMATED SYSTEM FOR MAKING, PROCESSING AND GENERATION OF VIDEOS

Patent Citations (3)

* 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
CN111459836A (en) * 2020-04-16 2020-07-28 大连即时智能科技有限公司 Conversation strategy configuration method and conversation system

Also Published As

Publication number Publication date
CN113973218A (en) 2022-01-25

Similar Documents

Publication Publication Date Title
CN110535660B (en) Evidence obtaining service system based on block chain
JP6985576B2 (en) Business process systems, business data processing methods and equipment
CN109471865B (en) Offline data management method, system, server and storage medium
AU2014346473B2 (en) Document management and collaboration system
US8266214B2 (en) System and method for collaborative web-based multimedia layered platform with recording and selective playback of content
US8214395B2 (en) Tracking and editing a resource in a real-time collaborative session
US11102206B2 (en) Methods and apparatus for establishing shared memory spaces for data access and distribution
WO2017084290A1 (en) Public account two-dimensional code generation method and server, and public account following method, server and terminal
WO2001099388A2 (en) Digital signature system and method
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
CN110636057B (en) Application access method and device and computer readable storage medium
CN101089880A (en) Electronic signature method
US7562113B2 (en) Method and system for automatically creating and storing shortcuts to web sites/pages
US10944916B2 (en) Automated system for creating, processing and generating videos
KR20130011130A (en) Memo synchronization system, mobile system and memo synchronization method for synchronizing memo data
US9778919B2 (en) Dual context interaction with a content object for facilitating content creation and software development
Tasso et al. Federation of distributed and collaborative repositories and its application on science learning objects
JP2008117220A (en) User management system, user management program and user management method
CN113973218B (en) Interactive video generation method, client and script server
CN104954398A (en) Method and device for acquiring content
CN117235400A (en) Unified multi-platform portal system based on Kafka technology
CN117094857A (en) Online signing method, online signing device, electronic equipment, program product and medium
CN113420133B (en) Session processing method, device, equipment 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