CN109005359B - Video recording method, apparatus and storage medium - Google Patents

Video recording method, apparatus and storage medium Download PDF

Info

Publication number
CN109005359B
CN109005359B CN201811287581.6A CN201811287581A CN109005359B CN 109005359 B CN109005359 B CN 109005359B CN 201811287581 A CN201811287581 A CN 201811287581A CN 109005359 B CN109005359 B CN 109005359B
Authority
CN
China
Prior art keywords
video
recording
target audio
stopping
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811287581.6A
Other languages
Chinese (zh)
Other versions
CN109005359A (en
Inventor
夏佳权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201811287581.6A priority Critical patent/CN109005359B/en
Publication of CN109005359A publication Critical patent/CN109005359A/en
Application granted granted Critical
Publication of CN109005359B publication Critical patent/CN109005359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a video recording method, a video recording device and a storage medium, and belongs to the technical field of multimedia. In the invention, because the first beat point is any one of the beat points included in the target audio, when the video is recorded, the recording of the video and the playing of the target audio can be stopped when a certain beat point of the target audio is played, and the playing of the target audio and the recording of the video are continued after the stopping, so that a user has enough time to think about the action corresponding to the beat point, thereby improving the ornamental value of the finally recorded video.

Description

Video recording method, apparatus and storage medium
Technical Field
The present invention relates to the field of multimedia technologies, and in particular, to a video recording method, apparatus, and storage medium.
Background
The progress of science and technology makes people's entertainment more and more diversified. The method of recording and uploading videos to the network is widely accepted as a highly entertaining entertainment method, and how to record high-quality videos is also a problem to be solved.
Disclosure of Invention
Embodiments of the present invention provide a video recording method, an apparatus, and a storage medium, which enable a user to accurately perform a corresponding action according to a beat point of an accompaniment audio, thereby improving the enjoyment of a recorded video. The technical scheme is as follows:
in a first aspect, a video recording method is provided, and the method includes:
when a video recording instruction is detected, playing a target audio to prompt a user to initiate a corresponding action according to the target audio and recording a video for the user;
when the target audio is played to a first beat point, stopping recording the video and playing the target audio, wherein the first beat point is one of a plurality of beat points included in the target audio;
and when the video is determined to be required to be recorded continuously, continuing to play the target audio and recording the video continuously.
Optionally, the determining that the video recording needs to be continued currently includes:
when a video recording continuing instruction is detected, determining that the video is required to be recorded continuously, wherein the video recording instruction is triggered by the user through a preset operation.
Optionally, after stopping recording the video and stopping playing the target audio, the method further includes:
starting a first timer;
accordingly, the determining that the video recording is required to continue currently includes:
and when the timing duration of the first timer is a first reference duration, determining that the video needs to be recorded continuously.
Optionally, before continuing to play the target audio and recording the video, the method further includes:
when the fact that the video needs to be recorded continuously at present is determined, a second timer is started, countdown prompt information is displayed, and the countdown prompt information is used for indicating a difference value between a second reference time length and the timing time length of the second timer;
and when the timing duration of the second timer is the second reference duration, executing the operation of continuously playing the target audio and continuously recording the video.
Optionally, after the video recording and the target audio playing continue, the method further includes:
when a video recording stopping instruction is detected, stopping playing the target audio and stopping recording the video;
or stopping recording the video when the target audio is played.
In a second aspect, there is provided a video recording apparatus, the apparatus comprising:
the recording module is used for playing a target audio when a video recording instruction is detected so as to prompt a user to initiate corresponding action according to the target audio and record a video for the user;
the first stopping module is used for stopping recording the video and stopping playing the target audio when the target audio is played to a first beat point, wherein the first beat point is one of a plurality of beat points included in the target audio;
and the playing module is used for continuously playing the target audio and continuously recording the video when the fact that the video is required to be continuously recorded currently is determined.
Optionally, the playing module includes:
the first determining unit is used for determining that the video needs to be continuously recorded when a video continuous recording instruction is detected, and the video recording instruction is triggered by the user through preset operation.
Optionally, the apparatus further comprises:
the first starting module is used for starting a first timer;
accordingly, the playing module comprises:
and the second determining unit is used for determining that the video needs to be recorded continuously when the timing duration of the first timer is the first reference duration.
Optionally, the apparatus further comprises:
the second starting module is used for starting a second timer and displaying countdown prompting information when the fact that the video needs to be recorded continuously at present is determined, wherein the countdown prompting information is used for indicating a difference value between a second reference time length and the timing time length of the second timer;
and the playing module is further configured to execute an operation of continuing to play the target audio and recording the video when the timing duration of the second timer is the second reference duration.
Optionally, the apparatus further comprises:
the second stopping module is used for stopping playing the target audio and stopping recording the video when a video recording stopping instruction is detected; or stopping recording the video when the target audio is played.
In a third aspect, a video recording apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of any of the methods of the first aspect described above.
In a fourth aspect, a computer-readable storage medium has stored thereon instructions which, when executed by a processor, implement the steps of any of the methods of the first aspect described above.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of any of the methods of the first aspect described above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the invention, because the first beat point is any one of the beat points included in the target audio, when the video is recorded, the recording of the video and the playing of the target audio can be stopped when a certain beat point of the target audio is played, and the playing of the target audio and the recording of the video are continued after the stopping, so that a user has enough time to think about the action corresponding to the beat point, thereby improving the ornamental value of the finally recorded video.
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 schematic structural diagram of a video recording apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of another video recording apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal 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, which is applied in a terminal, and as shown in fig. 1, the method includes the following steps:
step 101: and when a video recording instruction is detected, playing the target audio to prompt a user to initiate corresponding action according to the target audio, and recording a video for the user.
The video recording instruction is triggered by a user through a preset operation, and the preset operation can be a click operation, a voice operation or a sliding operation.
For example, a "start recording" option is displayed on a display interface of the terminal, and when the terminal detects a click operation of a user on the "start recording" option, that is, the terminal detects a video recording instruction. For another example, the terminal may receive the voice message, and when the terminal receives the voice message "start recording", that is, the terminal detects the video recording instruction. For another example, the terminal is configured with a remote control device, the remote control device is provided with a "start recording" button, and when the terminal detects that the user clicks the "start recording" button, that is, the terminal detects a video recording instruction.
In addition, the terminal may be a recording device with a player or a recording device without a player. When the terminal is provided with the player, the terminal may be a mobile phone, a tablet computer, or the like, and the embodiment of the present invention is not limited herein. When the terminal is not provided with the player, the terminal is connected with the playback equipment through the network. Therefore, the target audio can be played in the following two cases:
(1) the terminal directly plays the target audio through a player carried by the terminal.
(2) The terminal is connected with the playback equipment through the network and controls the playback equipment to play the target audio.
The playback device may be a sound box, a speaker, or the like, and the embodiment of the present invention is not limited herein.
In the case (1), the terminal itself directly plays the target audio, and the two operations of playing the target audio and recording the video are executed by the same device substantially without using other devices, thereby saving the operation of the user. In the case (2), when the playback device is controlled to play the target audio, the effect of playing the target audio by the playback device may be better than the effect of playing the target audio by the recording device, so that the acquired target audio can be clearer in the process of recording the video by the recording device.
In addition, the target audio needs to be selected before playing the target audio. The implementation manner of selecting the target audio frequency may be: the display interface of the terminal displays a plurality of audios, each audio has a 'selection' option, and when the terminal detects that the 'selection' option of a certain audio is clicked, the audio is taken as a target audio.
Step 102: and when the target audio is played to a first beat point, stopping recording the video and playing the target audio, wherein the first beat point is one of a plurality of beat points included in the target audio.
Generally, in order to improve the enjoyment and entertainment of the recorded video, a user may make a corresponding action according to a beat point of a target audio, and a recording device records the video for the user. If the following three situations occur, the final recorded video may not be effective.
(1) The rhythm of the user is not strong, and the beat point of the target audio cannot be grasped. (2) The target audio is played fast, and the user cannot follow the beat point of the target audio to do corresponding actions. (3) The user does not think of the action to be made in advance, and does not have time to think what action should be made at a certain beat point of the target audio.
For the above-described reason, when the target audio is played to the first beat point, recording of the video is stopped and playing of the target audio is stopped. For the user in the case (1), the user is enabled to accurately grasp the beat point of the target audio. In case (2), since the target audio stops being played at the first beat point of the target audio, the user can follow the beat point of the target audio to perform a corresponding action. For the case (3), the playing of the target audio is stopped at the first beat point of the target audio, so that the user has time to think about the action corresponding to the beat point.
And marking a playing time point corresponding to the first beat point of the target audio before the target audio is played. At this time, the implementation manner of playing the target audio to the first beat point may be: and when the current time is played to the playing time point corresponding to the first beat point, determining that the target audio is played to the first beat point.
For example, the duration of the target audio is 3 minutes, wherein the playing time point corresponding to the first beat point is 2 minutes and 10 seconds, and therefore, in the process of playing the target audio, when the current time is played to the position of 2 minutes and 10 seconds of the target audio, it is determined that the target audio is played to the first beat point.
The playing time point corresponding to the first beat point of the target audio may be marked manually, or may be automatically marked by the terminal. The implementation manner of the playing time point corresponding to the first beat point of the terminal marked target audio may be as follows: the terminal identifies a first beat point in the target audio according to the audio characteristics of the target audio, determines a playing time point corresponding to the identified first beat point on a playing time axis of the target audio, and marks the playing time point corresponding to the first beat point on the playing time axis of the target audio.
Step 103: and when the video is determined to be required to be recorded continuously, continuing playing the target audio and recording the video continuously.
Wherein, determining that the video is required to be recorded continuously at present, there may be two implementation manners:
(1) when a video recording command is detected, determining that the video needs to be recorded continuously, wherein the video recording command is triggered by a user through preset operation.
For example, after the terminal stops recording the video and stops playing the target audio, a "continue recording" option is displayed in a display interface of the terminal, and when the terminal detects that the user clicks the "continue recording" option, it is determined that a video continue recording instruction is detected.
In the implementation mode (1), since it is determined that the video needs to be continuously recorded only when the continuous recording instruction is detected, and the detected continuous recording instruction is detected according to the preset operation of the user, the user can determine the time for continuously recording the video according to the time for the user to act. Further, the user can directly perform the preset operation after the action corresponding to the first beat point is made, so that the time of the user can be saved.
(2) After stopping recording the video and stopping playing the target audio, the method may include: a first timer is started. Correspondingly, the implementation manner of determining that the video needs to be continuously recorded currently may be that, when the timing duration of the first timer is the first reference duration, the video needs to be continuously recorded.
The first reference time period may be 10 seconds, 15 seconds, and the like, and the embodiment of the present invention is not limited herein.
For example, after stopping recording the video and stopping playing the target audio, starting a first timer, and when the first timer counts 10 seconds, the terminal determines that the video needs to be recorded continuously.
In the implementation mode (2), after the first reference time length passes, the terminal can automatically determine that the video needs to be recorded continuously, and the user does not need to perform preset operation, so that the operation of the user can be reduced.
In addition, in both implementations described above, after it has been determined that the video needs to be continuously recorded, a buffer time may be set in order to allow the user to have a psychological preparation to know that the video is about to be continuously recorded after the user has made a corresponding action at the first tempo point until the video is formally recorded. That is, before continuing to play the target audio and recording the video, the method may further include: and when the video is determined to be continuously recorded at present, starting a second timer, and displaying countdown prompting information, wherein the countdown prompting information is used for indicating a difference value between the second reference time length and the timing time length of the second timer. And when the timing duration of the second timer is the second reference duration, executing the operation of continuously playing the target audio and continuously recording the video.
The operation of starting the second timer is particularly advantageous for the implementation (1). After step 102, the terminal triggers a continuous recording instruction according to a preset operation made by the user, at this time, before the user makes the preset operation, the user has made a motion corresponding to the first beat point, and then the user makes the preset operation, so that after the user makes the preset operation, the motion of the preset operation needs to be restored to the motion corresponding to the first beat point. The buffering time is set, so that the user has time to restore the preset operation action to the action corresponding to the first beat point, and the user is provided with a psychological preparation to know that the video recording is about to continue after the action is restored.
The second reference time period may be 3 seconds, 5 seconds, and the like, and the embodiment of the present invention is not limited herein.
In addition, combining the set second reference duration with the above two implementation manners, step 103 may specifically have the following two cases:
(1) and after the terminal stops playing the target audio and recording the video at the first beat point, the user can conveniently make corresponding actions according to the first beat point. And then when the terminal detects a continuous shooting instruction triggered by the user through a preset operation, the terminal starts a second timer, and the second timer displays countdown prompt information to prompt the user to record. And when the countdown timing duration reaches a second reference duration, the terminal continuously plays the target audio and continuously records the video.
For example, the terminal stops playing the target audio and recording the video at the first beat point, the user performs a leg kicking action according to the first beat point, then when the terminal detects a continuous recording option displayed on a display interface of the terminal, at this time, the terminal starts to display countdown prompting information so that the user can recover to the leg kicking action, and after the second timer finishes timing, the terminal continues playing the target audio and continuously recording the video.
(2) And after the terminal stops playing the target audio and recording the video at the first beat point, starting a first timer, and starting timing by the first timer so that a user can conveniently make corresponding actions according to the first beat point. When the timing duration of the first timer reaches a first reference duration, the terminal determines to continue recording the video, then the terminal starts a second timer, and the second timer displays countdown information to prompt a user that recording is about to be performed. And when the timing duration of the second timer reaches a second reference duration, the terminal continuously plays the target audio and continuously records the video.
For example, after the terminal stops playing the target audio and recording the video at the first beat point, the first timer is started, when the first timer times for 10 seconds, the terminal automatically determines that the video needs to be continuously recorded, at this time, the terminal starts the second timer, the second timer starts displaying countdown information, and if the set countdown is 3 seconds, after the timing duration of the second timer reaches 3 seconds, the terminal continuously plays the target audio and continuously records the video.
In addition, after the implementation (2), the second reference time period may not be set, that is, the second timer is not set. At this time, in implementation manner (2), after the terminal starts the first timer and the first timer times the third reference duration, the terminal starts to display the countdown prompting information, and after the countdown is finished, the terminal plays the target audio and continues to record the video. Wherein the third reference duration is less than the first reference duration.
For example, after the first timer is started, if the countdown is started after the set first timer times for 7 seconds, and the set countdown time is set to 3 seconds, the terminal starts the first timer after stopping playing the target audio and recording the video at the first beat point, the first timer starts timing, when the first timer times for 7 seconds, the terminal starts displaying the countdown prompting information, and after the countdown times for 3 seconds, the terminal continues playing the target audio and continuously recording the video.
In addition, recording a video is not unlimited, and sometimes needs to be stopped according to different situations, so that recording a video is stopped in different situations after the video is continuously recorded and the target audio is continuously played. In general, there may be two cases:
(1) and when a video recording stopping instruction is detected, stopping playing the target audio and stopping recording the video.
(2) And when the target audio playing is finished, stopping recording the video.
Wherein, for the case (1), the video recording stop instruction is triggered by a user through a preset operation. At this time, the user can decide whether to continue recording the video according to the situation of the user, and the user has certain autonomy. For the case (2), when the target audio is played, the recording device stops recording the video, and the recording device does not stop recording due to other reasons, so that the integrity of the finally recorded video is ensured.
For example, a display interface of the terminal has an option of "stop recording", and when a user suddenly happens in the process of recording a video, the terminal detects that the user clicks the option of "stop recording", and the terminal stops recording the video.
In addition, in the above steps 102 and 103, the terminal only stops playing the target audio and recording the video at the first beat point of the target audio, and the user makes a corresponding action for the first beat point, and the terminal continues playing the target audio and recording the video. The user can accurately make corresponding actions for each beat point of the target audio, or the user can accurately make corresponding actions for partial beat points of the target audio, so that the enjoyment of the recorded video can be further improved.
In the invention, because the first beat point is any one of the beat points included in the target audio, when the video is recorded, the recording of the video and the playing of the target audio can be stopped when a certain beat point of the target audio is played, and the playing of the target audio and the recording of the video are continued after the stopping, so that a user has enough time to think about the action corresponding to the beat point, thereby improving the ornamental value of the finally recorded video.
Fig. 2 is a schematic diagram of a video recording apparatus according to an embodiment of the present invention, and as shown in fig. 2, the apparatus includes:
the recording module 201 is configured to, when a video recording instruction is detected, play a target audio to prompt a user to initiate a corresponding action according to the target audio, and record a video for the user;
the first stopping module 202 is configured to stop recording a video and stop playing a target audio when the target audio is played to a first beat point, where the first beat point is one of multiple beat points included in the target audio;
and the playing module 203 is used for continuing to play the target audio and recording the video when the video is determined to be required to be recorded continuously.
Optionally, the playing module 203 includes:
the first determining unit is used for determining that the video needs to be continuously recorded when a video continuous recording instruction is detected, and the video recording instruction is triggered by a user through preset operation.
Optionally, the apparatus further comprises:
the first starting module is used for starting a first timer;
accordingly, the play module includes:
and the second determining unit is used for determining that the video needs to be recorded continuously when the timing duration of the first timer is the first reference duration.
Optionally, the apparatus further comprises:
the second starting module is used for starting a second timer and displaying countdown prompting information when the fact that the video needs to be recorded continuously at present is determined, wherein the countdown prompting information is used for indicating a difference value between a second reference time length and the timing time length of the second timer;
and the playing module is further used for executing the operation of continuously playing the target audio and continuously recording the video when the timing duration of the second timer is the second reference duration.
Optionally, as shown in fig. 3, the apparatus further comprises:
a second stopping module 204, configured to stop playing the target audio and stop recording the video when detecting the video recording stopping instruction; or stopping recording the video when the target audio playing is finished.
In the invention, because the first beat point is any one of the beat points included in the target audio, when the video is recorded, the recording of the video and the playing of the target audio can be stopped when a certain beat point of the target audio is played, and the playing of the target audio and the recording of the video are continued after the stopping, so that a user has enough time to think about the action corresponding to the beat point, thereby improving the ornamental value of the finally recorded video.
It should be noted that: in the video recording apparatus provided in the foregoing embodiment, only the division of the functional modules is described as an example, and in practical applications, the functions may be distributed 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 video recording method 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. 4 shows a block diagram of a terminal 400 according to an exemplary embodiment of the present invention. The terminal 400 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. The terminal 400 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
Generally, the terminal 400 includes: a processor 401 and a memory 402.
Processor 401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 401 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 401 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 401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 401 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 402 may include one or more computer-readable storage media, which may be non-transitory. Memory 402 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 402 is used to store at least one instruction for execution by processor 401 to implement a video recording method as provided by method embodiments of the present invention.
In some embodiments, the terminal 400 may further optionally include: a peripheral interface 403 and at least one peripheral. The processor 401, memory 402 and peripheral interface 403 may be connected by bus or signal lines. Each peripheral may be connected to the peripheral interface 403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 404, a touch screen display 405, a camera assembly 406, an audio circuit 407, a positioning assembly 408, and a power supply 409.
The peripheral interface 403 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 401 and the memory 402. In some embodiments, processor 401, memory 402, and peripheral interface 403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 401, the memory 402 and the peripheral interface 403 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 404 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 404 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 404 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 404 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 404 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 404 may further include NFC (Near Field Communication) related circuits, which are not limited in the present invention.
The display screen 405 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 405 is a touch display screen, the display screen 405 also has the ability to capture touch signals on or over the surface of the display screen 405. The touch signal may be input to the processor 401 as a control signal for processing. At this point, the display screen 405 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 405 may be one, providing the front panel of the terminal 400; in other embodiments, the display screen 405 may be at least two, respectively disposed on different surfaces of the terminal 400 or in a folded design; in still other embodiments, the display 405 may be a flexible display disposed on a curved surface or a folded surface of the terminal 400. Even further, the display screen 405 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display screen 405 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 406 is used to capture images or video. Optionally, camera assembly 406 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 406 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 audio circuit 407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 401 for processing, or inputting the electric signals to the radio frequency circuit 404 for realizing voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 400. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 401 or the radio frequency circuit 404 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 407 may also include a headphone jack.
The positioning component 408 is used to locate the current geographic position of the terminal 400 for navigation or LBS (location based Service). The positioning component 408 may be a positioning component based on the GPS (global positioning System) of the united states, the beidou System of china, the graves System of russia, or the galileo System of the european union.
The power supply 409 is used to supply power to the various components in the terminal 400. The power source 409 may be alternating current, direct current, disposable or rechargeable. When power source 409 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 400 also includes one or more sensors 410. The one or more sensors 410 include, but are not limited to: acceleration sensor 411, gyro sensor 412, pressure sensor 413, fingerprint sensor 414, optical sensor 415, and proximity sensor 416.
The acceleration sensor 411 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 400. For example, the acceleration sensor 411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 401 may control the touch display screen 405 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 411. The acceleration sensor 411 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 412 may detect a body direction and a rotation angle of the terminal 400, and the gyro sensor 412 may cooperate with the acceleration sensor 411 to acquire a 3D motion of the terminal 400 by the user. From the data collected by the gyro sensor 412, the processor 401 may implement the following functions: 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 413 may be disposed on a side bezel of the terminal 400 and/or a lower layer of the touch display screen 405. When the pressure sensor 413 is disposed on the side frame of the terminal 400, a user's holding signal to the terminal 400 can be detected, and the processor 401 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 413. When the pressure sensor 413 is disposed at the lower layer of the touch display screen 405, the processor 401 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 405. 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 414 is used for collecting a fingerprint of the user, and the processor 401 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 414, or the fingerprint sensor 414 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 401 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 414 may be disposed on the front, back, or side of the terminal 400. When a physical key or vendor Logo is provided on the terminal 400, the fingerprint sensor 414 may be integrated with the physical key or vendor Logo.
The optical sensor 415 is used to collect the ambient light intensity. In one embodiment, the processor 401 may control the display brightness of the touch display screen 405 based on the ambient light intensity collected by the optical sensor 415. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 405 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 405 is turned down. In another embodiment, the processor 401 may also dynamically adjust the shooting parameters of the camera assembly 406 according to the ambient light intensity collected by the optical sensor 415.
A proximity sensor 416, also known as a distance sensor, is typically disposed on the front panel of the terminal 400. The proximity sensor 416 is used to collect the distance between the user and the front surface of the terminal 400. In one embodiment, when the proximity sensor 416 detects that the distance between the user and the front surface of the terminal 400 gradually decreases, the processor 401 controls the touch display screen 405 to switch from the bright screen state to the dark screen state; when the proximity sensor 416 detects that the distance between the user and the front surface of the terminal 400 gradually becomes larger, the processor 401 controls the touch display screen 405 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 4 is not intended to be limiting of terminal 400 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.
An embodiment of the present invention further provides a non-transitory computer-readable storage medium, where instructions in the storage medium are executed by a processor of a mobile terminal, so that the mobile terminal can execute the video recording method provided in the embodiment shown in fig. 1.
Embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the video recording method provided in the embodiment shown in fig. 1.
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.
In summary, the present invention is only a preferred embodiment, and not intended to limit the present invention, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A video recording method is applied to a terminal, and the method comprises the following steps:
when a video recording instruction is detected, playing a target audio to prompt a user to initiate a corresponding action according to the target audio and recording a video for the user;
when the target audio is played to a first beat point, stopping recording the video and stopping playing the target audio, wherein the first beat point is one of a plurality of beat points included in the target audio, and the terminal is used for stopping recording the video and stopping playing the target audio at each beat point or a part of beat points in the plurality of beat points included in the target audio;
when the fact that the video is required to be recorded continuously at present is determined, the target audio is played continuously and the video is recorded continuously;
and when a video recording stopping instruction is detected, stopping playing the target audio and recording the video, or stopping recording the video when the target audio is played.
2. The method of claim 1, wherein the determining that video recording is currently required to continue comprises:
when a video recording continuing instruction is detected, determining that the video is required to be recorded continuously, wherein the video recording instruction is triggered by the user through a preset operation.
3. The method of claim 1, wherein after stopping recording video and stopping playing the target audio, further comprising:
starting a first timer;
accordingly, the determining that the video recording is required to continue currently includes:
and when the timing duration of the first timer is a first reference duration, determining that the video needs to be recorded continuously.
4. The method of any of claims 1 to 3, wherein before continuing to play the target audio and recording the video, further comprising:
when the fact that the video needs to be recorded continuously at present is determined, a second timer is started, countdown prompt information is displayed, and the countdown prompt information is used for indicating a difference value between a second reference time length and the timing time length of the second timer;
and when the timing duration of the second timer is the second reference duration, executing the operation of continuously playing the target audio and continuously recording the video.
5. A video recording apparatus, applied to a terminal, the apparatus comprising:
the recording module is used for playing a target audio when a video recording instruction is detected so as to prompt a user to initiate corresponding action according to the target audio and record a video for the user;
the terminal comprises a first stopping module, a second stopping module and a third stopping module, wherein the first stopping module is used for stopping recording videos and stopping playing the target audio when the target audio is played to a first beat point, the first beat point is one of a plurality of beat points included by the target audio, and the terminal is used for stopping recording videos and stopping playing the target audio at each beat point or partial beat points of the plurality of beat points included by the target audio;
the playing module is used for continuously playing the target audio and continuously recording the video when the fact that the video is required to be continuously recorded at present is determined;
the second stopping module is used for stopping playing the target audio and stopping recording the video when a video recording stopping instruction is detected; or stopping recording the video when the target audio is played.
6. The apparatus of claim 5, wherein the play module comprises:
the first determining unit is used for determining that the video needs to be continuously recorded when a video continuous recording instruction is detected, and the video recording instruction is triggered by the user through preset operation.
7. The apparatus of claim 5, wherein the apparatus further comprises:
the first starting module is used for starting a first timer;
accordingly, the playing module comprises:
and the second determining unit is used for determining that the video needs to be recorded continuously when the timing duration of the first timer is the first reference duration.
8. The apparatus of any of claims 5 to 7, further comprising:
the second starting module is used for starting a second timer and displaying countdown prompting information when the fact that the video needs to be recorded continuously at present is determined, wherein the countdown prompting information is used for indicating a difference value between a second reference time length and the timing time length of the second timer;
and the playing module is further configured to execute an operation of continuing to play the target audio and recording the video when the timing duration of the second timer is the second reference duration.
9. A video recording apparatus, characterized in that the apparatus comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of any one of the method of claim 1 to claim 4.
10. A computer readable storage medium having stored thereon instructions which, when executed by a processor, carry out the steps of the method of any one of claims 1 to 4.
CN201811287581.6A 2018-10-31 2018-10-31 Video recording method, apparatus and storage medium Active CN109005359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811287581.6A CN109005359B (en) 2018-10-31 2018-10-31 Video recording method, apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811287581.6A CN109005359B (en) 2018-10-31 2018-10-31 Video recording method, apparatus and storage medium

Publications (2)

Publication Number Publication Date
CN109005359A CN109005359A (en) 2018-12-14
CN109005359B true CN109005359B (en) 2020-11-03

Family

ID=64590129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811287581.6A Active CN109005359B (en) 2018-10-31 2018-10-31 Video recording method, apparatus and storage medium

Country Status (1)

Country Link
CN (1) CN109005359B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413342B (en) 2018-12-21 2021-01-08 广州酷狗计算机科技有限公司 Audio and video processing method and device, terminal and storage medium
CN109905615B (en) * 2019-02-20 2021-02-26 浙江工业大学 Full-automatic cooperation method for audio playing and video recording

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967900A (en) * 2015-05-04 2015-10-07 腾讯科技(深圳)有限公司 Video generating method and video generating device
CN105812695A (en) * 2014-12-30 2016-07-27 北京鸿合智能系统股份有限公司 Intelligent recording and broadcasting method and system
CN108012101A (en) * 2017-11-30 2018-05-08 广州市百果园信息技术有限公司 Video recording method and video recording terminal
CN108401124A (en) * 2018-03-16 2018-08-14 广州酷狗计算机科技有限公司 The method and apparatus of video record

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9251849B2 (en) * 2014-02-19 2016-02-02 Htc Corporation Multimedia processing apparatus, method, and non-transitory tangible computer readable medium thereof
AU2015349817B2 (en) * 2014-11-20 2020-06-11 Blast Motion Inc. Video and motion event integration system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812695A (en) * 2014-12-30 2016-07-27 北京鸿合智能系统股份有限公司 Intelligent recording and broadcasting method and system
CN104967900A (en) * 2015-05-04 2015-10-07 腾讯科技(深圳)有限公司 Video generating method and video generating device
CN108012101A (en) * 2017-11-30 2018-05-08 广州市百果园信息技术有限公司 Video recording method and video recording terminal
CN108401124A (en) * 2018-03-16 2018-08-14 广州酷狗计算机科技有限公司 The method and apparatus of video record

Also Published As

Publication number Publication date
CN109005359A (en) 2018-12-14

Similar Documents

Publication Publication Date Title
CN107967706B (en) Multimedia data processing method and device and computer readable storage medium
CN108391171B (en) Video playing control method and device, and terminal
CN108401124B (en) Video recording method and device
CN109348247B (en) Method and device for determining audio and video playing time stamp and storage medium
CN109874312B (en) Method and device for playing audio data
CN109033335B (en) Audio recording method, device, terminal and storage medium
CN108737897B (en) Video playing method, device, equipment and storage medium
CN108965922B (en) Video cover generation method and device and storage medium
US20220057984A1 (en) Music playing method, device, terminal and storage medium
CN108881286B (en) Multimedia playing control method, terminal, sound box equipment and system
CN109144346B (en) Song sharing method and device and storage medium
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN110324689B (en) Audio and video synchronous playing method, device, terminal and storage medium
CN110290392B (en) Live broadcast information display method, device, equipment and storage medium
CN109635133B (en) Visual audio playing method and device, electronic equipment and storage medium
CN111061405B (en) Method, device and equipment for recording song audio and storage medium
CN109743461B (en) Audio data processing method, device, terminal and storage medium
CN109982129B (en) Short video playing control method and device and storage medium
CN111092991B (en) Lyric display method and device and computer storage medium
CN111083526B (en) Video transition method and device, computer equipment and storage medium
CN110275655B (en) Lyric display method, device, equipment and storage medium
CN107888975B (en) Video playing method, device and storage medium
CN109005359B (en) Video recording method, apparatus and storage medium
CN108509127B (en) Method and device for starting screen recording task and computer equipment
CN110868642B (en) Video playing method, device 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