CN113489899A - Special effect video recording method and device, computer equipment and storage medium - Google Patents

Special effect video recording method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113489899A
CN113489899A CN202110730960.3A CN202110730960A CN113489899A CN 113489899 A CN113489899 A CN 113489899A CN 202110730960 A CN202110730960 A CN 202110730960A CN 113489899 A CN113489899 A CN 113489899A
Authority
CN
China
Prior art keywords
special effect
video
video data
user
path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110730960.3A
Other languages
Chinese (zh)
Inventor
陈自超
邹芳
张亚男
谢树家
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN202110730960.3A priority Critical patent/CN113489899A/en
Publication of CN113489899A publication Critical patent/CN113489899A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability
    • 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)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a special-effect video recording method, a special-effect video recording device, computer equipment and a storage medium, wherein the method comprises the following steps: when video recording starts, dividing the obtained video data into two paths, and storing the one path of video data as initial video data; performing special effect processing on the other path of video data according to the special effect selected by the user to generate and display a preview video to obtain a target special effect finally selected by the user; after the video recording is finished, the initial video data is subjected to special effect processing according to the target special effect, and the obtained special effect video is encoded and then stored. Through the mode, the video recording and previewing process and the video coding and storing process can be separately executed, so that the pressure of the video recording process on hardware is reduced, the load of a terminal is reduced, and the situation of blocking is avoided.

Description

