Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment that the embodiment of the invention provides is following:
A kind of editor's player method of interdynamic video may further comprise the steps:
Import original video resource or existing interdynamic video script in advance;
Carrying out zone marker on the frame of said original video resource or on the frame of the original video of existing interdynamic video script correspondence, and adding the interdynamic video object related, generating the interdynamic video script with this zone marker;
When the frame at the interdynamic video script of playing said generation to said zone marker place, then showing said zone marker on the frame of said original video resource or on the frame of the corresponding original video of existing interdynamic video script;
When receiving the user, then show said interdynamic video object to the activation instruction of said zone marker.
The embodiment of the invention also provides a kind of editor's Play System of interdynamic video, comprising:
Import video unit, be used for importing in advance original video resource or existing interdynamic video script;
Interdynamic video script generation unit is used for carrying out zone marker on the frame of said original video resource or on the frame of the original video of existing interdynamic video script correspondence, and adds the interdynamic video object related with this zone marker, generates the interdynamic video script;
The zone marker display unit; When being used for the frame when the interdynamic video script of playing said generation to said zone marker place, then showing said zone marker on the frame of said original video resource or on the frame of the corresponding original video of existing interdynamic video script;
Interdynamic video object display unit is used for when receiving the user to the activation instruction of said zone marker, then showing said interdynamic video object.
The embodiment of the invention also provides a kind of e-learning equipment, and said e-learning equipment comprises above-mentioned system.
Below in conjunction with specific embodiment realization of the present invention is described in detail:
See also Fig. 1, the embodiment of the invention provides a kind of editor's player method of interdynamic video, may further comprise the steps:
In step S101, import original video resource or existing interdynamic video script in advance.
In embodiments of the present invention, also can directly import existing interdynamic video script, existing interdynamic video script is carried out zone marker again, this existing interdynamic video script is preserved behind the video editor inediting and is generated by the original video resource.
In embodiments of the present invention, the original video resource is meant all kinds of multimedia video frequency files that can play, like FLV, H.264/MPEG-4, and f4v; Resource essence is based on the frame data of time shaft, on the frame data of time shaft, can add interaction content.
In step S102; Carrying out zone marker on the frame of said original video resource or on the frame of the original video of existing interdynamic video script correspondence; And interpolation interdynamic video object (the Interactive Video Application related with this zone marker; Abbreviate ivapp as), generate the interdynamic video script.
As shown in Figure 7, locate to add the zone marker 701 of circle shape at the particular content " both " of original video resource, the shape of zone marker may be selected to be circle, square etc., is not limited to the present invention at this.
As shown in Figure 8; The interdynamic video object 801 that adds is associated with the zone marker 701 that adds; In the interdynamic video script playing process; Click on area mark 701 can be opened interdynamic video object 801 and show or play, and said interdynamic video object can be a kind of or combination arbitrarily in text, picture, music, sound, animation, recreation, the video, and the user also can be through clicking contents such as selecting or play wherein recreation, video.
In embodiments of the present invention, said video editor is specially the video editor with the actionscript language development, and it is one can edit, play the video editor like the video resource of forms such as flv, f4v.
See also Fig. 2, the video editor of the embodiment of the invention comprises:
Resource imports unit 201, is used for importing the original video resource in the server background data base or imports existing interdynamic video script in the background data base;
Video analysis unit 202 is used for analysiss of decoding of the original video resource that imports or existing interdynamic video script, obtains the information data of every frame in the original video of original video resource or existing interdynamic video script correspondence at least;
In an embodiment of the present invention; Video editor is installed on the server in the Internet; Be the interdynamic video editing platform that server opens to the public, and the original video resource that imports need in the background data base of this server, to preserve in advance, if the original video resource that does not have the user to import in the background data base; Then need to upload the original video resource voluntarily to background data base by the user; Open video editor again, import the unit through resource and import the original video resource uploaded to video editor, by the user interdynamic video script that completes is saved in the background data base then.
In the present invention implemented, the frame of video information that analyzes through video analysis unit 202 comprised that always total how many frames of video, the time point of each frame, visual content and this frame of each frame are key frame or normal frames.The effect of analyzing is in edition and interaction video scenario process, to carry out related to zone marker with certain or a plurality of continuous video frames; Promptly select certain zone marker will add on which or which continuous frame and show, related like this after the accurate demonstration time point of control area mark.
Edition and interaction video script unit 203; Be used for the frame of original video resource is carried out zone marker or the frame in the corresponding original video of existing interdynamic video script is carried out zone marker again; This zone marker is carried out interactive setup, and record in the interdynamic video script;
In the present invention implemented, edition and interaction video script unit 203 specifically comprised:
Mark module 2031 is used to create zone marker;
Editing area mark module 2032 is used to edit the attribute of mark module;
Edition and interaction object video module 2034 is used for the edition and interaction object video.
Memory cell 204 is used for storing the background data base of editing the back interdynamic video script that generates to said server.
See also Fig. 3, the step of the video editor edition and interaction video script of the employing embodiment of the invention is following:
S300: login video editing applicator platform imports original video resource or existing interdynamic video script;
S301: play the corresponding original video of original video resource or existing interdynamic video script;
S302: decoding is analyzed institute's displaying video and is obtained the data message of every frame in this video
S303: select institute's displaying video need carry out the frame (pause frame) of zone marker
S304: in pause frame, add single zone marker;
S305: in pause frame, add a plurality of zone markers;
S306: choose existing zone marker on the pause frame of this video resource;
S307: the attribute of editing area mark;
S308: in " edition and interaction object video module ", create the interdynamic video object, judge whether related this interdynamic video object of zone marker,,, then get into step S310 as if not related if association then gets into step S309;
S309: with zone marker and interdynamic video object associated;
S310: all edit operations are recorded in the interdynamic video script;
S311: judge whether to finish editor, or then get into step S312, then get into step S303 if not;
S312: finish editor, the interdynamic video script is saved in the background data base in the server;
S313: the zone marker that deletion is chosen.
In embodiments of the present invention, the backstage implementation procedure of edition and interaction video script is following:
At first from background data base, import to original video resource or the existing interdynamic video script that to make in the video editor, in video editor, play this original video or existing to the corresponding original video of moving video script.Obtain each frame of video information and definite frame of video (pause frame) of wanting the Adding Area mark according to video analysis then, on the frame of video progress bar, click and select this frame, then video editor switches to the video pictures of this frame.Next can on this frame picture, set up one or more zone markers; Said zone marker can be circle, shape such as square; And the attribute of this zone marker is set, whether the attribute of said zone marker comprises the title of this zone marker, color, shape, whether adds sound, carries out related to set up the relation of triggering with existing interdynamic video object.When zone marker association and interaction object video, the interdynamic video object can provide the information that is associated with zone marker place frame, supplies the user to expand study.When the not related interdynamic video object of zone marker, zone marker can cause that the people that watches video to certain any the attention on the video pictures, is equivalent to focussing force.
If also do not set up the interdynamic video object; Then can open interdynamic video object editing device creates; And can be in interdynamic video object editing device to interdynamic video object existing or that created edit, operation such as deletion; Said interdynamic video object can be one or more the combination in text, picture, music, sound, animation, recreation, the video, and the user also can be through clicking contents such as selecting or play wherein recreation, video.
If some zone markers of having set up before having on this frame of video (pause frame), then can on this frame of video, select zone marker and it is edited or deletion action.
Can also on frame of video, select interim the broadcast to carry out preview, so that the producer observes the making effect.
And then select other frame of video and repeat above-mentioned identical operations to add more zone marker and association and interaction object video.
Finish to preserve behind all operations background data base of interdynamic video script in the server at last to finish editing process.When using for web, the interdynamic video script can not be saved in this locality, on can only uploading onto the server, and does like this and is convenient to share the interdynamic video complete.Certainly, also can use in this locality.When using for web, the original video resource of required importing or existing interdynamic video script derive from the background data base in the server, otherwise in the background data base in need it being uploaded onto the server earlier.
In embodiments of the present invention; Zone marker is actually the demonstration container in the flash application; Such as Shape, Sprite etc., above-mentioned interpolation to zone marker, editor, deletion etc. are not real change original video codings to the operation of this container, but the original video in video editor and video player is play interpolation one deck zone marker display layer on the display layer when program initialization; The layer of this interpolation also is a demonstration container among the flash; Its size and position and video show container size and position consistency, can comprise a plurality of sub-containers (being zone marker), promptly in the zone marker display layer, make zone marker.
Zone marker and zone marker display layer, but all be the demonstration container of the instantiation that provides among the actionscript scripted code api.Wherein the method for Adding Area mark is different from the making of frame in the existing flash editing machine; It is not the content of real change original video frame; Promptly do not change the original video coding; Be not that the former encoded content of exerting video itself is edited, and the video editor of the embodiment of the invention is that script is edited, original video does not change.
In embodiments of the present invention, can come the various attributes of setting area mark through the video editor of the embodiment of the invention:
In the displaing coordinate attribute, when the setting area mark shows with respect to x, the y coordinate of father's container initial point;
Show in the size attribute length and width when the setting area mark shows;
Revise in the shape attribute, the display shape of setting area mark is like triangle, rectangle, circle, regular polygon etc.;
Revise in the color attribute, the fill color of setting area mark can be for colourless;
Revise in the transparency attribute transparency of setting area mark;
In the link interdynamic video object properties, select existing interdynamic video object to link setting, if the interdynamic video object that then need at interdynamic video object editing device inediting oneself not to have is provided with link again;
In the link audio attribute, the audio frequency that selection will link;
Be provided with in bloom (the Blume cognitive domain taxonomy of educational objectives method) attribute, the knowledge point is set.
Being provided with in the lifetime property, then is the single frames zone marker if life cycle is a frame; If greater than a frame then is the multiframe zone marker.Zone marker only is presented in the zone marker display layer in the life cycle of its setting, otherwise will be removed automatically by player or editing machine.
Be provided with in the movement locus attribute, can perhaps oneself come the setting area to be marked at the movement locus in its life cycle through recording movement locus through modes such as mouse drafting motion paths.
Relevant information with all settings after setting finishes all is saved in the interdynamic video script, and script is saved on the server so that be written into modification or broadcast later on once more.
In embodiments of the present invention; Said interdynamic video script is specially the script file of XML form, and the script file of said XML form comprises original video frame data, the interdynamic video script end mark that interdynamic video script coded format data, video metadata, script metadata, captions metadata, customize tag area data, interdynamic video frame data, ivapp data, video editor are analyzed.The frame data of the original video resource that said original video frame data refer to import in advance.
The concrete structure of said interdynamic video script and the function and usage of each structure are shown in table one:
Table one,
In step S103, when the frame at the interdynamic video script of playing said generation to said zone marker place, then showing said zone marker on the frame of said original video resource or on the frame of the corresponding original video of existing interdynamic video script;
In step S104, when receiving the user, then show said interdynamic video object to the activation instruction of zone marker.
In embodiments of the present invention, can play said interdynamic video script through video player.This video player is the video player with the actionscript language development, also is that a flash uses.The major function of this video player is to play the interdynamic video script of being made by video editor, and the interdynamic video script of promptly video editor being made that includes zone marker is resolved and play.
See also Fig. 4, the video player of the embodiment of the invention comprises:
Script imports unit 401, is used for importing the interdynamic video script that is stored to the background data base of said server behind the video editor inediting;
Interdynamic video script unit 402 is used for the interdynamic video script that imports is analyzed;
In embodiments of the present invention; Interdynamic video script unit 402 is that the xml parsing api that utilizes the actionscript script to provide resolves; Extract content recorded analysis in the script and be put in the internal memory; The code instanceization that customized label that basis parses in playing process then and property value carry out related content comprises the instantiation of the original video frame data that video metadata, script metadata, captions metadata, customize tag area data, interdynamic video frame data, ivapp data, video editor are analyzed.
Interdynamic video script broadcast unit 403 is used to play the interdynamic video script after the analysis, comprises interactive operation that original video resource content, zone marker and the interdynamic video object related with zone marker carry out etc.
In embodiments of the present invention, interdynamic video script broadcast unit 403 specifically comprises:
Video playback module 4031, what be used to receive the interdynamic video script calls and plays the original video resource;
Zone marker playing module 4032 is used for the play area mark;
Interdynamic video object playing module is used for playing the interdynamic video object related with zone marker that adds at said video editor.
Because the interdynamic video script has comprised the information (such as the URL address of original video resource in background data base) of original video resource, the zone marker that adds and the information of relative interdynamic video object; And video player is just carried out the interdynamic video script at the beginning, so the broadcast of original video resource is actually and is play by the existing player that can play the original video resource on the interdynamic video script calls user computer; In addition, the interdynamic video object related with zone marker comprises the resource of types such as text, picture, music, sound, animation, recreation, video, and the broadcast of these resources also is to be play by existing corresponding player on the user computer.
In an embodiment of the present invention; Video player is installed on the server in the Internet; It is the interdynamic video playing platform that server opens to the public; The user only needs the interdynamic video script in the background data base is imported this interdynamic video player, then can carry out the interdynamic video script, thereby plays original video resource, zone marker and the interdynamic video object related with zone marker.
See also Fig. 5, the step that video player is play the interdynamic video script is following:
S500: login video playback applicator platform is written into the interdynamic video script;
S501: carry out the interdynamic video script, call the said original video resource of player plays of the corresponding original video resource of interdynamic video script;
S502: judge whether to be played to interdynamic video frame (pause frame),, otherwise get into step S501 if then get into step S503;
S503: stop the broadcast of original video resource;
S504: go up this frame All Ranges mark of demonstration at current interdynamic video frame (pause frame), if flag activation instruction in region of acceptance then gets into S5051; If continue to play the original video resource, then get into S5052;
S5051: after accepting to be directed against the activation instruction of certain zone marker on the current interdynamic video frame, then get into the related interdynamic video object of S506 play area mark;
S5052: after accepting to play the instruction of original video resource, if judge whether the zone marker that is activated is in life cycle and then gets into S507; Then get into S508 if continue to play the original video resource;
S506: play the zone marker that is activated related interdynamic video object, carry out man-machine interaction after, get into S5052;
S507: judge that whether the zone marker that is activated is in the life cycle of self, if then get into S506, then gets into S508 if not;
S508: remove All Ranges mark in the current interdynamic video frame automatically, played in order original video resource then gets into S502 if judge whether to be played to the interdynamic video frame; Then get into S509 if finish the broadcast of source material;
S509: finish the broadcast of original video resource.
The concrete implementation procedure of playing the interdynamic video script is following:
Be written into and carry out the interdynamic video script in the video player at first in embodiments of the present invention, set up a timer simultaneously, the unlatching of this timer, suspend, stop with the unlatching of video, operation such as suspend, stop synchronously.
According to resolving this interdynamic video script, the time point of interdynamic video frame is set in the timer, the triggered time point of timer is set.If be played to the time point of interdynamic video frame; Then let timer become the triggering state and suspend original video and the broadcast of timer; The zone marker information that comprises according to this interdynamic video frame is then come the instantiation zone marker; And add it to zone marker and show that the attribute of its demonstration is consistent with the attribute of script logging in the container.The zone marker that show this moment then can instantiation be linked to interdynamic video object and demonstration behind the click zone marker as if being provided with link interdynamic video object in the demonstration life cycle of zone marker.
After this click and play original video; Then when being played to the next frame video; The zone marker of single frames is deleted from the zone marker container automatically by player and in internal memory, is destroyed, and its relevant interdynamic video object is also destroyed by the deletion back together, and the timer continuation is opened; Video player acquiescence stops during to first frame of multiframe zone marker when video playback automatically; Then zone marker continues demonstration and moves according to the track of in video editor, setting when other frame, if life cycle finishes then from the zone marker container, to be deleted automatically by video player and in internal memory, destroy.
All zone markers can carry out interactive operation during zone marker shows.In embodiments of the present invention; Can be through click or keyboard shortcut excitation area mark; The display window that ejects the interdynamic video object shows the interactive information page; This classes of pages is similar to webpage, and content displayed can be one or more the combination in text, picture, music, sound, animation, recreation, the video on the webpage.The user can carry out interactive operation to the interdynamic video object on the webpage.This interactive operation is undertaken by the corresponding player of interdynamic video script calls.Should be appreciated that the recreation, the video that show on the webpage described herein can be the file icon of game representation or video, can link to original recreation or original video through this document icon.
The zone marker that should be appreciated that said single frames refers to that this zone marker exists only in the frame, and promptly its life cycle is a frame; The zone marker of said multiframe refers to that this zone marker is present in the continuous multiframe, and its life cycle is a multiframe, and its track position in multiframe is determined by the track setting of video editor to zone marker.
In embodiments of the present invention, said when receiving the user to the activation instruction of zone marker, then show before the step of said interdynamic video object further comprising the steps of:
In video editor through ItrigSqr (
Interactive Trigger Square) setting area mark in advance, said zone marker is used to receive said user's activation instruction, and the association and interaction object video.Should be appreciated that in same frame it is the zone marker of single frames that one or more life cycles can be arranged, it is the zone marker of multiframe that life cycle also can be arranged.
In embodiments of the present invention, said when receiving the user to the activation instruction of zone marker, show that then the step of said interdynamic video object is specially:
When zone marker receives user's activation instruction, then suspend and play said original video resource;
The interdynamic video object that demonstration or play area mark are related.
In embodiments of the present invention, said interdynamic video object is an application window that covers on the present frame of said zone marker place.Be equivalent to Html in anchor point; And on the said application window content displayed be can with one or more the combination in the text of user interactions, picture, music, sound, animation, recreation, the video; Be to be understood that; The recreation that shows on the application window described herein, video can be the file icon of game representation or video, can link to original recreation or original video through this document icon.
In embodiments of the present invention, after the zone marker of setting is activated, corresponding interdynamic video object can occur, operate for the learner.Zone marker can be single frames or multiframe, in same frame, a plurality of zone markers can be arranged, and is equivalent to Href (Hyperlink Reference) or picture region link among the Http.
Zone marker can attach a sound, plays this sound when being activated automatically, is provided with during attribute that sound can be through setting area mark in video editor.
The triggering mode of zone marker can be provided with through video editor; Consider the demand of different product; Like PC, Ipad, Iphone, Gphone, HDTV etc.; Support distinct devices such as mouse, keyboard, remote control panel, touch-screen, can be corresponding through triggerings such as responding digital shortcut, tab key, cursor key, enter key, acknowledgement key, return key, Esc key, space bars.
Zone marker can for example, under computer running environment, show the keyboard shortcut that is provided with according to the different corresponding shortcuts that show of running environment, under TV running environment, shows the remote controller key that is provided with.
In embodiments of the present invention, zone marker all has life cycle.The life cycle of zone marker is meant that its start frame is to end frame.As far as the zone marker of single frames, this frame at zone marker place is exactly its life cycle.As far as the zone marker of multiframe, player shows and accepts user's activation manipulation according to shape, position or the path set in the life cycle of zone marker.
The frame that in embodiments of the present invention, will contain zone marker is interdynamic video frame (IVFrm, Interactive Video Frame) or pause frame.When video player proceeded to IVFrm, the one or more zone markers that comprised among the IVFrm were in life cycle; If the zone marker of single frames is wherein arranged, then force player to suspend, that is to say the time point that is played to single frames interdynamic video frame when video player, then let timer become the triggering state and suspend original video and the broadcast of timer; If wherein have only the zone marker of multiframe; Then player can be according to the user when the video editor edition and interaction video script; Whether multiframe zone marker first frame of setting this property value of automatic pause, the zone marker of operating this multiframe automatic pause whether when showing its first frame.And in the whole procedure for displaying of zone marker,, can click this zone marker no matter whether original video is in halted state, make it eject related interdynamic video object.
Be in the zone marker in the life cycle; Can wait for that the user is actuator-activated according to the mode that the user sets in the video editor editor; The user can select to activate these zone markers and play related interdynamic video object; Perhaps operate video player and continue to play original video, the mode of operation that continues the broadcast original video can be to click the zone outside the zone marker among the IVFrm, also can be through clicking " broadcast " button in the video player.When the user causes present frame not in the life cycle at zone marker to the operation of video player, this zone marker of auto-destruct then.
If behind the zone marker of certain multiframe of user activation, video player suspends, and all zone markers are hidden automatically, shows related interdynamic video object, and the content of interdynamic video object represents according to the trick-mode that the user sets in the video editor editor.
After the user finishes the interdynamic video object, show current I VFrm automatically, continue to wait for user's operation.
Need to prove; In the process of playing the interdynamic video object; Video player can accept to continue to play the instruction of original video resource; Thereby finish the broadcast of current interdynamic video object, continue the broadcast of original video resource, finish until getting into next IVFrm or original video resource.
Through the embodiment of the invention, the user can excavate mark by the useful information picture to video in video editor, produces zone marker, and sets the interbehavior of this zone marker in player, and these edit operations all are kept in the interdynamic video script.In video player, play the zone marker of automatic displaying format customization in the interdynamic video scenario process, the user can carry out interactive operation to the zone marker that shows, obtains the relevant knowledge information of original video content with the frame choosing of zone marker institute.Make original video not only comprise its original content like this, also comprised more extend information, can let the user when viewing and admiring interested video, understand and the more information relevant of study with this video content.And the information content that zone marker is showed is freely, and the editorial staff by the interdynamic video script sets up on their own fully.
See also Fig. 6, the embodiment of the invention also provides a kind of editor's Play System of interdynamic video, comprising:
Import video unit 601, be used for importing in advance original video resource or existing interdynamic video script;
Interdynamic video script generation unit 602; Be used for carrying out zone marker on the frame of said original video resource or on the frame of the original video of existing interdynamic video script correspondence; And add the interdynamic video object related with this zone marker, generate the interdynamic video script;
Zone marker display unit 603; When being used for the frame when the interdynamic video script of playing said generation to said zone marker place, then showing said zone marker on the frame of said original video resource or on the frame of the corresponding original video of existing interdynamic video script;
Interdynamic video object display unit 604 is used for when receiving the user to the activation instruction of said zone marker, then showing said interdynamic video object.
In one embodiment of the invention, said system also comprises:
Original video broadcast unit 605 is used to receive the corresponding player plays original video resource of instruction calls original video resource of interdynamic video script.
In embodiments of the present invention; Said interdynamic video script is specially the script file of XML form; The script file of said XML form comprises original video frame data, the interdynamic video script end mark that said interdynamic video script coded format data, video metadata, script metadata, captions metadata, customize tag area data, interdynamic video frame data, ivapp data, video editor are analyzed, the frame data of the original video resource that said original video frame data refer to import in advance.
In embodiments of the present invention, said system also comprises:
Module is set, is used for each generic attribute of setting area mark in advance, said zone marker is used to receive said user's activation instruction.
In embodiments of the present invention, said interdynamic video object display unit 604 specifically is used for when zone marker receives user's activation instruction, then suspends and plays said original video resource, the interdynamic video object that demonstration or play area mark are related.
In embodiments of the present invention; Said interdynamic video object is an application window that covers on the present frame of said zone marker place; This application window shows that the content with user interactions can be one or more the combination in text, picture, music, sound, animation, recreation, the video; Should be appreciated that the recreation, the video that show on the application window described herein can be the file icon of game representation or video, the user can be through click selecting or play contents such as wherein recreation, video.
The embodiment of the invention also provides a kind of e-learning equipment, and said e-learning equipment comprises above-mentioned system.
Editor's player method of interdynamic video of the present invention, system and e-learning equipment; Through original video resource or the existing interdynamic video object that imports carried out zone marker; And add the interdynamic video object related with this zone marker, generate the interdynamic video script; When playing said original video resource, then go up demonstration All Ranges mark at the interdynamic video frame (IVFrm) of original video resource to the interdynamic video frame; When receiving the user to the activation instruction of zone marker, then show related interdynamic video object, the user can carry out interactive operation with the interdynamic video object, therefore has interaction function.The user can be easily excavates mark to the useful information picture of video; Produce zone marker; And set the interbehavior of this zone marker in video player, can be in playing the interdynamic video scenario process viewing area mark automatically, the user can carry out interactive operation to the zone marker that shows; Obtain the relevant knowledge information of original video content with the choosing of zone marker institute frame, can let the user when viewing and admiring video, understand and learn the more information relevant with this video content.
Should be appreciated that video editor of the present invention and video player also can be applicable to the educational electronic product of hand-hold type, localizable making of user and broadcast interdynamic video script.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.