[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2023284567A1 - Video editing method and device - Google Patents

Video editing method and device Download PDF

Info

Publication number
WO2023284567A1
WO2023284567A1 PCT/CN2022/103387 CN2022103387W WO2023284567A1 WO 2023284567 A1 WO2023284567 A1 WO 2023284567A1 CN 2022103387 W CN2022103387 W CN 2022103387W WO 2023284567 A1 WO2023284567 A1 WO 2023284567A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
video frame
user instruction
frame
selecting
Prior art date
Application number
PCT/CN2022/103387
Other languages
French (fr)
Chinese (zh)
Inventor
谭艳曲
Original Assignee
北京达佳互联信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2023284567A1 publication Critical patent/WO2023284567A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Definitions

  • the present disclosure relates to the technical field of video editing, and more specifically, to a video editing method and device.
  • video clip editing tools With the rapid development of electronic technology, in order to meet the needs of users for video editing, more and more video clip editing tools have been developed. Users can use video clip editing tools to manually edit any video frame of the video, and the video clip editing tool responds to the user's editing operations, performs editing processing on the video frame and saves it as a new video frame to cover the original video frames to form a new video.
  • An exemplary embodiment of the present disclosure is to provide a video editing method and apparatus capable of automatically performing an editing process required by a user with respect to an object designated by the user in a plurality of video frames.
  • a video editing method including: receiving a video editing user instruction, wherein the video editing user instruction includes: a user instruction for selecting an object in the first video frame of the video , a user instruction for editing the object in the first video frame, and a user instruction for selecting a video frame of the video, wherein the user instruction for selecting a video frame of the video is: A user instruction for selecting at least one video frame of the video except the first video frame, or a user instruction for selecting a plurality of video frames including the first video frame of the video;
  • the user instruction for selecting a video frame of the video is a user instruction for selecting at least one video frame of the video except the first video frame, and in response to the video editing user instruction, between the first video frame and all In the at least one video frame, perform the editing process on the object; determine that the user instruction for selecting a video frame of the video is a plurality of video frames including the first video frame for selecting the video In response to the video editing user instruction, the editing
  • the user instruction to select a video frame of the video is received before or after the user instruction to select an object in a first video frame; the user instruction to select a video frame of the video An instruction is received before or after a user instruction for editing the object in the first video frame.
  • the editing process includes at least one of the following items: editing process of the object itself, editing process of inserting information related to the object in the video frame.
  • the method further includes: presenting video frames of the video to a user; the user instruction for selecting at least one video frame of the video other than the first video frame includes at least one of the following instructions An instruction: a user instruction for directly selecting the at least one video frame from the displayed video frames, and a user instruction for selecting a start frame and an end frame of the at least one video frame from the displayed video frames;
  • the user instruction for selecting a plurality of video frames including the first video frame of the video includes at least one of the following instructions: a user instruction for directly selecting the plurality of video frames from displayed video frames , and a user instruction for selecting a start frame and an end frame of the plurality of video frames from the presented video frames.
  • the method further includes: displaying the video frames of the video and the time points corresponding to each displayed video frame to the user;
  • the user instruction of at least one video frame includes: a user instruction for selecting a video frame within a time period of the video, wherein the video frame within the time period is the at least one video frame;
  • the user instruction for a plurality of video frames including the first video frame of the video includes: a user instruction for selecting video frames within a time period of the video, wherein the video frames within the time period are The plurality of video frames.
  • the method further comprises: identifying video frames in the video in which the object occurs; presenting to the user the identified video frames in which the object occurs; and/or presenting to the user the identified occurrences The time period and/or duration of the video frame of the object.
  • the user instruction for selecting at least one video frame of said video other than the first video frame comprises: for selecting said at least one video frame from among displayed video frames in which said object appears
  • a user instruction for selecting a plurality of video frames of the video including the first video frame includes: a user instruction for selecting the plurality of video frames from the displayed video frames in which the object appears instruction.
  • the method further includes: generating the edited video.
  • the step of generating the edited video includes: in response to a user instruction for selecting a video frame of the video, at least A user instruction of a video frame, saving the edited first video frame and the at least one video frame respectively as new video frames, and replacing the original first video frame and the at least one video frame in the video A video frame to form a new video; in response to a user instruction for selecting a video frame of the video to be a user instruction for selecting a plurality of video frames including the first video frame of the video, through The edited multiple video frames are respectively saved as new video frames, and the multiple original video frames in the video are replaced to form a new video.
  • the editing process is an editing process of inserting information related to the object at a specific position in the video frame relative to the object; in the first video frame and the at least one video frame,
  • the step of performing the editing process on the object includes: for each video frame of the first video frame and the at least one video frame, in response to insufficient Insert information related to the object, disable the operation of inserting the information in the video frame; or insert the information at other corresponding positions in the video frame, or in the video frame relative to the object Inserting the resized information at a specific position of the , so that the information can be completely displayed in the video frame,
  • the step of performing the editing process on the object includes: for each video frame in the plurality of video frames, responding to the Inserting the information related to the object at a specific position relative to the object is insufficient, disabling the operation of inserting the information in the video frame; or inserting the information at other corresponding positions in the video frame, Or insert the size-adjusted information at a specific position in the video frame relative to the object, so that the information can be completely displayed in the video frame.
  • the method further includes: storing the object and/or the editing process in a componentized manner for subsequent invocation.
  • a video editing device including: a user instruction receiving unit configured to receive a video editing user instruction, wherein the video editing user instruction includes: a first a user instruction for an object in a video frame, a user instruction for editing the object in a first video frame, and a user instruction for selecting a video frame of the video, wherein the user instruction for selecting the video
  • the user instruction of the video frame is: a user instruction for selecting at least one video frame of the video except the first video frame, or a user instruction for selecting a plurality of video frames including the first video frame of the video
  • the editing processing unit is configured to determine that the user instruction for selecting a video frame of the video is a user instruction for selecting at least one video frame of the video except the first video frame, responding Based on the video editing user instruction, the editing process is performed on the object in the first video frame and the at least one video frame; In response to a user instruction for a plurality of video frames including the first video
  • the user instruction to select a video frame of the video is received before or after the user instruction to select an object in a first video frame; the user instruction to select a video frame of the video An instruction is received before or after a user instruction for editing the object in the first video frame.
  • the editing process includes at least one of the following items: editing process of the object itself, editing process of inserting information related to the object in the video frame.
  • the device further includes: a presentation unit configured to present the video frames of the video to the user; wherein, for selecting at least one video frame of the video except the first video frame
  • the user instruction includes at least one of the following instructions: a user instruction for directly selecting the at least one video frame from the displayed video frames, and a starting point for selecting the at least one video frame from the displayed video frames frame and end frame user instruction;
  • the user instruction for selecting a plurality of video frames including the first video frame of the video includes at least one instruction in the following instructions: for directly selecting the selected video frame from the displayed video frame A user instruction for the plurality of video frames, and a user instruction for selecting a start frame and an end frame of the plurality of video frames from the displayed video frames.
  • the device further includes: a display unit configured to display the video frames of the video and the time points corresponding to each displayed video frame to the user;
  • the user instruction of at least one video frame other than a video frame includes: a user instruction for selecting a video frame within a time period of the video, wherein the video frame within the time period is the at least one video frame frame;
  • the user instruction for selecting a plurality of video frames of the video including the first video frame includes: a user instruction for selecting video frames within a time period of the video, wherein, at the time The video frames in the segment are the plurality of video frames.
  • the device further includes: an identification unit configured to identify a video frame in which the object appears in the video; a presentation unit configured to present the identified video frame in which the object appears to the user and/or, presenting to the user the identified time period and/or duration of the video frame in which the object appears.
  • the user instruction for selecting at least one video frame of said video other than the first video frame comprises: for selecting said at least one video frame from among displayed video frames in which said object appears
  • a user instruction for selecting a plurality of video frames of the video including the first video frame includes: a user instruction for selecting the plurality of video frames from the displayed video frames in which the object appears instruction.
  • the device further includes: a video generating unit configured to generate the edited video.
  • the video generation unit in response to the user instruction for selecting a video frame of the video being a user instruction for selecting at least one video frame of the video other than the first video frame, the video generation unit will pass through the The edited first video frame and the at least one video frame are respectively saved as new video frames, and the original first video frame and the at least one video frame in the video are replaced to form a new video;
  • the video generation unit converts all the video frames after the editing process The plurality of video frames are respectively saved as new video frames, and the original video frames in the video are replaced to form a new video.
  • the editing process is an editing process of inserting information related to the object at a specific position in the video frame relative to the object; the editing processing unit for the first video frame and the at least one video each of the frames, in response to insufficient insertion of the information related to the object at a particular location in the video frame relative to the object, disabling the insertion of the information in the video frame; or, Inserting said information at other corresponding positions in the video frame, or inserting said information resized at a specific position in the video frame relative to said object, so that said information can be placed in the video frame is fully displayed,
  • the editing processing unit for each video frame in the plurality of video frames including the first video frame, responds to the fact that a specific position in the video frame relative to the object is not enough to insert information related to the object information, disabling the operation of inserting said information in the video frame; or inserting said information at other corresponding positions in this video frame, or inserting an adjusted The information of the size, so that the information can be completely displayed in the video frame.
  • the device further includes: a storage unit configured to store the object and/or the editing process in a componentized manner for subsequent invocation.
  • an electronic device including: at least one processor; at least one memory storing computer-executable instructions, wherein the computer-executable instructions are executed by the at least one processor , prompting the at least one processor to execute the video editing method as described above.
  • a non-volatile computer-readable storage medium when instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to perform the above The video editing method described.
  • a computer program product including computer instructions, when the computer instructions are executed by at least one processor, the above video editing method is realized.
  • the user only needs to perform an editing operation on an object in a video frame in the interactive interface and select at least one other video frame to be processed, and the present disclosure can automatically perform editing operations on the object in these video frames
  • the editing process required by the user does not require the user to find the object frame by frame and manually perform the same editing operation on the object, which can not only meet the user's video editing needs, but also improve the editing efficiency and greatly reduce the user's operation quantity.
  • FIG. 1 shows a flowchart of a video editing method according to an exemplary embodiment of the present disclosure
  • FIG. 2 shows a structural block diagram of a video editing device according to an exemplary embodiment of the present disclosure
  • FIG. 3 shows a structural block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
  • FIG. 1 shows a flowchart of a video editing method according to an exemplary embodiment of the present disclosure.
  • the video editing method of an exemplary embodiment of the present disclosure may be executed by an electronic device including at least one processor. Referring to FIG. 1 , the method includes the following steps S101, S102, and S103.
  • step S101 a video editing user instruction is received.
  • the video editing user instruction includes: a user instruction for selecting an object in the first video frame of the video, a user instruction for editing the object in the first video frame, and a user instruction for selecting the object in the first video frame.
  • the user instruction for selecting a video frame of the video is: a user instruction for selecting at least one video frame of the video except the first video frame, or a user instruction for selecting the video frame including the first video frame.
  • step S102 determine that the user instruction for selecting a video frame of the video is a user instruction for selecting at least one video frame of the video except the first video frame, and respond to the video editing user instruction , performing the editing process on the object in the first video frame and the at least one video frame.
  • step S103 when it is determined that the user instruction for selecting a video frame of the video is a user instruction for selecting a plurality of video frames including the first video frame of the video, and in response to the video editing user Instructing to perform the editing process on the object in the plurality of video frames.
  • the present disclosure does not limit the sequence of receiving user instructions.
  • the user instruction for selecting a video frame of the video may be received by the electronic device before or after the user instruction for selecting an object in the first video frame.
  • the user instruction for selecting a video frame of the video may be received by the electronic device before or after the user instruction for editing the object in the first video frame.
  • the object may be a display object in a video frame. It should be understood that the present disclosure does not limit the number of the objects, that is, the number of the objects may be one or more.
  • the electronic device may display the first video frame to the user in response to a user instruction to select the first video frame from the video frames of the video, and receive a user instruction to select an object in the first video frame and edit the object. instruction.
  • the editing process may include various appropriate editing processes performed on the object itself or relative to the object, which is not limited in the present disclosure.
  • the editing processing may include, but not limited to, at least one of the following: editing processing of the object itself, and editing processing of inserting information related to the object in a video frame.
  • the information related to the object may include but not limited to at least one of the following types: picture, video, text, audio, and dynamic picture.
  • the editing process of inserting information related to the object in the video frame may include: inserting information related to the object at a specific position (ie, the relative position of the object) in the video frame relative to the object. Editing of information.
  • the specific location relative to the object may be on and/or near the object.
  • the specific position relative to the object may be a position at a distance from the object on the left side of the object.
  • the position of the information relative to the object i.e., the specific position
  • said information when an editing process is received that inserts information related to an object at a specific position in a video frame relative to the object, the position of the information relative to the object (i.e., the specific position ) and said information.
  • the editing process may include various appropriate editing processes performed on the object itself, which is not limited in the present disclosure.
  • the editing process may include, but is not limited to, at least one of the following: resizing operations, resizing operations, beautifying operations, slimming operations, blurring operations, and occlusion operations.
  • each displayed object in the first video frame may be highlighted (for example, an outline or an occupied area is highlighted) for the user to select; then, the electronic device receives the user's selection operation (for example, a click operation) on one or more highlighted display objects in the first video frame.
  • the electronic device may receive the user's circle selection operation on one or more display objects in the first video frame, and highlight the display objects circled by the user for user confirmation. The contour or occupied area of the circled display object is highlighted, and an adjustment operation on the contour or occupied area by the user can be received.
  • the electronic device may identify each display object in the video frame, and generate an option list including options related to the identified display object for the user to select, for example, the option may be the name of the identified object or schematic.
  • the video editing method of the exemplary embodiment of the present disclosure may further include: presenting all or part of video frames of the video to the user.
  • the electronic device may deframe the video selected by the user, and display all or part of the video frames of the video obtained through the deframe processing to the user, so that the user may select a desired video frame from the displayed video frames .
  • the user instruction for selecting at least one video frame of the video other than the first video frame may include at least one of the following instructions: for directly selecting the at least one video frame from displayed video frames and user instructions for selecting a start frame and an end frame of the at least one video frame from the presented video frames. It should be understood that the at least one video frame is a video frame between the start frame and the end frame.
  • the user instruction for selecting a plurality of video frames including the first video frame of the video may include at least one of the following instructions: for directly selecting the plurality of video frames from displayed video frames and a user instruction for selecting a start frame and an end frame of the plurality of video frames from the displayed video frames.
  • the video editing method may further include: the electronic device presents all or part of the video frames of the video to the user, and a time point corresponding to each displayed video frame.
  • a time point corresponding to each video frame may be displayed at a position corresponding to each displayed video frame, for example, video frame 1 corresponds to a time point (that is, duration) t1, Video frame 2 corresponds to time point t2, video frame 3 corresponds to time point t3, video frame 4 corresponds to time point t4, video frame 5 corresponds to time point t5, . . .
  • execute the user instruction for selecting the video frame of the video execute the user instruction for selecting the video frame of the video.
  • the user instruction for selecting at least one video frame of the video other than the first video frame may include: a user instruction for selecting video frames within a time period of the video, wherein the The video frames within the time period are the at least one video frame.
  • the user instruction for selecting a video frame within a time period of the video may include: a user operation for selecting a start time point and an end time point of the time period.
  • the user instruction for selecting a plurality of video frames of the video including the first video frame may include: a user instruction for selecting video frames within a time period of the video, wherein the The video frames in the time period are the plurality of video frames.
  • the video editing method may further include: the electronic device identifying a video frame in which the object appears in the video; and presenting the identified video frame in which the object appears to the user, and/or Or, the identified time period and/or duration of the video frame in which the object appears is displayed to the user.
  • the object when presenting the identified video frame in which the object appears, the object may be highlighted in the presented video frame.
  • the user instruction for selecting at least one video frame of the video other than the first video frame may include: for the user to select the at least one video frame from the displayed video frames in which the object appears. instruction.
  • the user instruction for selecting a plurality of video frames of the video including the first video frame may include: a user instruction for selecting the plurality of video frames from a displayed video frame in which the object appears instruction.
  • the electronic device may start from the first video frame, and search backward for the video frame in which the object appears in the video frames of the video and display it; or, start from the first video frame, and search forward for the video frame A video frame in which the object appears in the video frame is displayed; or, a video frame in which the object appears can be searched from all video frames of the video and displayed.
  • step S102 determining that the user instruction for selecting a video frame of the video is a user instruction for selecting at least one video frame of the video except the first video frame, in response to the video editing user instruction, In the first video frame and the at least one video frame, the editing process is performed on the object.
  • the present disclosure does not limit the order of editing processing of the first video frame and the at least one video frame, for example, when the user instruction for selecting a video frame of the video is used in the first video frame
  • the electronic device may respond to the video editing user instruction and simultaneously perform the editing processing on the object in the first video frame and the at least one video frame .
  • the electronic device may respond to the user instruction for editing the object in the first video frame.
  • the user instruction for editing the object in the video frame first performs the editing process on the object in the first video frame; then, in response to the user instruction for selecting the video frame of the video, in the first video frame In the at least one video frame, the editing process is performed on the object.
  • step S103 it is determined that the user instruction for selecting a video frame of the video is a user instruction for selecting a plurality of video frames including the first video frame of the video, and in response to the video editing user instruction, In the plurality of video frames, the editing process is performed on the object.
  • the user only needs to perform an editing operation on the object on one video frame, and select other video frames that need to be processed in the same way, and then the other video frames selected by the user can be automatically combined with the one video frame.
  • the same editing process in other words, does not require the user to search for the object frame by frame for these video frames, and repeat the same editing operation as on the one video frame, while greatly reducing the user's operation and workload. Meet user needs.
  • the electronic device may first identify the object in a video frame other than the first video frame selected by the user, and then perform the editing process on the object.
  • the electronic device may perform picture content understanding on the object range defined by the user on the first video frame to determine the object. For example, there are character A, character B, and character C in the first video frame. "Character A” is defined on the frame as an object to be locked, and a text commentary label of the object "Character A” is inserted in the first video frame, for example, the label may be a bubble picture containing text therein , and the user specifies a time period for displaying the label of "person A" on the video timeline, that is, the label of "person A" needs to be displayed in each video frame within the time period.
  • person A can be identified as the object from each video frame in the time period, and then the tag can be inserted for "person A”. It can be seen that the present disclosure can not only automatically perform the processing required by the user on at least one video frame, but also provide the user with the function of automatically identifying the object in the video frame specified by the user in other video frames.
  • the editing process may be an editing process of inserting information related to the object at a specific position in the video frame relative to the object, and may be for each of the first video frame and the at least one video frame A video frame, when the specific position relative to the object in the video frame is not enough to insert the information related to the object (in other words, the information cannot be completely displayed after the information is inserted), disable the The operation of inserting said information into a video frame; or, inserting said information at other corresponding positions in said video frame, or inserting said information with a size adjusted at a specific position in said video frame relative to said object , so that the information can be completely displayed in the video frame.
  • the editing process may be an editing process of inserting information related to the object at a specific position in the video frame relative to the object, and may target the plurality of video frames including the first video frame For each video frame in , when the specific position in the video frame relative to the object is insufficient to insert the information related to the object, disable the operation of inserting the information in the video frame; or, in Inserting the information at other corresponding positions in the video frame, or inserting the resized information at a specific position in the video frame relative to the object, so that the information can be viewed in the video frame full display.
  • a video frame related to the object is inserted at a specific position in the video frame relative to the object If the information will occlude other main objects in the video frame, disable the operation of inserting the information in the video frame; or, insert the information at other corresponding positions in the video frame or relatively in the video frame
  • the resized information is inserted at a specific position of the object so that the information does not occlude other main objects in the video frame.
  • the video editing method according to the exemplary embodiment of the present disclosure may further include: the electronic device generates the edited video.
  • the electronic device may pass through the editing process
  • the last first video frame and the at least one video frame are respectively saved as new video frames, and the original first video frame and the at least one video frame in the video are replaced to form a new video.
  • the electronic device may pass through the editing process
  • the subsequent multiple video frames are respectively saved as new video frames, and the original multiple video frames in the video are replaced to form a new video.
  • the video editing method may further include: the electronic device stores the object and/or the editing process in a component form for subsequent calling.
  • the electronic device may generate a corresponding control for the object, for example, the control may be displayed as a name or a schematic diagram of the object; the electronic device may generate a corresponding control for the editing process, for example, the control may Displayed as the name or processing effect of the editing process, when the user performs editing operations on other videos, controls for the object and/or controls for the editing process can be provided for the user to select. If there are controls for the object and controls for the editing process, the electronic device can automatically perform the editing process for the object in the corresponding video frame. In order to reduce the user's operations of searching for a video frame including the object and locating and editing the object in the video frame when editing different videos.
  • the video editing method may further include: the electronic device converting the edited video, or the edited first video frame and the at least one video frame, or the edited The multiple video frames including the first video frame are uploaded to the server.
  • the electronic device may be the client on which the user resides.
  • the editing process is to insert a tag for the object
  • the electronic device uploads the edited video frame to the server, and can apply the edited video frame to more scenarios: such as search, artificial intelligence picture Compare and abstract to improve the precision of search results for video content.
  • FIG. 2 illustrates a structural block diagram of a video editing device according to an exemplary embodiment of the present disclosure.
  • a video editing device 10 includes: a user instruction receiving unit 101 , and an editing processing unit 102 .
  • the user instruction receiving unit 101 is configured to receive a video editing user instruction, wherein the video editing user instruction includes: a user instruction for selecting an object in the first video frame of the video, for selecting an object in the first video frame The user instruction for editing the object and the user instruction for selecting the video frame of the video, wherein the user instruction for selecting the video frame of the video is: for selecting the video except the first video A user instruction of at least one video frame other than the video frame, or a user instruction for selecting a plurality of video frames of the video including the first video frame.
  • the video editing user instruction includes: a user instruction for selecting an object in the first video frame of the video, for selecting an object in the first video frame
  • the user instruction for editing the object and the user instruction for selecting the video frame of the video wherein the user instruction for selecting the video frame of the video is: for selecting the video except the first video A user instruction of at least one video frame other than the video frame, or a user instruction for selecting a plurality of video frames of the video including the first video frame.
  • the editing processing unit 102 is configured to determine that the user instruction for selecting a video frame of the video is a user instruction for selecting at least one video frame of the video except the first video frame, and responding to the video editing The user instruction is to perform the editing process on the object in the first video frame and the at least one video frame; it is determined that the user instruction for selecting the video frame of the video includes the second video frame for selecting the video A user instruction of a plurality of video frames including one video frame, in response to the video editing user instruction, the editing process is performed on the object in the plurality of video frames.
  • a user instruction for selecting a video frame of the video may be received before or after a user instruction for selecting an object in a first video frame; a user instruction for selecting a video frame of the video, It may be received before or after a user instruction to edit said object in the first video frame.
  • the editing processing may include at least one of the following items: editing processing of the object itself, editing processing of inserting information related to the object in a video frame.
  • the video editing device 10 may further include: a display unit (not shown), the display unit is configured to display video frames of the video to the user;
  • the user instruction of a video frame may include at least one of the following instructions: a user instruction for directly selecting the at least one video frame from the displayed video frames, and a user instruction for selecting the at least one video frame from the displayed video frames.
  • a user instruction of the start frame and the end frame of the video frame; the user instruction for selecting a plurality of video frames including the first video frame of the video may include at least one of the following instructions: A user instruction for directly selecting the plurality of video frames in the video frame, and a user instruction for selecting a start frame and an end frame of the plurality of video frames from displayed video frames.
  • the video editing device 10 may further include: a display unit (not shown), configured to display the video frames of the video and the time points corresponding to the displayed video frames to the user.
  • a display unit (not shown), configured to display the video frames of the video and the time points corresponding to the displayed video frames to the user.
  • the user instruction for selecting at least one video frame of the video other than the first video frame may include: a user instruction for selecting video frames within a time period of the video, wherein the The video frames within the time period are the at least one video frame.
  • the user instruction for selecting a plurality of video frames of the video including the first video frame may include: a user instruction for selecting video frames within a time period of the video, wherein the The video frames in the time period are the plurality of video frames.
  • the video editing device 10 may further include: an identification unit (not shown) and a presentation unit (not shown), the identification unit is configured to identify the video frame in which the object appears in the video; the presentation unit is configured to The identified video frame in which the object appears is presented to the user, and/or the time period and/or duration of the identified video frame in which the object appears is presented to the user.
  • an identification unit is configured to identify the video frame in which the object appears in the video
  • the presentation unit is configured to The identified video frame in which the object appears is presented to the user, and/or the time period and/or duration of the identified video frame in which the object appears is presented to the user.
  • the user instruction for selecting at least one video frame of the video other than the first video frame may include: for the user to select the at least one video frame from the displayed video frames in which the object appears.
  • Instructions; user instructions for selecting a plurality of video frames of the video including the first video frame may include: user instructions for selecting the plurality of video frames from among the displayed video frames in which the object appears .
  • the video editing device 10 may further include: a video generating unit (not shown), and the video generating unit is configured to generate the edited video.
  • the video generating unit may pass through the editing The processed first video frame and the at least one video frame are saved as new video frames respectively, and replace the original first video frame and the at least one video frame in the video to form a new video; in response to The user instruction for selecting a video frame of the video is a user instruction for selecting a plurality of video frames including the first video frame of the video, and the video generation unit may convert the edited The multiple video frames are respectively saved as new video frames, and the multiple original video frames in the video are replaced to form a new video.
  • the editing process may be an editing process of inserting information related to the object at a specific position in the video frame relative to the object; wherein, the editing processing unit 102 may target the first video frame and the at least each of a video frame, in response to insufficient insertion of the information related to the object at a particular location in the video frame relative to the object, disabling the insertion of the information in the video frame; Alternatively, inserting the information at other corresponding positions in the video frame, or inserting the resized information at a specific position in the video frame relative to the object, so that the information can be displayed in the video frame The frame is fully displayed.
  • the editing process may be an editing process of inserting information related to the object at a specific position in the video frame relative to the object; wherein, the editing processing unit 102 may target the In each of the plurality of video frames within the video frame, in response to insufficient insertion of information related to the object at a particular location in the video frame relative to the object, disabling insertion of the information in the video frame or inserting said information at other corresponding positions in the video frame, or inserting said information resized at a specific position in the video frame relative to said object so that said information can is fully displayed in this video frame.
  • the video editing device 10 may further include: a storage unit (not shown), configured to store the object and/or the editing process in a componentized manner for subsequent calling.
  • a storage unit (not shown), configured to store the object and/or the editing process in a componentized manner for subsequent calling.
  • each unit in the video editing device 10 may be implemented as hardware components and/or software components. Those skilled in the art may implement each unit, for example, by using a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC) according to the defined processing performed by each unit.
  • FPGA Field Programmable Gate Array
  • ASIC Application Specific Integrated Circuit
  • FIG. 3 shows a structural block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
  • the electronic device 20 includes: at least one memory 201 and at least one processor 202, the at least one memory 201 stores a set of computer-executable instructions, when the set of computer-executable instructions is executed by at least one processor 202 , executing the video editing method described in the above exemplary embodiments.
  • the electronic device 20 may be a PC computer, a tablet device, a personal digital assistant, a smart phone, or other devices capable of executing the above-mentioned set of instructions.
  • the electronic device 20 is not necessarily a single electronic device, but can also be any assembly of devices or circuits capable of individually or jointly executing the above-mentioned instructions (or instruction sets).
  • Electronic device 20 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that interfaces locally or remotely (eg, via wireless transmission).
  • processor 202 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a special purpose processor system, a microcontroller, or a microprocessor.
  • processor 202 may also include analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, and the like.
  • the processor 202 can execute instructions or codes stored in the memory 201, wherein the memory 201 can also store data. Instructions and data may also be sent and received over the network via the network interface device, which may employ any known transmission protocol.
  • the memory 201 can be integrated with the processor 202, for example, RAM or flash memory is arranged in an integrated circuit microprocessor or the like. Additionally, storage 201 may comprise a separate device, such as an external disk drive, storage array, or any other storage device usable by the database system. Memory 301 and processor 202 may be operatively coupled, or may communicate with each other, such as through an I/O port, network connection, etc., such that processor 202 can read files stored in the memory.
  • the electronic device 20 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, mouse, touch input device, etc.). All components of the electronic device 20 may be connected to each other via a bus and/or a network.
  • a video display such as a liquid crystal display
  • a user interaction interface such as a keyboard, mouse, touch input device, etc.
  • a computer-readable storage medium storing instructions, wherein, when the instructions are executed by at least one processor, at least one processor is prompted to execute the method described in the above-mentioned exemplary embodiments.
  • Video editing method when the instructions are executed by at least one processor, at least one processor is prompted to execute the method described in the above-mentioned exemplary embodiments.
  • Examples of computer readable storage media herein include: Read Only Memory (ROM), Random Access Programmable Read Only Memory (PROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Random Access Memory (RAM) , Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), Flash Memory, Non-volatile Memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM , DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or Optical Memory, Hard Disk Drive (HDD), Solid State Hard disks (SSD), memory cards (such as MultiMediaCards, Secure Digital (SD) or Extreme Digital (XD) cards), magnetic tapes, floppy disks, magneto-optical data storage devices, optical data storage devices, hard disks, solid-state disks, and any other means configured to store a computer program and any associated data, data files
  • the computer program in the above-mentioned computer-readable storage medium can run in an environment deployed in computer equipment such as a client, a host, an agent device, a server, etc.
  • the computer program and any associated data and data files and data structures are distributed over network-connected computer systems so that the computer programs and any associated data, data files and data structures are stored, accessed and executed in a distributed fashion by one or more processors or computers.
  • a computer program product may also be provided, and instructions in the computer program product may be executed by at least one processor to implement the video editing method described in the above exemplary embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The present disclosure provides a video editing method and device. The video editing method comprises: receiving video editing user instructions, the video editing user instructions comprising: a user instruction for selecting an object in a first video frame of a video, a user instruction for editing the object in the first video frame, and a user instruction for selecting a video frame of the video; when determined that the user instruction for selecting a video frame of the video is a user instruction for selecting at least one video frame of the video other than the first video frame, in response to the video editing user instructions, and in the first video frame and the at least one video frame, editing the object; and when determined that the user instruction for selecting a video frame of the video is a user instruction for selecting a plurality of video frames of the video including the first video frame, in response to the video editing user instructions, and in the plurality of video frames, editing the object.

