CN113485968A - Editing method, device and equipment based on time line and storage medium - Google Patents

Editing method, device and equipment based on time line and storage medium Download PDF

Info

Publication number
CN113485968A
CN113485968A CN202110879996.8A CN202110879996A CN113485968A CN 113485968 A CN113485968 A CN 113485968A CN 202110879996 A CN202110879996 A CN 202110879996A CN 113485968 A CN113485968 A CN 113485968A
Authority
CN
China
Prior art keywords
file
edited
editing
timeline
time
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
CN202110879996.8A
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.)
Anhui Wenxiang Technology Co ltd
Original Assignee
Anhui Wenxiang 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 Anhui Wenxiang Technology Co ltd filed Critical Anhui Wenxiang Technology Co ltd
Priority to CN202110879996.8A priority Critical patent/CN113485968A/en
Publication of CN113485968A publication Critical patent/CN113485968A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • G06F16/287Visualization; Browsing

Abstract

The invention relates to the technical field of multi-format file editing, and discloses an editing method, device, equipment and storage medium based on a timeline. Wherein, the method comprises the following steps: acquiring at least one file to be edited; analyzing at least one file to be edited to obtain attribute parameters of the at least one file to be edited; determining the time scale of at least one file to be edited on a time line based on the attribute parameters of the at least one file to be edited; and visually editing the file to be edited corresponding to at least one time scale on the time line to obtain a target file. By implementing the method and the device, format editing limitation and time editing limitation of the file to be edited are avoided, visual and arbitrary editing of the file to be edited in any format on the timeline is realized, editing parameters do not need to be configured, and the operation process is convenient.

Description

