CN114520874B - Video processing method and device and electronic equipment - Google Patents

Video processing method and device and electronic equipment Download PDF

Info

Publication number
CN114520874B
CN114520874B CN202210109019.4A CN202210109019A CN114520874B CN 114520874 B CN114520874 B CN 114520874B CN 202210109019 A CN202210109019 A CN 202210109019A CN 114520874 B CN114520874 B CN 114520874B
Authority
CN
China
Prior art keywords
target
frame rate
video
magnification
input
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.)
Active
Application number
CN202210109019.4A
Other languages
Chinese (zh)
Other versions
CN114520874A (en
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.)
Xi'an Weiwo Software Technology Co ltd
Original Assignee
Xi'an Weiwo Software Technology 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 Xi'an Weiwo Software Technology Co ltd filed Critical Xi'an Weiwo Software Technology Co ltd
Priority to CN202210109019.4A priority Critical patent/CN114520874B/en
Publication of CN114520874A publication Critical patent/CN114520874A/en
Application granted granted Critical
Publication of CN114520874B publication Critical patent/CN114520874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/67Focus control based on electronic image sensor signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application discloses a video processing method and device and electronic equipment, and belongs to the technical field of videos. The method comprises the following steps: receiving a first input from a user to a target object, the target object comprising at least one of: multiplying power identification, image flow, zooming multiplying power curve, recording frame rate curve and multimedia file; responding to the first input, adopting target processing parameters to perform video processing on the first video stream, and outputting target video; the first video stream is a video stream processed by adopting a first zoom magnification and a first recording frame rate, the target processing parameters are determined according to a first input, and the target processing parameters comprise at least one of the following: a second zoom magnification, a second recording frame rate.

Description

