WO2018085982A1 - 视频录制方法、装置及拍摄设备 - Google Patents

视频录制方法、装置及拍摄设备 Download PDF

Info

Publication number
WO2018085982A1
WO2018085982A1 PCT/CN2016/105046 CN2016105046W WO2018085982A1 WO 2018085982 A1 WO2018085982 A1 WO 2018085982A1 CN 2016105046 W CN2016105046 W CN 2016105046W WO 2018085982 A1 WO2018085982 A1 WO 2018085982A1
Authority
WO
WIPO (PCT)
Prior art keywords
rate
recording
video image
parameter
video
Prior art date
Application number
PCT/CN2016/105046
Other languages
English (en)
French (fr)
Inventor
向晨宇
凌高源
杨秉臻
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2016/105046 priority Critical patent/WO2018085982A1/zh
Priority to CN201680061067.3A priority patent/CN108271432B/zh
Priority to CN202011435919.5A priority patent/CN112584074A/zh
Publication of WO2018085982A1 publication Critical patent/WO2018085982A1/zh

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

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a video recording method, apparatus, and photographing apparatus.
  • the shooting device can be used for photographing, video recording, video recording, etc., which greatly facilitates the user's study, life and work.
  • the shooting device when performing a recording operation, the shooting device often cannot adjust the recording speed, and can only record at a specified video playback speed, which reduces the flexibility of video recording.
  • you need to obtain slow motion video you can only capture the high frame rate video first, then process the video to change the frame rate to get the slow motion video.
  • you need to get the fast motion video you can only shoot first.
  • the video of the low frame rate is processed to change the frame rate to obtain the fast motion video.
  • the method of shooting and reprocessing firstly results in a large video, and the recording efficiency is low, which cannot meet the user's shooting requirements.
  • the embodiment of the invention provides a video recording method, device and shooting device, which can record video according to the recording rate required by the user, thereby improving the recording efficiency and flexibility of the video.
  • an embodiment of the present invention provides a video recording method, including:
  • an embodiment of the present invention further provides a video recording apparatus, including:
  • Obtaining a module configured to acquire a playing rate of the shooting device when playing the video image
  • the acquiring module is further configured to acquire a recording rate parameter determined according to a user selection instruction
  • a recording module configured to record the video image based on the playing rate and the recording rate parameter acquired by the acquiring module.
  • an embodiment of the present invention further provides a photographing apparatus, including: a memory and a processor, wherein the processor is connected to the memory; wherein
  • the memory is configured to store program instructions
  • the processor is configured to invoke a program instruction stored in the memory to execute:
  • the embodiment of the present invention can obtain the recording rate of the shooting device when playing the video image and the recording rate parameter determined by the user selection instruction, so as to record the video image based on the playing rate and the recording rate parameter, so that the user can meet the user demand.
  • the recording rate records video, which improves the recording efficiency and flexibility of the video.
  • 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 schematic diagram of 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 photographing apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of another photographing apparatus according to an embodiment of the present invention.
  • the technical solution of the embodiment of the present invention may be specifically applied to a mobile phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a mobile internet device (MID), and a personal digital assistant (referred to as a personal digital assistant).
  • a mobile phone such as an Android mobile phone, an iOS mobile phone, etc.
  • a tablet computer such as a tablet computer
  • MID mobile internet device
  • a personal digital assistant referred to as a personal digital assistant
  • PDA personal digital assistant
  • camera camera, etc. with video recording function.
  • a sensor may be disposed in the photographing device for acquiring an image
  • the slow motion, the normal speed, the switching of the time-lapse photography effect, and the like may be implemented according to the shooting frame rate and the frame rate of the output image.
  • Mfps the number of image frames acquired in a unit time, such as 1 second
  • Nfps the number of image frames acquired in a unit time
  • Mfps the frame rate
  • Nfps the number of image frames acquired in a unit time
  • Mfps the frame rate
  • Nfps the number of image frames acquired in a unit time, such as 1 second
  • M and N are both greater than zero.
  • the shooting device shoots at a high frame rate (such as 120p), and outputs 30p video, which is 4x slow motion photography. If 1s takes 1 photo, 30s outputs 1 second 30p video, which is 30x time-lapse photography.
  • the embodiment of the invention discloses a video recording method, device and photographing device, which can record video according to the recording rate required by the user, thereby improving the recording efficiency and flexibility of the video. The details are explained below.
  • 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 in the embodiment of the present invention may include the following steps:
  • the recording rate parameter of the video recording may be determined according to user requirements.
  • a plurality of rate buttons may be provided (such as setting the rate button on the photographing device itself or a pan/tilt connected to the photographing device) for the user to select a recording rate parameter, or by outputting an interactive interface including a plurality of recording rates.
  • the manner of determining the recording rate parameter is not limited in the embodiment of the present invention.
  • the recording rate parameter may be a specific rate value, such as 15fps, 30fps, 60fps, 120fps, etc.; or, the recording rate parameter may also be a rate change value used to indicate a slowdown of the recording rate or an accelerated recording rate, such as Speed up by 3 times (+3x), slow down by 4 times (-4x), and so on.
  • the video image may be recorded based on the playing rate and the recording rate parameter, for example, the writing may be calculated based on the playing rate and the recording rate parameter.
  • Incoming rate to write video data based on the write rate to complete video recording.
  • the playback rate can be matched with the shooting rate of the shooting device, so that the recording can be performed while shooting the video, and the recording can be completed after the shooting is completed, and the flexibility and efficiency of the video recording are high.
  • the video image may be recorded based on the playback rate and the recording rate parameter by acquiring a playback rate of the shooting device when playing the video image and a recording rate parameter determined based on the user selection instruction. Recording video at the recording rate required by the user, which improves the recording efficiency and flexibility of the video.
  • FIG. 2 is a schematic flowchart diagram of another video recording method according to an embodiment of the present invention. Specifically, as shown in FIG. 2, the video recording method in the embodiment of the present invention may include the following steps:
  • the acquiring the recording rate parameter determined based on the user selection instruction may be specifically: Acquiring device parameter information of the photographing device; determining, according to the device parameter information, at least one set of recording rate parameters supported by the photographing device; displaying an interaction interface including the at least one set of recording rate parameters; receiving the user A selection instruction for inputting at least one set of recording rate parameters, the selection instruction type indicating a determined recording rate parameter.
  • the recording rate parameter required by the user can be determined based on the selection instruction.
  • the device parameter information of the shooting device may be obtained to determine the frame rate that the shooting device can support to determine the slowest recording time.
  • the speed or the fastest rate is a multiple of the normal speed, enabling video recording based on the frame rate supported by the camera.
  • the recording rate corresponding to the supporting frame rate may be output for the user to select, so that the user selects a rate from which to perform video recording as the recording rate.
  • the user may also input the recording rate parameter by clicking a preset button, such as inputting the recording rate parameter by clicking a rate button set on the photographing device or on a pan/tilt connected to the photographing device. .
  • the calculating, according to the playing rate and the recording rate parameter, the writing rate of the video data corresponding to the video image may be specifically: 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 playback rate; calculating a write rate based on the play rate, the fast mode, and the first ratio, and using the calculated write rate as The write rate of the video data corresponding to the video image.
  • the recording rate parameter may be obtained as a multiple of the playing rate, that is, the first ratio, and the recorded video may be fast-acted based on the first ratio. Process and write files for storage.
  • the video data can be written at a write rate that is three times faster than the playback rate parameter.
  • the calculating a write rate of the video data corresponding to the video image based on the play rate and the recording rate parameter may be specifically: when the recording rate parameter indicates a recording mode Determining, in the slow mode, a second ratio of the play rate to the recording rate parameter; calculating a write rate based on the play rate, the slow mode, and the second ratio, and calculating The write rate is used as a write rate of video data corresponding to the video image. Specifically, by obtaining a frame rate range supported by the photographing device and a normal play rate, it is determined that the supported maximum frame rate is a multiple of the play rate to further determine the range of the slow speed.
  • the multiple of the playback rate and the recording rate parameter that is, the second ratio
  • the recording rate selected by the user corresponds to the slow mode
  • the multiple of the playback rate and the recording rate parameter that is, the second ratio
  • the recorded video is subjected to slow motion processing and written to the file based on the second ratio.
  • the second ratio is 2, and can be calculated.
  • the write rate is 30 fps, the video data can be written to the write rate that is 2 times slower than the playback rate parameter.
  • the recording parameter may also be a specific rate value, and the rate value indicated by the recording rate parameter that the user can input the operation of the shooting device may also be used as the writing rate.
  • the rate change command carries the changed recording rate information, that is, the new recording rate parameter.
  • a rate button indicating a recording rate may be added to the photographing device in advance, such as an acceleration/deceleration (+/-) rate button on the handheld pan/tilt of the photographing device, and the sensor mode can be switched by clicking the rate button. It is 120p, 30p, 1p or more.
  • the user can change the video recording rate by operating the buttons on the handheld pan/tilt of the shooting device, thereby realizing the combination of intelligent speed regulation, fast speed and slow speed in the recording process.
  • the recording of the video image may also be stopped when the recording rate parameter input is detected or the photographing device pauses to play the video image. Further, recording can be continued at a new write rate when a new write rate is acquired.
  • object tracking can also be performed based on the video image.
  • the thread used for the object tracking, the thread used for playing the video image, and the thread used for recording the video image are independent of each other.
  • tracking refers to selecting a specific target (such as a person, an animal, etc.) in the image, and when the target moves, the video recording device can follow the target movement, so that the target is always in the video recording device.
  • tracking can be the same image as the recorded video image, which can be a different image.
  • the tracking image can be used to capture the original image captured to ensure the efficiency of tracking; and the recorded video image can be the original image or the processed image.
  • a separate thread of the video stream is responsible for processing the video stream data, and may copy the video stream into multiple pieces of data.
  • One of them can be subjected to frame rate adjustment by a central processing unit (CPU) and handed over to the video recording thread for recording video operations; one can be handed over to the video display thread through a graphics processing unit (graphics processing unit, referred to as GPU) makes a video display; one can be handed to the tracking thread for processing by the GPU. Therefore, multi-thread resource scheduling under multi-threading can realize simultaneous display of video, recorded video, and tracking, and reasonable resource allocation processing by CPU or GPU, ensuring fast and flexible switching of recording rate and rapid video synthesis.
  • CPU central processing unit
  • GPU graphics processing unit
  • the user when recording a stored video image or a video image currently being captured based on user requirements, the user can select a recording rate and click to start recording, thereby triggering a recording rate parameter according to the selection and the recorded Video recording is performed at the playback rate corresponding to the video image.
  • a new file can be created in a specified directory of the local folder, and a new write thread is used to perform thread rotation.
  • the recording speed according to the target set by the user is slow.
  • the fast mode or the fast mode performs video data writing of the recorded video, and writes the data to the file by modifying the time of the video callback data.
  • the recording when receiving the rate modification instruction input by the user, for example, when the user clicks another rate recording command triggered by the recording rate, the recording may be paused first, and the obtained user is obtained.
  • the latest recording rate set which is the new recording rate parameter.
  • the new recording rate parameter is detected as a slow mode or a fast mode, and the video callback frame rate is set based on the new recording rate parameter, that is, a new write rate is determined.
  • the suspend mode can be turned off to ensure that the write thread continues to write data.
  • the thread can be closed. at this time Finish recording.
  • the recording and other operations can be synchronized by the control of an independent write thread and the change of the write video data rate, so that multiple operations can be optimally performed, such as performing video display while Speed-adjusting video recording, and support for tracking at the same time, enables video to be obtained at a time, which reduces the waiting time for generating video.
  • multiple operations can be optimally performed, such as performing video display while Speed-adjusting video recording, and support for tracking at the same time, enables video to be obtained at a time, which reduces the waiting time for generating video.
  • the multi-channel data operation can still be performed smoothly at the same time, and the writing rate of the recorded video can be modified by modifying the time of the callback video data to prevent the frame loss. The phenomenon occurs, which effectively improves the efficiency, flexibility and reliability of video recording.
  • FIG. 4 is a schematic structural diagram of a video recording apparatus 10 according to an embodiment of the present invention.
  • the video recording apparatus 10 of the embodiment of the present invention may include an obtaining module 11 and a recording module 12. among them,
  • the acquiring module 11 is configured to acquire a playing rate of the shooting device when playing a video image.
  • the obtaining module 11 is further configured to acquire a recording rate parameter determined according to a user selection instruction.
  • the obtaining module 11 can determine a recording rate parameter of the video recording according to user requirements.
  • 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 slowing down of the recording rate or an accelerated 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 playback rate and the recording rate parameter acquired by the acquiring module 11.
  • the recording module 12 is specifically configured to:
  • the video image is recorded at the write rate.
  • the recording module 12 can record the video image based on the playing rate and the recording rate parameter, for example, based on the playing rate and
  • the recording rate parameter calculates a write rate to write video data based on the write rate to complete video recording.
  • the playback rate can be matched with the shooting rate of the shooting device, so that the recording can be performed while shooting the video, and the recording can be completed after the shooting is completed, and the flexibility and efficiency of the video recording are high.
  • the recording module 12 when the recording module 12 calculates the write rate of the video data corresponding to the video image based on the play rate and the recording rate parameter, the recording module 12 may be specifically configured to:
  • the recording module 12 may obtain the multiple of the recording rate parameter and the playing rate, that is, the first ratio, and may perform the recorded video based on the first ratio. Quick action processing and writing to a file for storage.
  • the recording module 12 when the recording module 12 calculates the write rate of the video data corresponding to the video image based on the play rate and the recording rate parameter, the recording module 12 may be specifically configured to:
  • the recording module 12 may obtain a multiple of the playback rate and the recording rate parameter, that is, the second ratio, and slow the recorded video based on the second ratio. The action is processed and written to a file for storage.
  • the obtaining module 11 may be specifically configured to: when acquiring a recording rate parameter determined based on a user selection instruction:
  • a selection instruction input by the user for the at least one set of recording rate parameters is received, the selection instruction indicating a determined recording rate parameter.
  • the device 10 may further include:
  • the control module 13 is configured to suspend recording of the video image when receiving a rate change instruction based on a user operation input;
  • the obtaining module 11 is further configured to acquire a new recording rate parameter corresponding to the rate change instruction;
  • the recording module 12 is further configured to record the video image based on the playback rate acquired by the acquiring module 11 and the new recording rate parameter.
  • control module 13 can also detect whether a rate change instruction for instructing to change the recording rate is received, so as to perform a recording rate change upon confirming receipt of the user change instruction, thereby achieving flexible adjustment of the recording rate.
  • the rate change command carries the changed recording rate information, that is, the new recording rate parameter.
  • the control module 13 is further configured to stop recording the video image when the recording rate parameter input is detected.
  • control module 13 may also control to stop video recording when the recording rate parameter input is detected or the photographing device pauses to play the video image.
  • the device 10 may further include:
  • the tracking module 14 is configured to perform object tracking based on the video image
  • the thread used by the object tracking, the thread used for playing the video image, and the thread used for recording the video image may be independent of each other.
  • the reasonable resource allocation processing by the CPU or the GPU and the multi-channel resource scheduling under the multi-threading realize simultaneous display of video, recorded video, and tracking, ensuring fast and flexible switching of the recording rate, and rapid synthesis of the video.
  • the video image may be recorded based on the playback rate and the recording rate parameter by acquiring a playback rate of the shooting device when playing the video image and a recording rate parameter determined based on the user selection instruction. Recording video at the recording rate required by the user, which improves the recording efficiency and flexibility of the video.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores program instructions, and the program instructions may include some or all of the steps of the video recording method according to the embodiment of FIG. 1 to FIG.
  • FIG. 5 is a schematic structural diagram of a photographing apparatus according to an embodiment of the present invention.
  • the photographing apparatus 1 of the embodiment of the present invention may include a video recording apparatus 10 and The platform 20 to which the video recording device 10 is connected.
  • the video recording device 10 can refer to the related description of the video recording device 10 in the corresponding embodiment of FIG. 4, and details are not described herein.
  • the pan/tilt head 20 can automatically follow the selected target, utilize the three-axis stabilization to filter the bumps and shakes in the motion, and utilize the functions of the three-axis motion delay photography to bring more dynamic visual effects. .
  • FIG. 6 is a schematic structural diagram of another photographing apparatus according to an embodiment of the present invention.
  • the photographing apparatus 1 in the embodiment of the present invention may include: a communication interface 300, a memory 200, and a processor 100.
  • the processor 100 is connected to the communication interface 300 and the memory 200, respectively.
  • the communication interface 300 may include various standard buttons, a touch screen, a camera, a speaker, etc., and may also include a wired interface, a wireless interface, and the like.
  • the memory 200 may include a volatile memory such as a random-access memory (RAM); the memory 200 may also include a non-volatile memory such as a flash. A flash memory or the like; the memory 200 may further include a combination of the above types of memories.
  • the memory 200 can store an operating system, program instructions required for at least one function, and the like.
  • 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 a graphics 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) or a field-programmable gate array (FPGA).
  • the memory 200 is further configured to store program instructions.
  • the processor 100 can invoke the program instructions to implement a video recording method as shown in the embodiments of FIGS. 1 to 3 of the present application.
  • the processor 100 may invoke a program instruction stored in the memory 200 to execute:
  • the processor 100 performs the following steps when performing the recording of the video image based on the play rate and the recording rate parameter:
  • the video image is recorded at the write rate.
  • the processor 100 performs the following steps when performing the calculating the write rate of the video data corresponding to the video image based on the play rate and the recording rate parameter:
  • the processor 100 performs the following steps when performing the calculating the write rate of the video data corresponding to the video image based on the play rate and the recording rate parameter:
  • the processor 100 when performing the acquiring the recording rate parameter determined by the user selection instruction, the processor 100 specifically performs the following steps:
  • a selection instruction input by the user for the at least one set of recording rate parameters is received by the communication interface 300, the selection instruction indicating a determined recording rate parameter.
  • processor 100 further performs the following steps:
  • processor 100 further performs the following steps:
  • processor 100 further performs the following steps:
  • the thread used by the object tracking, the thread used for playing the video image, and the thread used for recording the video image are independent of each other.
  • the video image may be recorded based on the playback rate and the recording rate parameter by acquiring a playback rate of the shooting device when playing the video image and a recording rate parameter determined based on the user selection instruction. Recording video at the recording rate required by the user, which improves the recording efficiency and flexibility of the video.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above integrated unit implemented in the form of a software functional unit can be stored in a computer Read in the storage medium.
  • the above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

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