Special effect video recording method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer processing technologies, and in particular, to a method and an apparatus for recording a special-effect video, a computer device, and a storage medium.
Background
With the popularization of mobile terminals and the increasing speed of networks, short and fast mass flow transmission contents are gradually favored by various large platforms, fans and capital, and the daily behavior of recording videos becomes that of lighter people for more and more years.
The special effect is an image processing technology capable of quickly modifying and beautifying pictures shot by a user, in the current mobile terminal, in order to realize various different picture effects, a corresponding application program appears in the mobile terminal, and a system can select the corresponding special effect to view the corresponding effect of a video image under the special effect by providing a series of set special effects. The mode of combining the special effect with the video better achieves the effect of carrying out real-time special effect processing on the video, and the system can generate different effects according to different preset special effects, thereby realizing the diversification of the image acquisition effect of the camera.
However, for most mobile terminals in the existing market, in the process of shooting such a short video with special effect, it is necessary to perform encoding processing and storage on the video, and at the same time, it is necessary to perform rendering processing on the shot video by using the special effect, which results in a large increase in hardware load of the mobile terminal, easily causes a device scald, a video shooting or processing process is stuck, and user experience is not good.
Disclosure of Invention
The application provides a special-effect video recording method, a special-effect video recording device, computer equipment and a storage medium, and aims to solve the problems that the conventional special-effect video recording method has high requirements on hardware of terminal equipment and is easy to cause blocking.
In order to solve the technical problem, the application adopts a technical scheme that: provided is a special effect video recording method, including: when video recording starts, dividing the obtained video data into two paths, and storing the one path of video data as initial video data; performing special effect processing on the other path of video data according to the special effect selected by the user to generate and display a preview video to obtain a target special effect finally selected by the user; after the video recording is finished, the initial video data is subjected to special effect processing according to the target special effect, and the obtained special effect video is encoded and then stored.
As a further improvement of the present application, the special effect processing includes basic effect processing, and/or filter effect processing, and/or background effect processing.
As a further improvement of the present application, after the video recording is completed, performing special effect processing on the initial video data according to the target special effect, and then encoding and storing the obtained special effect video, the method includes: after the video recording is finished, acquiring each frame of image of the initial video data; acquiring a special effect processing template corresponding to a target special effect; identifying the area needing special effect processing in each frame of image according to the special effect processing template; and carrying out special effect processing on the region according to the target special effect to obtain a special effect video, and coding and storing the special effect video.
As a further improvement of the present application, before performing special effect processing on another path of video data according to a special effect selected by a user, the method further includes: obtaining a special effect selected by a user; and carrying out special effect processing on the other path of video data according to the special effect selected by the user to generate and display a preview video so as to obtain the target special effect finally selected by the user, wherein the special effect processing comprises the following steps: playing the other path of video data, and performing special effect processing on the other path of video data according to the special effect to generate a current preview video; receiving an instruction fed back by a user, and judging whether the instruction is a confirmation instruction or a replacement instruction; if the command is a confirmation command, taking the special effect as a target special effect; and if the command is a replacement command, processing the other path of video data according to the special effect selected by the user again to generate a new preview video.
As a further improvement of the present application, obtaining a special effect selected by a user includes: acquiring at least one special effect selected by a user and the effective time corresponding to each special effect; playing another path of video data, and performing special effect processing on the other path of video data according to the special effect to generate a current preview video, wherein the method comprises the following steps: and playing the other path of video data, and performing special effect processing on the other path of video data within the corresponding effective time according to the special effect to generate the current preview video.
As a further improvement of the present application, obtaining a special effect selected by a user includes: recognizing a gesture motion or a facial motion of a user; and acquiring special effects matched with the gesture actions or the facial actions from the special effect library.
As a further improvement of the present application, performing special effect processing on the other path of video data according to a special effect selected by a user includes: carrying out low-precision special effect processing on the other path of video data according to the special effect; carrying out special effect processing on the initial video data according to the target special effect, wherein the special effect processing comprises the following steps: and carrying out high-precision special effect processing on the initial video data according to the target special effect.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a special effect video recording apparatus including: the recording module is used for dividing the acquired video data into two paths after the video recording starts, and storing the one path of video data as initial video data; the preview module is used for carrying out special effect processing on the other path of video data according to the special effect selected by the user, generating and displaying a preview video and obtaining a target special effect finally selected by the user; and the processing module is used for carrying out special effect processing on the initial video data according to the target special effect after the video recording is finished, and then coding and storing the obtained special effect video.
In order to solve the above technical problem, the present application adopts another technical solution that: there is provided a computer device comprising a processor, a memory coupled to the processor, the memory having stored therein program instructions which, when executed by the processor, cause the processor to carry out the steps of the special effects video recording method as claimed in any one of the preceding claims.
In order to solve the above technical problem, the present application adopts another technical solution that: there is provided a storage medium storing program instructions capable of implementing the special effect video recording method of any one of the above.
The beneficial effect of this application is: the method for recording the special-effect video divides the recorded video data into two paths, wherein one path is used as initial video data to be cached in a buffer pool, the other path of the video data is subjected to special-effect processing and then previewed by a user, after the video recording is finished, the initial video data is subjected to special-effect processing according to a target selected by the user, the special-effect video is obtained and then coded and stored, and the process of recording and previewing the video and the process of storing the video are separately executed, so that the video recording is carried out only by performing the operation of previewing the video, and the video coding and storing processes are executed after the video recording is finished, so that the pressure of the video recording process on hardware is reduced, the load of a mobile terminal is reduced, and the situation of blocking is avoided.
Drawings
Fig. 1 is a flowchart illustrating a special effect video recording method according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a special effect video recording method according to a second embodiment of the present invention;
FIG. 3 is a functional block diagram of an embodiment of an apparatus for recording special effect video;
FIG. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a storage medium according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first", "second" and "third" in this application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any indication of the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. All directional indications (such as up, down, left, right, front, and rear … …) in the embodiments of the present application are only used to explain the relative positional relationship between the components, the movement, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indication is changed accordingly. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Fig. 1 is a flowchart illustrating a special effect video recording method according to a first embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 1 if the results are substantially the same. As shown in fig. 1, the method comprises the steps of:
step S101: when the video recording starts, the obtained video data is divided into two paths, and one path of video data is stored as initial video data.
Specifically, when a user records a short video through the mobile terminal, a camera of the mobile terminal shoots a target object, so that shot video data is acquired. The image in the acquisition range of the camera generates an optical image through the camera, the generated optical image is projected onto the surface of the image sensor, then the optical image is converted into an electric signal, and the electric signal is converted into a digital image signal after A/D (analog to digital conversion), namely the video data in the embodiment is formed. After video data are obtained, the video data are divided into two paths to be processed respectively, the two paths do not interfere with each other, and one path of video data is stored as initial video data and is used for subsequent video coding storage; and the other path of video data is used for previewing after special effect processing is carried out, so that the user can conveniently set the required effect. Wherein, the mobile terminal can also be provided with a buffer pool for storing initial video data.
It should be noted that, in the process of recording a video, the video recording function on the mobile terminal may be turned on to start recording the video, and the video recording function may be turned on in various ways. Firstly, a video recording function is started when a user manually triggers a function touch key displayed on a touch screen of the mobile terminal; secondly, the user can start the video recording function through voice control; and thirdly, automatically starting a video recording function after detecting that a preset target object appears in a picture shot by a camera of the mobile terminal, wherein the target object can be a person or an object, a human face or a gesture action of the person and the like. The embodiment does not limit the manner in which the video recording function starts.
Step S102: and carrying out special effect processing on the other path of video data according to the special effect selected by the user, generating and displaying a preview video, and obtaining the target special effect finally selected by the user.
Specifically, after the special effect selected by the user and the other path of video data are obtained, the other path of video data is subjected to real-time special effect processing according to the special effect, and the preview video with the special effect added is obtained. And displaying the preview video to a user, if the user is satisfied with the effect of the preview video, confirming that the special effect is selected as a target special effect by the client, if the user is not satisfied with the effect of the preview video, replacing the special effect, performing special effect processing again and then previewing the special effect for the user until the user finds the satisfied special effect.
It should be noted that, in this embodiment, the other path of video data is always in a circular playing state, that is, the video data starts to be played again after being played once, and the playing process may be paused to provide time for the user to select a special effect, or the user may control to start playing again after the user selects a new special effect. In the process of the circular playing, a user can select a special effect from the special effect selection window according to the preference to add the special effect to the video, the playing effect of the video is observed, if the user is unsatisfied with the effect, the special effect can be selected again to be processed, and then the video is played again until the user selects the target special effect. Most of the existing video special effect processing modes are that before a user starts to record a video, the user selects a special effect and previews the special effect, and when the user selects the special effect, the recording is started again, and the recording mode cannot provide a real-time effect for the user to preview the special effect.
Further, the special effect processing includes basic effect processing, and/or filter effect processing, and/or background effect processing.
Wherein, the basic effect processing comprises noise reduction, brightness, chroma and the like; filter effect processing includes the use of filters of various effects, such as: sketch, negative film, soft film, black and white film, etc.; the background effect processing includes the addition of various backgrounds, such as a weather background, a starry sky background, and the like. In addition, the special effect processing further includes adding various pendants to the video or realizing special effects of picture deformation, such as adding a special effect of wearing glasses, adding a special effect of face deformation, and the like, and this embodiment is not limited.
Step S103: after the video recording is finished, the initial video data is subjected to special effect processing according to the target special effect, and the obtained special effect video is encoded and then stored.
Specifically, the instruction for completing the video recording may be manually controlled by the user, for example, the user manually clicks the record ending button to end the video recording, or may automatically end the video recording, for example, when the video recording time reaches the preset time, the video recording is automatically ended, and this embodiment does not limit the video recording ending control manner. After the video recording is finished, the initial video data can be subjected to special effect processing according to the target special effect selected by the user, and the special effect video is coded and stored to finish the recording and storage of the special effect video.
In this embodiment, the step S103 specifically includes:
1. and after the video recording is finished, acquiring each frame of image of the initial video data.
Specifically, after the video recording is completed, the initial video data is divided according to the frame rate to obtain multiple frames of images, and then the multiple frames of images are sequentially arranged according to the time sequence.
2. And acquiring a special effect processing template corresponding to the target special effect.
Specifically, the special effect processing is usually performed in the presence of a corresponding template processing manner, for example, a beautifying special effect, which generally includes buffing, face thinning, and the like, wherein the buffing and face thinning are mainly performed on the face of the person. The special effect processing template is a processing object and a processing mode for recording a special effect.
3. And identifying the area needing special effect processing in each frame of image according to the special effect processing template.
Specifically, after a special effect processing template corresponding to a target special effect is acquired, determining a region needing special effect processing, such as a beautifying special effect, according to the special effect processing template, wherein the region needing processing is a face region, and a face in an image needs to be identified, and then beautifying the face; as another example, a starry sky background, which requires identifying a sky region in an image and filling the sky region with a starry sky special effect.
4. And carrying out special effect processing on the region according to the target special effect to obtain a special effect video, and coding and storing the special effect video.
Specifically, after confirming a target special effect and a region of each frame of image needing special effect processing, sequentially carrying out special effect processing on the region of each frame of image according to the sequence of each frame of image until each frame of image is processed, obtaining a special effect video, and then coding and storing the special effect video.
Further, the step of performing special effect processing on the other path of video data according to the special effect selected by the user in step S102 specifically includes: and carrying out low-precision special effect processing on the other path of video data according to the special effect.
Specifically, in order to avoid an excessive load on hardware when generating a preview video, in this embodiment, when processing another path of video data according to a special effect, a low-precision special effect process is performed by omitting edge or detail processing, so as to reduce resources occupied by calculation and avoid an excessive hardware load in a video recording process.
The step S103 of performing special effect processing on the initial video data according to the target special effect specifically includes: and carrying out high-precision special effect processing on the initial video data according to the target special effect.
Specifically, after the video recording is finished, the mobile terminal does not need to generate the preview video any more, and at this time, the processing of the edge and the detail can be emphasized, so that the finally generated special effect video has a better effect.
The special effect video recording method of the first embodiment of the invention divides the recorded video data into two paths, wherein one path is taken as initial video data to be cached in a buffer pool, the other path of video data is subjected to special effect processing and then previewed by a user, after the video recording is finished, the initial video data is processed according to the target special effect selected by the user, the special effect video is obtained and then coded and stored, the process of video recording and previewing and the process of video coding and storing are separately executed, so that when the video is recorded, the operation of video previewing is only needed, and the video coding and storing process is executed after the video recording is finished, thereby reducing the pressure of the video recording process on hardware, reducing the load of a mobile terminal and avoiding the situation of blocking.
Fig. 2 is a flowchart illustrating a special effect video recording method according to a second embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 2 if the results are substantially the same. As shown in fig. 2, the method comprises the steps of:
step S201: when the video recording starts, the obtained video data is divided into two paths, and one path of video data is stored as initial video data.
In this embodiment, step S201 in fig. 2 is similar to step S101 in fig. 1, and for brevity, is not described herein again.
Step S202: and acquiring the special effect selected by the user.
Specifically, before displaying the preview video with the added special effect, the special effect selected by the user needs to be obtained, wherein the way in which the user selects the special effect can be selected by clicking the special effect provided in the special effect selection window.
Further, in order to further improve user experience, a short video may sequentially perform special effect processing using a plurality of special effects, and therefore, the obtaining of the special effect selected by the user specifically includes:
at least one special effect selected by a user and the effective time corresponding to each special effect are obtained.
It should be noted that, when setting a special effect, the set special effect data is not limited, and a user can select a plurality of special effects to add to the video according to the requirement. It should be understood that, according to the type division, the special effects can be divided into a special effect that can be displayed simultaneously and a special effect that cannot be displayed simultaneously, for example, the starry sky background special effect and the eye pendant special effect can be inserted into the same video and displayed simultaneously, while the rainy day background special effect and the starry sky background special effect cannot be displayed simultaneously, and the current eye pendant special effect and the other eye pendant special effect cannot be displayed simultaneously.
In this embodiment, the display time of the plurality of special effects is limited by the effective time point. Specifically, when at least one special effect selected by a user is obtained, an effective time point corresponding to each special effect needs to be obtained at the same time, where the effective time points include a start effective time point and an end effective time point, for example, when the user selects the special effect including a starry sky background special effect and a rainy day background special effect, the effective time of the starry sky background special effect and the effective time of the rainy day background special effect cannot be overlapped, so that a conflict is avoided. The effective time is determined according to the playing progress of the other path of video data, for example, a starry sky background special effect is adopted in the first 15 seconds of the other path of video data, the effective time is 0-15 seconds, a rainy day background special effect is adopted in the 15 th-30 th seconds, the effective time is 16-30 seconds, an eye hanging special effect is adopted in the whole playing process, and the effective time is 0-30 seconds.
Further, in some embodiments, the step of obtaining the special effect selected by the user specifically includes:
1. a gesture motion or a facial motion of the user is recognized.
2. And acquiring special effects matched with the gesture actions or the facial actions from the special effect library.
Specifically, the special effect is bound with the gesture action or the facial action in advance, and when the gesture action or the facial action of the user acquired by the camera is matched with the preset gesture action or the facial action, the special effect corresponding to the gesture action or the facial action is acquired, so that the user does not need to manually select the special effect, and the user operation is more convenient.
Step S203: and playing the other path of video data, and performing special effect processing on the other path of video data according to the special effect to generate the current preview video.
Further, when the user selects a plurality of special effects, another path of video data is played, and special effect processing is performed on the other path of video data according to the special effects to generate a current preview video, which specifically includes the steps of: and playing the other path of video data, and performing special effect processing on the other path of video data within the corresponding effective time according to the special effect to generate the current preview video.
Specifically, when another path of video data starts to be played, the current playing time is confirmed, the special effect corresponding to the current time point is confirmed according to the current playing time, and then the other path of video data is processed according to the special effect and then output and displayed.
Step S204: and receiving an instruction fed back by a user, and judging whether the instruction is a confirmation instruction or a replacement instruction. If the command is a confirm command, go to step S205; if the command is a replacement command, step S206 is executed.
The instructions fed back by the user include a confirmation instruction and a replacement instruction, wherein the confirmation instruction is used for confirming the target special effect selected by the user, and the replacement instruction is used for replacing the special effect. Specifically, after a current preview video is displayed to a user, the user evaluates the preview video to determine whether the preview video meets requirements, and then receives a command fed back by the user. Further, in some embodiments, the instruction further includes a modification instruction and a removal instruction, wherein the modification instruction is used for modifying the relevant parameter of the special effect, for example, for the face-thinning special effect, the degree of face thinning can be manually set by the user; the removing instruction is used for removing the special effect from the current prediction video and restoring the special effect to the original video.
Further, in some embodiments, the user may feedback the instruction by gesture, voice or expression, and different gestures correspond to different instructions, for example: the confirmation instruction and the like are expressed by inputting a voice of "confirmation", and the present embodiment is not limited.
Step S205: and taking the special effect as a target special effect.
Step S206: and processing another path of video data according to the special effect selected by the user again to generate a new preview video, and executing the step S204 again.
Specifically, when the instruction fed back by the user is a replacement instruction, a special effect specified again by the user is confirmed according to the replacement instruction, and then another path of video data is reprocessed according to the special effect to generate a new preview video.
Step S207: after the video recording is finished, the initial video data is subjected to special effect processing according to the target special effect, and the obtained special effect video is encoded and then stored.
In this embodiment, step S207 in fig. 2 is similar to step S103 in fig. 1, and for brevity, is not described herein again.
The special effect video recording method of the second embodiment of the invention is based on the first embodiment, by providing a channel for selecting special effects for users, the users can select favorite special effects at any time for previewing, the mode of selecting the special effects can be identified by gesture action or face action, the operation mode is diversified, and the effective time can be set for the special effects, so that a plurality of special effects can be added to one video, and the addition of a plurality of special effects of the same type to one video can not generate conflict by the division of the effective time.
Fig. 3 is a functional block diagram of a special effect video recording apparatus according to an embodiment of the present invention. As shown in fig. 3, the special effect video recording apparatus 30 includes a recording module 31, a preview module 32, and a processing module 33.
The recording module 31 is configured to divide the obtained video data into two paths after the video recording starts, and store one path of video data as initial video data.
And the preview module 32 is configured to perform special effect processing on the other path of video data according to the special effect selected by the user, generate a preview video, and display the preview video to obtain a target special effect finally selected by the user.
And the processing module 33 is configured to perform special effect processing on the initial video data according to the target special effect after the video recording is completed, and then encode and store the obtained special effect video.
Optionally, the special effect processing includes basic effect processing, and/or filter effect processing, and/or background effect processing.
Optionally, the processing module 33 may further perform, after the video recording is completed, special effect processing on the initial video data according to the target special effect, and then encode and store the obtained special effect video: after the video recording is finished, acquiring each frame of image of the initial video data; acquiring a special effect processing template corresponding to a target special effect; identifying the area needing special effect processing in each frame of image according to the special effect processing template; and carrying out special effect processing on the region according to the target special effect to obtain a special effect video, and coding and storing the special effect video.
Optionally, before the preview module 32 performs the operation of performing special effect processing on the other path of video data according to the special effect selected by the user, the preview module is further configured to: obtaining a special effect selected by a user; the preview module 32 performs special effect processing on the other path of video data according to the special effect selected by the user, generates a preview video and displays the preview video, and the operation of obtaining the target special effect finally selected by the user may also be: playing the other path of video data, and performing special effect processing on the other path of video data according to the special effect to generate a current preview video; receiving an instruction fed back by a user, and judging whether the instruction is a confirmation instruction or a replacement instruction; if the command is a confirmation command, taking the special effect as a target special effect; and if the command is a replacement command, processing the other path of video data according to the special effect selected by the user again to generate a new preview video.
Optionally, the operation of the preview module 32 for acquiring the special effect selected by the user may also be: acquiring at least one special effect selected by a user and the effective time corresponding to each special effect; the preview module 32 performs playing of another path of video data, and performs special effect processing on the other path of video data according to the special effect, and the operation of generating the current preview video may also be: and playing the other path of video data, and performing special effect processing on the other path of video data within the corresponding effective time according to the special effect to generate the current preview video.
Optionally, the operation of the preview module 32 for acquiring the special effect selected by the user may also be: recognizing a gesture motion or a facial motion of a user; and acquiring special effects matched with the gesture actions or the facial actions from the special effect library.
Optionally, the operation performed by the preview module 32 to perform special effect processing on the other path of video data according to the special effect selected by the user may also be: carrying out low-precision special effect processing on the other path of video data according to the special effect; the operation of the processing module 33 performing special effect processing on the initial video data according to the target special effect may further be: and carrying out high-precision special effect processing on the initial video data according to the target special effect.
For other details of the technical solutions implemented by the modules in the special effect video recording apparatus according to the foregoing embodiments, reference may be made to the description of the special effect video recording method in the foregoing embodiments, and details are not repeated here.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention. As shown in fig. 4, the computer device 40 includes a processor 41 and a memory 42 coupled to the processor 41, wherein the memory 42 stores program instructions, and the program instructions, when executed by the processor 41, cause the processor 41 to execute the steps of the special effect video recording method according to any of the embodiments.
The processor 41 may also be referred to as a CPU (Central Processing Unit). The processor 41 may be an integrated circuit chip having signal processing capabilities. The processor 41 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a storage medium according to an embodiment of the invention. The storage medium of the embodiment of the present invention stores program instructions 51 capable of implementing all the methods described above, where the program instructions 51 may be stored in the storage medium in the form of a software product, and include several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or computer equipment, such as a computer, a server, a mobile phone, and a tablet.
In the several embodiments provided in the present application, it should be understood that the disclosed computer apparatus, device and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. The above embodiments are merely examples and are not intended to limit the scope of the present disclosure, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present disclosure or those directly or indirectly applied to other related technical fields are intended to be included in the scope of the present disclosure.