Editing method, device and equipment based on time line and storage medium
Technical Field
The invention relates to the technical field of multi-format file editing, in particular to an editing method, device, equipment and storage medium based on a time line.
Background
With the increasing occupation of the intelligent terminal in the market, a user can clip photos or videos shot by the user through the intelligent terminal to obtain a multimedia file meeting the demand. Generally, a video editing tool, such as software of a format factory, a MediaCoder, etc., can be used to intercept data of a specified time period and store the data as a clip through a series of steps of parsing, decoding, resampling, encoding, packaging, etc. However, the above-mentioned clipping method is only suitable for multimedia files of a specific format and a specific time period, and it is difficult to achieve arbitrary editing of non-multimedia files on a timeline.
Disclosure of Invention
In view of this, embodiments of the present invention provide a timeline-based editing method, apparatus, device and storage medium, so as to solve the problem that non-multimedia files are difficult to arbitrarily edit on a timeline.
According to a first aspect, an embodiment of the present invention provides a timeline-based editing method, including: acquiring at least one file to be edited; analyzing the at least one file to be edited to obtain attribute parameters of the at least one file to be edited; determining the time scale of the at least one file to be edited on a time line based on the attribute parameters of the at least one file to be edited; and visually editing the file to be edited corresponding to at least one time scale on the timeline to obtain a target file.
According to the timeline-based editing method provided by the embodiment of the invention, the attribute parameters of the file to be edited are determined by acquiring at least one file to be edited and analyzing the acquired at least one file to be edited. And determining the time scales of the file to be edited on the time line according to the attribute parameters corresponding to the file to be edited, and visually editing the file to be edited with at least one time scale on the time line to obtain the target file. The method allocates at least one file to be edited on the time line, so that the file to be edited on the time line can be visually edited according to the self requirement, the edited target file is ensured to meet the requirement, the editing parameters are not required to be configured, the format editing limitation and the time editing limitation of the file to be edited are avoided, the operation process is convenient, and the file to be edited in any format can be arbitrarily edited on the time line.
With reference to the first aspect, in a first implementation manner of the first aspect, visually editing a file to be edited, which corresponds to at least one time scale on the timeline, to obtain a target file includes: visually editing the file to be edited corresponding to at least one time scale on the timeline, and determining a target editing file corresponding to at least one time scale; and combining the target editing file corresponding to the at least one time scale to obtain the target file.
According to the time line-based editing method provided by the embodiment of the invention, the target editing file is obtained by visually editing the file to be edited corresponding to at least one time scale on the time line, and the target editing file is synthesized to obtain the target file, so that the time editing limit of the file to be edited is overcome, the file to be edited in any format is combined while the file to be edited is randomly edited on the time line.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the visually editing the file to be edited, which corresponds to at least one time scale on the timeline, to obtain a target edited file includes: responding to an editing instruction of at least one file to be edited on the timeline, and editing the at least one file to be edited; the editing instruction comprises one or more of a triggering instruction, an adding instruction, a deleting instruction and a dragging instruction; and obtaining the target editing file based on the editing of the file to be edited at least one time scale.
According to the time line-based editing method provided by the embodiment of the invention, at least one file to be edited is edited by responding to an editing instruction of at least one file to be edited on a time line, so that a target edited file at least one time scale is obtained. The editing instruction comprises one or more of a triggering instruction, an adding instruction, a deleting instruction and a dragging instruction. The method realizes the arbitrary editing of the files to be edited in various formats on the time line by responding to the editing instruction of the user on the files to be edited on the time line, thereby meeting the editing requirement of the user on the files to be edited to the greatest extent.
With reference to the first aspect, in a third implementation manner of the first aspect, the parsing the at least one file to be edited to obtain the attribute parameter of the at least one file to be edited includes: analyzing the at least one file to be edited and determining a target format of the file to be edited; and analyzing the file to be edited in the target format to obtain the attribute parameters of the file to be edited in the target format.
According to the timeline-based editing method provided by the embodiment of the invention, the target format of the file to be edited is determined by analyzing the at least one file to be edited, and the file to be edited in the target format is analyzed to determine the attribute parameters of the file to be edited in the target format, so that the accurate identification of the file to be edited is realized, the visual editing of the at least one file to be edited is further facilitated according to the attribute parameters, the editing effect of the file to be edited is ensured, and the user experience is improved.
With reference to the first aspect, in a fourth implementation manner of the first aspect, the determining a time scale of the at least one file to be edited on the timeline based on the attribute parameter of the at least one file to be edited includes: determining the running time length of the at least one file to be edited based on the attribute parameters corresponding to the at least one file to be edited; and determining the time scale corresponding to the at least one file to be edited according to the running time length of the at least one file to be edited.
With reference to the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect, the determining, according to the running time length of the at least one file to be edited, a time scale corresponding to the at least one file to be edited includes: distributing the at least one file to be edited on the time line based on the running time length corresponding to the at least one file to be edited, and determining the position of the at least one file to be edited on the time line; and determining the time scale corresponding to the at least one file to be edited according to the position of the file to be edited on the time line.
According to the editing method based on the time line, provided by the embodiment of the invention, the running time length of at least one file to be edited is determined based on the attribute parameters corresponding to at least one file to be edited, and then the time scale of the at least one file to be edited on the time line is determined according to the running time length. The method determines the time scale of each file to be edited in a time line by determining the running time length of each file to be edited, thereby overcoming the time editing limit of the files to be edited and realizing the arbitrary editing of the files to be edited in a mixed format in any time period of the time line.
With reference to the first aspect, in a sixth implementation manner of the first aspect, the obtaining at least one file to be edited includes: responding to an uploading instruction of the at least one file to be edited to obtain the at least one file to be edited; wherein, the files to be edited comprise multimedia files and/or non-multimedia files.
According to the editing method based on the timeline, at least one file to be edited is obtained by responding to an uploading instruction of the at least one file to be edited; the file to be edited comprises a multimedia file and/or a non-multimedia file, so that the limit of editing the multimedia format of the file to be edited is overcome, the file to be edited in a mixed format is edited on a timeline, and the editing requirement of a user on the file to be edited is met to the greatest extent.
According to a second aspect, an embodiment of the present invention provides a timeline-based editing apparatus, including: the acquisition module is used for acquiring at least one file to be edited; the analysis module is used for analyzing the at least one file to be edited to obtain the attribute parameters of the at least one file to be edited; the determining module is used for determining the time scale of the at least one file to be edited on the timeline based on the attribute parameters of the at least one file to be edited; and the editing module is used for visually editing the file to be edited corresponding to at least one time scale on the timeline to obtain a target file.
According to the timeline-based editing device provided by the embodiment of the invention, at least one file to be edited is distributed on the timeline, so that the file to be edited on the timeline can be visually edited according to the self requirement, the edited target file is ensured to meet the requirement, the editing parameters are not required to be configured, the format editing limitation and the time editing limitation of the file to be edited are avoided, the operation process is convenient, and the arbitrary editing of the file to be edited in any format on the timeline is realized.
According to a third aspect, an embodiment of the present invention provides an electronic device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing therein computer instructions, and the processor executing the computer instructions to perform the timeline-based editing method according to the first aspect or any embodiment of the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to cause a computer to execute the timeline-based editing method according to the first aspect or any of the embodiments of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow diagram of a timeline-based editing method according to an embodiment of the present invention;
FIG. 2 is another flow diagram of a timeline-based editing method according to an embodiment of the present invention;
FIG. 3 is another flow diagram of a timeline-based editing method according to an embodiment of the present invention;
FIG. 4 is a block diagram of a timeline-based editing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Currently, a video editing tool, such as a format factory, MediaCoder, and other software, can be used to intercept data of a specified time period and store the data as a clip through a series of steps of parsing, decoding, resampling, encoding, packaging, and the like. However, the above editing method is only suitable for files to be edited in a specific format and in a specific time period, and it is difficult to edit mixed files to be edited on a timeline; and when the editing tool is used, various parameters need to be configured, and the file to be edited is difficult to be edited arbitrarily.
Based on the technical scheme, the time scales of the files to be edited on the time line are determined, and the files to be edited are visually edited to obtain the target file, so that the files to be edited in the mixed format can be arbitrarily edited on the time line without configuring parameters.
In accordance with an embodiment of the present invention, there is provided an embodiment of a timeline-based editing method, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
In this embodiment, a timeline-based editing method is provided, which can be used in electronic devices, such as a mobile phone, a tablet computer, a computer, and the like, and fig. 1 is a flowchart of the timeline-based editing method according to an embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
and S11, acquiring at least one file to be edited.
The file to be edited is various encoded data stored in a file form, specifically, the electronic device may receive the file to be edited sent or uploaded by other communication devices through a data interface, may also obtain the file to be edited from the local memory space by accessing the local memory space in response to a user operation, and may also obtain the file to be edited in a downloading manner.
The file to be edited may be a multimedia file, such as a video file or an audio file in formats of AVI, MOV, WAV, MID, MPEG, and MP3, or a graphics file in formats of BMP, GIF, DIB, anipatedgif, JPG, and DWF; the format of the file to be edited may also be non-multimedia files, such as text files in TXT, DOC, PPT, and other formats, web files, 3D model files, certain program segments (operation flow or data display process of a program from one interface to another interface), and network streams in rtmp, http, rtsp, rtp, mms, and other formats, where the format of the file to be edited is not specifically limited, and those skilled in the art may determine the format of the file to be edited that needs to be edited according to actual needs.
S12, analyzing at least one file to be edited to obtain at least one attribute parameter of the file to be edited.
The attribute parameters are attribute marks for representing formats, display time and the like of the files to be edited. After the electronic equipment acquires the file to be edited, analyzing the coding information of the file to be edited, and determining the attribute parameters corresponding to the file to be edited.
And S13, determining the time scale of the at least one file to be edited on the time line based on the attribute parameters of the at least one file to be edited.
The electronic device may parse at least one acquired file to be edited to determine attribute parameters of the file to be edited, for example, when the electronic device acquires a text file, the electronic device may parse the content of the text file to determine a format (e.g., a TXT format) of the text file.
The time scales are the starting time and the ending time of a certain file to be edited, after the electronic equipment determines that the file to be edited is a non-multimedia file by analyzing the attribute parameters, the electronic equipment can generate a time stream corresponding to the non-multimedia file, and endows the non-multimedia file with the time attributes, so that the non-multimedia file becomes a segment with the time scales. For example, when the electronic device determines that the file to be edited is a text file in a TXT format, a time stream of the text file may be generated through self-establishing time, a memory stream of the file is read and converted into an object stream with an attribute, and a time attribute is given to the object stream, so that the text file may become a segment with time scales.
After the electronic equipment determines that the file to be edited is the multimedia file by analyzing the attribute parameters, the electronic equipment can analyze the multimedia format corresponding to the file to be edited and determine the time length corresponding to the file to be edited, so that the starting time and the ending time of each file to be edited on the timeline can be determined according to the time length of each file to be edited. For example, when the electronic device determines that the file to be edited is an audio file in the MP3 format, the electronic device may determine the playing time length of the audio file based on the attribute parameters of the audio file in the MP3 format, and determine the playing start time and the playing end time of the audio file on the timeline according to the playing time length.
And S14, visually editing the file to be edited corresponding to at least one time scale on the time line to obtain a target file.
The electronic equipment can display each file to be edited on the timeline to a user through the display interface, and in response to an editing instruction of the user on at least one file to be edited, the electronic equipment performs an editing operation corresponding to the editing instruction on the at least one file to be edited on the timeline, for example, when a certain file to be edited is deleted, other files to be edited behind the file to be edited automatically update the time scales of the other files to be edited on the timeline.
The target file is an edited file meeting the requirements of the user. After the user finishes the visual editing, an editing finishing instruction can be input into the electronic device, and correspondingly, the electronic device can receive the editing finishing instruction and merge all the files to be edited on the current timeline to form a target file. For example, an editing completion tag may be set on the electronic device, and the user may click the tag after the editing is completed, and the electronic device may respond to the click operation of the tag to perform a merge operation of the files to be edited, thereby generating a final target file.
In the editing method based on the timeline provided by this embodiment, the attribute parameters of the file to be edited are determined by acquiring at least one file to be edited and analyzing the acquired at least one file to be edited. And determining the time scales of the file to be edited on the time line according to the attribute parameters corresponding to the file to be edited, and visually editing the file to be edited with at least one time scale on the time line to obtain the target file. The method allocates at least one file to be edited on the time line, so that the file to be edited on the time line can be visually edited according to the self requirement, the edited target file is ensured to meet the requirement, the editing parameters are not required to be configured, the format editing limitation and the time editing limitation of the file to be edited are avoided, the operation process is convenient, and the file to be edited in any format can be arbitrarily edited on the time line.
In this embodiment, a timeline-based editing method is provided, which can be used in electronic devices, such as a mobile phone, a tablet computer, a computer, and the like, fig. 2 is a flowchart of the timeline-based editing method according to an embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
and S21, acquiring at least one file to be edited. For a detailed description, refer to the related description of step S11 corresponding to the above embodiment, and the detailed description is omitted here.
S22, analyzing at least one file to be edited to obtain at least one attribute parameter of the file to be edited.
Specifically, the step S22 may include:
s221, at least one file to be edited is analyzed, and the target format of the file to be edited is determined.
The target format is a data format corresponding to the file to be edited, and the coded data of the files to be edited in different formats are different. The electronic device may parse the encoded data of the file to be edited to determine a target format of the file to be edited corresponding to the current encoded data. Such as a document in Txt format, a Word file in Doc format, a web stream in http format, and so forth.
S222, analyzing the file to be edited in the target format to obtain the attribute parameters of the file to be edited in the target format.
The electronic equipment analyzes the content of the file to be edited in the target format and separates the content of the file to be edited to obtain various attribute marking values corresponding to the file to be edited, such as a time attribute marking value, a format attribute marking value and the like, wherein each attribute marking value is an attribute parameter corresponding to the file to be edited.
And S23, determining the time scale of the at least one file to be edited on the time line based on the attribute parameters of the at least one file to be edited. For a detailed description, refer to the related description of step S13 corresponding to the above embodiment, and the detailed description is omitted here.
And S24, visually editing the file to be edited corresponding to at least one time scale on the time line to obtain a target file.
Specifically, the step S24 may include the following steps:
s241, visually editing at least one file to be edited on the time line, and determining a target editing file corresponding to at least one time scale.
The target editing file is an edited file to be edited on the time line. The electronic equipment responds to an editing instruction of a user on at least one file to be edited, and carries out editing operation corresponding to the editing instruction on the file to be edited corresponding to at least one time scale on the timeline to obtain a target edited file.
Specifically, the step S241 may include:
(1) responding to an editing instruction of at least one file to be edited on the time line, and editing the at least one file to be edited; the editing instruction comprises one or more of a triggering instruction, an adding instruction, a deleting instruction and a dragging instruction.
The trigger instruction is used for triggering the operation of the file to be edited, the adding instruction is used for inserting the file to be edited on the time line, the deleting instruction is used for deleting the file to be edited on the time line, and the dragging instruction is used for adjusting the position of the file to be edited on the time line. The editing instruction may include one or more of a trigger instruction, an add instruction, a delete instruction, and a drag instruction, and of course, the editing instruction may also be other modification instructions, such as an add action, and the editing instruction is not specifically limited in the present application.
The user can input an editing instruction of the file to be edited to the electronic device, and correspondingly, the electronic device can respond to the editing instruction of the file to be edited and execute an editing operation corresponding to the editing instruction. For example, the electronic device deletes the file to be edited in response to a deletion instruction of the file to be edited.
(2) And obtaining a target editing file based on the editing of the file to be edited at the at least one time scale.
The electronic equipment can obtain the edited target edited file by responding to the editing instruction of the user to the file to be edited corresponding to the at least one time scale, so that the target edited file positioned at each time scale on the time line can be determined. For example, when the electronic device responds to a deletion instruction to delete a certain file to be edited, the position of the file to be edited on the current timeline may be adjusted to determine the target edited file corresponding to each time scale.
And S242, combining the target editing file corresponding to at least one time scale to obtain a target file.
The electronic device may determine that at least one file to be edited on the timeline has been edited when receiving an edit completion instruction input by a user. At this time, the electronic device may synthesize the target edit file in at least one format on the current timeline to obtain the target file.
Specifically, the step S242 may include:
(1) and acquiring a target time scale corresponding to the target editing file.
The target time scale is the time scale of the target editing file on the current time line. Specifically, the electronic device may analyze the target editing file, obtain a start timestamp and an end timestamp corresponding to the target editing file, and determine a time scale of the target editing file on the timeline according to the start timestamp and the end timestamp.
(2) And sequentially merging the target editing files according to the target time scales to obtain the target file.
The electronic equipment carries out merging operation on the target editing files in at least one format according to the target time scales of the target editing files on the current time line, and therefore the edited target files containing multiple formats can be obtained.
According to the time line-based editing method provided by the embodiment, the target editing file is obtained by visually editing the file to be edited corresponding to at least one time scale on the time line, and the target editing file is synthesized to obtain the target file, so that the time editing limit of the file to be edited is overcome, and the file to be edited in any format is combined while the file to be edited is arbitrarily edited on the time line. And editing at least one file to be edited by responding to an editing instruction of the at least one file to be edited on the time line to obtain a target edited file at the at least one time scale. The editing instruction comprises one or more of a triggering instruction, an adding instruction, a deleting instruction and a dragging instruction. The method realizes the arbitrary editing of the files to be edited in various formats on the time line by responding to the editing instruction of the user on the files to be edited on the time line, thereby meeting the editing requirement of the user on the files to be edited to the greatest extent.
In this embodiment, a timeline-based editing method is provided, which can be used in electronic devices, such as a mobile phone, a tablet computer, a computer, and the like, fig. 3 is a flowchart of the timeline-based editing method according to an embodiment of the present invention, and as shown in fig. 3, the flowchart includes the following steps:
and S31, acquiring at least one file to be edited.
Specifically, the step S31 may include: responding to an uploading instruction of at least one file to be edited to obtain at least one file to be edited; the files to be edited comprise multimedia files and/or non-multimedia files.
The electronic equipment is provided with a data interface to receive an external file to be edited, a user can input an uploading instruction of the file to be edited to the electronic equipment through the data interface, and correspondingly, the electronic equipment can respond to the uploading instruction of the file to be edited and receive the file to be edited in at least one format. The file to be edited may be a non-multimedia file such as a text, a web page, a program fragment, or the like, may also be a multimedia file such as a video, an audio, a picture, or the like, and may also be a mixed format of a multimedia file and a non-multimedia file, which is not specifically limited herein.
S32, analyzing at least one file to be edited to obtain at least one attribute parameter of the file to be edited. For a detailed description, refer to the related description of step S12 corresponding to the above embodiment, and the detailed description is omitted here.
And S33, determining the time scale of the at least one file to be edited on the time line based on the attribute parameters of the at least one file to be edited.
Specifically, the step S33 may include:
s331, determining the running time length of at least one file to be edited based on the attribute parameters corresponding to the at least one file to be edited.
The running time length is a time interval from the beginning to the end of running of the file to be edited on the time line, for example, the running time length of the multimedia file is a time interval from the beginning to the end of playing the multimedia file; the running time of the non-multimedia file is the time interval from the beginning to the end of the presentation of the non-multimedia file. After analyzing the attribute parameters corresponding to the file to be edited, the electronic device can determine the time attribute corresponding to the file to be edited, so as to determine the running time length of the file to be edited.
S332, determining the time scale corresponding to the at least one file to be edited according to the running time length of the at least one file to be edited.
The time scales are the starting time and the ending time of the file to be edited on the time line. The electronic equipment can determine the time scale of each file to be edited on the time line according to the running time length of each file to be edited. The placing sequence may be determined according to the time length of the file to be edited, may be determined according to the time for receiving the file to be edited, may also be determined in response to a dragging instruction of the user for the file to be edited, and may of course be obtained in other manners, which is not specifically limited here.
Specifically, the electronic device may determine a time scale of at least one file to be edited on the timeline according to a position of the file to be edited on the timeline and a start timestamp and an end timestamp corresponding to the file to be edited. For example, an audio file, a video file and a text file are sequentially set on the time line, the electronic device can respectively obtain the playing time lengths of the audio file and the video file and the displaying time length of the text file, and determine the starting time stamp and the ending time stamp corresponding to the audio file, the video file and the text file, that is, the time scales on the time line according to the playing time lengths of the audio file and the video file and the displaying time length of the text file.
Specifically, the step S322 may include:
(1) and distributing at least one file to be edited on the time line based on the corresponding running time length of the at least one file to be edited, and determining the position of the at least one file to be edited on the time line.
The electronic equipment can obtain the placing sequence of the files to be edited in each format, and sequentially place the files to be edited on the time line according to the placing sequence and the running time length, so that the corresponding positions of the files to be edited on the time line can be determined.
(2) And determining at least one time scale corresponding to the file to be edited according to the position of the file to be edited on the time line.
The electronic equipment can determine the time scale of each file to be edited on the time line according to the position of the file to be edited on the time line and the corresponding running time length of the file to be edited. For example, the electronic device may insert a program segment between a Word file and a web page file, and at this time, the electronic device may use an end timestamp of the Word file as a start timestamp of the program segment, determine the end timestamp of the program segment according to an operating time length of the program segment, and update the start timestamp and the end timestamp of the web page file at the same time, that is, determine a time scale of each file to be edited on a timeline.
And S34, performing visual editing on at least one file to be edited on the time line to obtain a target file. For a detailed description, refer to the related description of step S14 corresponding to the above embodiment, and the detailed description is omitted here.
In the editing method based on the timeline provided by this embodiment, at least one file to be edited is obtained by responding to an upload instruction of the at least one file to be edited; the file to be edited comprises one or more of text, pictures, video and audio, so that the format editing limit of the file to be edited is overcome, the file to be edited in a mixed format is edited on a timeline, and the editing requirement of a user on the file to be edited is met to the greatest extent.
The method comprises the steps of identifying a multimedia format corresponding to at least one file to be edited, determining the running time length of the at least one file to be edited based on the multimedia format corresponding to the at least one file to be edited and the multimedia format corresponding to the at least one file to be edited, determining the position of the at least one file to be edited on a timeline, and determining the time scale corresponding to the at least one file to be edited according to the position of the file to be edited on the timeline, so that the time editing limit of the file to be edited is overcome, and the file to be edited in a mixed format can be arbitrarily edited in any time period of the timeline.
In this embodiment, an editing apparatus based on a timeline is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description of the apparatus is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
The present embodiment provides an editing apparatus based on a timeline, as shown in fig. 4, including:
an obtaining module 41, configured to obtain at least one file to be edited. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
And the analysis module 42 is configured to analyze at least one file to be edited to obtain an attribute parameter of the at least one file to be edited. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
A determining module 43, configured to determine a time scale of the at least one file to be edited on the timeline based on the attribute parameter of the at least one file to be edited. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
And the editing module 44 is configured to perform visual editing on the file to be edited corresponding to at least one time scale on the time line to obtain a target file. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
The timeline-based editing apparatus provided in this embodiment allocates at least one to-be-edited file on the timeline, so that the to-be-edited file on the timeline can be visually edited according to the requirements of the editing apparatus, and it is ensured that the edited target file meets the requirements, and editing parameters do not need to be configured, so that format editing limitations and time editing limitations of the to-be-edited file are avoided, the operation process is convenient, and arbitrary editing of the to-be-edited file in any format on the timeline is realized.
As an optional implementation manner of the present application, the editing module 44 may include:
and the editing submodule is used for performing visual editing on at least one file to be edited on the time line and determining a target editing file corresponding to at least one time scale. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
And the synthesis submodule is used for combining the target editing file corresponding to at least one time scale to obtain a target file. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
Specifically, the editing sub-module may include:
the first response submodule is used for responding to an editing instruction of at least one file to be edited on the time line and editing the at least one file to be edited; the editing instruction comprises one or more of a triggering instruction, an adding instruction, a deleting instruction and a dragging instruction. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
The first determining submodule is used for obtaining a target editing file based on editing of the file to be edited at the position of at least one time scale. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
As an optional embodiment of the present application, the parsing module 42 may include:
and the analysis submodule is used for analyzing at least one file to be edited and determining the target format of the file to be edited. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
And the analysis submodule is used for analyzing the file to be edited in the target format to obtain the attribute parameters of the file to be edited in the target format. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
As an optional implementation manner of the present application, the determining module 43 may include:
and the third determining submodule is used for determining the running time length of at least one file to be edited based on the attribute parameters corresponding to the at least one file to be edited. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
And the fourth determining submodule is used for determining the time scale corresponding to the at least one file to be edited according to the running time length of the at least one file to be edited. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
Specifically, the fourth determining sub-module may include:
and the distribution submodule is used for distributing the at least one file to be edited on the time line based on the running time length corresponding to the at least one file to be edited and determining the position of the at least one file to be edited on the time line. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
And the fifth determining submodule is used for determining time scales corresponding to at least one file to be edited according to the position of the file to be edited on the timeline. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
As an optional implementation manner of the present application, the obtaining module 41 may include:
the second response submodule is used for responding to an uploading instruction of at least one file to be edited to obtain at least one file to be edited; the files to be edited comprise multimedia files and/or non-multimedia files. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
The timeline-based editing apparatus in this embodiment is presented in the form of functional units, where a unit refers to an ASIC circuit, a processor and memory executing one or more software or fixed programs, and/or other devices that may provide the above-described functionality.
An embodiment of the present invention further provides a mobile terminal, which has the timeline-based editing apparatus shown in fig. 4.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a terminal according to an alternative embodiment of the present invention, and as shown in fig. 5, the terminal may include: at least one processor 501, such as a CPU (Central Processing Unit), at least one communication interface 503, memory 504, and at least one communication bus 502. Wherein a communication bus 502 is used to enable connective communication between these components. The communication interface 503 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 503 may also include a standard wired interface and a standard wireless interface. The Memory 504 may be a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 504 may optionally be at least one storage device located remotely from the processor 501. Wherein the processor 501 may be in connection with the apparatus described in fig. 4, an application program is stored in the memory 504, and the processor 501 calls the program code stored in the memory 504 for performing any of the above-mentioned method steps.
The communication bus 502 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 502 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The memory 504 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 504 may also comprise a combination of the above types of memory.
The processor 501 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of CPU and NP.
The processor 501 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 504 is also used to store program instructions. Processor 501 may invoke program instructions to implement a timeline-based editing method as shown in the embodiments of fig. 1-3 of the present application.
Embodiments of the present invention further provide a non-transitory computer storage medium, where a computer-executable instruction is stored in the computer storage medium, and the computer-executable instruction may execute the processing method of the timeline-based editing method in any of the above method embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A timeline-based editing method, comprising:
acquiring at least one file to be edited;
analyzing the at least one file to be edited to obtain attribute parameters of the at least one file to be edited;
determining the time scale of the at least one file to be edited on a time line based on the attribute parameters of the at least one file to be edited;
and visually editing the file to be edited corresponding to at least one time scale on the timeline to obtain a target file.
2. The method according to claim 1, wherein visually editing the file to be edited corresponding to at least one time scale on the timeline to obtain a target file comprises:
visually editing the file to be edited corresponding to at least one time scale on the timeline, and determining a target editing file corresponding to at least one time scale;
and combining the target editing file corresponding to the at least one time scale to obtain the target file.
3. The method according to claim 2, wherein visually editing the file to be edited corresponding to at least one time scale on the timeline to obtain a target edited file comprises:
responding to an editing instruction of at least one file to be edited on the timeline, and editing the at least one file to be edited; the editing instruction comprises one or more of a triggering instruction, an adding instruction, a deleting instruction and a dragging instruction;
and obtaining the target editing file based on the editing of the file to be edited at least one time scale.
4. The method according to claim 1, wherein the parsing the at least one file to be edited to obtain the attribute parameters of the at least one file to be edited includes:
analyzing the at least one file to be edited and determining a target format of the file to be edited;
and analyzing the file to be edited in the target format to obtain the attribute parameters of the file to be edited in the target format.
5. The method according to claim 1, wherein the determining the time scale of the at least one file to be edited on the timeline based on the attribute parameter of the at least one file to be edited comprises:
determining the running time length of the at least one file to be edited based on the attribute parameters corresponding to the at least one file to be edited;
and determining the time scale corresponding to the at least one file to be edited according to the running time length of the at least one file to be edited.
6. The method according to claim 5, wherein the determining the time scale corresponding to the at least one file to be edited according to the running time length of the at least one file to be edited comprises:
distributing the at least one file to be edited on the time line based on the running time length corresponding to the at least one file to be edited, and determining the position of the at least one file to be edited on the time line;
and determining the time scale corresponding to the at least one file to be edited according to the position of the file to be edited on the time line.
7. The method according to claim 1, wherein the obtaining at least one file to be edited comprises:
responding to an uploading instruction of the at least one file to be edited to obtain the at least one file to be edited; wherein, the files to be edited comprise multimedia files and/or non-multimedia files.
8. An apparatus for timeline-based editing, comprising:
the acquisition module is used for acquiring at least one file to be edited;
the analysis module is used for analyzing the at least one file to be edited to obtain the attribute parameters of the at least one file to be edited;
the determining module is used for determining the time scale of the at least one file to be edited on the timeline based on the attribute parameters of the at least one file to be edited;
and the editing module is used for visually editing the file to be edited corresponding to at least one time scale on the timeline to obtain a target file.
9. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the timeline-based editing method of any of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a computer to perform the timeline-based editing method of any one of claims 1-7.
CN202110879996.8A 2021-08-02 2021-08-02 Editing method, device and equipment based on time line and storage medium Pending CN113485968A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110879996.8A CN113485968A (en) 2021-08-02 2021-08-02 Editing method, device and equipment based on time line and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110879996.8A CN113485968A (en) 2021-08-02 2021-08-02 Editing method, device and equipment based on time line and storage medium