一种视频录制方法、装置及拍摄设备,其中,所述方法包括:(101)获取拍摄设备在播放视频图像时的播放速率;(102)获取基于用户选择指令确定出的录制速率参数;(103)基于所述播放速率和所述录制速率参数对所述视频图像进行录制。采用本发明实施例,能够按照用户需求的录制速率录制视频,从而提升了视频的录制效率及灵活性。

Description

视频录制方法、装置及拍摄设备
本专利文件披露的内容包含受版权保护的材料。该版权为版权所有人所有。版权所有人不反对任何人复制专利与商标局的官方记录和档案中所存在的该专利文件或该专利披露。
技术领域
本申请涉及通信技术领域,尤其涉及一种视频录制方法、装置及拍摄设备。
背景技术
随着终端技术以及图像处理技术的不断发展,照相机、摄像机等拍摄设备得到广泛使用。该拍摄设备可用于拍照、摄像、录像等等,为用户的学习、生活、工作带来极大便利。
现有的拍摄技术中,在进行录像操作时,拍摄设备往往不能调节录制速度,只能按照指定的视频播放速度去录制,这就降低了视频录制的灵活性。在需要获取慢动作视频时,只能先拍摄高帧率的视频,再对该视频进行处理以改变帧率,从而得到该慢动作视频;同理,需要获取快动作视频时,只能先拍摄低帧率的视频,再对该视频进行处理以改变帧率,从而得到该快动作视频。然而,先拍摄再处理的方式会导致得到的视频较大,且录制效率较低,无法满足用户的拍摄需求。
发明内容
本发明实施例提供一种视频录制方法、装置及拍摄设备,能够按照用户需求的录制速率录制视频,从而提升了视频的录制效率及灵活性。
第一方面,本发明实施例提供了一种视频录制方法,包括:
获取拍摄设备在播放视频图像时的播放速率;
获取基于用户选择指令确定出的录制速率参数;
基于所述播放速率和所述录制速率参数对所述视频图像进行录制。
第二方面,本发明实施例还提供了一种视频录制装置,包括:
获取模块,用于获取拍摄设备在播放视频图像时的播放速率;
所述获取模块,还用于获取基于用户选择指令确定出的录制速率参数;
录制模块,用于基于所述获取模块获取的所述播放速率和所述录制速率参数对所述视频图像进行录制。
第三方面,本发明实施例还提供了一种拍摄设备,包括:存储器和处理器,所述处理器与所述存储器连接;其中,
所述存储器,用于存储程序指令;
所述处理器,用于调用所述存储器中存储的程序指令执行:
获取拍摄设备在播放视频图像时的播放速率;
获取基于用户选择指令确定出的录制速率参数;
基于所述播放速率和所述录制速率参数对所述视频图像进行录制。
实施本发明实施例,具有如下有益效果:
本发明实施例可通过获取拍摄设备在播放视频图像时的播放速率以及基于用户选择指令确定出的录制速率参数,以基于该播放速率和该录制速率参数对视频图像进行录制,使得能够按照用户需求的录制速率录制视频,从而提升了视频的录制效率及灵活性。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种视频录制方法的流程示意图;
图2是本发明实施例提供的另一种视频录制方法的流程示意图;
图3是本发明实施例提供的一种线程管理示意图;
图4是本发明实施例提供的一种视频录制装置的结构示意图;
图5是本发明实施例提供的一种拍摄设备的结构示意图;
图6是本发明实施例提供的另一种拍摄设备的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书中的术语“第一”、“第二”等是用于区别不同对象,而非用于描述特定顺序。此外,术语“包括”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是可选地还包括没有列出的步骤或模块,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。
可选地,本发明实施例的技术方案可具体应用于手机(如Android手机、iOS手机等)、平板电脑、移动互联网设备(mobile internet devices,简称MID)、个人数字助理(personal digital assistant,简称PDA)、摄像机、照相机等具有录像功能的设备中。
进一步可选地,该拍摄设备中可设置传感器(sensor)以用于采集图像,并可根据拍摄帧率以及输出图像的帧率来实现慢动作、正常速度、缩时摄影效果的切换等等。其中,假设拍摄时在单位时间内如1秒内获取图像帧数为M张(即帧率为Mfps),而播放时按照每单位时间N张进行播放(即帧率为Nfps),若M大于N,即为慢速模式,则可得到一个慢动作效果;若M小于N,即为快速模式,则可得到一个快动作效果;若M等于N,即为正常模式,则可得到一个正常播放效果。其中,M和N均大于0。例如,假设拍摄设备在高帧率(如120p)拍摄,输出30p的视频,即为4x慢动作摄影,如果1s拍摄1张照片,30s输出1秒钟30p的视频,即为30x缩时摄影。
本发明实施例公开了一种视频录制方法、装置及拍摄设备,能够按照用户需求的录制速率录制视频,从而提升了视频的录制效率及灵活性。以下分别详细说明。
请参见图1,图1是本发明实施例提供的一种视频录制方法的流程示意图。 具体地,如图1所示,本发明实施例的所述视频录制方法可以包括以下步骤:
101、获取拍摄设备在播放视频图像时的播放速率。
102、获取基于用户选择指令确定出的录制速率参数。
具体地,在进行视频录制时,可根据用户需求来确定该视频录制的录制速率参数。比如,可提供多个速率按键(比如在拍摄设备本身或与该拍摄设备连接的云台上设置该速率按键)以供用户选择录制速率参数,或者通过输出一个包括多种录制速率的交互界面以供用户选择录制速率参数,或者通过输出一个窗口以使用户直接输入该录制速率参数等等,对于该录制速率参数的确定方式,本发明实施例不做限定。其中,该录制速率参数可以是具体的速率值,如15fps、30fps、60fps、120fps等等;或者,该录制速率参数还可以是用于指示放慢录制速率或加快录制速率的速率变化值,如加快3倍(+3x)、放慢4倍(-4x)等等。
103、基于所述播放速率和所述录制速率参数对所述视频图像进行录制。
具体地,在确定出播放视频时的播放速率以及需求的录制速率参数之后,即可基于该播放速率和该录制速率参数对视频图像进行录制,比如可基于该播放速率和该录制速率参数计算写入速率,以基于该写入速率写入视频数据,从而完成视频录制。其中,该播放速率可以与该拍摄设备的拍摄速率相匹配,从而可实现一边拍摄视频一边录制,拍摄完成即可录制完成,视频录制的灵活性及效率较高。
在本发明实施例中,可通过获取拍摄设备在播放视频图像时的播放速率以及基于用户选择指令确定出的录制速率参数,以基于该播放速率和该录制速率参数对视频图像进行录制,使得能够按照用户需求的录制速率录制视频,从而提升了视频的录制效率及灵活性。
进一步地,请参见图2,图2是本发明实施例提供的另一种视频录制方法的流程示意图。具体地,如图2所示,本发明实施例的所述视频录制方法可以包括以下步骤:
201、获取拍摄设备在播放视频图像时的播放速率。
202、获取基于用户选择指令确定出的录制速率参数。
可选地,所述获取基于用户选择指令确定出的录制速率参数,可以具体为: 获取所述拍摄设备的设备参数信息;基于所述设备参数信息确定出所述拍摄设备所支持的至少一组录制速率参数;显示包括所述至少一组录制速率参数的交互界面;接收用户针对所述至少一组录制速率参数输入的选择指令,该选择指令种可指示有确定出的录制速率参数。从而能够基于该选择指令确定用户需求的录制速率参数。
具体地,由于不同拍摄设备支持的帧率范围可能不同,则可通过获取拍摄设备的设备参数信息,如设备型号等,来确定出该拍摄设备能够支持的帧率,以确定出录制的最慢速度或最快速率是正常速度的倍数,从而能够基于拍摄设备支持的帧率来进行视频录制。可选地,在确定出拍摄设备能够支持的帧率之后,可以输出该支持帧率对应的录制速率以供用户选择,以使用户从中选择出一个速率作为录制速率进行视频录制。在其他可选的实施例中,用户还可通过点击预设按键输入该录制速率参数,如通过点击设置于拍摄设备或者设置于与该拍摄设备连接的云台上的速率按键输入该录制速率参数。
203、基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率。
204、按照所述写入速率对所述视频图像进行录制。
可选地,所述基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率,可以具体为:当所述录制速率参数指示的录制模式确定为快速模式时,确定所述录制速率参数与所述播放速率的第一比值;基于所述播放速率、所述快速模式和所述第一比值计算写入速率,并将计算得到的所述写入速率作为所述视频图像对应的视频数据的写入速率。具体地,当检测到用户选择的录制速率参数对应为快速模式,则可获取该录制速率参数与该播放速率的倍数,即第一比值,并可基于该第一比值对录制的视频进行快动作处理并写入文件进行存储。例如,假设获取的播放速率为30fps,检测到用户点击设置的速率按键“+3x”,则可确定该“+3x”对应的录制模式为快速模式,该第一比值为3,并可计算得到该写入速率为120fps,则可按照该录制速率参数对播放速率加快3倍的写入速率写入视频数据。
可选地,所述基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率,可以具体为:当所述录制速率参数指示的录制模 式确定为慢速模式时,确定所述播放速率与所述录制速率参数的第二比值;基于所述播放速率、所述慢速模式和所述第二比值计算写入速率,并将计算得到的所述写入速率作为所述视频图像对应的视频数据的写入速率。具体地,可通过获取拍摄设备所支持的帧率范围和正常的播放速率,确定出支持的最大帧率是该播放速率的倍数,以进一步确定出慢速的范围。当检测到用户选择的录制速率对应为慢速模式,则可获取该播放速率与录制速率参数的倍数,即第二比值,并基于该第二比值对录制的视频进行慢动作处理并写入文件进行存储。例如,假设获取的播放速率为60fps,检测到用户点击设置的速率按键“-2x”,则可确定该“-2x”对应的录制模式为慢速模式,该第二比值为2,并可计算得到该写入速率为30fps,则可按照该录制速率参数对播放速率放慢2倍的写入速率写入视频数据。
可选地,该录制参数还可以是具体的速率值,则还可将用户可对拍摄设备进行操作输入的录制速率参数指示的速率值作为该写入速率。
205、接收基于用户操作输入的速率更改指令。
206、响应所述速率更改指令,暂停对所述视频图像的录制,并获取所述速率更改指令对应的新的录制速率参数。
207、基于所述播放速率和所述新的录制速率参数对所述视频图像进行录制。
在录制过程中,还可检测是否接收到用于指示更改录制速率的速率更改指令,以便于在确认接收到用户更改指令时进行录制速率更改,从而实现对录制速率的灵活调整。其中,该速率更改指令中携带后更改后的录制速率信息,即新的录制速率参数。例如,可预先在拍摄设备上增加指示录制速率的速率按键,如在拍摄设备的手持云台上增加加速/减速(+/-)的速率按键,通过点击该速率按键,可以切换sensor的工作模式为120p、30p、1p或更多。用户可以通过操作拍摄设备的手持云台上的按键,即可更改制定的视频录制速率,从而实现录像过程中智能调速、快慢速的结合。
进一步可选地,在一些实施例中,还可在检测到该录制速率参数输入或者拍摄设备暂停播放视频图像时,停止对所述视频图像进行录制。进一步地,可在获取到新的写入速率时,按照新的写入速率继续录制。
进一步可选地,在一些实施例中,还可基于所述视频图像进行对象跟踪。其中,该对象跟踪(tracking)所使用的线程、该视频图像播放所使用的线程与该视频图像录制所使用的线程可相互独立。其中,tracking是指在图像里选择一个特定的目标(如人、动物等),所述目标移动时,视频录制装置可以跟随所述目标移动,以使所述目标始终处于所述视频录制装置拍摄的图像或视频之内,tracking用的是可以是与录制的视频图像相同的图像,可以是不同的图像。tracking利用图像可以为拍摄获取的原始图,以保证跟踪的效率;而录制的视频图像可以是原始图,也可以是被处理过的图像。
具体地,如图3所示,在本发明实施例中,视频流的独立线程负责处理视频流数据,并可将视频流复制成多份数据。其中,一份可通过中央处理器(central processing unit,简称CPU)进行帧率调节并交给视频录制线程做录制视频操作;一份可交给视频显示线程通过图像处理器(graphics processing unit,简称GPU)做视频显示;一份可交给tracking线程通过GPU处理。从而可通过多线程下的多路资源调度,实现同时显示视频、录制视频以及tracking,并通过CPU或GPU的合理的资源分配处理,确保了录制速率的快速灵活切换,以及视频快速合成。
举例来说,当基于用户需求对已存储的视频图像或者当前正在拍摄的视频图像进行录制时,用户可进行录制速率的选择并点击开始录制,从而触发根据该选择的录制速率参数和该录制的视频图像对应的播放速率进行视频录制。具体地,可在本地的文件夹的指定目录新建一个文件,同时新建一个写入线程进行线程轮循,在需要录制的视频处于非暂停状态下时,可根据用户设置的目标录制速度是按照慢速模式还是快速模式进行录制视频的视频数据写入,通过修改视频回调数据的时间来写入数据到文件中。进一步地,在视频录制过程中,若用户需要修改录制速率,在接收到用户输入的速率修改指令,比如用户点击了另外一个录制速率触发的速率录制指令时,可先暂停录制,并获得的用户设置的最新录制速率,即新的录制速率参数。检测该新的录制速率参数为慢速模式或快速模式,并基于新的录制速率参数去设置视频回调帧率,即确定出新的写入速率。进一步地,可将暂停模式关闭,以保证写入线程继续写入数据。当用户点击停止录制时,或者视频播放完成时,写入完成,即可关闭线程。此时 完成录制。
在本发明实施例中,可通过一个独立写入线程的控制以及写入视频数据速率的更改来保证录制和其他操作同步进行,从而较优地实现多路操作,如可一边进行视频显示,一边调速录像,并同时支持tracking,使得能够实现一次得到快慢相间的视频,这就减少了生成视频的等待时间。同时,通过对GPU和CPU的合理资源分配,使得多路数据操作仍能同时流畅地进行,并能够通过修改回调的视频数据的时间进行写入即修改录制视频的写入速率,来防止丢帧现象的发生,从而有效提升了视频录制的效率、灵活性和可靠性。
请参见图4,图4是本发明实施例提供的一种视频录制装置10的结构示意图。具体地,如图4所示,本发明实施例的所述视频录制装置10可以包括获取模块11以及录制模块12。其中,
所述获取模块11,用于获取拍摄设备在播放视频图像时的播放速率。
所述获取模块11,还用于获取基于用户选择指令确定出的录制速率参数。
具体地,在需要进行视频录制时,获取模块11可根据用户需求来确定该视频录制的录制速率参数。其中,该录制速率参数可以是具体的速率值,或者,该录制速率参数还可以是用于指示放慢录制速率或加快录制速率的速率变化值,等等,本发明实施例不做限定。
所述录制模块12,用于基于所述获取模块11获取的所述播放速率和所述录制速率参数对所述视频图像进行录制。
可选地,所述录制模块12可具体用于:
基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率;
按照所述写入速率对所述视频图像进行录制。
具体地,在获取模块11确定出播放视频时的播放速率以及需求的录制速率参数之后,录制模块12即可基于该播放速率和该录制速率参数对视频图像进行录制,比如可基于该播放速率和该录制速率参数计算写入速率,以基于该写入速率写入视频数据,从而完成视频录制。其中,该播放速率可以与该拍摄设备的拍摄速率相匹配,从而可实现一边拍摄视频一边录制,拍摄完成即可录制完成,视频录制的灵活性及效率较高。
可选地,所述录制模块12在基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率时,可具体用于:
当所述录制速率参数指示的录制模式确定为快速模式时,确定所述录制速率参数与所述播放速率的第一比值;
基于所述播放速率、所述快速模式和所述第一比值计算写入速率,并将计算得到的所述写入速率作为所述视频图像对应的视频数据的写入速率。
具体地,当检测到用户选择的录制速率对应为快速模式,录制模块12则可获取该录制速率参数与该播放速率的倍数,即第一比值,并可基于该第一比值对录制的视频进行快动作处理并写入文件进行存储。
可选地,所述录制模块12在基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率时,可具体用于:
当所述录制速率参数指示的录制模式确定为慢速模式时,确定所述播放速率与所述录制速率参数的第二比值;
基于所述播放速率、所述慢速模式和所述第二比值计算写入速率,并将计算得到的所述写入速率作为所述视频图像对应的视频数据的写入速率。
具体地,当检测到用户选择的录制速率对应为慢速模式,录制模块12则可获取该播放速率与录制速率参数的倍数,即第二比值,并基于该第二比值对录制的视频进行慢动作处理并写入文件进行存储。
进一步可选地,所述获取模块11在获取基于用户选择指令确定出的录制速率参数时,可具体用于:
获取所述拍摄设备的设备参数信息;
基于所述设备参数信息确定出所述拍摄设备所支持的至少一组录制速率参数;
显示包括所述至少一组录制速率参数的交互界面;
接收用户针对所述至少一组录制速率参数输入的选择指令,所述选择指令指示有确定出的录制速率参数。
进一步可选地,所述装置10还可包括:
控制模块13,用于当接收到基于用户操作输入的速率更改指令时,暂停对所述视频图像的录制;
所述获取模块11,还可用于获取所述速率更改指令对应的新的录制速率参数;
所述录制模块12,还可用于基于所述获取模块11获取的所述播放速率和所述新的录制速率参数对所述视频图像进行录制。
在录制过程中,控制模块13还可检测是否接收到用于指示更改录制速率的速率更改指令,以便于在确认接收到用户更改指令时进行录制速率更改,从而实现对录制速率的灵活调整。其中,该速率更改指令中携带后更改后的录制速率信息,即新的录制速率参数。
进一步可选地,在一些实施例中,
所述控制模块13,还可用于当检测到所述录制速率参数输入时,停止对所述视频图像进行录制。
具体地,控制模块13还可在检测到该录制速率参数输入或者拍摄设备暂停播放视频图像时,控制停止视频录制。
进一步可选地,在一些实施例中,所述装置10还可包括:
跟踪模块14,用于基于所述视频图像进行对象跟踪;
其中,所述对象跟踪所使用的线程、所述视频图像播放所使用的线程与所述视频图像录制所使用的线程可相互独立。
具体地,通过CPU或GPU的合理的资源分配处理以及多线程下的多路资源调度,则实现了同时显示视频、录制视频以及tracking,确保了录制速率的快速灵活切换,以及视频的快速合成。
在本发明实施例中,可通过获取拍摄设备在播放视频图像时的播放速率以及基于用户选择指令确定出的录制速率参数,以基于该播放速率和该录制速率参数对视频图像进行录制,使得能够按照用户需求的录制速率录制视频,从而提升了视频的录制效率及灵活性。
本发明实施例还提供了一种计算机存储介质,该计算机存储介质中存储有程序指令,该程序指令执行时可包括如图1至图3对应实施例的视频录制方法的部分或全部步骤。
请参见图5,图5是本发明实施例提供的一种拍摄设备的结构示意图。如图5所示,本发明实施例的所述拍摄设备1可包括视频录制装置10以及与该 视频录制装置10连接的云台20。
具体地,该视频录制装置10可参照上述图4对应实施例中的视频录制装置10的相关描述,此处不赘述。进一步地,通过该云台20可实现自动跟随所选目标,利用三轴增稳可过滤运动中的颠簸和抖动,利用三轴移动延时摄影等等功能,从而带来更具动感的视觉效果。
再请参见图6,图6是本发明实施例提供的另一种拍摄设备的结构示意图,本发明实施例中的所述拍摄设备1可包括:通信接口300、存储器200和处理器100,所述处理器100分别与所述通信接口300及所述存储器200连接。
所述通信接口300可包括标准的各种按键、触摸屏、摄像头、扬声器等,还可以包括有线接口、无线接口等。
所述存储器200可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,简称RAM);存储器200也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory)等;存储器200还可以包括上述种类的存储器的组合。存储器200可存储操作系统、至少一个功能所需的程序指令等。在本发明实施例中,该操作系统可以是Android系统、iOS系统或Windows操作系统等等。
所述处理器100可以包括中央处理器(central processing unit,简称CPU)、图像处理器(graphics processing unit,简称GPU)。所述处理器100还可以进一步包括硬件芯片。硬件芯片可以是专用集成电路(application-specific integrated circuit,简称ASIC),可编程逻辑器件(programmable logic device,简称PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,简称CPLD),现场可编程逻辑门阵列(field-programmable gate array,简称FPGA)等。
可选地,所述存储器200还用于存储程序指令。所述处理器100可以调用所述程序指令,实现如本申请图1至图3实施例中所示的视频录制方法。
具体地,所述处理器100可调用所述存储器200中存储的程序指令执行:
获取拍摄设备在播放视频图像时的播放速率;
获取基于用户选择指令确定出的录制速率参数;
基于所述播放速率和所述录制速率参数对所述视频图像进行录制。
可选地,所述处理器100在执行所述基于所述播放速率和所述录制速率参数对所述视频图像进行录制时,具体执行以下步骤:
基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率;
按照所述写入速率对所述视频图像进行录制。
可选地,所述处理器100在执行所述基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率时,具体执行以下步骤:
当所述录制速率参数指示的录制模式确定为快速模式时,确定所述录制速率参数与所述播放速率的第一比值;
基于所述播放速率、所述快速模式和所述第一比值计算写入速率,并将计算得到的所述写入速率作为所述视频图像对应的视频数据的写入速率。
可选地,所述处理器100在执行所述基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率时,具体执行以下步骤:
当所述录制速率参数指示的录制模式确定为慢速模式时,确定所述播放速率与所述录制速率参数的第二比值;
基于所述播放速率、所述慢速模式和所述第二比值计算写入速率,并将计算得到的所述写入速率作为所述视频图像对应的视频数据的写入速率。
可选地,所述处理器100在执行所述获取基于用户选择指令确定出的录制速率参数时,具体执行以下步骤:
获取所述拍摄设备的设备参数信息;
基于所述设备参数信息确定出所述拍摄设备所支持的至少一组录制速率参数;
显示包括所述至少一组录制速率参数的交互界面;
通过所述通信接口300接收用户针对所述至少一组录制速率参数输入的选择指令,所述选择指令指示有确定出的录制速率参数。
可选地,所述处理器100还执行以下步骤:
通过所述通信接口300接收基于用户操作输入的速率更改指令;
响应所述速率更改指令,暂停对所述视频图像的录制,并获取所述速率更改指令对应的新的录制速率参数;
基于所述播放速率和所述新的录制速率参数对所述视频图像进行录制。
可选地,所述处理器100还执行以下步骤:
当检测到所述录制速率参数输入时,停止对所述视频图像进行录制。
可选地,所述处理器100还执行以下步骤:
基于所述视频图像进行对象跟踪;
其中,所述对象跟踪所使用的线程、所述视频图像播放所使用的线程与所述视频图像录制所使用的线程相互独立。
在本发明实施例中,可通过获取拍摄设备在播放视频图像时的播放速率以及基于用户选择指令确定出的录制速率参数,以基于该播放速率和该录制速率参数对视频图像进行录制,使得能够按照用户需求的录制速率录制视频,从而提升了视频的录制效率及灵活性。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可 读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (24)

  1. 一种视频录制方法,其特征在于,包括:
    获取拍摄设备在播放视频图像时的播放速率;
    获取基于用户选择指令确定出的录制速率参数;
    基于所述播放速率和所述录制速率参数对所述视频图像进行录制。
  2. 根据权利要求1所述的方法,其特征在于,所述基于所述播放速率和所述录制速率参数对所述视频图像进行录制,包括:
    基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率;
    按照所述写入速率对所述视频图像进行录制。
  3. 根据权利要求2所述的方法,其特征在于,所述基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率,包括:
    当所述录制速率参数指示的录制模式确定为快速模式时,确定所述录制速率参数与所述播放速率的第一比值;
    基于所述播放速率、所述快速模式和所述第一比值计算写入速率,并将计算得到的所述写入速率作为所述视频图像对应的视频数据的写入速率。
  4. 根据权利要求2所述的方法,其特征在于,所述基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率,包括:
    当所述录制速率参数指示的录制模式确定为慢速模式时,确定所述播放速率与所述录制速率参数的第二比值;
    基于所述播放速率、所述慢速模式和所述第二比值计算写入速率,并将计算得到的所述写入速率作为所述视频图像对应的视频数据的写入速率。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述获取基于用户选择指令确定出的录制速率参数,包括:
    获取所述拍摄设备的设备参数信息;
    基于所述设备参数信息确定出所述拍摄设备所支持的至少一组录制速率参数;
    显示包括所述至少一组录制速率参数的交互界面;
    接收用户针对所述至少一组录制速率参数输入的选择指令,所述选择指令指示有确定出的录制速率参数。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:
    接收基于用户操作输入的速率更改指令;
    响应所述速率更改指令,暂停对所述视频图像的录制,并获取所述速率更改指令对应的新的录制速率参数;
    基于所述播放速率和所述新的录制速率参数对所述视频图像进行录制。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:
    当检测到所述录制速率参数输入时,停止对所述视频图像进行录制。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:
    基于所述视频图像进行对象跟踪;
    其中,所述对象跟踪所使用的线程、所述视频图像播放所使用的线程与所述视频图像录制所使用的线程相互独立。
  9. 一种视频录制装置,其特征在于,包括:
    获取模块,用于获取拍摄设备在播放视频图像时的播放速率;
    所述获取模块,还用于获取基于用户选择指令确定出的录制速率参数;
    录制模块,用于基于所述获取模块获取的所述播放速率和所述录制速率参数对所述视频图像进行录制。
  10. 根据权利要求9所述的装置,其特征在于,所述录制模块具体用于:
    基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数 据的写入速率;
    按照所述写入速率对所述视频图像进行录制。
  11. 根据权利要求10所述的装置,其特征在于,所述录制模块在基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率时具体用于:
    当所述录制速率参数指示的录制模式确定为快速模式时,确定所述录制速率参数与所述播放速率的第一比值;
    基于所述播放速率、所述快速模式和所述第一比值计算写入速率,并将计算得到的所述写入速率作为所述视频图像对应的视频数据的写入速率。
  12. 根据权利要求10所述的装置,其特征在于,所述录制模块在基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率时具体用于:
    当所述录制速率参数指示的录制模式确定为慢速模式时,确定所述播放速率与所述录制速率参数的第二比值;
    基于所述播放速率、所述慢速模式和所述第二比值计算写入速率,并将计算得到的所述写入速率作为所述视频图像对应的视频数据的写入速率。
  13. 根据权利要求9-12任一项所述的装置,其特征在于,所述获取模块在获取基于用户选择指令确定出的录制速率参数时具体用于:
    获取所述拍摄设备的设备参数信息;
    基于所述设备参数信息确定出所述拍摄设备所支持的至少一组录制速率参数;
    显示包括所述至少一组录制速率参数的交互界面;
    接收用户针对所述至少一组录制速率参数输入的选择指令,所述选择指令指示有确定出的录制速率参数。
  14. 根据权利要求9-13任一项所述的装置,其特征在于,所述装置还包 括:
    控制模块,用于当接收到基于用户操作输入的速率更改指令时,暂停对所述视频图像的录制;
    所述获取模块,还用于获取所述速率更改指令对应的新的录制速率参数;
    所述录制模块,还用于基于所述播放速率和所述新的录制速率参数对所述视频图像进行录制。
  15. 根据权利要求9-14任一项所述的装置,其特征在于,
    所述控制模块,还用于当检测到所述录制速率参数输入时,停止对所述视频图像进行录制。
  16. 根据权利要求9-15任一项所述的装置,其特征在于,所述装置还包括:
    跟踪模块,用于基于所述视频图像进行对象跟踪;
    其中,所述对象跟踪所使用的线程、所述视频图像播放所使用的线程与所述视频图像录制所使用的线程相互独立。
  17. 一种拍摄设备,其特征在于,包括:存储器和处理器,所述处理器与所述存储器连接;其中,
    所述存储器,用于存储程序指令;
    所述处理器,用于调用所述存储器中存储的程序指令执行:
    获取拍摄设备在播放视频图像时的播放速率;
    获取基于用户选择指令确定出的录制速率参数;
    基于所述播放速率和所述录制速率参数对所述视频图像进行录制。
  18. 根据权利要求17所述的设备,其特征在于,所述处理器在执行所述基于所述播放速率和所述录制速率参数对所述视频图像进行录制时,具体执行以下步骤:
    基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数 据的写入速率;
    按照所述写入速率对所述视频图像进行录制。
  19. 根据权利要求18所述的设备,其特征在于,所述处理器在执行所述基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率时,具体执行以下步骤:
    当所述录制速率参数指示的录制模式确定为快速模式时,确定所述录制速率参数与所述播放速率的第一比值;
    基于所述播放速率、所述快速模式和所述第一比值计算写入速率,并将计算得到的所述写入速率作为所述视频图像对应的视频数据的写入速率。
  20. 根据权利要求18所述的设备,其特征在于,所述处理器在执行所述基于所述播放速率和所述录制速率参数,计算所述视频图像对应的视频数据的写入速率时,具体执行以下步骤:
    当所述录制速率参数指示的录制模式确定为慢速模式时,确定所述播放速率与所述录制速率参数的第二比值;
    基于所述播放速率、所述慢速模式和所述第二比值计算写入速率,并将计算得到的所述写入速率作为所述视频图像对应的视频数据的写入速率。
  21. 根据权利要求17-20任一项所述的设备,其特征在于,所述设备还包括通信接口;所述处理器在执行所述获取基于用户选择指令确定出的录制速率参数时,具体执行以下步骤:
    获取所述拍摄设备的设备参数信息;
    基于所述设备参数信息确定出所述拍摄设备所支持的至少一组录制速率参数;
    显示包括所述至少一组录制速率参数的交互界面;
    通过所述通信接口接收用户针对所述至少一组录制速率参数输入的选择指令,所述选择指令指示有确定出的录制速率参数。
  22. 根据权利要求17-21任一项所述的设备,其特征在于,所述处理器还执行以下步骤:
    通过所述通信接口接收基于用户操作输入的速率更改指令;
    响应所述速率更改指令,暂停对所述视频图像的录制,并获取所述速率更改指令对应的新的录制速率参数;
    基于所述播放速率和所述新的录制速率参数对所述视频图像进行录制。
  23. 根据权利要求17-22任一项所述的设备,其特征在于,所述处理器还执行以下步骤:
    当检测到所述录制速率参数输入时,停止对所述视频图像进行录制。
  24. 根据权利要求17-23任一项所述的设备,其特征在于,所述处理器还执行以下步骤:
    基于所述视频图像进行对象跟踪;
    其中,所述对象跟踪所使用的线程、所述视频图像播放所使用的线程与所述视频图像录制所使用的线程相互独立。
PCT/CN2016/105046 2016-11-08 2016-11-08 视频录制方法、装置及拍摄设备 WO2018085982A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/CN2016/105046 WO2018085982A1 (zh) 2016-11-08 2016-11-08 视频录制方法、装置及拍摄设备
CN201680061067.3A CN108271432B (zh) 2016-11-08 2016-11-08 视频录制方法、装置及拍摄设备
CN202011435919.5A CN112584074A (zh) 2016-11-08 2016-11-08 视频录制方法及拍摄设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/105046 WO2018085982A1 (zh) 2016-11-08 2016-11-08 视频录制方法、装置及拍摄设备

Publications (1)

Publication Number Publication Date
WO2018085982A1 true WO2018085982A1 (zh) 2018-05-17

Family

ID=62109056

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/105046 WO2018085982A1 (zh) 2016-11-08 2016-11-08 视频录制方法、装置及拍摄设备

Country Status (2)

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737884A (zh) * 2018-05-31 2018-11-02 腾讯科技(深圳)有限公司 一种内容录制方法及其设备、存储介质、电子设备
CN111294509A (zh) * 2020-01-22 2020-06-16 Oppo广东移动通信有限公司 视频拍摄方法、装置、终端及存储介质
CN112422804A (zh) * 2019-08-20 2021-02-26 华为技术有限公司 视频特效生成方法及终端
CN112653920A (zh) * 2020-12-18 2021-04-13 北京字跳网络技术有限公司 视频处理方法、装置、设备、存储介质及计算机程序产品
CN112686109A (zh) * 2020-12-22 2021-04-20 北京百度网讯科技有限公司 离线视频文件的提取方法、装置、电子设备及存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113286106B (zh) * 2021-06-18 2023-04-25 深圳传音通讯有限公司 录像方法、移动终端及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090190654A1 (en) * 2008-01-24 2009-07-30 Hiroaki Shimazaki Image recording device, image reproducing device, recording medium, image recording method, and program thereof
CN102801942A (zh) * 2012-07-23 2012-11-28 北京小米科技有限责任公司 一种录制视频及生成gif动态图的方法和装置
CN104539837A (zh) * 2014-11-28 2015-04-22 广东欧珀移动通信有限公司 一种录制变速回放视频的方法及装置
CN104660948A (zh) * 2015-03-09 2015-05-27 深圳市欧珀通信软件有限公司 一种视频录制方法和装置
CN104967803A (zh) * 2015-07-01 2015-10-07 广东欧珀移动通信有限公司 一种视频录制方法及装置