Claims (10)

1. A special effect video recording method, comprising:
when video recording starts, dividing the obtained video data into two paths, and storing the one path of video data as initial video data;
performing special effect processing on the other path of video data according to the special effect selected by the user to generate and display a preview video to obtain a target special effect finally selected by the user;
after the video recording is finished, the initial video data is subjected to special effect processing according to the target special effect, and the obtained special effect video is coded and stored.
2. The special effect video recording method according to claim 1, wherein the special effect process comprises a basic effect process, and/or a filter effect process, and/or a background effect process.
3. The method for recording the special effect video according to claim 1, wherein after the video is recorded, the method for performing special effect processing on the initial video data according to the target special effect, and then coding and storing the obtained special effect video comprises:
after the video recording is finished, acquiring each frame of image of the initial video data;
obtaining a special effect processing template corresponding to the target special effect;
identifying a region which needs special effect processing in each frame of the image according to the special effect processing template;
and carrying out special effect processing on the region according to the target special effect to obtain the special effect video, and carrying out coding storage.
4. The special effect video recording method according to claim 1, wherein before performing special effect processing on the other path of video data according to the special effect selected by the user, the method further comprises:
acquiring the special effect selected by a user;
the method for processing the other path of video data according to the special effect selected by the user to generate and display the preview video to obtain the target special effect finally selected by the user comprises the following steps:
playing the other path of video data, and performing special effect processing on the other path of video data according to the special effect to generate a current preview video;
receiving an instruction fed back by the user, and judging whether the instruction is a confirmation instruction or a replacement instruction;
if the command is a confirmation command, taking the special effect as the target special effect;
and if the change instruction is the replacement instruction, processing the other path of video data according to the special effect selected by the user again to generate a new preview video.
5. The special effect video recording method according to claim 4, wherein said obtaining the special effect selected by the user comprises:
acquiring at least one special effect selected by a user and the effective time corresponding to each special effect;
the playing the other path of video data, and performing special effect processing on the other path of video data according to the special effect to generate a current preview video, including:
and playing the other path of video data, and performing special effect processing on the other path of video data within corresponding effective time according to the special effect to generate the current preview video.
6. The special effect video recording method according to claim 4, wherein said obtaining the special effect selected by the user comprises:
recognizing a gesture motion or a facial motion of a user;
and acquiring special effects matched with the gesture actions or the facial actions from a special effect library.
7. The special effect video recording method according to claim 1, wherein said performing special effect processing on the other path of video data according to the special effect selected by the user comprises:
carrying out low-precision special effect processing on the other path of video data according to the special effect;
the performing special effect processing on the initial video data according to the target special effect includes:
and carrying out high-precision special effect processing on the initial video data according to the target special effect.
8. An effect video recording apparatus, comprising:
the recording module is used for dividing the acquired video data into two paths after the video recording starts, and storing the one path of video data as initial video data;
the preview module is used for carrying out special effect processing on the other path of video data according to the special effect selected by the user, generating and displaying a preview video and obtaining a target special effect finally selected by the user;
and the processing module is used for carrying out special effect processing on the initial video data according to the target special effect after the video recording is finished, and then coding and storing the obtained special effect video.
9. Computer device, characterized in that the computer device comprises a processor, a memory coupled to the processor, in which memory program instructions are stored which, when executed by the processor, cause the processor to carry out the steps of the special effects video recording method according to any of claims 1 to 7.
10. A storage medium characterized in that it stores program instructions enabling the special effects video recording method according to any one of claims 1 to 7.
CN202110730960.3A 2021-06-29 2021-06-29 Special effect video recording method and device, computer equipment and storage medium Pending CN113489899A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110730960.3A CN113489899A (en) 2021-06-29 2021-06-29 Special effect video recording method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110730960.3A CN113489899A (en) 2021-06-29 2021-06-29 Special effect video recording method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113489899A true CN113489899A (en) 2021-10-08

Family

ID=77936767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110730960.3A Pending CN113489899A (en) 2021-06-29 2021-06-29 Special effect video recording method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113489899A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023016067A1 (en) * 2021-08-12 2023-02-16 荣耀终端有限公司 Video processing method and apparatus, and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016177296A1 (en) * 2015-05-04 2016-11-10 腾讯科技(深圳)有限公司 Video generation method and apparatus
CN107948543A (en) * 2017-11-16 2018-04-20 北京奇虎科技有限公司 A kind of special video effect processing method and processing device
CN108769562A (en) * 2018-06-29 2018-11-06 广州酷狗计算机科技有限公司 The method and apparatus for generating special efficacy video

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016177296A1 (en) * 2015-05-04 2016-11-10 腾讯科技(深圳)有限公司 Video generation method and apparatus
CN107948543A (en) * 2017-11-16 2018-04-20 北京奇虎科技有限公司 A kind of special video effect processing method and processing device
CN108769562A (en) * 2018-06-29 2018-11-06 广州酷狗计算机科技有限公司 The method and apparatus for generating special efficacy video

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023016067A1 (en) * 2021-08-12 2023-02-16 荣耀终端有限公司 Video processing method and apparatus, and electronic device

Similar Documents

Publication Publication Date Title
US20230230306A1 (en) Animated emoticon generation method, computer-readable storage medium, and computer device
CN109257645B (en) Video cover generation method and device
CN109360261B (en) Image processing method, image processing device, electronic equipment and storage medium
KR101528312B1 (en) Method for editing video and apparatus therefor
CN106791535B (en) Video recording method and device
CN110677734B (en) Video synthesis method and device, electronic equipment and storage medium
CN109218630B (en) Multimedia information processing method and device, terminal and storage medium
CN112866576B (en) Image preview method, storage medium and display device
KR102457864B1 (en) Method and device for processing video, terminal communication apparatus and storage medium
CN111970456B (en) Shooting control method, device, equipment and storage medium
CN104883494B (en) A kind of method and device of video capture
US11393134B2 (en) Customizing soundtracks and hairstyles in modifiable videos of multimedia messaging application
JP2013532323A (en) Ranking key video frames based on camera position
KR20210118428A (en) Systems and methods for providing personalized video
CN114520876A (en) Time-delay shooting video recording method and device and electronic equipment
CN113747240A (en) Video processing method, apparatus, storage medium, and program product
KR20150141059A (en) Apparatus and method for providing thumbnail image of moving picture
CN113489899A (en) Special effect video recording method and device, computer equipment and storage medium
CN111831615B (en) Method, device and system for generating video file
CN114170472A (en) Image processing method, readable storage medium and computer terminal
CN105979138A (en) Video shooting apparatus and method, and mobile terminal
CN111612875A (en) Dynamic image generation method and device, electronic equipment and storage medium
CN113852757B (en) Video processing method, device, equipment and storage medium
US11252341B2 (en) Method and device for shooting image, and storage medium
CN113873319A (en) Video processing method and device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211008

RJ01 Rejection of invention patent application after publication