CN113115099A - Video recording method and device, electronic equipment and storage medium - Google Patents

Video recording method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113115099A
CN113115099A CN202110530219.2A CN202110530219A CN113115099A CN 113115099 A CN113115099 A CN 113115099A CN 202110530219 A CN202110530219 A CN 202110530219A CN 113115099 A CN113115099 A CN 113115099A
Authority
CN
China
Prior art keywords
special effect
video
target
template
user
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.)
Granted
Application number
CN202110530219.2A
Other languages
Chinese (zh)
Other versions
CN113115099B (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.)
Beijing Sensetime Technology Development Co Ltd
Original Assignee
Beijing Sensetime Technology Development 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 Beijing Sensetime Technology Development Co Ltd filed Critical Beijing Sensetime Technology Development Co Ltd
Priority to CN202110530219.2A priority Critical patent/CN113115099B/en
Publication of CN113115099A publication Critical patent/CN113115099A/en
Priority to PCT/CN2021/133809 priority patent/WO2022237129A1/en
Priority to TW111106652A priority patent/TW202245466A/en
Application granted granted Critical
Publication of CN113115099B publication Critical patent/CN113115099B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • H04N21/4355Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream involving reformatting operations of additional data, e.g. HTML pages on a television screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • H04N21/4398Processing of audio elementary streams involving reformatting operations of audio signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally

Abstract

The present disclosure provides a video recording method, apparatus, electronic device and storage medium, wherein the method comprises: acquiring a target AR special effect template and background data corresponding to the target AR special effect template, wherein the background data comprises: background music and/or background text; receiving a video recording instruction of the target AR special effect template, and collecting real-time video data; and in the process of collecting the real-time video data, adding a matched AR special effect to a video picture in the real-time video data based on the target AR special effect template and the background data to obtain a special effect video.

Description

