CN112584074A - Video recording method and shooting equipment - Google Patents

Video recording method and shooting equipment Download PDF

Info

Publication number
CN112584074A
CN112584074A CN202011435919.5A CN202011435919A CN112584074A CN 112584074 A CN112584074 A CN 112584074A CN 202011435919 A CN202011435919 A CN 202011435919A CN 112584074 A CN112584074 A CN 112584074A
Authority
CN
China
Prior art keywords
rate
recording
video
playing
parameter
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.)
Withdrawn
Application number
CN202011435919.5A
Other languages
Chinese (zh)
Inventor
向晨宇
凌高源
杨秉臻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SZ DJI Technology Co Ltd
Original Assignee
SZ DJI 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 SZ DJI Technology Co Ltd filed Critical SZ DJI Technology Co Ltd
Priority to CN202011435919.5A priority Critical patent/CN112584074A/en
Publication of CN112584074A publication Critical patent/CN112584074A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/92Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
    • 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)
  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

A video recording method and shooting equipment are provided, wherein the method comprises the following steps: (101) acquiring the playing rate of the shooting equipment when playing the video image; (102) acquiring a recording rate parameter determined based on a user selection instruction; (103) and recording the video image based on the playing rate and the recording rate parameter. By adopting the embodiment of the invention, the video can be recorded according to the recording rate required by the user, so that the recording efficiency and the flexibility of the video are improved.

Description