Family Cites Families (13)

* 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 (ja) * 2000-11-08 2005-01-05 株式会社東芝 記録再生装置
AU2002353058A1 (en) * 2001-12-03 2003-06-17 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 (ja) * 2003-07-18 2007-11-14 ソニー株式会社 撮像装置とその制御装置
JP4360399B2 (ja) * 2006-11-30 2009-11-11 ソニー株式会社 撮像装置
JP4933354B2 (ja) * 2007-06-08 2012-05-16 キヤノン株式会社 情報処理装置、及び情報処理方法
CN101466006A (zh) * 2009-01-05 2009-06-24 浙江大学 视频采集系统的实时数据存储方法
CN102547192B (zh) * 2010-12-21 2017-12-29 新奥特(北京)视频技术有限公司 一种对录像图像设置自动变速播放及回放功能的方法
CN102970542B (zh) * 2012-11-30 2015-06-10 上海晨思电子科技有限公司 一种视频数据转换的方法、装置和智能电视
CN105049918A (zh) * 2015-07-08 2015-11-11 成都西可科技有限公司 一种本地录制视频和网络直播视频的分离方法
CN105245812B (zh) * 2015-10-20 2018-09-04 广东欧珀移动通信有限公司 一种视频录制的方法及终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090190654A1 (en) * 2008-01-24 2009-07-30 Hiroaki Shimazaki Image recording device, image reproducing device, recording medium, image recording method, and program thereof
CN102801942A (zh) * 2012-07-23 2012-11-28 北京小米科技有限责任公司 一种录制视频及生成gif动态图的方法和装置
CN104539837A (zh) * 2014-11-28 2015-04-22 广东欧珀移动通信有限公司 一种录制变速回放视频的方法及装置
CN104660948A (zh) * 2015-03-09 2015-05-27 深圳市欧珀通信软件有限公司 一种视频录制方法和装置
CN104967803A (zh) * 2015-07-01 2015-10-07 广东欧珀移动通信有限公司 一种视频录制方法及装置

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737884A (zh) * 2018-05-31 2018-11-02 腾讯科技(深圳)有限公司 一种内容录制方法及其设备、存储介质、电子设备
CN108737884B (zh) * 2018-05-31 2022-05-10 腾讯科技(深圳)有限公司 一种内容录制方法及其设备、存储介质、电子设备
CN112422804A (zh) * 2019-08-20 2021-02-26 华为技术有限公司 视频特效生成方法及终端
CN111294509A (zh) * 2020-01-22 2020-06-16 Oppo广东移动通信有限公司 视频拍摄方法、装置、终端及存储介质
CN112653920A (zh) * 2020-12-18 2021-04-13 北京字跳网络技术有限公司 视频处理方法、装置、设备、存储介质及计算机程序产品
US12003884B2 (en) 2020-12-18 2024-06-04 Beijing Zitiao Network Technology Co., Ltd. Video processing method and apparatus, device, storage medium and computer program product
CN112686109A (zh) * 2020-12-22 2021-04-20 北京百度网讯科技有限公司 离线视频文件的提取方法、装置、电子设备及存储介质
CN112686109B (zh) * 2020-12-22 2024-06-21 北京百度网讯科技有限公司 离线视频文件的提取方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN108271432B (zh) 2020-12-29
CN108271432A (zh) 2018-07-10
CN112584074A (zh) 2021-03-30