Publications (1)

Publication Number Publication Date
CN113485968A true CN113485968A (en) 2021-10-08

Family

ID=77943970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110879996.8A Pending CN113485968A (en) 2021-08-02 2021-08-02 Editing method, device and equipment based on time line and storage medium

Country Status (1)

Country Link
CN (1) CN113485968A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6154600A (en) * 1996-08-06 2000-11-28 Applied Magic, Inc. Media editor for non-linear editing system
US20080013916A1 (en) * 2006-07-17 2008-01-17 Videothang Llc Systems and methods for encoding, editing and sharing multimedia files
US7325199B1 (en) * 2000-10-04 2008-01-29 Apple Inc. Integrated time line for editing
CN101520806A (en) * 2008-02-29 2009-09-02 奥林巴斯映像株式会社 Content editing apparatus and method therefor
US20110276881A1 (en) * 2009-06-18 2011-11-10 Cyberlink Corp. Systems and Methods for Sharing Multimedia Editing Projects
CN108307232A (en) * 2018-02-24 2018-07-20 北京奇艺世纪科技有限公司 A kind of video comments online editing and synchronous broadcast method and device
CN109783659A (en) * 2017-10-06 2019-05-21 迪斯尼企业公司 Based on the pre- visual automation Storyboard of natural language processing and 2D/3D
CN111554328A (en) * 2020-03-31 2020-08-18 北京奇艺世纪科技有限公司 Multimedia editing method and device
CN112115283A (en) * 2020-08-25 2020-12-22 天津洪恩完美未来教育科技有限公司 Method, device and equipment for processing picture book data

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6154600A (en) * 1996-08-06 2000-11-28 Applied Magic, Inc. Media editor for non-linear editing system
US7325199B1 (en) * 2000-10-04 2008-01-29 Apple Inc. Integrated time line for editing
US20080013916A1 (en) * 2006-07-17 2008-01-17 Videothang Llc Systems and methods for encoding, editing and sharing multimedia files
CN101520806A (en) * 2008-02-29 2009-09-02 奥林巴斯映像株式会社 Content editing apparatus and method therefor
US20110276881A1 (en) * 2009-06-18 2011-11-10 Cyberlink Corp. Systems and Methods for Sharing Multimedia Editing Projects
CN109783659A (en) * 2017-10-06 2019-05-21 迪斯尼企业公司 Based on the pre- visual automation Storyboard of natural language processing and 2D/3D
CN108307232A (en) * 2018-02-24 2018-07-20 北京奇艺世纪科技有限公司 A kind of video comments online editing and synchronous broadcast method and device
CN111554328A (en) * 2020-03-31 2020-08-18 北京奇艺世纪科技有限公司 Multimedia editing method and device
CN112115283A (en) * 2020-08-25 2020-12-22 天津洪恩完美未来教育科技有限公司 Method, device and equipment for processing picture book data