Video recording method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of augmented reality technologies, and in particular, to a video recording method and apparatus, an electronic device, and a storage medium.
Background
With the rapid development of intelligent terminal devices, short videos have already entered a brisk development stage. When the short video is produced through the existing short video platform, the special effect to be shot can be selected, and the special effect selected by the user is correspondingly added into each frame of video picture. In the existing short video platform, the special effect provided for the user is a static special effect, and at the moment, in each frame of video image of the shot short video, the displayed special effect content and the display position of the special effect are relatively fixed special effects. Therefore, the special effect adding mode provided by the existing short video platform is single, and the diversified requirements of users cannot be met.
Disclosure of Invention
The embodiment of the disclosure at least provides a video recording method, a video recording device, electronic equipment and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a video recording method, where the method includes: acquiring a target AR special effect template and background data corresponding to the target AR special effect template, wherein the background data comprises: background music and/or background text; receiving a video recording instruction of the target AR special effect template, and collecting real-time video data; and in the process of collecting the real-time video data, adding a matched AR special effect to a video picture in the real-time video data based on the target AR special effect template and the background data to obtain a special effect video.
In the embodiment of the present disclosure, after the target AR special effect template and the background data (background music and/or background text) are acquired; the method has the advantages that matched AR special effects are added to the video pictures in the real-time video data through the target AR special effect template and the background data, so that the AR special effects corresponding to the video pictures in the real-time video data can be dynamically adjusted, scenes in which the AR special effects displayed by the video pictures in the real-time video data are triggered to change are increased, the AR special effects are triggered to change continuously along with the target AR special effect template and the background data, and the special effect display modes are enriched; and meanwhile, a more obvious interactive experience can be provided for the user.
In an optional embodiment, the obtaining a target AR special effect template includes: responding to a template selection instruction, and acquiring a plurality of candidate enhanced AR special effect templates belonging to at least one special effect type; determining the target AR special effect template among the plurality of candidate enhanced AR special effect templates.
In the embodiment, a plurality of candidate enhanced AR special effect templates of at least one special effect type are provided for the user in advance, so that the range of selecting the AR special effect template by the user can be enlarged, a more comprehensive AR special effect template is provided for the user, and the use experience of the user is improved.
In an alternative embodiment, the determining the target AR special effect template among a plurality of candidate enhanced AR special effect templates includes: acquiring a first background list; the first background list comprises at least one piece of background data, and one piece of background data corresponds to at least one candidate AR enhancement special effect template; in response to a selection operation of target background data in the first background list, displaying at least one candidate enhanced AR special effect template matched with the target background data; determining the target AR special effect template among at least one candidate enhanced AR special effect template that matches the target background data.
In the above embodiment, the target AR special effect template is automatically matched in the first background list through the background music and/or the background text (e.g., blessing words), so that a plurality of search modes of the AR special effect template can be provided for the user, thereby enriching and perfecting the search modes of the AR special effect template, further satisfying different search habits of the AR special effect templates of different users, and improving the use experience of the user using the client application platform.
In an alternative embodiment, the determining the target AR special effect template among a plurality of candidate enhanced AR special effect templates includes: obtaining search parameters of a special effect template, wherein the search parameters comprise at least one of the following: the type of the special effect template, the special effect scene information, the user attribute and the keyword of the special effect template name; and determining an AR special effect template matched with the search parameter from a plurality of candidate enhanced AR special effect templates, and taking the matched AR special effect template as the target AR special effect template.
In the embodiment, by inputting the search parameter of the special effect template and searching the target AR special effect template meeting the requirement from the plurality of candidate enhanced AR special effect templates, the target AR special effect template meeting the requirement of the user can be quickly and accurately searched, so that the time for the user to select the target AR special effect template is saved, and the production efficiency of the special effect video is improved.
In an optional implementation manner, the obtaining of the background data corresponding to the target AR special effect template includes: responding to a background selection instruction, and determining the background data in a second background list corresponding to the target AR special effect template; and/or searching the background data corresponding to the target AR special effect template in the second background list according to the special effect parameters of the target AR special effect template.
In an alternative embodiment, the special effect parameters include at least one of: the method comprises the following steps of special effect duration, special effect content, special effect scene information and user attributes of a video production user of the special effect video.
In the above embodiment, the background data is selected in the second background list for the target AR special effect template through the background selection instruction, and/or the background data is obtained by searching for the target AR special effect template in the second background list according to the special effect parameter of the target AR special effect template, so that the link of inputting background characters (for example, blessing words) by a video production user can be reduced, and the link of inserting background music is reduced, thereby simplifying the operation process of producing the special effect video by the video production user.
In an optional embodiment, after obtaining the target AR special effect template, the method further comprises: displaying special effect attribute information of the target AR special effect template, wherein the special effect attribute information comprises at least one of the following: the video display method comprises the following steps of special effect name information, special effect heat information, special effect description information, special effect video effect display information and special effect scene information.
In the above embodiment, by displaying the special effect attribute information of the target AR special effect template, the relevant information of the candidate enhanced AR special effect template can be displayed more abundantly and comprehensively for the user, so that the user can quickly and accurately select the target AR special effect template which the user wants to shoot.
In an optional embodiment, the method further comprises: generating a sharing link of the special effect video; and sharing the special effect video to at least one user side through the sharing link.
In the embodiment, the special effect video can be shared to other users without downloading the special effect video in a local file by sharing the special effect video to at least one user side through the sharing information of the special effect video, so that local resources can be saved, and the use experience of the users can be improved.
In an optional implementation manner, the adding, based on the target AR special effect template and the background data, a matched AR special effect to a video picture in the real-time video data to obtain a special effect video includes: detecting a target object on a video picture in the real-time video data to obtain characteristic information of the target object; determining an AR special effect matched with the video picture and an adding position of the AR special effect based on the feature information and the target AR special effect template; and adding the matched AR special effect in the video picture based on the adding position to obtain the special effect video.
In the above embodiment, the target object in the real-time video data can be tracked by detecting the target object in the video frame; the adding position of the AR special effect is determined through the feature information of the feature point of the target object and the target AR special effect template, the AR special effect can be accurately added to the specified position of the video picture under the condition that the target object is in a moving state, and therefore the use experience of a user is improved.
In an optional implementation manner, the method is applied to a client application platform, and the client application platform is a Web-side application platform or an applet-side application platform.
In the above embodiment, the special effect video is obtained based on the shooting of the client application platform, and the shooting of the special effect video can be completed without installing a corresponding client, for example, the shooting of the special effect video is completed at an applet or a Web end, so that the shooting flow of the special effect video is simplified.
In a second aspect, an embodiment of the present disclosure provides a video recording method, where the method includes: acquiring a sharing link of the special effect video; the special effect video is generated by adding a special effect and background data in a target AR special effect template in a real-time video, wherein the background data comprises: background music and/or background text; responding to the triggering operation of a triggering user on the sharing link, and determining the user type of the triggering user based on the user identification information of the triggering user; and determining and displaying a special effect display page matched with the user type.
In the embodiment, the user type of the user side is determined, and the special effect display page matched with the user side is determined based on the user type, so that special effect display pages containing different contents can be displayed for users of different types, the special effect display pages are customized for the users individually, and interestingness is increased for the users.
In an optional embodiment, the determining and presenting a special effect presentation page matching the user type includes: determining and displaying a special effect display page containing a target video list under the condition that the trigger user is a video production user of the special effect video; the target video list includes: the video production user produces special effect videos which are already produced by the video production user, and/or the video production user performs praise operations on the special effect videos.
In an optional embodiment, after determining and presenting the special effect presentation page matching the user type, the method further includes: responding to the interactive operation of the special effect video displayed in the special effect display page, and executing corresponding processing on the special effect video, wherein the interactive operation comprises at least one of the following operations: video point compliment operation, video forwarding operation, video collection operation and video comment operation.
In the embodiment, the interactive operation between the user side and the special effect video can be realized, so that the interestingness of shooting the special effect video by the user is increased, and the use experience of the user is improved; meanwhile, the special effect video interactive with the user side can be reasonably managed by performing corresponding processing on the special effect video.
In an optional implementation manner, the method is applied to a client application platform, and the client application platform is a Web-side application platform or an applet-side application platform.
In the above embodiment, the special effect video is obtained based on the shooting of the client application platform, and the shooting of the special effect video can be completed without installing a corresponding client, for example, the shooting of the special effect video is completed at an applet or a Web end, so that the shooting flow of the special effect video is simplified.
In a third aspect, an embodiment of the present disclosure further provides a video recording apparatus, including: a first obtaining unit, configured to obtain a target AR special effect template and background data corresponding to the target AR special effect template, where the background data includes: background music and/or background text; the receiving and collecting unit is used for receiving a video recording instruction of the target AR special effect template and collecting real-time video data; and the special effect adding unit is used for adding a matched AR special effect to a video picture in the real-time video data based on the target AR special effect template and the background data in the process of acquiring the real-time video data to obtain a special effect video.
In a fourth aspect, an embodiment of the present disclosure further provides another video recording apparatus, including: the second obtaining unit is used for obtaining a sharing link of the special effect video; the special effect video is generated by adding a special effect and background data in a target AR special effect template in a real-time video, wherein the background data comprises: background music and/or background text; the first determining unit is used for responding to the triggering operation of a triggering user on the sharing link and determining the user type of the triggering user based on the user identification information of the triggering user; and the second determining unit is used for determining and displaying the special effect display page matched with the user type.
In a fifth aspect, an embodiment of the present disclosure further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect described above, or any possible implementation of the first aspect.
In a sixth aspect, this disclosed embodiment further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program, when executed by a processor, performs the steps in the first aspect described above or any one of the possible implementation manners of the first aspect.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 shows a flowchart of a video recording method provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating an effect of a main interface including a plurality of candidate enhanced AR special effect templates of a blessing class according to an embodiment of the disclosure;
FIG. 3 is a diagram illustrating an effect of a preview special effect provided by an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating an effect of a setting interface of background text provided by an embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating an effect of a setting interface of background music provided by an embodiment of the present disclosure;
fig. 6 shows a flowchart of another video recording method provided by the embodiment of the present disclosure;
fig. 7(a) is a schematic diagram illustrating an effect of an effect showing page matched with a user side according to an embodiment of the present disclosure;
fig. 7(b) is a schematic effect diagram illustrating an effect of a special effect presentation page where a target video list is located according to an embodiment of the present disclosure;
fig. 7(c) is a schematic diagram illustrating an effect of a special effects presentation page of a video list complied with by the embodiment of the disclosure;
fig. 8 shows a flowchart of another video recording method provided by the embodiments of the present disclosure;
fig. 9(a) is a schematic diagram illustrating an effect of a recording page provided by an embodiment of the present disclosure;
fig. 9(b) is a schematic diagram illustrating an effect of a preview page provided by an embodiment of the present disclosure;
fig. 9(c) is a schematic diagram illustrating an effect of sharing a page provided by an embodiment of the present disclosure;
fig. 10 is a schematic diagram of a video recording apparatus provided by an embodiment of the present disclosure;
fig. 11 is a schematic diagram of another video recording apparatus provided in the embodiments of the present disclosure;
fig. 12 shows a schematic diagram of an electronic device provided by an embodiment of the disclosure;
fig. 13 shows a schematic diagram of another electronic device provided by an embodiment of the disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The term "and/or" herein merely describes an associative relationship, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Research shows that in the existing short video platform, the special effect provided for the user is a static special effect, and at the moment, in each frame of video image of the shot short video, the displayed special effect content and the display position of the special effect are relatively fixed special effects. Therefore, the special effect adding mode provided by the existing short video platform is single, and the diversified requirements of users cannot be met.
Based on the above research, the present disclosure provides a video recording method. In the technical scheme provided by the disclosure, after a target AR special effect template and background data (background music and/or background characters) are acquired; the method has the advantages that matched AR special effects are added to the video pictures in the real-time video data through the target AR special effect template and the background data, so that the AR special effects corresponding to the video pictures in the real-time video data can be dynamically adjusted, scenes in which the AR special effects displayed by the video pictures in the real-time video data are triggered to change are increased, the AR special effects are triggered to change continuously along with the target AR special effect template and the background data, and the special effect display modes are enriched; and meanwhile, a more obvious interactive experience can be provided for the user.
To facilitate understanding of the present embodiment, first, a video recording method disclosed in the embodiments of the present disclosure is described in detail, where an execution subject of the video recording method provided in the embodiments of the present disclosure is generally an electronic device with certain computing capability, and the electronic device includes, for example: a terminal device, which may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle mounted device, a wearable device, or a server or other processing device. In some possible implementations, the video recording method may be implemented by a processor calling computer readable instructions stored in a memory.
Referring to fig. 1, a flowchart of a video recording method provided in an embodiment of the present disclosure is shown, where the method is applied to a client application platform, and the client application platform may be an applet application platform or a Web application platform. In the existing special video shooting process, the shooting of the special video can be completed only by downloading the corresponding application program APP. Therefore, the making process of the special effect video of the existing short video platform is relatively complicated and has large limitation.
In the technical scheme of the disclosure, the special effect video is shot based on the client application platform (for example, an applet application platform or a Web application platform), and the shooting of the special effect video can be completed without installing a corresponding application program APP. For example, an applet application platform is opened in a social platform, and then special effect video shooting is completed in the applet; or opening a Web end application platform in the browser, and further finishing the shooting of the special-effect video at the Web end. Therefore, according to the technical scheme, the special effect video is shot through the small program or the wed terminal, the downloading process of the corresponding application program APP can be omitted, and therefore the shooting process of the special effect video is simplified.
In the embodiment of the present disclosure, the video recording method includes steps S101 to S105, where:
s101: acquiring a target AR special effect template and background data corresponding to the target AR special effect template, wherein the background data comprises: background music and/or background text.
Here, the background text may be text prompt information matched with the special effect scene information of the target AR special effect template, for example, may be a blessing word "blessing a cow for a year! Rise step by step, all the time as one wishes! Easy to use, and wide in financial resources! ".
In the embodiment of the disclosure, the target AR special effect template may be a blessing type special effect template, a whitespace type special effect template, a daily life sharing type special effect template, or other emotion expression type special effect templates. The type of the candidate enhanced AR special effect template is not particularly limited by the present disclosure, and candidate enhanced AR special effect templates capable of shooting a special effect video using the technical solution provided by the present disclosure are all within the scope of protection of the present disclosure.
S103: and receiving a video recording instruction of the target AR special effect template, and collecting real-time video data.
S105: and in the process of collecting the real-time video data, adding a matched AR special effect to a video picture in the real-time video data based on the target AR special effect template and the background data to obtain a special effect video.
In the embodiment of the present disclosure, one or more AR special effects may be set for the target AR special effect template in advance. Here, the AR effect includes at least one of: at least one special effect sticker, facial makeup, filter, etc., wherein the special effect sticker comprises: face sticker, background sticker. The face sticker can be understood as a sticker of a face area in the special effect video, and the background sticker can be understood as a sticker of a background area in the special effect video. Such as face stickers and background stickers as shown in fig. 2, 3 and 4.
In the technical scheme provided by the disclosure, after a target AR special effect template and background data (background music and/or background characters) are acquired; the method has the advantages that matched AR special effects are added to the video pictures in the real-time video data through the target AR special effect template and the background data, so that the AR special effects corresponding to the video pictures in the real-time video data can be dynamically adjusted, scenes in which the AR special effects displayed by the video pictures in the real-time video data are triggered to change are increased, the AR special effects are triggered to change continuously along with the target AR special effect template and the background data, and the special effect display modes are enriched; and meanwhile, a more obvious interactive experience can be provided for the user.
In the following embodiments, the processes described in the above-described steps S101 to S105 will be described in detail.
In the embodiment of the present disclosure, a user may first open the above-mentioned client application platform (e.g., an applet or a Web end) in the electronic device, and expose at least part of the multiple candidate enhanced AR special effect templates through the client application platform.
Based on this, prior to responding to the selection operation for the target AR special effect template of the plurality of candidate augmented AR special effect templates, the method further comprises:
presenting effect attribute information of at least part of the candidate AR enhancement effect templates, wherein the effect attribute information comprises at least one of: the video display method comprises the following steps of special effect name information, special effect heat information, special effect description information, special effect video effect display information and special effect scene information.
Here, after the client application platform is opened, a main interface of the client application platform may be displayed on a display interface of the electronic device. For example, the main interface may be the main interface as shown in FIG. 2.
As can be seen from fig. 2, a plurality of candidate enhanced AR special effect templates of the blessing class are included in the main interface. In the main interface, the activity description of the candidate enhanced AR special effect template of the blessing class is included, for example: "recording blessing short video to mother for 15 seconds".
For each candidate enhanced AR special effect template, the following data is included in the main interface as shown in fig. 2: the video recording system comprises special effect name information, special effect description information, special effect heat information, a recording start button, special effect video effect display information and special effect scene information. Wherein the special effect heat information comprises at least one of the following: and the special effect praise times, the special effect forwarding times, the special effect browsing times and the like can express the data of the special effect popularity information. The special effect heat information shown in fig. 2 is the special effect usage number.
Here, the character length of the special effect name information and the character length of the special effect description information displayed in the main interface may be set according to actual needs.
For example, by default, the character length of the special effect name information displayed in the main interface may be selected to be 10 characters, and when the total character length of the special effect name information is greater than 10 characters, the special effect name information may be displayed in the following display manner: the first 9 characters of the special effect name information + … …, e.g., "XXXXXXX … …". Here, the length of the character displayed on the main interface is not limited to 10 characters, and may be any number of characters.
In a default case, the character length of the special effect description information displayed in the main interface may be selected to be 30 characters, and when the total character length of the special effect description information is greater than 10 characters, the special effect name information may be displayed in the following display manner: the first 29 characters of the special effect description + … …. Here, the length of the character displayed on the home screen is not limited to 30 characters, and may be any number of characters.
In the embodiment of the disclosure, the maximum character length of the special effect name information and the maximum character length of the special effect description information displayed in the main interface can be adaptively adjusted according to the size of the display screen of the electronic device.
For example, a device ID of the electronic device may be acquired, and size information of a display screen of the electronic device may be determined according to the device ID, so that a maximum character length of the special effect name information and a maximum character length of the special effect description information that match the size information may be determined.
The special effect video effect display information can be an effect graph of the special effect video and can also be a special effect video. For example, the effect map of the special effect video may be one of the frames of images of the special effect video.
In the embodiment, at least part of the special effect attribute information of the candidate AR special effect template is displayed, so that the relevant information of the candidate AR special effect template can be displayed more abundantly and comprehensively for the user, and the user can quickly and accurately select the target AR special effect template which the user wants to shoot.
In this embodiment of the present disclosure, after the main interface of the client application platform displays at least part of the candidate enhanced AR special effect templates, the target AR special effect template may be obtained according to the displayed at least part of the candidate enhanced AR special effect, where a specific obtaining process is described as follows:
(1) responding to a template selection instruction, and acquiring a plurality of candidate enhanced AR special effect templates belonging to at least one special effect type;
(2) and determining the target AR special effect template in the plurality of candidate enhanced AR special effect templates.
Assume that the client application platform is an applet. The user can open the applet on the social platform, and display a plurality of candidate AR enhancement special effect templates on the main page of the applet, at the moment, the user can initiate a selection instruction on the plurality of candidate AR enhancement special effect templates displayed on the main interface, and therefore the target AR special effect template is selected from the plurality of candidate AR enhancement special effect templates.
After determining the target AR special effect template, an optional implementation is to display special effect attribute information of the target AR special effect template, where the special effect attribute information includes at least one of: the video display method comprises the following steps of special effect name information, special effect heat information, special effect description information, special effect video effect display information and special effect scene information.
After the target AR special effect template is determined, another optional implementation is to show the preview special effect of the target AR special effect template in response to a selection operation of a video production user of the special effect video for the target AR special effect template.
Here, the preview special effect corresponding to the target AR special effect template may be a special effect video preset for the target AR special effect template, for example, the special effect video may be a special effect video shot by a user who records the target AR special effect template for the first time, or may be a special effect video shot by a user with the highest popularity (for example, the most popular times, the most forwarded times, and the most collected times) among users who record the target AR special effect template, or may be a default special effect video preset for the system of the client application platform.
In addition, the preview special effect corresponding to the target AR special effect template may be a special effect video obtained by adding a corresponding AR special effect to a real-time video picture taken by an image pickup device of the electronic device.
After the special effect preview is displayed in the manner described above, a video recording instruction for the special effect preview may be received, and real-time video data may be collected.
Here, the specific determination process of determining the target AR special effect template among the plurality of candidate enhanced AR special effect templates may include the following ways, which are separately described below.
The first method is as follows:
(1) the method comprises the steps of obtaining search parameters of a special effect template, wherein the search parameters are parameters determined based on special effect labels of a plurality of candidate enhanced AR special effect templates, for example, the search parameters may be parameters determined based on at least part of the special effect labels, and specifically, the search parameters include at least one of the following: the type of the special effect template, the special effect scene information, the user attribute and the keyword of the special effect template name.
Here, the special effect label may be at least one of: the type of the special effect template (e.g., blessing type special effect, whitetype special effect, etc.), special effect scene information (e.g., special effect about mother festival blessing in blessing type special effect, special effect about graduation blessing in blessing special effect, etc.), user attributes (e.g., attributes of gender, age, occupation, etc.), keywords of the special effect template name (e.g., keywords of mother festival, child festival, graduation blessing, etc.).
(2) And determining an AR special effect template matched with the search parameter from the plurality of candidate enhanced AR special effect templates, and taking the matched AR special effect template as the target AR special effect template.
After the search parameters are obtained, a target AR special effect template can be searched in the multiple candidate AR enhancement special effect templates based on the special effect labels of the candidate AR enhancement special effect templates.
In the embodiment, by inputting the search parameter of the special effect template and searching the target AR special effect template meeting the requirement from the plurality of candidate enhanced AR special effect templates, the target AR special effect template meeting the requirement of the user can be quickly and accurately searched, so that the time for the user to select the target AR special effect template is saved, and the production efficiency of the special effect video is improved.
The second method comprises the following steps:
in the second mode, the determining the target AR special effect template from the plurality of candidate enhanced AR special effect templates may include:
(1) acquiring a first background list; the first background list comprises at least one piece of background data, and one piece of background data corresponds to at least one candidate AR enhancement special effect template;
(2) responding to the selection operation of target background data in the first background list, and displaying at least one candidate enhanced AR special effect template matched with the target background data;
(3) and determining the target AR special effect template in at least one candidate enhanced AR special effect template matched with the target background data.
In the embodiment of the present disclosure, a context list, that is, the first context list, is set in the client application platform in advance. At least one context data of the AR special effects template, for example, background music and/or background text, is included in the first context list. At least one candidate AR enhancement special effect template corresponding to each background data is preset for each background data, and template information of at least one candidate AR enhancement special effect template corresponding to each background data is recorded in a first background list.
At this point, the first background list may be exposed in the primary interface of the client application platform. At this time, the video production user can select target background data in the first background list. The client application platform responds to the selection operation, and at least one candidate enhanced AR special effect template matched with the target background data is displayed on a main interface of the client application platform. And then, responding to the selection operation of the video making user on a target AR special effect template in at least one candidate enhanced AR special effect template, and displaying the preview special effect corresponding to the target AR special effect template.
Here, the background music may be music uploaded to the client application platform (e.g., applet) by other users, or may be music preset by the client application platform. The background text may be text prompt information matched with the special effect scene information of the target AR special effect template, for example, may be a blessing word of mother festival.
For example, if the background text is blessing words, candidate enhanced AR special effect templates corresponding to each blessing word may be determined according to the first background list. Further, a target AR special effect template is selected from the candidate enhanced AR special effect templates corresponding to the blessing words.
In the above embodiment, the target AR special effect template is automatically matched in the first background list through the background music and/or the background text (e.g., blessing words), so that a plurality of search modes of the AR special effect template can be provided for the user, thereby enriching and perfecting the search modes of the AR special effect template, further satisfying different search habits of the AR special effect templates of different users, and improving the use experience of the user using the client application platform.
In the embodiment of the present disclosure, the preview special effect corresponding to the target AR special effect template may be displayed in a manner as shown in fig. 3. As can be seen from fig. 3, the display interface includes: special effect video, a "start recording" button, a blessing phrase (i.e., background text), a background music switch button, special effect stickers (including background stickers and face stickers), and a button to flip the camera lens.
In an optional embodiment, the background data corresponding to the target AR special effect template may be obtained by the following methods, which specifically include:
the first method is as follows:
and responding to a background selection instruction, and determining the background data in a second background list corresponding to the target AR special effect template.
Here, for each candidate enhanced AR special effect template, a corresponding background list, that is, the second background list, may be set in advance; in this second context list, the context data matching each candidate enhanced AR special effect template is included.
Therefore, after the target AR special effect template is determined, corresponding background data may be selected for the target AR special effect template in the second background list corresponding to the target AR special effect template.
For background text, background text (e.g., blessing words) may be selected in the first background list for the target AR special effect template in the manner shown in fig. 4.
For background music, the background music may be selected in the second background list for the target AR special effect template in the manner shown in fig. 5.
In the above embodiment, the background data is selected in the second background list for the target AR special effect template through the background selection instruction, so that a link of inputting background characters (for example, blessing words) by a video production user can be reduced, and an insertion link of background music is reduced, thereby simplifying an operation process of producing a special effect video by the video production user.
The second method comprises the following steps:
searching a target AR special effect template in the second background list according to the special effect parameters of the target AR special effect template to search corresponding background data; the special effect parameters include at least one of: the method comprises the following steps of special effect duration, special effect content, special effect scene information and user attributes of a video production user of the special effect video.
In the second mode, the video making user can input the special effect parameters of the target AR special effect template, and then search in the second background list according to the special effect parameters to obtain the background data meeting the requirements.
Here, the special effect duration is used for representing the special effect duration of the target AR special effect template; the special effect content is used for representing the type of the target AR special effect template (such as blessing special effects, whitespace special effects and the like); special effect scene information (e.g., a special effect on a mother festival in a blessing-type special effect, a special effect on a graduation blessing in a blessing special effect, etc.), user attributes (e.g., attributes of gender, age, occupation, etc.) of a video production user.
In the above embodiment, according to the special effect parameter of the target AR special effect template, the background data is obtained by searching for the target AR special effect template in the second background list, so that the link of inputting an AR by the user can be reduced, and the link of inserting background music can be reduced, thereby simplifying the operation process of the video making user for making a special effect video.
The third method comprises the following steps:
and determining corresponding background data in the first background list by combining the first mode and the second mode.
For example, at least one context data meeting the requirement may be first searched in the second context list in the manner described in manner two. And then, in the manner described in the first manner, selecting corresponding background data for the target AR special effect template from the at least one searched background data.
After the corresponding background data is determined for the target AR special effect template, in the process of collecting the real-time video data, based on the target AR special effect template and the background data, the matched AR special effect is added to the video picture of each moment in the collected real-time video data in real time, and the special effect video is obtained.
If the background data is background music, the AR special effect corresponding to each music beat can be determined according to the music beat of the background music, thereby realizing a special effect transformed according to the music beat. And then, according to the mapping relation between the music beat and the video pictures at all times, determining that the video pictures at all times are added with the matched AR special effects in real time.
Assume that the background data is background text (e.g., blessing words). The video production user can dictate the content in the background text while recording the real-time video data. When the fact that the content dictated by the video making user is the keyword of the background characters is detected through the real-time video data, the AR special effect is triggered to change correspondingly. At the moment, the AR special effects matched with the video pictures at all moments in the collected real-time video data can be added in real time according to the target AR special effect template and the background characters.
In the above embodiment, the AR special effects corresponding to the video pictures at each moment in the real-time video data are dynamically adjusted through the target AR special effect template and the background data (background music and/or background characters), so that the AR special effects can be triggered to continuously change, and the special effect display mode is enriched.
In an optional embodiment, in step S105, based on the target AR special effect template and the background data, adding a matching AR special effect to a video frame in the real-time video data to obtain a special effect video, including the following steps:
step S1051, detecting a target object for a video picture in the real-time video data to obtain characteristic information of the target object;
step S1052, determining the AR special effect adapted to the video picture and the adding position of the AR special effect based on the feature information and the target AR special effect template;
and step S1053, adding the adaptive AR special effect in the corresponding video picture of the real-time video data based on the adding position to obtain the special effect video.
In the embodiment of the disclosure, in the process of acquiring real-time video data, the target object can be detected on the video picture at each moment in real time, for example, face detection is performed. The detection results in characteristic information of the target object, for example, the characteristic information may be characteristic information of a human face characteristic point.
Here, the characteristic information may include: the number of feature points and the position information of each feature point, for example, the feature information of the face feature point includes: the number of the face characteristic points and the position information of the face characteristic points.
Based on the target AR special effect template, the AR special effect matched with the video picture at each moment can be determined, and the adding position in the AR special effect video picture can be determined through the characteristic information. After the AR special effect and the adding position thereof are determined, the AR special effect can be added to the specified position of the video picture in real time, and therefore the special effect video is obtained.
In the above embodiment, the target object in the real-time video data can be tracked by detecting the target object in the video frame; the adding position of the AR special effect is determined through the feature information of the feature point of the target object and the target AR special effect template, the AR special effect can be accurately added to the specified position of the video picture under the condition that the target object is in a moving state, and therefore the use experience of a user is improved.
In an alternative embodiment, the method further comprises the steps of:
(1) generating a sharing link of the special effect video;
(2) and sharing the special effect video to at least one user side through the sharing link.
Here, a two-dimensional code picture including a sharing link of the special effect video may be generated. After the sharing link is generated, the special effect video can be shared to at least one user terminal through the sharing link.
In the existing short video platform, when a special effect video is shared and shot, the special effect video needs to be published on the short video platform, or the special effect video is saved in a local file through the short video platform, so that the special effect video is shared to other users. Therefore, the sharing process of the special-effect video is complex in operation, and the use experience of a user is reduced.
In the technical scheme, the special effect video can be shared to other users under the condition that the special effect video is not required to be downloaded in a local file by means of sharing information of the special effect video to at least one user side, so that local resources can be saved, and the use experience of the users can be improved.
Referring to fig. 6, a flowchart of another video recording method provided in this disclosure is shown, where the method is applied to an installation-free application platform, and the installation-free application platform may be an applet application platform or a Web application platform. In the existing special video shooting process, the shooting of the special video can be completed only by downloading the corresponding application program APP. Therefore, the making process of the special effect video of the existing short video platform is relatively complicated and has large limitation.
In the technical scheme, the special effect video is shot through an installation-free client application platform (such as an applet application platform or a Web end application platform), so that the special effect video can be shot under the condition that a corresponding APP is not installed, for example, the applet application platform is opened in a social platform, and then the special effect video is shot in the applet; or opening a Web end application platform in the browser, and further finishing the shooting of the special-effect video at the Web end. Therefore, according to the technical scheme, the special effect video is shot through the small program or the wed terminal, the downloading process of the corresponding application program APP can be omitted, and therefore the shooting process of the special effect video is simplified.
In the embodiment of the present disclosure, the video recording method includes steps S601 to S605, where:
s601: acquiring a sharing link of the special effect video; the special effect video is generated by adding a special effect and background data in a target AR special effect template in a real-time video, wherein the background data comprises: background music and/or background text;
s603: responding to the triggering operation of a triggering user on the sharing link, and determining the user type of the triggering user based on the user identification information of the triggering user;
s605: and determining and displaying a special effect display page matched with the user type.
In the embodiment of the disclosure, after a video production user of a special effect video sends a sharing link to at least one user side, the at least one user side can watch the recorded special effect video by clicking the sharing link. After detecting the triggering operation of the user on the sharing link, user identification information of the user, for example, a user id (open id), may be acquired.
After the user identification information is obtained, the user identification information may be compared with the user identification information in the preset identification information list, so that the user type of the user side is determined according to the comparison result. Wherein the user types include: the system comprises a video making user of the special effect video, a user side for watching the special effect video for the first time and a user side for watching the special effect video again.
Illustratively, the preset identification information list includes user identification information of a video production user and a user terminal that has watched the special effect video. Therefore, the user type of the user side can be determined by comparing the user identification information of the user side triggering the sharing link with the user identification information in the preset identification information list.
After the user type is determined, the matched special effect display page may be determined according to the user type, which is the special effect display page matched with the user side as shown in fig. 7 (a).
In an alternative embodiment, the user type is a user side that first views the special effect video. At this time, the special effect display page includes a prompt message for prompting that the current viewing frequency of the user terminal is the first time.
In another alternative embodiment, the user type is a user side that watches the special effect video again. At this time, the special effect display page includes prompt information for prompting that the current viewing frequency of the user side is multiple times, and the viewing frequency of the user side is displayed in the special effect display page. Meanwhile, special effect videos similar to the AR special effect templates recorded by other video production users can be displayed for the user side.
In yet another alternative embodiment, the above steps: determining and displaying a special effect display page matched with the user type, wherein the method comprises the following steps:
determining and displaying a special effect display page containing a target video list under the condition that the trigger user is a video production user of the special effect video; wherein the target video list includes: the video production user produces special effect videos which are already produced by the video production user, and/or the video production user performs praise operations on the special effect videos.
In this embodiment of the disclosure, after the video production user triggers the sharing link, the user may jump to the special effect display page where the target video list is located, and then view the special effect video on the special effect display page, which is the special effect display page where the target video list is located as shown in fig. 7 (b).
In an optional embodiment, after determining and presenting the special effects presentation page matching the user type, the method further includes:
responding to the interactive operation of the user end on the special effect video, and executing corresponding processing on the special effect video, wherein the interactive operation comprises at least one of the following operations: video point compliment operation, video forwarding operation, video collection operation and video comment operation.
In the embodiment of the disclosure, after receiving the sharing link, the user side (i.e., the blessing receiver) may enter the special effect display page of the applet to view the special effect video. Meanwhile, the blessing receiver may also perform corresponding interaction operations on the special-effect video, such as praise and share interactions. After the interactive operation is performed, corresponding processing may be performed on the special effect video. For example, a special effects presentation page of the favorite video list as shown in fig. 7 (c).
For example, after a video of a special effect is voted, the video of the special effect may be added to a "video list that has been voted". After a sharing operation is performed on a special effect video, the special effect video may be added to a "shared videos list". After the collection operation is performed on the special effect video, the special effect video may be added to the "collected video list".
In the embodiment, the interactive operation between the user side and the special effect video can be realized, so that the interestingness of shooting the special effect video by the user is increased, and the use experience of the user is improved; meanwhile, the special effect video interactive with the user side can be reasonably managed by performing corresponding processing on the special effect video.
Referring to fig. 8, a flowchart of another video recording method provided in the embodiment of the present disclosure is shown, where the method includes the following steps:
s1: selecting the template type of the AR special effect template to be recorded, for example, selecting 'make blessing';
s2: determining and displaying an AR special effect template list associated with the template type, wherein the AR special effect template list comprises at least one candidate enhanced AR special effect template;
s3: selecting a target AR special effect template to be recorded from the AR special effect template list, and previewing a special effect;
s4: judging the satisfaction degree of the user on the preview special effect; if yes, executing step S5, otherwise, returning to execute step S3: reselecting a target AR special effect template to be recorded, and previewing a special effect;
s5: acquiring background characters of a target AR special effect template;
s6: acquiring background music of a target AR special effect template;
here, the execution order of S5 and S6 is not fixed, and S5 may be executed first and S6 may be executed second, and S6 and S5 may be executed first.
In the embodiment of the present disclosure, the obtaining of the background text (or background music) may be performed in the following manner, which specifically includes:
the first method is as follows: responding to a background selection instruction, and determining background characters (or background music) in a second background list corresponding to the target AR special effect template;
and/or
The second method comprises the following steps: searching a background text (or background music) corresponding to the target AR special effect template in a second background list according to the special effect parameters of the target AR special effect template, wherein the special effect parameters comprise at least one of the following parameters: the method comprises the following steps of special effect duration, special effect content, special effect scene information and user attributes of a video production user of the special effect video.
S7: receiving a video recording instruction of a target AR special effect template, and collecting real-time video data;
s8: adding a matched AR special effect to a video picture in the real-time video data according to the background characters and the background music set in the S5 and the S6 and according to the target AR special effect template to obtain a special effect video;
s9: responding to an uploading instruction of the special effect video, and uploading the special effect video;
s10: generating a sharing link of the special effect video, and sharing the sharing link to at least one user side;
first, after the user initiates a video recording instruction, the client application platform automatically starts to record a blessing video (i.e. the special effect video), and the maximum recording time may be set according to actual needs, for example, 15 seconds, 30 seconds, 1 minute, 5 minutes, and the like, and the recording page is as shown in fig. 9 (a). When the recording is suspended or the longest time is reached in the recording process, the current recording is automatically completed and the preview page of the special effect video is entered, and the preview page is shown in fig. 9 (b).
Secondly, the recorded special effect video is played in a circulating mode on the preview page, a user can choose to re-record the special effect video and return to the preview page, and can also choose to shoot the special effect video, and the special effect video is uploaded to a server to enter a sharing page;
and finally, entering a sharing page, generating a sharing picture with the two-dimensional code, enabling the user to directly share the sharing picture with friends, saving the sharing picture and sending the sharing picture to a social sharing platform, wherein the sharing page is shown in fig. 9 (c).
S11: responding to the triggering operation of the video making user on the sharing link, and pushing a special effect display page for displaying a target video list to the video making user;
s12: responding to the triggering operation of the social contact user of the video making user on the sharing link, and pushing a matched special effect display page to the social contact user;
s13: responding to interaction operation of the social user on the special effect video, and performing corresponding processing on the special effect video, wherein the interaction operation comprises at least one of the following operations: video point compliment operation, video forwarding operation, video collection operation and video comment operation.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, a video recording apparatus corresponding to the video recording method is also provided in the embodiments of the present disclosure, and since the principle of the apparatus in the embodiments of the present disclosure for solving the problem is similar to the video recording method described above in the embodiments of the present disclosure, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 10, a schematic diagram of a video recording apparatus provided in an embodiment of the present disclosure is shown, where the apparatus includes: the device comprises a first acquisition unit 11, a receiving and collecting unit 12 and a special effect adding unit 13; wherein the content of the first and second substances,
a first obtaining unit 11, configured to obtain a target AR special effect template and background data corresponding to the target AR special effect template, where the background data includes: background music and/or background text;
the receiving and collecting unit 12 is used for receiving a video recording instruction of the target AR special effect template and collecting real-time video data;
and the special effect adding unit 12 is configured to add a matched AR special effect to a video picture in the real-time video data based on the target AR special effect template and the background data in the process of acquiring the real-time video data, so as to obtain a special effect video.
In the embodiment of the present disclosure, after the target AR special effect template and the background data (background music and/or background text) are acquired; the method has the advantages that matched AR special effects are added to the video pictures in the real-time video data through the target AR special effect template and the background data, so that the AR special effects corresponding to the video pictures in the real-time video data can be dynamically adjusted, scenes in which the AR special effects displayed by the video pictures in the real-time video data are triggered to change are increased, the AR special effects are triggered to change continuously along with the target AR special effect template and the background data, and the special effect display modes are enriched; and meanwhile, a more obvious interactive experience can be provided for the user.
In a possible implementation, the first obtaining unit 11 is further configured to: responding to a template selection instruction, and acquiring a plurality of candidate enhanced AR special effect templates belonging to at least one special effect type; determining the target AR special effect template among the plurality of candidate enhanced AR special effect templates.
In a possible implementation, the first obtaining unit 11 is further configured to: acquiring a first background list; the first background list comprises at least one piece of background data, and one piece of background data corresponds to at least one candidate AR enhancement special effect template; in response to a selection operation of target background data in the first background list, displaying at least one candidate enhanced AR special effect template matched with the target background data; determining the target AR special effect template among at least one candidate enhanced AR special effect template that matches the target background data.
In a possible implementation, the first obtaining unit 11 is further configured to: obtaining search parameters of a special effect template, wherein the search parameters comprise at least one of the following: the type of the special effect template, the special effect scene information, the user attribute and the keyword of the special effect template name; and determining an AR special effect template matched with the search parameter from a plurality of candidate enhanced AR special effect templates, and taking the matched AR special effect template as the target AR special effect template.
In a possible implementation, the first obtaining unit 11 is further configured to: responding to a background selection instruction, and determining the background data in a second background list corresponding to the target AR special effect template; and/or searching the background data corresponding to the target AR special effect template in the second background list according to the special effect parameters of the target AR special effect template.
In a possible embodiment, the special effect parameters include at least one of: the method comprises the following steps of special effect duration, special effect content, special effect scene information and user attributes of a video production user of the special effect video.
In a possible embodiment, the apparatus is further configured to: after obtaining a target AR special effect template, showing special effect attribute information of the target AR special effect template, wherein the special effect attribute information includes at least one of the following: the video display method comprises the following steps of special effect name information, special effect heat information, special effect description information, special effect video effect display information and special effect scene information.
In a possible embodiment, the apparatus is further configured to: generating a sharing link of the special effect video; and sharing the special effect video to at least one user side through the sharing link.
In one possible embodiment, the special effect adding unit 12 is configured to: detecting a target object on a video picture in the real-time video data to obtain characteristic information of the target object; determining an AR special effect matched with the video picture and an adding position of the AR special effect based on the feature information and the target AR special effect template; and adding the matched AR special effect in the video picture based on the adding position to obtain the special effect video.
In a possible implementation manner, the device is arranged on a client application platform, and the client application platform is a Web end application platform or an applet end application platform.
Referring to fig. 11, a schematic diagram of a video recording apparatus provided in an embodiment of the present disclosure is shown, where the apparatus includes: a second acquiring unit 21, a first determining unit 22, a second determining unit 23; wherein:
a second obtaining unit 21, configured to obtain a sharing link of the special effect video; the special effect video is generated by adding a special effect and background data in a target AR special effect template in a real-time video, wherein the background data comprises: background music and/or background text;
a first determining unit 22, configured to determine, in response to a trigger operation of a trigger user on the sharing link, a user type of the trigger user based on user identification information of the trigger user;
and the second determining unit 23 is configured to determine and display a special effect display page matching the user type.
In a possible implementation, the second determining unit 23 is further configured to: determining and displaying a special effect display page containing a target video list under the condition that the trigger user is a video production user of the special effect video; the target video list includes: the video production user produces special effect videos which are already produced by the video production user, and/or the video production user performs praise operations on the special effect videos.
In a possible embodiment, the apparatus is further configured to: after determining and presenting a special effect presentation page matched with the user type, responding to an interactive operation of the special effect video presented in the special effect presentation page, and performing corresponding processing on the special effect video, wherein the interactive operation comprises at least one of the following operations: video point compliment operation, video forwarding operation, video collection operation and video comment operation.
In a possible implementation manner, the device is arranged on a client application platform, and the client application platform is a Web end application platform or an applet end application platform.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Corresponding to the video recording method in fig. 1, an embodiment of the present disclosure further provides an electronic device 1200, as shown in fig. 12, which is a schematic structural diagram of the electronic device 1200 provided in the embodiment of the present disclosure, and includes:
a processor 121, a memory 122, and a bus 123; the memory 122 is used for storing execution instructions and includes a memory 1221 and an external memory 1222; the memory 1221 is also referred to as an internal memory, and is used for temporarily storing operation data in the processor 121 and data exchanged with the external memory 1222 such as a hard disk, the processor 121 exchanges data with the external memory 1222 through the memory 1221, and when the electronic device 1200 is operated, the processor 121 and the memory 122 communicate with each other through the bus 123, so that the processor 121 executes the following instructions:
acquiring a target AR special effect template and background data corresponding to the target AR special effect template, wherein the background data comprises: background music and/or background text;
receiving a video recording instruction of the target AR special effect template, and collecting real-time video data;
and in the process of collecting the real-time video data, adding a matched AR special effect to a video picture in the real-time video data based on the target AR special effect template and the background data to obtain a special effect video.
Corresponding to the video recording method in fig. 1, an embodiment of the present disclosure further provides an electronic device 1300, and as shown in fig. 13, a schematic structural diagram of the electronic device 1300 provided in the embodiment of the present disclosure includes:
a processor 131, a memory 132, and a bus 133; memory 132 is used to store instructions for execution and includes memory 1321 and external memory 1322; the memory 1321 is also referred to as an internal memory, and is configured to temporarily store operation data in the processor 131 and data exchanged with the external memory 1322 such as a hard disk, the processor 131 exchanges data with the external memory 1322 through the memory 1321, and when the electronic device 1300 operates, the processor 131 and the memory 132 communicate with each other through the bus 133, so that the processor 131 executes the following instructions:
acquiring a sharing link of the special effect video; the special effect video is generated by adding a special effect and background data in a target AR special effect template in a real-time video, wherein the background data comprises: background music and/or background text;
responding to the triggering operation of a triggering user on the sharing link, and determining the user type of the triggering user based on the user identification information of the triggering user;
and determining and displaying a special effect display page matched with the user type.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the video recording method in the foregoing method embodiments are executed. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The embodiments of the present disclosure also provide a computer program product, where the computer program product carries a program code, and instructions included in the program code may be used to execute the steps of the video recording method in the foregoing method embodiments, which may be referred to specifically for the foregoing method embodiments, and are not described herein again.
The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and 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 of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. 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.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (18)