Video recording method and shooting equipment
The disclosure of this patent document contains material which is subject to copyright protection. The copyright is owned by the copyright owner. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the patent and trademark office official records and records.
Technical Field
The present application relates to the field of communications technologies, and in particular, to a video recording method and a shooting device.
Background
With the development of terminal technology and image processing technology, photographing devices such as cameras and video cameras are widely used. The shooting equipment can be used for shooting, recording and the like, and brings great convenience to the learning, life and work of users.
In the existing shooting technology, when a video recording operation is performed, a shooting device cannot adjust the recording speed often, and only records according to the specified video playing speed, so that the flexibility of video recording is reduced. When a slow motion video needs to be acquired, only a video with a high frame rate can be shot, and then the video is processed to change the frame rate, so that the slow motion video is acquired; similarly, when a fast motion video needs to be acquired, only a video with a low frame rate can be shot first, and then the video is processed to change the frame rate, so that the fast motion video is acquired. However, the mode of shooting first and then processing results in a larger video, and the recording efficiency is lower, which cannot meet the shooting requirements of users.
Disclosure of Invention
The embodiment of the invention provides a video recording method and shooting equipment, which can record a video according to the recording rate required by a user, thereby improving the recording efficiency and flexibility of the video.
In a first aspect, an embodiment of the present invention provides a video recording method, including:
acquiring the playing rate of the shooting equipment when playing the video image;
acquiring a recording rate parameter determined based on a user selection instruction;
and recording the video image based on the playing rate and the recording rate parameter.
In a second aspect, an embodiment of the present invention further provides a video recording apparatus, including:
the acquisition module is used for acquiring the playing rate of the shooting equipment when playing the video image;
the acquisition module is also used for acquiring the recording rate parameter determined based on the user selection instruction;
and the recording module is used for recording the video image based on the playing rate and the recording rate parameter acquired by the acquisition module.
In a third aspect, an embodiment of the present invention further provides a shooting device, including: a memory and a processor, the processor coupled to the memory; wherein the content of the first and second substances,
the memory to store program instructions;
the processor is used for calling the program instructions stored in the memory to execute:
acquiring the playing rate of the shooting equipment when playing the video image;
acquiring a recording rate parameter determined based on a user selection instruction;
and recording the video image based on the playing rate and the recording rate parameter.
The embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, the video image can be recorded based on the playing rate and the recording rate parameter by acquiring the playing rate of the shooting equipment when the video image is played and the recording rate parameter determined based on the user selection instruction, so that the video can be recorded according to the recording rate required by the user, and the recording efficiency and flexibility of the video are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a video recording method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another video recording method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating thread management according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a video recording apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a shooting device provided by an embodiment of the invention;
fig. 6 is a schematic structural diagram of another shooting device provided by the embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms first, second and the like in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprises" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the listed steps or modules but may alternatively include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Optionally, the technical solution of the embodiment of the present invention may be specifically applied to a mobile phone (e.g., an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a mobile internet device (MID for short), a personal digital assistant (PDA for short), a video camera, a camera, and other devices with a video recording function.
Further alternatively, a sensor (sensor) may be provided in the photographing apparatus for capturing an image, and switching of slow motion, normal speed, a time-lapse photographing effect, and the like may be achieved according to a photographing frame rate and a frame rate of an output image. Wherein, it is assumed that the number of image frames obtained in a unit time such as 1 second during shooting is M (i.e. the frame rate is Mfps), and the image frames are played according to N (i.e. the frame rate is Nfps) per unit time during playing, and if M is greater than N, the slow mode is obtained, a slow motion effect is obtained; if M is less than N, the mode is the fast mode, then a fast action effect can be obtained; if M is equal to N, it is the normal mode, then a normal playing effect can be obtained. Wherein M and N are both greater than 0. For example, if the shooting device shoots at a high frame rate (e.g., 120p), a video of 30p is output, i.e., 4x slow motion shooting, and if 1 photo is taken in 1s, a video of 30p is output in 1 second in 30s, i.e., 30x time-lapse shooting.
The embodiment of the invention discloses a video recording method, a video recording device and shooting equipment, which can record a video according to the recording rate required by a user, thereby improving the recording efficiency and flexibility of the video. The details are described below.
Referring to fig. 1, fig. 1 is a schematic flowchart of a video recording method according to an embodiment of the present invention. Specifically, as shown in fig. 1, the video recording method according to the embodiment of the present invention may include the following steps:
101. and acquiring the playing speed of the shooting equipment when playing the video image.
102. And acquiring the recording rate parameter determined based on the user selection instruction.
Specifically, when a video is recorded, the recording rate parameter of the video recording can be determined according to the user requirement. For example, a plurality of speed keys (for example, the speed keys are arranged on the shooting device itself or a pan/tilt head connected to the shooting device) may be provided for the user to select the recording speed parameter, or an interactive interface including a plurality of recording speeds is output for the user to select the recording speed parameter, or a window is output for the user to directly input the recording speed parameter, and so on. Wherein, the recording rate parameter can be a specific rate value, such as 15fps, 30fps, 60fps, 120fps, etc.; alternatively, the recording rate parameter may be a rate change value indicating a slowing down or speeding up of the recording rate, such as speeding up by 3 times (+3x), slowing down by 4 times (-4x), and so on.
103. And recording the video image based on the playing rate and the recording rate parameter.
Specifically, after determining the playing rate when playing the video and the required recording rate parameter, the video image may be recorded based on the playing rate and the recording rate parameter, for example, a writing rate may be calculated based on the playing rate and the recording rate parameter, so as to write the video data based on the writing rate, thereby completing the video recording. The playing rate can be matched with the shooting rate of the shooting equipment, so that the video can be shot and recorded at the same time, the video can be recorded after the shooting is finished, and the flexibility and the efficiency of video recording are high.
In the embodiment of the invention, the video image can be recorded based on the playing rate and the recording rate parameter by acquiring the playing rate of the shooting equipment when the video image is played and the recording rate parameter determined based on the user selection instruction, so that the video can be recorded according to the recording rate required by the user, and the recording efficiency and the flexibility of the video are improved.
Further, referring to fig. 2, fig. 2 is a schematic flowchart of another video recording method according to an embodiment of the present invention. Specifically, as shown in fig. 2, the video recording method according to the embodiment of the present invention may include the following steps:
201. and acquiring the playing speed of the shooting equipment when playing the video image.
202. And acquiring the recording rate parameter determined based on the user selection instruction.
Optionally, the obtaining of the recording rate parameter determined based on the user selection instruction may specifically be: acquiring equipment parameter information of the shooting equipment; determining at least one group of recording rate parameters supported by the shooting equipment based on the equipment parameter information; displaying an interactive interface including the at least one set of recording rate parameters; and receiving a selection instruction input by a user aiming at the at least one group of recording rate parameters, wherein the selection instruction can indicate that the determined recording rate parameters exist. So that the recording rate parameter required by the user can be determined based on the selection instruction.
Specifically, since frame rate ranges supported by different shooting devices may be different, the frame rate that can be supported by the shooting device may be determined by obtaining device parameter information of the shooting device, such as a device model, to determine that the slowest speed or the fastest speed of recording is a multiple of a normal speed, so that video recording can be performed based on the frame rate supported by the shooting device. Optionally, after the frame rate that can be supported by the shooting device is determined, the recording rate corresponding to the supported frame rate may be output for the user to select, so that the user selects one rate from the recording rates to record the video. In other alternative embodiments, the user may also input the recording rate parameter by clicking a preset button, for example, by clicking a rate button disposed on the shooting device or a cradle head connected to the shooting device.
203. And calculating the writing rate of the video data corresponding to the video image based on the playing rate and the recording rate parameter.
204. And recording the video image according to the writing rate.
Optionally, the calculating a writing rate of video data corresponding to the video image based on the playing rate and the recording rate parameter may specifically be: when the recording mode indicated by the recording rate parameter is determined to be a fast mode, determining a first ratio of the recording rate parameter to the playing rate; and calculating a writing rate based on the playing rate, the fast mode and the first ratio, and taking the calculated writing rate as the writing rate of the video data corresponding to the video image. Specifically, when it is detected that the recording rate parameter selected by the user corresponds to the fast mode, a multiple of the recording rate parameter and the playing rate, that is, a first ratio, may be obtained, and the fast action processing may be performed on the recorded video based on the first ratio, and the video may be written into a file for storage. For example, assuming that the obtained playback rate is 30fps, and it is detected that the user clicks the rate button "+ 3 x" set by the user, it is determined that the recording mode corresponding to "+ 3 x" is the fast mode, the first ratio is 3, and the writing rate is 120fps by calculation, and then the video data can be written at the writing rate that the playback rate is increased by 3 times according to the recording rate parameter.
Optionally, the calculating a writing rate of video data corresponding to the video image based on the playing rate and the recording rate parameter may specifically be: when the recording mode indicated by the recording rate parameter is determined to be a slow mode, determining a second ratio of the playing rate to the recording rate parameter; and calculating a writing rate based on the playing rate, the slow mode and the second ratio, and taking the calculated writing rate as the writing rate of the video data corresponding to the video image. Specifically, the slow speed range may be further determined by obtaining a frame rate range supported by the shooting device and a normal play rate, and determining that the supported maximum frame rate is a multiple of the play rate. When detecting that the recording rate selected by the user corresponds to the slow mode, acquiring a multiple of the playing rate and the recording rate parameter, namely a second ratio, and performing slow motion processing on the recorded video based on the second ratio and writing the video into a file for storage. For example, assuming that the obtained playback rate is 60fps, and detecting that the user clicks the set rate key "-2 x", it may be determined that the recording mode corresponding to "-2 x" is the slow mode, the second ratio is 2, and the writing rate is calculated to be 30fps, and then the video data may be written at the writing rate which is 2 times slower than the playback rate according to the recording rate parameter.
Alternatively, the recording parameter may be a specific rate value, and a rate value indicated by a recording rate parameter that can be input by a user operating the shooting device may be used as the writing rate.
205. A rate change instruction based on a user operation input is received.
206. And responding to the speed changing instruction, suspending the recording of the video image, and acquiring a new recording speed parameter corresponding to the speed changing instruction.
207. And recording the video image based on the playing rate and the new recording rate parameter.
In the recording process, whether a speed changing instruction for indicating changing of the recording speed is received or not can be detected, so that the recording speed can be changed when the user changing instruction is confirmed to be received, and the recording speed can be flexibly adjusted. Wherein, the speed changing instruction carries the changed recording speed information, namely the new recording speed parameter. For example, a rate key indicating a recording rate may be added to the shooting device in advance, for example, a rate key for acceleration/deceleration (+/-) may be added to a handheld holder of the shooting device, and by clicking the rate key, the operation mode of the sensor may be switched to 120p, 30p, 1p or more. The user can change the video recording rate of formulation through operating the button on the handheld cloud platform of shooting equipment to realize the combination of intelligent speed governing, fast and slow speed in the video recording process.
Further optionally, in some embodiments, the recording of the video image may also be stopped when the recording rate parameter input is detected or the shooting device stops playing the video image. Further, when the new writing rate is obtained, recording can be continued according to the new writing rate.
Further optionally, in some embodiments, object tracking may also be performed based on the video images. The thread used by the object tracking (tracking), the thread used by the video image playing and the thread used by the video image recording can be independent. The tracking refers to selecting a specific target (such as a person, an animal and the like) in an image, when the target moves, a video recording device can move along with the target so that the target is always in an image or a video shot by the video recording device, and the tracking can be used for the same image as the recorded video image or different images. tracking can acquire an original image for shooting by using the image so as to ensure the tracking efficiency; the recorded video image may be an original image or a processed image.
Specifically, as shown in fig. 3, in the embodiment of the present invention, an independent thread of the video stream is responsible for processing the video stream data, and the video stream can be copied into multiple copies of data. One of the two sets of video recording threads can be used for performing frame rate adjustment through a Central Processing Unit (CPU) and delivering the frame rate adjustment to the video recording thread for video recording; one part can be delivered to a video display thread to be displayed by an image processor (GPU for short); one copy may be given to the racking thread for processing by the GPU. Therefore, simultaneous video display, video recording and tracking can be realized through multi-channel resource scheduling under multithreading, and the rapid and flexible switching of the recording rate and the rapid synthesis of the video are ensured through the reasonable resource allocation processing of the CPU or the GPU.
For example, when recording a stored video image or a video image currently being shot based on a user requirement, the user may select a recording rate and click to start recording, thereby triggering video recording according to the selected recording rate parameter and a playing rate corresponding to the recorded video image. Specifically, a file can be newly created in an appointed directory of a local folder, a write-in thread is newly created for thread round robin, and when a video to be recorded is in a non-suspended state, video data of the recorded video can be written in according to whether a target recording speed set by a user is a slow mode or a fast mode, and the data can be written in the file by modifying the time of video callback data. Further, in the video recording process, if the user needs to modify the recording rate, when a rate modification instruction input by the user is received, for example, the user clicks a rate recording instruction triggered by another recording rate, the recording may be suspended first, and the latest recording rate set by the user, that is, a new recording rate parameter, is obtained. And detecting that the new recording rate parameter is a slow mode or a fast mode, and setting a video call-back frame rate based on the new recording rate parameter, namely determining a new writing rate. Further, the suspend mode may be turned off to ensure that the write thread continues to write data. When the user clicks to stop recording or the video playing is completed, the writing is completed, and the thread can be closed. At this point the recording is complete.
In the embodiment of the invention, the synchronous recording and other operations can be ensured through the control of an independent write-in thread and the change of the write-in video data rate, thereby preferably realizing multi-path operation, for example, video display and speed-regulating video recording can be carried out at the same time, and tracking is supported at the same time, so that the video with alternate speeds and speeds can be obtained at one time, and the waiting time for generating the video is reduced. Meanwhile, through reasonable resource allocation of the GPU and the CPU, multi-channel data operation can still be carried out smoothly at the same time, writing can be carried out through the time of modifying the recalled video data, namely the writing speed of the recorded video is modified, so that the frame loss phenomenon is prevented, and the efficiency, the flexibility and the reliability of video recording are effectively improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a video recording apparatus 10 according to an embodiment of the present invention. Specifically, as shown in fig. 4, the video recording apparatus 10 according to the embodiment of the present invention may include an obtaining module 11 and a recording module 12. Wherein the content of the first and second substances,
the obtaining module 11 is configured to obtain a playing rate of the shooting device when playing the video image.
The obtaining module 11 is further configured to obtain a recording rate parameter determined based on a user selection instruction.
Specifically, when a video recording is required, the obtaining module 11 may determine a recording rate parameter of the video recording according to a user requirement. The recording rate parameter may be a specific rate value, or the recording rate parameter may also be a rate change value for indicating a slow recording rate or a fast recording rate, and the like, which is not limited in the embodiment of the present invention.
The recording module 12 is configured to record the video image based on the playing rate and the recording rate parameter acquired by the acquiring module 11.
Optionally, the recording module 12 may be specifically configured to:
calculating the writing rate of the video data corresponding to the video image based on the playing rate and the recording rate parameter;
and recording the video image according to the writing rate.
Specifically, after the obtaining module 11 determines the playing rate when playing the video and the required recording rate parameter, the recording module 12 may record the video image based on the playing rate and the recording rate parameter, for example, calculate a writing rate based on the playing rate and the recording rate parameter, and write video data based on the writing rate, thereby completing video recording. The playing rate can be matched with the shooting rate of the shooting equipment, so that the video can be shot and recorded at the same time, the video can be recorded after the shooting is finished, and the flexibility and the efficiency of video recording are high.
Optionally, when the recording module 12 calculates the writing rate of the video data corresponding to the video image based on the playing rate and the recording rate parameter, it may specifically be configured to:
when the recording mode indicated by the recording rate parameter is determined to be a fast mode, determining a first ratio of the recording rate parameter to the playing rate;
and calculating a writing rate based on the playing rate, the fast mode and the first ratio, and taking the calculated writing rate as the writing rate of the video data corresponding to the video image.
Specifically, when it is detected that the recording rate selected by the user corresponds to the fast mode, the recording module 12 may obtain a multiple of the recording rate parameter and the playing rate, that is, a first ratio, and may perform fast action processing on the recorded video based on the first ratio and write the video into a file for storage.
Optionally, when the recording module 12 calculates the writing rate of the video data corresponding to the video image based on the playing rate and the recording rate parameter, it may specifically be configured to:
when the recording mode indicated by the recording rate parameter is determined to be a slow mode, determining a second ratio of the playing rate to the recording rate parameter;
and calculating a writing rate based on the playing rate, the slow mode and the second ratio, and taking the calculated writing rate as the writing rate of the video data corresponding to the video image.
Specifically, when it is detected that the recording rate selected by the user corresponds to the slow mode, the recording module 12 may obtain a multiple of the playing rate and the recording rate parameter, that is, a second ratio, and perform slow motion processing on the recorded video based on the second ratio and write the video into a file for storage.
Further optionally, when the obtaining module 11 obtains the recording rate parameter determined based on the user selection instruction, it may specifically be configured to:
acquiring equipment parameter information of the shooting equipment;
determining at least one group of recording rate parameters supported by the shooting equipment based on the equipment parameter information;
displaying an interactive interface including the at least one set of recording rate parameters;
and receiving a selection instruction input by a user aiming at the at least one group of recording rate parameters, wherein the selection instruction indicates that the determined recording rate parameters exist.
Further optionally, the apparatus 10 may further comprise:
the control module 13 is used for suspending recording of the video image when receiving a rate change instruction input based on user operation;
the obtaining module 11 may be further configured to obtain a new recording rate parameter corresponding to the rate change instruction;
the recording module 12 may be further configured to record the video image based on the playing rate and the new recording rate parameter acquired by the acquiring module 11.
During the recording process, the control module 13 may further detect whether a rate change instruction for instructing to change the recording rate is received, so as to change the recording rate when it is confirmed that the user change instruction is received, thereby implementing flexible adjustment of the recording rate. Wherein, the speed changing instruction carries the changed recording speed information, namely the new recording speed parameter.
Further optionally, in some embodiments,
the control module 13 may be further configured to stop recording the video image when the input of the recording rate parameter is detected.
Specifically, the control module 13 may further control to stop video recording when detecting the input of the recording rate parameter or when the shooting device stops playing the video image.
Further optionally, in some embodiments, the apparatus 10 may further include:
a tracking module 14 for performing object tracking based on the video image;
the thread used by the object tracking, the thread used by the video image playing and the thread used by the video image recording can be independent.
Specifically, through reasonable resource allocation processing of the CPU or the GPU and multi-channel resource scheduling under multithreading, simultaneous video display, video recording and tracking are achieved, and fast and flexible switching of recording rates and fast video synthesis are guaranteed.
In the embodiment of the invention, the video image can be recorded based on the playing rate and the recording rate parameter by acquiring the playing rate of the shooting equipment when the video image is played and the recording rate parameter determined based on the user selection instruction, so that the video can be recorded according to the recording rate required by the user, and the recording efficiency and the flexibility of the video are improved.
An embodiment of the present invention further provides a computer storage medium, where program instructions are stored in the computer storage medium, and when the program instructions are executed, some or all of the steps of the video recording method according to the embodiment corresponding to fig. 1 to 3 may be included.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a shooting device according to an embodiment of the present invention. As shown in fig. 5, the shooting device 1 according to the embodiment of the present invention may include a video recording apparatus 10 and a pan/tilt head 20 connected to the video recording apparatus 10.
Specifically, the video recording apparatus 10 can refer to the related description of the video recording apparatus 10 in the embodiment corresponding to fig. 4, which is not repeated herein. Further, the cradle head 20 can automatically follow a selected target, and functions of three-axis stabilization, bumpiness and jitter in motion filtering, three-axis movement delay photography and the like are utilized, so that a more dynamic visual effect is achieved.
Referring to fig. 6 again, fig. 6 is a schematic structural diagram of another shooting device provided in an embodiment of the present invention, where the shooting device 1 in the embodiment of the present invention may include: a communication interface 300, a memory 200 and a processor 100, wherein the processor 100 is connected to the communication interface 300 and the memory 200 respectively.
The communication interface 300 may include various standard keys, a touch screen, a camera, a speaker, etc., and may further include a wired interface, a wireless interface, etc.
The memory 200 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 200 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory) or the like; the memory 200 may also comprise a combination of memories of the kind described above. The memory 200 may store an operating system, program instructions required for at least one function, and the like. In the embodiment of the present invention, the operating system may be an Android system, an iOS system, a Windows operating system, or the like.
The processor 100 may include a Central Processing Unit (CPU) and an image processing unit (GPU). The processor 100 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), or the like.
Optionally, the memory 200 is also used for storing program instructions. The processor 100 may call the program instructions to implement the video recording method as shown in the embodiments of fig. 1 to 3 of the present application.
Specifically, the processor 100 may call the program instructions stored in the memory 200 to perform:
acquiring the playing rate of the shooting equipment when playing the video image;
acquiring a recording rate parameter determined based on a user selection instruction;
and recording the video image based on the playing rate and the recording rate parameter.
Optionally, when the processor 100 records the video image based on the play rate and the recording rate parameter, the following steps are specifically performed:
calculating the writing rate of the video data corresponding to the video image based on the playing rate and the recording rate parameter;
and recording the video image according to the writing rate.
Optionally, when the processor 100 calculates the write rate of the video data corresponding to the video image based on the play rate and the recording rate parameter, the following steps are specifically performed:
when the recording mode indicated by the recording rate parameter is determined to be a fast mode, determining a first ratio of the recording rate parameter to the playing rate;
and calculating a writing rate based on the playing rate, the fast mode and the first ratio, and taking the calculated writing rate as the writing rate of the video data corresponding to the video image.
Optionally, when the processor 100 calculates the write rate of the video data corresponding to the video image based on the play rate and the recording rate parameter, the following steps are specifically performed:
when the recording mode indicated by the recording rate parameter is determined to be a slow mode, determining a second ratio of the playing rate to the recording rate parameter;
and calculating a writing rate based on the playing rate, the slow mode and the second ratio, and taking the calculated writing rate as the writing rate of the video data corresponding to the video image.
Optionally, when the processor 100 executes the obtaining of the recording rate parameter determined based on the user selection instruction, the following steps are specifically executed:
acquiring equipment parameter information of the shooting equipment;
determining at least one group of recording rate parameters supported by the shooting equipment based on the equipment parameter information;
displaying an interactive interface including the at least one set of recording rate parameters;
receiving a selection instruction input by a user for the at least one set of recording rate parameters through the communication interface 300, wherein the selection instruction indicates that the determined recording rate parameters exist.
Optionally, the processor 100 further performs the following steps:
receiving a rate change instruction based on a user operation input through the communication interface 300;
responding to the speed changing instruction, stopping recording the video image, and acquiring a new recording speed parameter corresponding to the speed changing instruction;
and recording the video image based on the playing rate and the new recording rate parameter.
Optionally, the processor 100 further performs the following steps:
and when the input of the recording rate parameter is detected, stopping recording the video image.
Optionally, the processor 100 further performs the following steps:
performing object tracking based on the video image;
the thread used by the object tracking, the thread used by the video image playing and the thread used by the video image recording are independent.
In the embodiment of the invention, the video image can be recorded based on the playing rate and the recording rate parameter by acquiring the playing rate of the shooting equipment when the video image is played and the recording rate parameter determined based on the user selection instruction, so that the video can be recorded according to the recording rate required by the user, and the recording efficiency and the flexibility of the video are improved.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (18)

