A data processing method, device, equipment, medium and product of a video draft
By performing anomaly detection and correction on the draft parameter data of video drafts, the functional problems caused by abnormal video draft data in video editing applications were resolved, achieving timely anomaly repair and improved application stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2024-11-29
- Publication Date
- 2026-05-29
Smart Images

Figure CN122120530A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video editing technology, and in particular to a data processing method, apparatus, device, medium and product for video drafts. Background Technology
[0002] Video editing applications may contain program vulnerabilities and flawed underlying logic, leading to outlier values in the parameters of video drafts. These outliers can cause lag, malfunctions, and even black screens. Currently, video editing applications rely on technicians to fix these issues after they occur, resulting in significant delays. Summary of the Invention
[0003] This invention provides a data processing method, apparatus, device, medium, and product for video drafts, to address the current lack of data anomaly repair in video editing applications, ensuring the timeliness of anomaly repair in video drafts, and thereby reducing negative feedback in video editing applications.
[0004] In a first aspect, embodiments of the present invention provide a data processing method for video drafts, the method comprising:
[0005] In response to detecting a target operation on a video draft used for editing multimedia content, the draft parameter data of the video draft is obtained;
[0006] If there are abnormal parameter data in the draft parameter data that could cause malfunctions in the video editing application, obtain the correction parameter data corresponding to the abnormal parameter data.
[0007] The draft parameter data is corrected based on the corrected parameter data to obtain the corrected draft parameter data.
[0008] Secondly, embodiments of the present invention also provide a data processing apparatus for video drafts, the apparatus comprising:
[0009] The draft parameter data acquisition module is used to acquire the draft parameter data of the video draft in response to the detection of a target operation on a video draft used for planning multimedia material content.
[0010] The correction parameter data acquisition module is used to acquire correction parameter data corresponding to the abnormal parameter data when there is abnormal parameter data in the draft parameter data that causes the video editing application to malfunction.
[0011] The draft parameter data correction module is used to correct the draft parameter data according to the correction parameter data to obtain the corrected draft parameter data.
[0012] Thirdly, embodiments of the present invention also provide an electronic device, the electronic device comprising:
[0013] At least one processor; and
[0014] A memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the video draft data processing method according to any embodiment of the present invention.
[0016] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing computer instructions, which are used to cause a processor to execute the video draft data processing method described in any embodiment of the present invention.
[0017] Fifthly, embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the video draft data processing method described in any embodiment of the present invention.
[0018] The technical solution of this invention, when a target operation on a video draft is detected, performs anomaly detection on the draft parameter data of the video draft. If abnormal parameter data exists in the draft parameter data that could cause functional abnormalities in the video editing application, the draft parameter data is corrected according to the correction parameter data corresponding to the abnormal parameter data, resulting in corrected draft parameter data. This solves the problem that current video editing applications lack data anomaly repair for video drafts, ensures the timeliness of anomaly repair for video drafts, and thus reduces negative feedback from video editing applications. Attached Figure Description
[0019] The above and other features, advantages, and aspects of the various embodiments of the present invention will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote 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.
[0020] Figure 1 A flowchart illustrating a video draft data processing method provided in one embodiment of the present invention;
[0021] Figure 2 A flowchart illustrating another method for processing video drafts according to an embodiment of the present invention;
[0022] Figure 3A flowchart illustrating another method for processing video drafts according to an embodiment of the present invention;
[0023] Figure 4 A schematic diagram of a video draft data processing device provided in an embodiment of the present invention;
[0024] Figure 5 This is a schematic diagram of the structure of an electronic device provided in one embodiment of the present invention. Detailed Implementation
[0025] Embodiments of the present invention will now be described in more detail with reference to the accompanying drawings. While some embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the invention. It should be understood that the accompanying drawings and embodiments are for illustrative purposes only and are not intended to limit the scope of protection of the invention.
[0026] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0027] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based 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". Definitions of other terms will be given in the description below.
[0028] It should be noted that the concepts of "first" and "second" mentioned in this invention are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0029] It should be noted that the terms "a" and "a plurality of" used in this invention are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0030] The names of the messages or information exchanged between the multiple devices in the embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of these messages or information.
[0031] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.
[0032] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application program, server, or storage medium executing the operation of this invention, based on the prompt message.
[0033] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0034] It is understood that the above notification and user authorization process is merely illustrative and does not constitute a limitation on the implementation of the present invention. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present invention.
[0035] Figure 1 This is a flowchart illustrating a video draft data processing method according to an embodiment of the present invention. This embodiment is applicable to situations where outliers exist in the parameter data of a video draft and need correction. The method can be executed by a video draft data processing device, which can be implemented in hardware and / or software. This device can be configured in an electronic device, typically a mobile terminal or tablet computer. Figure 1 As shown, the method includes:
[0036] S110. In response to detecting a target operation for a video draft used to edit multimedia material content, obtain draft parameter data of the video draft.
[0037] Specifically, a video draft represents the video content that a user edits and creates in a video editing application. It is used to save the video content obtained after selecting, splicing, adding, and modifying multimedia materials. A video draft contains one or more draft clips, which are composed of multimedia materials such as frames, effects, stickers, and audio. Draft clips can be grouped together as a whole and their positions can be adjusted within the video draft.
[0038] Specifically, the target operation represents a predefined data processing flow used to trigger the execution of the video draft. The draft parameter data contains at least one draft attribute parameter. The draft attribute parameter represents the attribute parameter that is prone to anomalies when the target operation is performed on the video draft, or in other words, the occurrence of anomalies will cause the video editing application to malfunction.
[0039] In this embodiment, the draft parameter data corresponding to different target operations may be the same or different. The draft parameter data corresponding to each target operation can be customized by referring to the correlation between the target operation and the draft attribute parameters.
[0040] S120. If there is abnormal parameter data in the draft parameter data that causes the video editing application to malfunction, obtain the correction parameter data corresponding to the abnormal parameter data.
[0041] Specifically, the abnormal parameter data contains at least one abnormal attribute parameter, which represents a draft attribute parameter that meets the attribute abnormality condition.
[0042] In an optional embodiment, the method further includes: comparing at least one draft attribute parameter in the draft parameter data with an attribute anomaly condition, and determining anomaly parameter data based on the comparison result. Wherein, the draft attribute parameter corresponds one-to-one with the attribute anomaly condition, and the comparison result indicates whether each draft attribute parameter satisfies its corresponding attribute anomaly condition.
[0043] Specifically, the attribute anomaly condition represents the abnormal value or abnormal parameter range corresponding to the draft attribute parameter. The draft attribute parameters that meet the attribute anomaly condition in the comparison result are taken as abnormal attribute parameters in the abnormal parameter data.
[0044] Specifically, the correction parameter data includes correction attribute parameters corresponding to each abnormal attribute parameter in the abnormal parameter data. The correction attribute parameters represent the correct values or correct parameter ranges corresponding to the abnormal attribute parameters.
[0045] S130. Correct the draft parameter data according to the corrected parameter data to obtain the corrected draft parameter data.
[0046] Specifically, based on the corrected parameter data, a replacement or modification operation is performed on the abnormal parameter data in the draft parameter data to obtain the corrected draft parameter data.
[0047] The technical solution of this embodiment, when a target operation on a video draft is detected, performs anomaly detection on the draft parameter data of the video draft. If there is abnormal parameter data in the draft parameter data that could cause functional abnormalities in the video editing application, the draft parameter data is corrected according to the correction parameter data corresponding to the abnormal parameter data, resulting in corrected draft parameter data. This solves the problem that current video editing applications lack data anomaly repair for video drafts, ensures the timeliness of anomaly repair for video drafts, and thus reduces negative feedback from video editing applications.
[0048] Figure 2 This is a flowchart illustrating another video draft data processing method according to an embodiment of the present invention. This embodiment further refines the "target operation" and "draft parameter data" in the above embodiments. In this embodiment, the target operation is a draft exit operation, a draft open operation, a draft export operation, a draft editing operation, or a synchronization to a mobile device operation. The draft parameter data includes the segment parameter data of each draft clip in the video draft and / or the total draft duration of the video draft, such as... Figure 2 As shown, the method includes:
[0049] S210. In response to detecting a target operation for a video draft used to edit multimedia material content, when the target operation is a draft exit operation, a draft open operation, a draft export operation, a draft edit operation, or a synchronization to a mobile device operation, the segment parameter data of each draft clip in the video draft and / or the total draft duration of the video draft are used as draft parameter data.
[0050] Specifically, the draft exit operation signifies the end of the operation displayed on the video editing page, which provides editing and creation functions for video drafts. For example, it can be achieved through exit gestures, exit control voice, or exit controls provided by the video editing page. The operation method for implementing the draft exit operation is not limited here.
[0051] Specifically, the draft opening operation represents the action that triggers the display of the video editing page. For example, this can be achieved through gestures, voice commands, or an open control provided on the application's entry page within the video editing app. The specific method for implementing the draft opening operation is not limited here. The application entry page can display multiple stored video drafts for the user to choose from.
[0052] Specifically, the draft export operation represents the operation of converting a video draft into a video file of a specified video format. For example, it can be achieved through export gestures, export control voice, or export controls provided on the video editing page. The operation method for implementing the draft export operation is not limited here.
[0053] Specifically, draft editing operations represent operations that edit video drafts. For example, draft editing operations include adding effects, deleting effects, modifying effects, inserting clips, deleting clips, adding transitions, adding stickers, adjusting speed, or adding audio, but are not limited to the example scenarios.
[0054] The advantage of setting up draft editing is that it can increase the number of times the data processing flow of the video draft is triggered, thereby ensuring the accuracy of the attribute parameters of the video draft in the editing process.
[0055] Specifically, when the video editing application is a mobile application, "synchronization to mobile" refers to the operation of synchronizing the video draft from the computer application to the video editing application, and vice versa.
[0056] In one specific embodiment, the segment parameter data of each draft clip in the video draft is used as the draft parameter data, or the total draft duration of the video draft is used as the draft parameter data, or the segment parameter data of each draft clip in the video draft and the total draft duration of the video draft are used as the draft parameter data.
[0057] Specifically, the draft clip is an existing clip in the video draft. In this embodiment, the clip parameter data includes at least one duration parameter value, which is the clip duration of the draft clip or the duration of the clip material in the draft clip.
[0058] In one specific embodiment, the segment parameter data may contain only the segment duration of the draft clip, or the segment parameter data may contain the duration of each segment material in the draft clip, or the segment parameter data may contain both the segment duration of the draft clip and the duration of each segment material in the draft clip.
[0059] S220. If there is abnormal parameter data in the draft parameter data that causes the video editing application to malfunction, obtain the correction parameter data corresponding to the abnormal parameter data.
[0060] In an optional embodiment, the method further includes: when the draft parameter data includes the fragment parameter data, determining abnormal parameter data based on the fragment parameter data; wherein the abnormal parameter data includes duration parameter values less than zero in the fragment parameter data.
[0061] Specifically, a duration parameter value less than zero indicates an abnormal condition in the attribute corresponding to the duration parameter value.
[0062] Based on the above embodiments, optionally, obtaining the correction parameter data corresponding to the abnormal parameter data includes: for each duration parameter value in the abnormal parameter data, if the duration parameter value is the segment duration, then determining the correction parameter data according to the actual duration of the draft clip corresponding to the segment duration; if the duration parameter value is the material duration, then determining the correction parameter data according to the material type of the segment material corresponding to the material duration; wherein, the correction parameter data includes a preset material duration corresponding to the material type.
[0063] Specifically, in the correction parameter data, the correction attribute parameter corresponding to the clip duration is the actual duration of the draft clip corresponding to the clip duration, and the correction attribute parameter corresponding to the material duration is the preset material duration corresponding to the material type of the clip material corresponding to the material duration.
[0064] Specifically, preset durations are set for different material types. For example, when the material type is an effect, sticker, or text, the preset duration can be 3 seconds, and when the material type is a transition, the preset duration can be 2 seconds. There is no limitation on the preset duration for each material type here.
[0065] In an optional embodiment, when the draft parameter data includes the total draft duration, the abnormal parameter data includes the total draft duration that is less than the length of the draft ending corresponding to the video draft, and the correction parameter data includes the length of the draft ending.
[0066] Specifically, a length less than the end length of the video draft indicates an attribute anomaly condition corresponding to the total duration of the draft.
[0067] In an optional embodiment, the method further includes: obtaining the end time of each draft clip in the video draft, and taking the latest end time of the clip as the end length of the video draft; or, taking the end time of the last draft clip in the video draft as the end length of the video draft.
[0068] S230. Correct the draft parameter data according to the corrected parameter data to obtain the corrected draft parameter data.
[0069] S230 in this embodiment is the same as that in the above embodiment. Figure 1 The S130 shown is the same or similar, and will not be described again in this embodiment.
[0070] The technical solution of this embodiment, in response to draft exit operation, draft open operation, draft export operation, draft editing operation, or synchronization to mobile terminal operation, performs anomaly detection and anomaly repair on the segment parameter data of each draft clip in the video draft and / or the total duration of the video draft. This solves the problem of lacking anomaly detection and repair for the duration data of video drafts, reduces the incidence of video drafts being unable to open or editing functions being abnormal, and thus improves the stability of video editing applications.
[0071] Figure 3 This is a flowchart illustrating another data processing method for video drafts according to an embodiment of the present invention. This embodiment further refines the "target operation" and "draft parameter data" in the above embodiments. In this embodiment, when the target operation is a segment insertion operation, the draft parameter data includes the insertion time period of the clip to be inserted corresponding to the segment insertion operation; when the target operation is a synchronization to a mobile terminal operation, the draft parameter data includes the on / off attribute of the main track magnet of the video draft. Figure 3 As shown, the method includes:
[0072] S310. In response to detecting a target operation for a video draft used to edit multimedia material content, obtain draft parameter data corresponding to the target operation.
[0073] In an optional embodiment, when the target operation is a clip insertion operation, the draft parameter data includes the insertion time period of the clip to be inserted corresponding to the clip insertion operation.
[0074] Specifically, the clip insertion operation represents inserting the clip to be inserted into the video draft. For example, it can be achieved by dragging the clip to be inserted, importing the clip to be inserted, or clicking the clip to be inserted. The operation method for implementing the clip insertion operation is not limited here.
[0075] Specifically, the insertion time period includes the insertion start time and insertion end time of the clip to be inserted. The insertion start time is determined according to the insertion time position corresponding to the clip insertion operation, and the insertion end time is the sum of the insertion start time and the duration of the clip to be inserted.
[0076] Based on the above embodiments, optionally, the segment insertion operation is an editing operation in the draft editing operation, and the draft parameter data also includes the segment parameter data of each draft clip in the video draft and / or the total draft duration of the video draft.
[0077] In another alternative embodiment, when the target operation is to synchronize to a mobile device, the draft parameter data includes the on / off attribute of the main track magnet of the video draft.
[0078] Specifically, the main track magnet indicates that multimedia materials located on the main track in the video draft will automatically snap to the end of the previous multimedia material on the main track. If the main track magnet's on / off attribute is set to "on," it means that multimedia materials located on the main track in the video draft are snapped together; if the main track magnet's on / off attribute is set to "off," it means that multimedia materials located on the main track in the video draft can be freely placed.
[0079] Based on the above embodiments, optionally, when the target operation is to synchronize to a mobile terminal, the draft parameter data may also include the segment parameter data of each draft clip in the video draft and / or the total draft duration of the video draft.
[0080] S320. If there is abnormal parameter data in the draft parameter data that causes the video editing application to malfunction, obtain the correction parameter data corresponding to the abnormal parameter data.
[0081] In an optional embodiment, the method further includes: when the draft parameter data contains the inserted time period, obtaining the segment time periods corresponding to at least one draft clip in the video draft; determining abnormal parameter data based on the inserted time period and at least one segment time period; wherein the abnormal parameter data includes the inserted time period that overlaps with the at least one segment time period.
[0082] Specifically, the segment time period includes the start time and end time of the draft clip, and the time interval between the start time and end time of the segment can be called the segment duration of the draft clip.
[0083] For example, suppose the inserted time period is 0:20-0:30, and the time period of clip A in the video draft is 0:00-0:25. Then the inserted time period overlaps with the time period of that clip, which is 0:20-0:25. This inserted time period is then treated as an abnormal attribute parameter in the abnormal parameter data.
[0084] Based on the above embodiments, optionally, obtaining the correction parameter data corresponding to the abnormal parameter data includes: determining at least one idle time period corresponding to the video draft based on the segment duration corresponding to the insertion time period; determining correction parameter data based on the at least one idle time period; wherein, the correction parameter data includes the correction time period of the clip to be inserted.
[0085] In this embodiment, the idle time period is the time period in the video draft that is not occupied by the draft clip, and the idle duration of the idle time period is greater than or equal to the duration of the clip. Specifically, the idle time period includes at least an idle start time and an idle end time, and the time interval between the idle start time and the idle end time can be referred to as the idle duration.
[0086] In an optional embodiment, determining correction parameter data based on the at least one idle time period includes: when the number of idle time periods is one, using the idle time period as the correction time period for the clip to be inserted.
[0087] In another optional embodiment, determining the correction parameter data based on the at least one idle time period includes: when the number of idle time periods is at least two, using the idle time period corresponding to the longest idle duration as the correction time period for the clip to be inserted.
[0088] In another optional embodiment, determining the correction parameter data based on the at least one idle time period includes: when the number of idle time periods is at least two, obtaining the idle start time corresponding to each idle time period, and using the idle time period corresponding to the earliest idle start time as the correction time period for the clip to be inserted.
[0089] In another optional embodiment, determining the correction parameter data based on the at least one idle time period includes: when the number of idle time periods is at least two, obtaining the insertion start time of the clip to be inserted and the idle start time corresponding to each idle time period; determining at least two reference time intervals based on the insertion start time and the at least two idle start times, and using the idle time period corresponding to the idle start time with the smallest reference time interval as the correction time period for the clip to be inserted. Here, the idle start time corresponds one-to-one with the reference time intervals.
[0090] In another optional embodiment, determining the correction parameter data based on the at least one idle time period includes: when the number of idle time periods is at least two, obtaining the insertion start time of the clip to be inserted and the idle start time corresponding to each idle time period; and taking the first idle time period whose idle start time is later than the insertion start time as the correction time period of the clip to be inserted.
[0091] Specifically, at least one idle time period whose idle start time is later than the insertion start time is used as a reference time period, and the reference time period corresponding to the earliest idle start time is used as the correction time period of the clip to be inserted.
[0092] In another alternative embodiment, when the draft parameter data includes the on / off attribute of the main rail magnet, the abnormal parameter data includes the on / off attribute of the main rail magnet with the off attribute value, and the correction parameter data includes the on / off attribute of the main rail magnet with the on attribute value.
[0093] Since the data processing flow of the video draft responds to the synchronization operation on the mobile device, it means that the video draft will be used in the mobile application later. If the switch attribute of the main track magnet is off, it is easy for the video draft to drop frames, thus affecting the synchronization effect of the video draft. This embodiment ensures the accuracy of the synchronization parameters of the video draft by detecting anomalies in the switch attribute of the main track magnet, thereby improving the synchronization effect of the video draft.
[0094] S330. Correct the draft parameter data according to the corrected parameter data to obtain the corrected draft parameter data.
[0095] S330 in this embodiment is the same as that in the above embodiment. Figure 1 The S130 shown is the same or similar, and will not be described again in this embodiment.
[0096] The technical solution of this embodiment reduces the failure rate of the clip insertion function by performing anomaly detection and repair on the insertion time period of the clip to be inserted when the target operation is a clip insertion operation, and reduces the occurrence rate of dropped frames in the video draft by performing anomaly detection and repair on the switching attribute of the main track magnet of the video draft when the target operation is a synchronization to the mobile terminal operation, thereby ensuring the stability of the video editing application.
[0097] The following are embodiments of the video draft data processing device provided in this invention. This device and the video draft data processing method in the above embodiments belong to the same inventive concept. For details not described in detail in the embodiments of the video draft data processing device, please refer to the content of the video draft data processing method in the above embodiments.
[0098] Figure 4 This is a schematic diagram of the structure of a video draft data processing device provided in one embodiment of the present invention. Figure 4 As shown, the device includes: a draft parameter data acquisition module 410, a correction parameter data acquisition module 420, and a draft parameter data correction module 430.
[0099] The draft parameter data acquisition module 410 is used to acquire the draft parameter data of the video draft in response to detecting a target operation on a video draft for planning multimedia material content.
[0100] The correction parameter data acquisition module 420 is used to acquire correction parameter data corresponding to the abnormal parameter data when there is abnormal parameter data in the draft parameter data that causes the video editing application to malfunction.
[0101] The draft parameter data correction module 430 is used to correct the draft parameter data according to the correction parameter data to obtain the corrected draft parameter data.
[0102] The technical solution of this embodiment, when a target operation on a video draft is detected, performs anomaly detection on the draft parameter data of the video draft. If there is abnormal parameter data in the draft parameter data that could cause functional abnormalities in the video editing application, the draft parameter data is corrected according to the correction parameter data corresponding to the abnormal parameter data, resulting in corrected draft parameter data. This solves the problem that current video editing applications lack data anomaly repair for video drafts, ensures the timeliness of anomaly repair for video drafts, and thus reduces negative feedback from video editing applications.
[0103] In one optional embodiment, the target operation is a draft exit operation, a draft open operation, a draft export operation, a draft editing operation, or a synchronization to a mobile device operation.
[0104] The draft parameter data includes the segment parameter data of each draft clip in the video draft and / or the total draft duration of the video draft. The segment parameter data includes at least one duration parameter value, which is the segment duration of the draft clip or the material duration of the clip material in the draft clip.
[0105] In an optional embodiment, the device further includes:
[0106] The first abnormal parameter data determination module is used to determine abnormal parameter data based on the fragment parameter data when the draft parameter data includes the fragment parameter data.
[0107] The abnormal parameter data includes duration parameter values that are less than zero in the segment parameter data.
[0108] In an optional embodiment, the correction parameter data acquisition module 420 includes:
[0109] The first correction parameter data determination unit is used to determine correction parameter data for each duration parameter value in the abnormal parameter data if the duration parameter value is the segment duration, based on the actual duration of the draft clip corresponding to the segment duration.
[0110] If the duration parameter value is the duration of the material, then the correction parameter data is determined according to the material type of the segment material corresponding to the duration of the material; wherein, the correction parameter data includes a preset material duration corresponding to the material type.
[0111] In an optional embodiment, when the draft parameter data includes the total draft duration, the abnormal parameter data includes the total draft duration that is less than the length of the draft ending corresponding to the video draft, and the correction parameter data includes the length of the draft ending.
[0112] In an optional embodiment, when the target operation is a clip insertion operation, the draft parameter data includes the insertion time period of the clip to be inserted corresponding to the clip insertion operation;
[0113] When the target operation is to synchronize to a mobile device, the draft parameter data includes the on / off attribute of the main track magnet of the video draft.
[0114] In an optional embodiment, the device further includes:
[0115] The second abnormal parameter data determination module is used to obtain the segment time periods corresponding to at least one draft clip in the video draft when the draft parameter data contains the inserted time period.
[0116] Based on the inserted time period and at least one segment time period, determine the abnormal parameter data;
[0117] The abnormal parameter data includes inserted time periods that overlap with the at least one segment time period.
[0118] In an optional embodiment, the correction parameter data acquisition module 420 includes:
[0119] The second correction parameter data determination unit is used to determine at least one idle time period corresponding to the video draft based on the segment duration corresponding to the inserted time period.
[0120] Based on the at least one idle time period, determine the correction parameter data;
[0121] The correction parameter data includes the correction time period of the clip to be inserted, the idle time period is the time period in the video draft that is not occupied by the draft clip, and the idle duration of the idle time period is greater than or equal to the duration of the clip.
[0122] In an optional embodiment, the second correction parameter data determining unit is specifically used for:
[0123] When the number of idle time periods is at least two, obtain the insertion start time corresponding to the insertion time period and the idle start time corresponding to each idle time period.
[0124] The first idle time period whose idle start time is later than the insertion start time is used as the correction time period for the clip to be inserted.
[0125] In an optional embodiment, when the draft parameter data includes the on / off attribute of the main rail magnet, the abnormal parameter data includes the on / off attribute of the main rail magnet with the off attribute value, and the correction parameter data includes the on / off attribute of the main rail magnet with the on attribute value.
[0126] The video draft data processing device provided in the embodiments of the present invention can execute the video draft data processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.
[0127] The following is for reference. Figure 5 The diagram illustrates a structural schematic of an electronic device (e.g., a terminal device or a server) 500 suitable for implementing embodiments of the present invention. The terminal device in the embodiments of the present invention may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0128] like Figure 5 As shown, electronic device 500 may include a processing unit (e.g., central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 506 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. Input / output (I / O) interface 505 is also connected to bus 504.
[0129] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 506 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although... Figure 5 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0130] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 506, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of the embodiments of the present invention.
[0131] It should be noted that the computer-readable medium described above in this invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0132] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0133] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0134] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: acquire at least two Internet Protocol (IP) addresses; send a node evaluation request including the at least two IP addresses to a node evaluation device, wherein the node evaluation device selects an IP address from the at least two IP addresses and returns it; and receive the IP address returned by the node evaluation device; wherein the acquired IP address indicates an edge node in a content delivery network.
[0135] Alternatively, the aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: receive a node evaluation request including at least two Internet Protocol (IP) addresses; select an IP address from the at least two IP addresses; and return the selected IP address; wherein the received IP address indicates an edge node in the content delivery network.
[0136] Computer program code for performing the operations of this invention can 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, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone 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 remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0137] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0138] The units described in the embodiments of the present invention can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0139] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0140] In the context of this invention, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0141] According to one or more embodiments of the present invention, Example 1 provides a data processing method for video drafts, including:
[0142] In response to detecting a target operation on a video draft used for editing multimedia content, the draft parameter data of the video draft is obtained;
[0143] If there are abnormal parameter data in the draft parameter data that could cause malfunctions in the video editing application, obtain the correction parameter data corresponding to the abnormal parameter data.
[0144] The draft parameter data is corrected based on the corrected parameter data to obtain the corrected draft parameter data.
[0145] According to one or more embodiments of the present invention, Example 2 is based on the method described in Example 1, wherein the target operation is a draft exit operation, a draft open operation, a draft export operation, a draft editing operation, or a synchronization to a mobile device operation;
[0146] The draft parameter data includes the segment parameter data of each draft clip in the video draft and / or the total draft duration of the video draft. The segment parameter data includes at least one duration parameter value, which is the segment duration of the draft clip or the material duration of the clip material in the draft clip.
[0147] According to one or more embodiments of the present invention, Example 3 describes the method according to Example 2, the method further comprising:
[0148] When the draft parameter data includes the fragment parameter data, abnormal parameter data is determined based on the fragment parameter data;
[0149] The abnormal parameter data includes duration parameter values that are less than zero in the segment parameter data.
[0150] According to one or more embodiments of the present invention, Example 4, based on the method described in Example 3, includes obtaining the correction parameter data corresponding to the abnormal parameter data, comprising:
[0151] For each duration parameter value in the abnormal parameter data, if the duration parameter value is the segment duration, then the correction parameter data is determined based on the actual duration of the draft clip corresponding to the segment duration.
[0152] If the duration parameter value is the duration of the material, then the correction parameter data is determined according to the material type of the segment material corresponding to the duration of the material; wherein, the correction parameter data includes a preset material duration corresponding to the material type.
[0153] According to one or more embodiments of the present invention, Example 5, based on the method described in Example 2, when the draft parameter data includes the total draft duration, the abnormal parameter data includes the total draft duration that is less than the draft end duration corresponding to the video draft, and the correction parameter data includes the draft end duration.
[0154] According to one or more embodiments of the present invention, in Example 6, when the target operation is a clip insertion operation, the draft parameter data includes the insertion time period of the clip to be inserted corresponding to the clip insertion operation, according to the method described in Example 1.
[0155] When the target operation is to synchronize to a mobile device, the draft parameter data includes the on / off attribute of the main track magnet of the video draft.
[0156] According to one or more embodiments of the present invention, Example 7 describes the method according to Example 6, the method further comprising:
[0157] When the draft parameter data contains the inserted time period, obtain the segment time periods corresponding to at least one draft clip in the video draft;
[0158] Based on the inserted time period and at least one segment time period, determine the abnormal parameter data;
[0159] The abnormal parameter data includes inserted time periods that overlap with the at least one segment time period.
[0160] According to one or more embodiments of the present invention, Example 8, based on the method described in Example 7, includes obtaining the correction parameter data corresponding to the abnormal parameter data, comprising:
[0161] Based on the segment duration corresponding to the inserted time period, at least one idle time period corresponding to the video draft is determined;
[0162] Based on the at least one idle time period, determine the correction parameter data;
[0163] The correction parameter data includes the correction time period of the clip to be inserted, the idle time period is the time period in the video draft that is not occupied by the draft clip, and the idle duration of the idle time period is greater than or equal to the duration of the clip.
[0164] According to one or more embodiments of the present invention, Example 9 describes the method described in Example 8, wherein determining the correction parameter data based on the at least one idle time period includes:
[0165] When the number of idle time periods is at least two, obtain the insertion start time corresponding to the insertion time period and the idle start time corresponding to each idle time period.
[0166] The first idle time period whose idle start time is later than the insertion start time is used as the correction time period for the clip to be inserted.
[0167] According to one or more embodiments of the present invention, Example 10, based on the method described in Example 6, when the draft parameter data includes the switch attribute of the main rail magnet, the abnormal parameter data includes the switch attribute of the main rail magnet with the attribute value turned off, and the correction parameter data includes the switch attribute of the main rail magnet with the attribute value turned on.
[0168] According to one or more embodiments of the present invention, Example 11 provides a data processing apparatus for video drafts, comprising:
[0169] The draft parameter data acquisition module is used to acquire the draft parameter data of the video draft in response to the detection of a target operation on a video draft used for planning multimedia material content.
[0170] The correction parameter data acquisition module is used to acquire correction parameter data corresponding to the abnormal parameter data when there is abnormal parameter data in the draft parameter data that causes the video editing application to malfunction.
[0171] The draft parameter data correction module is used to correct the draft parameter data according to the correction parameter data to obtain the corrected draft parameter data.
[0172] According to one or more embodiments of the present invention, Example 12 provides an electronic device, comprising:
[0173] At least one processor; and
[0174] A memory communicatively connected to the at least one processor; wherein,
[0175] The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the data processing method for the video draft as described in any one of Examples 1-10.
[0176] According to one or more embodiments of the present invention, Example 13 provides a computer-readable storage medium storing computer instructions for causing a processor to execute the data processing method for a video draft as described in any one of Examples 1-10.
[0177] According to one or more embodiments of the present invention, Example 14 provides a computer program product including a computer program that, when executed by a processor, implements a data processing method for a video draft according to any one of Examples 1-10.
[0178] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this invention is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this invention.
[0179] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the invention. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0180] Although the subject matter has been described using language specific to structural features and / or methodological logic, 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. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for processing video draft data, characterized in that, include: In response to detecting a target operation on a video draft used for editing multimedia content, the draft parameter data of the video draft is obtained; If there are abnormal parameter data in the draft parameter data that could cause malfunctions in the video editing application, obtain the correction parameter data corresponding to the abnormal parameter data. The draft parameter data is corrected based on the corrected parameter data to obtain the corrected draft parameter data.
2. The method according to claim 1, characterized in that, The target operation is a draft exit operation, a draft open operation, a draft export operation, a draft editing operation, or a sync operation to a mobile device. The draft parameter data includes the segment parameter data of each draft clip in the video draft and / or the total draft duration of the video draft. The segment parameter data includes at least one duration parameter value, which is the segment duration of the draft clip or the material duration of the clip material in the draft clip.
3. The method according to claim 2, characterized in that, The method further includes: When the draft parameter data includes the fragment parameter data, abnormal parameter data is determined based on the fragment parameter data; The abnormal parameter data includes duration parameter values that are less than zero in the segment parameter data.
4. The method according to claim 3, characterized in that, The step of obtaining the correction parameter data corresponding to the abnormal parameter data includes: For each duration parameter value in the abnormal parameter data, if the duration parameter value is the segment duration, then the correction parameter data is determined based on the actual duration of the draft clip corresponding to the segment duration. If the duration parameter value is the duration of the material, then the correction parameter data is determined according to the material type of the segment material corresponding to the duration of the material; wherein, the correction parameter data includes a preset material duration corresponding to the material type.
5. The method according to claim 2, characterized in that, When the draft parameter data includes the total draft duration, the abnormal parameter data includes the total draft duration that is less than the length of the draft ending corresponding to the video draft, and the correction parameter data includes the length of the draft ending.
6. The method according to claim 1, characterized in that, When the target operation is a clip insertion operation, the draft parameter data includes the insertion time period of the clip to be inserted corresponding to the clip insertion operation; When the target operation is to synchronize to a mobile device, the draft parameter data includes the on / off attribute of the main track magnet of the video draft.
7. The method according to claim 6, characterized in that, The method further includes: When the draft parameter data contains the inserted time period, obtain the segment time periods corresponding to at least one draft clip in the video draft; Based on the inserted time period and at least one segment time period, determine the abnormal parameter data; The abnormal parameter data includes inserted time periods that overlap with the at least one segment time period.
8. The method according to claim 7, characterized in that, The step of obtaining the correction parameter data corresponding to the abnormal parameter data includes: Based on the segment duration corresponding to the inserted time period, at least one idle time period corresponding to the video draft is determined; Based on the at least one idle time period, determine the correction parameter data; The correction parameter data includes the correction time period of the clip to be inserted, the idle time period is the time period in the video draft that is not occupied by the draft clip, and the idle duration of the idle time period is greater than or equal to the duration of the clip.
9. The method according to claim 8, characterized in that, Determining the correction parameter data based on the at least one idle time period includes: When the number of idle time periods is at least two, obtain the insertion start time corresponding to the insertion time period and the idle start time corresponding to each idle time period. The first idle time period whose idle start time is later than the insertion start time is used as the correction time period for the clip to be inserted.
10. The method according to claim 6, characterized in that, When the draft parameter data includes the on / off attribute of the main rail magnet, the abnormal parameter data includes the on / off attribute of the main rail magnet with the off attribute value, and the correction parameter data includes the on / off attribute of the main rail magnet with the on attribute value.
11. A data processing device for video drafts, characterized in that, include: The draft parameter data acquisition module is used to acquire the draft parameter data of the video draft in response to the detection of a target operation on a video draft used for planning multimedia material content. The correction parameter data acquisition module is used to acquire correction parameter data corresponding to the abnormal parameter data when there is abnormal parameter data in the draft parameter data that causes the video editing application to malfunction. The draft parameter data correction module is used to correct the draft parameter data according to the correction parameter data to obtain the corrected draft parameter data.
12. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the data processing method for video drafts according to any one of claims 1-10.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the data processing method for the video draft according to any one of claims 1-10.
14. A computer program product comprising a computer program that, when executed by a processor, implements the data processing method for a video draft according to any one of claims 1-10.