Video processing method and device and electronic equipment
Technical Field
The application belongs to the technical field of video, and particularly relates to a video processing method, a video processing device and electronic equipment.
Background
Along with the development of terminal technology, the shooting requirement of users on electronic equipment is higher and higher, for example, the display effect of video pictures is better and better, and in order to improve the display effect of the video pictures shot by the electronic equipment, the display effect of the shot video pictures can be ensured by improving the definition and the color plumpness of the pictures. However, since the electronic device adopts the default camera (corresponding to the fixed zoom magnification) to perform shooting, the requirement of the user may not be met in some shooting scenes, so that the flexibility of recording the video by the electronic device is poor.
Disclosure of Invention
The embodiment of the application aims to provide a video processing method, a video processing device and electronic equipment, which can enrich the display effect of videos, and avoid the problem of single display effect caused by processing the whole video by only adopting a default zoom multiplying power and a default frame rate, thereby improving the flexibility of video recording of the electronic equipment.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a video processing method, including: receiving a first input from a user to a target object, the target object comprising at least one of: multiplying power identification, image flow, zooming multiplying power curve, recording frame rate curve and multimedia file; responding to the first input, adopting target processing parameters to perform video processing on the first video stream, and outputting target video; the first video stream is a video stream processed by adopting a first zoom magnification and a first recording frame rate, the target processing parameters are determined according to a first input, and the target processing parameters comprise at least one of the following: a second zoom magnification, a second recording frame rate.
In a second aspect, an embodiment of the present application provides a video processing apparatus, including: the device comprises a receiving module, a processing module and an output module. The receiving module is used for receiving a first input of a user to a target object, and the target object comprises at least one of the following: magnification identification, image stream, zoom magnification curve, recorded frame rate curve, and multimedia file. And the processing module is used for responding to the first input received by the receiving module and adopting the target processing parameters to carry out video processing on the first video stream. And the output module is used for outputting the target video. The first video stream is a video stream processed by adopting a first zoom magnification and a first recording frame rate, the target processing parameters are processing parameters determined according to a first input, and the target processing parameters comprise at least one of the following: a second zoom magnification, a second recording frame rate.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform 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 where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, the user can perform the first input on the target object (at least one of the magnification identification, the image stream, the zoom magnification curve, the recording frame rate curve and the multimedia file) so that the electronic device determines at least one of the second zoom magnification and the second recording frame rate (namely, the target processing parameter) according to the first input, and performs video processing on the first video stream processed by the first zoom magnification and the first recording frame rate by adopting the target processing parameter, thereby outputting the target video. Through the scheme, the user can set the zoom rate and the recording frame rate of the first video stream according to the preference requirement of the user, so that the electronic equipment adopts the set zoom rate and/or the recording frame rate to process the first video stream, thereby generating videos with variable zoom rate and recording frame rate, thus enriching the display effect of the videos, avoiding the problem that the display effect is single because the traditional mode can only adopt the default zoom rate and the default frame rate to process the whole video, and improving the flexibility of recording the videos by the electronic equipment.
Drawings
Fig. 1 is a flowchart of a video processing method according to an embodiment of the present application;
fig. 2 (a) is a schematic diagram of a video processing method according to an embodiment of the present application;
FIG. 2 (B) is a second schematic diagram of a video processing method according to an embodiment of the present application;
FIG. 2 (C) is a third schematic diagram of a video processing method according to an embodiment of the present application;
FIG. 3 is a diagram illustrating a video processing method according to an embodiment of the present application;
FIG. 4 is a diagram of a video processing method according to an embodiment of the present application;
FIG. 5 is a diagram illustrating a video processing method according to an embodiment of the present application;
FIG. 6 is a diagram of a video processing method according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a video processing method according to an embodiment of the present application;
FIG. 8 is a diagram illustrating a video processing method according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a video processing method according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a video processing apparatus according to an embodiment of the present application;
fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
fig. 12 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The video processing method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The application provides a mode of user-defined setting of required zoom multiplying power and recording frame rate, under the current shooting scene, a user can set the most suitable zoom multiplying power and recording frame rate according to own preference, in the shooting process of the user, the electronic equipment can time-division multiplex the sensors, namely, the image streams of the sensors with different multiplying powers are cached in real time through a queue, and selective interaction logic of different zoom multiplying powers and recording frame rates in the image streams is provided for the user, so that the user can process videos through the electronic equipment in a self-defined way.
The embodiment of the application can be applied to the scene that a user can execute input in the process of shooting the video through the electronic equipment so that the electronic equipment generates the video with rich display effect. Under the scene that the user records the video, because the electronic equipment adopts the default camera (corresponding to the fixed zoom magnification) to shoot, namely, the electronic equipment processes each acquired frame of image by adopting the zoom magnification and the recording frame rate corresponding to the default camera, the requirements of the user can not be met under certain shooting scenes (such as the scene of shooting fireworks). Therefore, after the first video stream is obtained through recording, a user can input at least one of the multiplying power identification, the image stream, the zooming multiplying power curve, the recording frame rate curve and the multimedia file according to the self preference requirement so as to set the second zooming multiplying power and the second recording frame rate, for example, the zooming multiplying power and the recording frame rate of a plurality of frames of images corresponding to firework blooming are increased, so that the electronic equipment adopts the second zooming multiplying power and the second recording frame rate to carry out video processing on the first video stream, and therefore, the video slowly blooming of the firework can be obtained, the display effect of the video is enriched, and the problem that the display effect is single due to the fact that the traditional mode only adopts the default zooming multiplying power and the default frame rate to process the whole video is solved, and the video recording flexibility of the electronic equipment is improved.
An embodiment of the present application provides a video processing method, and fig. 1 shows a flowchart of the video processing method provided by the embodiment of the present application, where the method may be applied to an electronic device. As shown in fig. 1, the video processing method provided in the embodiment of the present application may include the following steps 201 to 203.
Step 201, the electronic device receives a first input of a user to a target object.
In an embodiment of the present application, the target object includes at least one of the following: magnification identification, image stream, zoom magnification curve, recorded frame rate curve, and multimedia file.
In the embodiment of the application, when a user records a video of firework blooming through a camera in the electronic equipment, a target object can be input in the process of recording the video, so as to set a second zoom magnification and a second recording frame rate for the video stream obtained by adopting the first zoom magnification and the first recording frame rate, for example, the zoom magnification and the recording frame rate of a frame image corresponding to firework blooming are increased, so that the electronic equipment adopts the second zoom magnification and the second recording frame rate to carry out video processing on the video stream, namely, the display effect of certain frame images in the video stream is adjusted, and the video (namely, the target video) of firework blooming slowly can be obtained.
Optionally, in the embodiment of the present application, the electronic device may include a plurality of cameras, each of the cameras corresponds to a sensor of a zoom magnification, and each of the sensors may set a plurality of different recording frame rates.
Optionally, in the embodiment of the present application, when the electronic device includes a plurality of cameras, a user may preset which zoom magnification sensor is selected, and set a frame rate corresponding to the sensor, so that the electronic device uses the camera corresponding to the sensor to record.
In addition, imaging using a zoom lens may vary widely in each focal range, and such a variation is called "zoom magnification" in photographic terms. The recording frame rate refers to the frequency or rate at which bitmap images in frames appear continuously on the display.
Optionally, in the embodiment of the present application, the first input may be a click input of a user, or a voice command input by the user, or a specific gesture input by the user, which may be specifically determined according to an actual use requirement, and the embodiment of the present application is not limited to this.
The specific gesture in the embodiment of the application can be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the application can be single click input, double click input or any time click input, and the like, and can also be long-press input or short-press input.
Optionally, in an embodiment of the present application, the target object is an input object of a first input of a user.
It should be noted that, regarding the magnification identifier, the image stream, the zoom magnification curve, the recording frame rate curve, and the related description of the multimedia file, the description will be given in the following embodiments, which are not repeated here.
Step 202, the electronic device responds to the first input, and adopts the target processing parameters to perform video processing on the first video stream, and outputs the target video.
In the embodiment of the present application, the first video stream is a video stream processed by using a first zoom magnification and a first recording frame rate, the target processing parameter is a processing parameter determined according to a first input, and the target processing parameter includes at least one of the following: a second zoom magnification, a second recording frame rate.
Optionally, in the embodiment of the present application, before the user performs the first input on the target object, the user may perform the input to trigger the electronic device to acquire the first video stream.
Illustratively, as shown in fig. 2 (a), after the electronic device displays the photographing preview interface, the user may input the photographing control 21 on the photographing preview interface; as shown in fig. 2 (B), the electronic device starts recording video to obtain a first video stream; as shown in fig. 2 (C), the user may enter a thumbnail 22 in the lower left corner to trigger the electronic device to display the first video stream on the screen of the electronic device.
It should be noted that, the first video stream is a video processed by using the first zoom magnification and the first recording frame rate, which may be understood as follows: each frame of image in the first video stream is processed with a first zoom magnification and a first recording frame rate. That is, each frame of image corresponds to the same zoom magnification and the same recording frame rate.
Optionally, in the embodiment of the present application, the first zoom magnification and the first recording frame rate may be a default zoom magnification (for example, 3 times) and a frame rate (for example, 30 fps) of the electronic device, and may also be a zoom magnification and a frame rate preset by a user. The specific determination may be determined according to actual use requirements, and the embodiment of the application is not limited.
It should be noted that a video stream refers to continuous video data that is transmitted and played in chronological order over a data network.
Optionally, in an embodiment of the present application, the target processing parameter may include only the second zoom magnification, only the second recording frame rate, or both the second zoom magnification and the second recording frame rate. It will be appreciated that the user may perform a first input on the target object to cause the electronic device to determine a second zoom magnification, or to determine a second recording frame rate, or to determine a second zoom magnification and a second recording frame rate.
Optionally, in the embodiment of the present application, the user may perform the first input on the target object, so that the electronic device determines, according to the first input, a target processing parameter of N frames of video images in the first video stream, where N is a positive integer.
Optionally, in the embodiment of the present application, the N frame video images may be partial frame images in the first video stream, or may be all frame images in the first video stream.
Optionally, in the embodiment of the present application, the N frames of video images may be continuous N frames of video images, or discontinuous N frames of video images, or may include continuous multiple frames of video images and discontinuous multiple frames of video images. The specific determination may be determined according to actual use requirements, and the embodiment of the application is not limited.
Optionally, in the embodiment of the present application, the electronic device may set a zoom magnification and a recording frame rate for each of the N frames of video images. The second zoom magnifications corresponding to each frame of video image in the N frames of video images can be the same or different; and, the second recording frame rate corresponding to each frame of video image in the N frames of video images may be the same or different. The specific determination may be determined according to actual use requirements, and the embodiment of the application is not limited.
It should be noted that, the method for determining the second zoom magnification and the second recording frame rate according to the first input for the electronic device will be described in the following embodiments, which are not repeated herein.
Optionally, in the embodiment of the present application, because the user may set the second zoom magnification and the second recording frame rate for the first video stream, the second zoom magnification and the second recording frame rate corresponding to each frame of video image may be the same or different, and therefore, the electronic device may perform video processing on each frame of video image by using the second zoom magnification and the second recording frame rate corresponding to each frame of video image, so as to output the target video. It can be understood that the target video is a video with continuously changing zoom magnification and recording frame rate, that is, the display effect of the target video presented to the user by the electronic device is not single, but the display effect meeting the user requirement is presented to the user.
Alternatively, in the embodiment of the present application, the video processing may include frame extraction processing, frame insertion processing, synthesis processing, and the like. Specifically, the method can be determined according to actual use requirements, and the embodiment of the application is not limited.
Optionally, in the embodiment of the present application, after performing video processing on the first video stream, the electronic device may generate a target video and prompt the user whether to save the target video, and then the user may perform input to enable the electronic device to save the target video.
The embodiment of the application provides a video processing method, a user can perform a first input on a target object (at least one of a magnification identification, an image stream, a zoom magnification curve, a recording frame rate curve and a multimedia file) so that an electronic device determines at least one of a second zoom magnification and a second recording frame rate (namely, a target processing parameter) according to the first input, and performs video processing on a first video stream processed by the first zoom magnification and the first recording frame rate by adopting the target processing parameter, thereby outputting a target video. In the scheme, the user can set the zoom magnification and the recording frame rate of the first video stream according to the preference requirement of the user, so that the electronic equipment adopts the set zoom magnification and/or the recording frame rate to process the first video stream, thereby generating videos with variable zoom magnification and variable recording frame rate, thus enriching the display effect of the videos, avoiding the problem that the display effect is single because the traditional mode can only adopt the default zoom magnification and the default frame rate to process the whole videos, and further improving the flexibility of recording the videos by the electronic equipment.
The method for determining the target processing parameter (i.e., at least one of the second zoom magnification and the second recording frame rate) according to the first input in the video processing method provided by the embodiment of the application is specifically described below with respect to different target objects through five implementation manners.
Optionally, in a first implementation, the target object includes a magnification identifier, and the target processing parameter includes a second zoom magnification. Before the step 201, the video processing method provided in the embodiment of the present application further includes the following step 301. The above step 201 may be specifically implemented by the following step 201 a. Moreover, before the step 202, the video processing method provided in the embodiment of the present application further includes the following step 302.
Step 301, the electronic device displays at least two multiplying power identifiers.
In the embodiment of the application, each magnification mark indicates the zoom magnification of one camera.
Optionally, in an embodiment of the present application, the electronic device may include at least two cameras, where each camera corresponds to one zoom magnification. The identification in the application is used for indicating characters, symbols, images and the like of information, and controls or other containers can be used as carriers for displaying the information, including but not limited to character identification, symbol identification and image identification.
Optionally, in the embodiment of the present application, after the electronic device records the first video stream, the electronic device may directly display at least two rate identifiers in the shooting preview interface; or, the electronic device may update the shooting preview interface to the first interface, where the first interface includes at least two magnification identifiers. The method can be specifically determined according to actual use requirements, and the embodiment of the application is not limited.
Optionally, in the embodiment of the present application, the electronic device may further display a display effect of an image frame corresponding to each zoom magnification in a lower area of each magnification identifier, so that a user may select an appropriate zoom magnification.
As shown in fig. 3, assuming that the electronic device includes three cameras, the electronic device may update the photographing preview interface to a first interface, and the first interface includes three magnification icons (i.e., at least two magnification identifications) including a first magnification icon 31 (zoom magnification is 1), a second magnification icon 32 (zoom magnification is 3), and a third magnification icon 33 (zoom magnification is 5), respectively, and a display effect of an image frame corresponding to the zoom magnification indicated by the magnification icons is displayed below each magnification icon.
It should be noted that, for the attribute information such as style, size, color, etc. of at least two multiplying power identifiers, the attribute information may be determined according to actual use requirements, and the embodiment of the present application is not limited.
Step 201a, the electronic device receives a first input of a target multiplying power identifier in at least two multiplying power identifiers by a user.
Optionally, in an embodiment of the present application, the target magnification identifier may be any one magnification identifier of at least two magnification identifiers.
Illustratively, in connection with fig. 3, the user may input a third magnification icon 33 (i.e., a target magnification identification) and then input a "select magnification complete" control 34 below the first interface to cause the electronic device to determine the zoom magnification indicated by the third magnification icon 33 as the second zoom magnification.
Step 302, the electronic device determines the zoom magnification indicated by the target magnification identification as a second zoom magnification.
Optionally, in an embodiment of the present application, each frame of video image in the target video corresponds to the same second zoom magnification.
In the embodiment of the application, a user can execute the first input on the magnification mark indicating the zoom magnification according to the preference requirement of the user so as to set the second zoom magnification for the video stream obtained by adopting the first zoom magnification and the first recording frame rate, so that the electronic equipment adopts the set zoom magnification to carry out video processing on the first video stream, and a video with variable zoom magnification is generated, thus, the display effect of the video is enriched, and the problem that the display effect is single due to the fact that the traditional mode only adopts the default zoom magnification and the default frame rate to carry out the whole video processing is solved, and the flexibility of recording the video by the electronic equipment is improved.
Optionally, in a second implementation, the target object includes an image stream, and the target processing parameter includes a second recording frame rate. Before the step 201, the video processing method provided in the embodiment of the present application further includes the following step 401. The above step 201 may be specifically implemented by the following step 201 b. Moreover, before the step 202, the video processing method provided in the embodiment of the present application further includes the following step 402.
Step 401, the electronic device displays at least two image streams.
In the embodiment of the application, different image streams correspond to different recording frame rates.
Optionally, in an embodiment of the present application, the electronic device may include at least two cameras, where each camera corresponds to a plurality of recording frame rates.
Optionally, in the embodiment of the present application, after the electronic device records the first video stream, the electronic device may directly display at least two image streams in the shooting preview interface; or the electronic device may update the shooting preview interface to a second interface, where the second interface includes at least two image streams; alternatively, the electronic device may display at least two image streams after the user performs the first input on the target magnification identification. The method can be specifically determined according to actual use requirements, and the embodiment of the application is not limited.
For example, as shown in fig. 4, the electronic device may update the shooting preview interface to the second interface, and the second interface includes three image streams with different recording frame rates, namely, a first image stream 41 (recording frame rate of 30 fps), a second image stream 42 (recording frame rate of 60 fps), and a third image stream 43 (recording frame rate of 120 fps).
Step 201b, the electronic device receives a first input from a user of a target image stream of the at least two image streams.
Alternatively, in the embodiment of the present application, the target image stream may be any one of at least two image streams.
Illustratively, in connection with fig. 4, the user may enter a second image stream 42 (i.e., a target image stream) and then enter a "select frame rate complete" control 44 below the second interface to cause the electronic device to determine a recording frame rate corresponding to the second image stream 42 as a second recording frame rate.
Step 402, the electronic device determines a recording frame rate of the camera for recording the target image stream as a second recording frame rate.
Optionally, in the embodiment of the present application, each frame of video image in the target video corresponds to the same second recording frame rate.
In the embodiment of the application, a user can execute the first input on a certain image stream displayed by the electronic equipment according to the self preference requirement to set the second recording frame rate for the video stream obtained by adopting the first zooming rate and the first recording frame rate processing, so that the electronic equipment adopts the set recording frame rate to carry out video processing on the first video stream, thereby generating the video with the changed recording frame rate, thus enriching the display effect of the video, avoiding the problem that the display effect is single because the traditional mode only adopts the default zooming rate and the default frame rate to process the whole video, and further improving the flexibility of video recording of the electronic equipment.
Optionally, in the embodiment of the present application, for the first implementation manner and the second implementation manner, before step 201, the video processing method provided in the embodiment of the present application further includes the following step a and step B.
And step A, the electronic equipment receives a second input of the user.
Optionally, in the embodiment of the present application, the second input may be a click input of the user, or a drag input of the user, or a voice command input by the user, or a specific gesture input by the user, which may be specifically determined according to an actual use requirement, and the embodiment of the present application is not limited to this.
The specific gesture in the embodiment of the application can be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the application can be single click input, double click input or any time click input, and the like, and can also be long-press input or short-press input.
Optionally, in the embodiment of the present application, the user may input an application icon of the camera application program, or any other identifier for indicating an entry of the camera application program, so as to trigger the electronic device to display a shooting preview interface, where in the shooting preview interface, the user may input an identifier corresponding to a certain shooting mode, so as to trigger the electronic device to record video in the mode.
Optionally, in the embodiment of the present application, a user may input a video recording mode to trigger the electronic device to control each camera in the electronic device to record video simultaneously; alternatively, the electronic device may set a mode separately, such as an image streaming mode, and the user may enter an image streaming mode to trigger the electronic device to control each camera in the electronic device to record video simultaneously. The specific determination may be determined according to actual use requirements, which is not limited in the embodiment of the present application.
For example, as shown in fig. 5, the user may input an identifier 51 corresponding to the "image stream" mode to trigger the electronic device to take a photograph in the image stream mode.
And B, the electronic equipment responds to a second input, and controls at least two cameras to record by adopting target frame rates respectively, so as to obtain at least two video streams.
Each video stream corresponds to one camera, the at least two video streams comprise first video streams, and each target frame rate is the highest recording frame rate in at least one recording frame rate corresponding to one camera.
Optionally, in the embodiment of the present application, after the user performs the second input, the electronic device may control each camera to record at least one highest recording frame rate of the at least one recording frame rates corresponding to the camera, and display, in the shooting preview interface, a video stream recorded by any one camera (for example, a default camera of the electronic device), and simultaneously cache, in a queue of a background of the electronic device, image data of the video stream recorded by each camera.
Optionally, in the embodiment of the present application, each camera corresponds to one sensor, and the electronic device may set a queue for each sensor, where each queue is used to store image data of a highest recording frame rate of one sensor, and each sensor continuously outputs image frames along the time axis at a frame interval of the highest recording frame rate (for example, 240fps is 4.16 ms). In a period, the electronic equipment grabs the image data of a certain sensor and sends the image data to a screen of the electronic equipment in real time for displaying, and meanwhile, the image data of all the sensors are respectively sent to corresponding queues for caching and used after recording is completed. In the process, the sensors with different zoom magnifications are multiplexed in a time-sharing way, namely video image frames of the sensors with different magnifications are cached in real time through a queue, so that selection interaction logic with different zoom magnifications and frame rates is provided for a user when the user shoots, and a mode of custom processing video streams is provided for the user.
As shown in fig. 6, it is assumed that the electronic device includes three cameras, namely, a camera 1, a camera 2 and a camera 3, and the camera 1 corresponds to the sensor 1, the camera 2 corresponds to the sensor 2, the camera 3 corresponds to the sensor 3, and the electronic device may capture image data of the sensor 1 and send the image data to the screen of the electronic device for display in real time, and send the image data of the sensor 1 to the queue 1 for buffering, and send the image data of the sensor 2 to the queue 2 for buffering, and send the image data of the sensor 3 to the queue 3 for buffering.
In the embodiment of the application, in the process of shooting video, different queues in the electronic equipment buffer the image data of different sensors, after the electronic equipment records at least two video streams, a user can set proper zoom magnification and recording frame rate for a first video stream in the at least two video streams so as to ensure the definition of a shot video picture and the smoothness of the change of a view angle, thereby generating the video with the zoom magnification and frame rate changed.
Optionally, in a third implementation manner, the target object includes a zoom magnification curve, a magnification node on the zoom magnification curve indicates zoom magnifications of the first video stream at different time points, each magnification node corresponds to a frame of video image in the first video stream, and the target processing parameter includes a second zoom magnification. The above step 201 may be specifically implemented by the following step 201 c. Furthermore, before the step 202, the video processing method provided in the embodiment of the present application further includes the following step 501.
Step 201c, the electronic device receives a first input of a target magnification node on a zoom magnification curve from a user.
It will be appreciated that the zoom magnification curve described above is made up of a plurality of magnification nodes, each indicating a zoom magnification of the first video stream at one point in time, the zoom magnification indicated by a different magnification node being the same or different.
Optionally, in the embodiment of the present application, after the user performs the first input on the target object, the electronic device may directly display the zoom magnification curve in the shooting preview interface; alternatively, the electronic device may update the photographing preview interface to a third interface, and the third interface includes a zoom magnification curve therein.
Optionally, in an embodiment of the present application, an abscissa of the zoom magnification curve represents each time point of the first video stream, and an ordinate of the zoom magnification curve represents a zoom magnification of the first video stream.
Optionally, in the embodiment of the present application, the target multiplying power node may be one multiplying power node, and may also include multiple multiplying power nodes. It can be appreciated that the user may perform a first input on one magnification node or multiple magnification nodes in the zoom magnification curve to adjust a display position of the one magnification node or multiple magnification nodes, thereby setting a zoom magnification of a video image corresponding to the one magnification node or multiple magnification nodes.
Optionally, in the embodiment of the present application, in the case that the target magnification node includes a plurality of magnification nodes, the user may sequentially input each of the plurality of magnification nodes, so as to set zoom magnifications of video images corresponding to the plurality of magnification nodes respectively.
For example, as shown in fig. 7, after displaying the zoom magnification curve 7c, the user may input a certain magnification node 7a on the zoom magnification curve 7c to set the zoom magnification corresponding to the magnification node to 3 times, and then, the user may input a "select magnification complete" control 7b to cause the electronic device to complete setting of the zoom magnification.
Step 501, the electronic device determines a second zoom magnification according to the display position of the target magnification node.
Optionally, in the embodiment of the present application, the electronic device may determine the second zoom magnification according to the adjusted display position of the target magnification node. That is, the electronic device may determine the zoom magnification corresponding to the adjusted display position of the target magnification node as the second zoom magnification.
Optionally, in the embodiment of the present application, the electronic device may use an artificial intelligence algorithm to perform video processing on the first video stream according to the adjusted zoom magnification curve.
Optionally, in an embodiment of the present application, the image frame in the target video may correspond to a second different zoom magnification.
In the embodiment of the application, a user can input certain multiplying power nodes in the zooming multiplying power curve according to own preference demands to set a second zooming multiplying power for certain frame images in the video stream obtained by processing the first zooming multiplying power and the first recording frame rate according to the display positions of the multiplying power nodes, so that the electronic equipment processes the frame images by adopting the set zooming multiplying power to generate a video with variable zooming multiplying power, thus enriching the display effect of the video, and avoiding the problem that the display effect is single due to the fact that the traditional mode only can process the whole video by adopting the default zooming multiplying power and the default frame rate, thereby improving the flexibility of video recording of the electronic equipment.
Optionally, in a fourth implementation manner, the target object includes a recording frame rate curve, a frame rate node on the recording frame rate curve indicates a recording frame rate of the first video stream at different time points, each frame rate node corresponds to one frame of video image in the first video stream, and the target processing parameter includes a second recording frame rate. The above step 201 may be specifically implemented by the following step 201 d. In addition, before the step 202, the video processing method provided by the embodiment of the present application further includes the following step 601.
Step 201d, the electronic device receives a first input from a user of a target frame rate node on a recording frame rate curve.
It will be appreciated that the recording frame rate curve described above is comprised of a plurality of frame rate nodes, each indicating a recording frame rate of the first video stream at a point in time, the recording frame rates indicated by different frame rate nodes being the same or different.
Optionally, in the embodiment of the present application, after the user performs the first input on the target object, the electronic device may directly display the recording frame rate curve in the shooting preview interface; alternatively, the electronic device may update the shooting preview interface to a fourth interface, and the fourth interface includes a recording frame rate curve.
Optionally, in the embodiment of the present application, an abscissa of the recording frame rate curve represents each time point of the first video stream, and an ordinate of the recording frame rate curve represents a recording frame rate of the first video stream.
Optionally, in the embodiment of the present application, the target frame rate node may be one frame rate node, and may also include a plurality of frame rate nodes. It will be appreciated that the user may make a first input to one frame rate node or a plurality of frame rate nodes in the recording frame rate curve to adjust the display position of the one frame rate node or the plurality of frame rate nodes, thereby setting the recording frame rate of the video image corresponding to the one frame rate node or the plurality of frame rate nodes.
Optionally, in the embodiment of the present application, in the case that the target frame rate node includes a plurality of frame rate nodes, the user may input each frame rate node in the plurality of frame rate nodes in turn, so as to set recording frame rates of video images corresponding to the plurality of frame rate nodes respectively.
For example, as shown in fig. 8, after displaying the recording frame rate curve 8c, the user may input a certain frame rate node 8a on the recording frame rate curve 8c to set the recording frame rate corresponding to the frame rate node to 60fps, and then, the user may input a "select frame rate complete" control 8b to enable the electronic device to complete the setting of the recording frame rate.
Step 601, the electronic device determines a second recording frame rate according to the display position of the target frame rate node.
Optionally, in the embodiment of the present application, the electronic device may determine the second recording frame rate according to the adjusted display position of the target frame rate node. That is, the electronic device may determine the recording frame rate corresponding to the adjusted display position of the target frame rate node as the second recording frame rate.
Optionally, in the embodiment of the present application, the electronic device may use an artificial intelligence algorithm to perform video processing on the first video stream according to the adjusted recording frame rate curve.
Optionally, in an embodiment of the present application, the image frames in the target video may correspond to a second different recording frame rate.
In the embodiment of the application, a user can input certain frame rate nodes in the recording frame rate curve according to own preference requirements to set a second recording frame rate for certain frame images in the video stream obtained by processing the first zoom magnification and the first recording frame rate according to the display positions of the frame rate nodes, so that the electronic equipment processes the frame images by adopting the set recording frame rate to generate the video with the second recording frame rate change, thus enriching the display effect of the video, and avoiding the problem that the display effect is single because the traditional mode only can process the whole video by adopting the default zoom magnification and the default frame rate, thereby improving the flexibility of recording the video by the electronic equipment.
Optionally, in the embodiment of the present application, the electronic device may also display the zoom magnification curve and the recording frame rate curve simultaneously. In addition, a zooming ratio curve and a recording frame rate curve can be respectively displayed in an upper area and a lower area of a shooting preview interface; alternatively, the zoom magnification curve and the recording frame rate curve may be displayed in the left and right regions of the photographing preview interface, respectively.
It should be noted that, for the implementation manner of determining the second zoom magnification and the second recording frame rate, there are four cases: 1) In the case that the target object includes a magnification identification and an image stream, the electronic device may determine a second zoom magnification and a second recording frame rate using the first implementation and the second implementation; 2) In the case that the target object includes a magnification identifier and a recording frame rate curve, the electronic device may determine a second zoom magnification and a second recording frame rate by using the first implementation manner and the fourth implementation manner; 3) In the case that the target object includes a zoom magnification curve and an image stream, the electronic device may determine a second zoom magnification and a second recording frame rate using a second implementation and a second implementation; 4) In the case where the target object includes a zoom magnification curve and a recording frame rate curve, the electronic device may determine the second zoom magnification and the second recording frame rate using the third implementation and the fourth implementation. Specifically, the method can be determined according to actual use requirements, and the embodiment of the application is not limited.
In the above case, in the case where the zoom magnification and the recording frame rate are set by the magnification identification and the image stream, the set second zoom magnification corresponding to each frame of video image is the same, and the second recording frame rate corresponding to each frame of video image is also the same. Compared with the situation that the zoom magnification and the recording frame rate are set through the magnification identification and the image stream, the zoom magnification and the recording frame rate are set through the zoom magnification curve and the recording frame rate curve, different second zoom magnifications and second recording frame rates can be set for each frame of video image, namely, the second zoom magnifications corresponding to each frame of video image can be the same or different, and the second recording frame rates corresponding to each frame of video image can be the same or different, so that the zoom magnification and the recording frame rate of each frame of video image can be set more flexibly.
Optionally, in a fifth implementation, the target object includes a multimedia file, and the target parameter includes a second zoom magnification and a second recording frame rate. Before the step 201, the video processing method provided by the embodiment of the present application further includes the following steps 701 to 703. The above step 201 may be specifically implemented by the following step 201 e. Furthermore, before the step 202, the video processing method provided in the embodiment of the present application further includes the following step 704.
Step 701, the electronic device displays the target control.
Optionally, in the embodiment of the present application, after the user performs the first input on the target object, the electronic device may display the target control in the shooting preview interface; alternatively, the electronic device may update the shooting preview interface to a fifth interface, and the fifth interface includes the target control. The method can be specifically determined according to actual use requirements, and the embodiment of the application is not limited.
Optionally, in an embodiment of the present application, the target control is used to import a multimedia file, for example, an audio file or a video file.
Illustratively, as shown in (a) of fig. 9, the electronic device updates the photographing preview interface to a fifth interface, and displays a "import audio file or video file" control 91 (i.e., a target control) in the fifth interface.
Step 702, the electronic device receives a third input from a user to the target control.
Optionally, in the embodiment of the present application, the third input may be a click input of the user, or a drag input of the user, or a voice command input by the user, or a specific gesture input by the user, which may be specifically determined according to an actual use requirement, and the embodiment of the present application is not limited to this.
The specific gesture in the embodiment of the application can be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the application can be single click input, double click input or any time click input, and the like, and can also be long-press input or short-press input.
Step 703, the electronic device displays at least one multimedia file in response to the third input.
Optionally, in the embodiment of the present application, the at least one multimedia file may be a file locally cached by the electronic device, or a file downloaded by the electronic device from a network, or a file sent by another electronic device. The specific requirements can be determined according to actual use, and the embodiment of the application is not limited.
Step 201e, the electronic device receives a first input from a user of a target multimedia file of the at least one multimedia file.
Optionally, in an embodiment of the present application, the target multimedia file is any one of at least one multimedia file.
Step 704, the electronic device determines a second zoom magnification and a second recording frame rate according to the attribute information of the target multimedia file.
In an embodiment of the present application, the attribute information includes at least one of the following: playing rhythm information, zooming multiplying power and recording frame rate.
Optionally, in an embodiment of the present application, the target multimedia file may be an audio file or a video file. If the target multimedia file is an audio file, the electronic equipment can determine a second zoom magnification and a second recording frame rate according to the playing rhythm information of the audio file; if the target multimedia file is a video file, the electronic device may determine a zoom magnification of the video file as a second zoom magnification, and determine a frame rate of the video file as a second recording frame rate.
It should be noted that, when the attribute information is the playing rhythm information, if the playing rhythm of a certain part of audio in the audio file is faster, the zoom magnification and the recording frame rate of a certain number of corresponding frames of images in the first video stream are increased. It can be appreciated that the electronic device can adjust the zoom magnification and the recording frame rate of the first video stream according to the rhythm of the audio file.
Optionally, in one implementation manner of the embodiment of the present application, after the user performs the first input on the target multimedia file, the electronic device may display a first graph and a second graph corresponding to the target multimedia file, where the first graph represents zoom magnifications of the target multimedia file at different time points, and the second graph represents recording frame rates of the target multimedia file at different time points. In another implementation manner, after the electronic device obtains the target multimedia file, a first curve and a second curve corresponding to the target multimedia file may be displayed in a coordinate system, where the first curve represents zoom magnifications of the target multimedia file at different time points, and the second curve represents recording frame rates of the target multimedia file at different time points.
For example, as shown in (B) of fig. 9, after the electronic device acquires a certain video file, a curve 1 and a curve 2 corresponding to the video file may be displayed in a coordinate system, where the curve 1 represents zoom magnification of the video file at different time points, and the curve 2 represents recording frame rates of the video file at different time points, and then, the user may input a "select magnification and frame rate complete" control 92 below, so that the electronic device applies the zoom magnification curve and the recording frame rate curve corresponding to the video file to the first video stream.
Optionally, in the embodiment of the present application, after displaying the zoom magnification curve and the recording frame rate curve corresponding to the target multimedia file, the user may adjust the display positions of some magnification nodes in the zoom magnification curve, and may also adjust the display positions of some frame rate nodes in the recording frame rate curve, so that the electronic device applies the adjusted zoom magnification curve and recording frame rate curve to the first video stream, that is, uses the zoom magnification corresponding to the adjusted zoom magnification curve and the recording frame rate corresponding to the recording frame rate curve to perform video processing on the first video stream. In this way, the zoom magnification curve and the recording frame rate curve of the target multimedia file are displayed in a visual mode, so that a user can conveniently input the zoom magnification curve and the recording frame rate curve, and the second zoom magnification and the second recording frame rate are set on the basis of the target multimedia file, and the purpose of flexibly setting the zoom magnification and the recording frame rate is achieved.
In the embodiment of the application, the electronic equipment can adjust the zoom magnification and the recording frame rate of the first video stream according to the attribute information of a certain multimedia file selected by a user, so that videos with variable zoom magnification and frame rate are generated, the display effect of the videos is enriched, the problem that the display effect is single because the traditional mode only can process the whole video by adopting the default zoom magnification and the default frame rate is solved, and the flexibility of recording the videos by the electronic equipment is improved.
Optionally, in an embodiment of the present application, the target processing parameters include a second zoom magnification and a second recording frame rate. The above step 202 may be specifically implemented by the following step 202 a.
Step 202a, the electronic device performs frame extraction or frame insertion processing on the first video stream according to the second zoom magnification and the second recording frame rate, and outputs the target video.
Optionally, in the embodiment of the present application, the electronic device may extract multiple frame images from the first video stream or insert multiple frame images into the first video stream according to the second zoom magnification and the second recording frame rate, so as to adjust the zoom magnification and the recording frame rate of some frame images in the first video stream.
Optionally, in the embodiment of the present application, the electronic device may perform a synthesis process on some adjusted frame images and other frame images to obtain the target video, where the other frame images are frame images except for some frame images in the first video stream.
Optionally, in the embodiment of the present application, the electronic device may perform a synthesis process on the adjusted frame image and other frame images according to the time sequence of acquiring each frame image, so as to obtain the target video.
In the embodiment of the application, the electronic equipment can perform frame extraction or frame insertion processing on the first video stream according to the second zoom magnification and the second recording frame rate so as to generate the video with variable zoom magnification and recording frame rate, thus enriching the display effect of the video, avoiding the problem of single display effect caused by the fact that the traditional mode only can process the whole video by adopting the default zoom magnification and the default frame rate, and improving the flexibility of video recording of the electronic equipment.
It should be noted that, in the video processing method provided in the embodiment of the present application, the execution subject may be a video processing apparatus, or a control module in the video processing apparatus for executing the video processing method. In the embodiment of the present application, a video processing device is taken as an example to execute a video processing method.
Fig. 10 shows a schematic diagram of one possible configuration of a video processing apparatus according to an embodiment of the present application. As shown in fig. 10, the video processing apparatus 80 may include: a receiving module 81, a processing module 82 and an output module 83.
Wherein, the receiving module 81 is configured to receive a first input from a user to a target object, where the target object includes at least one of the following: magnification identification, image stream, zoom magnification curve, recorded frame rate curve, and multimedia file. The processing module 82 is configured to perform video processing on the first video stream using the target processing parameter in response to the first input received by the receiving module 81. And an output module 83 for outputting the target video. The first video stream is a video stream processed by adopting a first zoom magnification and a first recording frame rate, the target processing parameters are processing parameters determined according to a first input, and the target processing parameters comprise at least one of the following: a second zoom magnification, a second recording frame rate.
The embodiment of the application provides a video processing device, wherein a user can set the zoom magnification and the recording frame rate of a first video stream according to own preference requirements, so that the set zoom magnification and/or the recording frame rate are adopted to process the first video stream, thereby generating videos with variable zoom magnification and recording frame rate, thus enriching the display effect of the videos, avoiding the problem of single display effect caused by the fact that the traditional mode only can only adopt the default zoom magnification and the default frame rate to process the whole video, and further improving the flexibility of recording the videos.
In one possible implementation, the target object includes a magnification identifier, and the target processing parameter includes a second zoom magnification. The video processing apparatus 80 further includes: a display module and a determination module. The display module is configured to display at least two magnification identifiers before the receiving module 81 receives the first input of the user to the target object, where each magnification identifier indicates a zoom magnification of one camera. The receiving module 81 is specifically configured to receive a first input of a target magnification identifier from at least two magnification identifiers by a user. The determining module is configured to determine, before the processing module 82 performs video processing on the first video stream using the target processing parameter, a zoom magnification indicated by the target magnification identifier as the second zoom magnification.
In one possible implementation, the target object includes an image stream, and the target processing parameter includes a second recording frame rate. The video processing apparatus 80 further includes: a display module and a determination module. The display module is configured to display at least two image streams, where different image streams correspond to different recording frame rates, before the receiving module 81 receives the first input of the user to the target object. The receiving module 81 is specifically configured to receive a first input from a user for a target image stream of the at least two image streams. The determining module is configured to determine, before the processing module 82 performs video processing on the first video stream using the target processing parameter, a recording frame rate of a camera that records the target image stream as the second recording frame rate.
In one possible implementation manner, the video processing apparatus 80 further includes: and a control module. The receiving module 81 is further configured to receive a second input from the user before receiving the first input from the user to the target object. The control module is configured to control the at least two cameras to record at the target frame rate respectively in response to the second input received by the receiving module 81, so as to obtain at least two video streams. Each video stream corresponds to one camera, the at least two video streams comprise first video streams, and each target frame rate is the highest recording frame rate in at least one recording frame rate corresponding to one camera.
In one possible implementation manner, the target object includes a zoom magnification curve, a magnification node on the zoom magnification curve indicates zoom magnifications of the first video stream at different time points, each magnification node corresponds to a frame of video image in the first video stream, and the target processing parameter includes a second zoom magnification. The video processing apparatus 80 further includes: and a determining module. The receiving module 81 is specifically configured to receive a first input of a target magnification node on the zoom magnification curve from a user. The determining module is configured to determine, before the processing module 82 performs video processing on the first video stream using the target processing parameter, a second zoom magnification according to a display position of the target magnification node.
In one possible implementation, the target object includes a recording frame rate curve, a frame rate node on the recording frame rate curve indicates a recording frame rate of the first video stream at different time points, each frame rate node corresponds to a frame of video image in the first video stream, and the target processing parameter includes a second recording frame rate. The video processing apparatus 80 further includes: and a determining module. The receiving module 81 is specifically configured to receive a first input from a user to a target frame rate node on the recording frame rate curve. The determining module is configured to determine, before the processing module 82 performs video processing on the first video stream using the target processing parameter, a second recording frame rate according to a display position of the target frame rate node.
In one possible implementation, the target object includes a multimedia file, and the target parameter includes a second zoom magnification and a second recording frame rate. The video processing apparatus 80 further includes: a display module and a determination module. The display module is configured to display the target control before the receiving module 81 receives the first input of the user to the target object. The receiving module 81 is further configured to receive a third input from the user to the target control. The display module is further configured to display at least one multimedia file in response to the third input received by the receiving module 81. The receiving module 81 is specifically configured to receive a first input from a user to a target multimedia file of the at least one multimedia file. The determining module is configured to determine, before the processing module 82 performs video processing on the first video stream using the target processing parameter, a second zoom magnification and a second recording frame rate according to attribute information of the target multimedia file. Wherein the attribute information includes at least one of: playing rhythm information, zooming multiplying power and recording frame rate.
In one possible implementation, the target processing parameters include a second zoom magnification and a second recording frame rate. The processing module 82 is specifically configured to perform frame extraction or frame insertion processing on the first video stream according to the second zoom magnification and the second recording frame rate.
The video processing device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in electronic equipment. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and embodiments of the present application are not limited in particular.
The video processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The video processing device provided by the embodiment of the application can realize each process realized by the embodiment of the method and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
Optionally, as shown in fig. 11, the embodiment of the present application further provides an electronic device 900, including a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and capable of running on the processor 901, where the program or the instruction implements each process of the embodiment of the video processing method when executed by the processor 901, and the process can achieve the same technical effect, and for avoiding repetition, a description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 12 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1010 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than illustrated, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein, the user input unit 1007 is configured to receive a first input of a target object from a user, and the target object includes at least one of: magnification identification, image stream, zoom magnification curve, recorded frame rate curve, and multimedia file. The processor 1010 is configured to perform video processing on the first video stream using the target processing parameter in response to the first input, and output a target video. The first video stream is a video stream processed by adopting a first zoom magnification and a first recording frame rate, the target processing parameters are processing parameters determined according to a first input, and the target processing parameters comprise at least one of the following: a second zoom magnification, a second recording frame rate.
The embodiment of the application provides electronic equipment, wherein a user can set the zoom magnification and the recording frame rate of a first video stream according to own preference requirements, so that the electronic equipment processes the first video stream by adopting the set zoom magnification and/or the recording frame rate, thereby generating videos with variable zoom magnification and recording frame rate, thus enriching the display effect of the videos, avoiding the problem of single display effect caused by the fact that the traditional mode only can process the whole video by adopting the default zoom magnification and the default frame rate, and further improving the flexibility of video recording of the electronic equipment.
Optionally, in an embodiment of the present application, the target object includes a magnification identifier, and the target processing parameter includes a second zoom magnification. A display unit 1006, configured to display at least two magnification identifiers before receiving a first input of a user to a target object, where each magnification identifier indicates a zoom magnification of one camera. The user input unit 1007 is specifically configured to receive a first input of a target magnification identifier from at least two magnification identifiers by a user. And a processor 1010, configured to determine, before using the target processing parameter to perform video processing on the first video stream and output the target video, a zoom magnification indicated by the target magnification identifier as a second zoom magnification.
Optionally, in an embodiment of the present application, the target object includes an image stream, and the target processing parameter includes a second recording frame rate. A display unit 1006, configured to display at least two image streams before receiving a first input of a target object from a user, where different image streams correspond to different recording frame rates. The user input unit 1007 is specifically configured to receive a first input from a user of a target image stream of the at least two image streams. And a processor 1010, configured to determine a recording frame rate of a camera recording the target image stream as a second recording frame rate before performing video processing on the first video stream using the target processing parameter and outputting the target video.
Optionally, in an embodiment of the present application, the user input unit 1007 is further configured to receive a second input of the user before receiving the first input of the target object by the user. And the processor 1010 is configured to control the at least two cameras to record at least two video streams with the target frame rate respectively in response to the second input. Each video stream corresponds to one camera, the at least two video streams comprise first video streams, and each target frame rate is the highest recording frame rate in at least one recording frame rate corresponding to one camera.
Optionally, in an embodiment of the present application, the target object includes a zoom magnification curve, a magnification node on the zoom magnification curve indicates zoom magnifications of the first video stream at different time points, each magnification node corresponds to a frame of video image in the first video stream, and the target processing parameter includes a second zoom magnification. The user input unit 1007 is specifically configured to receive a first input of a target magnification node on the zoom magnification curve from a user. And a processor 1010, configured to determine a second zoom magnification according to a display position of the target magnification node before performing video processing on the first video stream using the target processing parameter and outputting the target video.
Optionally, in the embodiment of the present application, the target object includes a recording frame rate curve, a frame rate node on the recording frame rate curve indicates a recording frame rate of the first video stream at different time points, each frame rate node corresponds to a frame of video image in the first video stream, and the target processing parameter includes a second recording frame rate. The user input unit 1007 is specifically configured to receive a first input from a user of a target frame rate node on the recording frame rate curve. And a processor 1010, configured to determine a second recording frame rate according to the display position of the target frame rate node before performing video processing on the first video stream using the target processing parameter and outputting the target video.
Optionally, in an embodiment of the present application, the target object includes a multimedia file, and the target parameter includes a second zoom magnification and a second recording frame rate. A display unit 1006 for displaying the target control prior to receiving a first input of the target object by the user. The user input unit 1007 is further configured to receive a third input of a target control from a user. The display unit 1006 is further configured to display at least one multimedia file in response to the third input. The user input unit 1007 is specifically configured to receive a first input of a target multimedia file from the at least one multimedia file. And a processor 1010, configured to determine a second zoom magnification and a second recording frame rate according to attribute information of the target multimedia file before performing video processing on the first video stream using the target processing parameter and outputting the target video. Wherein the attribute information includes at least one of: playing rhythm information, zooming multiplying power and recording frame rate.
Optionally, in an embodiment of the present application, the target processing parameters include a second zoom magnification and a second recording frame rate. The processor 1010 is specifically configured to perform frame extraction or frame insertion processing on the first video stream according to the second zoom magnification and the second recording frame rate, so as to obtain a target video.
The electronic device provided by the embodiment of the application can realize each process realized by the embodiment of the method and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
The beneficial effects of the various implementation manners in this embodiment may be specifically referred to the beneficial effects of the corresponding implementation manners in the foregoing method embodiment, and in order to avoid repetition, the description is omitted here.
It should be appreciated that in an embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 can include two portions, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. Memory 1009 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 1010 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1010.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the video processing method embodiment described above, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the video processing method embodiment, and can achieve the same technical effects, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. A video processing method, characterized by being applied to an electronic device, the electronic device comprising at least two sensors, the method comprising:
receiving a first input from a user to a target object, the target object comprising at least one of: the image recording device comprises a magnification mark, an image stream, a zooming magnification curve, a recording frame rate curve and a multimedia file, wherein the magnification mark indicates the zooming magnification of a camera, magnification nodes on the zooming magnification curve indicate the zooming magnification of a first video stream at different time points, each magnification node corresponds to one frame of video image in the first video stream, frame rate nodes on the recording frame rate curve indicate the recording frame rate of the first video stream at different time points, and each frame rate node corresponds to one frame of video image in the first video stream;
responding to the first input, adopting target processing parameters to perform video processing on the recorded first video stream, and outputting target video; in the process of recording the first video stream, the zooming multiplying power and the recording frame rate of the image stream cached by each sensor are different;
the first video stream is a video stream processed by adopting a first zoom magnification and a first recording frame rate, the target processing parameters are determined according to the first input, and the target processing parameters comprise at least one of the following: a second zoom magnification, a second recording frame rate; and under the condition that the first input is used for adjusting the position of a target node of a first curve, the target processing parameter is determined according to the adjusted position of the target node, and the first curve is at least one of the zoom magnification curve and the recording frame rate curve.
2. The method of claim 1, wherein the target object comprises a magnification identification and the target processing parameter comprises a second zoom magnification;
before the receiving the first input of the user to the target object, the method further comprises:
displaying at least two magnification marks, wherein each magnification mark indicates the zooming magnification of one camera;
the receiving a first input of a user to a target object includes:
receiving a first input of a target multiplying power identifier in the at least two multiplying power identifiers by a user;
the method comprises the steps of performing video processing on the recorded first video stream by adopting target processing parameters, and before outputting target video, the method further comprises the steps of:
and determining the zoom magnification indicated by the target magnification identification as a second zoom magnification.
3. The method of claim 1, wherein the target object comprises an image stream and the target processing parameter comprises a second recording frame rate;
before the receiving the first input of the user to the target object, the method further comprises:
displaying at least two image streams, wherein different image streams correspond to different recording frame rates;
the receiving a first input of a user to a target object includes:
Receiving a first input of a user to a target image stream of the at least two image streams;
the method comprises the steps of performing video processing on the recorded first video stream by adopting target processing parameters, and before outputting target video, the method further comprises the steps of:
and determining the recording frame rate of the camera for recording the target image stream as a second recording frame rate.
4. A method according to claim 2 or 3, wherein prior to said receiving a first input by a user to a target object, the method further comprises:
receiving a second input from the user;
responding to the second input, and controlling at least two cameras to record at a target frame rate respectively to obtain at least two video streams;
each video stream corresponds to one camera, the at least two video streams comprise the first video stream, and each target frame rate is the highest recording frame rate in at least one recording frame rate corresponding to one camera.
5. The method of claim 1, wherein the target object comprises a zoom magnification curve, magnification nodes on the zoom magnification curve indicating zoom magnifications of the first video stream at different points in time, each magnification node corresponding to a frame of video image in the first video stream, the target processing parameters comprising a second zoom magnification;
The receiving a first input of a user to a target object includes:
receiving a first input of a user to a target magnification node on the zoom magnification curve;
the method comprises the steps of performing video processing on the recorded first video stream by adopting target processing parameters, and before outputting target video, the method further comprises the steps of:
and determining a second zoom magnification according to the display position of the target magnification node.
6. The method of claim 1, wherein the target object comprises a recording frame rate curve, wherein frame rate nodes on the recording frame rate curve indicate recording frame rates of the first video stream at different points in time, wherein each frame rate node corresponds to a frame of video image in the first video stream, and wherein the target processing parameter comprises a second recording frame rate;
the receiving a first input of a user to a target object includes:
receiving a first input of a user to a target frame rate node on the recording frame rate curve;
the method comprises the steps of performing video processing on the recorded first video stream by adopting target processing parameters, and before outputting target video, the method further comprises the steps of:
and determining a second recording frame rate according to the display position of the target frame rate node.
7. The method of claim 1, wherein the target object comprises a multimedia file and the target parameters comprise a second zoom magnification and a second recording frame rate;
before the receiving the first input of the user to the target object, the method further comprises:
displaying a target control;
receiving a third input of a user to the target control;
displaying at least one multimedia file in response to the third input;
the receiving a first input of a user to a target object includes:
receiving a first input of a user to a target multimedia file of the at least one multimedia file;
the method comprises the steps of performing video processing on the recorded first video stream by adopting target processing parameters, and before outputting target video, the method further comprises the steps of:
determining a second zoom magnification and a second recording frame rate according to the attribute information of the target multimedia file;
wherein the attribute information includes at least one of: playing rhythm information, zooming multiplying power and recording frame rate.
8. The method of claim 1, wherein the target processing parameters include a second zoom magnification and a second recording frame rate;
the video processing is performed on the recorded first video stream by using the target processing parameters, and the target video is output, including:
And according to the second zoom multiplying power and the second recording frame rate, performing frame extraction or frame insertion processing on the first video stream, and outputting a target video.
9. A video processing apparatus, the video processing apparatus comprising at least two sensors, the video processing apparatus comprising: the device comprises a receiving module, a processing module and an output module;
the receiving module is configured to receive a first input from a user to a target object, where the target object includes at least one of: the image recording device comprises a magnification mark, an image stream, a zooming magnification curve, a recording frame rate curve and a multimedia file, wherein the magnification mark indicates the zooming magnification of a camera, magnification nodes on the zooming magnification curve indicate the zooming magnification of a first video stream at different time points, each magnification node corresponds to one frame of video image in the first video stream, frame rate nodes on the recording frame rate curve indicate the recording frame rate of the first video stream at different time points, and each frame rate node corresponds to one frame of video image in the first video stream; the zoom magnification and the recording frame rate of the image streams cached by different image sensors are different;
the processing module is used for responding to the first input received by the receiving module and adopting target processing parameters to perform video processing on the recorded first video stream; in the process of recording the first video stream, the zooming multiplying power and the recording frame rate of the image stream cached by each sensor are different;
The output module is used for outputting a target video;
the first video stream is a video stream processed by adopting a first zoom magnification and a first recording frame rate, the target processing parameters are determined according to the first input, and the target processing parameters comprise at least one of the following: a second zoom magnification, a second recording frame rate; and under the condition that the first input is used for adjusting the position of a target node of a first curve, the target processing parameter is determined according to the adjusted position of the target node, and the first curve is at least one of the zoom magnification curve and the recording frame rate curve.
10. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the video processing method of any one of claims 1 to 8.
CN202210109019.4A 2022-01-28 2022-01-28 Video processing method and device and electronic equipment Active CN114520874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210109019.4A CN114520874B (en) 2022-01-28 2022-01-28 Video processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210109019.4A CN114520874B (en) 2022-01-28 2022-01-28 Video processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN114520874A CN114520874A (en) 2022-05-20
CN114520874B true CN114520874B (en) 2023-11-24