1. A method for video recording, comprising:
acquiring video stream data;
copying the video stream data into a plurality of copies of data;
and performing frame rate adjustment on one part of data to record video, and performing video display on the other part of data.
2. The method of claim 1, wherein said frame rate adjusting a portion of data for recording video comprises:
acquiring the playing rate of the shooting equipment when playing the video image, wherein the playing rate is matched with the shooting rate of the shooting equipment, and the video image is any one of the multiple data;
acquiring a recording rate parameter determined based on a user selection instruction;
and recording the video image based on the playing rate and the recording rate parameter.
3. The method of claim 2, wherein recording the video image based on the playback rate and the recording rate parameters comprises:
calculating the writing rate of the video data corresponding to the video image based on the playing rate and the recording rate parameter;
and recording the video image according to the writing rate.
4. The method of claim 3, wherein calculating the writing rate of the video data corresponding to the video image based on the playing rate and the recording rate parameter comprises:
when the recording mode indicated by the recording rate parameter is determined to be a fast mode, determining a first ratio of the recording rate parameter to the playing rate;
and calculating a writing rate based on the playing rate, the fast mode and the first ratio, and taking the calculated writing rate as the writing rate of the video data corresponding to the video image.
5. The method of claim 3, wherein calculating the writing rate of the video data corresponding to the video image based on the playing rate and the recording rate parameter comprises:
when the recording mode indicated by the recording rate parameter is determined to be a slow mode, determining a second ratio of the playing rate to the recording rate parameter;
and calculating a writing rate based on the playing rate, the slow mode and the second ratio, and taking the calculated writing rate as the writing rate of the video data corresponding to the video image.
6. The method according to any of claims 2-5, wherein obtaining the recording rate parameter determined based on the user selection instruction comprises:
acquiring equipment parameter information of the shooting equipment;
determining at least one group of recording rate parameters supported by the shooting equipment based on the equipment parameter information;
displaying an interactive interface including the at least one set of recording rate parameters;
and receiving a selection instruction input by a user aiming at the at least one group of recording rate parameters, wherein the selection instruction indicates that the determined recording rate parameters exist.
7. The method according to any one of claims 2-5, further comprising:
receiving a rate change instruction based on user operation input;
responding to the speed changing instruction, stopping recording the video image, and acquiring a new recording speed parameter corresponding to the speed changing instruction;
and recording the video image based on the playing rate and the new recording rate parameter.
8. The method according to any one of claims 2-5, further comprising:
and when the input of the recording rate parameter is detected, stopping recording the video image.
9. The method of claim 1, further comprising:
and carrying out object tracking on another data in the plurality of copies of the video stream data.
10. A photographing apparatus, characterized by comprising: a memory and a processor, the processor coupled to the memory; wherein the content of the first and second substances,
the memory to store program instructions;
the processor is used for calling the program instructions stored in the memory to execute:
acquiring video stream data;
copying the video stream data into a plurality of copies of data;
and performing frame rate adjustment on one part of data to record video, and performing video display on the other part of data.
11. The device of claim 10, wherein the processor, when performing frame rate adjustment for a copy of data for video recording, is specifically configured to:
acquiring the playing rate of the shooting equipment when playing the video image, wherein the playing rate is matched with the shooting rate of the shooting equipment, and the video image is any one of the multiple data;
acquiring a recording rate parameter determined based on a user selection instruction;
and recording the video image based on the playing rate and the recording rate parameter.
12. The apparatus of claim 11, wherein the processor, when recording the video image based on the playback rate and the recording rate parameter, is specifically configured to:
calculating the writing rate of the video data corresponding to the video image based on the playing rate and the recording rate parameter;
and recording the video image according to the writing rate.
13. The apparatus according to claim 12, wherein the processor, when executing the calculating of the writing rate of the video data corresponding to the video image based on the playing rate and the recording rate parameter, specifically executes the following steps:
when the recording mode indicated by the recording rate parameter is determined to be a fast mode, determining a first ratio of the recording rate parameter to the playing rate;
and calculating a writing rate based on the playing rate, the fast mode and the first ratio, and taking the calculated writing rate as the writing rate of the video data corresponding to the video image.
14. The apparatus according to claim 12, wherein the processor, when executing the calculating of the writing rate of the video data corresponding to the video image based on the playing rate and the recording rate parameter, specifically executes the following steps:
when the recording mode indicated by the recording rate parameter is determined to be a slow mode, determining a second ratio of the playing rate to the recording rate parameter;
and calculating a writing rate based on the playing rate, the slow mode and the second ratio, and taking the calculated writing rate as the writing rate of the video data corresponding to the video image.
15. The apparatus according to any of claims 11-14, wherein the apparatus further comprises a communication interface; when the processor executes the recording rate parameter determined based on the user selection instruction, the following steps are specifically executed:
acquiring equipment parameter information of the shooting equipment;
determining at least one group of recording rate parameters supported by the shooting equipment based on the equipment parameter information;
displaying an interactive interface including the at least one set of recording rate parameters;
and receiving a selection instruction input by a user aiming at the at least one group of recording rate parameters through the communication interface, wherein the selection instruction indicates that the determined recording rate parameters exist.
16. The apparatus according to any of claims 11-14, wherein the apparatus further comprises a communication interface; the processor further performs the steps of:
receiving a rate change instruction based on user operation input through the communication interface;
responding to the speed changing instruction, stopping recording the video image, and acquiring a new recording speed parameter corresponding to the speed changing instruction;
and recording the video image based on the playing rate and the new recording rate parameter.
17. The apparatus according to any of claims 11-14, wherein the processor further performs the steps of:
and when the input of the recording rate parameter is detected, stopping recording the video image.
18. The device of claim 10, wherein the processor is further configured to:
and carrying out object tracking on another data in the plurality of copies of the video stream data.
CN202011435919.5A 2016-11-08 2016-11-08 Video recording method and shooting equipment Withdrawn CN112584074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011435919.5A CN112584074A (en) 2016-11-08 2016-11-08 Video recording method and shooting equipment

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201680061067.3A CN108271432B (en) 2016-11-08 2016-11-08 Video recording method and device and shooting equipment
PCT/CN2016/105046 WO2018085982A1 (en) 2016-11-08 2016-11-08 Video recording method and apparatus, and photographing device
CN202011435919.5A CN112584074A (en) 2016-11-08 2016-11-08 Video recording method and shooting equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201680061067.3A Division CN108271432B (en) 2016-11-08 2016-11-08 Video recording method and device and shooting equipment