1. A method for video recording, the method comprising:
acquiring a target AR special effect template and background data corresponding to the target AR special effect template, wherein the background data comprises: background music and/or background text;
receiving a video recording instruction of the target AR special effect template, and collecting real-time video data;
and in the process of collecting the real-time video data, adding a matched AR special effect to a video picture in the real-time video data based on the target AR special effect template and the background data to obtain a special effect video.
2. The method of claim 1, wherein the obtaining the target AR special effects template comprises:
responding to a template selection instruction, and acquiring a plurality of candidate enhanced AR special effect templates belonging to at least one special effect type;
determining the target AR special effect template among the plurality of candidate enhanced AR special effect templates.
3. The method of claim 2, wherein determining the target AR special effect template among a plurality of candidate enhanced AR special effect templates comprises:
acquiring a first background list; the first background list comprises at least one piece of background data, and one piece of background data corresponds to at least one candidate AR enhancement special effect template;
in response to a selection operation of target background data in the first background list, displaying at least one candidate enhanced AR special effect template matched with the target background data;
determining the target AR special effect template among at least one candidate enhanced AR special effect template that matches the target background data.
4. The method of claim 2, wherein determining the target AR special effect template among a plurality of candidate enhanced AR special effect templates comprises:
obtaining search parameters of a special effect template, wherein the search parameters comprise at least one of the following: the type of the special effect template, the special effect scene information, the user attribute and the keyword of the special effect template name;
and determining an AR special effect template matched with the search parameter from a plurality of candidate enhanced AR special effect templates, and taking the matched AR special effect template as the target AR special effect template.
5. The method according to any one of claims 1 to 4, wherein the obtaining of the background data corresponding to the target AR special effect template comprises:
responding to a background selection instruction, and determining the background data in a second background list corresponding to the target AR special effect template;
and/or
And searching the background data corresponding to the target AR special effect template in the second background list according to the special effect parameters of the target AR special effect template.
6. The method of claim 5, wherein the special effects parameters comprise at least one of: the method comprises the following steps of special effect duration, special effect content, special effect scene information and user attributes of a video production user of the special effect video.
7. The method of any of claims 1 to 6, wherein after obtaining the target AR special effects template, the method further comprises:
displaying special effect attribute information of the target AR special effect template, wherein the special effect attribute information comprises at least one of the following: the video display method comprises the following steps of special effect name information, special effect heat information, special effect description information, special effect video effect display information and special effect scene information.
8. The method according to any one of claims 1 to 7, further comprising:
generating a sharing link of the special effect video;
and sharing the special effect video to at least one user side through the sharing link.
9. The method according to any one of claims 1 to 8, wherein the adding a matching AR special effect to a video frame in the real-time video data based on the target AR special effect template and the background data to obtain a special effect video comprises:
detecting a target object on a video picture in the real-time video data to obtain characteristic information of the target object;
determining an AR special effect matched with the video picture and an adding position of the AR special effect based on the feature information and the target AR special effect template;
and adding the matched AR special effect in the video picture based on the adding position to obtain the special effect video.
10. The method according to any one of claims 1 to 9, wherein the method is applied to a client application platform, and the client application platform is a Web-side application platform or an applet-side application platform.
11. A method for video recording, the method comprising:
acquiring a sharing link of the special effect video; the special effect video is generated by adding a special effect and background data in a target AR special effect template in a real-time video, wherein the background data comprises: background music and/or background text;
responding to the triggering operation of a triggering user on the sharing link, and determining the user type of the triggering user based on the user identification information of the triggering user;
and determining and displaying a special effect display page matched with the user type.
12. The method of claim 11, wherein determining and presenting a special effects presentation page matching the user type comprises:
determining and displaying a special effect display page containing a target video list under the condition that the trigger user is a video production user of the special effect video;
the target video list includes: the video production user produces special effect videos which are already produced by the video production user, and/or the video production user performs praise operations on the special effect videos.
13. The method according to claim 11 or 12, wherein after determining and presenting a special effects presentation page matching the user type, the method further comprises:
responding to the interactive operation of the special effect video displayed in the special effect display page, and executing corresponding processing on the special effect video, wherein the interactive operation comprises at least one of the following operations: video point compliment operation, video forwarding operation, video collection operation and video comment operation.
14. The method according to any one of claims 11 to 13, wherein the method is applied to a client application platform, and the client application platform is a Web-side application platform or an applet-side application platform.
15. A video recording apparatus, comprising:
a first obtaining unit, configured to obtain a target AR special effect template and background data corresponding to the target AR special effect template, where the background data includes: background music and/or background text;
the receiving and collecting unit is used for receiving a video recording instruction of the target AR special effect template and collecting real-time video data;
and the special effect adding unit is used for adding a matched AR special effect to a video picture in the real-time video data based on the target AR special effect template and the background data in the process of acquiring the real-time video data to obtain a special effect video.
16. A video recording apparatus, comprising:
the second obtaining unit is used for obtaining a sharing link of the special effect video; the special effect video is generated by adding a special effect and background data in a target AR special effect template in a real-time video, wherein the background data comprises: background music and/or background text;
the first determining unit is used for responding to the triggering operation of a triggering user on the sharing link and determining the user type of the triggering user based on the user identification information of the triggering user;
and the second determining unit is used for determining and displaying the special effect display page matched with the user type.
17. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is operating, the machine readable instructions when executed by the processor performing the steps of the video recording method of any of claims 1 to 10 or performing the steps of the video recording method of any of claims 11 to 14.
18. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, is adapted to carry out the steps of the video recording method according to one of the claims 1 to 10 or the steps of the video recording method according to one of the claims 11 to 14.
CN202110530219.2A 2021-05-14 2021-05-14 Video recording method and device, electronic equipment and storage medium Active CN113115099B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202110530219.2A CN113115099B (en) 2021-05-14 2021-05-14 Video recording method and device, electronic equipment and storage medium
PCT/CN2021/133809 WO2022237129A1 (en) 2021-05-14 2021-11-29 Video recording method and apparatus, device, medium and program
TW111106652A TW202245466A (en) 2021-05-14 2022-02-23 Video recording method, electronic equipment and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110530219.2A CN113115099B (en) 2021-05-14 2021-05-14 Video recording method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113115099A true CN113115099A (en) 2021-07-13
CN113115099B CN113115099B (en) 2022-07-05