Similar Documents

Publication Publication Date Title
CN108989885B (en) Video file transcoding system, segmentation method, transcoding method and device
CN112184856B (en) Multimedia processing device supporting multi-layer special effect and animation mixing
CN108495192B (en) Page editing processing method and device
US8577204B2 (en) System and methods for remote manipulation of video over a network
JP4430882B2 (en) COMPOSITE MEDIA CONTENT CONVERSION DEVICE, CONVERSION METHOD, AND COMPOSITE MEDIA CONTENT CONVERSION PROGRAM
CN104540000A (en) Method for generating dynamic thumbnail and terminal
CN107229749B (en) WeChat H5 webpage making method and system
CN109840879B (en) Image rendering method and device, computer storage medium and terminal
CN112381907B (en) Multimedia track drawing method and system
CN111681291A (en) Image processing method, device, equipment and computer readable storage medium
CN111787406A (en) Video playing method, electronic equipment and storage medium
CN111625308B (en) Information display method and device and electronic equipment
US10783319B2 (en) Methods and systems of creation and review of media annotations
CN112689170B (en) Content playing method of display terminal, display terminal and readable storage medium
US9911460B2 (en) Fast and smart video trimming at frame accuracy on generic platform
CN113485968A (en) Editing method, device and equipment based on time line and storage medium
CN109710783B (en) Picture loading method and device, storage medium and server
CN111401006A (en) Document playing method, device and system and computer readable storage medium
CN113099270B (en) File storage method, decoding method, device, storage medium and electronic device
WO2022227329A1 (en) Media file generation method and device, and media file playback method and device
CN114254234A (en) Page generation system and method based on BS framework and storage medium
CN112449209B (en) Video storage method and device, cloud server and computer readable storage medium
CN109299447B (en) Advertisement editing method, terminal and computer readable storage medium
KR20040006962A (en) Method for editing and apparatus thereof
CN113110829A (en) Multi-UI component library data processing method and device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 247100 intersection of Fengming Avenue and Hanjiang Road, Jiangnan industrial concentration area, Chizhou City, Anhui Province

Applicant after: Anhui Wenxiang Technology Co.,Ltd.

Address before: 247100 workshop C2, science and Technology Incubation Park, Jiangnan industrial concentration zone, Chizhou City, Anhui Province

Applicant before: Anhui Wenxiang Technology Co.,Ltd.

CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Peng Zebo

Inventor after: Song Xiangyang

Inventor after: Qi Xiaoxin

Inventor before: Peng Zebo

Inventor before: Song Xiangyang