CN114745506A - Video processing method and electronic equipment - Google Patents

Video processing method and electronic equipment Download PDF

Info

Publication number
CN114745506A
CN114745506A CN202210462805.2A CN202210462805A CN114745506A CN 114745506 A CN114745506 A CN 114745506A CN 202210462805 A CN202210462805 A CN 202210462805A CN 114745506 A CN114745506 A CN 114745506A
Authority
CN
China
Prior art keywords
video
node
input
target
preview
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210462805.2A
Other languages
Chinese (zh)
Inventor
闫朝阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202210462805.2A priority Critical patent/CN114745506A/en
Publication of CN114745506A publication Critical patent/CN114745506A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/69Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a video processing method and electronic equipment, and belongs to the technical field of communication. The video processing method comprises the following steps: acquiring a first video and a second video; under the condition that target input to a first video is received, a first preview picture corresponding to a target time period in the first video is switched to a second preview picture corresponding to the target time period in the target video, wherein the target time period is determined based on the target input, the first preview picture and the second preview picture are preview pictures shot by different cameras, and the target video is a second video corresponding to the target input.

Description

Video processing method and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a video processing method and electronic equipment.
Background
With the development of communication technology, popularization and application in a video form are widely favored by users. At present, in order to represent a plurality of shooting visual angles, video shooting is generally required to be performed at a plurality of different angles, and after videos corresponding to each shooting visual angle are obtained, video editing is performed on the videos to obtain a finished product.
However, since the operation of video clipping is complicated and professional, the user needs to spend a lot of time and effort to clip the plurality of captured videos, which reduces the efficiency of video processing.
Disclosure of Invention
The embodiment of the application aims to provide a video processing method and electronic equipment, which can solve the problem of low video processing efficiency.
In a first aspect, an embodiment of the present application provides a video processing method, where the method includes:
acquiring a first video and a second video;
under the condition that target input to the first video is received, switching a first preview picture corresponding to a target time period in the first video into a second preview picture corresponding to the target time period in the target video;
the target time period is determined based on the target input, the first preview picture and the second preview picture are preview pictures shot by different cameras, and the target video is a second video corresponding to the target input.
In a second aspect, an embodiment of the present application provides a video processing apparatus, including:
the acquisition module is used for acquiring a first video and a second video;
the switching module is used for switching a first preview picture corresponding to a target time period in the first video to a second preview picture corresponding to the target time period in the target video under the condition that target input to the first video is received;
the target time period is determined based on the target input, the first preview picture and the second preview picture are preview pictures shot by different cameras, and the target video is a second video corresponding to the target input.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, a first video and a second video are acquired, and further, a first preview picture corresponding to a target time period in the first video is switched to a second preview picture corresponding to the target time period in the target video by executing target input on the first video. In the process, a user can clip a plurality of videos only by performing simple clipping operation on the first video and without independently clipping the video corresponding to each shooting visual angle, so that the operation steps of clipping the videos are reduced, the operation difficulty of clipping the videos is reduced, and the efficiency of video processing is improved.
Drawings
Fig. 1 is a flowchart of a video processing method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a display interface of a first video in an embodiment of the present application;
fig. 3 is an application scene diagram of a video processing method provided by an embodiment of the present application;
fig. 4a is a second application scenario diagram of the video processing method according to the embodiment of the present application;
fig. 4b is a third application scenario diagram of the video processing method according to the embodiment of the present application;
fig. 5 is a fourth application scenario diagram of a video processing method provided in an embodiment of the present application;
fig. 6 is a flowchart of an application of a video processing method provided in an embodiment of the present application;
fig. 7 is a block diagram of a video processing apparatus according to an embodiment of the present application;
fig. 8 is a block diagram of an electronic device provided in an embodiment of the present application;
fig. 9 is a hardware configuration diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The video processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart of a video processing method according to an embodiment of the present disclosure. The video processing method provided by the embodiment of the application comprises the following steps:
s101, acquiring a first video and a second video.
The video processing method provided by the embodiment of the application can be applied to a video processing apparatus, the video processing apparatus includes at least two electronic devices, each electronic device includes at least one camera, that is, the video processing apparatus includes at least two cameras, and the following describes in detail a process of obtaining a first video and a second video by shooting with the video processing apparatus.
Optionally, before the acquiring the first video and the second video, the method further includes:
switching and recording preview pictures shot by at least two cameras to generate a first video; and independently recording the preview picture of each camera to generate a second video.
And after receiving the shooting command, the video processing device controls each camera to shoot, and independently records the preview picture shot by each camera to obtain a second video. It should be understood that the number of the second videos is the same as the number of cameras included in the video processing apparatus, that is, if the video processing apparatus includes 3 cameras, the number of the second videos is 3.
The video processing device comprises a main camera, and can generate a first video based on a preview picture shot by the main camera and a received switching command.
The specific implementation manner of generating the first video is as follows: after receiving a shooting command, the video processing device controls the main camera to shoot to obtain a first preview picture shot by the main camera; in the shooting process, based on a received switching command, shooting by using a camera associated with the switching command, and switching a first preview picture to obtain a second preview picture; after shooting is finished, the shot first preview picture is recorded in a time period when the main camera is used for shooting, and the second preview pictures shot by other cameras are recorded in a time period when the main camera is not used for shooting, so that a first video is generated.
In this step, the first video includes a preview image shot by multiple cameras, so that splicing and management of multiple videos are not required, and operation steps of video processing are reduced, thereby improving the efficiency of video processing.
S102, under the condition that target input to the first video is received, a first preview picture corresponding to a target time period in the first video is switched to a second preview picture corresponding to the target time period in the target video.
The pointing object of the target input is the first video, and the target input may be a touch input, a slide input, or other types of inputs, which is not limited herein.
In this step, a target input to the first video is received, and in response to the target input, a first preview screen corresponding to a target time period in the first video is switched to a second preview screen corresponding to the target time period in the target video. The target time period is determined based on target input, the target video is a second video corresponding to the target input, and the first preview picture and the second preview picture are preview pictures shot by different cameras.
Please refer to the following embodiments for a specific technical solution of how to switch a first preview screen corresponding to a target time period in a first video to a second preview screen corresponding to the target time period in the target video.
In the embodiment of the application, a first video and a second video are acquired, and further, a first preview picture corresponding to a target time period in the first video is switched to a second preview picture corresponding to the target time period in the target video by executing target input on the first video. In the process, a user can clip a plurality of videos only by simply clipping the first video without independently clipping the video corresponding to each shooting visual angle, so that the operation steps of clipping the videos are reduced, the operation difficulty of clipping the videos is reduced, and the efficiency of video processing is improved.
Optionally, the first video progress bar includes a switching node, and the switching node includes at least one of a first automatic switching node, a second automatic switching node, a first manual switching node, and a second manual switching node;
the first automatic switching node is used for representing the time corresponding to the switching processing of the first preview picture of the first video, the second automatic switching node is used for representing the time corresponding to the switching processing of the first preview picture of the first video, the first manual switching node is used for representing the time corresponding to the switching processing of the second preview picture of the first video, and the second manual switching node is used for representing the time corresponding to the switching processing of the second preview picture of the first video.
Referring to fig. 2, fig. 2 is a schematic view of a display interface of a first video in an embodiment of the present application. As shown in fig. 2, a start node, an end node and a switching node are displayed on the first video progress bar, where the start node is a node with numeral 1 in fig. 2, the end node is a node with numeral 2 in fig. 2, and the switching node is a node with numeral 3 in fig. 2. It should be understood that in other application scenarios, the first video progress bar may be displayed with only switching nodes.
The starting node represents the starting time of the first video, the ending node represents the ending time of the first video, and the switching node represents the switching time of the preview picture in the first video or the recommended switching time of the preview picture in the first video.
Specifically, the above-described switching node includes the following types:
1. completed automatic switching node (first automatic switching node)
An optional implementation scenario is that each camera in the video processing apparatus performs image feature recognition on a shooting scene during shooting, if an image feature obtained by shooting is a target feature, a switching request is sent to the video processing apparatus, and when a determination command sent by the video processing apparatus based on the switching request is obtained, switching of a preview picture is performed, where the completed automatic switching node represents a switching time of the preview picture in the implementation scene. The target feature may be a preset image feature, for example, the target feature is a human image feature, then, image feature recognition is performed on the captured scene, and when the captured image feature includes the human image feature, a switching request is sent.
2. Incomplete automatic switching node (second automatic switching node)
Another optional implementation scenario is that each camera in the video processing apparatus performs image feature identification on a shooting scene during shooting, if an image feature obtained by shooting is a target feature, a switching request is sent to the video processing apparatus, and if a determination command sent by the video processing apparatus is not received, switching of a preview picture is not performed, but an incomplete automatic switching node is newly added on the first video progress bar.
3. Completed manual switching node (first manual switching node)
Another optional implementation scenario is that, during shooting, the video processing apparatus receives a switching request input by a user to the electronic device in the video processing apparatus, sends the switching request to the video processing apparatus, and performs switching of the preview screen when a determination command sent by the video processing apparatus based on the switching request is obtained, where the completed manual switching node represents the switching time of the preview screen in the implementation scenario.
4. Incomplete automatic switching node (second manual switching node)
Another optional implementation scenario is that, in the shooting process, the video processing apparatus receives a switching request input by a user to the electronic device in the video processing apparatus, and sends the switching request to the video processing apparatus, and if a determination command sent by the video processing apparatus is not received, switching of the preview screen is not performed, but an incomplete automatic switching node is newly added on the first video progress bar.
In other implementation scenarios, a button may be set in the first video progress bar to represent a node, optionally, a button with a frame may be set to represent a completed switching node, and a button without a frame may be set to represent an incomplete switching node; alternatively, a corresponding icon may be set in the button, and the type corresponding to the node is represented in the form of an icon, for example, a button displaying a five-pointed star mark is set to represent a manual switching node, and a button displaying a smiling face is set to represent an automatic switching node.
Optionally, when a target input for the first video is received, switching the first preview screen corresponding to the target time period in the first video to the second preview screen corresponding to the target time period in the target video includes:
under the condition that a first input to the first video progress bar is received, determining a target time period based on the input position of the first input on the first video progress bar, and displaying a preview picture list;
determining a candidate preview screen corresponding to a second input as a second preview screen when the second input to the N candidate preview screens is received;
and switching a first preview picture corresponding to the first video in the target time period to the second preview picture.
The target input includes a first input and a second input. The pointing object of the first input is a first video progress bar, and the first input may be a sliding input, a touch input, or other types of inputs, which is not limited herein.
In this embodiment, after receiving a first input for a first video progress bar, in response to the first input, a target time period is determined according to an input position of the first input on the first video progress bar. In particular, please refer to the following embodiments, how to determine the target time period according to the input position of the first input on the first video progress bar.
It should be understood that the first input performed on the first video progress bar can be understood as a process of creating a switching node on the progress bar, please refer to fig. 2 and fig. 3 together, in the application scenario illustrated in fig. 2 and including 4 switching nodes, a user creates a switching node on the progress bar by performing a long-press operation on the progress bar to obtain the application scenario illustrated in fig. 3, where the location of the switching node, i.e., the corresponding input location of the first input on the progress bar, and the created switching node, i.e., the switching node identified by 30 in fig. 3.
In this embodiment, after receiving a first input for a first video progress bar, in response to the first input, a preview screen list is displayed, where the preview screen list is associated with N candidate preview screens, where N is a positive integer, and the candidate preview screens are at least partial preview screens corresponding to a target time period in an associated second video.
Optionally, the play duration corresponding to the candidate preview screen is 5 seconds.
The pointing object of the second input is a candidate preview screen, and the second input may be a slide input, a touch input, or other types of inputs, which is not limited herein.
In this embodiment, a second input to the N candidate preview screens is received, and in response to the second input, the candidate preview screen corresponding to the second input is determined as the second preview screen, and the first preview screen corresponding to the first video in the target time period is switched to the second preview screen.
For example, in the application scenario shown in fig. 4B, the first video display interface displays 3 candidate preview pictures, which are a picture taken by the camera B, a picture taken by the camera C, and a picture taken by the camera D, respectively, and if the second input pointing object is a picture taken by the camera B, the preview picture taken by the camera B in the target time period is determined as the second preview picture.
In this embodiment, switching of the shooting view angle of the first video can be achieved by performing the first input and the second input on the first video, so that the operation steps of clipping the video are reduced, the operation difficulty of clipping the video is reduced, and the efficiency of video processing is improved.
Optionally, the preview screen list displays thumbnails of N candidate preview screens, or displays thumbnails of at least some of the N candidate preview screens.
In an alternative embodiment, the preview screen list displays thumbnails of N candidate preview screens, as shown in fig. 4a, after receiving the first input, one candidate preview screen is displayed, and the user may perform a slide input on the candidate preview screen to view other candidate preview screens.
Another alternative embodiment is that thumbnails of at least part of the N candidate preview screens are displayed, and as shown in fig. 4b, after receiving the first input, all the candidate preview screens are displayed.
Optionally, after the displaying the preview screen list, the method further includes:
receiving a third input of a target preview picture in the preview picture list; the target preview picture is a candidate preview picture corresponding to the third input in the N candidate preview pictures;
and responding to the third input, and editing the target preview picture.
The pointing object of the third input is a candidate preview screen, and the third input may be a slide input, a touch input, or other types of inputs, which is not limited herein.
In this embodiment, the candidate preview image corresponding to the third input in the preview image list is determined as the target preview image, and after the third input is received, the target preview image may be quickly edited, for example, a filter effect or a text material is added to the target preview image.
Optionally, the determining a target time period based on an input position of the first input on the first video progress bar comprises:
determining a first node based on an input position of the first input on the first video progress bar;
determining the time represented by the second node on the first video progress bar as termination time;
and determining the time period between the starting time and the ending time as a target time period.
As described above, the first input performed to the first video progressive bar can be understood as a process of creating a switching node on the progressive bar. In this embodiment, a switching node may be added based on an input position of the first input on the first video progress bar, and the switching node is referred to as a first node. And determining the time characterized by the first node as the starting time of the target time period.
After the first node is determined, a second node is determined according to a position of the first node on the progress bar, specifically, a node adjacent to and behind the first node on the progress bar is determined as the second node, where the second node is any one of an end node and at least one handover node. And determining the time represented by the second node as the end time of the target time period.
After the first node and the second node are obtained, a time period between the first node and the second node is determined as a target time period.
Illustratively, the progress bar includes 4 switching nodes, and the first node is arranged between the second switching node and the third switching node according to the sequence from left to right, resulting in the application scenario shown in fig. 4b, where 41 in fig. 4b is used to identify the first node, 42 is used to identify the second switching node, and 43 is used to identify the third switching node. In this case, since the third handover node is adjacent to the first node and is located behind the first node, the third handover node is determined as the second node, and thus the time period from the first node to the third handover node is determined as the target time period.
In the following, how to determine the first node based on the input position of the first input on the first video progress bar is specifically described:
optionally, the determining a first node based on an input position of the first input on the first video progress bar includes:
and determining the time node pointed by the first input on the first video progress bar as a first node.
In this embodiment, the time node pointed by the first input on the progress bar may be determined as the first node according to the pointed position of the first input on the progress bar.
Optionally, the determining a first node based on an input position of the first input on the first video progress bar comprises:
determining a time node pointed by the first input on the first video progress bar as a third node;
receiving a fourth input to the third node;
and responding to the fourth input, moving the third node to a target position on the first video progress bar to obtain a first node.
In this embodiment, the time node pointed by the first input on the progress bar may be determined as the third node. And further, receiving a fourth input to the third node, responding to the fourth input, moving the third node, and obtaining the first node after moving the third node to the target position on the first video progress bar. The pointing object of the fourth input is a third node, and the fourth input includes, but is not limited to, a slide input, a touch input, a press input, or other types of inputs.
It should be understood that the target position is located between the second node and a fourth node, wherein the fourth node is adjacent to the third node, the fourth node is located before the third node, and the fourth node is any one of the start node and the at least one handover node. The definition of the second node is the same as that described in the above embodiments, and will not be repeated here.
For example, the progress bar includes 4 switching nodes, and the time node pointed by the first input is set between the second switching node and the third switching node in order from left to right, and then the time node pointed by the first input is determined as the third node, resulting in the application scenario shown in fig. 5, where 51 in fig. 5 is used to identify the third node, 52 in fig. 5 is used to identify the second switching node, and 53 in fig. 5 is used to identify the third switching node. In this case, since the second switching node is located before and adjacent to the third node, the second switching node may be determined as the fourth node; since the third switching node is located after and adjacent to the third node, the third switching node may be determined as the second node. Optionally, the user may perform a leftward sliding operation or a rightward sliding operation on the third node, move the third node, and determine the moved third node as the first node, where the first node is located between the second node and the fourth node.
In other embodiments, the user may further perform a sliding operation on the switching node on the progress bar, and adjust the switching time of the preview picture corresponding to the switching node, so as to adjust the duration of the shooting picture of each machine position. To facilitate understanding of the overall technical solution, please refer to fig. 6, as shown in fig. 6, after the first video and the second video are obtained by shooting, the first video is previewed through the host position, the progress bar of the first video is represented in a track axis manner, and a switching node (i.e. a recommender position switching point in fig. 6) is displayed on the track axis. Pressing a certain time point on the track axis for a long time, adding a switching node at the time point of the track axis, and displaying a candidate preview picture (namely, other machine position preview pictures in fig. 6); alternatively, the candidate preview screen is displayed by long pressing the switching node on the track axis. And executing corresponding input on the displayed candidate preview picture to realize the switching of the shooting visual angle.
The following describes in detail a video processing apparatus provided in an embodiment of the present application with reference to the accompanying drawings.
As shown in fig. 7, the video processing apparatus 700 includes:
an obtaining module 701, configured to obtain a first video and a second video;
a switching module 702, configured to switch, when a target input for the first video is received, a first preview screen corresponding to a target time period in the first video to a second preview screen corresponding to the target time period in the target video.
Optionally, the video processing apparatus 700 further includes:
the generating module is used for switching and recording preview pictures shot by at least two cameras to generate a first video; and independently recording the preview picture of each camera to generate a second video.
Optionally, the switching module 702 is specifically configured to:
under the condition that a first input to the first video progress bar is received, determining a target time period based on the input position of the first input on the first video progress bar, and displaying a preview picture list;
when a second input to the N candidate preview pictures is received, determining the candidate preview picture corresponding to the second input as a second preview picture;
and switching a first preview picture corresponding to the first video in the target time period to the second preview picture.
Optionally, the video processing apparatus 700 further includes:
the receiving module is used for receiving a third input of a target preview picture in the preview picture list;
and the editing module is used for responding to the third input and editing the target preview picture.
Optionally, the switching module 702 is further specifically configured to:
determining a first node based on an input position of the first input on the first video progress bar;
determining the time represented by the second node on the first video progress bar as termination time;
and determining the time period between the starting time and the ending time as a target time period.
Optionally, the switching module 702 is further specifically configured to:
and determining the time node pointed by the first input on the first video progress bar as a first node.
Optionally, the switching module 702 is further specifically configured to:
determining a time node pointed by the first input on the first video progress bar as a third node;
receiving a fourth input to the third node;
and responding to the fourth input, moving the third node to a target position on the first video progress bar to obtain a first node.
In the embodiment of the application, a first video and a second video are acquired, and further, a first preview picture corresponding to a target time period in the first video is switched to a second preview picture corresponding to the target time period in the target video by executing target input on the first video. In the process, a user can clip a plurality of videos only by performing simple clipping operation on the first video and without independently clipping the video corresponding to each shooting visual angle, so that the operation steps of clipping the videos are reduced, the operation difficulty of clipping the videos is reduced, and the efficiency of video processing is improved.
The video processing apparatus in the embodiment of the present application may be an electronic device, and may also be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), an assistant, or a self-service machine, and the embodiments of the present application are not limited in particular.
The video processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The video processing apparatus provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 8, an electronic device 800 is further provided in this embodiment of the present application, and includes a processor 801, a memory 802, and a program or an instruction stored in the memory 802 and executable on the processor 801, where the program or the instruction is executed by the processor 801 to implement each process of the above-mentioned video processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 909, a memory 909, and a processor 910.
Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The input unit 904 is further configured to obtain a first video and a second video;
the processor 910 is further configured to, when a target input for the first video is received, switch a first preview screen corresponding to a target time period in the first video to a second preview screen corresponding to the target time period in the target video.
The processor 910 is further configured to perform preview picture switching recording on preview pictures shot by at least two cameras, so as to generate a first video; and independently recording the preview picture of each camera to generate a second video.
Wherein, the processor 910 is further configured to, in a case where a first input to the first video progress bar is received, determine a target time period based on an input position of the first input on the first video progress bar, and display a preview screen list;
when a second input to the N candidate preview pictures is received, determining the candidate preview picture corresponding to the second input as a second preview picture;
and switching a first preview picture corresponding to the first video in the target time period to the second preview picture.
The input unit 904 is further configured to receive a third input of a target preview screen in the preview screen list;
the processor 910 is further configured to edit the target preview screen in response to the third input.
Wherein the processor 910 is further configured to determine a first node based on an input position of the first input on the first video progress bar;
determining the time represented by the second node on the first video progress bar as termination time;
and determining the time period between the starting time and the ending time as a target time period.
The processor 910 is further configured to determine a time node pointed by the first input on the first video progress bar as a first node.
The processor 910 is further configured to determine a time node pointed by the first input on the first video progress bar as a third node;
receiving a fourth input to the third node;
and responding to the fourth input, moving the third node to a target position on the first video progress bar to obtain a first node.
In the embodiment of the application, a first video and a second video are acquired, and further, a first preview picture corresponding to a target time period in the first video is switched to a second preview picture corresponding to the target time period in the target video by executing target input on the first video. In the process, a user can clip a plurality of videos only by performing simple clipping operation on the first video and without independently clipping the video corresponding to each shooting visual angle, so that the operation steps of clipping the videos are reduced, the operation difficulty of clipping the videos is reduced, and the efficiency of video processing is improved.
It should be understood that, in the embodiment of the present application, the input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics Processing Unit 9041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 906 may include a display panel 9061, and the display panel 9071 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes at least one of a touch panel 9071 and other input devices 9072. A touch panel 9071, also called a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 909 may be used to store software programs as well as various data. The memory 909 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required for at least one function, and the like. Further, the memory 909 may include volatile memory or nonvolatile memory, or the memory 909 may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 909 in the embodiments of the subject application includes, but is not limited to, these and any other suitable types of memory.
Processor 910 may include one or more processing units; optionally, the processor 910 integrates an application processor, which mainly handles operations related to the operating system, user interface, and applications, and a modem processor, which mainly handles wireless communication signals, such as a baseband processor. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the video processing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above-mentioned video processing method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing video processing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A video processing method, comprising:
acquiring a first video and a second video;
under the condition that target input to the first video is received, switching a first preview picture corresponding to a target time period in the first video into a second preview picture corresponding to the target time period in the target video;
the target time period is determined based on the target input, the first preview picture and the second preview picture are preview pictures shot by different cameras, and the target video is a second video corresponding to the target input.
2. The method of claim 1, wherein prior to obtaining the first video and the second video, the method further comprises:
switching and recording preview pictures shot by at least two cameras to generate a first video; and independently recording the preview picture of each camera to generate a second video.
3. The method of claim 2, wherein the first video progress bar comprises a switching node comprising at least one of a first automatic switching node, a second automatic switching node, a first manual switching node, and a second manual switching node;
the first automatic switching node is used for representing the time corresponding to the switching processing of the first preview picture of the first video, the second automatic switching node is used for representing the time corresponding to the switching processing of the first preview picture of the first video, the first manual switching node is used for representing the time corresponding to the switching processing of the second preview picture of the first video, and the second manual switching node is used for representing the time corresponding to the switching processing of the second preview picture of the first video.
4. The method of claim 1, wherein the target input comprises a first input and a second input, and wherein switching the first preview screen corresponding to the target time period in the first video to the second preview screen corresponding to the target time period in the target video when the target input for the first video is received comprises:
under the condition that a first input to the first video progress bar is received, determining a target time period based on the input position of the first input on the first video progress bar, and displaying a preview picture list; the preview picture list is associated with N candidate preview pictures, the candidate preview pictures are at least partial preview pictures corresponding to the target time period in the associated second video, and N is a positive integer;
determining a candidate preview screen corresponding to a second input as a second preview screen when the second input to the N candidate preview screens is received;
and switching a first preview picture corresponding to the first video in the target time period to the second preview picture.
5. The method according to claim 4, wherein the preview screen list displays thumbnails of N candidate preview screens, or thumbnails of at least a portion of the N candidate preview screens.
6. The method of claim 4, wherein after the displaying the preview screen list, the method further comprises:
receiving a third input of a target preview picture in the preview picture list; the target preview picture is a candidate preview picture corresponding to the third input in the N candidate preview pictures;
and responding to the third input, and editing the target preview picture.
7. The method of claim 4, wherein the first video progress bar comprises an end node and at least one switch node;
the determining a target time period based on an input position of the first input on the first video progress bar comprises:
determining a first node based on an input position of the first input on the first video progress bar;
determining the time represented by the second node on the first video progress bar as the termination time; the second node is adjacent to the first node, the second node is located behind the first node, and the second node is any one of the ending node and the at least one switching node;
determining a time period between the starting time and the ending time as a target time period; the starting time is the time represented by the first node on the first video progress bar.
8. The method of claim 7, wherein determining the first node based on an input location of the first input on the first video progress bar comprises:
and determining the time node pointed by the first input on the first video progress bar as a first node.
9. The method of claim 7, wherein the first video progress bar further comprises a start node, and wherein determining the first node based on an input position of the first input on the first video progress bar comprises:
determining a time node pointed by the first input on the first video progress bar as a third node;
receiving a fourth input to the third node;
responding to the fourth input, moving the third node to a target position on the first video progress bar to obtain a first node;
the target position is located between the second node and a fourth node, the fourth node is adjacent to the third node, the fourth node is located before the third node, and the fourth node is any one of the start node and the at least one handover node.
10. A video processing apparatus, comprising:
the acquisition module is used for acquiring a first video and a second video;
the switching module is used for switching a first preview picture corresponding to a target time period in the first video to a second preview picture corresponding to the target time period in the target video under the condition that target input to the first video is received;
the target time period is determined based on the target input, the first preview picture and the second preview picture are preview pictures shot by different cameras, and the target video is a second video corresponding to the target input.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the video processing method according to any one of claims 1-9.
12. A readable storage medium, on which a program or instructions are stored, which, when executed by a processor, carry out the steps of the video processing method according to any one of claims 1 to 9.
CN202210462805.2A 2022-04-28 2022-04-28 Video processing method and electronic equipment Pending CN114745506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210462805.2A CN114745506A (en) 2022-04-28 2022-04-28 Video processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210462805.2A CN114745506A (en) 2022-04-28 2022-04-28 Video processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN114745506A true CN114745506A (en) 2022-07-12

