Video editing method, device, electronic device and storage medium
By cutting and re-arrangeing the video timeline and combining playback action logos, custom arrangement of video content is achieved, solving the problem that users find it difficult to adjust the order of video clips, improving user experience and avoiding modification of video source information.
Patent Information
- Application Number
- CN202211185334.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2042-09-27
AI Technical Summary
It is difficult for ordinary users to use professional editing tools to re-arrange video content, resulting in the inability to adjust the order of video clips and delete uninterested parts according to their own ideas.
By cutting the video timeline into multiple time segments and re-arranged according to user's operations, a re-arranged timeline is generated, and video playback is played in combination with playback action logos (play or skip), custom arrangement of video content is realized to achieve the .
Users can re-arrange the video content through simple operations to improve the user experience without modifying the original video source information, avoiding the restoration of the video source information.
Smart Images

Figure CN115695910B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a video editing method, device, electronic device and storage medium. Background Art
[0002] At present, the progress of video playback is basically played according to the timeline. A work develops the content storyline according to the timeline, showing the audience a fixed plot development. However, since everyone has different understandings of the plot content, different users may want to watch different plot developments. Therefore, users may want to re-arrange the original video according to their own ideas.
[0003] In the prior art, if a user wants to rearrange the video content according to his own ideas, including but not limited to: deleting segments, adjusting the playback order between different segments, etc., he can edit the original video through professional editing tools to rearrange the video content.
[0004] However, in actual applications, it is difficult for general users to use professional editing tools, which makes it difficult for users to rearrange video content according to their own ideas. Summary of the invention
[0005] In view of this, in order to solve the technical problem that in actual applications, it is difficult for general users to use professional editing tools, which makes it difficult for users to re-arrange video content according to their own ideas, the embodiments of the present invention provide a video editing method, device, electronic device and storage medium.
[0006] In a first aspect, an embodiment of the present invention provides a video arrangement method, the method comprising:
[0007] According to a first operation of the user, the time axis of the target video is cut into a plurality of time segments;
[0008] According to a second operation of the user, the multiple time segments are rearranged to obtain a rearranged time axis;
[0009] When a video play instruction is received, the target video is played according to the rearranged timeline.
[0010] In a possible implementation, the rearrangement of the multiple time segments according to the second operation of the user to obtain a rearranged timeline includes:
[0011] Determining, according to a second operation of the user, a time segment selected by the user, and determining a scheduling rule for at least one time segment selected by the user;
[0012] The time segments selected by the user are rearranged based on the arrangement rules to obtain a rearranged timeline.
[0013] In a possible implementation manner, after obtaining the re-arranged timeline, the method further includes:
[0014] Determine a play action identifier corresponding to each of the time segments, the play action identifier comprising a first identifier and a second identifier, the first identifier is used to indicate play, and the second identifier is used to indicate skip;
[0015] Playing the target video according to the re-arranged timeline includes:
[0016] The target video is played according to the rearranged timeline and the play action identifier of each time segment.
[0017] In a possible implementation manner, determining the playback action identifier corresponding to each of the time segments includes:
[0018] According to a third operation of the user, a play action identifier corresponding to each of the time segments is determined.
[0019] In a possible implementation manner, determining the playback action identifier corresponding to each of the time segments includes:
[0020] Obtaining user viewing behavior data of the target video within a preset historical period;
[0021] A play action identifier corresponding to each of the time segments is determined according to the user viewing behavior data.
[0022] In a possible implementation manner, playing the target video according to the re-arranged timeline and the play action identifier of each time segment includes:
[0023] Based on the re-arranged timeline, sequentially read the play action identifier of each time segment in the timeline;
[0024] When the playback action identifier read is the first identifier, reading the start time and the end time of the time segment;
[0025] Reading a target video segment corresponding to the time segment from the target video according to the start time and the end time, and playing the target video segment;
[0026] When the playback action identifier read is the second identifier, the time segment is skipped.
[0027] In a second aspect, an embodiment of the present invention provides a video arrangement device, the device comprising:
[0028] A cutting module, used for cutting the time axis of the target video into multiple time segments according to a first operation of the user;
[0029] an arrangement module, configured to rearrange the plurality of time segments according to a second operation of the user to obtain a rearranged time axis;
[0030] The playing module is used to play the target video according to the re-arranged timeline when receiving a video playing instruction.
[0031] In a possible implementation, the orchestration module is specifically configured to:
[0032] Determining, according to a second operation of the user, a time segment selected by the user, and determining a scheduling rule for at least one time segment selected by the user;
[0033] The time segments selected by the user are rearranged based on the arrangement rules to obtain a rearranged timeline.
[0034] In a possible implementation, the device further includes:
[0035] A determination module, configured to determine, after obtaining the rearranged time axis, a play action identifier corresponding to each of the time segments, wherein the play action identifier includes a first identifier and a second identifier, wherein the first identifier is used to indicate play, and the second identifier is used to indicate skip;
[0036] The playback module comprises:
[0037] The playing submodule is used to play the target video according to the re-arranged timeline and the playing action identifier of each time segment.
[0038] In a possible implementation manner, the determining module is specifically configured to:
[0039] According to a third operation of the user, a play action identifier corresponding to each of the time segments is determined.
[0040] In a possible implementation manner, the determining module is specifically configured to:
[0041] Obtaining user viewing behavior data of the target video within a preset historical period;
[0042] A play action identifier corresponding to each of the time segments is determined according to the user viewing behavior data.
[0043] In a possible implementation, the playback submodule is specifically used to:
[0044] Based on the re-arranged timeline, sequentially read the play action identifier of each time segment in the timeline;
[0045] When the playback action identifier read is the first identifier, reading the start time and the end time of the time segment;
[0046] Reading a target video segment corresponding to the time segment from the target video according to the start time and the end time, and playing the target video segment;
[0047] When the playback action identifier read is the second identifier, the time segment is skipped.
[0048] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a memory, wherein the processor is used to execute a video editing program stored in the memory to implement the video editing method described in any one of the first aspects.
[0049] In a fourth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the video editing method described in any one of the first aspects.
[0050] The technical solution provided by the embodiment of the present invention cuts the timeline of the target video into multiple time segments according to the user's first operation, rearranges the multiple time segments according to the user's second operation, obtains a rearranged timeline, and plays the target video according to the rearranged timeline when receiving a video play instruction. This technical solution achieves the rearrangement of the video content by rearranging the timeline of the target video, so that the user can rearrange the video content through simple operations, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A flow chart of an embodiment of a video arrangement method provided by an embodiment of the present invention;
[0052] Figure 2 An example of a target video timeline provided by an embodiment of the present invention;
[0053] Figure 3 An example of a re-arranged timeline provided by an embodiment of the present invention;
[0054] Figure 4A flowchart of another video arrangement method provided by an embodiment of the present invention;
[0055] Figure 5 An example of playing a target video after the timeline is rearranged provided by an embodiment of the present invention;
[0056] Figure 6 A block diagram of an embodiment of a video editing device provided by an embodiment of the present invention;
[0057] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] The video arrangement method provided by the present invention is further explained below with reference to specific embodiments in conjunction with the accompanying drawings, and the embodiments do not constitute a limitation on the embodiments of the present invention.
[0060] See also Figure 1 , is a flow chart of an embodiment of a video arrangement method provided by an embodiment of the present invention. Figure 1 As shown, the process may include the following steps:
[0061] Step 101: According to a first operation of a user, the time axis of a target video is cut into multiple time segments.
[0062] The target video refers to a video to be re-arranged (hereinafter referred to as the target video for the convenience of description), which may be a TV series, a movie, or a short video, etc., and the embodiment of the present invention does not impose any limitation on this.
[0063] In actual applications, each target video can have its corresponding timeline when it is played. Figure 2 , which is an example of a target video timeline provided by an embodiment of the present invention.
[0064] In one embodiment, since each person has a different understanding of the plot content of the target video, different users may want to watch different plot developments. In order to allow the user to rearrange the video content of the target video according to his or her own ideas, it is proposed here that the time axis of the target video can be cut into multiple time segments according to the user's operation (for ease of description, it can be referred to as the first operation here).
[0065] As a possible implementation, the timeline of the target video may be cut into multiple time segments according to the user's dragging operation on the time scale slider on the timeline. For example, each time the user completes a dragging operation on the time scale slider on the timeline, the corresponding duration of the dragging of the time scale slider may be determined as a time segment. After the user completes multiple dragging operations on the time scale slider on the timeline, the timeline of the target video may be cut into multiple time segments.
[0066] As another possible implementation, the player's playback interface may include an input box and a confirmation button, and the user may sequentially input the start time and end time of each time segment through the input box and click the confirmation button. Upon receiving the click operation of the confirmation button, the execution subject of the embodiment of the present invention may cut the time axis of the target video into two or more time segments according to the start time and end time of the at least one time segment input by the user.
[0067] Step 102: Rearrange the multiple time segments according to the second operation of the user to obtain a re-arranged time axis.
[0068] The multiple time segments mentioned above may include two or more time segments included in the time axis of the same target video, which is not limited in this embodiment of the present invention.
[0069] The above rearrangement may include but is not limited to performing one or both of the following operations on the multiple time segments: deletion and reordering.
[0070] In one embodiment, the execution subject of the embodiment of the present invention may delete and / or reorder multiple time segments included in the target video timeline according to a user operation (for ease of description, referred to as a second operation here).
[0071] As an optional implementation, the user may first select a time segment, where the user may select all time segments included in the timeline of the target video, or may select a portion of the time segments included in the timeline of the target video. It is understandable that if the user selects a portion of the time segments included in the timeline of the target video, it means that the user has deleted the timeline of the target video and only selected a portion of the time segments that the user is interested in.
[0072] Then, the user can perform a drag operation on the selected time segment to form a corresponding arrangement rule to change the arrangement order of the selected time segment. That is, according to the user's second operation, after determining the time segment selected by the user and the arrangement rule of the user for at least one selected time segment, the time segment selected by the user can be rearranged based on the arrangement rule to obtain an arranged timeline.
[0073] For example, suppose the user divides the timeline of a 30-second target video into seven time segments: segment 1: 0-3s, segment 2: 4-6s, segment 3: 7-9s, segment 4: 10-14s, segment 5: 15-22s, segment 6: 23-27s, and segment 7: 28-30s.
[0074] Assume that actor A in the target video is an artist that the user does not like, and the content of segments 3 and 5 contains actor A, or the video content in segments 3 and 5 is not suitable for children to watch. In order to make other time segments of the target video play normally, the user can select segments 1, 2, 4, 6, and 7, and then rearrange the five time segments by dragging and dropping to obtain the arranged timeline. Figure 3 , which is an example of a re-arranged timeline provided by an embodiment of the present invention.
[0075] As another optional implementation, the user may perform a drag operation on all time segments included in the timeline of the target video to form corresponding arrangement rules to change the arrangement order of all the time segments.
[0076] Then, the user can delete the timeline of the target video by setting a play action identifier for each time segment.
[0077] The play action identifier may be used to indicate the play status of the video content in the time segment. In one embodiment, the play action identifier may include a first identifier and a second identifier, wherein the first identifier may be used to indicate play, and the second identifier may be used to indicate skip. It is understandable that the first identifier may also be used to indicate skip, and the second identifier may be used to indicate play, and the embodiment of the present invention does not limit this.
[0078] For example, suppose the timeline of a target video with a duration of 20 seconds is cut into two time segments: segment 1: 0-9 seconds, segment 2: 10-20 seconds. After the cutting is completed, the data structure of the target video timeline can be [{"startPoint":"0","endPoint":"9","action":"play"}, {"startPoint":"10","endPoint":"20","action":"skip"}]. Among them, the above "action" represents the play action identifier, "play" is the first identifier, indicating play, and "skip" is the second identifier, indicating skip.
[0079] Step 103: upon receiving a video play instruction, play the target video according to the rearranged timeline.
[0080] The above-mentioned video playback instructions can be generated according to user operations, and the above-mentioned user operations may include but are not limited to: clicking an operation on a play button on a playback interface, user inputting a voice playback instruction, etc.
[0081] In one embodiment, upon receiving a video playback instruction, the execution subject of the embodiment of the present invention may play the video content corresponding to each time segment in sequence according to the re-arranged timeline, thereby playing the target video.
[0082] Optionally, the start time and end time of each time segment in the re-arranged timeline can be read, and the target video segment corresponding to the time segment can be read from the target video according to the start time and end time, and the target video segment can be played. In this way, the corresponding target video segment can be directly read from the video source information of the target video according to the start time and end time of each time segment in the timeline, avoiding modification of the video source information, thereby avoiding re-storage of the video source information.
[0083] The technical solution provided by the embodiment of the present invention cuts the time axis of the target video into multiple time segments according to the first operation of the user, rearranges the multiple time segments according to the second operation of the user, obtains the rearranged time axis, and plays the target video according to the rearranged time axis when receiving the video play instruction. This technical solution realizes the rearrangement of the video content by rearranging the time axis of the target video, so that the user can rearrange the video content through simple operation, thereby improving the user experience.
[0084] In addition, since the technical solution provided by the embodiment of the present invention realizes the re-arrangement of the video content by re-arranging the timeline of the target video, there is no need to modify the original video, thus avoiding the modification of the video source information and thus avoiding the re-storage of the video source information.
[0085] See also Figure 4 , which is a flow chart of another embodiment of a video arrangement method provided in an embodiment of the present invention. Figure 4 The process shown in Figure 1 Based on the process shown in FIG. 1 , the following describes how to delete the timeline of the target video by setting a play action identifier for each time segment. Figure 4 As shown, the process may include the following steps:
[0086] Step 401: According to a first operation of the user, the time axis of the target video is cut into multiple time segments.
[0087] Step 402: According to the second operation of the user, the multiple time segments are rearranged to obtain an arranged time axis.
[0088] The detailed description of step 401 and step 402 can be found in the description of step 101 and step 102, which will not be repeated here.
[0089] Step 403: Determine the play action identifier corresponding to each time segment.
[0090] In one embodiment, the execution subject of the embodiment of the present invention can determine the play action identifier corresponding to each time segment according to the user's operation (for ease of description, it can be referred to as the third operation here). For details, please refer to the relevant description in the above step 102, which will not be repeated here.
[0091] In another embodiment, the execution subject of the embodiment of the present invention may determine the play action identifier corresponding to each time segment according to the user viewing behavior data in a preset historical period.
[0092] Specifically, the user viewing behavior data of the target video in a preset historical period can be obtained, and the play action identifier of each video frame contained in each time segment can be determined based on the user viewing behavior data, so as to determine the play action identifier corresponding to each time segment. For example, if a time segment contains 20 video frames, of which the play action identifiers of 15 video frames are the first identifier, then the play action identifier corresponding to the time segment is determined to be the first identifier. The user viewing behavior data may include the user's dragging behavior or playing behavior on each time segment.
[0093] Optionally, for each time segment included in the target video timeline, if the above-mentioned user viewing behavior data indicates that the user has dragged the time segment, it means that the user directly skipped the time segment, and the play action identifier of the time segment is the second identifier; if the above-mentioned user viewing behavior data indicates that the user has played the time segment (which may include normal playback and double-speed playback), it means that the user has watched the video content corresponding to the time segment, and the play action identifier corresponding to the time segment is the first identifier.
[0094] Furthermore, if the above-mentioned user viewing behavior data represents that when the user plays the time segment, the user turns up the volume, enhances the brightness, or plays it in a loop, etc., for the video content of the above-mentioned time segment, it means that the user is very interested in the video content of the time segment. At this time, while determining the playback identifier of the time segment as the first identifier, the playback status of the time segment can be marked, so that the execution subject of the embodiment of the present invention plays the video content of the time segment according to the playback status.
[0095] Step 404: When playing the target video, the target video is played according to the re-arranged timeline and the play action identifier of each time segment.
[0096] In one embodiment, after obtaining the rearranged timeline, the target video may be played according to the rearranged timeline and the play action identifier of each time segment.
[0097] Specifically, based on the re-arranged timeline, the play action identifier of each time segment in the timeline can be read sequentially. When the read play action identifier is the first identifier, the target video segment corresponding to the video segment is played; when the read play action identifier is the second identifier, the time segment is skipped.
[0098] Furthermore, when the read playback action identifier is the first identifier, the start time and end time of the time segment can be read, and the target video segment corresponding to the time segment can be read from the target video according to the start time and end time, and the target video segment can be played.
[0099] For example, suppose the user cuts the timeline of a 30-second target video into seven time segments: Segment 1: 0-3s; Segment 2: 4-6s; Segment 3: 7-9s; Segment 4: 10-14s; Segment 5: 15-22s; Segment 6: 23-27s; Segment 7: 28-30s.
[0100] Afterwards, the user rearranges the seven time segments by dragging and dropping, and the order after the arrangement is: segment 1, segment 7, segment 5, segment 2, segment 3, segment 6, and segment 4. Continuing to assume that only the play action identifier of segment 5 is the second identifier, the data structure after the timeline of the target video is cut can be [{"startPoint":"0","endPoint":"3","action":"play"}, {"startPoint":"28","endPoint":"30","action":"play"}, {"startPoint":"15","endPoint":"22","action":"skip"}, {"startPoint":"4","endPoint":"6","action":"play"}, {"startPoint":"7","endPoint":"9","action":"play"}, {"startPoint":"23","endPoint":"27","action":"play"}, {"startPoint":"10","endPoint":"14","action":"play"}], where "startPoint" can correspond to the starting moment of the time segment, "endPoint" can correspond to the ending moment of the time segment, "action" is the play action identifier corresponding to the time segment, "play" is the first identifier, and "skip" is the second identifier.
[0101] Afterwards, when playing each time segment included in the re-arranged timeline of the target video in sequence, segment 1 can be read first to determine that the play action identifier of segment 1 is the first identifier. Then, the start time and end time of segment 1 can be read, which are 0s and 3s respectively. According to 0s and 3s, the video content of the time segment of 0 to 3s can be read from the target video and played. Similarly, segment 7, segment 5, segment 2, segment 3, segment 6, and segment 4 are read in sequence. When segment 5 is read, since the play action identifier of segment 5 is the second identifier, the time segment can be directly skipped. For details of the above process, please refer to Figure 5 ,like Figure 5 As shown, it is an example of playing a target video after the timeline is rearranged provided by an embodiment of the present invention. Figure 5 When playing the target video after the timeline is rearranged, when playing to segment 5, the segment is directly skipped.
[0102] The technical solution provided by the embodiment of the present invention determines the play action identifier corresponding to each time segment after re-arranging multiple time segments according to the user's second operation to obtain the arranged timeline, and plays the target video according to the re-arranged timeline and the play action identifier of each time segment. This technical solution can further determine whether to skip the time segment according to the play action identifier of each time segment determined by the user operation when playing the target video after the re-arranged timeline, thereby skipping the video content containing specific content according to the user's operation behavior, thereby achieving the deletion of specific content of the target video and improving the user experience.
[0103] See also Figure 6 , is a block diagram of an embodiment of a video editing device provided by an embodiment of the present invention. Figure 6 As shown, the device comprises:
[0104] A cutting module 61, used for cutting the time axis of the target video into multiple time segments according to a first operation of the user;
[0105] An arrangement module 62, configured to rearrange the multiple time segments according to a second operation of the user to obtain a rearranged time axis;
[0106] The playing module 63 is used to play the target video according to the re-arranged timeline when receiving a video playing instruction.
[0107] In a possible implementation, the arrangement module 62 is specifically configured to:
[0108] Determining, according to a second operation of the user, a time segment selected by the user, and determining a scheduling rule for at least one time segment selected by the user;
[0109] The time segments selected by the user are rearranged based on the arrangement rules to obtain a rearranged timeline.
[0110] In a possible implementation, the device further includes (not shown in the figure):
[0111] A determination module, configured to determine, after obtaining the rearranged time axis, a play action identifier corresponding to each of the time segments, wherein the play action identifier includes a first identifier and a second identifier, wherein the first identifier is used to indicate play, and the second identifier is used to indicate skip;
[0112] The playback module 63 includes (not shown in the figure):
[0113] The playing submodule is used to play the target video according to the re-arranged timeline and the playing action identifier of each time segment.
[0114] In a possible implementation manner, the determining module is specifically configured to:
[0115] According to a third operation of the user, a play action identifier corresponding to each of the time segments is determined.
[0116] In a possible implementation manner, the determining module is specifically configured to:
[0117] Obtaining user viewing behavior data of the target video within a preset historical period;
[0118] A play action identifier corresponding to each of the time segments is determined according to the user viewing behavior data.
[0119] In a possible implementation, the playback submodule is specifically used to:
[0120] Based on the re-arranged timeline, sequentially read the play action identifier of each time segment in the timeline;
[0121] When the playback action identifier read is the first identifier, reading the start time and the end time of the time segment;
[0122] Reading a target video segment corresponding to the time segment from the target video according to the start time and the end time, and playing the target video segment;
[0123] When the playback action identifier read is the second identifier, the time segment is skipped.
[0124] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, Figure 7 The electronic device 700 shown includes: at least one processor 701, a memory 702, at least one network interface 704 and a user interface 703. The various components in the electronic device 700 are coupled together via a bus system 705. It is understood that the bus system 705 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 705 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 705 is not shown in FIG. Figure 7 Various buses are labeled as bus system 705.
[0125] The user interface 703 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0126] It can be understood that the memory 702 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM). The memory 702 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0127] In some implementations, the memory 702 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 7021 and an application 7022 .
[0128] The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 7022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 7022.
[0129] In the embodiment of the present invention, by calling the program or instruction stored in the memory 702, specifically, the program or instruction stored in the application 7022, the processor 701 is used to execute the method steps provided by each method embodiment, for example, including:
[0130] According to a first operation of the user, the time axis of the target video is cut into a plurality of time segments;
[0131] According to a second operation of the user, the multiple time segments are rearranged to obtain a rearranged time axis;
[0132] When a video play instruction is received, the target video is played according to the rearranged timeline.
[0133] The method disclosed in the above embodiment of the present invention can be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 701 or the instruction in the form of software. The above processor 701 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 702, and the processor 701 reads the message in the memory 702 and completes the steps of the above method in combination with its hardware.
[0134] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0135] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0136] The electronic device provided in this embodiment may be Figure 7 The electronic device shown in FIG. 1 may perform the following steps: Figure 1 and Figure 4 All steps of the video editing method are implemented Figure 1 and Figure 4 For details, please refer to the technical effect of the video arrangement method shown in Figure 1 and Figure 4 For the sake of brevity, the relevant description is not repeated here.
[0137] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0138] When one or more programs in the storage medium can be executed by one or more processors, the video editing method executed on the electronic device side can be implemented.
[0139] The processor is used to execute the video arrangement program stored in the memory to implement the following steps of the video arrangement method performed on the electronic device side:
[0140] According to a first operation of the user, the time axis of the target video is cut into a plurality of time segments;
[0141] According to a second operation of the user, the multiple time segments are rearranged to obtain a rearranged time axis;
[0142] When a video play instruction is received, the target video is played according to the rearranged timeline.
[0143] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0144] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0145] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A video editing method, characterized in that: The method comprises: According to a first operation of the user, the time axis of the target video is cut into a plurality of time segments; According to a second operation of the user, the multiple time segments are rearranged to obtain a rearranged time axis; After the re-arranged timeline is obtained, the method includes: determining a play action identifier corresponding to each of the time segments, wherein the play action identifier includes a first identifier, and the first identifier is used to indicate play; when the user increases the volume, increases the brightness, or performs loop play operations on the video content corresponding to the time segment, the play identifier of the time segment is determined to be the first identifier, and the play state of the time segment is used when playing the video content of the time segment; When a video playback instruction is received, the target video is played according to the rearranged timeline, including: determining the start time and the end time of each time segment in the rearranged timeline; reading the target video segment corresponding to each time segment from the video source information of the target video according to the start time and the end time of each time segment, and playing the target video segments in the order of the time segments in the rearranged timeline.
2. The method according to claim 1, characterized in that The step of rearranging the multiple time segments according to the second operation of the user to obtain a rearranged time axis includes: Determining, according to a second operation of the user, a time segment selected by the user, and determining a scheduling rule for at least one time segment selected by the user; The time segments selected by the user are rearranged based on the arrangement rules to obtain a rearranged timeline.
3. The method according to claim 1, characterized in that: After the re-arranged timeline, it also includes: Determine a play action identifier corresponding to each of the time segments, the play action identifier comprising a first identifier and a second identifier, the first identifier is used to indicate play, and the second identifier is used to indicate skip; Playing the target video according to the re-arranged timeline includes: The target video is played according to the rearranged timeline and the play action identifier of each time segment.
4. The method according to claim 3, characterized in that The determining of the playback action identifier corresponding to each of the time segments includes: According to a third operation of the user, a play action identifier corresponding to each of the time segments is determined.
5. The method according to claim 3, characterized in that: The determining of the playback action identifier corresponding to each of the time segments includes: Obtaining user viewing behavior data of the target video within a preset historical period; A play action identifier corresponding to each of the time segments is determined according to the user viewing behavior data.
6. The method according to claim 3, characterized in that Playing the target video according to the re-arranged timeline and the play action identifier of each time segment includes: Based on the re-arranged timeline, sequentially read the play action identifier of each time segment in the timeline; When the playback action identifier read is the first identifier, reading the start time and the end time of the time segment; Reading a target video segment corresponding to the time segment from the target video according to the start time and the end time, and playing the target video segment; When the playback action identifier read is the second identifier, the time segment is skipped.
7. A video editing device, characterized in that: The device comprises: A cutting module, used for cutting the time axis of the target video into multiple time segments according to a first operation of the user; an arrangement module, configured to rearrange the plurality of time segments according to a second operation of the user to obtain a rearranged time axis; After the re-arranged timeline is obtained, the method includes: determining a play action identifier corresponding to each of the time segments, wherein the play action identifier includes a first identifier, and the first identifier is used to indicate play; when the user increases the volume, increases the brightness, or performs loop play operations on the video content corresponding to the time segment, the play identifier of the time segment is determined to be the first identifier, and the play state of the time segment is used when playing the video content of the time segment; A playback module is used to play the target video according to the re-arranged timeline when a video playback instruction is received, including: determining the start time and end time of each time segment in the re-arranged timeline; reading the target video segment corresponding to each time segment from the video source information of the target video according to the start time and end time of each time segment, and playing the target video segment in the order of the time segments in the re-arranged timeline.
8. The device according to claim 7, characterized in that The device also includes: A determination module, configured to determine, after obtaining the rearranged time axis, a play action identifier corresponding to each of the time segments, wherein the play action identifier includes a first identifier and a second identifier, wherein the first identifier is used to indicate play, and the second identifier is used to indicate skip; The playback module comprises: The playing submodule is used to play the target video according to the re-arranged timeline and the playing action identifier of each time segment.
9. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a video editing program stored in the memory to implement the video editing method according to any one of claims 1 to 6.
10. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the video editing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Multi-segment media file mosaicing method and system
CN105141973A
Volume adjusting method and electronic equipment
CN107633850A
Video playing method and device, terminal and computer readable storage medium
CN112911402A
Video playing method and device, storage medium and computer equipment
CN112995770A
Video editing method and device, equipment and storage medium
CN114339390A