Publications (1)

Publication Number Publication Date
CN112584074A true CN112584074A (en) 2021-03-30

Family

ID=62109056

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202011435919.5A Withdrawn CN112584074A (en) 2016-11-08 2016-11-08 Video recording method and shooting equipment
CN201680061067.3A Expired - Fee Related CN108271432B (en) 2016-11-08 2016-11-08 Video recording method and device and shooting equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201680061067.3A Expired - Fee Related CN108271432B (en) 2016-11-08 2016-11-08 Video recording method and device and shooting equipment

Country Status (2)

Country Link
CN (2) CN112584074A (en)
WO (1) WO2018085982A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737884B (en) * 2018-05-31 2022-05-10 腾讯科技(深圳)有限公司 Content recording method and equipment, storage medium and electronic equipment
CN115086554A (en) * 2019-08-20 2022-09-20 华为技术有限公司 Video special effect generation method and terminal
CN111294509A (en) * 2020-01-22 2020-06-16 Oppo广东移动通信有限公司 Video shooting method, device, terminal and storage medium
CN112653920B (en) * 2020-12-18 2022-05-24 北京字跳网络技术有限公司 Video processing method, device, equipment and storage medium
CN112686109A (en) * 2020-12-22 2021-04-20 北京百度网讯科技有限公司 Method and device for extracting offline video file, electronic equipment and storage medium
CN113286106B (en) * 2021-06-18 2023-04-25 深圳传音通讯有限公司 Video recording method, mobile terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660948A (en) * 2015-03-09 2015-05-27 深圳市欧珀通信软件有限公司 Video recording method and device
CN104967803A (en) * 2015-07-01 2015-10-07 广东欧珀移动通信有限公司 Video recording method and video recording device
CN105049918A (en) * 2015-07-08 2015-11-11 成都西可科技有限公司 Method for separating local recorded video and network live video
CN105245812A (en) * 2015-10-20 2016-01-13 广东欧珀移动通信有限公司 Method for recording videos and terminal

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8577205B2 (en) * 1998-07-30 2013-11-05 Tivo Inc. Digital video recording system
JP3607597B2 (en) * 2000-11-08 2005-01-05 株式会社東芝 Recording / playback device
WO2003048904A2 (en) * 2001-12-03 2003-06-12 Nnovia, Inc. Apparatus and method for storing and retrieving digital real time signals in their native format
US9052386B2 (en) * 2002-02-06 2015-06-09 Nice Systems, Ltd Method and apparatus for video frame sequence-based object tracking
US7260035B2 (en) * 2003-06-20 2007-08-21 Matsushita Electric Industrial Co., Ltd. Recording/playback device
JP4007276B2 (en) * 2003-07-18 2007-11-14 ソニー株式会社 Imaging device and control device thereof
JP4360399B2 (en) * 2006-11-30 2009-11-11 ソニー株式会社 Imaging device
JP4933354B2 (en) * 2007-06-08 2012-05-16 キヤノン株式会社 Information processing apparatus and information processing method
JP2009177531A (en) * 2008-01-24 2009-08-06 Panasonic Corp Image recording device, image reproducing device, recording medium, image recording method, and program
CN101466006A (en) * 2009-01-05 2009-06-24 浙江大学 Method for storing real-time data of video collection system
CN102547192B (en) * 2010-12-21 2017-12-29 新奥特(北京)视频技术有限公司 A kind of method that fluid drive broadcasting and playback function are set to video image
CN102801942B (en) * 2012-07-23 2016-05-11 小米科技有限责任公司 The method and apparatus of a kind of recorded video and generation GIF Dynamic Graph
CN102970542B (en) * 2012-11-30 2015-06-10 上海晨思电子科技有限公司 Video data conversion method and device and intelligent television
CN104539837A (en) * 2014-11-28 2015-04-22 广东欧珀移动通信有限公司 Method and device for recording variable speed playback video

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660948A (en) * 2015-03-09 2015-05-27 深圳市欧珀通信软件有限公司 Video recording method and device
CN104967803A (en) * 2015-07-01 2015-10-07 广东欧珀移动通信有限公司 Video recording method and video recording device
CN105049918A (en) * 2015-07-08 2015-11-11 成都西可科技有限公司 Method for separating local recorded video and network live video
CN105245812A (en) * 2015-10-20 2016-01-13 广东欧珀移动通信有限公司 Method for recording videos and terminal