Family

ID=82285556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210462805.2A Pending CN114745506A (en) 2022-04-28 2022-04-28 Video processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114745506A (en)

Similar Documents

Publication Publication Date Title
CN113259743A (en) Video playing method and device and electronic equipment
CN112672061A (en) Video shooting method and device, electronic equipment and medium
CN114430460A (en) Shooting method and device and electronic equipment
CN112887618B (en) Video shooting method and device
CN113794923A (en) Video processing method and device, electronic equipment and readable storage medium
CN112887794A (en) Video editing method and device
CN113596574A (en) Video processing method, video processing apparatus, electronic device, and readable storage medium
WO2023093669A1 (en) Video filming method and apparatus, and electronic device and storage medium
CN112367487B (en) Video recording method and electronic equipment
CN115756275A (en) Screen capture method, screen capture device, electronic equipment and readable storage medium
CN114025237A (en) Video generation method and device and electronic equipment
CN114500844A (en) Shooting method and device and electronic equipment
CN115049574A (en) Video processing method and device, electronic equipment and readable storage medium
CN114745506A (en) Video processing method and electronic equipment
CN114745505A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114584704A (en) Shooting method and device and electronic equipment
CN113873319A (en) Video processing method and device, electronic equipment and storage medium
CN113139367A (en) Document generation method and device and electronic equipment
CN112261483A (en) Video output method and device
CN111757177A (en) Video clipping method and device
CN114745504A (en) Shooting method and electronic equipment
CN117395462A (en) Method and device for generating media content, electronic equipment and readable storage medium
CN116389665A (en) Video recording method and device, electronic equipment and readable storage medium
CN115334242A (en) Video recording method, video recording device, electronic equipment and medium
CN115174812A (en) Video generation method, video generation device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination