Disclosure of Invention
In view of the above, the embodiments of the present invention provide a method, apparatus, device and storage medium for editing a non-multimedia file on a timeline, so as to solve the problem that the non-multimedia file is difficult to edit arbitrarily on the 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 a 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 performing visual editing on the file to be edited corresponding to at least one time scale on the time line to obtain a target file.
According to the editing method based on the time line, 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 scale of the file to be edited on the time line according to the attribute parameters corresponding to the file to be edited, and performing visual editing on the file to be edited on at least one time scale on the time line to obtain the target file. According to the method, at least one file to be edited is distributed 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, editing parameters are not required to be configured, the format editing limit and time editing limit of the file to be edited are avoided, the operation process is convenient, and any editing of the file to be edited in any format on the time line is realized.
With reference to the first aspect, in a first implementation manner of the first aspect, performing visual editing on a file to be edited corresponding to at least one time scale on the timeline to obtain a target file, where the visual editing includes: performing visual editing on the file to be edited corresponding to at least one time scale on the time line, and determining a target editing file corresponding to at least one time scale; and merging the target editing files corresponding to the at least one time scale to obtain the target file.
According to the editing method based on the time line, the target editing file is obtained by performing visual editing on the file to be edited corresponding to at least one time scale on the time line, the target editing file is synthesized, 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 randomly edited on the time line.
With reference to the first embodiment of the first aspect, in a second embodiment of the first aspect, the performing visual editing on the file to be edited corresponding to at least one time scale on the timeline to obtain a target editing file includes: 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; and obtaining the target editing file based on editing 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 the editing instruction of the at least one file to be edited on the time line, so that the target editing file at the 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. According to the method, the user responds to the editing instruction of the user on the file to be edited on the time line to realize random editing of the file to be edited in each format on the time line, so that the editing requirement of the user on the file to be edited is met 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 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; analyzing the file to be edited in the target format to obtain attribute parameters of the file to be edited in the target format.
According to the editing method based on the time line, the target format of the file to be edited is determined by analyzing at least one file to be edited, and the attribute parameters of the file to be edited in the target format are determined by analyzing the file to be edited in the target format, so that the file to be edited can be accurately identified, visual editing of the at least one file to be edited is facilitated according to the attribute parameters, the editing effect of the file to be edited is guaranteed, and user experience is improved.
With reference to the first aspect, in a fourth implementation manner of the first aspect, the determining, based on the attribute parameter of the at least one file to be edited, a time scale of the at least one file to be edited on a timeline 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 corresponding time scale of 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 a 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 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; 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, the running time length of at least one file to be edited is determined based on the attribute parameters corresponding to the 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. According to the method, the time scale of each file to be edited in the time line is determined by determining the running time length of each file to be edited, so that the time editing limit of the file to be edited is overcome, and the file to be edited in a mixed format is randomly edited 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 the uploading instruction of the at least one file to be edited, and obtaining the at least one file to be edited; wherein the file to be edited comprises a multimedia file and/or a non-multimedia file.
According to the editing method based on the time line, 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 editing limit of the multimedia format of the file to be edited is overcome, the editing of the file to be edited in a mixed format on a time line is realized, 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 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 time line based on the attribute parameters of the at least one file to be edited; and the editing module is used for performing visual editing on the file to be edited corresponding to at least one time scale on the time line to obtain a target file.
According to the editing device based on the time line, at least one file to be edited is distributed 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, editing parameters are not required to be configured, the format editing limit and time editing limit of the file to be edited are avoided, the operation process is convenient, and any editing of the file to be edited in any format on the time line is realized.
According to a third aspect, an embodiment of the present invention provides an electronic device, including: the system comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions, so as to execute the time line-based editing method according to the first aspect or any implementation manner of the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a computer readable storage medium storing computer instructions for causing a computer to perform the timeline-based editing method according to the first aspect or any implementation manner of the first aspect.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Currently, a video editing tool, such as software of a format factory, mediaCoder, etc., may be generally adopted, and a series of steps of parsing, decoding, resampling, encoding, packaging, etc. are performed to intercept data in a specified time period and store the data as clips. However, the editing method is only applicable to files to be edited in a specific format and in a specific time period, and editing of mixed files to be edited on a time line is difficult; and when using the editing tool, a plurality of parameters need to be configured, so that the file to be edited is difficult to be edited arbitrarily.
Based on the method, the technical scheme of the invention determines the time scale of each file to be edited on the time line, and performs visual editing on each file to be edited to obtain the target file, so that random editing of the files to be edited in the mixed format on the time line can be realized without configuring parameters.
According to an embodiment of the present invention, there is provided an embodiment of a timeline-based editing method, it being noted that the steps shown in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions, and that although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
In this embodiment, a method for editing on a timeline is provided, which may be used in an electronic device, such as a mobile phone, a tablet computer, a computer, etc., fig. 1 is a flowchart of the method for editing on a timeline according to an embodiment of the present invention, and as shown in fig. 1, the flowchart includes the following steps:
S11, at least one file to be edited is obtained.
The file to be edited is various coded data stored in a file form, specifically, the electronic device can receive the file to be edited sent or uploaded by other communication devices through a data interface, can also obtain the file to be edited from a local memory space by responding to user operation to access the local memory space, and can also obtain the file to be edited in a downloading mode.
The file to be edited may be a multimedia file, such as AVI, MOV, WAV, MID, MPEG video files or audio files in MP3 format, BMP, GIF, DIB, animatedGIF, JPG graphics files in DWF format, etc.; the file to be edited may also be a non-multimedia file, such as a text file in the formats of TXT, DOC, PPT, etc., a web page file, a 3D model file, a certain program segment (an operation flow or a data display process between a certain interface and another interface of a program), rtmp, http, rtsp, rtp, mms, etc., where the format of the file to be edited is not particularly limited, and a person skilled in the art may determine the format of the file 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 parameter is an attribute flag that characterizes the format, display time, and the like of the file 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.
S13, 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.
The electronic device may parse the obtained at least one file to be edited to determine attribute parameters of the file to be edited, for example, when the electronic device obtains the text file, the electronic device may parse the content of the text file to determine a format (such as a TXT format) of the text file.
The time scale is the starting time and the ending time of a certain file to be edited, and after the electronic equipment determines that the file to be edited is a non-multimedia file through analyzing the attribute parameters, the electronic equipment can generate a time stream corresponding to the non-multimedia file and endow the non-multimedia file with a time attribute, so that the non-multimedia file is a segment with the time scale. For example, when the electronic device determines that the file to be edited is a text file in the TXT format, the electronic device may generate a time stream of the text file by self-building time, read the time stream in the file, convert the time stream into an object stream with an attribute, and assign a time attribute to the object stream, so that the text file may be a segment with a time scale.
After the electronic equipment determines that the file to be edited is the multimedia file through analyzing the attribute parameters, the multimedia format corresponding to the file to be edited can be analyzed, and the time length corresponding to the file to be edited is determined, so that the starting time and the ending time of each file to be edited on the time line 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 MP3 format, the playing time length of the audio file may be determined based on the attribute parameter of the audio file in MP3 format, and the playing start time and the playing end time on the timeline may be determined 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 device can display each file to be edited on the time line to the user through the display interface, respond to the editing instruction of the user on at least one file to be edited, execute the editing operation corresponding to the editing instruction on at least one file to be edited on the time line, for example delete one file to be edited, then the other files to be edited behind the file to be edited automatically update the time scale of the file to be edited on the time line.
The target file is an editing file meeting the requirements of users. After the user finishes visual editing, an editing completion instruction can be input to the electronic equipment, and correspondingly, the electronic equipment can receive the editing completion instruction, and all files to be edited on the current time line are combined to form the target file. For example, an editing completion tag may be set on the electronic device, after the editing is completed, the user may click on the tag, and the electronic device may respond to the clicking operation of the tag to execute the merging operation of the files to be edited, so as to generate the final target file.
According to the editing method based on the time line, 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 scale of the file to be edited on the time line according to the attribute parameters corresponding to the file to be edited, and performing visual editing on the file to be edited on at least one time scale on the time line to obtain the target file. According to the method, at least one file to be edited is distributed 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, editing parameters are not required to be configured, the format editing limit and time editing limit of the file to be edited are avoided, the operation process is convenient, and any editing of the file to be edited in any format on the time line is realized.
In this embodiment, a method for editing on a timeline is provided, which may be used in an electronic device, such as a mobile phone, a tablet computer, a computer, etc., fig. 2 is a flowchart of the method for editing on a timeline according to an embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
s21, at least one file to be edited is obtained. The detailed description is referred to the related description of the step S11 corresponding to the above embodiment, and will not be repeated 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, analyzing at least one file to be edited, and determining a target format of the file to be edited.
The target format is a data format corresponding to the file to be edited, and the files to be edited in different formats have different coded data. 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 Txt formatted documents, doc formatted Word files, http formatted web streams, etc.
S222, analyzing the file to be edited in the target format to obtain 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, separates the content of the file to be edited, and obtains 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.
S23, 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. The detailed description is referred to the related description of the step S13 corresponding to the above embodiment, and will not be repeated 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 steps of:
S241, performing visual editing on at least one file to be edited on the time line, and determining at least one target editing file corresponding to the time scale.
The target editing file is an edited file to be edited on the timeline. And the electronic equipment responds to an editing instruction of a user on at least one file to be edited, and executes editing operation corresponding to the editing instruction on the file to be edited corresponding to at least one time scale on a time line to obtain a target editing file.
Specifically, the step S241 may include:
(1) Responding to an editing instruction of at least one file to be edited on a 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 increase instruction is used for inserting the file to be edited into the time line, the delete instruction is used for deleting the file to be edited which is positioned 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 triggering instruction, an adding instruction, a deleting instruction and a dragging instruction, and of course, the editing instruction may also be other modification instructions, for example, an adding action, etc., which is not limited in detail in the present application.
The user may input an edit instruction of the file to be edited to the electronic device, and accordingly, the electronic device may perform an editing operation corresponding to the edit instruction in response to the edit instruction of the file to be edited. 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 the target editing file based on editing the file to be edited at least one time scale.
The electronic equipment can obtain the edited target editing file by responding to the editing instruction of the user on the file to be edited corresponding to at least one time scale, so that the target editing file positioned at each time scale on the time line can be determined. For example, when the electronic device responds to the 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 editing file corresponding to each time scale.
S242, merging the target editing files corresponding to at least one time scale to obtain the target file.
When the electronic device receives an editing completion instruction input by a user, the electronic device can determine that at least one file to be edited on the timeline is edited. At this time, the electronic device may synthesize the target editing file in at least one format on the current timeline to obtain the target file.
Specifically, the step S242 may include:
(1) And obtaining 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 parse the target editing file, and obtain a start timestamp and an end timestamp corresponding to the target editing file, so as to determine a time scale of the target editing file on the timeline according to the start timestamp and the end timestamp.
(2) And merging the target editing files in sequence according to the target time scales to obtain the target file.
And the electronic equipment performs merging operation on the target editing file with at least one format according to the target time scale of the target editing file on the current time line, so that the edited target file containing multiple formats can be obtained.
According to the editing method based on the time line, the target editing file is obtained by performing visual editing on the file to be edited corresponding to at least one time scale on the time line, the target editing file is synthesized, 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 randomly edited on the time line. And editing the 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, so as to obtain a target editing 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. According to the method, the user responds to the editing instruction of the user on the file to be edited on the time line to realize random editing of the file to be edited in each format on the time line, so that the editing requirement of the user on the file to be edited is met to the greatest extent.
In this embodiment, a method for editing on a timeline is provided, which may be used in an electronic device, such as a mobile phone, a tablet computer, a computer, etc., and fig. 3 is a flowchart of the method for editing on a timeline according to an embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
s31, at least one file to be edited is obtained.
Specifically, the step S31 may include: responding to an uploading instruction of at least one file to be edited, and obtaining at least one file to be edited; wherein the file to be edited comprises a multimedia file and/or a non-multimedia file.
The electronic equipment is provided with a data interface for receiving 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 text, web page, program fragment, etc., a multimedia file such as video, audio, picture, etc., or a mixed format of a multimedia file and a non-multimedia file, which is not limited herein.
S32, analyzing at least one file to be edited to obtain at least one attribute parameter of the file to be edited. The detailed description is referred to the related description of the step S12 corresponding to the above embodiment, and will not be repeated here.
S33, determining the time scale of 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 the time interval between the starting running and the ending running of the file to be edited on the time line, for example, the running time length of the multimedia file is the time interval between the playing start and the playing end of the multimedia file; the runtime of the non-multimedia file is the time interval between the beginning of the presentation of the non-multimedia file and the end of the presentation. After the electronic equipment analyzes the attribute parameters corresponding to the file to be edited, the time attribute corresponding to the file to be edited can be determined, so that the running time length of the file to be edited is determined.
S332, determining the corresponding time scale of at least one file to be edited according to the running time length of the at least one file to be edited.
The time scale is the starting time and the ending time of the file to be edited on the time line. The electronic device 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 placement order may be determined according to the time of the file to be edited, may be determined according to the time of receiving the file to be edited, may also be determined in response to a drag instruction of the user to the file to be edited, or may be obtained in other manners, which is not limited herein.
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, the audio file, the video file and the text file are sequentially set on the time line, and the electronic device may 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 start time stamp and the end time stamp corresponding to the audio file, the video file and the text file according to the playing time lengths of the audio file and the video file and the displaying time length of the text file, that is, the time scale of the audio file, the video file and the text file on the time line.
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 acquire the placement 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 placement sequence and the running time length, so that the positions corresponding to 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 device 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 running time length corresponding to the file to be edited. For example, the electronic device may insert a program segment between the Word file and the web page file, where 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 the running 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 the time scale of each file to be edited on the time line.
And S34, performing visual editing on at least one file to be edited on the time line to obtain a target file. The detailed description is referred to the related description of the step S14 corresponding to the above embodiment, and will not be repeated here.
According to the editing method based on the time line, 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 one or more of text, pictures, video and audio, so that format editing limitation of the file to be edited is overcome, editing of the file to be edited in a mixed format on a time line is realized, and editing requirements of users on the file to be edited are 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, determining the position of the at least one file to be edited on a time line, 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, overcoming the time editing limit of the file to be edited, and realizing random editing of the file to be edited in a mixed format in any time period of the time line.
The embodiment also provides an editing device based on a time line, which is used for implementing the above embodiment and the preferred implementation manner, and the description is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, 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 time line, as shown in fig. 4, including:
the obtaining module 41 is configured to obtain at least one file to be edited. The detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
The parsing module 42 is configured to parse at least one file to be edited to obtain at least one attribute parameter of the file to be edited. The detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
The determining module 43 is 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. The detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
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 timeline, so as to obtain a target file. The detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
According to the editing device based on the time line, at least one file to be edited is distributed 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, editing parameters are not required to be configured, the format editing limit and time editing limit of the file to be edited are avoided, the operation process is convenient, and any editing of the file to be edited in any format on the time line is realized.
As an alternative embodiment of the present application, the editing module 44 may include:
And the editing sub-module 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. The detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
And the synthesis submodule is used for merging the target editing files corresponding to at least one time scale to obtain target files. The detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
Specifically, the editing sub-module may include:
The first response sub-module is used for responding to an editing instruction of at least one file to be edited on a 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 detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
The first determining submodule is used for obtaining a target editing file based on editing of the file to be edited at least one time scale. The detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
As an alternative embodiment of the present application, the parsing module 42 may include:
And the analysis sub-module is used for analyzing at least one file to be edited and determining the target format of the file to be edited. The detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
And the analysis sub-module 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. The detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
As an alternative embodiment 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. The detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
And the fourth determination 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. The detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
Specifically, the fourth determination submodule may include:
And the allocation sub-module is used for allocating 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 detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
And the fifth determining submodule is used for 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 detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
As an alternative embodiment of the present application, the obtaining module 41 may include:
The second response sub-module is used for responding to the uploading instruction of at least one file to be edited to obtain at least one file to be edited; wherein the file to be edited comprises a multimedia file and/or a non-multimedia file. The detailed description refers to the corresponding related description of the above method embodiments, and will not be repeated here.
The timeline-based editing apparatus in this embodiment is presented in the form of functional units, where the units refer to ASIC circuits, processors and memories executing one or more software or fixed programs, and/or other devices that can provide the functionality described above.
The embodiment of the invention also provides a mobile terminal which is provided with the editing device based on the time line shown in the figure 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, a memory 504, at least one communication bus 502. Wherein a communication bus 502 is used to enable connected communications between these components. The communication interface 503 may include a Display screen (Display), a Keyboard (Keyboard), and the optional communication interface 503 may further include a standard wired interface, and a wireless interface. The memory 504 may be a high-speed RAM memory (Random Access Memory, volatile random access memory) or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 504 may also optionally be at least one storage device located remotely from the aforementioned processor 501. Wherein the processor 501 may have stored in the memory 504 an application program in the apparatus described in connection with fig. 4 and the processor 501 invokes 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 standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. 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 not only one bus or one type of bus.
Wherein the memory 504 may include volatile memory (english) such as random-access memory (RAM); the memory may also include a nonvolatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk (English: HARD DISK DRIVE, abbreviation: HDD) or a solid state disk (English: solid-STATE DRIVE, abbreviation: SSD); memory 504 may also include a combination of the types of memory described above.
The processor 501 may be a central processor (english: central processing unit, abbreviated: CPU), a network processor (english: network processor, abbreviated: NP) or a combination of CPU and NP.
The processor 501 may further include a hardware chip, among others. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof (English: programmable logic device). The PLD may be a complex programmable logic device (English: complex programmable logic device, abbreviated: CPLD), a field-programmable gate array (English: field-programmable GATE ARRAY, abbreviated: FPGA), a general-purpose array logic (English: GENERIC ARRAY logic, abbreviated: GAL), or any combination thereof.
Optionally, the memory 504 is also used for storing program instructions. The processor 501 may invoke program instructions to implement the timeline-based editing methods as shown in the embodiments of fig. 1-3 of the present application.
The embodiment of the invention also provides a non-transitory computer storage medium, which stores computer executable instructions that can execute the processing method of the timeline-based editing method in any of the above method embodiments. Wherein the storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a hard disk (HARD DISK DRIVE, abbreviated as HDD), a Solid state disk (Solid-state-STATE DRIVE, SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.