Also Published As

Publication number Publication date
CN108271432A (en) 2018-07-10
CN108271432B (en) 2020-12-29
WO2018085982A1 (en) 2018-05-17

Similar Documents

Publication Publication Date Title
CN108271432B (en) Video recording method and device and shooting equipment
US10127632B1 (en) Display and update of panoramic image montages
CN113475092B (en) Video processing method and mobile device
KR101871364B1 (en) Continuous video capture during switch between video capture devices
US9641745B2 (en) Systems, methods, and computer program products for digital image capture
CN111654629A (en) Camera switching method and device, electronic equipment and readable storage medium
CN105874780A (en) Method and apparatus for generating a text color for a group of images
CN109598775B (en) Dynamic image synthesis method, device, terminal and storage medium
US20160344927A1 (en) Time Lapse User Interface Enhancements
CN109218614A (en) A kind of automatic photographing method and mobile terminal of mobile terminal
CN112565911B (en) Bullet screen display method, bullet screen generation device, bullet screen equipment and storage medium
CN114095776B (en) Screen recording method and electronic equipment
CN112653920B (en) Video processing method, device, equipment and storage medium
CN110798615A (en) Shooting method, shooting device, storage medium and terminal
JP6143678B2 (en) Information processing apparatus, information processing method, and program
CN108566527A (en) A kind of kinescope method and device
CN106879263A (en) A kind of image pickup method and mobile device
EP3544012A1 (en) An apparatus and associated methods for video presentation
CN113012082A (en) Image display method, apparatus, device and medium
CN104486553B (en) A kind of distant view photograph image pickup method and terminal
CN112887618A (en) Video shooting method and device
CN104754202A (en) Image collecting method and electronic device
JP2019220207A (en) Method and apparatus for using gestures for shot effects
CA2935233A1 (en) Universal capture
CN115002359A (en) Video processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20210330

WW01 Invention patent application withdrawn after publication