Family

ID=76722216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110530219.2A Active CN113115099B (en) 2021-05-14 2021-05-14 Video recording method and device, electronic equipment and storage medium

Country Status (3)

Country Link
CN (1) CN113115099B (en)
TW (1) TW202245466A (en)
WO (1) WO2022237129A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051168A (en) * 2021-10-29 2022-02-15 北京市商汤科技开发有限公司 Display method, device, equipment, storage medium and program product
CN114051169A (en) * 2021-10-29 2022-02-15 北京市商汤科技开发有限公司 Display method, device, equipment and storage medium
CN114610189A (en) * 2022-03-07 2022-06-10 北京达佳互联信息技术有限公司 Video material acquisition method and device
CN114938427A (en) * 2022-05-12 2022-08-23 北京字跳网络技术有限公司 Method, apparatus, device, storage medium and program product for photographing media content
WO2022237129A1 (en) * 2021-05-14 2022-11-17 北京市商汤科技开发有限公司 Video recording method and apparatus, device, medium and program
CN115484397A (en) * 2021-06-16 2022-12-16 荣耀终端有限公司 Multimedia resource sharing method and electronic equipment
CN115484396A (en) * 2021-06-16 2022-12-16 荣耀终端有限公司 Video processing method and electronic equipment
CN115484398A (en) * 2021-06-16 2022-12-16 荣耀终端有限公司 Video shooting method and electronic equipment
WO2023005060A1 (en) * 2021-07-27 2023-02-02 上海传英信息技术有限公司 Image capture method, mobile terminal and storage medium
WO2023103961A1 (en) * 2021-12-10 2023-06-15 北京字跳网络技术有限公司 Content display method and apparatus, electronic device, storage medium, and program product
WO2023217122A1 (en) * 2022-05-10 2023-11-16 北京字跳网络技术有限公司 Video clipping template search method and apparatus, and electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220305A (en) * 2012-01-18 2013-07-24 腾讯科技(深圳)有限公司 Processing system and processing method of network media information sharing
CN110177219A (en) * 2019-07-01 2019-08-27 百度在线网络技术(北京)有限公司 The template recommended method and device of video
CN111277761A (en) * 2020-03-05 2020-06-12 北京达佳互联信息技术有限公司 Video shooting method, device and system, electronic equipment and storage medium
CN111835986A (en) * 2020-07-09 2020-10-27 腾讯科技(深圳)有限公司 Video editing processing method and device and electronic equipment
US20200351450A1 (en) * 2019-04-30 2020-11-05 Kakao Corp. Method and apparatus for providing special effects to video
CN111935504A (en) * 2020-07-29 2020-11-13 广州华多网络科技有限公司 Video production method, device, equipment and storage medium
CN112348969A (en) * 2020-11-06 2021-02-09 北京市商汤科技开发有限公司 Display method and device in augmented reality scene, electronic equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104703043A (en) * 2015-03-26 2015-06-10 努比亚技术有限公司 Video special effect adding method and device
CN107948543B (en) * 2017-11-16 2021-02-02 北京奇虎科技有限公司 Video special effect processing method and device
CN108289180B (en) * 2018-01-30 2020-08-21 广州市百果园信息技术有限公司 Method, medium, and terminal device for processing video according to body movement
CN110276057A (en) * 2019-05-31 2019-09-24 上海萌鱼网络科技有限公司 A kind of user's design drawing generating method and device for short video production
CN110366041B (en) * 2019-07-17 2020-09-01 百度在线网络技术(北京)有限公司 Media data sharing method, device and equipment
CN112533058A (en) * 2019-09-17 2021-03-19 西安中兴新软件有限责任公司 Video processing method, device, equipment and computer readable storage medium
CN110865754B (en) * 2019-11-11 2020-09-22 北京达佳互联信息技术有限公司 Information display method and device and terminal
CN111643900B (en) * 2020-06-08 2023-11-28 浙江商汤科技开发有限公司 Display screen control method and device, electronic equipment and storage medium
CN113115099B (en) * 2021-05-14 2022-07-05 北京市商汤科技开发有限公司 Video recording method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220305A (en) * 2012-01-18 2013-07-24 腾讯科技(深圳)有限公司 Processing system and processing method of network media information sharing
US20200351450A1 (en) * 2019-04-30 2020-11-05 Kakao Corp. Method and apparatus for providing special effects to video
CN110177219A (en) * 2019-07-01 2019-08-27 百度在线网络技术(北京)有限公司 The template recommended method and device of video
CN111277761A (en) * 2020-03-05 2020-06-12 北京达佳互联信息技术有限公司 Video shooting method, device and system, electronic equipment and storage medium
CN111835986A (en) * 2020-07-09 2020-10-27 腾讯科技(深圳)有限公司 Video editing processing method and device and electronic equipment
CN111935504A (en) * 2020-07-29 2020-11-13 广州华多网络科技有限公司 Video production method, device, equipment and storage medium
CN112348969A (en) * 2020-11-06 2021-02-09 北京市商汤科技开发有限公司 Display method and device in augmented reality scene, electronic equipment and storage medium

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022237129A1 (en) * 2021-05-14 2022-11-17 北京市商汤科技开发有限公司 Video recording method and apparatus, device, medium and program
CN115484397B (en) * 2021-06-16 2023-11-10 荣耀终端有限公司 Multimedia resource sharing method and electronic equipment
CN115484396B (en) * 2021-06-16 2023-12-22 荣耀终端有限公司 Video processing method and electronic equipment
CN115484398B (en) * 2021-06-16 2023-12-08 荣耀终端有限公司 Video shooting method and electronic equipment
CN115484397A (en) * 2021-06-16 2022-12-16 荣耀终端有限公司 Multimedia resource sharing method and electronic equipment
CN115484396A (en) * 2021-06-16 2022-12-16 荣耀终端有限公司 Video processing method and electronic equipment
CN115484398A (en) * 2021-06-16 2022-12-16 荣耀终端有限公司 Video shooting method and electronic equipment
WO2023005060A1 (en) * 2021-07-27 2023-02-02 上海传英信息技术有限公司 Image capture method, mobile terminal and storage medium
CN114051169A (en) * 2021-10-29 2022-02-15 北京市商汤科技开发有限公司 Display method, device, equipment and storage medium
CN114051168A (en) * 2021-10-29 2022-02-15 北京市商汤科技开发有限公司 Display method, device, equipment, storage medium and program product
WO2023103961A1 (en) * 2021-12-10 2023-06-15 北京字跳网络技术有限公司 Content display method and apparatus, electronic device, storage medium, and program product
CN114610189A (en) * 2022-03-07 2022-06-10 北京达佳互联信息技术有限公司 Video material acquisition method and device
WO2023217122A1 (en) * 2022-05-10 2023-11-16 北京字跳网络技术有限公司 Video clipping template search method and apparatus, and electronic device and storage medium
CN114938427A (en) * 2022-05-12 2022-08-23 北京字跳网络技术有限公司 Method, apparatus, device, storage medium and program product for photographing media content
CN114938427B (en) * 2022-05-12 2024-03-12 北京字跳网络技术有限公司 Shooting method, device, equipment, storage medium and program product of media content