Family

ID=81595964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210109019.4A Active CN114520874B (en) 2022-01-28 2022-01-28 Video processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114520874B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013090204A (en) * 2011-10-19 2013-05-13 Oki Electric Ind Co Ltd Image processing device and program
CN106792272A (en) * 2016-11-28 2017-05-31 维沃移动通信有限公司 The generation method and mobile terminal of a kind of video thumbnails
CN110636375A (en) * 2019-11-11 2019-12-31 RealMe重庆移动通信有限公司 Video stream processing method and device, terminal equipment and computer readable storage medium
JP2021019255A (en) * 2019-07-18 2021-02-15 キヤノン株式会社 Imaging device and method of controlling the same
CN112954199A (en) * 2021-01-28 2021-06-11 维沃移动通信有限公司 Video recording method and device
CN113067994A (en) * 2021-03-31 2021-07-02 联想(北京)有限公司 Video recording method and electronic equipment
CN113099132A (en) * 2021-04-19 2021-07-09 深圳市帧彩影视科技有限公司 Video processing method, video processing apparatus, electronic device, storage medium, and program product
CN113365012A (en) * 2020-03-06 2021-09-07 华为技术有限公司 Audio processing method and device
CN113570531A (en) * 2021-07-27 2021-10-29 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN113596320A (en) * 2021-06-16 2021-11-02 荣耀终端有限公司 Video shooting variable speed recording method, device, storage medium and program product
CN113824913A (en) * 2021-08-12 2021-12-21 荣耀终端有限公司 Video processing method and device, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013090204A (en) * 2011-10-19 2013-05-13 Oki Electric Ind Co Ltd Image processing device and program
CN106792272A (en) * 2016-11-28 2017-05-31 维沃移动通信有限公司 The generation method and mobile terminal of a kind of video thumbnails
JP2021019255A (en) * 2019-07-18 2021-02-15 キヤノン株式会社 Imaging device and method of controlling the same
CN110636375A (en) * 2019-11-11 2019-12-31 RealMe重庆移动通信有限公司 Video stream processing method and device, terminal equipment and computer readable storage medium
CN113365012A (en) * 2020-03-06 2021-09-07 华为技术有限公司 Audio processing method and device
CN112954199A (en) * 2021-01-28 2021-06-11 维沃移动通信有限公司 Video recording method and device
CN113067994A (en) * 2021-03-31 2021-07-02 联想(北京)有限公司 Video recording method and electronic equipment
CN113099132A (en) * 2021-04-19 2021-07-09 深圳市帧彩影视科技有限公司 Video processing method, video processing apparatus, electronic device, storage medium, and program product
CN113596320A (en) * 2021-06-16 2021-11-02 荣耀终端有限公司 Video shooting variable speed recording method, device, storage medium and program product
CN113570531A (en) * 2021-07-27 2021-10-29 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN113824913A (en) * 2021-08-12 2021-12-21 荣耀终端有限公司 Video processing method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Android移动终端的多功能视频监控系统设计;郭志涛;韩海净;孔江浩;杨革宇;曹小青;;现代电子技术(第16期);全文 *

