Audio and video editing method, device, electronic equipment and storage medium
By introducing audio and video editing plug-ins into the browser, the problems of low efficiency and weak functional audio and video editing in the existing technology are solved, and a simplified editing process and a better user experience are achieved.
Patent Information
- Application Number
- CN202211358778.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-01
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2042-11-01
AI Technical Summary
The prior art audio and video editing process requires multiple applications or software, resulting in low efficiency and weak functionality.
By introducing an audio and video editing plug-in in the browser, when it is detected that the audio and video data to be edited is played, the target audio and video editing plug-in is obtained and determined. Based on the functional module of the plug-in, the audio and video data is edited and processed, and the target audio and video data is routed through the target audio Playback results.
The browser-based audio and video plug-in editing is realized, which simplifies the editing process, improves the user experience, and makes the target audio routing scalable.
Smart Images

Figure CN115691571B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the technical field of audio and video editing and processing, and in particular to an audio and video editing method, device, electronic device and storage medium. Background Art
[0002] With the development of the Internet, more and more users can edit and publish corresponding audio and video content. In the audio and video editing scenario, the operations that need to be performed include audio and video data storage, cropping, playback control, reverberation, etc.
[0003] The implementation of the above operations often requires different applications or software to complete, which has the problems of low efficiency and weak functionality. Summary of the invention
[0004] The present invention provides an audio and video editing method, device, electronic device and storage medium to achieve the effect of plug-in editing of audio and video data to be edited based on a browser, simplifying the audio and video editing process, and introducing an audio and video editing plug-in to make the target audio routing scalable, further improving the user experience.
[0005] In a first aspect, an embodiment of the present disclosure provides an audio and video editing method, the method comprising:
[0006] When a trigger is detected to play the audio and video data to be edited, each audio and video editing plug-in to be used is obtained;
[0007] Determine a target audio and video editing plug-in according to the pre-received audio and video state management data and each of the audio and video editing plug-ins to be used;
[0008] Editing and processing the audio and video data to be edited based on the functional module integrated in the target audio and video editing plug-in to obtain the target audio and video data;
[0009] The target audio and video data is played based on the target audio route.
[0010] In a second aspect, the present disclosure also provides an audio and video editing device, the device comprising:
[0011] An audio and video editing plug-in acquisition module is used to acquire each audio and video editing plug-in to be used when a trigger is detected to play the audio and video data to be edited;
[0012] A target audio and video editing plug-in determination module, used to determine a target audio and video editing plug-in according to the pre-received audio and video state management data and each of the audio and video editing plug-ins to be used;
[0013] The audio and video data processing module to be edited is used to edit the audio and video data to be edited based on the functional module integrated in the target audio and video editing plug-in to obtain the target audio and video data;
[0014] The target audio and video data playing module is used to play the target audio and video data based on the target audio route.
[0015] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0016] one or more processors;
[0017] a storage device for storing one or more programs,
[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the audio and video editing method as described in any of the embodiments of the present disclosure.
[0019] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the audio and video editing method as described in any one of the embodiments of the present disclosure.
[0020] The technical solution of the embodiment of the present disclosure is as follows: when a trigger for playing the audio and video data to be edited is detected, each audio and video editing plug-in to be used is obtained, and then, based on the pre-received audio and video status management data and each audio and video editing plug-in to be used, a target audio and video editing plug-in is determined; further, the audio and video data to be edited is edited based on the functional modules integrated in the target audio and video editing plug-in to obtain the target audio and video data; finally, the target audio and video data is played based on the target audio route, which solves the problem in the prior art that the editing process often requires different applications or software to complete, resulting in low efficiency and weak functionality, and achieves the effect of plug-in editing of the audio and video data to be edited based on the browser, simplifies the audio and video editing process, and the introduction of the audio and video editing plug-in can make the target audio route scalable, further improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0022] Figure 1 It is a flowchart of an audio and video editing method provided by an embodiment of the present disclosure;
[0023] Figure 2 is a schematic diagram of the structure of a plug-in management module provided in an embodiment of the present disclosure;
[0024] Figure 3 It is a flowchart of an audio and video editing method provided by an embodiment of the present disclosure;
[0025] Figure 4 It is a flowchart of an audio and video editing method provided by an embodiment of the present disclosure;
[0026] Figure 5 It is a flowchart of an audio and video editing method provided by an embodiment of the present disclosure;
[0027] Figure 6 It is a structural schematic diagram of an audio and video editing device provided by an embodiment of the present disclosure;
[0028] Figure 7 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0030] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0031] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0032] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0033] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0034] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0035] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0036] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0037] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0038] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0039] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0040] Before introducing the technical solution, an example of an application scenario can be first described. The technical solution of the embodiment of the present disclosure can be applied to any scenario where audio and video data are edited and processed. For example, the browser-based display interface can display the audio and video data to be edited. When a trigger operation on the audio and video data to be edited is detected, the target audio and video editing plug-in can be determined from each pre-built audio and video editing plug-in to be used, so as to edit the audio and video data to be edited based on the target audio and video editing plug-in. At the same time, a target audio route is created, so that after obtaining the target audio and video data, the target audio and video data can be played based on the target audio route, so that the editing and playing process of the audio and video data to be edited can be realized on the browser display interface, achieving the effect of simplifying the audio and video data editing and processing flow.
[0041] Figure 1 This is a flowchart of an audio and video editing method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation where the audio and video data to be edited is edited based on a pre-built target audio and video editing plug-in, and the target audio and video data obtained after the editing is played. The method can be executed by an audio and video editing device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, a PC or a server. The technical solution provided by the embodiment of the present disclosure can be executed based on the client, can be executed based on the server, or can be executed based on the cooperation of the client and the server.
[0042] like Figure 1 As shown, the method includes:
[0043] S110. When a trigger for playing the audio or video data to be edited is detected, each audio or video editing plug-in to be used is obtained.
[0044] Among them, the audio and video data to be edited can be a multimedia data stream that stores sound content and image content. At the same time, the sound content and image content stored in this data stream can be the sound information and image information that the user currently needs to edit. The audio and video data to be edited can also be a data stream that needs to be edited again. For example, the re-editing may include: audio and video data storage, cropping, playback control, reverberation, and filtering. Exemplarily, the audio and video data to be edited can be any audio and video clip that needs to be edited. In actual application, multiple audio and video data can be uploaded to the system, and a playback trigger control can be set in any area of these audio and video data. When a trigger operation of the playback trigger control of any audio and video data is detected, this audio and video data can be used as the audio and video data to be edited, and each audio and video editing plug-in to be used can be obtained.
[0045] The audio and video editing plug-in to be used may be a functional plug-in capable of editing and processing audio and video data. Exemplarily, the audio and video editing plug-in to be used may include a noise reduction editing plug-in, a volume editing plug-in, a hotkey editing plug-in, a reverberation editing plug-in, an export editing plug-in, and a fade-in and fade-out plug-in.
[0046] Optionally, the audio and video editing plug-in to be used includes multiple hook files, and the hook files include function files for editing the audio and video data to be edited.
[0047] In the present embodiment, the hook file can be a file for performing audio and video editing operations. Optionally, the hook file may include but is not limited to a hook file for playing audio and video data to be edited (play), a hook file for playing audio tracks (playTrack), a hook file for playing clips (play Clip), a hook file for stopping playback (stop), a hook file for content change (content Change), a hook file for selection change (selection Change), and a hook file for destroying audio and video data to be edited (destory). It should be noted that the hook in the audio and video editing plug-in to be used can be determined based on the developer's needs, and in the subsequent application process, the newly generated hook file can also be sent to each audio and video editing plug-in to be used at any time. The advantage of such a setting is that the creation of a recording module in the target audio route can be realized, the target audio route is expanded, and the effects of multiple audio editing processes can be achieved.
[0048] For example, it can be combined with Figure 2 The plug-in system architecture including the audio and video editing plug-in to be used is explained: the plug-in system's inclusion relationship can be that the audio editor includes a plug-in management module, the plug-in management module includes at least one audio and video editing plug-in to be used, wherein each audio and video editing plug-in to be used includes multiple hook files. The hook files included in the audio and video editing plug-in to be used may include a hook file for playing the audio and video data to be edited, a hook file for playing the audio track, a hook file for playing the clip, a hook file for stopping the playback, a hook file for changing the content, a hook file for changing the selection, and a hook file for destroying the audio and video data to be edited.
[0049] Among them, the hook file for playing audio and video data to be edited can be triggered once when a trigger operation of the audio and video data to be edited is detected; the hook file for playing audio tracks can be triggered once when a trigger operation of any audio track data in the audio and video data to be edited is detected when playing the audio and video data to be edited. By triggering this hook file, the web page audio interface context, audio track data and the connection method of the target audio route can be obtained; the hook file for playing clips can be triggered once when a trigger operation of any audio clip data in the audio and video data to be edited is detected when playing the audio and video data to be edited. By triggering this hook file, the web page audio interface context, audio track data and the connection method of the target audio route can be obtained; the hook file for stopping playback can be triggered once when a stop playback operation is detected; the hook file for content change can be triggered once when the audio and video status management data changes; the hook file for selection change can be triggered once when the to-be-edited area of the audio and video data to be edited changes; the hook file for destroying audio and video data to be edited can be triggered once when the audio editor is destroyed.
[0050] In the actual application process, the audio and video editing plug-ins to be used can be pre-stored in the system plug-in library in the early development stage. When it is detected that the user triggers the playback control of the audio and video data to be edited, each audio and video editing plug-in to be used can be directly called from the plug-in library.
[0051] It should be noted that the audio and video editing plug-ins to be used in the plug-in library are in a dynamically updated state. When other audio and video editing plug-ins are developed based on user needs in the subsequent application process, these subsequently developed audio and video editing plug-ins can be updated to the plug-in library as audio and video editing plug-ins to be used, so that when editing operations on the audio and video data to be edited are detected subsequently, each audio and video editing plug-in to be used can be called.
[0052] It should also be noted that the number of audio and video editing plug-ins to be used and the functions that can be achieved can be set based on actual needs, that is, each audio and video plug-in to be used can correspond to a plug-in management system, and this plug-in management system is extensible, and each audio and video editing plug-in to be used in the plug-in management system can be updated at any time.
[0053] In a specific implementation, when a user wants to edit any audio or video to be edited, a trigger operation can be input into the playback trigger control of the audio or video data to be edited. When the trigger for playing the audio or video data to be edited is detected, each audio or video editing plug-in to be used can be obtained to process the audio or video data to be edited based on each audio or video editing plug-in to be used.
[0054] S120 , determining a target audio and video editing plug-in according to the pre-received audio and video status management data and each audio and video editing plug-in to be used.
[0055] In this embodiment, the audio and video state management data can be used to characterize all data expressions of the audio and video data to be edited during the editing process. The audio and video state management data may include all data applied to the editing process of the audio and video data to be edited. Optionally, the audio and video state management data may include track data, audio data, audio effect parameters, audio meta information, and global configuration data. Exemplarily, the audio and video state management data can be represented by JSON. The target audio and video editing plug-in can be a plug-in that edits the audio and video data to be edited. It should be noted that the target audio and video editing plug-in can be one of the audio and video editing plug-ins to be used, or it can be multiple plug-ins in the audio and video editing plug-ins to be used.
[0056] In actual applications, corresponding audio and video status management data can be generated based on the editing and processing operations on the audio and video data to be edited. When the audio and video editing and processing interface is opened, the pre-generated audio and video status management data can be sent to the audio and video editing system, so that when the user's playback trigger operation on the audio and video data to be edited is detected, the editing and processing operations to be performed on the audio and video data to be edited can be determined according to the audio and video status management data.
[0057] In actual application, when determining the target audio and video editing plug-in in each audio and video editing plug-in to be used, each audio and video editing plug-in to be used can be traversed according to the audio and video status management data. When it is detected that the audio and video status management data contains a field corresponding to at least one audio and video editing plug-in to be used, these audio and video editing plug-ins to be used can be used as target audio and video editing plug-ins.
[0058] Optionally, a target audio and video editing plug-in is determined based on pre-received audio and video status management data and each audio and video editing plug-in to be used, including: determining the number of audio tracks based on the audio and video status management data, and calling the corresponding audio track data in sequence; based on the audio track data and a data set corresponding to at least one audio and video editing feature data in the audio and video status management data; for each audio and video editing plug-in to be used, if the audio and video editing feature data in the data set is included in the current audio and video editing plug-in to be used, determining that the current audio and video editing plug-in to be used is the target audio and video editing plug-in.
[0059] Those skilled in the art should understand that audio tracks are parallel "tracks" displayed one by one in audio editing software. Each audio track defines the properties of the audio track, such as the timbre, timbre library, number of channels, input / output ports, and volume of the audio track. Accordingly, the audio track data can be data used to characterize the properties of the audio track. Optionally, the audio track data can be used to describe the details, position, and playback duration of the audio track. Audio and video editing feature data can be data used to characterize the properties of audio and video editing.
[0060] In a specific implementation, after obtaining each audio and video editing plug-in to be used, in order to determine the target audio and video editing plug-in in each audio and video editing plug-in to be used, the pre-received audio and video status management data can be parsed and processed, and the number of audio tracks can be determined according to the audio and video status management data, and each audio track data can be called in sequence. Further, a data set corresponding to at least one audio and video editing feature data is determined in the audio and video status management data, and each audio and video editing plug-in to be used is traversed according to each audio data and each data set. For each audio and video editing plug-in to be used, if data matching the audio and video editing feature data in each data set is detected in the current audio and video editing plug-in to be used, the current audio and video editing plug-in can be used as the target audio and video editing plug-in. The advantage of such a setting is that the target audio and video editing plug-in corresponding to the audio and video status management data can be determined in multiple audio and video editing plug-ins to be used, so that the effect of editing the audio and video data to be edited based on user needs can be achieved.
[0061] S130 , editing the audio and video data to be edited based on the functional modules integrated in the target audio and video editing plug-in to obtain the target audio and video data.
[0062] Among them, the function module can be a collection of program elements such as data descriptions and executable statements. In this embodiment, the function module can be a collection of execution statements and data containing specific functions that can be implemented by the target audio and video editing plug-in. It should be noted that different target audio and video editing plug-ins can implement different audio and video editing functions. Therefore, the data files contained in the function modules integrated in each target audio and video editing plug-in are also different; and in the actual application process, the function modules integrated in the target audio and video editing plug-in can be dynamically adjusted, and the specific function modules included in the target audio and video editing plug-in can be determined based on the user's current needs during each editing process.
[0063] In this embodiment, the target audio and video data may be a multimedia data stream storing audio content and image content. Meanwhile, the audio content stored in the data stream may be audio information that meets the current needs of the user.
[0064] In the actual application process, after determining the target audio and video editing plug-in, the functional module integrated in the target audio and video editing plug-in can be determined, so as to edit the audio and video data to be edited based on the audio and video editing execution statements contained in the functional module, so that the audio and video data to be edited can be edited and processed into audio and video data that meets the current needs of the user. At this time, the audio and video data obtained after the editing process can be used as the target audio and video data. Exemplarily, if the target audio and video plug-in is a volume editing plug-in, and the editing data contained in its integrated functional module is to adjust the volume to "1", then the target audio and video data finally obtained is the audio and video data that adjusts the volume of the audio and video data to be edited to "1".
[0065] It should be noted that when the function module integrated in the target audio and video editing plug-in is used to edit the audio and video data to be edited, when there are multiple target audio and video plug-ins, each target audio and video editing plug-in can be traversed and processed. At the same time, since the audio and video data to be edited is to be played based on the terminal device after the editing process is completed and the target audio and video data is obtained, in order to realize the playback function of the target audio and video data, after each target audio and video editing plug-in has finished processing the audio and video data to be edited, a corresponding target audio route will be generated to play the target audio and video data based on the target audio route. It should also be noted that in order to realize the function of playing the target audio and video data based on the target audio route, an audio processing module that includes both input and output can also be created to connect the target audio and video data with its corresponding playback terminal, thereby realizing playback.
[0066] Based on this, in the process of determining the target audio and video editing plug-in and editing the audio and video data to be edited based on the target audio and video editing plug-in, it also includes: creating a recording module to connect to the target audio route.
[0067] In this embodiment, the recording module can be a module for processing audio and video data and playing the processed audio and video data. The target audio route can be an audio processing graph constructed by linked audio modules. The target audio route can include multiple modules, and optionally, can include a data source module, a recording module, and a destination module. The target audio route can control the creation of the modules it includes, as well as the execution of audio processing or data stream decoding.
[0068] In actual application, in the process of editing and processing the audio and video data to be edited based on the target audio and video editing plug-in, in order to connect the processed audio and video data to be edited to the playback terminal for playback, a corresponding recording module can be created and connected to the target audio route, so that the processed audio and video data to be edited can be connected to a predetermined destination after output. The advantage of such a setting is that the construction of the target audio route can be realized, so that the target audio and video data can be played based on the constructed target audio route, thereby realizing the playback function of the target audio and video data.
[0069] S140: Play the target audio and video data based on the target audio route.
[0070] In this embodiment, after the target audio and video data is obtained, the target audio and video data can be played according to the modules sequentially connected in the target audio routing.
[0071] It should be noted that if there are multiple target audio and video editing plug-ins, corresponding target audio routes will be generated after each target audio and video editing plug-in completes the editing of the audio and video data to be edited. However, when the target audio and video data is played based on the target audio route, the target audio route for finally playing the target audio and video data can be determined in each target audio route, so that the target audio and video data can be played based on the determined target audio route.
[0072] Based on this, on the basis of the above technical solutions, it also includes: using the target audio route corresponding to the last target audio and video editing plug-in as the target audio route for finally playing the target audio and video data.
[0073] In actual application, after multiple target audio and video editing plug-ins edit the audio and video data to be edited, target audio routes corresponding to each target audio and video plug-in will be generated. After all target audio and video editing plug-ins are traversed, the target audio route corresponding to the last target audio and video editing plug-in can be used as the target audio route for the final playback of the target audio and video data, so that this target audio route can play the target audio and video data. The advantage of this setting is that the playback function of the target audio and video data can be realized, and the visualization of the audio and video data editing process can be realized.
[0074] It should be noted that the audio and video editing and processing system provided by this implementation may also include a selection management module (Selection Manager) and a clipboard management module (Clopboard Manager), wherein in the SelectionManager, Selection can be described by seconds, and the audio and video data to be edited can be deleted, copied, and other operations can be performed through the selection; a clipboard is provided in the Clopboard Manager, which can perform corresponding operations on the audio and video data to be edited, and it also depends on the Selection Manager.
[0075] For example, it can be combined with Figure 3 The specific execution process of the audio and video editing method is described.
[0076] like Figure 3 As shown, when the playback operation of the audio and video data to be edited is detected, each audio and video editing plug-in to be used can be obtained; based on the plug-in management module, each audio and video editing plug-in to be used is traversed; according to the number of audio tracks (Track) in the audio and video status management data, play Track is called in sequence, and the corresponding audio track data, i.e., audio track 1 and audio track 2, are uploaded; based on the audio track data and the audio and video editing feature data (Attributes) in the audio and video status management data, the target audio and video plug-in is determined to be a noise reduction editing plug-in and a volume editing plug-in from each audio and video editing plug-in to be used, and a corresponding recording module (Audio node) is created and connected to the target audio routing (Audio RoutingGraph); according to the number of audio clips (Clip) in the audio status management data, play is called in sequence. Clip, and upload the corresponding audio clip data, that is, audio track 1 includes audio clip 1, audio clip 2 and audio clip 3, and audio track 2 includes audio clip 1; based on the audio clip data and the audio and video editing feature data (Attributes) in the audio and video status management data, determine the target audio and video plug-in as a noise reduction editing plug-in and a volume editing plug-in from each audio and video editing plug-in to be used, and create a corresponding recording module (Audio node) connected to the target audio routing (Audio RoutingGraph); when the traversal of each target audio and video editing plug-in is completed, the target audio and video data can be played according to the target audio routing (Audio Routing Graph) corresponding to the last target audio and video editing plug-in.
[0077] The technical solution of the embodiment of the present disclosure is as follows: when a trigger for playing the audio and video data to be edited is detected, each audio and video editing plug-in to be used is obtained, and then, based on the pre-received audio and video status management data and each audio and video editing plug-in to be used, a target audio and video editing plug-in is determined; further, the audio and video data to be edited is edited based on the functional modules integrated in the target audio and video editing plug-in to obtain the target audio and video data; finally, the target audio and video data is played based on the target audio route, which solves the problem in the prior art that the editing process often requires different applications or software to complete, resulting in low efficiency and weak functionality, and achieves the effect of plug-in editing of the audio and video data to be edited based on the browser, simplifies the audio and video editing process, and the introduction of the audio and video editing plug-in can make the target audio route scalable, further improving the user experience.
[0078] Figure 4 This is a flowchart of an audio and video editing method provided by an embodiment of the present disclosure. Based on the above embodiment, the audio and video data to be edited can be determined from the uploaded audio and video data to be processed, and the audio and video status management data can be obtained to edit the audio and video data to be edited based on the audio and video status management data. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above embodiment are not repeated here.
[0079] like Figure 4 As shown, the method specifically comprises the following steps:
[0080] S210: Receive at least one uploaded audio or video data to be processed, and determine audio or video data to be edited based on the at least one audio or video data to be processed.
[0081] In this embodiment, the audio and video data to be processed may be the audio and video data that currently needs to be processed and uploaded to the audio and video editing system. The audio and video data to be processed may be one or more. When there is one audio and video data to be processed, the audio and video data to be processed may be used as the audio and video data to be edited; when there are multiple audio and video data to be processed, the audio and video data to be edited may be determined from the multiple audio and video data to be processed based on user needs.
[0082] It should be noted that the audio and video data to be processed can be uploaded to the system in real time or periodically, so that the audio and video data to be edited can be determined based on the uploaded audio and video data to be processed.
[0083] In actual application, the audio and video data to be processed that need to be edited can be uploaded to the system, and the uploaded audio and video data to be processed can be stored in the database. When the editing trigger operation of each audio and video data to be processed is detected, each audio and video data to be processed can be displayed in the display interface in a list or other display form, so that the user can select from the audio and video editing data to be processed to determine the audio and video data to be edited. Another implementation method can be: after storing the uploaded audio and video data to be processed in the database, the audio and video data filtering conditions can be entered in the search box displayed in the display interface to filter the audio and video data to be processed based on the filtering conditions entered by the user. At this time, the audio and video data to be processed displayed in the filtering result display interface can be used as the audio and video data to be edited.
[0084] S220: Acquire audio and video status management data, and edit at least one audio and video data to be edited based on the audio and video status management data.
[0085] In this embodiment, after uploading each audio and video data to be processed to the system, in order to determine the entire data expression of the audio and video data to be edited during the entire editing process, it is also possible to obtain audio and video status management data before editing each audio and video data to be edited, so as to determine the target audio and video editing plug-in based on at least one audio and video editing feature data contained in the audio and video status management data, so that the audio and video data to be edited can be edited based on the target audio and video editing plug-in.
[0086] Optionally, obtaining audio and video status management data includes: obtaining at least one audio and video editing feature data corresponding to the status object, and updating the audio and video status management data based on the at least one audio editing feature data.
[0087] The state object may be an object with instance variables, may store data, and is non-thread-safe. In this embodiment, the state object may store audio and video editing feature data, and each audio and video editing feature data may be readable and writable at any time.
[0088] In actual application, when determining the audio and video state management data, at least one audio and video editing feature data corresponding to the state object can be first obtained, and then the audio and video state management data can be updated according to each audio and video editing feature data, so that the audio and video state management data can include various attribute features in the audio and video editing process, thereby, based on the audio and video state management data, the target audio and video editing plug-in for editing the audio and video data to be edited can be determined. The advantage of this setting is that the editing function to be implemented in the audio and video editing process can be determined, so that the target audio and video editing plug-in can be selected.
[0089] It should be noted that the audio and video status management data also includes various attribute feature data of the audio, which can be set based on user needs.
[0090] It should be noted that the audio and video status management data contains all data of the audio and video data to be edited during the editing process. When the user has an editing requirement for the audio and video data to be edited, the audio and video status management data can be changed to edit the audio and video data based on the changed audio and video status management data. At the same time, whenever the audio and video status management data changes, the target audio route used to play the target audio and video data will also change accordingly.
[0091] Based on this, on the basis of the above technical solutions, it also includes: when a change in the audio and video status management data is detected, the audio and video data to be edited is traversed based on the audio management module, and the audio and video data to be edited is edited based on the updated audio and video status management data.
[0092] Among them, the audio management module can be a data set used to manage audio and video data.
[0093] In actual applications, when a change in the audio and video status management data is detected, the audio management module can be triggered. Then, the audio management module can traverse all audio clips in the audio and video data to be edited according to the changed audio and video status management data, and recreate the modules connected in the target audio route, thereby realizing the mapping relationship between the updated audio and video status management data and the audio editing system based on the recreated target audio route. The advantage of this setting is that it simplifies the editing process of the audio and video data to be edited, improves the editing process efficiency, and the editing process can be changed at any time, which improves the user experience.
[0094] It should also be noted that in the actual editing process, you may encounter a situation where you want to undo the currently executed editing operation and restore it to the state before editing. At this time, you can create a history management module for storing the data of each editing operation, so that when the undo operation is detected, you can retrieve the data required by the user from the module.
[0095] On the basis of the above-mentioned technical solutions, it also includes: after determining the audio and video status management data, the audio and video status management data is saved in the history management module, so that when the undo or rollback editing instruction corresponding to the audio and video data to be edited is received, the corresponding audio and video status management data is retrieved from the history management module to edit the audio and video data to be edited.
[0096] In this embodiment, the history management module may be a collection of data corresponding to each editing operation in the editing process. The undo or rollback editing instruction may be a pre-written program code, which may be used to perform the undo or rollback operation. In actual application, an undo or rollback control may be pre-set in any area of the audio and video editing interface, and when a user triggers the undo or rollback control, an undo or rollback editing instruction may be generated and sent to the server, so that the server may respond to the undo or rollback editing instruction when it receives it.
[0097] In a specific implementation, after determining the audio and video status management data, the audio and video status management data can be stored in a history management module, and whenever a change in the audio and video status management data is detected, the changed audio and video status management data can be stored in the history management module. At the same time, the audio and video status management data previously stored in the history management module will not be deleted.
[0098] Furthermore, when it is detected that the user triggers the undo or rollback control set in the preview, an undo or rollback editing instruction can be generated and sent to the server. When the server receives the undo or rollback editing instruction, the corresponding audio and video status management data can be retrieved from the history management module, so as to edit the audio and video data to be edited again based on the retrieved audio and video status management data. The advantage of such a setting is that it can realize the storage of historical editing and processing operation data, so that it can be called at any time later, and when a fault problem occurs, it can be troubleshooted based on the pre-stored audio and video status management data.
[0099] It should be noted that every time the audio and video status management data changes, it must be stored in the history management module so that the history management module stores audio and video status management data in multiple states, and the undo or rollback editing operation is to undo the editing processing operation at the current moment, so that the audio and video data to be edited rolls back to the state before editing. At this time, if the audio and video status management data is to be retrieved from the history management module, the audio and video status management data corresponding to the undo or rollback editing operation can be determined from the multiple audio and video status management data corresponding to the data to be edited, so that the audio and video data to be edited can be edited based on the retrieved audio and video status management data.
[0100] Based on this, on the basis of the above technical solutions, it also includes: when an undo or rollback control is detected, the audio and video status management data with the shortest distance from the current moment is obtained from the history management module, and the audio and video status management data is reused.
[0101] The current time may be a triggering time for canceling or rolling back the control.
[0102] In actual applications, when the audio and video status management data is saved to the history management module, a corresponding timestamp is generated so that the audio and video status management data is stored in the history management module in the time order shown by the timestamp. When the triggering operation of the undo or rollback control is detected, the current moment can be determined. When the corresponding audio and video status management data is retrieved from the history management module, the audio and video status management data with the smallest distance from the current moment can be determined according to the current moment and the timestamp corresponding to each audio and video status management data, and this audio and video status management data is used as the audio and video status management data corresponding to the undo or rollback operation, and the audio and video data to be edited is edited again based on this audio and video status management data, so that the audio and video data to be edited can be rolled back to the state required by the user. The advantage of such a setting is that when the undo or rollback operation is detected, the corresponding audio and video status management data can be quickly retrieved, so that the undo or rollback function can be quickly realized.
[0103] S230: When a trigger for playing the audio or video data to be edited is detected, each audio or video editing plug-in to be used is obtained.
[0104] S240: Determine a target audio and video editing plug-in according to the pre-received audio and video status management data and each audio and video editing plug-in to be used.
[0105] S250 , editing the audio and video data to be edited based on the functional modules integrated in the target audio and video editing plug-in to obtain the target audio and video data.
[0106] S260: Play the target audio and video data based on the target audio route.
[0107] For example, it can be combined with Figure 5The specific execution flow of the audio and video editing method provided in this embodiment is described as follows: 1. Perform a clipping operation on the audio clip 1 (Clip 1) and call the clip.move method in the state object (State module); 2. Process the movement logic based on clip.move in the state object (State module); 3. Based on the State module, call the audio and video state management data module (Voice Set) to update the result after the move to the Voice Set; 4. Obtain the updated Voice Set, save the data snapshot, and save it to the history management module (History Manager); 5. When the content of the Voice Set changes, notify the audio management module (Audio Manager); 6. Based on the Audio Manager, traverse the audio and video state management data and recreate the data source module (Web audio Source Node), thereby completing the mapping relationship between VoiceSet and Web audio.
[0108] The technical solution of the disclosed embodiment receives at least one uploaded audio and video data to be processed, determines the audio and video data to be edited based on the at least one audio and video data to be processed, and then obtains audio and video status management data to edit the at least one audio and video data to be edited based on the audio and video status management data. When a trigger for playing the audio and video data to be edited is detected, each audio and video editing plug-in to be used is obtained, and a target audio and video editing plug-in is determined based on the pre-received audio and video status management data and each audio and video editing plug-in to be used. The audio and video data to be edited are edited based on the functional modules integrated in the target audio and video editing plug-in to obtain the target audio and video data, and the target audio and video data are played based on the target audio routing, thereby achieving the effect of editing the audio and video data to be edited based on the browser, and by processing the audio and video status management data to realize the corresponding editing and processing functions, the multi-dimensional audio and video data expression capability is improved, and the effect of expressing a complex editing and processing process based on data is achieved.
[0109] Figure 6 is a schematic diagram of the structure of an audio and video editing device provided by an embodiment of the present disclosure, such as Figure 6 As shown, the device includes: an audio and video editing plug-in acquisition module 310, a target audio and video editing plug-in determination module 320, a to-be-edited audio and video data processing module 330 and a target video determination module 340.
[0110] The audio and video editing plug-in acquisition module 310 is used to acquire each audio and video editing plug-in to be used when a trigger to play the audio and video data to be edited is detected;
[0111] A target audio and video editing plug-in determination module 320 is used to determine a target audio and video editing plug-in according to the pre-received audio and video state management data and each of the audio and video editing plug-ins to be used;
[0112] The audio and video data processing module 330 to be edited is used to edit the audio and video data to be edited based on the functional modules integrated in the target audio and video editing plug-in to obtain the target audio and video data;
[0113] The target audio and video data playing module 340 is used to play the target audio and video data based on the target audio route.
[0114] On the basis of the above technical solutions, the device further includes: a module for receiving audio and video data to be processed and a module for acquiring audio and video status management data.
[0115] The to-be-processed audio and video data receiving module is used to receive at least one uploaded audio and video data to be processed before the detection triggers the playing of the to-be-edited audio and video data, so as to determine the to-be-edited audio and video data based on the at least one to-be-processed audio and video data;
[0116] The audio and video status management data acquisition module is used to acquire the audio and video status management data so as to edit the at least one audio and video data to be edited based on the audio and video status management data.
[0117] On the basis of the above technical solutions, the audio and video status management data acquisition module includes: an audio and video status management data acquisition unit.
[0118] The audio and video state management data acquisition unit is used to acquire at least one audio and video editing feature data corresponding to the state object, and update the audio and video state management data based on the at least one audio editing feature data.
[0119] On the basis of the above technical solutions, the device further includes: an audio and video status management data storage module.
[0120] The audio and video status management data saving module is used to save the audio and video status management data into the history management module after determining the audio and video status management data, so that when receiving the undo or rollback editing instruction corresponding to the audio and video data to be edited, the corresponding audio and video status management data is retrieved from the history management module to edit the audio and video data to be edited.
[0121] On the basis of the above technical solutions, the device further includes: an audio and video status management data multiplexing module.
[0122] The audio and video status management data multiplexing module is used to obtain the audio and video status management data with the shortest distance from the current moment from the history management module when a cancel or rollback control is detected, and multiplex the audio and video status management data.
[0123] On the basis of the above technical solutions, the device further includes: a module for traversing audio and video data to be edited.
[0124] The audio and video data traversal module to be edited is used to traverse the audio and video data to be edited based on the audio management module when a change in the audio and video status management data is detected, so as to edit and process the audio and video data to be edited based on the updated audio and video status management data.
[0125] On the basis of the above technical solutions, the audio and video editing plug-in to be used includes a plurality of hook files, and the hook files include function files for editing the audio and video data to be edited.
[0126] On the basis of the above-mentioned technical solutions, the target audio and video editing plug-in determination module 320 includes: an audio track data calling unit, a data set based unit and a target audio and video editing plug-in determination unit.
[0127] An audio track data calling unit, used to determine the number of audio tracks based on the audio and video state management data, and call corresponding audio track data in sequence;
[0128] The data set is based on a unit, and is used for a data set corresponding to at least one audio and video editing feature data in the audio track data and the audio and video state management data;
[0129] The target audio and video editing plug-in determining unit is used to determine, for each audio and video editing plug-in to be used, if the audio and video editing plug-in currently to be used includes the audio and video editing feature data in the data set, that the audio and video editing plug-in currently to be used is the target audio and video editing plug-in.
[0130] On the basis of the above technical solutions, the device further includes: a recording module creation module.
[0131] The recording module creation module is used to create a recording module to connect to the target audio route during the process of determining the target audio and video editing plug-in and editing the audio and video data to be edited based on the target audio and video editing plug-in.
[0132] Based on the above technical solutions, the device further includes: a target audio route determination module.
[0133] The target audio route determination module is used to use the target audio route corresponding to the last target audio and video editing plug-in as the target audio route for finally playing the target audio and video data.
[0134] The technical solution of the embodiment of the present disclosure is as follows: when a trigger for playing the audio and video data to be edited is detected, each audio and video editing plug-in to be used is obtained, and then, based on the pre-received audio and video status management data and each audio and video editing plug-in to be used, a target audio and video editing plug-in is determined; further, the audio and video data to be edited is edited based on the functional modules integrated in the target audio and video editing plug-in to obtain the target audio and video data; finally, the target audio and video data is played based on the target audio route, which solves the problem in the prior art that the editing process often requires different applications or software to complete, resulting in low efficiency and weak functionality, and achieves the effect of plug-in editing of the audio and video data to be edited based on the browser, simplifies the audio and video editing process, and the introduction of the audio and video editing plug-in can make the target audio route scalable, further improving the user experience.
[0135] The video processing device provided in the embodiments of the present disclosure can execute the audio and video editing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0136] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0137] Figure 7 Schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 7 , which shows an electronic device (eg, Figure 7 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0138] like Figure 7As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.
[0139] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0140] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0141] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0142] The electronic device provided in the embodiment of the present disclosure and the audio and video editing method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0143] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the audio and video editing method provided by the above embodiments is implemented.
[0144] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0145] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0146] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0147] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0148] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0149] When a trigger is detected to play the audio and video data to be edited, each audio and video editing plug-in to be used is obtained;
[0150] Determine a target audio and video editing plug-in according to the pre-received audio and video state management data and each of the audio and video editing plug-ins to be used;
[0151] Editing and processing the audio and video data to be edited based on the functional module integrated in the target audio and video editing plug-in to obtain the target audio and video data;
[0152] The target audio and video data is played based on the target audio route.
[0153] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0154] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0155] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0156] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0157] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0158] According to one or more embodiments of the present disclosure, [Example 1] provides an audio and video editing method, the method comprising:
[0159] When a trigger is detected to play the audio and video data to be edited, each audio and video editing plug-in to be used is obtained;
[0160] Determine a target audio and video editing plug-in according to the pre-received audio and video state management data and each of the audio and video editing plug-ins to be used;
[0161] Editing and processing the audio and video data to be edited based on the functional module integrated in the target audio and video editing plug-in to obtain the target audio and video data;
[0162] The target audio and video data is played based on the target audio route.
[0163] According to one or more embodiments of the present disclosure, [Example 2] provides an audio and video editing method, the method further comprising:
[0164] Optionally, receiving at least one uploaded audio and video data to be processed, so as to determine the audio and video data to be edited based on the at least one audio and video data to be processed;
[0165] Acquire audio and video status management data to edit the at least one audio and video data to be edited based on the audio and video status management data.
[0166] According to one or more embodiments of the present disclosure, [Example 3] provides an audio and video editing method, the method further comprising:
[0167] Optionally, at least one audio and video editing feature data corresponding to the state object is obtained, and the audio and video state management data is updated based on the at least one audio editing feature data.
[0168] According to one or more embodiments of the present disclosure, [Example 4] provides an audio and video editing method, the method further comprising:
[0169] Optionally, after determining the audio and video status management data, the audio and video status management data is saved in a history management module, so that when an undo or rollback editing instruction corresponding to the audio and video data to be edited is received, the corresponding audio and video status management data is retrieved from the history management module to edit the audio and video data to be edited.
[0170] According to one or more embodiments of the present disclosure, [Example 5] provides an audio and video editing method, the method further comprising:
[0171] Optionally, when an undo or rollback control is detected, the audio and video state management data with the shortest distance from the current moment is obtained from the history management module, and the audio and video state management data is reused.
[0172] According to one or more embodiments of the present disclosure, [Example 6] provides an audio and video editing method, the method further comprising:
[0173] Optionally, when a change in the audio and video status management data is detected, the audio and video data to be edited is traversed based on the audio management module to edit and process the audio and video data to be edited based on the updated audio and video status management data.
[0174] According to one or more embodiments of the present disclosure, [Example 7] provides an audio and video editing method, the method further comprising:
[0175] Optionally, the audio and video editing plug-in to be used includes multiple hook files, and the hook files include function files for editing the audio and video data to be edited.
[0176] According to one or more embodiments of the present disclosure, [Example 8] provides an audio and video editing method, the method further comprising:
[0177] Optionally, the number of audio tracks is determined based on the audio and video status management data, and corresponding audio track data is called in sequence;
[0178] A data set corresponding to at least one audio and video editing feature data in the audio track data and the audio and video state management data;
[0179] For each audio and video editing plug-in to be used, if the audio and video editing plug-in currently to be used includes the audio and video editing feature data in the data set and, then the audio and video editing plug-in currently to be used is determined to be the target audio and video editing plug-in.
[0180] According to one or more embodiments of the present disclosure, [Example 9] provides an audio and video editing method, the method further comprising:
[0181] Optionally, in the process of determining the target audio and video editing plug-in and editing and processing the audio and video data to be edited based on the target audio and video editing plug-in, a recording module is created to connect to a target audio route.
[0182] According to one or more embodiments of the present disclosure, [Example 10] provides an audio and video editing method, the method further comprising:
[0183] Optionally, the target audio route corresponding to the last target audio and video editing plug-in is used as the target audio route for finally playing the target audio and video data.
[0184] According to one or more embodiments of the present disclosure, [Example 11] provides an audio and video editing device, the device comprising:
[0185] The audio and video editing plug-in acquisition module is used to acquire each audio and video editing plug-in to be used when a trigger is detected to play the audio and video data to be edited;
[0186] A target audio and video editing plug-in determination module, used to determine a target audio and video editing plug-in according to the pre-received audio and video state management data and each of the audio and video editing plug-ins to be used;
[0187] The audio and video data processing module to be edited is used to edit the audio and video data to be edited based on the functional module integrated in the target audio and video editing plug-in to obtain the target audio and video data;
[0188] The target audio and video data playing module is used to play the target audio and video data based on the target audio route.
[0189] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0190] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0191] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. An audio and video editing method, characterized in that: include: When a trigger is detected to play the audio and video data to be edited, each audio and video editing plug-in to be used is obtained; Determine a target audio and video editing plug-in according to the pre-received audio and video state management data and each of the audio and video editing plug-ins to be used; Editing and processing the audio and video data to be edited based on the functional module integrated in the target audio and video editing plug-in to obtain the target audio and video data; Play the target audio and video data based on the target audio route; Before the detection triggers the playing of the audio and video data to be edited, the method further includes: Receiving at least one uploaded audio and video data to be processed, and determining the audio and video data to be edited based on the at least one audio and video data to be processed; Acquire audio and video status management data to edit the at least one audio and video data to be edited based on the audio and video status management data.
2. The method according to claim 1, characterized in that The obtaining of audio and video status management data includes: At least one audio and video editing feature data corresponding to the state object is obtained, and the audio and video state management data is updated based on the at least one audio editing feature data.
3. The method according to claim 1 or 2, characterized in that: After determining the audio and video status management data, the method further includes: The audio and video status management data is saved in the history management module, so that when an undo or rollback editing instruction corresponding to the audio and video data to be edited is received, the corresponding audio and video status management data is retrieved from the history management module to edit the audio and video data to be edited.
4. The method according to claim 3, characterized in that Also includes: When an undo or rollback control is detected, the audio and video state management data with the shortest distance from the current moment is obtained from the history management module, and the audio and video state management data is reused.
5. The method according to claim 1, characterized in that Also includes: When a change in the audio and video status management data is detected, the audio and video data to be edited is traversed based on the audio management module to edit the audio and video data to be edited based on the updated audio and video status management data.
6. The method according to claim 1, characterized in that The audio and video editing plug-in to be used includes a plurality of hook files, and the hook files include function files for editing the audio and video data to be edited.
7. The method according to claim 1, characterized in that The step of determining a target audio and video editing plug-in according to the pre-received audio and video status management data and each of the audio and video editing plug-ins to be used comprises: Determine the number of audio tracks based on the audio and video status management data, and call corresponding audio track data in sequence; A data set corresponding to at least one audio and video editing feature data in the audio track data and the audio and video state management data; For each audio and video editing plug-in to be used, if the audio and video editing plug-in currently to be used includes the audio and video editing feature data in the data set, the audio and video editing plug-in currently to be used is determined to be the target audio and video editing plug-in.
8. The method according to claim 1, characterized in that In the process of determining the target audio and video editing plug-in and editing and processing the audio and video data to be edited based on the target audio and video editing plug-in, the process further includes: Create a recording module to connect to the target audio route.
9. The method according to claim 1, characterized in that: Also includes: The target audio route corresponding to the last target audio and video editing plug-in is used as the target audio route for finally playing the target audio and video data.
10. An audio and video editing device, characterized in that: include: The audio and video editing plug-in acquisition module is used to acquire each audio and video editing plug-in to be used when a trigger to play the audio and video data to be edited is detected; A target audio and video editing plug-in determination module, used to determine a target audio and video editing plug-in according to the pre-received audio and video state management data and each of the audio and video editing plug-ins to be used; The audio and video data processing module to be edited is used to edit the audio and video data to be edited based on the functional module integrated in the target audio and video editing plug-in to obtain the target audio and video data; A target audio and video data playing module, used for playing the target audio and video data based on the target audio route; The device also includes: a module for receiving audio and video data to be processed and a module for acquiring audio and video status management data; The to-be-processed audio and video data receiving module is used to receive at least one uploaded audio and video data to be processed before the detection triggers the playing of the to-be-edited audio and video data, so as to determine the to-be-edited audio and video data based on the at least one to-be-processed audio and video data; The audio and video status management data acquisition module is used to acquire audio and video status management data, so as to edit the at least one audio and video data to be edited based on the audio and video status management data.
11. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the audio and video editing method as described in any one of claims 1-9.
12. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the audio and video editing method as claimed in any one of claims 1 to 9 when executed by a computer processor.
Citation Information
Patent Citations
Video editing method and device based on IOS equipment
CN104091608A
Video loading method, apparatus, electronic device and computer-readable storage medium
CN109218793A