Description

视频编辑方法及设备Video editing method and device
相关申请交叉引用Related Application Cross Reference
本申请基于申请号为202110788670.4、申请日为2021年7月13日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with application number 202110788670.4 and a filing date of July 13, 2021, and claims the priority of this Chinese patent application. The entire content of this Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本公开涉及视频编辑技术领域,更具体地讲,涉及一种视频编辑方法及设备。The present disclosure relates to the technical field of video editing, and more specifically, to a video editing method and device.
背景技术Background technique
随着电子技术的快速发展,为了满足用户对视频编辑的需求,越来越多的视频剪辑编辑类工具被开发。用户可利用视频剪辑编辑类工具,手动对视频的任意一个视频帧进行编辑操作,视频剪辑编辑类工具响应于用户的编辑操作,对该视频帧执行编辑处理并保存为新的视频帧覆盖原始视频帧,形成新的视频。With the rapid development of electronic technology, in order to meet the needs of users for video editing, more and more video clip editing tools have been developed. Users can use video clip editing tools to manually edit any video frame of the video, and the video clip editing tool responds to the user's editing operations, performs editing processing on the video frame and saves it as a new video frame to cover the original video frames to form a new video.
发明内容Contents of the invention
本公开的示例性实施例在于提供一种视频编辑方法及设备,其能够自动在多个视频帧中针对用户指定的对象执行用户所需的编辑处理。An exemplary embodiment of the present disclosure is to provide a video editing method and apparatus capable of automatically performing an editing process required by a user with respect to an object designated by the user in a plurality of video frames.
根据本公开实施例的第一方面,提供一种视频编辑方法,包括:接收视频编辑用户指令,其中,所述视频编辑用户指令包括:用于选择视频的第一视频帧中的对象的用户指令、用于在第一视频帧中对所述对象进行编辑处理的用户指令、以及用于选择所述视频的视频帧的用户指令,其中,用于选择所述视频的视频帧的用户指令为:用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,或用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令;确定用于选择所述视频的视频帧的用户指令为用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,响应于所述视频编辑用户指令,在第一视频帧和所述至少一个视频帧中,对所述对象 进行所述编辑处理;确定用于选择所述视频的视频帧的用户指令为用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令,响应于所述视频编辑用户指令,在所述多个视频帧中,对所述对象进行所述编辑处理。According to a first aspect of an embodiment of the present disclosure, there is provided a video editing method, including: receiving a video editing user instruction, wherein the video editing user instruction includes: a user instruction for selecting an object in the first video frame of the video , a user instruction for editing the object in the first video frame, and a user instruction for selecting a video frame of the video, wherein the user instruction for selecting a video frame of the video is: A user instruction for selecting at least one video frame of the video except the first video frame, or a user instruction for selecting a plurality of video frames including the first video frame of the video; The user instruction for selecting a video frame of the video is a user instruction for selecting at least one video frame of the video except the first video frame, and in response to the video editing user instruction, between the first video frame and all In the at least one video frame, perform the editing process on the object; determine that the user instruction for selecting a video frame of the video is a plurality of video frames including the first video frame for selecting the video In response to the video editing user instruction, the editing process is performed on the object in the plurality of video frames.
在一些实施例中,用于选择所述视频的视频帧的用户指令,在用于选择第一视频帧中的对象的用户指令之前或之后被接收;用于选择所述视频的视频帧的用户指令,在用于在第一视频帧中对所述对象进行编辑处理的用户指令之前或之后被接收。In some embodiments, the user instruction to select a video frame of the video is received before or after the user instruction to select an object in a first video frame; the user instruction to select a video frame of the video An instruction is received before or after a user instruction for editing the object in the first video frame.
在一些实施例中,所述编辑处理包括以下项之中的至少一项:对所述对象本身的编辑处理、在视频帧中插入与所述对象相关的信息的编辑处理。In some embodiments, the editing process includes at least one of the following items: editing process of the object itself, editing process of inserting information related to the object in the video frame.
在一些实施例中,所述方法还包括:向用户展示所述视频的视频帧;用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令包括以下指令中的至少一个指令:用于从展示的视频帧中直接选中所述至少一个视频帧的用户指令,和用于从展示的视频帧中选择所述至少一个视频帧的起始帧和结束帧的用户指令;用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令包括以下指令中的至少一个指令:用于从展示的视频帧中直接选中所述多个视频帧的用户指令,和用于从展示的视频帧中选择所述多个视频帧的起始帧和结束帧的用户指令。In some embodiments, the method further includes: presenting video frames of the video to a user; the user instruction for selecting at least one video frame of the video other than the first video frame includes at least one of the following instructions An instruction: a user instruction for directly selecting the at least one video frame from the displayed video frames, and a user instruction for selecting a start frame and an end frame of the at least one video frame from the displayed video frames; The user instruction for selecting a plurality of video frames including the first video frame of the video includes at least one of the following instructions: a user instruction for directly selecting the plurality of video frames from displayed video frames , and a user instruction for selecting a start frame and an end frame of the plurality of video frames from the presented video frames.
在一些实施例中,所述方法还包括:向用户展示所述视频的视频帧及展示的各个视频帧所对应的时间点;其中,用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令包括:用于选择所述视频的一个时间段内的视频帧的用户指令,其中,处于所述时间段内的视频帧为所述至少一个视频帧;用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令包括:用于选择所述视频的一个时间段内的视频帧的用户指令,其中,处于所述时间段内的视频帧为所述多个视频帧。In some embodiments, the method further includes: displaying the video frames of the video and the time points corresponding to each displayed video frame to the user; The user instruction of at least one video frame includes: a user instruction for selecting a video frame within a time period of the video, wherein the video frame within the time period is the at least one video frame; The user instruction for a plurality of video frames including the first video frame of the video includes: a user instruction for selecting video frames within a time period of the video, wherein the video frames within the time period are The plurality of video frames.
在一些实施例中,所述方法还包括:识别所述视频中出现所述对象的视频帧;向用户展示识别出的出现所述对象的视频帧;和/或,向用户展示识别出的出现所述对象的视频帧所处于的时间段和/或持续时长。In some embodiments, the method further comprises: identifying video frames in the video in which the object occurs; presenting to the user the identified video frames in which the object occurs; and/or presenting to the user the identified occurrences The time period and/or duration of the video frame of the object.
在一些实施例中,用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令包括:用于从展示的出现所述对象的视频帧中选择所述至少一个视频帧的用户指令;用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令包括:用于从展示的出现所述对象的视频帧中选择所述多个 视频帧的用户指令。In some embodiments, the user instruction for selecting at least one video frame of said video other than the first video frame comprises: for selecting said at least one video frame from among displayed video frames in which said object appears A user instruction for selecting a plurality of video frames of the video including the first video frame includes: a user instruction for selecting the plurality of video frames from the displayed video frames in which the object appears instruction.
在一些实施例中,所述方法还包括:生成经过所述编辑处理后的视频。In some embodiments, the method further includes: generating the edited video.
在一些实施例中,生成经过所述编辑处理后的视频的步骤包括:响应于用于选择所述视频的视频帧的用户指令为用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,将经过所述编辑处理后的第一视频帧和所述至少一个视频帧分别保存为新的视频帧,并替换所述视频中原有的第一视频帧和所述至少一个视频帧,以形成新的视频;响应于用于选择所述视频的视频帧的用户指令为用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令,将经过所述编辑处理后的所述多个视频帧分别保存为新的视频帧,并替换所述视频中原有的所述多个视频帧,以形成新的视频。In some embodiments, the step of generating the edited video includes: in response to a user instruction for selecting a video frame of the video, at least A user instruction of a video frame, saving the edited first video frame and the at least one video frame respectively as new video frames, and replacing the original first video frame and the at least one video frame in the video A video frame to form a new video; in response to a user instruction for selecting a video frame of the video to be a user instruction for selecting a plurality of video frames including the first video frame of the video, through The edited multiple video frames are respectively saved as new video frames, and the multiple original video frames in the video are replaced to form a new video.
在一些实施例中,所述编辑处理为在视频帧中相对于所述对象的特定位置处插入与所述对象相关的信息的编辑处理;在第一视频帧和所述至少一个视频帧中,对所述对象进行所述编辑处理的步骤包括:针对第一视频帧和所述至少一个视频帧中的每个视频帧,响应于该视频帧中的相对于所述对象的特定位置处不足以插入与所述对象相关的信息,禁用在该视频帧中插入所述信息的操作;或者,在该视频帧中的其他相应位置处插入所述信息,或在该视频帧中相对于所述对象的特定位置处插入调整了尺寸的所述信息,以使所述信息能够在该视频帧中被完整显示,In some embodiments, the editing process is an editing process of inserting information related to the object at a specific position in the video frame relative to the object; in the first video frame and the at least one video frame, The step of performing the editing process on the object includes: for each video frame of the first video frame and the at least one video frame, in response to insufficient Insert information related to the object, disable the operation of inserting the information in the video frame; or insert the information at other corresponding positions in the video frame, or in the video frame relative to the object Inserting the resized information at a specific position of the , so that the information can be completely displayed in the video frame,
在所述包括第一视频帧在内的多个视频帧中,对所述对象进行所述编辑处理的步骤包括:针对所述多个视频帧中的每个视频帧,响应于该视频帧中的相对于所述对象的特定位置处不足以插入与所述对象相关的信息,禁用该视频帧中插入所述信息的操作;或者,在该视频帧中的其他相应位置处插入所述信息,或在该视频帧中相对于所述对象的特定位置处插入调整了尺寸的所述信息,以使所述信息能够在该视频帧中被完整显示。In the plurality of video frames including the first video frame, the step of performing the editing process on the object includes: for each video frame in the plurality of video frames, responding to the Inserting the information related to the object at a specific position relative to the object is insufficient, disabling the operation of inserting the information in the video frame; or inserting the information at other corresponding positions in the video frame, Or insert the size-adjusted information at a specific position in the video frame relative to the object, so that the information can be completely displayed in the video frame.
在一些实施例中,所述方法还包括:对所述对象和/或所述编辑处理进行组件化存储,以用于后续调用。In some embodiments, the method further includes: storing the object and/or the editing process in a componentized manner for subsequent invocation.
根据本公开实施例的第二方面,提供一种视频编辑设备,包括:用户指令接收单元,被配置为接收视频编辑用户指令,其中,所述视频编辑用户指令包括:用于选择视频的第一视频帧中的对象的用户指令、用于在第一视频帧中对所述对象进行编辑处理的用户指令、以及用于选择所述视频的视频帧的用户指令,其中,用于选择所述视频的视频帧的用户指令为:用于选择所 述视频的除第一视频帧之外的至少一个视频帧的用户指令,或用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令;编辑处理单元,被配置为确定用于选择所述视频的视频帧的用户指令为用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,响应于所述视频编辑用户指令,在第一视频帧和所述至少一个视频帧中,对所述对象进行所述编辑处理;确定用于选择所述视频的视频帧的用户指令为用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令,响应于所述视频编辑用户指令,在所述多个视频帧中,对所述对象进行所述编辑处理。According to a second aspect of an embodiment of the present disclosure, there is provided a video editing device, including: a user instruction receiving unit configured to receive a video editing user instruction, wherein the video editing user instruction includes: a first a user instruction for an object in a video frame, a user instruction for editing the object in a first video frame, and a user instruction for selecting a video frame of the video, wherein the user instruction for selecting the video The user instruction of the video frame is: a user instruction for selecting at least one video frame of the video except the first video frame, or a user instruction for selecting a plurality of video frames including the first video frame of the video A user instruction of a frame; the editing processing unit is configured to determine that the user instruction for selecting a video frame of the video is a user instruction for selecting at least one video frame of the video except the first video frame, responding Based on the video editing user instruction, the editing process is performed on the object in the first video frame and the at least one video frame; In response to a user instruction for a plurality of video frames including the first video frame of the video, the editing process is performed on the object in the plurality of video frames in response to the video editing user instruction.
在一些实施例中,用于选择所述视频的视频帧的用户指令,在用于选择第一视频帧中的对象的用户指令之前或之后被接收;用于选择所述视频的视频帧的用户指令,在用于在第一视频帧中对所述对象进行编辑处理的用户指令之前或之后被接收。In some embodiments, the user instruction to select a video frame of the video is received before or after the user instruction to select an object in a first video frame; the user instruction to select a video frame of the video An instruction is received before or after a user instruction for editing the object in the first video frame.
在一些实施例中,所述编辑处理包括以下项之中的至少一项:对所述对象本身的编辑处理、在视频帧中插入与所述对象相关的信息的编辑处理。In some embodiments, the editing process includes at least one of the following items: editing process of the object itself, editing process of inserting information related to the object in the video frame.
在一些实施例中,所述设备还包括:展示单元,被配置为向用户展示所述视频的视频帧;其中,用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令包括以下指令中的至少一个指令:用于从展示的视频帧中直接选中所述至少一个视频帧的用户指令,和用于从展示的视频帧中选择所述至少一个视频帧的起始帧和结束帧的用户指令;用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令包括以下指令中的至少一个指令:用于从展示的视频帧中直接选中所述多个视频帧的用户指令,和用于从展示的视频帧中选择所述多个视频帧的起始帧和结束帧的用户指令。In some embodiments, the device further includes: a presentation unit configured to present the video frames of the video to the user; wherein, for selecting at least one video frame of the video except the first video frame The user instruction includes at least one of the following instructions: a user instruction for directly selecting the at least one video frame from the displayed video frames, and a starting point for selecting the at least one video frame from the displayed video frames frame and end frame user instruction; the user instruction for selecting a plurality of video frames including the first video frame of the video includes at least one instruction in the following instructions: for directly selecting the selected video frame from the displayed video frame A user instruction for the plurality of video frames, and a user instruction for selecting a start frame and an end frame of the plurality of video frames from the displayed video frames.
在一些实施例中,所述设备还包括:展示单元,被配置为向用户展示所述视频的视频帧及展示的各个视频帧所对应的时间点;其中,用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令包括:用于选择所述视频的一个时间段内的视频帧的用户指令,其中,处于所述时间段内的视频帧为所述至少一个视频帧;用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令包括:用于选择所述视频的一个时间段内的视频帧的用户指令,其中,处于所述时间段内的视频帧为所述多个视频帧。In some embodiments, the device further includes: a display unit configured to display the video frames of the video and the time points corresponding to each displayed video frame to the user; The user instruction of at least one video frame other than a video frame includes: a user instruction for selecting a video frame within a time period of the video, wherein the video frame within the time period is the at least one video frame frame; the user instruction for selecting a plurality of video frames of the video including the first video frame includes: a user instruction for selecting video frames within a time period of the video, wherein, at the time The video frames in the segment are the plurality of video frames.
在一些实施例中,所述设备还包括:识别单元,被配置为识别所述视频中出现所述对象的视频帧;展示单元,被配置为向用户展示识别出的出现所 述对象的视频帧;和/或,向用户展示识别出的出现所述对象的视频帧所处于的时间段和/或持续时长。In some embodiments, the device further includes: an identification unit configured to identify a video frame in which the object appears in the video; a presentation unit configured to present the identified video frame in which the object appears to the user and/or, presenting to the user the identified time period and/or duration of the video frame in which the object appears.
在一些实施例中,用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令包括:用于从展示的出现所述对象的视频帧中选择所述至少一个视频帧的用户指令;用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令包括:用于从展示的出现所述对象的视频帧中选择所述多个视频帧的用户指令。In some embodiments, the user instruction for selecting at least one video frame of said video other than the first video frame comprises: for selecting said at least one video frame from among displayed video frames in which said object appears A user instruction for selecting a plurality of video frames of the video including the first video frame includes: a user instruction for selecting the plurality of video frames from the displayed video frames in which the object appears instruction.
在一些实施例中,所述设备还包括:视频生成单元,被配置为生成经过所述编辑处理后的视频。In some embodiments, the device further includes: a video generating unit configured to generate the edited video.
在一些实施例中,响应于用于选择所述视频的视频帧的用户指令为用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,视频生成单元将经过所述编辑处理后的第一视频帧和所述至少一个视频帧分别保存为新的视频帧,并替换所述视频中原有的第一视频帧和所述至少一个视频帧,以形成新的视频;响应于用于选择所述视频的视频帧的用户指令为用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令,视频生成单元将经过所述编辑处理后的所述多个视频帧分别保存为新的视频帧,并替换所述视频中原有的所述多个视频帧,以形成新的视频。In some embodiments, in response to the user instruction for selecting a video frame of the video being a user instruction for selecting at least one video frame of the video other than the first video frame, the video generation unit will pass through the The edited first video frame and the at least one video frame are respectively saved as new video frames, and the original first video frame and the at least one video frame in the video are replaced to form a new video; In response to the user instruction for selecting a video frame of the video being a user instruction for selecting a plurality of video frames including the first video frame of the video, the video generation unit converts all the video frames after the editing process The plurality of video frames are respectively saved as new video frames, and the original video frames in the video are replaced to form a new video.
在一些实施例中,所述编辑处理为在视频帧中相对于所述对象的特定位置处插入与所述对象相关的信息的编辑处理;编辑处理单元针对第一视频帧和所述至少一个视频帧中的每个视频帧,响应于该视频帧中的相对于所述对象的特定位置处不足以插入与所述对象相关的信息,禁用在该视频帧中插入所述信息的操作;或者,在该视频帧中的其他相应位置处插入所述信息,或在该视频帧中相对于所述对象的特定位置处插入调整了尺寸的所述信息,以使所述信息能够在该视频帧中被完整显示,In some embodiments, the editing process is an editing process of inserting information related to the object at a specific position in the video frame relative to the object; the editing processing unit for the first video frame and the at least one video each of the frames, in response to insufficient insertion of the information related to the object at a particular location in the video frame relative to the object, disabling the insertion of the information in the video frame; or, Inserting said information at other corresponding positions in the video frame, or inserting said information resized at a specific position in the video frame relative to said object, so that said information can be placed in the video frame is fully displayed,
编辑处理单元针对所述包括第一视频帧在内的多个视频帧中的每个视频帧,响应于该视频帧中的相对于所述对象的特定位置处不足以插入与所述对象相关的信息,禁用在该视频帧中插入所述信息的操作;或者,在该视频帧中的其他相应位置处插入所述信息,或在该视频帧中相对于所述对象的特定位置处插入调整了尺寸的所述信息,以使所述信息能够在该视频帧中被完整显示。The editing processing unit, for each video frame in the plurality of video frames including the first video frame, responds to the fact that a specific position in the video frame relative to the object is not enough to insert information related to the object information, disabling the operation of inserting said information in the video frame; or inserting said information at other corresponding positions in this video frame, or inserting an adjusted The information of the size, so that the information can be completely displayed in the video frame.
在一些实施例中,所述设备还包括:存储单元,被配置为对所述对象和/ 或所述编辑处理进行组件化存储,以用于后续调用。In some embodiments, the device further includes: a storage unit configured to store the object and/or the editing process in a componentized manner for subsequent invocation.
根据本公开实施例的第三方面,提供一种电子设备,包括:至少一个处理器;至少一个存储计算机可执行指令的存储器,其中,所述计算机可执行指令在被所述至少一个处理器运行时,促使所述至少一个处理器执行如上所述的视频编辑方法。According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including: at least one processor; at least one memory storing computer-executable instructions, wherein the computer-executable instructions are executed by the at least one processor , prompting the at least one processor to execute the video editing method as described above.
根据本公开实施例的第四方面,提供一种非易失性计算机可读存储介质,当述计算机可读存储介质中的指令被至少一个处理器运行时,促使所述至少一个处理器执行如上所述的视频编辑方法。According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-volatile computer-readable storage medium, when instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to perform the above The video editing method described.
根据本公开实施例的第五方面,提供一种计算机程序产品,包括计算机指令,所述计算机指令被至少一个处理器执行时实现如上所述的视频编辑方法。According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, including computer instructions, when the computer instructions are executed by at least one processor, the above video editing method is realized.
根据本公开的实施例,用户仅需在交互界面中针对一个视频帧中的对象进行编辑操作并选择所需处理的其他至少一个视频帧,本公开就能够自动在这些视频帧中针对该对象执行用户所需的编辑处理,而无需用户逐帧找到该对象并手动针对该对象重复进行同样的编辑操作,从而既能够满足用户的视频编辑需求,也提高了编辑效率,并大幅降低了用户的操作量。According to the embodiment of the present disclosure, the user only needs to perform an editing operation on an object in a video frame in the interactive interface and select at least one other video frame to be processed, and the present disclosure can automatically perform editing operations on the object in these video frames The editing process required by the user does not require the user to find the object frame by frame and manually perform the same editing operation on the object, which can not only meet the user's video editing needs, but also improve the editing efficiency and greatly reduce the user's operation quantity.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings here are incorporated into the specification and constitute a part of the specification, show embodiments consistent with the disclosure, and are used together with the description to explain the principle of the disclosure, and do not constitute an improper limitation of the disclosure.
图1示出根据本公开示例性实施例的视频编辑方法的流程图;FIG. 1 shows a flowchart of a video editing method according to an exemplary embodiment of the present disclosure;
图2示出根据本公开示例性实施例的视频编辑设备的结构框图;FIG. 2 shows a structural block diagram of a video editing device according to an exemplary embodiment of the present disclosure;
图3示出根据本公开示例性实施例的电子设备的结构框图。FIG. 3 shows a structural block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
具体实施方式detailed description
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第 一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms "first" and "second" in the description and claims of the present disclosure and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
在此需要说明的是,在本公开中出现的“若干项之中的至少一项”均表示包含“该若干项中的任意一项”、“该若干项中的任意多项的组合”、“该若干项的全体”这三类并列的情况。例如“包括A和B之中的至少一个”即包括如下三种并列的情况:(1)包括A;(2)包括B;(3)包括A和B。又例如“执行步骤一和步骤二之中的至少一个”,即表示如下三种并列的情况:(1)执行步骤一;(2)执行步骤二;(3)执行步骤一和步骤二。What needs to be explained here is that "at least one of several items" appearing in this disclosure all means to include "any one of the several items", "a combination of any of the several items", The three categories of "the whole of the several items" are juxtaposed. For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "execute at least one of step 1 and step 2", which means the following three parallel situations: (1) execute step 1; (2) execute step 2; (3) execute step 1 and step 2.
图1示出根据本公开示例性实施例的视频编辑方法的流程图。FIG. 1 shows a flowchart of a video editing method according to an exemplary embodiment of the present disclosure.
本公开示例性实施例的视频编辑方法可由包含至少一个处理器的电子设备执行,参照图1,该方法包括以下步骤S101,S102,以及S103。The video editing method of an exemplary embodiment of the present disclosure may be executed by an electronic device including at least one processor. Referring to FIG. 1 , the method includes the following steps S101, S102, and S103.
在步骤S101,接收视频编辑用户指令。In step S101, a video editing user instruction is received.
这里,所述视频编辑用户指令包括:用于选择视频的第一视频帧中的对象的用户指令、用于在第一视频帧中对所述对象进行编辑处理的用户指令、以及用于选择所述视频的视频帧的用户指令。其中,用于选择所述视频的视频帧的用户指令为:用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,或用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令。Here, the video editing user instruction includes: a user instruction for selecting an object in the first video frame of the video, a user instruction for editing the object in the first video frame, and a user instruction for selecting the object in the first video frame. A user instruction describing a video frame of a video. Wherein, the user instruction for selecting a video frame of the video is: a user instruction for selecting at least one video frame of the video except the first video frame, or a user instruction for selecting the video frame including the first video frame. A user command for multiple video frames within a video frame.
在步骤S102,确定用于选择所述视频的视频帧的用户指令为用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,并响应于所述视频编辑用户指令,在第一视频帧和所述至少一个视频帧中,对所述对象进行所述编辑处理。In step S102, determine that the user instruction for selecting a video frame of the video is a user instruction for selecting at least one video frame of the video except the first video frame, and respond to the video editing user instruction , performing the editing process on the object in the first video frame and the at least one video frame.
在步骤S103,确定用于选择所述视频的视频帧的用户指令为用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令时,并响应于所述视频编辑用户指令,在所述多个视频帧中,对所述对象进行所述编辑处理。In step S103, when it is determined that the user instruction for selecting a video frame of the video is a user instruction for selecting a plurality of video frames including the first video frame of the video, and in response to the video editing user Instructing to perform the editing process on the object in the plurality of video frames.
本公开不限定各个用户指令的先后接收顺序,作为示例,用于选择所述视频的视频帧的用户指令,可在用于选择第一视频帧中的对象的用户指令之 前或之后被电子设备接收。作为示例,用于选择所述视频的视频帧的用户指令,可在用于在第一视频帧中对所述对象进行编辑处理的用户指令之前或之后被电子设备接收。The present disclosure does not limit the sequence of receiving user instructions. As an example, the user instruction for selecting a video frame of the video may be received by the electronic device before or after the user instruction for selecting an object in the first video frame. . As an example, the user instruction for selecting a video frame of the video may be received by the electronic device before or after the user instruction for editing the object in the first video frame.
作为示例,所述对象可为视频帧中的显示对象。应该理解,本公开对所述对象的数量不作限定,即,所述对象的数量可为一个或多个。As an example, the object may be a display object in a video frame. It should be understood that the present disclosure does not limit the number of the objects, that is, the number of the objects may be one or more.
作为示例,电子设备可响应于从视频的视频帧中选择第一视频帧的用户指令,向用户显示第一视频帧,并接收在第一视频帧中选择对象并对该对象进行编辑处理的用户指令。As an example, the electronic device may display the first video frame to the user in response to a user instruction to select the first video frame from the video frames of the video, and receive a user instruction to select an object in the first video frame and edit the object. instruction.
应该理解,所述编辑处理可包括对对象本身、相对于对象进行的各种适当的编辑处理,本公开对此不作限制。作为示例,所述编辑处理可包括但不限于以下项之中的至少一项:对所述对象本身的编辑处理、在视频帧中插入与所述对象相关的信息的编辑处理。It should be understood that the editing process may include various appropriate editing processes performed on the object itself or relative to the object, which is not limited in the present disclosure. As an example, the editing processing may include, but not limited to, at least one of the following: editing processing of the object itself, and editing processing of inserting information related to the object in a video frame.
作为示例,与所述对象相关的信息可包括但不限于以下类型之中的至少一项:图片、视频、文字、音频、动态图。As an example, the information related to the object may include but not limited to at least one of the following types: picture, video, text, audio, and dynamic picture.
作为示例,在视频帧中插入与所述对象相关的信息的编辑处理可包括:在视频帧中相对于所述对象的特定位置(即,所述对象的相对位置)处插入与所述对象相关的信息的编辑处理。作为示例,相对于所述对象的特定位置可以是所述对象之上和/或所述对象附近。例如,相对于所述对象的特定位置可以是在所述对象的左侧距所述对象一定距离的位置。例如,当接收到在视频帧中相对于所述对象的特定位置处插入与所述对象相关的信息的编辑处理时,可记录所述信息相对于所述对象的位置(即,所述特定位置)及所述信息。As an example, the editing process of inserting information related to the object in the video frame may include: inserting information related to the object at a specific position (ie, the relative position of the object) in the video frame relative to the object. Editing of information. As an example, the specific location relative to the object may be on and/or near the object. For example, the specific position relative to the object may be a position at a distance from the object on the left side of the object. For example, when an editing process is received that inserts information related to an object at a specific position in a video frame relative to the object, the position of the information relative to the object (i.e., the specific position ) and said information.
应该理解,所述编辑处理可包括对所述对象本身进行的各种适当的编辑处理,本公开对此不作限制。例如,所述编辑处理可包括但不限于以下项之中的至少一项:调整大小的操作、调整方向的操作、美颜操作、瘦身操作、模糊操作、遮挡操作。It should be understood that the editing process may include various appropriate editing processes performed on the object itself, which is not limited in the present disclosure. For example, the editing process may include, but is not limited to, at least one of the following: resizing operations, resizing operations, beautifying operations, slimming operations, blurring operations, and occlusion operations.
关于用于选择第一视频帧中的对象的用户指令,在一个示例中,在电子设备中,第一视频帧中的各个显示对象可被突出显示(例如,轮廓或所占区域被突出显示)以供用户选择;然后,电子设备接收用户对第一视频帧中的一个或多个被突出显示的显示对象的选择操作(例如,单击操作)。在另一示例中,电子设备可接收用户对第一视频帧中的一个或多个显示对象的圈选操 作,并将用户圈选的显示对象进行突出显示以便用户确认,例如,可将用户所圈选的显示对象的轮廓或所占区域进行突出显示,并可接收用户对所述轮廓或所占区域的调整操作。此外,作为另一示例,电子设备可识别视频帧中的各个显示对象,并生成包括关于所识别的显示对象的选项的选项列表供用户选择,例如,所述选项可为所识别的对象的名称或示意图。Regarding the user instruction for selecting an object in the first video frame, in one example, in the electronic device, each displayed object in the first video frame may be highlighted (for example, an outline or an occupied area is highlighted) for the user to select; then, the electronic device receives the user's selection operation (for example, a click operation) on one or more highlighted display objects in the first video frame. In another example, the electronic device may receive the user's circle selection operation on one or more display objects in the first video frame, and highlight the display objects circled by the user for user confirmation. The contour or occupied area of the circled display object is highlighted, and an adjustment operation on the contour or occupied area by the user can be received. In addition, as another example, the electronic device may identify each display object in the video frame, and generate an option list including options related to the identified display object for the user to select, for example, the option may be the name of the identified object or schematic.
作为示例,本公开示例性实施例的视频编辑方法还可包括:向用户展示所述视频的全部或部分视频帧。As an example, the video editing method of the exemplary embodiment of the present disclosure may further include: presenting all or part of video frames of the video to the user.
作为示例,电子设备可对用户选择的视频进行拆帧处理,并向用户展示拆帧处理得到的所述视频的全部或部分视频帧,以便于用户在展示的视频帧中选取所需的视频帧。As an example, the electronic device may deframe the video selected by the user, and display all or part of the video frames of the video obtained through the deframe processing to the user, so that the user may select a desired video frame from the displayed video frames .
作为示例,用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令可包括以下指令中的至少一个:用于从展示的视频帧中直接选中所述至少一个视频帧的用户指令,和用于从展示的视频帧中选择所述至少一个视频帧的起始帧和结束帧的用户指令。应该理解,所述至少一个视频帧为所述起始帧与结束帧之间的视频帧。As an example, the user instruction for selecting at least one video frame of the video other than the first video frame may include at least one of the following instructions: for directly selecting the at least one video frame from displayed video frames and user instructions for selecting a start frame and an end frame of the at least one video frame from the presented video frames. It should be understood that the at least one video frame is a video frame between the start frame and the end frame.
作为示例,用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令可包括以下指令中的至少一个:用于从展示的视频帧中直接选中所述多个视频帧的用户指令,和用于从展示的视频帧中选择所述多个视频帧的起始帧和结束帧的用户指令。As an example, the user instruction for selecting a plurality of video frames including the first video frame of the video may include at least one of the following instructions: for directly selecting the plurality of video frames from displayed video frames and a user instruction for selecting a start frame and an end frame of the plurality of video frames from the displayed video frames.
作为示例,根据本公开示例性实施例的视频编辑方法还可包括:电子设备向用户展示所述视频的全部或部分视频帧,以及展示的各个视频帧所对应的时间点。作为示例,在展示视频的视频帧时,可在与每个展示的视频帧相应的位置处显示每个视频帧对应的时间点,例如,视频帧1对应时间点(也即,时长)t1、视频帧2对应时间点t2、视频帧3对应时间点t3、视频帧4对应时间点t4、视频帧5对应时间点t5,…。以便用户获知视频帧之间的间隔、执行用于选择所述视频的视频帧的用户指令。As an example, the video editing method according to the exemplary embodiment of the present disclosure may further include: the electronic device presents all or part of the video frames of the video to the user, and a time point corresponding to each displayed video frame. As an example, when displaying video frames of a video, a time point corresponding to each video frame may be displayed at a position corresponding to each displayed video frame, for example, video frame 1 corresponds to a time point (that is, duration) t1, Video frame 2 corresponds to time point t2, video frame 3 corresponds to time point t3, video frame 4 corresponds to time point t4, video frame 5 corresponds to time point t5, . . . In order for the user to know the interval between the video frames, execute the user instruction for selecting the video frame of the video.
作为示例,用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令可包括:用于选择所述视频的一个时间段内的视频帧的用户指令,其中,处于所述时间段内的视频帧为所述至少一个视频帧。例如,用于选择所述视频的一个时间段内的视频帧的用户指令可包括:用于选择所述时间段的起始时间点和结束时间点的用户操作。As an example, the user instruction for selecting at least one video frame of the video other than the first video frame may include: a user instruction for selecting video frames within a time period of the video, wherein the The video frames within the time period are the at least one video frame. For example, the user instruction for selecting a video frame within a time period of the video may include: a user operation for selecting a start time point and an end time point of the time period.
作为示例,用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令可包括:用于选择所述视频的一个时间段内的视频帧的用户指令,其中,处于所述时间段内的视频帧为所述多个视频帧。As an example, the user instruction for selecting a plurality of video frames of the video including the first video frame may include: a user instruction for selecting video frames within a time period of the video, wherein the The video frames in the time period are the plurality of video frames.
作为示例,根据本公开示例性实施例的视频编辑方法还可包括:电子设备识别所述视频中出现所述对象的视频帧;并向用户展示识别出的出现所述对象的视频帧,和/或,向用户展示识别出的出现所述对象的视频帧所处于的时间段和/或持续时长。As an example, the video editing method according to an exemplary embodiment of the present disclosure may further include: the electronic device identifying a video frame in which the object appears in the video; and presenting the identified video frame in which the object appears to the user, and/or Or, the identified time period and/or duration of the video frame in which the object appears is displayed to the user.
此外,作为示例,在展示识别出的出现所述对象的视频帧时,可在展示的视频帧中突出显示所述对象。Furthermore, as an example, when presenting the identified video frame in which the object appears, the object may be highlighted in the presented video frame.
作为示例,用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令可包括:用于从展示的出现所述对象的视频帧中选择所述至少一个视频帧的用户指令。作为示例,用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令可包括:用于从展示的出现所述对象的视频帧中选择所述多个视频帧的用户指令。As an example, the user instruction for selecting at least one video frame of the video other than the first video frame may include: for the user to select the at least one video frame from the displayed video frames in which the object appears. instruction. As an example, the user instruction for selecting a plurality of video frames of the video including the first video frame may include: a user instruction for selecting the plurality of video frames from a displayed video frame in which the object appears instruction.
作为示例,电子设备可从第一视频帧开始,向后搜索所述视频的视频帧中出现所述对象的视频帧并展示;或者,可从第一视频帧开始,向前搜索所述视频的视频帧中出现所述对象的视频帧并展示;或者,可从所述视频的全部视频帧中搜索出现所述对象的视频帧并展示。As an example, the electronic device may start from the first video frame, and search backward for the video frame in which the object appears in the video frames of the video and display it; or, start from the first video frame, and search forward for the video frame A video frame in which the object appears in the video frame is displayed; or, a video frame in which the object appears can be searched from all video frames of the video and displayed.
在步骤S102,确定用于选择所述视频的视频帧的用户指令为用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,响应于所述视频编辑用户指令,在第一视频帧和所述至少一个视频帧中,对所述对象进行所述编辑处理。In step S102, determining that the user instruction for selecting a video frame of the video is a user instruction for selecting at least one video frame of the video except the first video frame, in response to the video editing user instruction, In the first video frame and the at least one video frame, the editing process is performed on the object.
应该理解,本公开对第一视频帧和所述至少一个视频帧的编辑处理的先后顺序不作限定,例如,当用于选择所述视频的视频帧的用户指令在用于在第一视频帧中对所述对象进行编辑处理的用户指令之前被接收到时,电子设备可响应于视频编辑用户指令,同时在第一视频帧和所述至少一个视频帧中,对所述对象进行所述编辑处理。例如,当用于选择所述视频的视频帧的用户指令在用于在第一视频帧中对所述对象进行编辑处理的用户指令之后被接收到时,电子设备可响应于用于在第一视频帧中对所述对象进行编辑处理的用户指令,先在第一视频帧中,对所述对象进行所述编辑处理;然后,响应于用于选择所述视频的视频帧的用户指令,在所述至少一个视频帧中,对所述 对象进行所述编辑处理。It should be understood that the present disclosure does not limit the order of editing processing of the first video frame and the at least one video frame, for example, when the user instruction for selecting a video frame of the video is used in the first video frame When a user instruction to perform editing processing on the object is received before, the electronic device may respond to the video editing user instruction and simultaneously perform the editing processing on the object in the first video frame and the at least one video frame . For example, when a user instruction for selecting a video frame of the video is received after a user instruction for editing the object in the first video frame, the electronic device may respond to the user instruction for editing the object in the first video frame. The user instruction for editing the object in the video frame first performs the editing process on the object in the first video frame; then, in response to the user instruction for selecting the video frame of the video, in the first video frame In the at least one video frame, the editing process is performed on the object.
在步骤S103,确定用于选择所述视频的视频帧的用户指令为用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令,响应于所述视频编辑用户指令,在所述多个视频帧中,对所述对象进行所述编辑处理。In step S103, it is determined that the user instruction for selecting a video frame of the video is a user instruction for selecting a plurality of video frames including the first video frame of the video, and in response to the video editing user instruction, In the plurality of video frames, the editing process is performed on the object.
具体说来,用户只需在一个视频帧上针对所述对象进行编辑操作,并选择需要进行相同处理的其他视频帧,即可实现自动对用户所选择的其他视频帧进行与所述一个视频帧相同的编辑处理,换言之,无需用户针对这些视频帧逐帧寻找所述对象,并重复进行与在所述一个视频帧上相同的编辑操作,在大大减轻了用户的操作量和工作量的同时,满足了用户需求。Specifically, the user only needs to perform an editing operation on the object on one video frame, and select other video frames that need to be processed in the same way, and then the other video frames selected by the user can be automatically combined with the one video frame. The same editing process, in other words, does not require the user to search for the object frame by frame for these video frames, and repeat the same editing operation as on the one video frame, while greatly reducing the user's operation and workload. Meet user needs.
作为示例,电子设备可先在用户选择的非第一视频帧的视频帧中识别出所述对象,然后针对所述对象进行所述编辑处理。As an example, the electronic device may first identify the object in a video frame other than the first video frame selected by the user, and then perform the editing process on the object.
作为示例,电子设备可对用户在第一视频帧上划定的对象范围进行图片内容理解以确定所述对象,比如第一视频帧中有人物A,人物B,人物C,用户在第一视频帧上划定了“人物A”作为一个需要锁定的对象,并在第一视频帧中插入“人物A”这一对象的文字解说类标签,例如,所述标签可以是其中包含文字的气泡图片,并且用户在视频时间轴上指定了一个用于展示“人物A”的标签的时间段,即,需要在该时间段内的每个视频帧中显示“人物A”的所述标签。相应地,可将“人物A”作为所述对象从该时间段内的每个视频帧中识别出来,然后针对“人物A”插入所述标签。可以看出,本公开不仅能够实现自动对至少一个视频帧执行用户所需的处理,还能够为用户提供针对用户指定的视频帧内对象在其他视频帧中自动识别的功能。As an example, the electronic device may perform picture content understanding on the object range defined by the user on the first video frame to determine the object. For example, there are character A, character B, and character C in the first video frame. "Character A" is defined on the frame as an object to be locked, and a text commentary label of the object "Character A" is inserted in the first video frame, for example, the label may be a bubble picture containing text therein , and the user specifies a time period for displaying the label of "person A" on the video timeline, that is, the label of "person A" needs to be displayed in each video frame within the time period. Correspondingly, "person A" can be identified as the object from each video frame in the time period, and then the tag can be inserted for "person A". It can be seen that the present disclosure can not only automatically perform the processing required by the user on at least one video frame, but also provide the user with the function of automatically identifying the object in the video frame specified by the user in other video frames.
作为示例,所述编辑处理可为在视频帧中相对于所述对象的特定位置处插入与所述对象相关的信息的编辑处理,可针对第一视频帧和所述至少一个视频帧中的每个视频帧,当该视频帧中的相对于所述对象的特定位置处不足以插入与所述对象相关的信息(换言之,插入所述信息后所述信息不能被完整显示)时,禁用在该视频帧中插入所述信息的操作;或者,在该视频帧中的其他相应位置处插入所述信息,或在该视频帧中相对于所述对象的特定位置处插入调整了尺寸的所述信息,以使所述信息能够在该视频帧中被完整显示。As an example, the editing process may be an editing process of inserting information related to the object at a specific position in the video frame relative to the object, and may be for each of the first video frame and the at least one video frame A video frame, when the specific position relative to the object in the video frame is not enough to insert the information related to the object (in other words, the information cannot be completely displayed after the information is inserted), disable the The operation of inserting said information into a video frame; or, inserting said information at other corresponding positions in said video frame, or inserting said information with a size adjusted at a specific position in said video frame relative to said object , so that the information can be completely displayed in the video frame.
作为示例,所述编辑处理可为在视频帧中相对于所述对象的特定位置处插入与所述对象相关的信息的编辑处理,可针对包括第一视频帧在内的所述 多个视频帧中的每个视频帧,当该视频帧中的相对于所述对象的特定位置处不足以插入与所述对象相关的信息时,禁用在该视频帧中插入所述信息的操作;或者,在该视频帧中的其他相应位置处插入所述信息,或在该视频帧中相对于所述对象的特定位置处插入调整了尺寸的所述信息,以使所述信息能够在该视频帧中被完整显示。As an example, the editing process may be an editing process of inserting information related to the object at a specific position in the video frame relative to the object, and may target the plurality of video frames including the first video frame For each video frame in , when the specific position in the video frame relative to the object is insufficient to insert the information related to the object, disable the operation of inserting the information in the video frame; or, in Inserting the information at other corresponding positions in the video frame, or inserting the resized information at a specific position in the video frame relative to the object, so that the information can be viewed in the video frame full display.
此外,作为示例,可针对第一视频帧和所述至少一个视频帧中的每个视频帧,如果在该视频帧中的相对于所述对象的特定位置处插入与所述对象相关的信息会遮挡该视频帧中的其他主要对象,则禁用在该视频帧中插入所述信息的操作;或者,在该视频帧中的其他相应位置处插入所述信息或在该视频帧中相对于所述对象的特定位置处插入调整了尺寸的所述信息,以使所述信息不会遮挡该视频帧中的其他主要对象。In addition, as an example, for each of the first video frame and the at least one video frame, if inserting information related to the object at a specific position in the video frame relative to the object will If other main objects in the video frame are blocked, the operation of inserting the information in the video frame is disabled; or, insert the information in other corresponding positions in the video frame or in the video frame relative to the The resized information is inserted at a specific position of the object so that the information does not obscure other main objects in the video frame.
此外,作为示例,可针对包括第一视频帧在内的所述多个视频帧中的每个视频帧,如果在该视频帧中的相对于所述对象的特定位置处插入与所述对象相关的信息会遮挡该视频帧中的其他主要对象,则禁用在该视频帧中插入所述信息的操作;或者,在该视频帧中的其他相应位置处插入所述信息或在该视频帧中相对于所述对象的特定位置处插入调整了尺寸的所述信息,以使所述信息不会遮挡该视频帧中的其他主要对象。In addition, as an example, for each video frame in the plurality of video frames including the first video frame, if a video frame related to the object is inserted at a specific position in the video frame relative to the object If the information will occlude other main objects in the video frame, disable the operation of inserting the information in the video frame; or, insert the information at other corresponding positions in the video frame or relatively in the video frame The resized information is inserted at a specific position of the object so that the information does not occlude other main objects in the video frame.
此外,作为示例,根据本公开示例性实施例的视频编辑方法还可包括:电子设备生成经过所述编辑处理后的视频。In addition, as an example, the video editing method according to the exemplary embodiment of the present disclosure may further include: the electronic device generates the edited video.
作为示例,响应于用于选择所述视频的视频帧的用户指令为用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,电子设备可将经过所述编辑处理后的第一视频帧和所述至少一个视频帧分别保存为新的视频帧,并替换所述视频中原有的第一视频帧和所述至少一个视频帧,以形成新的视频。As an example, in response to the user instruction for selecting a video frame of the video being a user instruction for selecting at least one video frame of the video except the first video frame, the electronic device may pass through the editing process The last first video frame and the at least one video frame are respectively saved as new video frames, and the original first video frame and the at least one video frame in the video are replaced to form a new video.
作为示例,响应于用于选择所述视频的视频帧的用户指令为用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令,电子设备可将经过所述编辑处理后的所述多个视频帧分别保存为新的视频帧,并替换所述视频中原有的所述多个视频帧,以形成新的视频。As an example, in response to the user instruction for selecting a video frame of the video being a user instruction for selecting a plurality of video frames including the first video frame of the video, the electronic device may pass through the editing process The subsequent multiple video frames are respectively saved as new video frames, and the original multiple video frames in the video are replaced to form a new video.
作为示例,根据本公开示例性实施例的视频编辑方法还可包括:电子设备对所述对象和/或所述编辑处理进行组件化存储,以用于后续调用。例如,电子设备可针对所述对象生成相应的控件,例如,所述控件可被显示为所述 对象的名称或示意图;电子设备可针对所述编辑处理生成相应的控件,例如,所述控件可被显示为所述编辑处理的名称或处理效果,当用户针对其他视频进行编辑操作时,可提供针对所述对象的控件和/或针对所述编辑处理的控件供用户选择,如果用户选择针对所述对象的控件和针对所述编辑处理的控件,则电子设备可自动在相应的视频帧中针对所述对象执行所述编辑处理。以减少用户在编辑不同视频时,寻找包括该对象的视频帧及定位和编辑视频帧中的该对象的操作。As an example, the video editing method according to the exemplary embodiment of the present disclosure may further include: the electronic device stores the object and/or the editing process in a component form for subsequent calling. For example, the electronic device may generate a corresponding control for the object, for example, the control may be displayed as a name or a schematic diagram of the object; the electronic device may generate a corresponding control for the editing process, for example, the control may Displayed as the name or processing effect of the editing process, when the user performs editing operations on other videos, controls for the object and/or controls for the editing process can be provided for the user to select. If there are controls for the object and controls for the editing process, the electronic device can automatically perform the editing process for the object in the corresponding video frame. In order to reduce the user's operations of searching for a video frame including the object and locating and editing the object in the video frame when editing different videos.
作为示例,根据本公开示例性实施例的视频编辑方法还可包括:电子设备将所述编辑处理后的视频、或编辑处理后的第一视频帧和所述至少一个视频帧、或编辑处理后的包括第一视频帧在内的所述多个视频帧上传到服务器。在本示例中,电子设备可以是用户所在的客户端。例如,当所述编辑处理是针对所述对象插入标签时,电子设备将编辑处理后的视频帧上传到服务器,可以将编辑处理后的视频帧运用到更多的场景:比如搜索、人工智能图片比较和抽象,可提高视频内容的搜索结果的精确度。As an example, the video editing method according to an exemplary embodiment of the present disclosure may further include: the electronic device converting the edited video, or the edited first video frame and the at least one video frame, or the edited The multiple video frames including the first video frame are uploaded to the server. In this example, the electronic device may be the client on which the user resides. For example, when the editing process is to insert a tag for the object, the electronic device uploads the edited video frame to the server, and can apply the edited video frame to more scenarios: such as search, artificial intelligence picture Compare and abstract to improve the precision of search results for video content.
图2示出根据本公开示例性实施例的视频编辑设备的结构框图。FIG. 2 illustrates a structural block diagram of a video editing device according to an exemplary embodiment of the present disclosure.
如图2所示,根据本公开示例性实施例的视频编辑设备10包括:用户指令接收单元101、以及编辑处理单元102。As shown in FIG. 2 , a video editing device 10 according to an exemplary embodiment of the present disclosure includes: a user instruction receiving unit 101 , and an editing processing unit 102 .
用户指令接收单元101被配置为接收视频编辑用户指令,其中,所述视频编辑用户指令包括:用于选择视频的第一视频帧中的对象的用户指令、用于在第一视频帧中对所述对象进行编辑处理的用户指令、以及用于选择所述视频的视频帧的用户指令,其中,用于选择所述视频的视频帧的用户指令为:用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,或用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令。The user instruction receiving unit 101 is configured to receive a video editing user instruction, wherein the video editing user instruction includes: a user instruction for selecting an object in the first video frame of the video, for selecting an object in the first video frame The user instruction for editing the object and the user instruction for selecting the video frame of the video, wherein the user instruction for selecting the video frame of the video is: for selecting the video except the first video A user instruction of at least one video frame other than the video frame, or a user instruction for selecting a plurality of video frames of the video including the first video frame.
编辑处理单元102被配置为确定用于选择所述视频的视频帧的用户指令为用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,响应于所述视频编辑用户指令,在第一视频帧和所述至少一个视频帧中,对所述对象进行所述编辑处理;确定用于选择所述视频的视频帧的用户指令为用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令,响应于所述视频编辑用户指令,在所述多个视频帧中,对所述对象进行所述编辑处理。The editing processing unit 102 is configured to determine that the user instruction for selecting a video frame of the video is a user instruction for selecting at least one video frame of the video except the first video frame, and responding to the video editing The user instruction is to perform the editing process on the object in the first video frame and the at least one video frame; it is determined that the user instruction for selecting the video frame of the video includes the second video frame for selecting the video A user instruction of a plurality of video frames including one video frame, in response to the video editing user instruction, the editing process is performed on the object in the plurality of video frames.
作为示例,用于选择所述视频的视频帧的用户指令,可在用于选择第一视频帧中的对象的用户指令之前或之后被接收;用于选择所述视频的视频帧 的用户指令,可在用于在第一视频帧中对所述对象进行编辑处理的用户指令之前或之后被接收。As an example, a user instruction for selecting a video frame of the video may be received before or after a user instruction for selecting an object in a first video frame; a user instruction for selecting a video frame of the video, It may be received before or after a user instruction to edit said object in the first video frame.
作为示例,所述编辑处理可包括以下项之中的至少一项:对所述对象本身的编辑处理、在视频帧中插入与所述对象相关的信息的编辑处理。As an example, the editing processing may include at least one of the following items: editing processing of the object itself, editing processing of inserting information related to the object in a video frame.
作为示例,视频编辑设备10还可包括:展示单元(未示出),展示单元被配置为向用户展示所述视频的视频帧;用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令可包括以下指令中的至少一个指令:用于从展示的视频帧中直接选中所述至少一个视频帧的用户指令,和用于从展示的视频帧中选择所述至少一个视频帧的起始帧和结束帧的用户指令;用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令可包括以下指令中的至少一个指令:用于从展示的视频帧中直接选中所述多个视频帧的用户指令,和用于从展示的视频帧中选择所述多个视频帧的起始帧和结束帧的用户指令。As an example, the video editing device 10 may further include: a display unit (not shown), the display unit is configured to display video frames of the video to the user; The user instruction of a video frame may include at least one of the following instructions: a user instruction for directly selecting the at least one video frame from the displayed video frames, and a user instruction for selecting the at least one video frame from the displayed video frames. A user instruction of the start frame and the end frame of the video frame; the user instruction for selecting a plurality of video frames including the first video frame of the video may include at least one of the following instructions: A user instruction for directly selecting the plurality of video frames in the video frame, and a user instruction for selecting a start frame and an end frame of the plurality of video frames from displayed video frames.
作为示例,视频编辑设备10还可包括:展示单元(未示出),展示单元被配置为向用户展示所述视频的视频帧及展示的各个视频帧所对应的时间点。As an example, the video editing device 10 may further include: a display unit (not shown), configured to display the video frames of the video and the time points corresponding to the displayed video frames to the user.
作为示例,用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令可包括:用于选择所述视频的一个时间段内的视频帧的用户指令,其中,处于所述时间段内的视频帧为所述至少一个视频帧。As an example, the user instruction for selecting at least one video frame of the video other than the first video frame may include: a user instruction for selecting video frames within a time period of the video, wherein the The video frames within the time period are the at least one video frame.
作为示例,用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令可包括:用于选择所述视频的一个时间段内的视频帧的用户指令,其中,处于所述时间段内的视频帧为所述多个视频帧。As an example, the user instruction for selecting a plurality of video frames of the video including the first video frame may include: a user instruction for selecting video frames within a time period of the video, wherein the The video frames in the time period are the plurality of video frames.
作为示例,视频编辑设备10还可包括:识别单元(未示出)和展示单元(未示出),识别单元被配置为识别所述视频中出现所述对象的视频帧;展示单元被配置为向用户展示识别出的出现所述对象的视频帧,和/或,向用户展示识别出的出现所述对象的视频帧所处于的时间段和/或持续时长。As an example, the video editing device 10 may further include: an identification unit (not shown) and a presentation unit (not shown), the identification unit is configured to identify the video frame in which the object appears in the video; the presentation unit is configured to The identified video frame in which the object appears is presented to the user, and/or the time period and/or duration of the identified video frame in which the object appears is presented to the user.
作为示例,用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令可包括:用于从展示的出现所述对象的视频帧中选择所述至少一个视频帧的用户指令;用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令可包括:用于从展示的出现所述对象的视频帧中选择所述多个视频帧的用户指令。As an example, the user instruction for selecting at least one video frame of the video other than the first video frame may include: for the user to select the at least one video frame from the displayed video frames in which the object appears. Instructions; user instructions for selecting a plurality of video frames of the video including the first video frame may include: user instructions for selecting the plurality of video frames from among the displayed video frames in which the object appears .
作为示例,视频编辑设备10还可包括:视频生成单元(未示出),视频 生成单元被配置为生成经过所述编辑处理后的视频。As an example, the video editing device 10 may further include: a video generating unit (not shown), and the video generating unit is configured to generate the edited video.
作为示例,响应于用于选择所述视频的视频帧的用户指令为用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,视频生成单元可将经过所述编辑处理后的第一视频帧和所述至少一个视频帧分别保存为新的视频帧,并替换所述视频中原有的第一视频帧和所述至少一个视频帧,以形成新的视频;响应于用于选择所述视频的视频帧的用户指令为用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令,视频生成单元可将经过所述编辑处理后的所述多个视频帧分别保存为新的视频帧,并替换所述视频中原有的所述多个视频帧,以形成新的视频。As an example, in response to the user instruction for selecting a video frame of the video being a user instruction for selecting at least one video frame of the video except the first video frame, the video generating unit may pass through the editing The processed first video frame and the at least one video frame are saved as new video frames respectively, and replace the original first video frame and the at least one video frame in the video to form a new video; in response to The user instruction for selecting a video frame of the video is a user instruction for selecting a plurality of video frames including the first video frame of the video, and the video generation unit may convert the edited The multiple video frames are respectively saved as new video frames, and the multiple original video frames in the video are replaced to form a new video.
作为示例,所述编辑处理可为在视频帧中相对于所述对象的特定位置处插入与所述对象相关的信息的编辑处理;其中,编辑处理单元102可针对第一视频帧和所述至少一个视频帧中的每个视频帧,响应于该视频帧中的相对于所述对象的特定位置处不足以插入与所述对象相关的信息,禁用在该视频帧中插入所述信息的操作;或者,在该视频帧中的其他相应位置处插入所述信息,或在该视频帧中相对于所述对象的特定位置处插入调整了尺寸的所述信息,以使所述信息能够在该视频帧中被完整显示。As an example, the editing process may be an editing process of inserting information related to the object at a specific position in the video frame relative to the object; wherein, the editing processing unit 102 may target the first video frame and the at least each of a video frame, in response to insufficient insertion of the information related to the object at a particular location in the video frame relative to the object, disabling the insertion of the information in the video frame; Alternatively, inserting the information at other corresponding positions in the video frame, or inserting the resized information at a specific position in the video frame relative to the object, so that the information can be displayed in the video frame The frame is fully displayed.
作为示例,所述编辑处理可为在视频帧中相对于所述对象的特定位置处插入与所述对象相关的信息的编辑处理;其中,编辑处理单元102可针对所述包括第一视频帧在内的多个视频帧中的每个视频帧,响应于该视频帧中的相对于所述对象的特定位置处不足以插入与所述对象相关的信息,禁用在该视频帧中插入所述信息的操作;或者,在该视频帧中的其他相应位置处插入所述信息,或在该视频帧中相对于所述对象的特定位置处插入调整了尺寸的所述信息,以使所述信息能够在该视频帧中被完整显示。As an example, the editing process may be an editing process of inserting information related to the object at a specific position in the video frame relative to the object; wherein, the editing processing unit 102 may target the In each of the plurality of video frames within the video frame, in response to insufficient insertion of information related to the object at a particular location in the video frame relative to the object, disabling insertion of the information in the video frame or inserting said information at other corresponding positions in the video frame, or inserting said information resized at a specific position in the video frame relative to said object so that said information can is fully displayed in this video frame.
作为示例,视频编辑设备10还可包括:存储单元(未示出),存储单元被配置为对所述对象和/或所述编辑处理进行组件化存储,以用于后续调用。As an example, the video editing device 10 may further include: a storage unit (not shown), configured to store the object and/or the editing process in a componentized manner for subsequent calling.
关于上述实施例中的设备,其中各个单元执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。With regard to the device in the above embodiments, the specific manner in which each unit executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
此外,应该理解,根据本公开示例性实施例的视频编辑设备10中的各个单元可被实现硬件组件和/或软件组件。本领域技术人员根据限定的各个单元所执行的处理,可以例如使用现场可编程门阵列(FPGA)或专用集成电路(ASIC)来实现各个单元。Also, it should be understood that each unit in the video editing device 10 according to an exemplary embodiment of the present disclosure may be implemented as hardware components and/or software components. Those skilled in the art may implement each unit, for example, by using a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC) according to the defined processing performed by each unit.
图3示出根据本公开示例性实施例的电子设备的结构框图。参照图3,该电子设备20包括:至少一个存储器201和至少一个处理器202,所述至少一个存储器201中存储有计算机可执行指令集合,当计算机可执行指令集合被至少一个处理器202执行时,执行如上述示例性实施例所述的视频编辑方法。FIG. 3 shows a structural block diagram of an electronic device according to an exemplary embodiment of the present disclosure. 3, the electronic device 20 includes: at least one memory 201 and at least one processor 202, the at least one memory 201 stores a set of computer-executable instructions, when the set of computer-executable instructions is executed by at least one processor 202 , executing the video editing method described in the above exemplary embodiments.
作为示例,电子设备20可以是PC计算机、平板装置、个人数字助理、智能手机、或其他能够执行上述指令集合的装置。这里,电子设备20并非必须是单个的电子设备,还可以是任何能够单独或联合执行上述指令(或指令集)的装置或电路的集合体。电子设备20还可以是集成控制系统或系统管理器的一部分,或者可被配置为与本地或远程(例如,经由无线传输)以接口互联的便携式电子设备。As an example, the electronic device 20 may be a PC computer, a tablet device, a personal digital assistant, a smart phone, or other devices capable of executing the above-mentioned set of instructions. Here, the electronic device 20 is not necessarily a single electronic device, but can also be any assembly of devices or circuits capable of individually or jointly executing the above-mentioned instructions (or instruction sets). Electronic device 20 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that interfaces locally or remotely (eg, via wireless transmission).
在电子设备20中,处理器202可包括中央处理器(CPU)、图形处理器(GPU)、可编程逻辑装置、专用处理器系统、微控制器或微处理器。作为示例而非限制,处理器202还可包括模拟处理器、数字处理器、微处理器、多核处理器、处理器阵列、网络处理器等。In electronic device 20, processor 202 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a special purpose processor system, a microcontroller, or a microprocessor. By way of example and not limitation, processor 202 may also include analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, and the like.
处理器202可运行存储在存储器201中的指令或代码,其中,存储器201还可以存储数据。指令和数据还可经由网络接口装置而通过网络被发送和接收,其中,网络接口装置可采用任何已知的传输协议。The processor 202 can execute instructions or codes stored in the memory 201, wherein the memory 201 can also store data. Instructions and data may also be sent and received over the network via the network interface device, which may employ any known transmission protocol.
存储器201可与处理器202集成为一体,例如,将RAM或闪存布置在集成电路微处理器等之内。此外,存储器201可包括独立的装置,诸如,外部盘驱动、存储阵列或任何数据库系统可使用的其他存储装置。存储器301和处理器202可在操作上进行耦合,或者可例如通过I/O端口、网络连接等互相通信,使得处理器202能够读取存储在存储器中的文件。The memory 201 can be integrated with the processor 202, for example, RAM or flash memory is arranged in an integrated circuit microprocessor or the like. Additionally, storage 201 may comprise a separate device, such as an external disk drive, storage array, or any other storage device usable by the database system. Memory 301 and processor 202 may be operatively coupled, or may communicate with each other, such as through an I/O port, network connection, etc., such that processor 202 can read files stored in the memory.
此外,电子设备20还可包括视频显示器(诸如,液晶显示器)和用户交互接口(诸如,键盘、鼠标、触摸输入装置等)。电子设备20的所有组件可经由总线和/或网络而彼此连接。In addition, the electronic device 20 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, mouse, touch input device, etc.). All components of the electronic device 20 may be connected to each other via a bus and/or a network.
根据本公开的示例性实施例,还可提供一种存储指令的计算机可读存储介质,其中,当指令被至少一个处理器运行时,促使至少一个处理器执行如上述示例性实施例所述的视频编辑方法。这里的计算机可读存储介质的示例包括:只读存储器(ROM)、随机存取可编程只读存储器(PROM)、电可擦除可编程只读存储器(EEPROM)、随机存取存储器(RAM)、动态随机存取 存储器(DRAM)、静态随机存取存储器(SRAM)、闪存、非易失性存储器、CD-ROM、CD-R、CD+R、CD-RW、CD+RW、DVD-ROM、DVD-R、DVD+R、DVD-RW、DVD+RW、DVD-RAM、BD-ROM、BD-R、BD-R LTH、BD-RE、蓝光或光盘存储器、硬盘驱动器(HDD)、固态硬盘(SSD)、卡式存储器(诸如,多媒体卡、安全数字(SD)卡或极速数字(XD)卡)、磁带、软盘、磁光数据存储装置、光学数据存储装置、硬盘、固态盘以及任何其他装置,所述任何其他装置被配置为以非暂时性方式存储计算机程序以及任何相关联的数据、数据文件和数据结构并将所述计算机程序以及任何相关联的数据、数据文件和数据结构提供给处理器或计算机使得处理器或计算机能执行所述计算机程序。上述计算机可读存储介质中的计算机程序可在诸如客户端、主机、代理装置、服务器等计算机设备中部署的环境中运行,此外,在一个示例中,计算机程序以及任何相关联的数据、数据文件和数据结构分布在联网的计算机系统上,使得计算机程序以及任何相关联的数据、数据文件和数据结构通过一个或多个处理器或计算机以分布式方式存储、访问和执行。According to an exemplary embodiment of the present disclosure, there may also be provided a computer-readable storage medium storing instructions, wherein, when the instructions are executed by at least one processor, at least one processor is prompted to execute the method described in the above-mentioned exemplary embodiments. Video editing method. Examples of computer readable storage media herein include: Read Only Memory (ROM), Random Access Programmable Read Only Memory (PROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Random Access Memory (RAM) , Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), Flash Memory, Non-volatile Memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM , DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or Optical Memory, Hard Disk Drive (HDD), Solid State Hard disks (SSD), memory cards (such as MultiMediaCards, Secure Digital (SD) or Extreme Digital (XD) cards), magnetic tapes, floppy disks, magneto-optical data storage devices, optical data storage devices, hard disks, solid-state disks, and any other means configured to store a computer program and any associated data, data files and data structures in a non-transitory manner and to provide said computer program and any associated data, data files and data structures to the processor or the computer to enable the processor or the computer to execute the computer program. The computer program in the above-mentioned computer-readable storage medium can run in an environment deployed in computer equipment such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data and data files and data structures are distributed over network-connected computer systems so that the computer programs and any associated data, data files and data structures are stored, accessed and executed in a distributed fashion by one or more processors or computers.
根据本公开的示例性实施例,还可提供一种计算机程序产品,该计算机程序产品中的指令可由至少一个处理器执行以完成如上述示例性实施例所述的视频编辑方法。According to an exemplary embodiment of the present disclosure, a computer program product may also be provided, and instructions in the computer program product may be executed by at least one processor to implement the video editing method described in the above exemplary embodiments.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (25)

  1. 一种视频编辑方法,包括:A method of video editing, comprising:
    接收视频编辑用户指令,其中,所述视频编辑用户指令包括:用于选择视频的第一视频帧中的对象的用户指令、用于在第一视频帧中对所述对象进行编辑处理的用户指令、以及用于选择所述视频的视频帧的用户指令,其中,用于选择所述视频的视频帧的用户指令为:用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,或用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令;receiving a video editing user instruction, wherein the video editing user instruction includes: a user instruction for selecting an object in the first video frame of the video, a user instruction for editing the object in the first video frame , and a user instruction for selecting a video frame of the video, wherein the user instruction for selecting a video frame of the video is: for selecting at least one video frame of the video except the first video frame or a user instruction for selecting a plurality of video frames of the video including the first video frame;
    确定用于选择所述视频的视频帧的用户指令为用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,响应于所述视频编辑用户指令,在第一视频帧和所述至少一个视频帧中,对所述对象进行所述编辑处理;Determining that the user instruction for selecting a video frame of the video is a user instruction for selecting at least one video frame of the video except the first video frame, in response to the video editing user instruction, in the first video performing the editing process on the object in the frame and the at least one video frame;
    确定用于选择所述视频的视频帧的用户指令为用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令,响应于所述视频编辑用户指令,在所述多个视频帧中,对所述对象进行所述编辑处理。determining that the user instruction for selecting a video frame of the video is a user instruction for selecting a plurality of video frames of the video including the first video frame, in response to the video editing user instruction, in the multiple In video frames, the editing process is performed on the object.
  2. 根据权利要求1所述的方法,其中,用于选择所述视频的视频帧的用户指令,在用于选择第一视频帧中的对象的用户指令之前或之后被接收;The method of claim 1 , wherein the user instruction to select a video frame of the video is received before or after the user instruction to select an object in the first video frame;
    用于选择所述视频的视频帧的用户指令,在用于在第一视频帧中对所述对象进行编辑处理的用户指令之前或之后被接收。A user instruction for selecting a video frame of the video is received before or after a user instruction for editing the object in the first video frame.
  3. 根据权利要求1所述的方法,其中,所述编辑处理包括以下项之中的至少一项:对所述对象本身的编辑处理、在视频帧中插入与所述对象相关的信息的编辑处理。The method according to claim 1, wherein said editing process comprises at least one of: editing process of said object itself, editing process of inserting information related to said object in a video frame.
  4. 根据权利要求1所述的方法,还包括:向用户展示所述视频的视频帧;The method of claim 1, further comprising: presenting a video frame of the video to a user;
    用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令包括以下指令中的至少一个指令:用于从展示的视频帧中直接选中所述至少一个视频帧的用户指令,和用于从展示的视频帧中选择所述至少一个视频帧的起始帧和结束帧的用户指令;The user instruction for selecting at least one video frame other than the first video frame of the video includes at least one of the following instructions: a user instruction for directly selecting the at least one video frame from the displayed video frames , and user instructions for selecting a start frame and an end frame of the at least one video frame from the displayed video frames;
    用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令包括以下指令中的至少一个指令:用于从展示的视频帧中直接选中所述多个视频帧的用户指令,和用于从展示的视频帧中选择所述多个视频帧的起始帧和结束帧的用户指令。The user instruction for selecting a plurality of video frames including the first video frame of the video includes at least one of the following instructions: a user instruction for directly selecting the plurality of video frames from displayed video frames , and a user instruction for selecting a start frame and an end frame of the plurality of video frames from the presented video frames.
  5. 根据权利要求1所述的方法,还包括:向用户展示所述视频的视频帧及展示的各个视频帧所对应的时间点;The method according to claim 1, further comprising: displaying the video frames of the video and the time points corresponding to each displayed video frame to the user;
    其中,用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令包括:用于选择所述视频的一个时间段内的视频帧的用户指令,其中,处于所述时间段内的视频帧为所述至少一个视频帧;Wherein, the user instruction for selecting at least one video frame of the video except the first video frame includes: a user instruction for selecting video frames within a time period of the video, wherein, at the time a video frame within a segment is said at least one video frame;
    用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令包括:用于选择所述视频的一个时间段内的视频帧的用户指令,其中,处于所述时间段内的视频帧为所述多个视频帧。The user instruction for selecting a plurality of video frames of the video including the first video frame includes: a user instruction for selecting video frames within a time period of the video, wherein The video frames are the plurality of video frames.
  6. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising:
    识别所述视频中出现所述对象的视频帧;identifying video frames in which the object occurs in the video;
    向用户展示识别出的出现所述对象的视频帧;和/或,向用户展示识别出的出现所述对象的视频帧所处于的时间段和/或持续时长。Presenting the identified video frame where the object appears to the user; and/or presenting to the user the time period and/or duration of the identified video frame where the object appears.
  7. 根据权利要求6所述的方法,其中,用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令包括:用于从展示的出现所述对象的视频帧中选择所述至少一个视频帧的用户指令;The method of claim 6 , wherein the user instruction for selecting at least one video frame of the video other than the first video frame comprises selecting the selected video frame from the displayed video frames in which the object appears. a user instruction describing at least one video frame;
    用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令包括:用于从展示的出现所述对象的视频帧中选择所述多个视频帧的用户指令。The user instruction for selecting a plurality of video frames of the video including the first video frame includes a user instruction for selecting the plurality of video frames from the displayed video frames in which the object appears.
  8. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising:
    生成经过所述编辑处理后的视频。A video after the editing process is generated.
  9. 根据权利要求8所述的方法,其中,生成经过所述编辑处理后的视频的步骤包括:The method according to claim 8, wherein the step of generating the edited video comprises:
    响应于用于选择所述视频的视频帧的用户指令为用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,将经过所述编辑处理后的第一视频帧和所述至少一个视频帧分别保存为新的视频帧,并替换所述视频中原有的第一视频帧和所述至少一个视频帧,以形成新的视频;In response to the user instruction for selecting a video frame of the video being a user instruction for selecting at least one video frame of the video except for the first video frame, the edited first video frame and the at least one video frame are respectively saved as new video frames, and the original first video frame and the at least one video frame in the video are replaced to form a new video;
    响应于用于选择所述视频的视频帧的用户指令为用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令,将经过所述编辑处理后的所述多个视频帧分别保存为新的视频帧,并替换所述视频中原有的所述多个视频帧,以形成新的视频。In response to the user instruction for selecting a video frame of the video being a user instruction for selecting a plurality of video frames including the first video frame of the video, the plurality of video frames after the editing process The video frames are respectively saved as new video frames, and the multiple original video frames in the video are replaced to form a new video.
  10. 根据权利要求1所述的方法,其中,所述编辑处理为在视频帧中相对于所述对象的特定位置处插入与所述对象相关的信息的编辑处理;The method according to claim 1, wherein the editing process is an editing process of inserting information related to the object at a specific position in the video frame relative to the object;
    在第一视频帧和所述至少一个视频帧中,对所述对象进行所述编辑处理的步骤包括:In the first video frame and the at least one video frame, the step of performing the editing process on the object includes:
    针对第一视频帧和所述至少一个视频帧中的每个视频帧,响应于该视频帧中的相对于所述对象的特定位置处不足以插入与所述对象相关的信息,for each of the first video frame and the at least one video frame, in response to insufficient insertion of information related to the object at a particular location in the video frame relative to the object,
    禁用在该视频帧中插入所述信息的操作;或者,disable the insertion of said information in that video frame; or,
    在该视频帧中的其他相应位置处插入所述信息,或在该视频帧中相对于所述对象的特定位置处插入调整了尺寸的所述信息,以使所述信息能够在该视频帧中被完整显示;Inserting said information at other corresponding positions in the video frame, or inserting said information resized at a specific position in the video frame relative to said object, so that said information can be placed in the video frame is fully displayed;
    在所述包括第一视频帧在内的多个视频帧中,对所述对象进行所述编辑处理的步骤包括:In the plurality of video frames including the first video frame, the step of performing the editing process on the object includes:
    针对所述多个视频帧中的每个视频帧,响应于该视频帧中的相对于所述对象的特定位置处不足以插入与所述对象相关的信息,for each video frame of the plurality of video frames, in response to insufficient insertion of information related to the object at a particular location in the video frame relative to the object,
    禁用该视频帧中插入所述信息的操作;或者,disable the insertion of said information in that video frame; or,
    在该视频帧中的其他相应位置处插入所述信息,或在该视频帧中相对于所述对象的特定位置处插入调整了尺寸的所述信息,以使所述信息能够在该视频帧中被完整显示。Inserting said information at other corresponding positions in the video frame, or inserting said information resized at a specific position in the video frame relative to said object, so that said information can be placed in the video frame is fully displayed.
  11. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, said method further comprising:
    对所述对象和/或所述编辑处理进行组件化存储,以用于后续调用。The object and/or the editing process are componentized and stored for subsequent calls.
  12. 一种视频编辑设备,包括:A video editing device comprising:
    用户指令接收单元,被配置为接收视频编辑用户指令,其中,所述视频编辑用户指令包括:用于选择视频的第一视频帧中的对象的用户指令、用于在第一视频帧中对所述对象进行编辑处理的用户指令、以及用于选择所述视频的视频帧的用户指令,其中,用于选择所述视频的视频帧的用户指令为:用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,或用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令;The user instruction receiving unit is configured to receive a video editing user instruction, wherein the video editing user instruction includes: a user instruction for selecting an object in the first video frame of the video, and an instruction for selecting an object in the first video frame The user instruction for editing the object and the user instruction for selecting the video frame of the video, wherein the user instruction for selecting the video frame of the video is: for selecting the video except the first video a user instruction of at least one video frame out of frame, or a user instruction for selecting a plurality of video frames including a first video frame of said video;
    编辑处理单元,被配置为确定用于选择所述视频的视频帧的用户指令为用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,响应于所述视频编辑用户指令,在第一视频帧和所述至少一个视频帧中,对所述对象进行所述编辑处理;确定用于选择所述视频的视频帧的用户指令为用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令,响应于所述视频编辑用户指令,在所述多个视频帧中,对所述对象进行所述编辑处理。an editing processing unit configured to determine that a user instruction for selecting a video frame of the video is a user instruction for selecting at least one video frame of the video other than the first video frame, in response to the video editing User instruction, in the first video frame and the at least one video frame, perform the editing process on the object; determine that the user instruction for selecting the video frame of the video is used to select the video including the second A user instruction of a plurality of video frames including one video frame, in response to the video editing user instruction, the editing process is performed on the object in the plurality of video frames.
  13. 根据权利要求12所述的设备,其中,用于选择所述视频的视频帧的用户指令,在用于选择第一视频帧中的对象的用户指令之前或之后被接收;The device of claim 12, wherein the user instruction to select a video frame of the video is received before or after the user instruction to select an object in the first video frame;
    用于选择所述视频的视频帧的用户指令,在用于在第一视频帧中对所述对象进行编辑处理的用户指令之前或之后被接收。A user instruction for selecting a video frame of the video is received before or after a user instruction for editing the object in the first video frame.
  14. 根据权利要求12所述的设备,其中,所述编辑处理包括以下项之中的至少一项:对所述对象本身的编辑处理、在视频帧中插入与所述对象相关的信息的编辑处理。The apparatus according to claim 12, wherein said editing process comprises at least one of: editing process of said object itself, editing process of inserting information related to said object in a video frame.
  15. 根据权利要求12所述的设备,还包括:展示单元,被配置为向用户展示所述视频的视频帧;The device according to claim 12, further comprising: a display unit configured to display video frames of the video to a user;
    其中,用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令包括以下指令中的至少一个指令:用于从展示的视频帧中直接选中所述至少一个视频帧的用户指令,和用于从展示的视频帧中选择所述至少一个视频帧的起始帧和结束帧的用户指令;Wherein, the user instruction for selecting at least one video frame other than the first video frame of the video includes at least one instruction of the following instructions: for directly selecting the at least one video frame from the displayed video frames user instructions, and user instructions for selecting a start frame and an end frame of the at least one video frame from the displayed video frames;
    用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令包括:以下指令中的至少一个指令:用于从展示的视频帧中直接选中所述多个视频帧的用户指令,和用于从展示的视频帧中选择所述多个视频帧的起始帧和结束帧的用户指令。The user instruction for selecting a plurality of video frames including the first video frame of the video includes: at least one instruction in the following instructions: the user is used to directly select the plurality of video frames from the displayed video frames instructions, and user instructions for selecting a start frame and an end frame of the plurality of video frames from the displayed video frames.
  16. 根据权利要求12所述的设备,还包括:展示单元,被配置为向用户展示所述视频的视频帧及展示的各个视频帧所对应的时间点;The device according to claim 12, further comprising: a display unit configured to display the video frames of the video and the time points corresponding to the displayed video frames to the user;
    其中,用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令包括:用于选择所述视频的一个时间段内的视频帧的用户指令,其中,处于所述时间段内的视频帧为所述至少一个视频帧;Wherein, the user instruction for selecting at least one video frame of the video except the first video frame includes: a user instruction for selecting video frames within a time period of the video, wherein, at the time a video frame within a segment is said at least one video frame;
    用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令包括:用于选择所述视频的一个时间段内的视频帧的用户指令,其中,处于所述时间段内的视频帧为所述多个视频帧。The user instruction for selecting a plurality of video frames of the video including the first video frame includes: a user instruction for selecting video frames within a time period of the video, wherein The video frames are the plurality of video frames.
  17. 根据权利要求12所述的设备,还包括:The apparatus of claim 12, further comprising:
    识别单元,被配置为识别所述视频中出现所述对象的视频帧;an identification unit configured to identify video frames in which the object appears in the video;
    展示单元,被配置为向用户展示识别出的出现所述对象的视频帧;和/或,向用户展示识别出的出现所述对象的视频帧所处于的时间段和/或持续时长。The display unit is configured to display to the user the identified video frame where the object appears; and/or, display to the user the time period and/or duration of the identified video frame where the object appears.
  18. 根据权利要求17所述的设备,其中,用于选择所述视频的除第一视 频帧之外的至少一个视频帧的用户指令包括:用于从展示的出现所述对象的视频帧中选择所述至少一个视频帧的用户指令;The apparatus of claim 17 , wherein the user instruction for selecting at least one video frame of the video other than the first video frame comprises selecting the selected video frame from the displayed video frames in which the object appears. a user instruction describing at least one video frame;
    用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令包括:用于从展示的出现所述对象的视频帧中选择所述多个视频帧的用户指令。The user instruction for selecting a plurality of video frames of the video including the first video frame includes a user instruction for selecting the plurality of video frames from the displayed video frames in which the object appears.
  19. 根据权利要求12所述的设备,还包括:The apparatus of claim 12, further comprising:
    视频生成单元,被配置为生成经过所述编辑处理后的视频。A video generating unit configured to generate the edited video.
  20. 根据权利要求19所述的设备,其中,The apparatus of claim 19, wherein,
    响应于用于选择所述视频的视频帧的用户指令为用于选择所述视频的除第一视频帧之外的至少一个视频帧的用户指令,视频生成单元将经过所述编辑处理后的第一视频帧和所述至少一个视频帧分别保存为新的视频帧,并替换所述视频中原有的第一视频帧和所述至少一个视频帧,以形成新的视频;In response to the user instruction for selecting a video frame of the video being a user instruction for selecting at least one video frame of the video except the first video frame, the video generating unit will pass through the edited first video frame A video frame and the at least one video frame are respectively saved as new video frames, and the original first video frame and the at least one video frame in the video are replaced to form a new video;
    响应于用于选择所述视频的视频帧的用户指令为用于选择所述视频的包括第一视频帧在内的多个视频帧的用户指令,视频生成单元将经过所述编辑处理后的所述多个视频帧分别保存为新的视频帧,并替换所述视频中原有的所述多个视频帧,以形成新的视频。In response to the user instruction for selecting a video frame of the video being a user instruction for selecting a plurality of video frames including the first video frame of the video, the video generation unit converts all the video frames after the editing process The plurality of video frames are respectively saved as new video frames, and the original video frames in the video are replaced to form a new video.
  21. 根据权利要求12所述的设备,其中,所述编辑处理为在视频帧中相对于所述对象的特定位置处插入与所述对象相关的信息的编辑处理;The apparatus according to claim 12, wherein the editing process is an editing process of inserting information related to the object at a specific position in a video frame relative to the object;
    编辑处理单元针对第一视频帧和所述至少一个视频帧中的每个视频帧,响应于该视频帧中的相对于所述对象的特定位置处不足以插入与所述对象相关的信息,The editing processing unit, for each of the first video frame and the at least one video frame, in response to insufficient insertion of information related to the object at a specific position in the video frame relative to the object,
    禁用在该视频帧中插入所述信息的操作;或者,disable the insertion of said information in that video frame; or,
    在该视频帧中的其他相应位置处插入所述信息,或在该视频帧中相对于所述对象的特定位置处插入调整了尺寸的所述信息,以使所述信息能够在该视频帧中被完整显示,Inserting said information at other corresponding positions in the video frame, or inserting said information resized at a specific position in the video frame relative to said object, so that said information can be placed in the video frame is fully displayed,
    编辑处理单元针对所述包括第一视频帧在内的多个视频帧中的每个视频帧,响应于该视频帧中的相对于所述对象的特定位置处不足以插入与所述对象相关的信息,The editing processing unit, for each video frame in the plurality of video frames including the first video frame, responds to the fact that a specific position in the video frame relative to the object is not enough to insert information related to the object information,
    禁用在该视频帧中插入所述信息的操作;或者,disable the insertion of said information in that video frame; or,
    在该视频帧中的其他相应位置处插入所述信息,或在该视频帧中相对于所述对象的特定位置处插入调整了尺寸的所述信息,以使所述信息能够在该视频帧中被完整显示。Inserting said information at other corresponding positions in the video frame, or inserting said information resized at a specific position in the video frame relative to said object, so that said information can be placed in the video frame is fully displayed.
  22. 根据权利要求12所述的设备,还包括:The apparatus of claim 12, further comprising:
    存储单元,被配置为对所述对象和/或所述编辑处理进行组件化存储,以用于后续调用。The storage unit is configured to store the object and/or the editing process in a componentized manner for subsequent calling.
  23. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    至少一个处理器;at least one processor;
    至少一个存储计算机可执行指令的存储器,at least one memory storing computer-executable instructions,
    其中,所述计算机可执行指令在被所述至少一个处理器运行时,促使所述至少一个处理器执行如权利要求1至11中任一项所述的视频编辑方法。Wherein, the computer-executable instructions, when executed by the at least one processor, cause the at least one processor to execute the video editing method according to any one of claims 1-11.
  24. 一种非易失性计算机可读存储介质,其特征在于,当述计算机可读存储介质中的指令被至少一个处理器运行时,促使所述至少一个处理器执行如权利要求1至11中任一项所述的视频编辑方法。A non-transitory computer-readable storage medium, characterized in that when the instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to perform any one of claims 1 to 11. A video editing method as described.
  25. 一种计算机程序产品,包括计算机指令,其特征在于,所述计算机指令被至少一个处理器执行时实现如权利要求1至11中任一项所述的视频编辑方法。A computer program product, comprising computer instructions, characterized in that, when the computer instructions are executed by at least one processor, the video editing method according to any one of claims 1 to 11 is realized.
