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

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

Info

Publication number
CN113485968B
CN113485968B CN202110879996.8A CN202110879996A CN113485968B CN 113485968 B CN113485968 B CN 113485968B CN 202110879996 A CN202110879996 A CN 202110879996A CN 113485968 B CN113485968 B CN 113485968B
Authority
CN
China
Prior art keywords
edited
file
files
editing
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.)
Active
Application number
CN202110879996.8A
Other languages
Chinese (zh)
Other versions
CN113485968A (en
Inventor
彭泽波
宋向阳
祁晓新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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/CN113485968B/en
Publication of CN113485968A publication Critical patent/CN113485968A/en
Application granted granted Critical
Publication of CN113485968B publication Critical patent/CN113485968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention relates to the technical field of multi-format file editing and discloses an editing method, device and equipment based on a time line and a storage medium. 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 at least one attribute parameter of the 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 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. By implementing the method, the format editing limit and time editing limit of the file to be edited are avoided, visual arbitrary editing of the file to be edited in any format on a time line is realized, editing parameters are not required to be configured, and the operation process is convenient.

Description

Editing method, device, equipment and storage medium based on time line
Technical Field
The invention relates to the technical field of multi-format file editing, in particular to an editing method, device and equipment based on a time line and a storage medium.
Background
With the increasing occupancy of intelligent terminals in the market, users can clip photos or videos shot by the intelligent terminals to obtain multimedia files meeting requirements. A video editing tool, such as software of format factories, mediaCoder, etc., can be generally adopted to intercept data of a specified time period and store the data as clips through a series of steps of parsing, decoding, resampling, encoding, packaging, etc. However, the above-described editing method is applicable only to multimedia files of a specific format and for a specific period of time, and it is difficult to achieve arbitrary editing of non-multimedia files on a timeline.
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.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a timeline-based editing method in accordance with an embodiment of the present invention;
FIG. 2 is another flow chart of a timeline-based editing method in accordance with embodiments of the present invention;
FIG. 3 is another flow chart of a timeline-based editing method in accordance with embodiments of the present invention;
FIG. 4 is a block diagram of a timeline-based editing apparatus in accordance with 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
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.

Claims (8)

1. A timeline-based editing method, comprising:
obtaining a plurality of files to be edited, including:
Responding to the uploading instructions of the files to be edited to obtain the files to be edited; wherein the file to be edited comprises a multimedia file and a non-multimedia file;
Analyzing the files to be edited to obtain attribute parameters of the files to be edited;
determining time scales of the plurality of files to be edited on a time line based on attribute parameters of the plurality of files to be edited;
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, wherein the visual editing comprises the following steps:
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;
Merging the target editing files corresponding to the at least one time scale to obtain the target file, wherein the method comprises the following steps: and acquiring the placement sequence of the files to be edited in each format, and sequentially placing the files to be edited on the time line according to the placement 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. The method according to claim 1, wherein the visually editing the file to be edited corresponding to the at least one time scale on the timeline to obtain the target edited file includes:
Responding to an editing instruction of a plurality of files to be edited on the time line, and editing the plurality of files 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.
3. The method of claim 1, wherein the parsing the plurality of files to be edited to obtain attribute parameters of the plurality of files to be edited comprises:
analyzing the plurality of files to be edited, and determining a target format of the files 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.
4. The method of claim 1, wherein the determining the time scale of the plurality of files to be edited on the timeline based on the attribute parameters of the plurality of files to be edited comprises:
Determining the running time length of the files to be edited based on the attribute parameters corresponding to the files to be edited;
And determining the time scales corresponding to the files to be edited according to the running time lengths of the files to be edited.
5. The method of claim 4, wherein determining the time scale corresponding to the plurality of files to be edited according to the running time lengths of the plurality of files to be edited comprises:
Distributing the plurality of files to be edited on the time line based on the running time lengths corresponding to the plurality of files to be edited, and determining the positions of the plurality of files to be edited on the time line;
and determining the time scales corresponding to the various files to be edited according to the positions of the files to be edited on the time line.
6. A timeline-based editing apparatus, comprising:
the acquisition module is used for acquiring various files to be edited, and comprises:
Responding to the uploading instructions of the files to be edited to obtain the files to be edited; wherein the file to be edited comprises a multimedia file and a non-multimedia file;
the analysis module is used for analyzing the files to be edited to obtain attribute parameters of the files to be edited;
The determining module is used for determining the time scales of the files to be edited on the time line based on the attribute parameters of the files to be edited;
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, and comprises the following steps:
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;
Merging the target editing files corresponding to the at least one time scale to obtain the target file, wherein the method comprises the following steps: and acquiring the placement sequence of the files to be edited in each format, and sequentially placing the files to be edited on the time line according to the placement sequence and the running time length, so that the corresponding positions of the files to be edited on the time line can be determined.
7. An electronic device, comprising:
A memory and a processor in communication with 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-5.
8. A computer-readable storage medium storing computer instructions for causing a computer to perform the timeline-based editing method of any of claims 1-5.
CN202110879996.8A 2021-08-02 2021-08-02 Editing method, device, equipment and storage medium based on time line Active CN113485968B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN113485968A CN113485968A (en) 2021-10-08
CN113485968B true CN113485968B (en) 2024-06-07

Family

ID=77943970

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN113485968B (en)

Citations (11)

* 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
CN101520806A (en) * 2008-02-29 2009-09-02 奥林巴斯映像株式会社 Content editing apparatus and method therefor
CN105279222A (en) * 2014-07-16 2016-01-27 孟智平 Media editing and playing method and system
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
CN112287128A (en) * 2020-10-23 2021-01-29 北京百度网讯科技有限公司 Multimedia file editing method and device, electronic equipment and storage medium
CN112463996A (en) * 2020-11-19 2021-03-09 长城计算机软件与***有限公司 Audio and video file playing method and device, terminal and storage medium
KR20210050410A (en) * 2019-10-28 2021-05-07 네이버 주식회사 Method and system for suppoting content editing based on real time generation of synthesized sound for video content

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080013916A1 (en) * 2006-07-17 2008-01-17 Videothang Llc Systems and methods for encoding, editing and sharing multimedia files
US8270815B2 (en) * 2008-09-22 2012-09-18 A-Peer Holding Group Llc Online video and audio editing
US8819559B2 (en) * 2009-06-18 2014-08-26 Cyberlink Corp. Systems and methods for sharing multimedia editing projects

Patent Citations (11)

* 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
CN101520806A (en) * 2008-02-29 2009-09-02 奥林巴斯映像株式会社 Content editing apparatus and method therefor
CN105279222A (en) * 2014-07-16 2016-01-27 孟智平 Media editing and playing method and system
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
KR20210050410A (en) * 2019-10-28 2021-05-07 네이버 주식회사 Method and system for suppoting content editing based on real time generation of synthesized sound for video content
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
CN112287128A (en) * 2020-10-23 2021-01-29 北京百度网讯科技有限公司 Multimedia file editing method and device, electronic equipment and storage medium
CN112463996A (en) * 2020-11-19 2021-03-09 长城计算机软件与***有限公司 Audio and video file playing method and device, terminal and storage medium

Also Published As

Publication number Publication date
CN113485968A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN112184856B (en) Multimedia processing device supporting multi-layer special effect and animation mixing
CN108989885B (en) Video file transcoding system, segmentation method, transcoding method and device
CN108495192B (en) Page editing processing method and device
JP4430882B2 (en) COMPOSITE MEDIA CONTENT CONVERSION DEVICE, CONVERSION METHOD, AND COMPOSITE MEDIA CONTENT CONVERSION PROGRAM
CN111787406B (en) Video playing method, electronic equipment and storage medium
CN104540000A (en) Method for generating dynamic thumbnail and terminal
CN110647703A (en) Animation playing method and device, computer equipment and storage medium
CN108847259B (en) Short video production method and device, electronic equipment and computer storage medium
CN112637675B (en) Video generation method, device, electronic equipment and storage medium
CN111625308B (en) Information display method and device and electronic equipment
US20160026728A1 (en) Interaction Method And Device Between Browsers And Browser
CN112689170B (en) Content playing method of display terminal, display terminal and readable storage medium
US20140099041A1 (en) Method and apparatus for encoding cloud display screen by using application programming interface information
CN113485968B (en) Editing method, device, equipment and storage medium based on time line
US9911460B2 (en) Fast and smart video trimming at frame accuracy on generic platform
CN112565886A (en) Video frame extraction method and device, electronic equipment and readable storage medium
CN113938750A (en) Video processing method and device, electronic equipment and storage medium
CN110659372A (en) Picture input and access method, device and equipment
CN111581402A (en) Method and system for generating content test material, electronic equipment and storage medium
KR100878528B1 (en) Method for editing and apparatus thereof
CN111401006A (en) Document playing method, device and system and computer readable storage medium
CN105162817A (en) Method and apparatus for image upload
CN112449209B (en) Video storage method and device, cloud server and computer readable storage medium
CN113099270A (en) File storage method, decoding method, device, storage medium and electronic device
CN112463998A (en) Album resource processing method, apparatus, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
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

GR01 Patent grant
GR01 Patent grant