CN110389796A - Edit operation processing method, device and electronic equipment - Google Patents

Edit operation processing method, device and electronic equipment Download PDF

Info

Publication number
CN110389796A
CN110389796A CN201910584631.5A CN201910584631A CN110389796A CN 110389796 A CN110389796 A CN 110389796A CN 201910584631 A CN201910584631 A CN 201910584631A CN 110389796 A CN110389796 A CN 110389796A
Authority
CN
China
Prior art keywords
node
historical
edit
relevant
metadata structure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910584631.5A
Other languages
Chinese (zh)
Inventor
熊勋泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910584631.5A priority Critical patent/CN110389796A/en
Publication of CN110389796A publication Critical patent/CN110389796A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

A kind of edit operation processing method, device and electronic equipment are provided in the embodiment of the present disclosure, belongs to technical field of data processing, this method comprises: setting metadata structure body relevant to edit operation;In response to the edit operation occurred in editing machine operation interface, the instance objects based on the metadata structure body are generated;The relevant instance objects of edit operation are stored in the chained list for saving historical record;In response to the historical sample object relevant to revocation/recovery operation found in the chained list, the corresponding editing mode of the historical sample object is updated in the editing machine operation interface.By the scheme of the disclosure, the convenience of vision operation is improved.

Description

Edit operation processing method, device and electronic equipment
Technical field
This disclosure relates to which technical field of data processing more particularly to a kind of edit operation processing method, device and electronics are set It is standby.
Background technique
With the development of internet technology, application program increasingly is applied on intelligent devices, as using journey One of sequence classification, video class application program have obtained more and more applications, and by video class application program, user can be The enterprising accommodating efficiently video processing operation of mobile terminal.For example, user can regard one section by video class application program Frequency adds corresponding subtitle, can also increase certain section of video textures or special efficacy etc., or increase background to certain section of video file Music.The various operations of video can be used as with a kind of form of expression of video nonlinear operation.
When carrying out non-linear editing operation (addition special efficacy, paster, music, transition, segment editing) to video, need pair Various operations execute undo (revocation) and redo (restoring revocation) operation, and the solution some of the prior art is not fine enough, or Person realizes excessively complexity, causes to generate some inconvenience in its use process.
Summary of the invention
In view of this, the embodiment of the present disclosure provides a kind of edit operation processing method, device and electronic equipment, at least partly Solve problems of the prior art.
In a first aspect, the embodiment of the present disclosure provides a kind of edit operation processing method, comprising:
Metadata structure body relevant to edit operation is set;
In response to the edit operation occurred in editing machine operation interface, the example based on the metadata structure body is generated Object;
The relevant instance objects of edit operation are stored in the chained list for saving historical record;
In response to the historical sample object relevant to revocation/recovery operation found in the chained list, in the volume It collects and updates the corresponding editing mode of the historical sample object in device operation interface.
It is described that metadata structure relevant to edit operation is set according to a kind of specific implementation of the embodiment of the present disclosure Body, comprising:
Node is arranged in the metadata structure body to index, the node index is integer, and direction is last to submit note Next after record, the initial value that the node is indexed is 0, and value range is [0, N].
It is described that metadata structure relevant to edit operation is set according to a kind of specific implementation of the embodiment of the present disclosure Body, further includes:
Historical operation quantity is set in the metadata structure body, and the historical operation quantity is integer, for indicating Currently available history number of nodes, the initial value of the historical operation quantity are 1, and value range is [1, N].
It is described in response to occurring in editing machine operation interface according to a kind of specific implementation of the embodiment of the present disclosure Edit operation generates the instance objects based on the metadata structure body, comprising:
In response to the edit operation generated every time, the value that node indexes is added 1, and the value of historical operation quantity is updated to [node index+1];
Based on the value of updated node index and historical operation quantity, the example pair of the metadata structure body is generated As.
It is described to be stored in the relevant instance objects of edit operation according to a kind of specific implementation of the embodiment of the present disclosure In the chained list for saving historical record, comprising:
After node index value and historical operation quantitative value update completion, the instance objects of metadata structure body are copied;
The instance objects for the metadata structure body that copy obtains are stored in the node that node index is directed toward;
Based on all nodes, node linked list is formed.
It is described in response to finding and removing in the chained list according to a kind of specific implementation of the embodiment of the present disclosure It is corresponding to update the historical sample object in the editing machine operation interface for the relevant historical sample object of pin/recovery operation Editing mode, comprising:
It obtains user and initiates destruction operation in operation interface;
Judge whether current node index is greater than 1;
If so, subtracting 1 for present node index, and obtain the node data that the node index after executing the operation that subtracts 1 is directed toward;
By the node data, editing machine operation interface is updated.
It is described in response to finding and removing in the chained list according to a kind of specific implementation of the embodiment of the present disclosure It is corresponding to update the historical sample object in the editing machine operation interface for the relevant historical sample object of pin/recovery operation Editing mode, comprising:
Obtain the recovery operation that user initiates in operation interface;
Judge whether the index of present node is less than [historical operation quantity -1];
If so, by present node index plus 1, and obtain and execute the node data that the index of the node after adding 1 operation is directed toward;
By the node data, editing machine operation interface is updated.
It is described in response to finding and removing in the chained list according to a kind of specific implementation of the embodiment of the present disclosure It is corresponding to update the historical sample object in the editing machine operation interface for the relevant historical sample object of pin/recovery operation Editing mode, comprising:
Judge whether the revocation/recovery operation belongs to preset time period;
If it is not, then being operated in the editing machine operation interface without updating.
Second aspect, the embodiment of the present disclosure provide a kind of edit operation processing unit, comprising:
Setup module, for metadata structure body relevant to edit operation to be arranged;
Generation module is generated for the edit operation in response to occurring in editing machine operation interface based on first number According to the instance objects of structural body;
Memory module, for the relevant instance objects of edit operation to be stored in the chained list for saving historical record;
Update module, for the historical sample relevant to revocation/recovery operation in response to being found in the chained list Object updates the corresponding editing mode of the historical sample object in the editing machine operation interface.
The third aspect, the embodiment of the present disclosure additionally provide a kind of electronic equipment, which includes:
At least one processor;And
The memory being connect at least one processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one processor, and the instruction is by least one processor It executes, so that at least one processor is able to carry out the volume in any implementation of aforementioned first aspect or first aspect Collect operation processing method.
Fourth aspect, the embodiment of the present disclosure additionally provide a kind of non-transient computer readable storage medium, the non-transient meter Calculation machine readable storage medium storing program for executing stores computer instruction, and the computer instruction is for making the computer execute aforementioned first aspect or the Edit operation processing method in any implementation of one side.
5th aspect, the embodiment of the present disclosure additionally provide a kind of computer program product, which includes The calculation procedure being stored in non-transient computer readable storage medium, the computer program include program instruction, when the program When instruction is computer-executed, the computer is made to execute the editor in aforementioned first aspect or any implementation of first aspect Operation processing method.
Edit operation processing scheme in the embodiment of the present disclosure, including setting metadata structure relevant to edit operation Body;In response to the edit operation occurred in editing machine operation interface, the instance objects based on the metadata structure body are generated; The relevant instance objects of edit operation are stored in the chained list for saving historical record;In response to what is found in the chained list Historical sample object relevant to revocation/recovery operation updates the historical sample object in the editing machine operation interface Corresponding editing mode.By the scheme of the disclosure, the efficiency of video editing is improved.
Detailed description of the invention
It, below will be to needed in the embodiment attached in order to illustrate more clearly of the technical solution of the embodiment of the present disclosure Figure is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present disclosure, for this field For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of edit operation processing flow schematic diagram that the embodiment of the present disclosure provides;
Fig. 2 is another edit operation processing flow schematic diagram that the embodiment of the present disclosure provides;
Fig. 3 is another edit operation processing flow schematic diagram that the embodiment of the present disclosure provides;
Fig. 4 is another edit operation processing flow schematic diagram that the embodiment of the present disclosure provides;
Fig. 5 is the edit operation processing device structure diagram that the embodiment of the present disclosure provides;
Fig. 6 is the electronic equipment schematic diagram that the embodiment of the present disclosure provides.
Specific embodiment
The embodiment of the present disclosure is described in detail with reference to the accompanying drawing.
Illustrate embodiment of the present disclosure below by way of specific specific example, those skilled in the art can be by this specification Disclosed content understands other advantages and effect of the disclosure easily.Obviously, described embodiment is only the disclosure A part of the embodiment, instead of all the embodiments.The disclosure can also be subject to reality by way of a different and different embodiment It applies or applies, the various details in this specification can also be based on different viewpoints and application, in the spirit without departing from the disclosure Lower carry out various modifications or alterations.It should be noted that in the absence of conflict, the feature in following embodiment and embodiment can To be combined with each other.Based on the embodiment in the disclosure, those of ordinary skill in the art are without creative efforts Every other embodiment obtained belongs to the range of disclosure protection.
It should be noted that the various aspects of embodiment within the scope of the appended claims are described below.Ying Xian And be clear to, aspect described herein can be embodied in extensive diversified forms, and any specific structure described herein And/or function is only illustrative.Based on the disclosure, it will be understood by one of ordinary skill in the art that one described herein Aspect can be independently implemented with any other aspect, and can combine the two or both in these aspects or more in various ways. For example, carry out facilities and equipments in terms of any number set forth herein can be used and/or practice method.In addition, can make With other than one or more of aspect set forth herein other structures and/or it is functional implement this equipment and/or Practice the method.
It should also be noted that, diagram provided in following embodiment only illustrates the basic structure of the disclosure in a schematic way Think, component count, shape and the size when only display is with component related in the disclosure rather than according to actual implementation in schema are drawn System, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel can also It can be increasingly complex.
In addition, in the following description, specific details are provided for a thorough understanding of the examples.However, fields The skilled person will understand that the aspect can be practiced without these specific details.
The embodiment of the present disclosure provides a kind of edit operation processing method.Edit operation processing method provided in this embodiment can To be executed by a computing device, which can be implemented as software, or be embodied as the combination of software and hardware, the meter It calculates device and can integrate and be arranged in server, terminal device etc..
Referring to Fig. 1, a kind of edit operation processing method that the embodiment of the present disclosure provides includes the following steps:
Metadata structure body relevant to edit operation is arranged in S101.
When carrying out non-linear editing operation (for example, addition special efficacy, paster, music, transition, segment editing) to video, It needs to execute various operations revocation (undo) and restores (redo) operation, destruction operation refers to the editor behaviour that revocation has been completed Make, recovery operation, which refers to, carries out recovery operation for the operation cancelled, and what destruction operation and recovery operation were directed to is phase For current point in time, the secondary edit operation that the historical compilation operation completed is carried out.
For the solution some of the prior art not enough finely with complete (for example, only revocation being supported to delete), some schemes are real It is now excessively complicated, it is unfavorable for using in mobile end equipment.
For this purpose, the scheme of the disclosure is not high for mobile terminal electronic equipment video process performance, while there is more view again The characteristics of frequency editting function, propose convenient for the edit operation processing method that is run on the electronic equipment of mobile terminal, occupy compared with In the case where few system resource, and have the function of enough finings, meets the needs of video editing.
In order to define the relevant all operations of video editing or function, the metadata structure of definition and edit operation Body.By taking video editing as an example, metadata structure body can be named as VideoDate.Metadata structure body includes at least following number According to content:
(1)Edit operation object ID
The object of edit operation can be a special efficacy to video editing, need to record the special efficacy ID of the special efficacy at this time; The object of edit operation can also be the paster operation executed to video, need to record the ID of the paster at this time;Or it compiles The object for collecting operation is added to the Duan Yinle in video, at this time, it may be necessary to record the ID number of the music in the database;Or Person, the object of video editing are to increase a transition operation in two different videos (to carry out two different videos flat Sliding transition processing makes the video of two different contents seem more natural in transition), need to record transition operation at this time ID;In addition to this, edit operation object can also be the editing operation carried out for video content, such as increase/select one A video clip adjusts speed or brightness of video playing etc..All edit operations relevant to video editing can pass through Metadata structure body is defined.
(2)Edit operation time point
Edit operation time point is used to record the specific time that edit operation occurs in entire video, as a kind of side Formula, edit operation time point can choose in-point frame and the editor's ending frame of operation video to be indicated, alternatively, can also To be indicated using specific video time.By the way that edit operation time point is arranged, it is able to record what edit operation occurred The specific time.
(3)Edit operation intensity
Edit operation intensity refers to that user is in progress video editing, for the strong and weak setting parameter of video editing, for example, For user is using U.S. face filter, user can be for U.S. face setting low-intensity U.S. face, middle intensity U.S. face or high-intensitive beauty Face.Metadata structure body can make the edit operation of record finer by the edit operation intensity of record user.
(4)Other edit operation contents
Based on actual needs, other custom fields can also be set in metadata structure body, to be used to define Or supplement the relevant content of other edit operations.
S102 is generated in response to the edit operation occurred in editing machine operation interface and is based on the metadata structure body Instance objects.
Particular content in metadata structure body exists in a manner of instance objects, for this purpose, user editing machine (for example, Video editor) carry out edit operation during, need to monitor the movement of user's edit operation, content and time letter automatically Breath, and the user movement, content and temporal information are fixed up by way of instantiation.
For user during editor, the video editing movement generated can be very more, if acted to all editors Instantiated, will lead to system resource occupy it is excessively high, influence the use of video software.For this purpose, carrying out video volume in user During volume, need to check user video editing movement whether with defined in metadata structure body in perhaps field phase It closes, if related, the video editing operations of user is instantiated.
The relevant instance objects of edit operation are stored in the chained list for saving historical record by S103.
After instantiating the operation of video editing, the content of the instantiation can be carried out saving behaviour in real time Make.Specifically, the storage chained list based on type of database can be set, example is saved by chained list.
As an example, node index and the two variables of historical operation quantity can be set in metadata structure body Value.When user carries out edit operation to video content every time, the value that node indexes is added 1, and more by the value of historical operation quantity New is [node index+1], based on the value of updated node index and historical operation quantity, generates the metadata structure body Instance objects after node index value and historical operation quantitative value are updated and are completed, copy the example pair of metadata structure body As the instance objects for the metadata structure body that copy obtains being stored in the node that node index is directed toward, based on all Node, formed node linked list.
S104, in response to the historical sample object relevant to revocation/recovery operation found in the chained list, in institute It states and updates the corresponding editing mode of the historical sample object in editing machine operation interface.
User can exist after completing the operation of video editing and execute revocation/recovery behaviour to the video that editor completes When work, the targeted specific example object of revocation/recovery is executed based on user, it at this time can be based on being stored in chained list Historical record updates the corresponding editing mode of the historical sample object in the editing machine operation interface.
Specifically, needing to judge whether current node index is greater than 1 when user is when executing destruction operation, only greatly Node index in 1 can carry out destruction operation.When node index is greater than 1, illustrate that user has at least carried out primary video Edit operation.Present node can be indexed at this time and subtract 1, and obtain the number of nodes that the node index after executing the operation that subtracts 1 is directed toward According to.By parsing the content in the node data, it can be based on the node data, editing machine operation interface is updated, make to edit Device interface is updated to editing mode corresponding to destruction operation node.
When user executes recovery operation, need to judge whether the index of present node is less than [historical operation quantity -1], Only the index of present node is less than [historical operation quantity -1], can guarantee to execute recovery operation.It at this time can will be current Node index plus 1, and obtain and execute the node data that the index of the node after adding 1 operation is directed toward, it is more newly organized by the node data Device operation interface is collected, editor interface is made to be updated to editing mode corresponding to recovery operation node.
The scheme of the disclosure is by way of being abstracted into key metadata for interface information, the history of record editing machine operation Critical data can be realized and more flexible and fine carry out cancelling/recovery operation.
During implementing disclosure scheme, as an example, metadata structure relevant to edit operation is set During body, node index can be set in metadata structure body, the node index is integer, is directed toward last submit Next after record, the initial value that the node is indexed is 0, and value range is [0, N], and N is natural number.
Except herein, historical operation quantity, the historical operation quantity can also be set in the metadata structure body For integer, for indicating currently available history number of nodes, the initial value of the historical operation quantity is 1, and value range is [1,N]。
Referring to fig. 2, described in response in editing machine operation interface according to a kind of specific implementation of the embodiment of the present disclosure The edit operation of upper generation generates the instance objects based on the metadata structure body, comprising:
The value that node indexes is added 1 in response to the edit operation generated every time by S201, and by the value of historical operation quantity It is updated to [node index+1].
User needs to monitor user's volume automatically during editing machine (for example, video editor) carries out edit operation Movement, content and the temporal information of volume operation, and the user movement, content and temporal information are fixed by way of instantiation Get off.
In this regard, the edit operation that user generates on editing machine can be monitored, and after edit operation completion, automatically will The value of node index adds 1, and the value of historical operation quantity is updated to [node index+1].
S202 generates the reality of the metadata structure body based on the value of updated node index and historical operation quantity Example object.
Other than adding the value of updated node index and historical operation quantity in instance objects, it is also necessary in reality Increase content defined in other metadata structure bodies in example object.
It is described to be stored in the relevant instance objects of edit operation according to a kind of specific implementation of the embodiment of the present disclosure In the chained list for saving historical record, it is included in node index value and historical operation quantitative value updates after completing, copy metadata The instance objects of structural body;The instance objects for the metadata structure body that copy obtains are stored in the section that node index is directed toward Point in;Based on all nodes, node linked list is formed.
It is described in response to being searched in the chained list according to a kind of specific implementation of the embodiment of the present disclosure referring to Fig. 3 The historical sample object relevant to revocation/recovery operation arrived, updates the historical sample in the editing machine operation interface The corresponding editing mode of object, comprising:
S301 obtains user in operation interface and initiates destruction operation.
User can exist after completing the operation of video editing and execute destruction operation to the video that editor completes, this When can monitor the destruction operation that user initiates in operation interface.User can initiate revocation behaviour by special revocation button Make, destruction operation can also be initiated in the mode that special command interface inputs operational order.
S302, judges whether current node index is greater than 1.
As soon as the value of the every progress time edit operation of user, node index will increase 1, at this time can be by judging present node Whether index is greater than 1 mode to determine whether destruction operation can be executed, i.e., when node index is greater than 1, illustrates user extremely Primary video edit operation has been carried out less, destruction operation can be executed.
S303 if so, subtracting 1 for present node index, and obtains the node that the node index after executing the operation that subtracts 1 is directed toward Data.
S304 updates editing machine operation interface by the node data.
By parsing the content in the node data, it can be based on the node data, editing machine operation interface is updated, make Editor interface is updated to editing mode corresponding to destruction operation node.
Referring to fig. 4, described in response to being searched in the chained list according to a kind of specific implementation of the embodiment of the present disclosure The historical sample object relevant to revocation/recovery operation arrived, updates the historical sample in the editing machine operation interface The corresponding editing mode of object, comprising:
S401 obtains the recovery operation that user initiates in operation interface.
User can exist after completing the operation of video editing and execute recovery operation to the video that editor completes, this When can monitor the recovery operation that user initiates in operation interface.User can initiate to restore behaviour by special recovery button Make, recovery operation can also be initiated in the mode that special command interface inputs operational order.
S402, judges whether the index of present node is less than [historical operation quantity -1].
The value of user's destruction operation of every progress, node index will reduce 1, at this time can be by judging present node Whether index be less than the mode of [historical operation quantity -1] to determine whether recovery operation can be executed, i.e. only present node Index is less than [historical operation quantity -1], can guarantee to execute recovery operation.
S403, if so, by present node index plus 1, and obtain and execute the node that the index of the node after adding 1 operation is directed toward Data.
S404 updates editing machine operation interface by the node data.
By the node data, editing machine operation interface is updated, so that editor interface is updated to recovery operation node institute right The editing mode answered
It is described in response to finding and removing in the chained list according to a kind of specific implementation of the embodiment of the present disclosure It is corresponding to update the historical sample object in the editing machine operation interface for the relevant historical sample object of pin/recovery operation Editing mode, comprising: judge whether the revocation/recovery operation belongs to preset time period;If it is not, then being grasped in the editing machine Make interface to operate without updating.
Scheme in the embodiment of the present disclosure, can be with other tools of quotations other than it can be applied to video editing operations Have in the application program of editting function.
Corresponding with above method embodiment, referring to Fig. 5, the disclosure additionally provides a kind of edit operation processing unit 50, comprising:
Setup module 501, for metadata structure body relevant to edit operation to be arranged.
When carrying out non-linear editing operation (for example, addition special efficacy, paster, music, transition, segment editing) to video, It needs to execute various operations revocation (undo) and restores (redo) operation, destruction operation refers to the editor behaviour that revocation has been completed Make, recovery operation, which refers to, carries out recovery operation for the operation cancelled, and what destruction operation and recovery operation were directed to is phase For current point in time, the secondary edit operation that the historical compilation operation completed is carried out.
For the solution some of the prior art not enough finely with complete (for example, only revocation being supported to delete), some schemes are real It is now excessively complicated, it is unfavorable for using in mobile end equipment.
For this purpose, the scheme of the disclosure is not high for mobile terminal electronic equipment video process performance, while there is more view again The characteristics of frequency editting function, propose convenient for the edit operation processing method that is run on the electronic equipment of mobile terminal, occupy compared with In the case where few system resource, and have the function of enough finings, meets the needs of video editing.
In order to define the relevant all operations of video editing or function, the metadata structure of definition and edit operation Body.By taking video editing as an example, metadata structure body can be named as VideoDate.Metadata structure body includes at least following number According to content:
(1)Edit operation object ID
The object of edit operation can be a special efficacy to video editing, need to record the special efficacy ID of the special efficacy at this time; The object of edit operation can also be the paster operation executed to video, need to record the ID of the paster at this time;Or it compiles The object for collecting operation is added to the Duan Yinle in video, at this time, it may be necessary to record the ID number of the music in the database;Or Person, the object of video editing are to increase a transition operation in two different videos (to carry out two different videos flat Sliding transition processing makes the video of two different contents seem more natural in transition), need to record transition operation at this time ID;In addition to this, edit operation object can also be the editing operation carried out for video content, such as increase/select one A video clip adjusts speed or brightness of video playing etc..All edit operations relevant to video editing can pass through Metadata structure body is defined.
(2)Edit operation time point
Edit operation time point is used to record the specific time that edit operation occurs in entire video, as a kind of side Formula, edit operation time point can choose in-point frame and the editor's ending frame of operation video to be indicated, alternatively, can also To be indicated using specific video time.By the way that edit operation time point is arranged, it is able to record what edit operation occurred The specific time.
(3)Edit operation intensity
Edit operation intensity refers to that user is in progress video editing, for the strong and weak setting parameter of video editing, for example, For user is using U.S. face filter, user can be for U.S. face setting low-intensity U.S. face, middle intensity U.S. face or high-intensitive beauty Face.Metadata structure body can make the edit operation of record finer by the edit operation intensity of record user.
(4)Other edit operation contents
Based on actual needs, other custom fields can also be set in metadata structure body, to be used to define Or supplement the relevant content of other edit operations.
Generation module 502 generates for the edit operation in response to occurring in editing machine operation interface and is based on the member The instance objects of data structure.
Particular content in metadata structure body exists in a manner of instance objects, for this purpose, user editing machine (for example, Video editor) carry out edit operation during, need to monitor the movement of user's edit operation, content and time letter automatically Breath, and the user movement, content and temporal information are fixed up by way of instantiation.
For user during editor, the video editing movement generated can be very more, if acted to all editors Instantiated, will lead to system resource occupy it is excessively high, influence the use of video software.For this purpose, carrying out video volume in user During volume, need to check user video editing movement whether with defined in metadata structure body in perhaps field phase It closes, if related, the video editing operations of user is instantiated.
Memory module 503, for the relevant instance objects of edit operation to be stored in the chained list for saving historical record.
After instantiating the operation of video editing, the content of the instantiation can be carried out saving behaviour in real time Make.Specifically, the storage chained list based on type of database can be set, example is saved by chained list.
As an example, node index and the two variables of historical operation quantity can be set in metadata structure body Value.When user carries out edit operation to video content every time, the value that node indexes is added 1, and more by the value of historical operation quantity New is [node index+1], based on the value of updated node index and historical operation quantity, generates the metadata structure body Instance objects after node index value and historical operation quantitative value are updated and are completed, copy the example pair of metadata structure body As the instance objects for the metadata structure body that copy obtains being stored in the node that node index is directed toward, based on all Node, formed node linked list.
Update module 504, it is real for the history relevant to revocation/recovery operation in response to being found in the chained list Example object, updates the corresponding editing mode of the historical sample object in the editing machine operation interface.
User can exist after completing the operation of video editing and execute revocation/recovery behaviour to the video that editor completes When work, the targeted specific example object of revocation/recovery is executed based on user, it at this time can be based on being stored in chained list Historical record updates the corresponding editing mode of the historical sample object in the editing machine operation interface.
Specifically, needing to judge whether current node index is greater than 1 when user is when executing destruction operation, only greatly Node index in 1 can carry out destruction operation.When node index is greater than 1, illustrate that user has at least carried out primary video Edit operation.Present node can be indexed at this time and subtract 1, and obtain the number of nodes that the node index after executing the operation that subtracts 1 is directed toward According to.By parsing the content in the node data, it can be based on the node data, editing machine operation interface is updated, make to edit Device interface is updated to editing mode corresponding to destruction operation node.
When user executes recovery operation, need to judge whether the index of present node is less than [historical operation quantity -1], Only the index of present node is less than [historical operation quantity -1], can guarantee to execute recovery operation.It at this time can will be current Node index plus 1, and obtain and execute the node data that the index of the node after adding 1 operation is directed toward, it is more newly organized by the node data Device operation interface is collected, editor interface is made to be updated to editing mode corresponding to recovery operation node.
The scheme of the disclosure is by way of being abstracted into key metadata for interface information, the history of record editing machine operation Critical data can be realized and more flexible and fine carry out cancelling/recovery operation.
Fig. 5 shown device can it is corresponding execute above method embodiment in content, what the present embodiment was not described in detail Part, referring to the content recorded in above method embodiment, details are not described herein.
Referring to Fig. 6, the embodiment of the present disclosure additionally provides a kind of electronic equipment 60, which includes:
At least one processor;And
The memory being connect at least one processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one processor, and the instruction is by least one processor It executes, so that at least one processor is able to carry out edit operation processing method in preceding method embodiment.
The embodiment of the present disclosure additionally provides a kind of non-transient computer readable storage medium, and the non-transient computer is readable to deposit Storage media stores computer instruction, and the computer instruction is for executing the computer in preceding method embodiment.
The embodiment of the present disclosure additionally provides a kind of computer program product, and the computer program product is non-temporary including being stored in Calculation procedure on state computer readable storage medium, the computer program include program instruction, when the program instruction is calculated When machine executes, the computer is made to execute the edit operation processing method in preceding method embodiment.
Below with reference to Fig. 6, it illustrates the structural schematic diagrams for the electronic equipment 60 for being suitable for being used to realize the embodiment of the present disclosure. Electronic equipment in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, Digital Broadcasting Receiver Device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal are (such as vehicle-mounted Navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electronics shown in Fig. 6 Equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 60 may include processing unit (such as central processing unit, graphics processor etc.) 601, It can be loaded into random access storage according to the program being stored in read-only memory (ROM) 602 or from storage device 608 Program in device (RAM) 603 and execute various movements appropriate and processing.In RAM 603, it is also stored with the behaviour of electronic equipment 60 Various programs and data needed for making.Processing unit 601, ROM 602 and RAM 603 are connected with each other by bus 604.It is defeated Enter/export (I/O) interface 605 and is also connected to bus 604.
In general, following device can connect to I/O interface 605: including such as touch screen, touch tablet, keyboard, mouse, figure As the input unit 606 of sensor, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaking The output device 607 of device, vibrator etc.;Storage device 608 including such as tape, hard disk etc.;And communication device 609.It is logical T unit 609 can permit electronic equipment 60 and wirelessly or non-wirelessly be communicated with other equipment to exchange data.Although showing in figure The electronic equipment 60 with various devices is gone out, it should be understood that being not required for implementing or having all devices shown. It can alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 609, or from storage device 608 It is mounted, or is mounted from ROM 602.When the computer program is executed by processing unit 601, the embodiment of the present disclosure is executed Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the electronic equipment: obtaining at least two internet protocol addresses;Send to Node evaluation equipment includes institute State the Node evaluation request of at least two internet protocol addresses, wherein the Node evaluation equipment is internet from described at least two In protocol address, chooses internet protocol address and return;Receive the internet protocol address that the Node evaluation equipment returns;Its In, the fringe node in acquired internet protocol address instruction content distributing network.
Alternatively, above-mentioned computer-readable medium carries one or more program, when said one or multiple programs When being executed by the electronic equipment, so that the electronic equipment: receiving the Node evaluation including at least two internet protocol addresses and request; From at least two internet protocol address, internet protocol address is chosen;Return to the internet protocol address selected;Wherein, The fringe node in internet protocol address instruction content distributing network received.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the One acquiring unit is also described as " obtaining the unit of at least two internet protocol addresses ".
It should be appreciated that each section of the disclosure can be realized with hardware, software, firmware or their combination.
The above, the only specific embodiment of the disclosure, but the protection scope of the disclosure is not limited thereto, it is any Those familiar with the art is in the technical scope that the disclosure discloses, and any changes or substitutions that can be easily thought of, all answers Cover within the protection scope of the disclosure.Therefore, the protection scope of the disclosure should be subject to the protection scope in claims.

Claims (11)

1. a kind of edit operation processing method characterized by comprising
Metadata structure body relevant to edit operation is set;
In response to the edit operation occurred in editing machine operation interface, the example pair based on the metadata structure body is generated As;
The relevant instance objects of edit operation are stored in the chained list for saving historical record;
In response to the historical sample object relevant to revocation/recovery operation found in the chained list, in the editing machine The corresponding editing mode of the historical sample object is updated in operation interface.
2. the method according to claim 1, wherein setting metadata structure relevant to edit operation Body, comprising:
Node is arranged in the metadata structure body to index, the node index is integer, is directed toward last submit and records it Afterwards next, the initial value that the node is indexed are 0, and value range is [0, N].
3. according to the method described in claim 2, it is characterized in that, setting metadata structure relevant to edit operation Body, further includes:
Historical operation quantity is set in the metadata structure body, and the historical operation quantity is integer, for indicating current Available history number of nodes, the initial value of the historical operation quantity are 1, and value range is [1, N].
4. according to the method described in claim 3, it is characterized in that, the volume in response to occurring in editing machine operation interface Operation is collected, the instance objects based on the metadata structure body are generated, comprising:
In response to the edit operation generated every time, the value that node indexes is added 1, and the value of historical operation quantity is updated to [section Point index+1];
Based on the value of updated node index and historical operation quantity, the instance objects of the metadata structure body are generated.
5. according to the method described in claim 4, it is characterized in that, described be stored in guarantor for the relevant instance objects of edit operation It deposits in the chained list of historical record, comprising:
After node index value and historical operation quantitative value update completion, the instance objects of metadata structure body are copied;
The instance objects for the metadata structure body that copy obtains are stored in the node that node index is directed toward;
Based on all nodes, node linked list is formed.
6. the method according to claim 1, wherein described in response to finding in the chained list and removing It is corresponding to update the historical sample object in the editing machine operation interface for the relevant historical sample object of pin/recovery operation Editing mode, comprising:
It obtains user and initiates destruction operation in operation interface;
Judge whether current node index is greater than 1;
If so, subtracting 1 for present node index, and obtain the node data that the node index after executing the operation that subtracts 1 is directed toward;
By the node data, editing machine operation interface is updated.
7. the method according to claim 1, wherein described in response to finding in the chained list and removing It is corresponding to update the historical sample object in the editing machine operation interface for the relevant historical sample object of pin/recovery operation Editing mode, comprising:
Obtain the recovery operation that user initiates in operation interface;
Judge whether the index of present node is less than [historical operation quantity -1];
If so, by present node index plus 1, and obtain and execute the node data that the index of the node after adding 1 operation is directed toward;
By the node data, editing machine operation interface is updated.
8. the method according to claim 1, wherein described in response to finding in the chained list and removing It is corresponding to update the historical sample object in the editing machine operation interface for the relevant historical sample object of pin/recovery operation Editing mode, comprising:
Judge whether the revocation/recovery operation belongs to preset time period;
If it is not, then being operated in the editing machine operation interface without updating.
9. a kind of edit operation processing unit characterized by comprising
Setup module, for metadata structure body relevant to edit operation to be arranged;
Generation module generates for the edit operation in response to occurring in editing machine operation interface and is based on the metadata knot The instance objects of structure body;
Memory module, for the relevant instance objects of edit operation to be stored in the chained list for saving historical record;
Update module, for the historical sample object relevant to revocation/recovery operation in response to being found in the chained list, The corresponding editing mode of the historical sample object is updated in the editing machine operation interface.
10. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor is able to carry out the processing of edit operation described in aforementioned any claim 1-8 Method.
11. a kind of non-transient computer readable storage medium, which stores computer instruction, The computer instruction is for making the computer execute edit operation processing method described in aforementioned any claim 1-8.
CN201910584631.5A 2019-07-01 2019-07-01 Edit operation processing method, device and electronic equipment Pending CN110389796A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910584631.5A CN110389796A (en) 2019-07-01 2019-07-01 Edit operation processing method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910584631.5A CN110389796A (en) 2019-07-01 2019-07-01 Edit operation processing method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN110389796A true CN110389796A (en) 2019-10-29

Family

ID=68286127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910584631.5A Pending CN110389796A (en) 2019-07-01 2019-07-01 Edit operation processing method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110389796A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113065317A (en) * 2021-03-18 2021-07-02 北京达佳互联信息技术有限公司 Method, device, electronic equipment, medium and product for recovering edited content
CN113099287A (en) * 2021-03-31 2021-07-09 上海哔哩哔哩科技有限公司 Video production method and device
CN113923477A (en) * 2021-09-30 2022-01-11 北京百度网讯科技有限公司 Video processing method, video processing device, electronic equipment and storage medium
CN113920220A (en) * 2020-07-09 2022-01-11 北京字节跳动网络技术有限公司 Image editing backspacing method and device
US20220208229A1 (en) * 2020-12-30 2022-06-30 Linearity Gmbh Time-lapse
CN115086757A (en) * 2021-03-12 2022-09-20 北京字跳网络技术有限公司 Method, device, equipment and storage medium for withdrawing history editing operation
CN116186815A (en) * 2023-04-25 2023-05-30 北京国科恒通科技股份有限公司 Data processing method, device, medium and equipment for grid pattern editing

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100086234A1 (en) * 2008-10-03 2010-04-08 Bitnik, Inc. System and method for preserving editing history in an in-browser photo-editing application
CN107924397A (en) * 2015-12-31 2018-04-17 深圳配天智能技术研究院有限公司 A kind of file editing method and file editor
CN109543163A (en) * 2018-10-30 2019-03-29 天津字节跳动科技有限公司 Documentation revisions record acquisition methods, device, storage medium and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100086234A1 (en) * 2008-10-03 2010-04-08 Bitnik, Inc. System and method for preserving editing history in an in-browser photo-editing application
CN107924397A (en) * 2015-12-31 2018-04-17 深圳配天智能技术研究院有限公司 A kind of file editing method and file editor
CN109543163A (en) * 2018-10-30 2019-03-29 天津字节跳动科技有限公司 Documentation revisions record acquisition methods, device, storage medium and electronic equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113920220A (en) * 2020-07-09 2022-01-11 北京字节跳动网络技术有限公司 Image editing backspacing method and device
US20220208229A1 (en) * 2020-12-30 2022-06-30 Linearity Gmbh Time-lapse
US11894019B2 (en) * 2020-12-30 2024-02-06 Linearity Gmbh Time-lapse
CN115086757A (en) * 2021-03-12 2022-09-20 北京字跳网络技术有限公司 Method, device, equipment and storage medium for withdrawing history editing operation
CN115086757B (en) * 2021-03-12 2023-12-19 北京字跳网络技术有限公司 Method, device, equipment and storage medium for withdrawing history editing operation
CN113065317A (en) * 2021-03-18 2021-07-02 北京达佳互联信息技术有限公司 Method, device, electronic equipment, medium and product for recovering edited content
CN113065317B (en) * 2021-03-18 2024-03-12 北京达佳互联信息技术有限公司 Editing content recovery method and device, electronic equipment, medium and product
CN113099287A (en) * 2021-03-31 2021-07-09 上海哔哩哔哩科技有限公司 Video production method and device
CN113923477A (en) * 2021-09-30 2022-01-11 北京百度网讯科技有限公司 Video processing method, video processing device, electronic equipment and storage medium
CN116186815A (en) * 2023-04-25 2023-05-30 北京国科恒通科技股份有限公司 Data processing method, device, medium and equipment for grid pattern editing

Similar Documents

Publication Publication Date Title
CN110389796A (en) Edit operation processing method, device and electronic equipment
CN110413276B (en) Parameter editing method and device, electronic equipment and storage medium
CN102054217B (en) Entity morphing in metamodel-based tools
CN109582310A (en) Data processing method, device, electronic equipment and computer readable storage medium
CN110070496A (en) Generation method, device and the hardware device of image special effect
CN111274503B (en) Data processing method, device, electronic equipment and computer readable medium
CN104820683A (en) Terminal
CN110287810A (en) Car door motion detection method, device and computer readable storage medium
CN109408481A (en) Update method, device, electronic equipment and the readable medium of log collection rule
CN110489165A (en) Obtain method, apparatus, medium and the equipment of call stack stack frame command offsets
CN109697034B (en) Data writing method and device, electronic equipment and storage medium
CN110059301A (en) Data processing method, device, electronic equipment and computer readable storage medium
CN116225886A (en) Test case generation method, device, equipment, storage medium and program product
CN110381365A (en) Video takes out frame method, device and electronic equipment
CN110070592A (en) Generation method, device and the hardware device of special efficacy packet
CN110069459A (en) File monitor method, apparatus and electronic equipment
CN109462648A (en) A kind of user behavior tracking, device, equipment and storage medium
CN111241137B (en) Data processing method, device, electronic equipment and storage medium
CN109582442A (en) Processing method, electronic equipment and the computer storage medium of memory spilling OOM
CN109840168A (en) Software rejuvenation method, apparatus, terminal and medium
CN110045925A (en) Data processing method, device, electronic equipment and computer readable storage medium
CN109614089A (en) Automatic generation method, device, equipment and the storage medium of data access code
CN111143355B (en) Data processing method and device
CN109857503A (en) Page interaction effect adaptive approach, device and electronic equipment
CN111552705B (en) Data processing method and device based on chart, electronic equipment and 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