PCT/CN2022/103387 2021-07-13 2022-07-01 Video editing method and device WO2023284567A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110788670.4 2021-07-13
CN202110788670.4A CN113518187B (en) 2021-07-13 2021-07-13 Video editing method and device

Publications (1)

Publication Number Publication Date
WO2023284567A1 true WO2023284567A1 (en) 2023-01-19

Family

ID=78067285

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/103387 WO2023284567A1 (en) 2021-07-13 2022-07-01 Video editing method and device

Country Status (2)

Country Link
CN (1) CN113518187B (en)
WO (1) WO2023284567A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113518187B (en) * 2021-07-13 2024-01-09 北京达佳互联信息技术有限公司 Video editing method and device
CN114051110B (en) * 2021-11-08 2024-04-02 北京百度网讯科技有限公司 Video generation method, device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150255119A1 (en) * 2014-03-06 2015-09-10 Samsung Electronics Co., Ltd. Display apparatus and method for editing and displaying recorded video content
CN107992246A (en) * 2017-12-22 2018-05-04 珠海格力电器股份有限公司 Video editing method and device and intelligent terminal
CN112118483A (en) * 2020-06-19 2020-12-22 中兴通讯股份有限公司 Video processing method, device, equipment and storage medium
CN112367551A (en) * 2020-10-30 2021-02-12 维沃移动通信有限公司 Video editing method and device, electronic equipment and readable storage medium
CN113518187A (en) * 2021-07-13 2021-10-19 北京达佳互联信息技术有限公司 Video editing method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200135236A1 (en) * 2018-10-29 2020-04-30 Mediatek Inc. Human pose video editing on smartphones
US10956747B2 (en) * 2018-12-31 2021-03-23 International Business Machines Corporation Creating sparsely labeled video annotations
CN112019878B (en) * 2019-05-31 2022-06-21 广州市百果园信息技术有限公司 Video decoding and editing method, device, equipment and storage medium
CN112395838B (en) * 2019-08-14 2023-12-05 阿里巴巴集团控股有限公司 Method, device and equipment for synchronously editing object and readable storage medium
CN112995746B (en) * 2019-12-18 2022-09-09 华为技术有限公司 Video processing method and device and terminal equipment
CN111225283A (en) * 2019-12-26 2020-06-02 新奥特(北京)视频技术有限公司 Video toning method, device, equipment and medium based on nonlinear editing system
CN111862275B (en) * 2020-07-24 2023-06-06 厦门真景科技有限公司 Video editing method, device and equipment based on 3D reconstruction technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150255119A1 (en) * 2014-03-06 2015-09-10 Samsung Electronics Co., Ltd. Display apparatus and method for editing and displaying recorded video content
CN107992246A (en) * 2017-12-22 2018-05-04 珠海格力电器股份有限公司 Video editing method and device and intelligent terminal
CN112118483A (en) * 2020-06-19 2020-12-22 中兴通讯股份有限公司 Video processing method, device, equipment and storage medium
CN112367551A (en) * 2020-10-30 2021-02-12 维沃移动通信有限公司 Video editing method and device, electronic equipment and readable storage medium
CN113518187A (en) * 2021-07-13 2021-10-19 北京达佳互联信息技术有限公司 Video editing method and device