Also Published As

Publication number Publication date
CN114520874A (en) 2022-05-20

Similar Documents

Publication Publication Date Title
CN113766129B (en) Video recording method, video recording device, electronic equipment and medium
CN113093968B (en) Shooting interface display method and device, electronic equipment and medium
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN112954210A (en) Photographing method and device, electronic equipment and medium
CN114422692B (en) Video recording method and device and electronic equipment
CN113794923B (en) Video processing method, device, electronic equipment and readable storage medium
CN112333382B (en) Shooting method and device and electronic equipment
CN113794829B (en) Shooting method and device and electronic equipment
CN112911147B (en) Display control method, display control device and electronic equipment
CN113014801B (en) Video recording method, video recording device, electronic equipment and medium
CN113596294A (en) Shooting method and device and electronic equipment
WO2022161383A1 (en) Filming control method and apparatus, and electronic device
CN113923350A (en) Video shooting method and device, electronic equipment and readable storage medium
CN113207038A (en) Video processing method, video processing device and electronic equipment
CN114143455B (en) Shooting method and device and electronic equipment
CN114500852B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114520874B (en) Video processing method and device and electronic equipment
CN114222069B (en) Shooting method, shooting device and electronic equipment
CN112367467B (en) Display control method, display control device, electronic apparatus, and medium
CN113014799B (en) Image display method and device and electronic equipment
CN114745505A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114390205A (en) Shooting method and device and electronic equipment
CN114650370A (en) Image shooting method and device, electronic equipment and readable storage medium
CN114245017A (en) Shooting method and device and electronic equipment
CN113873147A (en) Video recording method and 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
GR01 Patent grant
GR01 Patent grant