Similar Documents

Publication Publication Date Title
WO2018085982A1 (zh) 视频录制方法、装置及拍摄设备
JP7138201B2 (ja) ビデオ撮影方法、装置、端末機器及び記憶媒体
US10447874B2 (en) Display control device and display control method for automatic display of an image
WO2021175055A1 (zh) 视频处理方法及相关装置
EP3526964B1 (en) Masking in video stream
KR101871364B1 (ko) 카메라 스위칭 동안 계속적으로 비디오를 캡쳐하는 방법 및 그 장치
WO2020029526A1 (zh) 视频特效添加方法、装置、终端设备及存储介质
WO2020015334A1 (zh) 视频处理方法、装置、终端设备及存储介质
KR20210092220A (ko) 실시간 비디오 특수 효과 시스템 및 방법
KR20210082232A (ko) 실시간 비디오 특수 효과 시스템 및 방법
US20160321833A1 (en) Method and apparatus for generating moving photograph based on moving effect
CN112653920B (zh) 视频处理方法、装置、设备及存储介质
JP2024506639A (ja) 画像表示方法、装置、機器及び媒体
CN112218154B (zh) 视频的获取方法和装置、存储介质及电子装置
WO2023035882A1 (zh) 视频处理方法、设备、存储介质和程序产品
WO2021083146A1 (zh) 视频处理方法、装置、终端及存储介质
US11076121B2 (en) Apparatus and associated methods for video presentation
JP6143678B2 (ja) 情報処理装置、情報処理方法、およびプログラム
WO2024007290A1 (zh) 视频的获取方法、电子设备、存储介质和程序产品
WO2024152925A1 (zh) 特效处理方法、装置、电子设备和存储介质
JP2015029228A5 (zh)
US11409434B2 (en) Image collection and processing method, apparatus, and storage medium
US20150162049A1 (en) Image processing device, image processing method, and program
CA2935233A1 (en) Universal capture
US11765333B1 (en) Systems and methods for improved transitions in immersive media

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16921413

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16921413

Country of ref document: EP

Kind code of ref document: A1