Also Published As

Publication number Publication date
CN113518187B (en) 2024-01-09
CN113518187A (en) 2021-10-19

Similar Documents

Publication Publication Date Title
WO2023284567A1 (en) Video editing method and device
KR101203259B1 (en) Digital media transfer based on user behavior
US20090309881A1 (en) Copying of animation effects from a source object to at least one target object
JP2010141412A (en) Image selection device and control method thereof
US8954925B2 (en) User augmented reverse engineering
US20110202505A1 (en) Computer program product and data backup method
US10356359B2 (en) Information processing apparatus, method for controlling the information processing apparatus, and recording medium
US10489011B2 (en) Systems and methods for accessing system utilities
CN105637503A (en) Speech recognition method and system with simultaneous text editing
US20110107256A1 (en) Zooming Task Management
WO2019042217A1 (en) Video editing method and terminal
EP4050605A1 (en) Method and device for editing video
JP5786630B2 (en) Information processing apparatus and information processing program
US20140267387A1 (en) Area selection processing apparatus and method for media editing and computer readable recording medium
US11003467B2 (en) Visual history for content state changes
US10788961B2 (en) Method of automatically switching mode of work screen of digital content authoring tool
US11967344B2 (en) Video processing method and apparatus, device and computer readable storage medium
US8464237B1 (en) Method and apparatus for optimizing compilation of a computer program
CN113825017A (en) Video editing method and video editing device
US20170052930A1 (en) Method and system for associating text and segments within multi-tagged literature by application of metadata
CN112148917B (en) Media play control method, device and system and computer readable storage medium
EP3454207B1 (en) Dynamic preview generation in a product lifecycle management environment
JP2008020944A (en) Image processing method, program, and device
JP2008171305A (en) Program development support device, program development support method and program development support program
CN114125181B (en) Video processing method and video processing device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22841205

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23.04.2024)