CN108769561B - Video recording method and device - Google Patents
Video recording method and device Download PDFInfo
- Publication number
- CN108769561B CN108769561B CN201810650485.7A CN201810650485A CN108769561B CN 108769561 B CN108769561 B CN 108769561B CN 201810650485 A CN201810650485 A CN 201810650485A CN 108769561 B CN108769561 B CN 108769561B
- Authority
- CN
- China
- Prior art keywords
- video
- performance
- target
- sub
- window
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/265—Mixing
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention discloses a video recording method and device, and belongs to the field of video recording. The method comprises the following steps: when a co-operation instruction for a target video is detected, determining a target co-operation mode according to the video combination path number of the target video, wherein the co-operation mode comprises a newly added co-operation and a replacement co-operation for a specified video in the target video; determining at least one path of video participating in the co-operation in the target video according to the target co-operation mode; when the triggering operation of the recording instruction is detected on the video shooting page, recording a local shooting picture to obtain a local recorded video; and generating a co-performance video according to the local recorded video and the at least one path of video. The invention enables the same or different users to obtain the co-performance video by co-performance recording the locally recorded video and other videos by co-performance of the multi-path videos, and the video recording mode is more flexible, thereby improving the richness and flexibility of content recording and content production and simultaneously reducing the cost of content production.
Description
Technical Field
The present invention relates to the field of video recording, and in particular, to a video recording method and apparatus.
Background
With the popularization of mobile terminals and the development of the internet, short videos become popular content production methods. Short video refers to video content played on various new media platforms that is suitable for viewing in mobile and short-time leisure states, with video times varying from seconds to minutes. Currently, by downloading a client of a new media platform on a mobile terminal, a user can record a short video or watch a short video recorded by other users by using the client.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
in the prior art, one short video can only be recorded by one user client, and different users cannot perform combined recording, namely, performance combination, so that the content of video recording is single and the recording mode is not flexible enough.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a video recording method and apparatus. The technical scheme is as follows:
in a first aspect, a video recording method is provided, and the method includes:
when a co-operation instruction for a target video is detected, determining a target co-operation mode according to the video combination path number of the target video, wherein the co-operation mode comprises a newly added co-operation and a replacement co-operation for a specified video in the target video;
determining at least one path of video participating in the co-operation in the target video according to the target co-operation mode;
when the triggering operation of the recording instruction is detected on the video shooting page, recording a local shooting picture to obtain a local recorded video;
and generating a co-performance video according to the local recorded video and the at least one path of video.
In a possible implementation manner, the determining a target rehearsal mode according to the number of the video combining paths includes:
when the number of the video combined paths is 1, determining that the target co-operation mode is newly increased co-operation; or the like, or, alternatively,
when the video combination path number is multiple paths, displaying a co-performance selection page, wherein the co-performance selection page is provided with co-performance mode options, and the co-performance mode options comprise newly added options and replacement options for the specified video; when the triggering operation of the newly added option is detected, determining that the target co-performance mode is newly added co-performance; when the trigger operation of the replacement option is detected, determining that the target co-performance mode is the replacement co-performance of the specified video.
In a possible implementation manner, the determining, according to the target participation manner, at least one path of video participating in the participation in the target video includes:
when the target co-performance mode is a newly increased co-performance mode, determining that the at least one path of video is all videos in the target video;
and when the target co-performance mode is the replacement co-performance of the specified video, determining that the at least one path of video is the video except for the specified video in the target video.
In one possible implementation, the method further includes:
and previewing the at least one path of video in a preview window of the video shooting page according to the target rehearsal mode.
In a possible implementation manner, according to the target rehearsal manner, the previewing the at least one video in a preview window of the video shooting page includes:
determining the number of sub-windows of the preview window according to the target rehearsal mode and the video combination path number;
determining the layout of the sub-windows of the preview window according to the number of the sub-windows, wherein the layout of the sub-windows is used for indicating the arrangement positions of all the sub-windows in the preview window;
and previewing the at least one path of video in the child window of the preview window according to the child window layout.
In a possible implementation manner, the determining, according to the target rehearsal mode and the video combination path number, the number of sub-windows of the preview window includes:
when the target rehearsal mode is newly increased rehearsal, determining the number of the sub-windows of the preview window as the number of the video combination paths;
and when the target co-operation mode is replacement co-operation, determining that the number of the sub-windows of the preview window is the sum of the number of the video combination paths and 1.
In a possible implementation manner, the previewing the at least one video in the sub-window of the preview window according to the layout of the sub-window includes:
when the target rehearsal mode is newly increased rehearsal, displaying all videos in the target videos in the sub-windows of the preview window according to the arrangement positions of the sub-windows indicated by the sub-window layout;
and when the target co-operation mode is the replacement co-operation of the specified video, displaying the videos except the specified video in the target video in the sub-window of the preview window according to the arrangement position of the sub-window indicated by the layout of the sub-window.
In one possible implementation, the method further includes:
and previewing the local shooting picture in the preview window.
In a possible implementation manner, the determining, according to the rehearsal mode and the video combination path number, the number of sub-windows of the preview window includes:
when the target rehearsal mode is newly increased rehearsal, determining the number of the sub-windows of the preview window as the number of the video combination paths plus 1;
and when the target co-operation mode is replacement co-operation, determining the number of the sub-windows of the preview window as the number of the video combination paths.
In a possible implementation manner, the previewing the at least one video in the sub-window of the preview window according to the layout of the sub-window includes:
when the target rehearsal mode is newly increased rehearsal, displaying the local shooting picture in a first sub-window of the preview window according to the arrangement position of each sub-window indicated by the sub-window layout; displaying all videos contained in the target video in a second sub-window of the preview window, wherein the second sub-window is a sub-window except the first sub-window in the preview window; or the like, or, alternatively,
when the target co-operation mode is the replacement co-operation of the specified video, displaying the local shooting picture in a third sub-window of the preview window according to the sub-window arrangement position indicated by the sub-window layout; and displaying videos, except the designated video, in the target video in a fourth sub-window of the preview window, wherein the fourth sub-window is a sub-window, except the third sub-window, in the preview window.
In a possible implementation manner, the target video includes a co-performance initiating video, the co-performance initiating video does not belong to the category of the specified video, and the co-performance initiating video is a path of video with the earliest recording time in the target video.
In a possible implementation manner, the recording the local shot picture includes:
acquiring the total duration of the target video;
and recording a local shot picture according to the total time length, wherein the recording time length of the locally recorded video is equal to the total time length.
In one possible implementation, the method further includes:
and synchronously playing the at least one path of video in the preview window in the process of recording the local shot picture.
In one possible implementation, the method further includes:
acquiring a locally recorded audio source, wherein the audio source comprises environmental sound or an audio file;
and recording local audio according to the audio source in the process of recording the local shot picture.
In one possible implementation, the recording local audio according to the audio source includes:
when the audio source is the environmental sound, recording the environmental sound through a microphone in the recording process; taking the recorded environment sound as the local audio;
and when the audio source is an audio file, taking the audio file as the local audio.
In one possible implementation, the method further includes:
detecting whether an audio playing mode is a loudspeaker playing mode in the process of recording the local audio;
and when the audio playing mode is speaker playing, adjusting the playing volume of the preview window to be lower than a preset threshold value.
In a possible implementation manner, after obtaining the locally recorded video, the method further includes:
when a special effect editing instruction for the locally recorded video is detected, decoding the locally recorded video;
previewing the decoded video on a video editing page, wherein the video editing page comprises a plurality of special effect options for video editing;
adding corresponding special effects to the decoded video based on the operation on the plurality of special effect options;
and when the editing completion instruction is detected, generating a local recording video with a special effect.
In a possible implementation manner, after obtaining the locally recorded video, the method further includes:
acquiring an audio source of the locally recorded audio;
when the audio source is an audio file, acquiring a lyric file corresponding to the audio file;
and according to the audio file and the lyric file, performing lyric rendering on the locally recorded video.
In a possible implementation manner, the generating a rehearsal video according to the locally recorded video and the at least one video includes:
when a co-performance video release operation is detected, splicing the local recorded video and the at least one path of video according to frames;
and coding the spliced video stream according to a preset coding mode to generate the rehearsal video.
In a possible implementation manner, the splicing the locally recorded video and the at least one video by frames includes:
acquiring the picture layout of the co-performance video, wherein the picture layout of the co-performance video is used for indicating the picture arrangement position of a plurality of paths of videos in the co-performance video during playing;
and splicing each frame of picture at the time point corresponding to the local recorded video and the at least one path of video according to the picture arrangement position indicated by the picture layout of the co-performance video.
In one possible implementation, the method further includes:
in the process of generating the co-performance video, acquiring a local audio corresponding to the locally recorded video and at least one audio corresponding to the at least one video;
and carrying out sound mixing processing on the local audio and the at least one path of audio to obtain the audio of the rehearsal video.
In a possible implementation manner, after generating a performance video according to the locally recorded video and the at least one video, the method further includes:
when the playing operation of the co-occurrence video is detected, the playing addresses of a plurality of paths of videos contained in the co-occurrence video are obtained;
and playing the co-performance video based on the picture layout of the co-performance video and the playing addresses of the multi-channel videos.
In a possible implementation manner, after generating a performance video according to the locally recorded video and the at least one video, the method further includes:
uploading the chorus video to a server, wherein the server is used for adding 1 to the heat value of the chorus video when effective playing of the chorus video is detected;
when a request operation for a co-performance video set to which the co-performance video belongs is detected, acquiring the co-performance video set from the server, wherein the co-performance video set comprises a plurality of co-performance videos with the same co-performance initiation identifier;
and displaying the plurality of the co-performance videos in the co-performance video page according to the sequence of the heat value from high to low.
In a second aspect, there is provided a video recording apparatus, the apparatus comprising:
the device comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining a target co-performance mode according to the video combination path number of a target video when a co-performance instruction of the target video is detected, and the co-performance mode comprises a newly added co-performance and a replacement co-performance of a specified video in the target video;
a second determining module, configured to determine, according to the target co-performance manner, at least one path of video participating in co-performance in the target video;
the first recording module is used for recording a local shooting picture to obtain a local recorded video when the triggering operation of the recording instruction is detected on the video shooting page;
and the synthesis module is used for generating a co-performance video according to the local recorded video and the at least one path of video.
In one possible implementation manner, the first determining module is configured to:
when the number of the video combined paths is 1, determining that the target co-operation mode is newly increased co-operation; or the like, or, alternatively,
when the video combination path number is multiple paths, displaying a co-performance selection page, wherein the co-performance selection page is provided with co-performance mode options, and the co-performance mode options comprise newly added options and replacement options for the specified video; when the triggering operation of the newly added option is detected, determining that the target co-performance mode is newly added co-performance; when the trigger operation of the replacement option is detected, determining that the target co-performance mode is the replacement co-performance of the specified video.
In one possible implementation manner, the second determining module is configured to:
when the target co-performance mode is a newly increased co-performance mode, determining that the at least one path of video is all videos in the target video;
and when the target co-performance mode is the replacement co-performance of the specified video, determining that the at least one path of video is the video except for the specified video in the target video.
In one possible implementation, the apparatus further includes:
and the preview module is used for previewing the at least one path of video in a preview window of the video shooting page according to the target rehearsal mode.
In one possible implementation, the preview module includes:
the first determining unit is used for determining the number of the sub-windows of the preview window according to the target rehearsal mode and the video combination path number;
a second determining unit, configured to determine, according to the number of the sub-windows, a sub-window layout of the preview window, where the sub-window layout is used to indicate an arrangement position of each sub-window in the preview window;
and the previewing unit is used for previewing the at least one path of video in the sub-window of the previewing window according to the layout of the sub-window.
In a possible implementation manner, the first determining unit is configured to:
when the target rehearsal mode is newly increased rehearsal, determining the number of the sub-windows of the preview window as the number of the video combination paths;
and when the target co-operation mode is replacement co-operation, determining that the number of the sub-windows of the preview window is the sum of the number of the video combination paths and 1.
In one possible implementation manner, the preview unit is configured to:
when the target rehearsal mode is newly increased rehearsal, displaying all videos in the target videos in the sub-windows of the preview window according to the arrangement positions of the sub-windows indicated by the sub-window layout;
and when the target co-operation mode is the replacement co-operation of the specified video, displaying the videos except the specified video in the target video in the sub-window of the preview window according to the arrangement position of the sub-window indicated by the layout of the sub-window.
In one possible implementation, the preview module is further configured to: and previewing the local shooting picture in the preview window.
In a possible implementation manner, the first determining unit is configured to:
when the target rehearsal mode is newly increased rehearsal, determining the number of the sub-windows of the preview window as the number of the video combination paths plus 1;
and when the target co-operation mode is replacement co-operation, determining the number of the sub-windows of the preview window as the number of the video combination paths.
In a possible implementation manner, the preview unit is configured to:
when the target rehearsal mode is newly increased rehearsal, displaying the local shooting picture in a first sub-window of the preview window according to the arrangement position of each sub-window indicated by the sub-window layout; displaying all videos contained in the target video in a second sub-window of the preview window, wherein the second sub-window is a sub-window except the first sub-window in the preview window; or the like, or, alternatively,
when the target co-operation mode is the replacement co-operation of the specified video, displaying the local shooting picture in a third sub-window of the preview window according to the sub-window arrangement position indicated by the sub-window layout; and displaying videos, except the designated video, in the target video in a fourth sub-window of the preview window, wherein the fourth sub-window is a sub-window, except the third sub-window, in the preview window.
In a possible implementation manner, the target video includes a co-performance initiating video, the co-performance initiating video does not belong to the category of the specified video, and the co-performance initiating video is a path of video with the earliest recording time in the target video.
In a possible implementation manner, the first recording module is configured to:
acquiring the total duration of the target video;
and recording a local shot picture according to the total time length, wherein the recording time length of the locally recorded video is equal to the total time length.
In one possible implementation, the apparatus further includes:
and the preview playing module is used for synchronously playing the at least one path of video in the preview window in the process of recording the local shot picture.
In one possible implementation, the apparatus further includes:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a locally recorded audio source, and the audio source comprises environmental sound or an audio file;
and the second recording module is used for recording the local audio according to the audio source in the process of recording the local shot picture.
In one possible implementation manner, the second recording module is configured to:
when the audio source is the environmental sound, recording the environmental sound through a microphone in the recording process; taking the recorded environment sound as the local audio;
and when the audio source is an audio file, taking the audio file as the local audio.
In one possible implementation, the apparatus further includes:
the detection module is used for detecting whether the audio playing mode is the speaker playing mode in the process of recording the local audio;
and the adjusting module is used for adjusting the playing volume of the preview window to be lower than a preset threshold value when the audio playing mode is speaker playing.
In one possible implementation, the apparatus further includes:
the decoding module is used for decoding the locally recorded video when a special effect editing instruction for the locally recorded video is detected;
the video editing module is used for previewing the decoded video on a video editing page, and the video editing page comprises a plurality of special effect options for video editing;
an adding module, configured to add a corresponding special effect to the decoded video based on the operation on the multiple special effect options;
and the generating module is used for generating a local recording video with a special effect when the editing completion instruction is detected.
In a possible implementation manner, after obtaining the locally recorded video, the apparatus further includes:
the second acquisition module is used for acquiring an audio source of the locally recorded audio;
the third obtaining module is used for obtaining a lyric file corresponding to the audio file when the audio source is the audio file;
and the rendering module is used for rendering the lyrics of the local recorded video according to the audio file and the lyric file.
In one possible implementation manner, the generating module includes:
the splicing unit is used for splicing the local recorded video and the at least one path of video according to frames when a co-performance video release operation is detected;
and the generating unit is used for coding the spliced video stream according to a preset coding mode to generate the rehearsal video.
In a possible implementation manner, the splicing unit is configured to:
acquiring the picture layout of the co-performance video, wherein the picture layout of the co-performance video is used for indicating the picture arrangement position of a plurality of paths of videos in the co-performance video during playing;
and splicing each frame of picture at the time point corresponding to the local recorded video and the at least one path of video according to the picture arrangement position indicated by the picture layout of the co-performance video.
In one possible implementation, the apparatus further includes:
a fourth obtaining module, configured to obtain a local audio corresponding to the locally recorded video and at least one audio corresponding to the at least one video in a process of generating the rehearsal video;
and the audio mixing module is used for carrying out audio mixing processing on the local audio and the at least one path of audio to obtain the audio of the co-performance video.
In one possible implementation, the apparatus further includes:
the address acquisition module is used for acquiring the playing addresses of the multiple paths of videos contained in the chorus videos when the playing operation of the chorus videos is detected;
and the performance combining playing module is used for playing the performance combining video based on the picture layout of the performance combining video and the playing addresses of the multi-channel videos.
In one possible implementation, the apparatus further includes:
the uploading module is used for uploading the co-performance video to a server, and the server is used for adding 1 to the heat value of the co-performance video when effective playing of the co-performance video is detected;
a video set obtaining module, configured to obtain, when a request operation for a co-performance video set to which the co-performance video belongs is detected, the co-performance video set from the server, where the co-performance video set includes multiple co-performance videos having a same co-performance initiation identifier;
and the display module is used for displaying the multiple co-performance videos in the co-performance video page according to the sequence of the heat value from high to low.
In a third aspect, a computer device is provided, which includes a processor and a memory, where at least one instruction is stored in the memory, and the instruction is loaded and executed by the processor to implement the operations performed by the video recording method according to the first aspect and any possible implementation manner thereof.
In a fourth aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the operations performed by the video recording method according to the first aspect and any possible implementation manner thereof.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
when a co-performance instruction of a target video is detected, determining a target co-performance mode according to the video combination path number of the target video; and determining at least one path of video participating in the co-performance in the target video according to the target co-performance mode, and after shooting the local shot picture, generating the co-performance video according to the locally recorded video and the at least one path of video. Through carrying out the rehearsal with multichannel video for same and different users record through carrying out the rehearsal with local recording video and other videos, alright obtain the rehearsal video, and this kind of video recording mode is more nimble, has improved richness and the flexibility that content was recorded and content production, simultaneously, has reduced content production's cost.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a video recording method according to an embodiment of the present invention;
fig. 2 is a flowchart of a video recording method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a performance-related page according to an embodiment of the present invention;
fig. 4 is a block diagram of a video recording apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal 500 according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart of a video recording method according to an embodiment of the present invention, referring to fig. 1, including the following steps:
101. when a co-operation instruction for a target video is detected, determining a target co-operation mode according to the video combination path number of the target video, wherein the co-operation mode comprises a newly added co-operation and a replacement co-operation for a specified video in the target video.
102. And determining at least one path of video participating in the co-operation in the target video according to the target co-operation mode.
103. And when the triggering operation of the recording instruction is detected on the video shooting page, recording the local shooting picture to obtain a local recorded video.
104. And generating a co-performance video according to the local recorded video and the at least one path of video.
According to the method provided by the embodiment of the invention, when a co-performance instruction of a target video is detected, a target co-performance mode is determined according to the video combination path number of the target video; and determining at least one path of video participating in the co-performance in the target video according to the target co-performance mode, and after shooting the local shot picture, generating the co-performance video according to the locally recorded video and the at least one path of video. Through carrying out the rehearsal with multichannel video for same and different users record through carrying out the rehearsal with local recording video and other videos, alright obtain the rehearsal video, and this kind of video recording mode is more nimble, has improved richness and the flexibility that content was recorded and content production, simultaneously, has reduced content production's cost.
In a possible implementation manner, the determining a target rehearsal mode according to the number of the video combining paths includes:
when the number of the video combination paths is 1, determining that the target co-operation mode is newly increased co-operation; or the like, or, alternatively,
when the video combination path number is multiple paths, displaying a co-performance selection page, wherein the co-performance selection page is provided with a co-performance mode option, and the co-performance mode option comprises a newly added option and a replacement option for the specified video; when the triggering operation of the newly added option is detected, determining that the target co-performance mode is newly added co-performance; and when the triggering operation of the replacement option is detected, determining that the target co-performance mode is the replacement co-performance of the specified video.
In a possible implementation manner, the determining, according to the target participation manner, at least one path of video participating in the participation in the target video includes:
when the target rehearsal mode is a newly added rehearsal, determining the at least one path of video as all videos in the target video;
and when the target co-performance mode is the alternative co-performance of the specified video, determining that the at least one path of video is the video except for the specified video in the target video.
In one possible implementation, the method further includes:
and previewing the at least one path of video in a preview window of the video shooting page according to the target rehearsal mode.
In a possible implementation manner, according to the target rehearsal manner, the previewing the at least one video in a preview window of the video shooting page includes:
determining the number of sub-windows of the preview window according to the target rehearsal mode and the video combination path number;
determining the layout of the sub-windows of the preview window according to the number of the sub-windows, wherein the layout of the sub-windows is used for indicating the arrangement positions of all the sub-windows in the preview window;
and previewing the at least one path of video in the child window of the preview window according to the layout of the child window.
In a possible implementation manner, the determining the number of sub-windows of the preview window according to the target co-performance mode and the video combination path number includes:
when the target rehearsal mode is newly increased rehearsal, determining the number of the sub-windows of the preview window as the number of the video combination paths;
and when the target co-operation mode is replacement co-operation, determining the number of the sub-windows of the preview window as the number of the video combination paths minus 1.
In a possible implementation manner, the previewing the at least one video in the sub-window of the preview window according to the layout of the sub-window includes:
when the target rehearsal mode is newly increased rehearsal, displaying all videos in the target video in the sub-windows of the preview window according to the arrangement positions of the sub-windows indicated by the layout of the sub-windows;
when the target co-performance mode is the alternative co-performance of the specified video, displaying the videos except the specified video in the target video in the sub-window of the preview window according to the arrangement position of the sub-window indicated by the layout of the sub-window.
In one possible implementation, the method further includes:
and previewing the local shooting picture in the preview window.
In a possible implementation manner, the determining the number of sub-windows of the preview window according to the rehearsal mode and the video combination path number includes:
when the target rehearsal mode is newly increased rehearsal, determining the number of the sub-windows of the preview window as the number of the video combination paths plus 1;
and when the target co-operation mode is replacement co-operation, determining the number of the sub-windows of the preview window as the number of the video combination paths.
In a possible implementation manner, the previewing the at least one video in the sub-window of the preview window according to the layout of the sub-window includes:
when the target rehearsal mode is newly increased rehearsal, displaying the local shooting picture in a first sub-window of the preview window according to the arrangement position of each sub-window indicated by the sub-window layout; displaying all videos contained in the target video in a second sub-window of the preview window, wherein the second sub-window is a sub-window except the first sub-window in the preview window; or the like, or, alternatively,
when the target co-operation mode is the replacement co-operation of the specified video, displaying the local shooting picture in a third sub-window of the preview window according to the sub-window arrangement position indicated by the sub-window layout; and displaying the videos of the target video except the specified video in a fourth sub-window of the preview window, wherein the fourth sub-window is a sub-window of the preview window except the third sub-window.
In a possible implementation manner, the target video includes a performance initiation video, the performance initiation video does not belong to the category of the specified video, and the performance initiation video is a path of video with the earliest recording time in the target video.
In one possible implementation manner, the recording the local shot picture includes:
acquiring the total duration of the target video;
and recording a local shooting picture according to the total time length, wherein the recording time length of the locally recorded video is equal to the total time length.
In one possible implementation, the method further includes:
and synchronously playing the at least one path of video in the preview window in the process of recording the local shot picture.
In one possible implementation, the method further includes:
acquiring a locally recorded audio source, wherein the audio source comprises environmental sound or an audio file;
and recording local audio according to the audio source in the process of recording the local shot picture.
In one possible implementation, the recording local audio according to the audio source includes:
when the audio source is the environmental sound, recording the environmental sound through a microphone in the recording process; taking the recorded environment sound as the local audio;
and when the audio source is an audio file, taking the audio file as the local audio.
In one possible implementation, the method further includes:
detecting whether an audio playing mode is a loudspeaker playing mode or not in the process of recording the local audio;
and when the audio playing mode is speaker playing, adjusting the playing volume of the preview window to be lower than a preset threshold value.
In a possible implementation manner, after obtaining the locally recorded video, the method further includes:
when a special effect editing instruction for the locally recorded video is detected, decoding the locally recorded video;
previewing the decoded video on a video editing page, wherein the video editing page comprises a plurality of special effect options for video editing;
adding corresponding special effects to the decoded video based on the operation on the plurality of special effect options;
and when the editing completion instruction is detected, generating a local recording video with a special effect.
In a possible implementation manner, after obtaining the locally recorded video, the method further includes:
acquiring an audio source of the locally recorded audio;
when the audio source is an audio file, acquiring a lyric file corresponding to the audio file;
and performing lyric rendering on the local recording video according to the audio file and the lyric file.
In a possible implementation manner, the generating a performance video according to the locally recorded video and the at least one video includes:
when the co-performance video release operation is detected, splicing the local recorded video and the at least one path of video according to frames;
and coding the spliced video stream according to a preset coding mode to generate the rehearsal video.
In a possible implementation manner, the splicing the locally recorded video and the at least one video by frames includes:
acquiring the picture layout of the co-performance video, wherein the picture layout of the co-performance video is used for indicating the picture arrangement position of a plurality of paths of videos in the co-performance video during playing;
and splicing each frame of picture at the time point corresponding to the local recorded video and the at least one path of video according to the picture arrangement position indicated by the picture layout of the rehearsal video.
In one possible implementation, the method further includes:
in the process of generating the co-performance video, acquiring a local audio corresponding to the locally recorded video and at least one audio corresponding to the at least one video;
and carrying out sound mixing processing on the local audio and the at least one path of audio to obtain the audio of the rehearsal video.
In a possible implementation manner, after generating a performance video according to the locally recorded video and the at least one video, the method further includes:
when the playing operation of the combined action video is detected, the playing addresses of a plurality of paths of videos contained in the combined action video are obtained;
and playing the co-performance video based on the picture layout of the co-performance video and the playing addresses of the multi-channel videos.
In a possible implementation manner, after generating a performance video according to the locally recorded video and the at least one video, the method further includes:
uploading the co-performance video to a server, wherein the server is used for adding 1 to the heat value of the co-performance video when detecting the effective playing of the co-performance video;
when a request operation for a co-performance video set to which the co-performance video belongs is detected, acquiring the co-performance video set from the server, wherein the co-performance video set comprises a plurality of co-performance videos with the same co-performance initiating identifier;
and displaying the plurality of the synopsis videos in a synopsis video page according to the sequence of the heat value from high to low.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 2 is a flowchart of a video recording method according to an embodiment of the present invention, and with reference to fig. 2, the method includes the following steps:
201. and when a co-operation instruction for the target video is detected, determining a target co-operation mode according to the video combination path number of the target video.
In the present embodiment, the target video is a video whose value allows a sympathy. For example, for a video recorded by a user through a terminal, a performance attribute of the video may be selected when the video is distributed to a server, the performance attribute including performance permission and performance non-permission. Of course, before or after recording the video, the performance attribute of the video may also be set, which is not limited in this embodiment.
For videos allowing to join in performance, the embodiment provides a join in performance entry on a playing page of the video. And when the terminal detects the selection operation of the co-operation entrance of the target video, triggering a co-operation instruction of the target video.
And the merge play mode comprises a new increase merge play and a replacement merge play of the specified video in the target video.
The target video may be a video already subjected to the co-performance or a video not subjected to the co-performance, when the target video is subjected to the co-performance, the number of video combination paths contained in the target video is greater than 1, and when the target video is not subjected to the co-performance, the number of video combination paths contained in the target video is equal to 1. In this embodiment, the target co-performance mode may be determined according to whether the target video is co-performed, that is, according to the number of video combination paths included in the target video, and the process includes the following two cases:
in the first case, the number of video combining paths is 1.
And when the terminal detects that the number of the video combined paths is 1, determining that the target co-performance mode is newly increased co-performance. The newly added co-performance is to add a new video on the basis of the target video to realize the co-performance.
In the first case, the terminal defaults that the target rehearsal mode is a newly added rehearsal mode, and can directly jump from the playing page of the target video to the video shooting page.
In the second case, the number of video combining paths is multiple.
And when the terminal detects that the video combination path number is multiple paths, displaying a co-performance selection page, wherein the co-performance selection page is provided with co-performance mode options, and the co-performance mode options comprise a newly added option and a replacement option for a specified video in the target video. And when the triggering operation of the newly added option is detected, determining that the target co-performance mode is newly added co-performance. And when the triggering operation of the replacement option is detected, determining that the target co-performance mode is the replacement co-performance of the specified video. The alternative performance of the designated video refers to replacing the designated video with the locally recorded video for performing the performance.
In the second case, when the target co-performance mode is determined to be a new co-performance or a replacement co-performance, the terminal jumps from the co-performance selection page to the video shooting page.
It should be noted that the target video at least includes a performance-starting video, and in this embodiment, a path of video with the earliest recording time in the target video is referred to as a performance-starting video. Correspondingly, the user who records and issues the chorus initiating video is called a chorus initiating user, and the user identifier of the chorus initiating user can be used as the chorus initiating identifier of the chorus initiating video.
In this embodiment, in order to ensure the ordering of the merge-play videos, replacement of the merge-play initiating video in the target video is prohibited, that is, the merge-play initiating video does not belong to the category of the specified video in the target video, and accordingly, the merge-play selection page does not include a replacement option for the merge-play initiating video. The performance combining selection page can perform preview display on each path of video included in the target video, and for one or more replaceable designated videos, a replacement option is displayed on a picture of the corresponding designated video. When the selected operation of a specified video replacement option is detected, the video replacement co-performance of the specified video is determined. Fig. 3 is a schematic diagram of a performance-combining related page, where in (a), taking an example that a target video includes 3 paths of videos, a video a is a performance-combining initiating video, both videos B and C belong to the category of a specified video, and a performance-combining selection page is provided with replacement options of the videos B and C and an addition option.
For example, when the target video only includes 1 route of video a, and the video a is recorded and issued by the user a, the user a is the party initiating user, and the video a is the party initiating video. At this time, the user B wants to perform a rehearsal on the target video, and when the user B clicks a rehearsal entrance on the playing page of the target video, since the target video only includes 1 channel of video a, the terminal defaults that the target rehearsal mode is a new rehearsal, and the terminal jumps from the playing page of the target video to the video shooting page. Suppose that the user B adds 1 new video B, so that the target video includes 2 videos, namely, the video a and the video B, and at this time, if the user C performs the co-operation on the target video, the user C jumps to the co-operation selection page when clicking the co-operation entry on the playing page of the target video. Since the video a is a co-performance initiating video, the co-performance selection page only contains the replacement option and the addition option for the video B. When the terminal detects that the user C selects the replacement option of the video B, the target co-performance mode is determined to be the replacement co-performance of the video B, and the terminal jumps to a video shooting page from a co-performance selection page; and when the terminal detects the selection operation of the user C on the newly added option, determining that the target co-performance mode is newly added co-performance, and jumping to a video shooting page from the co-performance selection page by the terminal.
202. And determining at least one path of video participating in the co-operation in the target video according to the target co-operation mode.
According to different target combination play modes, the step comprises the following two conditions:
in a first case, when the target rehearsal mode is a new rehearsal, the at least one video is determined to be all videos in the target video.
In a second case, when the target co-performance mode is alternative co-performance on the designated video, the at least one video is determined to be a video other than the designated video in the target video.
203. And previewing at least one path of video participating in the performance in the target video in a preview window of the video shooting page.
It should be noted that, when entering the video shooting page, the terminal starts the camera to shoot the local picture. In this embodiment, the video shooting page is used to display a current local shooting picture in real time, and further includes a preview window for previewing at least one path of video participating in a co-performance in the target video. It should be noted that, in this embodiment, at least one path of video in the target video refers to a video participating in the current performance in the target video.
The process of previewing at least one path of video participating in the performance in the target video in the preview window of the video shooting page comprises the following steps a1 to a 3:
step a 1: and determining the number of the sub-windows of the preview window in the video shooting page according to the target rehearsal mode and the video combination path number.
In this embodiment, in the preview window, only at least one video in the target video may be previewed, or both at least one video in the target video and the local shot picture may be previewed.
When only at least one video of the target videos is previewed in the preview window, the process of step a1 may include: when the target rehearsal mode is newly increased rehearsal, determining the number of the sub-windows of the preview window as the number of the video combination paths; and when the target co-operation mode is replacement co-operation, determining the number of the sub-windows of the preview window as the number of the video combination paths minus 1.
When the preview window previews at least one of the target video and the local shot picture, the step a1 may include: when the target rehearsal mode is newly increased rehearsal, determining the number of the sub-windows of the preview window as the number of the video combination paths plus 1; and when the target co-operation mode is replacement co-operation, determining the number of the sub-windows of the preview window as the number of the video combination paths.
It should be noted that the preview window occupies a local area of the video capture page, the position of the preview window in the video capture page may be upper left, lower left, upper right, lower right, and the like, or the preview window may be a movable floating window, and the position of the preview window on the video capture page is adjusted according to the movement operation of the user, and the like, and the position of the preview window is not limited in this embodiment. Further, the size of the preview window can be adjusted according to user operation, so as to improve the flexibility of preview.
It should be noted that, in the implementation process, the total number of paths participating in the co-performance video may be limited, which is convenient for co-performance video management on one hand, and on the other hand, video preview may be better performed in a limited area of the terminal screen when recording the local video. The terminal may set the maximum number of sub-windows of the preview window equal to the total number of paths of the rehearsal videos.
Step a 2: and determining the layout of the child windows of the preview window according to the number of the child windows.
And the layout of the sub-windows is used for indicating the arrangement positions of the sub-windows in the preview window. The layout of the sub-windows may be understood as a grid structure dividing the preview window by the number of sub-windows. The terminal may pre-store a corresponding relationship between the number of the sub-windows and the layout of the sub-windows, for example, when the number of the sub-windows is 2, the layout of the corresponding sub-windows may be an up-down layout or a left-right layout; when the number of the sub-windows is 3, the layout of the corresponding sub-windows can be up 2 down 1, or up 1 down 2, or left 1 right 2, or left 2 right 1, etc.; when the number of the sub-windows is 4, the layout of the corresponding sub-windows is 2 at the top, 2 at the bottom, 2 at the left, 2 at the right, and so on.
Step a 3: and previewing at least one path of video in the target video in the child window of the preview window according to the layout of the child window.
In this embodiment, each path of video to be previewed is displayed through one sub-window, different sub-windows display different videos, and the video previewing is performed through a player associated with the sub-window in the implementation process.
When only at least one path of video in the target video is previewed in the preview window, the step includes the following two conditions according to different rendezvous modes:
in a first case, when the target rehearsal mode is a newly added rehearsal, all videos in the target video are displayed in the sub-windows of the preview window according to the arrangement positions of the sub-windows indicated by the layout of the sub-windows.
All the videos in the target video are displayed in the sub-windows of the preview window, which means that each path of video in the target video is respectively displayed in different sub-windows of the preview window.
In the second case, when the target co-performance mode is alternative co-performance on the designated video, the videos of the target video except the designated video are displayed in the sub-window of the preview window according to the arrangement position of the sub-window indicated by the layout of the sub-window.
The displaying of the videos of the target video except the designated video in the sub-window of the preview window means that the videos of the target video except the designated video are respectively displayed in different sub-windows of the preview window.
When the preview window previews at least one path of video in the target video and previews a local shot picture, according to different rendezvous modes, the method comprises the following two conditions:
in the first case, when the target rehearsal mode is a newly added rehearsal, the local shot picture is displayed in a first sub-window of the preview window according to the arrangement positions of the sub-windows indicated by the layout of the sub-windows; and displaying all videos contained in the target video in a second sub-window of the preview window, wherein the second sub-window is a sub-window except the first sub-window in the preview window.
In the second case: when the target co-operation mode is the replacement co-operation of the specified video, displaying the local shooting picture in a third sub-window of the preview window according to the sub-window arrangement position indicated by the sub-window layout; and displaying the videos of the target video except the specified video in a fourth sub-window of the preview window, wherein the fourth sub-window is a sub-window of the preview window except the third sub-window.
In specific implementation, each sub-window may be numbered according to the layout of the sub-windows, the number of each sub-window is used as the arrangement position of the sub-window, and the lower layer corresponds to the coordinate information of the sub-window in the preview window. And numbering at least one path of video participating in preview in the target video according to the sequence of the recording time from first to last, and previewing the at least one path of video in a corresponding sub-window according to the corresponding number. When the preview window previews the local shot pictures, if the target co-operation mode is a new co-operation, the sequence number of the local shot pictures can be set behind the target video; and if the target co-performance mode is the replacement co-performance of the specified video, the number of the local shot picture is equal to that of the specified video. For example, fig. 3 (B) illustrates a video preview interface for alternative performance, and it is assumed that the target video includes three videos, i.e., video a, video B, and video C, and the recording time of the three videos is, in order from first to last, video a, video B, and video C, and the corresponding numbers are 1, 2, and 3, respectively. Taking the alternative co-occurrence of the video B as an example, the sub-window number of the local shot picture is 2.
204. And when the triggering operation of the recording instruction is detected on the video shooting page, recording the local shooting picture to obtain a local recorded video.
The video shooting page is provided with a video recording starting option, when the selection operation of the starting option is detected, a recording instruction is triggered, and the terminal starts to record a local shooting picture.
In the embodiment, the process of recording the local shot picture to obtain the local recorded video can comprise the steps of obtaining the total duration of the target video; and recording the local shot picture according to the total time length to obtain a local recorded video.
And the recording time length of the locally recorded video is equal to the total time length. Specifically, in the recording process, when the terminal detects that the recording time length does not reach the total time length, the recording is continued, and when the terminal detects that the recording time length reaches the total time length, the recording is stopped. In order to improve operability, a recording canceling function can be provided in a video shooting page in the recording process, one implementation mode of the recording canceling function is to provide a special recording canceling option, and when the triggering operation of the recording canceling option is detected, the recording is canceled; in another embodiment, after the recording instruction is triggered, the recording option is started to be switched to the recording stopping option, and when the recording duration does not reach the total duration of the target video, if the triggering operation of the recording stopping option is detected, the recording is cancelled. It should be noted that, in order to improve the storage efficiency and avoid the waste of storage space, the video file recorded this time is not reserved when the recording is cancelled.
205. And synchronously playing at least one path of video in the target video in the preview window in the process of recording the local shot picture.
The process of synchronously playing at least one path of video in the target video in the preview window may be: when the triggering operation of the recording instruction is detected, the local shooting picture is recorded, and at the same time, at least one path of video in the target video is played through the player in the preview window. That is, the recording start time is the same as the play start time.
It should be noted that the specific video content played in the preview window in step 205 is the same as the video previewed in the sub-window of the preview window in step a 3. That is, in the process of recording the local shot picture, one or more videos previewed in the preview window are synchronously played, specifically, the playing address of one or more videos in the preview window is obtained, and a player is adopted to play the corresponding video in each sub-window. The terminal can obtain the playing address of the video contained in the target video from the server, and the playing address of the local shooting picture is obtained from the local.
In addition, to further improve the flexibility of video recording and the richness of content, in this embodiment, before recording a local shot picture, the terminal may further record an audio according to different locally recorded audio sources, where the audio source includes an environmental sound or an audio file, and the process includes: acquiring a locally recorded audio source; and recording local audio according to the audio source in the process of recording the local shot picture.
Wherein, before starting the local recording, the terminal is provided with source options of the local audio, the source options comprise an environment sound option and an audio file option. When the triggering operation of the environmental sound option is detected, determining that the locally recorded audio source is the environmental sound; and when the triggering operation of the audio file option is detected, determining that the locally recorded audio source is an audio file. In specific implementation, after the target co-performance mode is determined, the terminal can provide a source option of local audio for a user to select an audio source; the source option of the local audio may also be provided at other occasions before the video recording is started, which is not limited in this embodiment.
According to the audio source, the process of recording the local audio is divided into the following two conditions:
in the first case, when the audio source is the environmental sound, the environmental sound is recorded by a microphone in the recording process; and taking the recorded environment sound as the local audio.
In the second case, when the audio source is an audio file, the audio file is used as the local audio.
The audio file may be an audio file stored locally, or an audio file in an audio library (e.g., a song file in a song library) associated with the video recording application, and the content of the audio file may be a song, pure music, a human voice, and the like, which is not limited in this embodiment.
In the second case, the terminal may be configured by the user through the terminal, and the terminal may record the ambient sound through the microphone, or may disable the microphone from recording the ambient sound. And when the terminal detects that the environmental sound is recorded through the microphone, adjusting the playing volume of the environmental sound track to be zero. By adjusting the playing volume of the environmental sound track to be zero, when the audio source is an audio file, the volume of the environmental sound in the audio of the finally output chorus video is zero, so that the audio of the chorus video is not interfered by the environmental sound.
In addition, because the previewed video can be synchronously played in the preview window in the video recording process, in order to avoid the sound interference of playing the video in the preview window, the terminal can also detect whether the current audio playing mode is the speaker playing mode in the process of recording the local audio; and when the audio playing mode is speaker playing, adjusting the playing volume of the preview window to be lower than a preset threshold value.
The preset threshold may be preset or modified by the terminal, which is not limited in this embodiment.
Because the sound of the video played in the preview window can be recorded into the locally recorded audio in the loudspeaker playing mode, the interference to the locally recorded audio is caused, at the moment, the playing volume of the preview window is adjusted to be lower than a preset threshold value in the loudspeaker playing mode, so that the sound played in the preview window is far smaller than the sound of the environment sound recorded by the microphone or the sound of the local audio file, the interference of the video playing volume of the preview window to the locally recorded audio is avoided, and the audio independence of each video in the co-performance video is ensured.
Further, after the locally recorded video is obtained, the terminal further provides a special effect editing function and a lyric editing function for the locally recorded video, so as to improve the flexibility of the co-occurrence video recording, thereby improving the flexibility and richness of content production, and the special effect editing function and the lyric editing function provided by the embodiment are described below, wherein the special effect editing process includes the following steps b1 to b4, and the lyric editing process includes the following steps c1 to c 3.
(1) Special effect editing function
Step b 1: and when the special effect editing instruction of the locally recorded video is detected, decoding the locally recorded video.
After the locally recorded video is obtained, the terminal can jump to a video editing page according to the triggering operation of the user on the video editing option, or jump to the video editing page by default. The video editing page is provided with a special effect editing option, and when the selection operation of the special effect editing option is detected, a special effect editing instruction is triggered. The process of decoding the locally recorded video by the terminal is as follows: and the terminal determines the encoding mode of the locally recorded video and decodes the locally recorded video based on the decoding mode corresponding to the encoding mode.
Step b 2: the decoded video is previewed on a video editing page that includes a plurality of special effects options for video editing.
The plurality of special effect options may include special effect options of categories such as animation special effect, transition special effect and the like. The terminal is preset with a plurality of special effects for each special effect option, for example, a plurality of special effects such as folding, fading in and out, scratching, scrolling, erasing and the like are set for the transition special effect.
Step b 3: and adding corresponding special effects for the decoded video based on the operation of the plurality of special effect options.
And when the terminal detects the selection operation of a certain special effect option, adding a corresponding special effect to the decoded video. For example, when a selected operation for a fade-in effect is detected, a fade-in effect is added to the decoded video.
Step b 4: and when the editing completion instruction is detected, generating a local recording video with a special effect.
And when the editing completion instruction is detected, rendering the video added with the special effect by the terminal according to the preset output format of the video to generate the local recorded video with the special effect.
(2) Lyric editing function
Step c 1: an audio source of the locally recorded audio is obtained.
When the terminal records the local video, the audio source of the local recorded video is determined and recorded to the local. In this step, the terminal reads the audio source of the local recording to obtain the audio source of the local recording audio.
Step c 2: and when the audio source is an audio file, acquiring a lyric file corresponding to the audio file.
In this step, the terminal may obtain, from the server, a lyric file matching the audio identifier according to the audio identifier of the audio file. For example, when the content of the audio file is a song, the audio identification of the audio file may be the song name. And the terminal acquires the lyric file matched with the song name from the song library of the server according to the song name. The lyric file comprises lyric content and time point information corresponding to each sentence of lyrics. The time point information includes a start time and an end time.
Step c 3: and performing lyric rendering on the local recording video according to the audio file and the lyric file.
And aiming at each lyric, the terminal matches the time point information of the lyric with the time axis of the audio file according to the time point information corresponding to the lyric and the time axis of the audio file, and renders the content of the lyric according to the duration indicated by the corresponding time point information.
It should be noted that, in the specific implementation, the permission setting may be performed on the lyric editing function, for example, only allowing the chorus initiating user to perform lyric editing on the chorus initiating video, so as to improve the dominance of the chorus initiating user in the chorus video and avoid malicious modification of the chorus video by other users.
206. And when the co-performance video release operation is detected, splicing the local recorded video and the at least one path of video according to frames.
In this embodiment, after obtaining the local recorded video, the user may issue a co-performance video through the terminal, that is, perform joint issue on one or more videos of the local recorded video and the target video for co-performance.
Wherein, the process of splicing the locally recorded video and the at least one path of video by frames comprises the following steps: acquiring the picture layout of the co-performance video, wherein the picture layout of the co-performance video is used for indicating the picture arrangement position of a plurality of paths of videos in the co-performance video during playing; and splicing each frame of picture at the time point corresponding to the local recorded video and the at least one path of video according to the picture arrangement position indicated by the picture layout of the rehearsal video.
It should be noted that, when the content previewed in the preview window includes both at least one path of video in the target video and the local shot screen, that is, when the content previewed in the preview window is the content of the co-performance video, the screen layout of the co-performance video may be consistent with the layout of the sub-window of the preview window. Of course, the picture layout of the rehearsal video can also be adjusted by the user through the terminal before being distributed, which is not limited in this embodiment.
In order to improve the video synthesis efficiency, each frame of picture of the locally recorded video and the whole of at least one path of video in the target video can be spliced on the premise of maintaining the picture layout of at least one path of video in the target video. That is, the original splicing layout is kept between the videos participating in the performance of the target video without splicing.
207. And coding the spliced video stream according to a preset coding mode to generate the rehearsal video.
The preset encoding method may be B frame encoding, P frame encoding, or I frame encoding, or may be hybrid encoding, which is not limited in this embodiment.
In addition, in the process of generating the co-performance video, the terminal may further perform mixing processing on multiple paths of videos participating in the co-performance, where the process includes: in the process of generating the co-performance video, acquiring a local audio corresponding to the locally recorded video and at least one audio corresponding to the at least one video; and carrying out sound mixing processing on the local audio and the at least one path of audio to obtain audio corresponding to the rehearsal video. Through the audio mixing processing, the audio coordination of the multi-channel videos participating in the co-performance can be integrated, so that the same or different users can complete the content creation of multi-channel audio effects in the co-performance videos, for example, different musical instruments are respectively adopted for playing scenes and the like in the different co-performance videos, the flexibility and the richness of content production are improved, and the cost of content production is reduced.
The step 206 and the step 207 are processes of generating a co-performance video according to the locally recorded video and the at least one video.
In addition, after the rendezvous video is generated, the local user and other users can play the rendezvous video through the terminal to watch the rendezvous video, and the playing process of the rendezvous video comprises the following steps: when the playing operation of the combined action video is detected, the playing addresses of a plurality of paths of videos contained in the combined action video are obtained; and playing the co-performance video based on the picture layout of the co-performance video and the playing addresses of the multi-channel videos. The terminal obtains the playing addresses of the multiple paths of videos in the co-performance video from the server, and plays the co-performance video through the player according to the picture layout of the co-performance video.
In addition, the embodiment may further include a merge video having the same merge initiation identifier into one merge video set. When a user watches a favorite chorus video, the user can watch the video related to the chorus video by requesting a corresponding chorus video set, and in order to improve browsing efficiency, the requested chorus video set is sorted according to heat degree, and the process comprises the following steps: after a co-performance video is generated, uploading the co-performance video to a server, wherein the server is used for adding 1 to the heat value of the co-performance video when effective playing of the co-performance video is detected; when a request operation for a co-performance video set to which the co-performance video belongs is detected, acquiring the co-performance video set from the server, wherein the related video set comprises a plurality of co-performance videos with the same co-performance initiating identifier; and displaying the plurality of the synopsis videos in a synopsis video page according to the sequence of the heat value from high to low.
Wherein, the join play initiating identifier is an identifier of the join play initiating user, and the related explanation refers to the explanation of the join play initiating video, the join play initiating user and the join play initiating identifier in step 201. That is, the same merge shows initiating user's corresponding merge shows videos are all included in one merge shows video set. For example, the user a is a party initiating user, and the corresponding party initiating video is the video a, so that the party videos including the video a are all included in one party video set.
According to the method provided by the embodiment of the invention, when a co-performance instruction of a target video is detected, a target co-performance mode is determined according to the video combination path number of the target video; and determining at least one path of video participating in the co-performance in the target video according to the target co-performance mode, and after shooting the local shot picture, generating the co-performance video according to the locally recorded video and the at least one path of video. Through carrying out the rehearsal with multichannel video for same and different users record through carrying out the rehearsal with local recording video and other videos, alright obtain the rehearsal video, and this kind of video recording mode is more nimble, has improved richness and the flexibility that content was recorded and content production, simultaneously, has reduced content production's cost.
Fig. 4 is a block diagram of a video recording apparatus according to an embodiment of the present invention, and referring to fig. 4, the apparatus includes: a first determining module 401, a second determining module 402, a first recording module 403 and a synthesizing module 404.
The first determining module 401 is connected to the second determining module 402, and configured to determine a target rehearsal mode according to the number of video combination paths of the target video when a rehearsal instruction for the target video is detected, where the rehearsal mode includes a newly added rehearsal and a replacement rehearsal for a specified video in the target video; the second determining module 402 is connected to the first recording module 403, and configured to determine, according to the target co-performance mode, at least one video participating in co-performance in the target video; the first recording module 403 is connected to the synthesizing module 404, and is configured to record a local shooting picture when a trigger operation of a recording instruction is detected on a video shooting page, so as to obtain a local recorded video; a synthesizing module 404, configured to generate a co-performance video according to the locally recorded video and the at least one path of video.
In one possible implementation manner, the first determining module is configured to:
when the number of the video combined paths is 1, determining that the target co-operation mode is newly increased co-operation; or the like, or, alternatively,
when the video combination path number is multiple paths, displaying a co-performance selection page, wherein the co-performance selection page is provided with co-performance mode options, and the co-performance mode options comprise newly added options and replacement options for the specified video; when the triggering operation of the newly added option is detected, determining that the target co-performance mode is newly added co-performance; when the trigger operation of the replacement option is detected, determining that the target co-performance mode is the replacement co-performance of the specified video.
In one possible implementation manner, the second determining module is configured to:
when the target co-performance mode is a newly increased co-performance mode, determining that the at least one path of video is all videos in the target video;
and when the target co-performance mode is the replacement co-performance of the specified video, determining that the at least one path of video is the video except for the specified video in the target video.
In one possible implementation, the apparatus further includes:
and the preview module is used for previewing the at least one path of video in a preview window of the video shooting page according to the target rehearsal mode.
In one possible implementation, the preview module includes:
the first determining unit is used for determining the number of the sub-windows of the preview window according to the target rehearsal mode and the video combination path number;
a second determining unit, configured to determine, according to the number of the sub-windows, a sub-window layout of the preview window, where the sub-window layout is used to indicate an arrangement position of each sub-window in the preview window;
and the previewing unit is used for previewing the at least one path of video in the sub-window of the previewing window according to the layout of the sub-window.
In a possible implementation manner, the first determining unit is configured to:
when the target rehearsal mode is newly increased rehearsal, determining the number of the sub-windows of the preview window as the number of the video combination paths;
and when the target co-operation mode is replacement co-operation, determining that the number of the sub-windows of the preview window is the sum of the number of the video combination paths and 1.
In one possible implementation manner, the preview unit is configured to:
and when the target rehearsal mode is newly increased rehearsal, displaying all videos in the target videos in the sub-windows of the preview window according to the arrangement positions of the sub-windows indicated by the sub-window layout.
And when the target co-operation mode is the replacement co-operation of the specified video, displaying the videos except the specified video in the target video in the sub-window of the preview window according to the arrangement position of the sub-window indicated by the layout of the sub-window.
In one possible implementation, the preview module is further configured to: and previewing the local shooting picture in the preview window.
In a possible implementation manner, the first determining unit is configured to:
when the target rehearsal mode is newly increased rehearsal, determining the number of the sub-windows of the preview window as the number of the video combination paths plus 1;
and when the target co-operation mode is replacement co-operation, determining the number of the sub-windows of the preview window as the number of the video combination paths.
In a possible implementation manner, the preview unit is configured to:
when the target rehearsal mode is newly increased rehearsal, displaying the local shooting picture in a first sub-window of the preview window according to the arrangement position of each sub-window indicated by the sub-window layout; displaying all videos contained in the target video in a second sub-window of the preview window, wherein the second sub-window is a sub-window except the first sub-window in the preview window; or the like, or, alternatively,
when the target co-operation mode is the replacement co-operation of the specified video, displaying the local shooting picture in a third sub-window of the preview window according to the sub-window arrangement position indicated by the sub-window layout; and displaying videos, except the designated video, in the target video in a fourth sub-window of the preview window, wherein the fourth sub-window is a sub-window, except the third sub-window, in the preview window.
In a possible implementation manner, the target video includes a co-performance initiating video, the co-performance initiating video does not belong to the category of the specified video, and the co-performance initiating video is a path of video with the earliest recording time in the target video.
In a possible implementation manner, the first recording module is configured to:
acquiring the total duration of the target video;
and recording a local shot picture according to the total time length, wherein the recording time length of the locally recorded video is equal to the total time length.
In one possible implementation, the apparatus further includes:
and the preview playing module is used for synchronously playing the at least one path of video in the preview window in the process of recording the local shot picture.
In one possible implementation, the apparatus further includes:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a locally recorded audio source, and the audio source comprises environmental sound or an audio file;
and the second recording module is used for recording the local audio according to the audio source in the process of recording the local shot picture.
In one possible implementation manner, the second recording module is configured to:
when the audio source is the environmental sound, recording the environmental sound through a microphone in the recording process; taking the recorded environment sound as the local audio;
and when the audio source is an audio file, taking the audio file as the local audio.
In one possible implementation, the apparatus further includes:
the detection module is used for detecting whether the audio playing mode is the speaker playing mode in the process of recording the local audio;
and the adjusting module is used for adjusting the playing volume of the preview window to be lower than a preset threshold value when the audio playing mode is speaker playing.
In one possible implementation, the apparatus further includes:
the decoding module is used for decoding the locally recorded video when a special effect editing instruction for the locally recorded video is detected;
the video editing module is used for previewing the decoded video on a video editing page, and the video editing page comprises a plurality of special effect options for video editing;
an adding module, configured to add a corresponding special effect to the decoded video based on the operation on the multiple special effect options;
and the generating module is used for generating a local recording video with a special effect when the editing completion instruction is detected.
In a possible implementation manner, after obtaining the locally recorded video, the apparatus further includes:
the second acquisition module is used for acquiring an audio source of the locally recorded audio;
the third obtaining module is used for obtaining a lyric file corresponding to the audio file when the audio source is the audio file;
and the rendering module is used for rendering the lyrics of the local recorded video according to the audio file and the lyric file.
In one possible implementation manner, the generating module includes:
the splicing unit is used for splicing the local recorded video and the at least one path of video according to frames when a co-performance video release operation is detected;
and the generating unit is used for coding the spliced video stream according to a preset coding mode to generate the rehearsal video.
In a possible implementation manner, the splicing unit is configured to:
acquiring the picture layout of the co-performance video, wherein the picture layout of the co-performance video is used for indicating the picture arrangement position of a plurality of paths of videos in the co-performance video during playing;
and splicing each frame of picture at the time point corresponding to the local recorded video and the at least one path of video according to the picture arrangement position indicated by the picture layout of the co-performance video.
In one possible implementation, the apparatus further includes:
a fourth obtaining module, configured to obtain a local audio corresponding to the locally recorded video and at least one audio corresponding to the at least one video in a process of generating the rehearsal video;
and the audio mixing module is used for carrying out audio mixing processing on the local audio and the at least one path of audio to obtain the audio of the co-performance video.
In one possible implementation, the apparatus further includes:
the address acquisition module is used for acquiring the playing addresses of the multiple paths of videos contained in the chorus videos when the playing operation of the chorus videos is detected;
and the performance combining playing module is used for playing the performance combining video based on the picture layout of the performance combining video and the playing addresses of the multi-channel videos.
In one possible implementation, the apparatus further includes:
the uploading module is used for uploading the co-performance video to a server, and the server is used for adding 1 to the heat value of the co-performance video when effective playing of the co-performance video is detected;
a video set obtaining module, configured to obtain, when a request operation for a co-performance video set to which the co-performance video belongs is detected, the co-performance video set from the server, where the co-performance video set includes multiple co-performance videos having a same co-performance initiation identifier;
and the display module is used for displaying the multiple co-performance videos in the co-performance video page according to the sequence of the heat value from high to low.
According to the device provided by the embodiment of the invention, when a co-operation instruction of the target video is detected, a target co-operation mode is determined according to the video combination path number of the target video; and determining at least one path of video participating in the co-performance in the target video according to the target co-performance mode, and after shooting the local shot picture, generating the co-performance video according to the locally recorded video and the at least one path of video. Through carrying out the rehearsal with multichannel video for same and different users record through carrying out the rehearsal with local recording video and other videos, alright obtain the rehearsal video, and this kind of video recording mode is more nimble, has improved richness and the flexibility that content was recorded and content production, simultaneously, has reduced content production's cost.
It should be noted that: in the video recording apparatus provided in the foregoing embodiment, when recording a video, only the division of the functional modules is described as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the video recording apparatus and the embodiment of the method for recording a touch video provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments in detail and are not described herein again.
Fig. 5 is a schematic structural diagram of a terminal 500 according to an embodiment of the present invention. The terminal 500 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 500 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
In general, the terminal 500 includes: a processor 501 and a memory 502.
The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 501 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 501 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 501 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
In some embodiments, the terminal 500 may further optionally include: a peripheral interface 503 and at least one peripheral. The processor 501, memory 502 and peripheral interface 503 may be connected by a bus or signal lines. Each peripheral may be connected to the peripheral interface 503 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 504, touch screen display 505, camera 506, audio circuitry 507, positioning components 508, and power supply 509.
The peripheral interface 503 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 501 and the memory 502. In some embodiments, the processor 501, memory 502, and peripheral interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 501, the memory 502, and the peripheral interface 503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 504 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 504 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 504 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 504 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 504 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 505 is a touch display screen, the display screen 505 also has the ability to capture touch signals on or over the surface of the display screen 505. The touch signal may be input to the processor 501 as a control signal for processing. At this point, the display screen 505 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 505 may be one, providing the front panel of the terminal 500; in other embodiments, the display screens 505 may be at least two, respectively disposed on different surfaces of the terminal 500 or in a folded design; in still other embodiments, the display 505 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 500. Even more, the display screen 505 can be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 505 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 506 is used to capture images or video. Optionally, camera assembly 506 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 506 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The positioning component 508 is used for positioning the current geographic Location of the terminal 500 for navigation or LBS (Location Based Service). The Positioning component 508 may be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, the russian graves System, or the european union's galileo System.
In some embodiments, terminal 500 also includes one or more sensors 510. The one or more sensors 510 include, but are not limited to: acceleration sensor 511, gyro sensor 512, pressure sensor 513, fingerprint sensor 514, optical sensor 515, and proximity sensor 516.
The acceleration sensor 511 may detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 500. For example, the acceleration sensor 511 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 501 may control the touch screen 505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 511. The acceleration sensor 511 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 512 may detect a body direction and a rotation angle of the terminal 500, and the gyro sensor 512 may cooperate with the acceleration sensor 511 to acquire a 3D motion of the user on the terminal 500. The processor 501 may implement the following functions according to the data collected by the gyro sensor 512: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 513 may be disposed on a side bezel of the terminal 500 and/or an underlying layer of the touch display screen 505. When the pressure sensor 513 is disposed on the side frame of the terminal 500, a user's holding signal of the terminal 500 may be detected, and the processor 501 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 513. When the pressure sensor 513 is disposed at the lower layer of the touch display screen 505, the processor 501 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 505. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 514 is used for collecting a fingerprint of the user, and the processor 501 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 514, or the fingerprint sensor 514 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 501 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 514 may be provided on the front, back, or side of the terminal 500. When a physical button or a vendor Logo is provided on the terminal 500, the fingerprint sensor 514 may be integrated with the physical button or the vendor Logo.
The optical sensor 515 is used to collect the ambient light intensity. In one embodiment, the processor 501 may control the display brightness of the touch display screen 505 based on the ambient light intensity collected by the optical sensor 515. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 505 is turned down. In another embodiment, processor 501 may also dynamically adjust the shooting parameters of camera head assembly 506 based on the ambient light intensity collected by optical sensor 515.
A proximity sensor 516, also referred to as a distance sensor, is typically disposed on the front panel of the terminal 500. The proximity sensor 516 is used to collect the distance between the user and the front surface of the terminal 500. In one embodiment, when the proximity sensor 516 detects that the distance between the user and the front surface of the terminal 500 gradually decreases, the processor 501 controls the touch display screen 505 to switch from the bright screen state to the dark screen state; when the proximity sensor 516 detects that the distance between the user and the front surface of the terminal 500 becomes gradually larger, the processor 501 controls the touch display screen 505 to switch from the screen-rest state to the screen-on state.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not intended to be limiting of terminal 500 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, including instructions executable by a processor in a terminal to perform the video recording method in the above embodiments is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (46)
1. A method for video recording, the method comprising:
when a co-operation instruction for a target video is detected, determining a target co-operation mode according to the video combination path number of the target video, wherein the co-operation mode comprises a newly added co-operation and a replacement co-operation for a designated video in the target video, the path of video with the earliest recording time in the target video is a co-operation initiating video, and the designated video does not comprise the co-operation initiating video;
determining at least one path of video participating in the co-operation in the target video according to the target co-operation mode;
when the triggering operation of the recording instruction is detected on the video shooting page, recording a local shooting picture to obtain a local recorded video;
generating a co-performance video according to the local recorded video and the at least one path of video;
wherein, the determining a target rehearsal mode according to the video combination path number of the target video comprises: when the video combination path number is multiple paths, displaying a co-performance selection page, wherein the co-performance selection page is provided with co-performance mode options, and the co-performance mode options comprise newly added options and replacement options for the specified video; when the triggering operation of the newly added option is detected, determining that the target co-performance mode is newly added co-performance; when the trigger operation of the replacement option is detected, determining that the target co-performance mode is the replacement co-performance of the specified video.
2. The method according to claim 1, wherein the determining a target rehearsal mode according to the number of video combination paths of the target video further comprises:
and when the number of the video combined paths is 1, determining that the target co-operation mode is newly increased co-operation.
3. The method according to claim 1, wherein the determining at least one of the target videos participating in the co-performance according to the target co-performance manner comprises:
when the target co-performance mode is a newly increased co-performance mode, determining that the at least one path of video is all videos in the target video;
and when the target co-performance mode is the replacement co-performance of the specified video, determining that the at least one path of video is the video except for the specified video in the target video.
4. The method of claim 1, further comprising:
and previewing the at least one path of video in a preview window of the video shooting page according to the target rehearsal mode.
5. The method according to claim 4, wherein previewing the at least one video in a preview window of the video capture page according to the target rehearsal manner comprises:
determining the number of sub-windows of the preview window according to the target rehearsal mode and the video combination path number;
determining the layout of the sub-windows of the preview window according to the number of the sub-windows, wherein the layout of the sub-windows is used for indicating the arrangement positions of all the sub-windows in the preview window;
and previewing the at least one path of video in the child window of the preview window according to the child window layout.
6. The method of claim 5, wherein the determining the number of sub-windows of the preview window according to the target rehearsal mode and the video combining path number comprises:
when the target rehearsal mode is newly increased rehearsal, determining the number of the sub-windows of the preview window as the number of the video combination paths;
and when the target co-operation mode is replacement co-operation, determining that the number of the sub-windows of the preview window is the sum of the number of the video combination paths and 1.
7. The method according to claim 5, wherein previewing the at least one video in a sub-window of the preview window according to the sub-window layout comprises:
when the target rehearsal mode is newly increased rehearsal, displaying all videos in the target videos in the sub-windows of the preview window according to the arrangement positions of the sub-windows indicated by the sub-window layout;
and when the target co-operation mode is the replacement co-operation of the specified video, displaying the videos except the specified video in the target video in the sub-window of the preview window according to the arrangement position of the sub-window indicated by the layout of the sub-window.
8. The method of claim 5, further comprising:
and previewing the local shooting picture in the preview window.
9. The method of claim 8, wherein the determining the number of sub-windows of the preview window according to the target rehearsal mode and the video combining path number comprises:
when the target rehearsal mode is newly increased rehearsal, determining the number of the sub-windows of the preview window as the number of the video combination paths plus 1;
and when the target co-operation mode is replacement co-operation, determining the number of the sub-windows of the preview window as the number of the video combination paths.
10. The method according to claim 8, wherein previewing the at least one video in a sub-window of the preview window according to the sub-window layout comprises:
when the target rehearsal mode is newly increased rehearsal, displaying the local shooting picture in a first sub-window of the preview window according to the arrangement position of each sub-window indicated by the sub-window layout; displaying all videos contained in the target video in a second sub-window of the preview window, wherein the second sub-window is a sub-window except the first sub-window in the preview window; or the like, or, alternatively,
when the target co-operation mode is the replacement co-operation of the specified video, displaying the local shooting picture in a third sub-window of the preview window according to the sub-window arrangement position indicated by the sub-window layout; and displaying videos, except the designated video, in the target video in a fourth sub-window of the preview window, wherein the fourth sub-window is a sub-window, except the third sub-window, in the preview window.
11. The method of claim 1, wherein the recording the local shot comprises:
acquiring the total duration of the target video;
and recording a local shot picture according to the total time length, wherein the recording time length of the locally recorded video is equal to the total time length.
12. The method according to claim 4 or 8, characterized in that the method further comprises:
and synchronously playing the at least one path of video in the preview window in the process of recording the local shot picture.
13. The method of claim 1, further comprising:
acquiring a locally recorded audio source, wherein the audio source comprises environmental sound or an audio file;
and recording local audio according to the audio source in the process of recording the local shot picture.
14. The method of claim 13, wherein recording local audio according to the audio source comprises:
when the audio source is the environmental sound, recording the environmental sound through a microphone in the recording process; taking the recorded environment sound as the local audio;
and when the audio source is an audio file, taking the audio file as the local audio.
15. The method of claim 13, further comprising:
detecting whether an audio playing mode is a loudspeaker playing mode in the process of recording the local audio;
and when the audio playing mode is speaker playing, adjusting the playing volume of the preview window to be lower than a preset threshold value.
16. The method of claim 1, wherein after obtaining the locally recorded video, the method further comprises:
when a special effect editing instruction for the locally recorded video is detected, decoding the locally recorded video;
previewing the decoded video on a video editing page, wherein the video editing page comprises a plurality of special effect options for video editing;
adding corresponding special effects to the decoded video based on the operation on the plurality of special effect options;
and when the editing completion instruction is detected, generating a local recording video with a special effect.
17. The method of claim 1, wherein after obtaining the locally recorded video, the method further comprises:
acquiring an audio source of a locally recorded audio;
when the audio source is an audio file, acquiring a lyric file corresponding to the audio file;
and according to the audio file and the lyric file, performing lyric rendering on the locally recorded video.
18. The method of claim 1, wherein generating a rendition video based on the locally recorded video and the at least one video comprises:
when a co-performance video release operation is detected, splicing the local recorded video and the at least one path of video according to frames;
and coding the spliced video stream according to a preset coding mode to generate the rehearsal video.
19. The method of claim 18, wherein said splicing said locally recorded video and said at least one video on a frame-by-frame basis comprises:
acquiring the picture layout of the co-performance video, wherein the picture layout of the co-performance video is used for indicating the picture arrangement position of a plurality of paths of videos in the co-performance video during playing;
and splicing each frame of picture at the time point corresponding to the local recorded video and the at least one path of video according to the picture arrangement position indicated by the picture layout of the co-performance video.
20. The method of claim 1 or 18, further comprising:
in the process of generating the co-performance video, acquiring a local audio corresponding to the locally recorded video and at least one audio corresponding to the at least one video;
and carrying out sound mixing processing on the local audio and the at least one path of audio to obtain the audio of the rehearsal video.
21. The method according to claim 1 or 19, wherein after generating a co-performance video according to the locally recorded video and the at least one video, the method further comprises:
when the playing operation of the co-occurrence video is detected, the playing addresses of a plurality of paths of videos contained in the co-occurrence video are obtained;
and playing the co-performance video based on the picture layout of the co-performance video and the playing addresses of the multi-channel videos.
22. The method of claim 1, wherein after generating a performance video from the locally recorded video and the at least one video, the method further comprises:
uploading the chorus video to a server, wherein the server is used for adding 1 to the heat value of the chorus video when effective playing of the chorus video is detected;
when a request operation for a co-performance video set to which the co-performance video belongs is detected, acquiring the co-performance video set from the server, wherein the co-performance video set comprises a plurality of co-performance videos with the same co-performance initiation identifier;
and displaying the plurality of the co-performance videos in the co-performance video page according to the sequence of the heat value from high to low.
23. A video recording apparatus, characterized in that the apparatus comprises:
a first determining module, configured to determine a target rehearsal mode according to a video combination path number of a target video when a rehearsal instruction for the target video is detected, where the rehearsal mode includes a new rehearsal and a replacement rehearsal for a specified video in the target video, a path of video with the earliest recording time in the target video is a rehearsal initiating video, and the specified video does not include the rehearsal initiating video;
a second determining module, configured to determine, according to the target co-performance manner, at least one path of video participating in co-performance in the target video;
the first recording module is used for recording a local shooting picture to obtain a local recorded video when the triggering operation of the recording instruction is detected on the video shooting page;
the synthesis module is used for generating a co-performance video according to the local recorded video and the at least one path of video;
the first determination module is to:
when the video combination path number is multiple paths, displaying a co-performance selection page, wherein the co-performance selection page is provided with co-performance mode options, and the co-performance mode options comprise newly added options and replacement options for the specified video; when the triggering operation of the newly added option is detected, determining that the target co-performance mode is newly added co-performance; when the trigger operation of the replacement option is detected, determining that the target co-performance mode is the replacement co-performance of the specified video.
24. The apparatus of claim 23, wherein the first determining module is further configured to:
and when the number of the video combined paths is 1, determining that the target co-operation mode is newly increased co-operation.
25. The apparatus of claim 23, wherein the second determining module is configured to:
when the target co-performance mode is a newly increased co-performance mode, determining that the at least one path of video is all videos in the target video;
and when the target co-performance mode is the replacement co-performance of the specified video, determining that the at least one path of video is the video except for the specified video in the target video.
26. The apparatus of claim 23, further comprising:
and the preview module is used for previewing the at least one path of video in a preview window of the video shooting page according to the target rehearsal mode.
27. The apparatus of claim 26, wherein the preview module comprises:
the first determining unit is used for determining the number of the sub-windows of the preview window according to the target rehearsal mode and the video combination path number;
a second determining unit, configured to determine, according to the number of the sub-windows, a sub-window layout of the preview window, where the sub-window layout is used to indicate an arrangement position of each sub-window in the preview window;
and the previewing unit is used for previewing the at least one path of video in the sub-window of the previewing window according to the layout of the sub-window.
28. The apparatus of claim 27, wherein the first determining unit is configured to:
when the target rehearsal mode is newly increased rehearsal, determining the number of the sub-windows of the preview window as the number of the video combination paths;
and when the target co-operation mode is replacement co-operation, determining that the number of the sub-windows of the preview window is the sum of the number of the video combination paths and 1.
29. The apparatus of claim 27, wherein the preview unit is configured to:
when the target rehearsal mode is newly increased rehearsal, displaying all videos in the target videos in the sub-windows of the preview window according to the arrangement positions of the sub-windows indicated by the sub-window layout;
and when the target co-operation mode is the replacement co-operation of the specified video, displaying the videos except the specified video in the target video in the sub-window of the preview window according to the arrangement position of the sub-window indicated by the layout of the sub-window.
30. The apparatus of claim 27, wherein the preview module is further configured to: and previewing the local shooting picture in the preview window.
31. The apparatus of claim 30, wherein the first determining unit is configured to:
when the target rehearsal mode is newly increased rehearsal, determining the number of the sub-windows of the preview window as the number of the video combination paths plus 1;
and when the target co-operation mode is replacement co-operation, determining the number of the sub-windows of the preview window as the number of the video combination paths.
32. The apparatus of claim 30, wherein the preview unit is configured to:
when the target rehearsal mode is newly increased rehearsal, displaying the local shooting picture in a first sub-window of the preview window according to the arrangement position of each sub-window indicated by the sub-window layout; displaying all videos contained in the target video in a second sub-window of the preview window, wherein the second sub-window is a sub-window except the first sub-window in the preview window; or the like, or, alternatively,
when the target co-operation mode is the replacement co-operation of the specified video, displaying the local shooting picture in a third sub-window of the preview window according to the sub-window arrangement position indicated by the sub-window layout; and displaying videos, except the designated video, in the target video in a fourth sub-window of the preview window, wherein the fourth sub-window is a sub-window, except the third sub-window, in the preview window.
33. The apparatus of claim 23, wherein the first recording module is configured to:
acquiring the total duration of the target video;
and recording a local shot picture according to the total time length, wherein the recording time length of the locally recorded video is equal to the total time length.
34. The apparatus of claim 26 or 30, further comprising:
and the preview playing module is used for synchronously playing the at least one path of video in the preview window in the process of recording the local shot picture.
35. The apparatus of claim 23, further comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a locally recorded audio source, and the audio source comprises environmental sound or an audio file;
and the second recording module is used for recording the local audio according to the audio source in the process of recording the local shot picture.
36. The apparatus of claim 35, wherein the second recording module is configured to:
when the audio source is the environmental sound, recording the environmental sound through a microphone in the recording process; taking the recorded environment sound as the local audio;
and when the audio source is an audio file, taking the audio file as the local audio.
37. The apparatus of claim 35, further comprising:
the detection module is used for detecting whether the audio playing mode is the speaker playing mode in the process of recording the local audio;
and the adjusting module is used for adjusting the playing volume of the preview window to be lower than a preset threshold value when the audio playing mode is speaker playing.
38. The apparatus of claim 23, further comprising:
the decoding module is used for decoding the locally recorded video when a special effect editing instruction for the locally recorded video is detected;
the video editing module is used for previewing the decoded video on a video editing page, and the video editing page comprises a plurality of special effect options for video editing;
an adding module, configured to add a corresponding special effect to the decoded video based on the operation on the multiple special effect options;
and the generating module is used for generating a local recording video with a special effect when the editing completion instruction is detected.
39. The apparatus of claim 23, wherein after obtaining the locally recorded video, the apparatus further comprises:
the second acquisition module is used for acquiring an audio source of the locally recorded audio;
the third obtaining module is used for obtaining a lyric file corresponding to the audio file when the audio source is the audio file;
and the rendering module is used for rendering the lyrics of the local recorded video according to the audio file and the lyric file.
40. The apparatus of claim 23, wherein the synthesis module comprises:
the splicing unit is used for splicing the local recorded video and the at least one path of video according to frames when a co-performance video release operation is detected;
and the generating unit is used for coding the spliced video stream according to a preset coding mode to generate the rehearsal video.
41. The apparatus of claim 40, wherein the splicing unit is configured to:
acquiring the picture layout of the co-performance video, wherein the picture layout of the co-performance video is used for indicating the picture arrangement position of a plurality of paths of videos in the co-performance video during playing;
and splicing each frame of picture at the time point corresponding to the local recorded video and the at least one path of video according to the picture arrangement position indicated by the picture layout of the co-performance video.
42. The apparatus of claim 23 or 40, further comprising:
a fourth obtaining module, configured to obtain a local audio corresponding to the locally recorded video and at least one audio corresponding to the at least one video in a process of generating the rehearsal video;
and the audio mixing module is used for carrying out audio mixing processing on the local audio and the at least one path of audio to obtain the audio of the co-performance video.
43. The apparatus of claim 23 or 41, further comprising:
the address acquisition module is used for acquiring the playing addresses of the multiple paths of videos contained in the chorus videos when the playing operation of the chorus videos is detected;
and the performance combining playing module is used for playing the performance combining video based on the picture layout of the performance combining video and the playing addresses of the multi-channel videos.
44. The apparatus of claim 23, further comprising:
the uploading module is used for uploading the co-performance video to a server, and the server is used for adding 1 to the heat value of the co-performance video when effective playing of the co-performance video is detected;
a video set obtaining module, configured to obtain, when a request operation for a co-performance video set to which the co-performance video belongs is detected, the co-performance video set from the server, where the co-performance video set includes multiple co-performance videos having a same co-performance initiation identifier;
and the display module is used for displaying the multiple co-performance videos in the co-performance video page according to the sequence of the heat value from high to low.
45. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction that is loaded and executed by the processor to perform operations performed by the video recording method of any of claims 1-22.
46. A computer-readable storage medium having stored therein at least one instruction which is loaded and executed by a processor to perform operations performed by the video recording method of any one of claims 1 to 22.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810650485.7A CN108769561B (en) | 2018-06-22 | 2018-06-22 | Video recording method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810650485.7A CN108769561B (en) | 2018-06-22 | 2018-06-22 | Video recording method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108769561A CN108769561A (en) | 2018-11-06 |
CN108769561B true CN108769561B (en) | 2021-05-14 |
Family
ID=63976318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810650485.7A Active CN108769561B (en) | 2018-06-22 | 2018-06-22 | Video recording method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108769561B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109413352B (en) * | 2018-11-08 | 2020-06-23 | 北京微播视界科技有限公司 | Video data processing method, device, equipment and storage medium |
CN109348281B (en) * | 2018-11-08 | 2020-02-21 | 北京微播视界科技有限公司 | Video processing method, video processing device, computer equipment and storage medium |
CN109348276B (en) * | 2018-11-08 | 2019-12-17 | 北京微播视界科技有限公司 | video picture adjusting method and device, computer equipment and storage medium |
CN109348155A (en) * | 2018-11-08 | 2019-02-15 | 北京微播视界科技有限公司 | Video recording method, device, computer equipment and storage medium |
CN109547711A (en) | 2018-11-08 | 2019-03-29 | 北京微播视界科技有限公司 | Image synthesizing method, device, computer equipment and readable storage medium storing program for executing |
CN109525886B (en) | 2018-11-08 | 2020-07-07 | 北京微播视界科技有限公司 | Method, device and equipment for controlling video playing speed and storage medium |
CN109862412B (en) * | 2019-03-14 | 2021-08-13 | 广州酷狗计算机科技有限公司 | Method and device for video co-shooting and storage medium |
CN111866404B (en) * | 2019-04-25 | 2022-04-29 | 华为技术有限公司 | Video editing method and electronic equipment |
CN110475086B (en) * | 2019-07-23 | 2021-11-16 | 咪咕动漫有限公司 | Video recording method and system, server and terminal |
CN110708573B (en) * | 2019-10-17 | 2022-06-07 | 腾讯科技(深圳)有限公司 | Video publishing method and device |
CN111225291B (en) * | 2020-01-14 | 2022-02-18 | Oppo广东移动通信有限公司 | Video creation method, device, terminal equipment and storage medium |
CN111355930B (en) * | 2020-03-16 | 2021-10-15 | 浙江大华技术股份有限公司 | Analog video processing method and system, combiner equipment and splitter equipment |
CN112230812A (en) | 2020-10-16 | 2021-01-15 | 北京字节跳动网络技术有限公司 | Multimedia data processing method and device, electronic equipment and storage medium |
CN113497894B (en) * | 2021-05-28 | 2023-08-22 | 影石创新科技股份有限公司 | Video shooting method, device, terminal and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6196839B2 (en) * | 2013-08-23 | 2017-09-13 | 株式会社第一興商 | A communication karaoke system characterized by voice switching processing during communication duets |
JP6112363B2 (en) * | 2014-01-31 | 2017-04-12 | ブラザー工業株式会社 | Karaoke system and karaoke device |
CN107613242A (en) * | 2017-09-12 | 2018-01-19 | 宇龙计算机通信科技(深圳)有限公司 | Video conference processing method and terminal, server |
CN107920274B (en) * | 2017-10-27 | 2020-08-04 | 优酷网络技术(北京)有限公司 | Video processing method, client and server |
-
2018
- 2018-06-22 CN CN201810650485.7A patent/CN108769561B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108769561A (en) | 2018-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108769561B (en) | Video recording method and device | |
CN110336960B (en) | Video synthesis method, device, terminal and storage medium | |
CN109302538B (en) | Music playing method, device, terminal and storage medium | |
CN109756784B (en) | Music playing method, device, terminal and storage medium | |
CN108391171B (en) | Video playing control method and device, and terminal | |
CN110267067B (en) | Live broadcast room recommendation method, device, equipment and storage medium | |
CN107908929B (en) | Method and device for playing audio data | |
CN109033335B (en) | Audio recording method, device, terminal and storage medium | |
CN108538302B (en) | Method and apparatus for synthesizing audio | |
CN111065001B (en) | Video production method, device, equipment and storage medium | |
CN111061405B (en) | Method, device and equipment for recording song audio and storage medium | |
CN109068160B (en) | Method, device and system for linking videos | |
CN109587549B (en) | Video recording method, device, terminal and storage medium | |
CN110290392B (en) | Live broadcast information display method, device, equipment and storage medium | |
CN109743461B (en) | Audio data processing method, device, terminal and storage medium | |
CN111083526B (en) | Video transition method and device, computer equipment and storage medium | |
CN109144346B (en) | Song sharing method and device and storage medium | |
CN108922506A (en) | Song audio generation method, device and computer readable storage medium | |
CN111711838B (en) | Video switching method, device, terminal, server and storage medium | |
CN110266982B (en) | Method and system for providing songs while recording video | |
CN110868636B (en) | Video material intercepting method and device, storage medium and terminal | |
CN109982129B (en) | Short video playing control method and device and storage medium | |
CN110996167A (en) | Method and device for adding subtitles in video | |
CN111031394B (en) | Video production method, device, equipment and storage medium | |
CN110808021B (en) | Audio playing method, device, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220331 Address after: 4119, 41st floor, building 1, No.500, middle section of Tianfu Avenue, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610000 Patentee after: Chengdu kugou business incubator management Co.,Ltd. Address before: No. 315, Huangpu Avenue middle, Tianhe District, Guangzhou City, Guangdong Province Patentee before: GUANGZHOU KUGOU COMPUTER TECHNOLOGY Co.,Ltd. |