Also Published As

Publication number Publication date
TW202245466A (en) 2022-11-16
CN113115099B (en) 2022-07-05
WO2022237129A1 (en) 2022-11-17

Similar Documents

Publication Publication Date Title
CN113115099B (en) Video recording method and device, electronic equipment and storage medium
CN105488112B (en) Information-pushing method and device
RU2740785C2 (en) Image processing method and equipment, electronic device and graphical user interface
CN103988202A (en) Image attractiveness based indexing and searching
CN105874780A (en) Method and apparatus for generating a text color for a group of images
US20170109339A1 (en) Application program activation method, user terminal, and server
CN113536172B (en) Encyclopedia information display method and device and computer storage medium
CN113220774A (en) Encyclopedic information display method and device and computer storage medium
CN110222256B (en) Information recommendation method and device and information recommendation device
CN112087667A (en) Information processing method and device and computer storage medium
CN107515869B (en) Searching method and device and searching device
CN112464031A (en) Interaction method, interaction device, electronic equipment and storage medium
CN113157972B (en) Recommendation method and device for video cover document, electronic equipment and storage medium
CN108717403B (en) Processing method and device for processing
CN110019897B (en) Method and device for displaying picture
CN112115341B (en) Content display method, device, terminal, server, system and storage medium
CN110019965B (en) Method and device for recommending expression image, electronic equipment and storage medium
CN114398514B (en) Video display method and device and electronic equipment
CN115357753A (en) Information display method and device, computer equipment and storage medium
CN112000266B (en) Page display method and device, electronic equipment and storage medium
CN113835594A (en) Interaction method and device, electronic equipment and readable storage medium
CN113255349A (en) Information processing method and device and computer storage medium
CN113792178A (en) Song generation method and device, electronic equipment and storage medium
CN114245174B (en) Video preview method and related equipment
CN110909204A (en) Video publishing 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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40051375

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant