WO2021057412A1 - Video recording method, device, terminal, and computer-readable storage medium - Google Patents

Video recording method, device, terminal, and computer-readable storage medium Download PDF

Info

Publication number
WO2021057412A1
WO2021057412A1 PCT/CN2020/112905 CN2020112905W WO2021057412A1 WO 2021057412 A1 WO2021057412 A1 WO 2021057412A1 CN 2020112905 W CN2020112905 W CN 2020112905W WO 2021057412 A1 WO2021057412 A1 WO 2021057412A1
Authority
WO
WIPO (PCT)
Prior art keywords
video recording
recording
current
environment
video
Prior art date
Application number
PCT/CN2020/112905
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2021057412A1 publication Critical patent/WO2021057412A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control

Definitions

  • the present invention relates to the field of audio and video technology, and more specifically, to a video recording method, device, terminal, and computer-readable storage medium.
  • the terminal integrates functions such as communication, shooting, video and audio, and has become an indispensable part of people's daily life. Due to the technological breakthrough of high-definition cameras, the pixels of terminal cameras are getting higher and higher, which greatly improves the effects of taking pictures and video recording of the terminal, and the terminal is convenient to carry. People are more and more inclined to use the terminal to take pictures in normal life and travel. , Video recording.
  • the above terminal uses a mobile phone as an example.
  • the video recording parameters used by the mobile phone for video recording are consistent throughout the entire recording process and will not change. This results in poor video effects and greatly reduces the user’s experience. Experience satisfaction.
  • the video recording method, device, terminal, and computer-readable storage medium provided by the embodiments of the present invention aim to solve the technical problem at least to a certain extent.
  • the video recording parameters are consistent throughout the entire video recording process. Changes will occur, resulting in poor video effects and poor user experience.
  • an embodiment of the present invention provides a video recording method, which includes: performing video recording when a video recording instruction is received; during the video recording process, adjusting the video recording parameters according to the current recording environment; The video recording parameters for video recording.
  • the embodiment of the present invention also provides a device, the device includes: a recording module and an adjustment module; the recording module is used to perform video recording when a video recording instruction is received; the adjustment module is used to perform video recording during the video recording process , Adjust the video recording parameters according to the current recording environment; the recording module is also used to perform video recording according to the adjusted video recording parameters.
  • the embodiment of the present invention also provides a terminal, the terminal includes a processor, a memory, and a communication bus; the communication bus is used to realize the connection and communication between the processor and the memory; the processor is used to execute the data stored in the memory One or more computer programs to implement the steps of the video recording method described above.
  • the embodiment of the present invention also provides a computer-readable storage medium.
  • the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to realize the video recording as described above. Method steps.
  • FIG. 1 is a schematic diagram of the basic flow of a video recording method according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic structural diagram 1 of the apparatus provided in the second embodiment of the present invention.
  • FIG. 3 is a schematic diagram 2 of the structure of the apparatus provided by Embodiment 3 of the present invention.
  • FIG. 4 is a schematic diagram three of the structure of the device provided by the fourth embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal provided in Embodiment 5 of the present invention.
  • an embodiment of the present invention provides a video recording method. , By performing video recording when a video recording instruction is received, further, during the video recording process, adjust the video recording parameters according to the current recording environment, and further, perform video recording according to the adjusted video recording parameters; see As shown in FIG. 1, FIG. 1 is a schematic diagram of the basic flow of the video recording method provided by this embodiment.
  • the video recording instruction in this embodiment can be issued by the user clicking or pressing a physical button, or it can be issued by the user clicking or pressing a virtual button, or it can be issued by a non-touch screen, such as voice. It can be. It is worth noting that in practical applications, it can be flexibly adjusted according to specific application scenarios. As long as it belongs to the way in which video recording instructions can be issued, all are within the protection scope of the present invention, and the present invention does not limit this.
  • the video recording parameters in this embodiment include but are not limited to exposure time, frame rate, contrast, and saturation, where the video recording parameters include any one or any combination of exposure time, frame rate, contrast, and saturation. form. It is worth noting that, here are just a few common video recording parameters, which can be flexibly adjusted according to specific application scenarios in actual applications.
  • the adjustment of the video recording parameters according to the current recording environment in this embodiment includes at least the following two ways:
  • Method 1 Adjust the video recording parameters according to the picture movement rate of the current recording environment.
  • the video recording parameters are adjusted according to the picture movement rate of the current recording environment, including:
  • the frame movement rate of the current recording environment can be acquired by acquiring image frames, and performing image recognition on the acquired image frames, such as a difference method. It is worth noting that the present invention is not limited to this method, as long as it belongs to the method that can determine the picture movement rate of the current recording environment, it is within the protection scope of the present invention.
  • the picture movement rate-target recording parameter mapping table is pre-stored on the terminal.
  • Table 1 For a better understanding, a specific example is used for illustration, for example, see Table 1:
  • the video recording parameters include exposure time, frame rate, contrast, and saturation.
  • the slower the picture movement rate (a2 ⁇ a3 ⁇ a4 ⁇ a5 ⁇ a6 ⁇ a7) corresponds to the larger the exposure time (K1 >K2>K3>K4>K5>K6>K7), the smaller the frame rate (N1 ⁇ N2 ⁇ N3 ⁇ N4 ⁇ N5 ⁇ N6 ⁇ N7), the smaller the contrast (M1 ⁇ M2 ⁇ M3 ⁇ M4 ⁇ M5 ⁇ M6 ⁇ M7), the smaller the saturation (Q1 ⁇ Q2 ⁇ Q3 ⁇ Q4 ⁇ Q5 ⁇ Q6 ⁇ Q7).
  • the obtained screen movement rate can also be judged to determine whether it belongs to a non-moving scene or a moving scene, where the screen movement rate is less than the preset threshold corresponding to the non-moving scene, and the screen movement rate greater than the preset threshold corresponds to Mobile scenarios, for example, see Table 2:
  • the video recording parameters include exposure time, frame rate, contrast, and saturation.
  • the picture movement rate below a5 corresponds to the unmoved scene
  • the picture movement rate above a5 corresponds to the moving scene
  • the exposure time is K1 >K2
  • contrast M1 ⁇ M2 saturation Q1 ⁇ Q2.
  • the picture movement rate-target recording parameter mapping table is flexibly set by the developer based on experiments or experience.
  • Method 2 Adjust the video recording parameters according to the brightness value of the current recording environment.
  • the video recording parameters are adjusted according to the brightness value of the current recording environment, including:
  • the brightness value of the current recording environment can be obtained by collecting image frames to perform image recognition on the collected image frames; in other examples, the brightness value of the current recording environment can be obtained by determining the brightness value of the current recording environment through a photosensitive sensor. Brightness value. It should be noted that the present invention is not limited to these two methods, as long as it belongs to the method that can determine the brightness value of the current recording environment, it is within the protection scope of the present invention.
  • picture movement rate-target recording parameter mapping table is pre-stored on the terminal
  • the video recording parameters include exposure time, frame rate, contrast, and saturation.
  • the obtained brightness value of the current recording environment can also be judged to determine whether it belongs to a night scene or a daytime scene, where the brightness value is less than the preset threshold value corresponding to the night scene, and the brightness value greater than the preset threshold value corresponds to the daytime scene.
  • the video recording parameters include exposure time, frame rate, contrast, and saturation.
  • the brightness value below b5 corresponds to the night scene
  • the brightness value above b5 corresponds to the day scene
  • the exposure time is K1>K2.
  • the above listed are only two examples of brightness value-target recording parameter mapping tables.
  • the brightness value-target recording parameter mapping tables can be flexibly set by the developer based on experiments or experience.
  • method 1 and method 2 can be executed separately or at the same time.
  • the video recording parameter values obtained from Table 1 and Table 2 may be different. In this case, it can be obtained from Table 1.
  • the video recording parameter values in Table 2 shall prevail, or the video recording parameter values obtained in Table 2 shall prevail, or the average value of the obtained video recording parameter values in Table 1 and Table 2 may be taken or other calculations can be carried out. .
  • video recording is performed according to the adjusted video recording parameters.
  • the terminal starts video recording with the video recording parameters corresponding to the moving scene, that is, when receiving a video recording instruction for video recording, the corresponding exposure time is K2, the frame rate is N2, and the contrast It is M2 and the saturation is Q2.
  • the current environment is monitored and it is found that the current scene is not moving.
  • the exposure time is automatically adjusted to K1, the frame rate is N1, the contrast is M1, and the saturation is Q1, because the exposure time is K1>K2.
  • the terminal starts video recording with the video recording parameters corresponding to the daytime scene, that is, when receiving a video recording instruction to perform video recording, the corresponding exposure time is K2, and the frame rate is N2.
  • the contrast is M2 and the saturation is Q2.
  • the current environment is monitored and it is found that it is currently in a night scene.
  • the exposure time is automatically adjusted to K1
  • the frame rate is N1
  • the contrast is M1
  • the saturation Q1 because the exposure time is K1>K2.
  • the video recording method provided by the embodiment of the present invention performs video recording when a video recording instruction is received. Further, during the video recording process, the video recording parameters are adjusted according to the current recording environment, and further, according to the adjusted Video recording parameters are used for video recording; it solves the problem that the video recording parameters are consistent and will not change during the entire video recording process in some cases, resulting in poor video effects and poor user experience. That is, in the video recording method provided by the embodiments of the present invention, the current video recording parameters are adjusted in real time according to the current recording environment during the video recording process, and then the video recording is performed according to the adjusted video recording parameters. Combined with the dynamic adjustment of video recording parameters in the current recording environment, the effect of video recording is greatly improved, thereby enhancing user experience satisfaction.
  • the video recording method provided by the embodiments of the present invention are dynamically adjusted in real time according to the current recording environment, and the video recording parameter exposure time can effectively improve the definition of the video screen.
  • Video shooting effect in terms of video recording parameter frame rate, it can effectively reduce the transmission bit rate of subsequent video uploads, reduce bandwidth waste, and further improve user experience satisfaction.
  • FIG. 2 is a schematic structural diagram of the apparatus provided in this embodiment:
  • the device provided in this embodiment includes a recording module 201 and an adjustment module 202;
  • the recording module 201 is configured to perform video recording when a video recording instruction is received;
  • the adjustment module 202 is used to adjust the video recording parameters according to the current recording environment during the video recording process
  • the recording module 201 is also configured to perform video recording according to the adjusted video recording parameters.
  • the recording module 201 and the adjustment module 202 in this embodiment include but are not limited to being implemented by a processor or other hardware devices.
  • the video recording parameters in this embodiment include but are not limited to exposure time, frame rate, contrast, and saturation, where the video recording parameters include any one or any combination of exposure time, frame rate, contrast, and saturation. form. It is worth noting that, here are just a few common video recording parameters, which can be flexibly adjusted according to specific application scenarios in actual applications.
  • the adjustment module 202 in this embodiment adjusts the video recording parameters according to the current recording environment, including at least the following two ways:
  • Manner 1 The adjustment module 202 adjusts the video recording parameters according to the picture movement rate of the current recording environment.
  • the adjustment module 202 obtains the picture movement rate of the current recording environment, determines the target recording parameters according to the picture movement rate and the picture movement rate-target recording parameter mapping table, and adjusts the current video recording parameters according to the target recording parameters.
  • the adjustment module 202 can acquire the frame movement rate of the current recording environment by acquiring image frames, and perform image recognition, such as a difference method, on the acquired image frames.
  • the adjustment module 202 adjusts the video recording parameters according to the brightness value of the current recording environment.
  • the adjustment module 202 obtains the brightness value of the current recording environment, determines the target recording parameter according to the brightness value and the brightness value-target recording parameter mapping table, and adjusts the current video recording parameter according to the target recording parameter.
  • the adjustment module 202 may acquire the brightness value of the current recording environment by acquiring image frames to perform image recognition on the acquired image frames.
  • the adjustment module 202 can obtain the brightness value of the current recording environment by using a photosensitive sensor to determine the brightness value of the current recording environment.
  • the video recording parameters including exposure time, frame rate, contrast, and saturation are taken as examples.
  • the slower the picture movement rate the greater the exposure time, the smaller the frame rate, the lower the contrast, and the lower the saturation.
  • the smaller the brightness value corresponds to the larger the exposure time, the smaller the frame rate, the smaller the contrast, and the smaller the saturation.
  • the device provided by the embodiment of the present invention performs video recording when receiving a video recording instruction through the recording module. Further, the adjustment module adjusts the video recording parameters according to the current recording environment during the video recording process, and further, the recording module adjusts the video recording parameters according to the current recording environment.
  • the adjusted video recording parameters are used for video recording; it solves the problem that the video recording parameters are consistent and will not change during the entire video recording process in some cases, resulting in poor video effects and poor user experience. That is, during the video recording process, the device provided by the embodiment of the present invention adjusts the current video recording parameters in real time according to the current recording environment, and then performs video recording according to the adjusted video recording parameters, which realizes the combination of the current video recording process and the current video recording parameters.
  • the dynamic adjustment of video recording parameters in the recording environment has greatly improved the effect of video recording, thereby enhancing user experience satisfaction.
  • the device provided by the embodiment of the present invention can be dynamically adjusted in real time according to the current recording environment, and the video recording parameter exposure time can effectively improve the definition of the video screen and the video.
  • the shooting effect, in terms of the video recording parameter frame rate can effectively reduce the transmission bit rate of subsequent video uploads, reduce bandwidth waste, and further improve user experience satisfaction.
  • FIG. 3 is a schematic structural diagram of the device provided in this embodiment:
  • the device provided in this embodiment includes a recording module 201 and an adjustment module 202.
  • the adjustment module 202 includes a movement detection module 2021, an image sensor module 2022, and an encoder module 2023.
  • this embodiment uses video recording parameters including exposure time and frame rate as examples.
  • the motion detection module 2021 When the motion detection module 2021 detects that the picture in the current recording environment is not moving, it issues an instruction to the image sensor module 2022 to increase the exposure time per frame, and issues an instruction to the encoder module 2023 to reduce the frame rate.
  • the image sensor module 2022 and the encoder module 2023 After the image sensor module 2022 and the encoder module 2023 receive the instruction issued by the movement detection module 2021, they need to immediately stop the current operation, discard the current processed data, and then collect data and encode according to the new encoding method corresponding to the instruction.
  • the issuance of instructions is carried out in batches, each batch of instructions includes issuance to the image sensor module 2022 and the encoder module 2023, and the number of issued instructions can be determined according to actual usage scenarios.
  • the image sensor module 2022 increases the exposure time per frame to 100 milliseconds, and the encoder module 2023 reduces the frame rate to 10 frames per second.
  • the instruction is issued for the second time, the image sensor module 2022 increases the exposure time per frame to 200 milliseconds, and the encoder module 2023 reduces the frame rate to 5 frames per second.
  • the instruction is issued for the third time, the image sensor module 2022 increases the exposure time per frame to 500 milliseconds, and the encoder module 2023 reduces the frame rate to 2 frames per second.
  • the motion detection module 2021 When the motion detection module 2021 detects that the picture in the current recording environment is moving, it issues an instruction to the image sensor module 2022 to reduce the exposure time of each frame, and issues an instruction to the encoder module 2023 to increase the frame rate.
  • the image sensor module 2022 and the encoder module 2023 After the image sensor module 2022 and the encoder module 2023 receive the instruction issued by the movement detection module 2021, they need to immediately stop the current operation, discard the current processed data, and then collect data and encode according to the new encoding method corresponding to the instruction.
  • the issuance of instructions is carried out in batches, and each batch of instructions includes the issuance to the image sensor module 2022 and the encoder module 2023, and the number of issued instructions can be determined according to the actual use scenario test experience.
  • the image sensor module 2022 reduces the exposure time per frame to 200 milliseconds, and the encoder module 2023 increases the frame rate to 5 frames per second.
  • the image sensor module 2022 reduces the exposure time of each frame to 100 milliseconds, and the encoder module 2023 increases the frame rate to 10 frames per second.
  • the instruction is issued for the third time, the image sensor module 2022 reduces the exposure time per frame to 40 milliseconds, and the encoder module 2023 increases the frame rate to 25 frames per second.
  • IDR Instantaneous Decoding Refresh
  • key frame intra-frame coded frame is an independent frame with all its own information, and can be decoded independently without referring to other images.
  • the first frame in the video sequence is always I frame.
  • GOP Group of picture, the period of the key frame, that is, the distance between two IDR frames.
  • the motion detection module 2021 also needs to issue a key frame acquisition instruction to the encoder module 2023, that is, after the encoder module 2023 receives the key frame instruction, the first frame output by subsequent encoding is the key frame IDR, and
  • the second frame does not need to be a key frame to be the forward predictive coding frame P, which needs to be determined according to the GOP in the actual application scenario.
  • FIG. 4 is a schematic structural diagram of the device provided in this embodiment:
  • the device provided in this embodiment includes a recording module 201 and an adjustment module 202.
  • the adjustment module 202 includes a brightness detection module 2024, an image sensor module 2022, and an encoder module 2023.
  • this embodiment uses video recording parameters including exposure time and frame rate as examples.
  • the brightness detection module 2024 When the brightness detection module 2024 detects that the current recording environment is a night scene, it issues an instruction to the image sensor module 2022 to increase the exposure time of each frame, and issues an instruction to the encoder module 2023 to reduce the frame rate.
  • the image sensor module 2022 and the encoder module 2023 After the image sensor module 2022 and the encoder module 2023 receive the instruction issued by the brightness detection module 2024, they need to immediately stop the current operation, discard the currently processed data, and then collect data and encode according to the new encoding method corresponding to the instruction.
  • the issuance of instructions is carried out in batches, each batch of instructions includes issuance to the image sensor module 2022 and the encoder module 2023, and the number of issued instructions can be determined according to actual usage scenarios.
  • the image sensor module 2022 increases the exposure time per frame to 100 milliseconds, and the encoder module 2023 reduces the frame rate to 10 frames per second.
  • the instruction is issued for the second time, the image sensor module 2022 increases the exposure time per frame to 200 milliseconds, and the encoder module 2023 reduces the frame rate to 5 frames per second.
  • the instruction is issued for the third time, the image sensor module 2022 increases the exposure time per frame to 500 milliseconds, and the encoder module 2023 reduces the frame rate to 2 frames per second.
  • the brightness detection module 2024 When the brightness detection module 2024 detects that the current recording environment is a daytime scene, it issues an instruction to the image sensor module 2022 to reduce the exposure time of each frame, and issues an instruction to the encoder module 2023 to increase the frame rate.
  • the image sensor module 2022 and the encoder module 2023 After the image sensor module 2022 and the encoder module 2023 receive the instruction issued by the brightness detection module 2024, they need to immediately stop the current operation, discard the currently processed data, and then collect data and encode according to the new encoding method corresponding to the instruction.
  • the issuance of instructions is carried out in batches, and each batch of instructions includes the issuance to the image sensor module 2022 and the encoder module 2023, and the number of issued instructions can be determined according to the actual use scenario test experience.
  • the image sensor module 2022 reduces the exposure time per frame to 200 milliseconds, and the encoder module 2023 increases the frame rate to 5 frames per second.
  • the image sensor module 2022 reduces the exposure time of each frame to 100 milliseconds, and the encoder module 2023 increases the frame rate to 10 frames per second.
  • the instruction is issued for the third time, the image sensor module 2022 reduces the exposure time per frame to 40 milliseconds, and the encoder module 2023 increases the frame rate to 25 frames per second.
  • IDR Instantaneous Decoding Refresh
  • key frame intra-frame coded frame is an independent frame with all its own information, which can be decoded independently without referring to other images.
  • the first frame in the video sequence is always I frame.
  • GOP Group of picture, the period of the key frame, that is, the distance between two IDR frames.
  • the brightness detection module 2024 also needs to issue a key frame acquisition instruction to the encoder module 2023, that is, after the encoder module 2023 receives the key frame instruction, the first frame output by subsequent encoding is the key frame IDR.
  • the second frame does not need to be a key frame to be the forward predictive coding frame P, which needs to be determined according to the GOP in the actual application scenario.
  • FIG. 5 is a schematic structural diagram of the terminal provided in this embodiment:
  • the terminal provided in this embodiment includes a processor 501, a memory 502, and a communication bus 503.
  • the communication bus 503 in this embodiment is used to implement connection and communication between the processor 501 and the memory 502, and the processor 501 is used to execute one or more programs stored in the memory 502 to implement the following steps:
  • terminals in this embodiment include, but are not limited to, mobile phones, wearable devices, cameras, etc. that can implement video recording.
  • the embodiments of the present invention also provide a computer-readable storage medium.
  • the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned embodiments. Steps of a video recording method.
  • the video recording method, device, terminal, and computer-readable storage medium provided by the embodiments of the present invention perform video recording when a video recording instruction is received. Further, during the video recording process, the video recording parameters are set according to the current recording environment. Make adjustments, and further, perform video recording according to the adjusted video recording parameters; this solves the problem that in the prior art, the video recording parameters are consistent and will not change during the entire video recording process, resulting in poor video effects obtained by shooting, and users The problem of poor experience. That is, the video recording method, device, terminal, and computer-readable storage medium provided by the embodiments of the present invention adjust the current video recording parameters in real time according to the current recording environment during the video recording process, and then adjust the current video recording parameters according to the adjusted video recording. Parameter video recording realizes the dynamic adjustment of video recording parameters combined with the current recording environment during the video recording process, which greatly improves the effect of video recording and thus improves user experience satisfaction.
  • the computer-readable storage medium includes volatile or nonvolatile, removable or Non-removable media.
  • Computer-readable storage media include but are not limited to RAM (Random Access Memory), ROM (Read-Only Memory, read-only memory), EEPROM (Electrically Erasable Programmable read only memory, charged Erasable Programmable Read-Only Memory) ), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, Or any other medium that can be used to store desired information and that can be accessed by a computer.
  • the functional modules/units in the system, and the device can be implemented as software (which can be implemented by the program code executable by the computing device) , Firmware, hardware and their appropriate combination.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may consist of several physical components. The components are executed cooperatively.
  • Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit .
  • the computer-readable medium may include computer storage Medium (or non-transitory medium) and communication medium (or temporary medium).
  • computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Sexual, removable and non-removable media.
  • communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. . Therefore, the present invention is not limited to any specific combination of hardware and software.

Abstract

A video recording method, a device, a terminal, and a computer-readable storage medium. The method comprises: upon receiving a video recording command, performing video recording (S101); during the process of performing the video recording, adjusting a video recording parameter according to a current recording environment (S102); and performing the video recording according to the adjusted video recording parameter (S103).

Description

一种视频录制方法、装置、终端以及计算机可读存储介质Video recording method, device, terminal and computer readable storage medium
相关申请的交叉引用Cross-references to related applications
本申请基于申请号为201910907195.0、申请日为2019年9月24日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with application number 201910907195.0 and an application date of September 24, 2019, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated into this application by reference.
技术领域Technical field
本发明涉及音视频技术领域,更具体地说,涉及一种视频录制方法、装置、终端以及计算机可读存储介质。The present invention relates to the field of audio and video technology, and more specifically, to a video recording method, device, terminal, and computer-readable storage medium.
背景技术Background technique
随着终端技术的发展,终端集通讯、拍摄和影音等功能于一体,成为人们日常生活中不可缺少的部分。由于高清摄像头的技术突破,终端摄像头的像素越来越高,使得终端的拍照、视频录制效果大大提升,并且终端携带方便,人们在正常的生活和旅游中,越来越倾向于用终端进行拍照、视频录制。With the development of terminal technology, the terminal integrates functions such as communication, shooting, video and audio, and has become an indispensable part of people's daily life. Due to the technological breakthrough of high-definition cameras, the pixels of terminal cameras are getting higher and higher, which greatly improves the effects of taking pictures and video recording of the terminal, and the terminal is convenient to carry. People are more and more inclined to use the terminal to take pictures in normal life and travel. , Video recording.
为方便描述,上述终端以手机为例,目前手机进行视频录制时采用的视频录制参数在录制的全程中均为一致不会发生变化,导致拍摄得到的视频效果并不好,大大降低了用户的体验满意度。For the convenience of description, the above terminal uses a mobile phone as an example. The video recording parameters used by the mobile phone for video recording are consistent throughout the entire recording process and will not change. This results in poor video effects and greatly reduces the user’s experience. Experience satisfaction.
发明内容Summary of the invention
本发明实施例提供的视频录制方法、装置、终端以及计算机可读存储介质,旨在至少一定程度上解决的技术问题是,在一些情形中,在视频录制的全程中视频录制参数均为一致不会发生变化,造成拍摄得到的视频效果不好,用户体验度差。The video recording method, device, terminal, and computer-readable storage medium provided by the embodiments of the present invention aim to solve the technical problem at least to a certain extent. In some cases, the video recording parameters are consistent throughout the entire video recording process. Changes will occur, resulting in poor video effects and poor user experience.
有鉴于此,本发明实施例提供了一种视频录制方法,包括:当接收到视频录制指令时,进行视频录制;在视频录制过程中,根据当前录制环境对视频录制参数进行调整;根据调整后的视频录制参数进行视频录制。In view of this, an embodiment of the present invention provides a video recording method, which includes: performing video recording when a video recording instruction is received; during the video recording process, adjusting the video recording parameters according to the current recording environment; The video recording parameters for video recording.
本发明实施例还提供了一种装置,所述装置包括:录制模块以及调整模块;所述录制模块用于当接收到视频录制指令时,进行视频录制;所述调整模块用于在视频录制过程中,根据当前录制环境对视频录制参数进行调整;所述录制模块还用于根据调整后的视频录制参数进行视频录制。The embodiment of the present invention also provides a device, the device includes: a recording module and an adjustment module; the recording module is used to perform video recording when a video recording instruction is received; the adjustment module is used to perform video recording during the video recording process , Adjust the video recording parameters according to the current recording environment; the recording module is also used to perform video recording according to the adjusted video recording parameters.
本发明实施例还提供了一种终端,所述终端包括处理器、存储器及通信总线;所述通信总线用于实现处理器和存储器之间的连接通信;所述处理器用于执行存储器中存储的一个或者多个计算机程序,以实现如上所述的视频录制方法的步骤。The embodiment of the present invention also provides a terminal, the terminal includes a processor, a memory, and a communication bus; the communication bus is used to realize the connection and communication between the processor and the memory; the processor is used to execute the data stored in the memory One or more computer programs to implement the steps of the video recording method described above.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现如上所述的视频录制 方法的步骤。The embodiment of the present invention also provides a computer-readable storage medium. The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to realize the video recording as described above. Method steps.
本发明其他特征和相应的有益效果在说明书的后面部分进行阐述说明,且应当理解,至少部分有益效果从本发明说明书中的记载变的显而易见。Other features and corresponding beneficial effects of the present invention are described in the latter part of the specification, and it should be understood that at least part of the beneficial effects will become apparent from the description in the specification of the present invention.
附图说明Description of the drawings
下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with the accompanying drawings and embodiments. In the accompanying drawings:
图1为本发明实施例一提供的一种视频录制方法的基本流程示意图;FIG. 1 is a schematic diagram of the basic flow of a video recording method according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的装置的结构示意图一;2 is a schematic structural diagram 1 of the apparatus provided in the second embodiment of the present invention;
图3为本发明实施例三提供的装置的结构示意图二;FIG. 3 is a schematic diagram 2 of the structure of the apparatus provided by Embodiment 3 of the present invention;
图4为本发明实施例四提供的装置的结构示意图三;FIG. 4 is a schematic diagram three of the structure of the device provided by the fourth embodiment of the present invention;
图5为本发明实施例五提供的终端的结构示意图。FIG. 5 is a schematic structural diagram of a terminal provided in Embodiment 5 of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,下面通过具体实施方式结合附图对本发明实施例作进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following further describes the embodiments of the present invention in detail through specific implementations in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention.
实施例一:Example one:
为了解决一些情形中在视频录制的全程中视频录制参数均为一致不会发生变化,造成拍摄得到的视频效果不好,用户体验度差的问题,在本发明实施例中提供一种视频录制方法,通过当接收到视频录制指令时,进行视频录制,进一步地,在视频录制过程中,根据当前录制环境对视频录制参数进行调整,进一步地,根据调整后的视频录制参数进行视频录制;请参见图1所示,如图1为本实施例提供的视频录制方法的基本流程示意图。In order to solve the problem that the video recording parameters are consistent and will not change during the entire video recording process in some cases, resulting in poor video effects and poor user experience, an embodiment of the present invention provides a video recording method. , By performing video recording when a video recording instruction is received, further, during the video recording process, adjust the video recording parameters according to the current recording environment, and further, perform video recording according to the adjusted video recording parameters; see As shown in FIG. 1, FIG. 1 is a schematic diagram of the basic flow of the video recording method provided by this embodiment.
S101:当接收到视频录制指令时,进行视频录制。S101: When a video recording instruction is received, perform video recording.
应当理解的是,本实施例中的视频录制指令可以通过用户点击、按压物理按键进行下发,或者可以通过用户点击、按压虚拟按键进行下发,或者可以通过非触屏式例如语音进行下发均可。值得注意的是,在实际应用中,可根据具体应用场景做灵活调整,只要属于能下发视频录制指令的方式均在本发明的保护范畴内,对此本发明不做限定。It should be understood that the video recording instruction in this embodiment can be issued by the user clicking or pressing a physical button, or it can be issued by the user clicking or pressing a virtual button, or it can be issued by a non-touch screen, such as voice. It can be. It is worth noting that in practical applications, it can be flexibly adjusted according to specific application scenarios. As long as it belongs to the way in which video recording instructions can be issued, all are within the protection scope of the present invention, and the present invention does not limit this.
S102:在视频录制过程中,根据当前录制环境对视频录制参数进行调整。S102: During the video recording process, adjust the video recording parameters according to the current recording environment.
在一示例中,本实施例中视频录制参数包括但不限于曝光时间、帧率、对比度、饱和度,其中视频录制参数包括曝光时间、帧率、对比度、饱和度中的任意一种或任意组合形式。值得注意的是,这里所列举的只是几种常见的视频录制参数,在实际应用中,可根据具体应用场景做灵活调整。In an example, the video recording parameters in this embodiment include but are not limited to exposure time, frame rate, contrast, and saturation, where the video recording parameters include any one or any combination of exposure time, frame rate, contrast, and saturation. form. It is worth noting that, here are just a few common video recording parameters, which can be flexibly adjusted according to specific application scenarios in actual applications.
在一示例中,本实施例中根据当前录制环境对视频录制参数进行调整,包括至少以下两种方式:In an example, the adjustment of the video recording parameters according to the current recording environment in this embodiment includes at least the following two ways:
方式一:根据当前录制环境的画面移动速率对视频录制参数进行调整。Method 1: Adjust the video recording parameters according to the picture movement rate of the current recording environment.
在一示例中,根据当前录制环境的画面移动速率对视频录制参数进行调整,包括:In an example, the video recording parameters are adjusted according to the picture movement rate of the current recording environment, including:
获取当前录制环境的画面移动速率,根据画面移动速率以及画面移动速率-目标录制参数映射表确定目标录制参数,根据目标录制参数对当前的视频录制参数进行调整。Obtain the picture movement rate of the current recording environment, determine the target recording parameters according to the picture movement rate and the picture movement rate-target recording parameter mapping table, and adjust the current video recording parameters according to the target recording parameters.
在一些示例中,获取当前录制环境的画面移动速率可以通过采集图像帧,对采集到的图像帧进行图像识别例如差分法。值得注意的是,本发明并局限于这种方式,只要属于能确定出当前录制环境的画面移动速率的方式均在本发明的保护范畴内。In some examples, the frame movement rate of the current recording environment can be acquired by acquiring image frames, and performing image recognition on the acquired image frames, such as a difference method. It is worth noting that the present invention is not limited to this method, as long as it belongs to the method that can determine the picture movement rate of the current recording environment, it is within the protection scope of the present invention.
应当理解的是,终端上预先存储有画面移动速率-目标录制参数映射表,为了更好的理解,这里以一个具体示例进行说明,例如参见表一所示:It should be understood that the picture movement rate-target recording parameter mapping table is pre-stored on the terminal. For a better understanding, a specific example is used for illustration, for example, see Table 1:
表一Table I
画面移动速率Screen movement rate 曝光时间Exposure time 帧率Frame rate 对比度Contrast 饱和度saturation
a2以下below a2 K1K1 N1N1 M1M1 Q1Q1
a2~a3a2~a3 K2K2 N2N2 M2M2 Q2Q2
a4~a5a4~a5 K3K3 N3N3 M3M3 Q3Q3
a6~a7a6~a7 K4K4 N4N4 M4M4 Q4Q4
a7以上above a7 K5K5 N5N5 M5M5 Q5Q5
根据上述表一所示,视频录制参数包括曝光时间、帧率、对比度、饱和度,其中,画面移动速率越慢(a2<a3<a4<a5<a6<a7)对应的曝光时间越大(K1>K2>K3>K4>K5>K6>K7),帧率越小(N1<N2<N3<N4<N5<N6<N7),对比度越小(M1<M2<M3<M4<M5<M6<M7),饱和度越小(Q1<Q2<Q3<Q4<Q5<Q6<Q7)。According to the above table 1, the video recording parameters include exposure time, frame rate, contrast, and saturation. The slower the picture movement rate (a2<a3<a4<a5<a6<a7) corresponds to the larger the exposure time (K1 >K2>K3>K4>K5>K6>K7), the smaller the frame rate (N1<N2<N3<N4<N5<N6<N7), the smaller the contrast (M1<M2<M3<M4<M5<M6< M7), the smaller the saturation (Q1<Q2<Q3<Q4<Q5<Q6<Q7).
在一种示例中,还可对获取到的画面移动速率进行判断,判断其是属于未移动场景还是移动场景,其中画面移动速率小于预设阈值对应未移动场景,画面移动速率大于预设阈值对应移动场景,例如参见表二所示:In an example, the obtained screen movement rate can also be judged to determine whether it belongs to a non-moving scene or a moving scene, where the screen movement rate is less than the preset threshold corresponding to the non-moving scene, and the screen movement rate greater than the preset threshold corresponds to Mobile scenarios, for example, see Table 2:
表二Table II
场景Scenes 移动速率Moving rate 曝光时间Exposure time 帧率Frame rate 对比度Contrast 饱和度saturation
未移动场景Unmoved scene a5以下below a5 K1K1 N1N1 M1M1 Q1Q1
移动场景Mobile scene a5以上above a5 K2K2 N2N2 M2M2 Q2Q2
根据上述表二所示,视频录制参数包括曝光时间、帧率、对比度、饱和度,其中,画面移动速率a5以下均对应为未移动场景,画面移动速率a5以上均对应为移动场景,曝光时间K1>K2、帧率N1<N2、对比度M1<M2、饱和度Q1<Q2。According to Table 2 above, the video recording parameters include exposure time, frame rate, contrast, and saturation. Among them, the picture movement rate below a5 corresponds to the unmoved scene, and the picture movement rate above a5 corresponds to the moving scene, and the exposure time is K1 >K2, frame rate N1<N2, contrast M1<M2, saturation Q1<Q2.
值得注意的是,上述所列举的只是两种示例的画面移动速率-目标录制参数映射表,在实际应用中,画面移动速率-目标录制参数映射表由开发人员根据实验或经验进行灵活设置。It is worth noting that the above list is only two examples of the picture movement rate-target recording parameter mapping table. In actual applications, the picture movement rate-target recording parameter mapping table is flexibly set by the developer based on experiments or experience.
方式二:根据当前录制环境的亮度值对视频录制参数进行调整。Method 2: Adjust the video recording parameters according to the brightness value of the current recording environment.
在一示例中,根据当前录制环境的亮度值对视频录制参数进行调整,包括:In an example, the video recording parameters are adjusted according to the brightness value of the current recording environment, including:
获取当前录制环境的亮度值,根据亮度值以及亮度值-目标录制参数映射表确定目标录制参数,根据目标录制参数对当前的视频录制参数进行调整。Obtain the brightness value of the current recording environment, determine the target recording parameter according to the brightness value and the brightness value-target recording parameter mapping table, and adjust the current video recording parameter according to the target recording parameter.
在一些示例中,获取当前录制环境的亮度值可以通过采集图像帧,对采集到的图像帧进行图像识别;在另一些示例中,获取当前录制环境的亮度值可以通过光敏传感器确定当前录制环境的亮度值。值得注意的是,本发明并局限于这两种方式,只要属于能确定出当前录制环境的亮度值的方式均在本发明的保护范畴内。In some examples, the brightness value of the current recording environment can be obtained by collecting image frames to perform image recognition on the collected image frames; in other examples, the brightness value of the current recording environment can be obtained by determining the brightness value of the current recording environment through a photosensitive sensor. Brightness value. It should be noted that the present invention is not limited to these two methods, as long as it belongs to the method that can determine the brightness value of the current recording environment, it is within the protection scope of the present invention.
应当理解的是,终端上预先存储有画面移动速率-目标录制参数映射表,It should be understood that the picture movement rate-target recording parameter mapping table is pre-stored on the terminal,
为了更好的理解,这里以一个具体示例进行说明,例如参见表三所示:For a better understanding, here is a specific example for illustration, for example, see Table 3:
表三Table Three
亮度值Brightness value 曝光时间Exposure time 帧率Frame rate 对比度Contrast 饱和度saturation
b2以下below b2 K1K1 N1N1 M1M1 Q1Q1
b2~b3b2~b3 K2K2 N2N2 M2M2 Q2Q2
b4~b5b4~b5 K3K3 N3N3 M3M3 Q3Q3
b6~b7b6~b7 K4K4 N4N4 M4M4 Q4Q4
b7以上above b7 K5K5 N5N5 M5M5 Q5Q5
根据上述表三所示,视频录制参数包括曝光时间、帧率、对比度、饱和度,其中,亮度值越小(b2<b3<b4<b5<b6<b7)对应的曝光时间越大(K1>K2>K3>K4>K5>K6>K7),帧率越小(N1<N2<N3<N4<N5<N6<N7),对比度越小(M1<M2<M3<M4<M5<M6<M7),饱和度越小(Q1<Q2<Q3<Q4<Q5<Q6<Q7)。According to the above table 3, the video recording parameters include exposure time, frame rate, contrast, and saturation. The smaller the brightness value (b2<b3<b4<b5<b6<b7) corresponds to the larger the exposure time (K1> K2>K3>K4>K5>K6>K7), the smaller the frame rate (N1<N2<N3<N4<N5<N6<N7), the smaller the contrast (M1<M2<M3<M4<M5<M6<M7) ), the smaller the saturation (Q1<Q2<Q3<Q4<Q5<Q6<Q7).
在一种示例中,还可对获取到的当前录制环境的亮度值进行判断,判断其是属于夜晚场景还是白天场景,其中亮度值小于预设阈值对应夜晚场景,亮度值大于预设阈值对应白天场景,例如参见表四所示:In an example, the obtained brightness value of the current recording environment can also be judged to determine whether it belongs to a night scene or a daytime scene, where the brightness value is less than the preset threshold value corresponding to the night scene, and the brightness value greater than the preset threshold value corresponds to the daytime scene. Scenarios, for example, see Table 4:
表四Table Four
场景Scenes 亮度值Brightness value 曝光时间Exposure time 帧率Frame rate 对比度Contrast 饱和度saturation
夜晚场景Night scene b5以下below b5 K1K1 N1N1 M1M1 Q1Q1
白天场景Daytime scene b5以上above b5 K2K2 N2N2 M2M2 Q2Q2
根据上述表四所示,视频录制参数包括曝光时间、帧率、对比度、饱和度,其中,亮度值b5以下均对应为夜晚场景,亮度值b5以上均对应为白天场景,曝光时间K1>K2、帧率N1<N2、对比度M1<M2、饱和度Q1<Q2。According to the above table 4, the video recording parameters include exposure time, frame rate, contrast, and saturation. Among them, the brightness value below b5 corresponds to the night scene, and the brightness value above b5 corresponds to the day scene, and the exposure time is K1>K2. Frame rate N1<N2, contrast M1<M2, saturation Q1<Q2.
值得注意的是,上述所列举的只是两种示例的亮度值-目标录制参数映射表,在实际应 用中,亮度值-目标录制参数映射表由开发人员根据实验或经验进行灵活设置。It is worth noting that the above listed are only two examples of brightness value-target recording parameter mapping tables. In actual applications, the brightness value-target recording parameter mapping tables can be flexibly set by the developer based on experiments or experience.
应当理解的是,方式一和方式二可单独执行,也可同时执行,当同时执行时,例如从表一和表二获取到的各视频录制参数值可能不同,此时可以以表一获取到的视频录制参数值为准,或也可以以表二获取到的视频录制参数值为准,或也可以取表一和表二的获取到的视频录制参数值的平均值或进行其他计算均可。It should be understood that method 1 and method 2 can be executed separately or at the same time. When executed at the same time, for example, the video recording parameter values obtained from Table 1 and Table 2 may be different. In this case, it can be obtained from Table 1. The video recording parameter values in Table 2 shall prevail, or the video recording parameter values obtained in Table 2 shall prevail, or the average value of the obtained video recording parameter values in Table 1 and Table 2 may be taken or other calculations can be carried out. .
S103:根据调整后的视频录制参数进行视频录制。S103: Perform video recording according to the adjusted video recording parameters.
本实施例中根据调整后的视频录制参数进行视频录制。In this embodiment, video recording is performed according to the adjusted video recording parameters.
为了更好的理解,这里仍以示例进行说明:For a better understanding, here is still an example for explanation:
例如参见表二所示,设终端以移动场景对应的视频录制参数进行开始的视频录制,即在接收到视频录制指令进行视频录制时,此时对应的曝光时间为K2,帧率为N2,对比度为M2,饱和度为Q2,对当前环境进行监测发现当前处于未移动场景,此时自动调整曝光时间为K1,帧率为N1,对比度为M1,饱和度为Q1,因为曝光时间K1>K2、帧率N1<N2、对比度M1<M2、饱和度Q1<Q2,所以此时的自动调整则为增大曝光时间,减小帧率,减小对比度,减小饱和度,进一步地,根据曝光时间K1,帧率N1,对比度M1,饱和度Q1进行视频录制;应当理解的是,当监测到发现当前环境又处于移动场景时,此时自动调整曝光时间为K2,帧率为N2,对比度为M2,饱和度为Q2,此时的自动调整则为减小曝光时间,增大帧率,增大对比度,增大饱和度,进一步地,根据曝光时间K2,帧率N2,对比度M2,饱和度Q2进行视频录制。For example, as shown in Table 2, suppose that the terminal starts video recording with the video recording parameters corresponding to the moving scene, that is, when receiving a video recording instruction for video recording, the corresponding exposure time is K2, the frame rate is N2, and the contrast It is M2 and the saturation is Q2. The current environment is monitored and it is found that the current scene is not moving. At this time, the exposure time is automatically adjusted to K1, the frame rate is N1, the contrast is M1, and the saturation is Q1, because the exposure time is K1>K2. Frame rate N1<N2, contrast M1<M2, saturation Q1<Q2, so the automatic adjustment at this time is to increase the exposure time, reduce the frame rate, reduce the contrast, reduce the saturation, and further, according to the exposure time K1, frame rate N1, contrast M1, saturation Q1 for video recording; it should be understood that when it is detected that the current environment is in a moving scene, the exposure time is automatically adjusted to K2, the frame rate is N2, and the contrast is M2. , The saturation is Q2, and the automatic adjustment at this time is to reduce the exposure time, increase the frame rate, increase the contrast, and increase the saturation. Furthermore, according to the exposure time K2, the frame rate N2, the contrast M2, and the saturation Q2 Make video recording.
又例如参见表四所示,设终端以白天场景对应的视频录制参数进行开始的视频录制,即在接收到视频录制指令进行视频录制时,此时对应的曝光时间为K2,帧率为N2,对比度为M2,饱和度为Q2,对当前环境进行监测发现当前处于夜晚场景,此时自动调整曝光时间为K1,帧率为N1,对比度为M1,饱和度为Q1,因为曝光时间K1>K2、帧率N1<N2、对比度M1<M2、饱和度Q1<Q2,所以此时的自动调整则为增大曝光时间,减小帧率,减小对比度,减小饱和度,进一步地,根据曝光时间K1,帧率N1,对比度M1,饱和度Q1进行视频录制;应当理解的是,当监测到发现当前环境又处于白天场景时,此时自动调整曝光时间为K2,帧率为N2,对比度为M2,饱和度为Q2,此时的自动调整则为减小曝光时间,增大帧率,增大对比度,增大饱和度,进一步地,根据曝光时间K2,帧率N2,对比度M2,饱和度Q2进行视频录制。For another example, referring to Table 4, suppose that the terminal starts video recording with the video recording parameters corresponding to the daytime scene, that is, when receiving a video recording instruction to perform video recording, the corresponding exposure time is K2, and the frame rate is N2. The contrast is M2 and the saturation is Q2. The current environment is monitored and it is found that it is currently in a night scene. At this time, the exposure time is automatically adjusted to K1, the frame rate is N1, the contrast is M1, and the saturation is Q1, because the exposure time is K1>K2. Frame rate N1<N2, contrast M1<M2, saturation Q1<Q2, so the automatic adjustment at this time is to increase the exposure time, reduce the frame rate, reduce the contrast, reduce the saturation, and further, according to the exposure time K1, frame rate N1, contrast M1, saturation Q1 for video recording; it should be understood that when it is detected that the current environment is in a daytime scene, the exposure time is automatically adjusted to K2, the frame rate is N2, and the contrast is M2. , The saturation is Q2, and the automatic adjustment at this time is to reduce the exposure time, increase the frame rate, increase the contrast, and increase the saturation. Furthermore, according to the exposure time K2, the frame rate N2, the contrast M2, and the saturation Q2 Make video recording.
本发明实施例提供的视频录制方法,通过当接收到视频录制指令时,进行视频录制,进一步地,在视频录制过程中,根据当前录制环境对视频录制参数进行调整,进一步地,根据调整后的视频录制参数进行视频录制;解决了一些情形中在视频录制的全程中视频录制参数均为一致不会发生变化,造成拍摄得到的视频效果不好,用户体验度差的问题。也即本发明实施例提供的视频录制方法在视频录制过程中,根据当前录制环境实时对当前的视频录制参数进行调整,进而根据调整后的视频录制参数进行视频录制,实现了在视频录 制过程中结合当前的录制环境对视频录制参数的动态调整,在极大程度上提升了视频录制的效果,进而提升了用户的体验满意度。The video recording method provided by the embodiment of the present invention performs video recording when a video recording instruction is received. Further, during the video recording process, the video recording parameters are adjusted according to the current recording environment, and further, according to the adjusted Video recording parameters are used for video recording; it solves the problem that the video recording parameters are consistent and will not change during the entire video recording process in some cases, resulting in poor video effects and poor user experience. That is, in the video recording method provided by the embodiments of the present invention, the current video recording parameters are adjusted in real time according to the current recording environment during the video recording process, and then the video recording is performed according to the adjusted video recording parameters. Combined with the dynamic adjustment of video recording parameters in the current recording environment, the effect of video recording is greatly improved, thereby enhancing user experience satisfaction.
同时本发明实施例提供的视频录制方法,尤其当视频录制参数包括曝光时间以及帧率时,根据当前录制环境实时对其动态调整,针对视频录制参数曝光时间而言可有效提升视频画面的清晰度、视频拍摄效果,针对视频录制参数帧率而言可有效降低后续视频上传的传输码率,减少了带宽浪费,均进一步提升了用户的体验满意度。At the same time, the video recording method provided by the embodiments of the present invention, especially when the video recording parameters include exposure time and frame rate, are dynamically adjusted in real time according to the current recording environment, and the video recording parameter exposure time can effectively improve the definition of the video screen. , Video shooting effect, in terms of video recording parameter frame rate, it can effectively reduce the transmission bit rate of subsequent video uploads, reduce bandwidth waste, and further improve user experience satisfaction.
实施例二:Embodiment two:
为了解决一些情形中在视频录制的全程中视频录制参数均为一致不会发生变化,造成拍摄得到的视频效果不好,用户体验度差的问题,在本发明实施例中提供一种装置,请参见图2所示,如图2为本实施例提供的装置的结构示意图:In order to solve the problem that the video recording parameters are consistent and will not change during the entire video recording process in some cases, resulting in poor video effects and poor user experience, an apparatus is provided in an embodiment of the present invention. Refer to FIG. 2, which is a schematic structural diagram of the apparatus provided in this embodiment:
本实施例提供的装置包括录制模块201、调整模块202;The device provided in this embodiment includes a recording module 201 and an adjustment module 202;
其中,录制模块201用于当接收到视频录制指令时,进行视频录制;Wherein, the recording module 201 is configured to perform video recording when a video recording instruction is received;
其中,调整模块202用于在视频录制过程中,根据当前录制环境对视频录制参数进行调整;Wherein, the adjustment module 202 is used to adjust the video recording parameters according to the current recording environment during the video recording process;
应当理解的是,录制模块201还用于根据调整后的视频录制参数进行视频录制。It should be understood that the recording module 201 is also configured to perform video recording according to the adjusted video recording parameters.
应当理解的是,本实施例中的录制模块201以及调整模块202包括但不限于由处理器或其他硬件设备来实施。It should be understood that the recording module 201 and the adjustment module 202 in this embodiment include but are not limited to being implemented by a processor or other hardware devices.
在一示例中,本实施例中视频录制参数包括但不限于曝光时间、帧率、对比度、饱和度,其中视频录制参数包括曝光时间、帧率、对比度、饱和度中的任意一种或任意组合形式。值得注意的是,这里所列举的只是几种常见的视频录制参数,在实际应用中,可根据具体应用场景做灵活调整。In an example, the video recording parameters in this embodiment include but are not limited to exposure time, frame rate, contrast, and saturation, where the video recording parameters include any one or any combination of exposure time, frame rate, contrast, and saturation. form. It is worth noting that, here are just a few common video recording parameters, which can be flexibly adjusted according to specific application scenarios in actual applications.
在一示例中,本实施例中调整模块202根据当前录制环境对视频录制参数进行调整,包括至少以下两种方式:In an example, the adjustment module 202 in this embodiment adjusts the video recording parameters according to the current recording environment, including at least the following two ways:
方式一:调整模块202根据当前录制环境的画面移动速率对视频录制参数进行调整。Manner 1: The adjustment module 202 adjusts the video recording parameters according to the picture movement rate of the current recording environment.
在一示例中,调整模块202获取当前录制环境的画面移动速率,根据画面移动速率以及画面移动速率-目标录制参数映射表确定目标录制参数,根据目标录制参数对当前的视频录制参数进行调整。In an example, the adjustment module 202 obtains the picture movement rate of the current recording environment, determines the target recording parameters according to the picture movement rate and the picture movement rate-target recording parameter mapping table, and adjusts the current video recording parameters according to the target recording parameters.
在一示例中,调整模块202获取当前录制环境的画面移动速率可以通过采集图像帧,对采集到的图像帧进行图像识别例如差分法。In an example, the adjustment module 202 can acquire the frame movement rate of the current recording environment by acquiring image frames, and perform image recognition, such as a difference method, on the acquired image frames.
方式二:调整模块202根据当前录制环境的亮度值对视频录制参数进行调整。Manner 2: The adjustment module 202 adjusts the video recording parameters according to the brightness value of the current recording environment.
在一示例中,调整模块202获取当前录制环境的亮度值,根据亮度值以及亮度值-目标录制参数映射表确定目标录制参数,根据目标录制参数对当前的视频录制参数进行调整。In an example, the adjustment module 202 obtains the brightness value of the current recording environment, determines the target recording parameter according to the brightness value and the brightness value-target recording parameter mapping table, and adjusts the current video recording parameter according to the target recording parameter.
在一示例中,调整模块202获取当前录制环境的亮度值可以通过采集图像帧,对采集到的图像帧进行图像识别。In an example, the adjustment module 202 may acquire the brightness value of the current recording environment by acquiring image frames to perform image recognition on the acquired image frames.
在一示例中,调整模块202获取当前录制环境的亮度值可以通过光敏传感器确定当前录制环境的亮度值。In an example, the adjustment module 202 can obtain the brightness value of the current recording environment by using a photosensitive sensor to determine the brightness value of the current recording environment.
本实施例中,以视频录制参数包括曝光时间、帧率、对比度、饱和度为例,其中,画面移动速率越慢对应的曝光时间越大,帧率越小,对比度越小,饱和度越小,亮度值越小对应的曝光时间越大,帧率越小,对比度越小,饱和度越小。In this embodiment, the video recording parameters including exposure time, frame rate, contrast, and saturation are taken as examples. The slower the picture movement rate, the greater the exposure time, the smaller the frame rate, the lower the contrast, and the lower the saturation. , The smaller the brightness value corresponds to the larger the exposure time, the smaller the frame rate, the smaller the contrast, and the smaller the saturation.
值得注意的是,为了不累赘说明,在本实施例中并未完全阐述实施例一中的所有示例,应当明确的是,实施例一中的所有示例均适用于本实施例。It is worth noting that, in order not to cumbersome description, this embodiment does not fully describe all the examples in the first embodiment, and it should be clear that all the examples in the first embodiment are applicable to this embodiment.
本发明实施例提供的装置,通过录制模块接收到视频录制指令时,进行视频录制,进一步地,调整模块在视频录制过程中,根据当前录制环境对视频录制参数进行调整,进一步地,录制模块根据调整后的视频录制参数进行视频录制;解决了一些情形中在视频录制的全程中视频录制参数均为一致不会发生变化,造成拍摄得到的视频效果不好,用户体验度差的问题。也即本发明实施例提供的装置在视频录制过程中,根据当前录制环境实时对当前的视频录制参数进行调整,进而根据调整后的视频录制参数进行视频录制,实现了在视频录制过程中结合当前的录制环境对视频录制参数的动态调整,在极大程度上提升了视频录制的效果,进而提升了用户的体验满意度。The device provided by the embodiment of the present invention performs video recording when receiving a video recording instruction through the recording module. Further, the adjustment module adjusts the video recording parameters according to the current recording environment during the video recording process, and further, the recording module adjusts the video recording parameters according to the current recording environment. The adjusted video recording parameters are used for video recording; it solves the problem that the video recording parameters are consistent and will not change during the entire video recording process in some cases, resulting in poor video effects and poor user experience. That is, during the video recording process, the device provided by the embodiment of the present invention adjusts the current video recording parameters in real time according to the current recording environment, and then performs video recording according to the adjusted video recording parameters, which realizes the combination of the current video recording process and the current video recording parameters. The dynamic adjustment of video recording parameters in the recording environment has greatly improved the effect of video recording, thereby enhancing user experience satisfaction.
同时本发明实施例提供的装置,尤其当视频录制参数包括曝光时间以及帧率时,根据当前录制环境实时对其动态调整,针对视频录制参数曝光时间而言可有效提升视频画面的清晰度、视频拍摄效果,针对视频录制参数帧率而言可有效降低后续视频上传的传输码率,减少了带宽浪费,均进一步提升了用户的体验满意度。At the same time, the device provided by the embodiment of the present invention, especially when the video recording parameters include exposure time and frame rate, can be dynamically adjusted in real time according to the current recording environment, and the video recording parameter exposure time can effectively improve the definition of the video screen and the video. The shooting effect, in terms of the video recording parameter frame rate, can effectively reduce the transmission bit rate of subsequent video uploads, reduce bandwidth waste, and further improve user experience satisfaction.
实施例三:Example three:
本发明实施例在实施例二的基础上,提供一种装置,请参见图3所示,如图3为本实施例提供的装置的结构示意图:The embodiment of the present invention provides a device on the basis of the second embodiment. Please refer to FIG. 3, which is a schematic structural diagram of the device provided in this embodiment:
本实施例提供的装置包括录制模块201、调整模块202,其中调整模块202包括移动检测模块2021,图像传感器模块2022,编码器模块2023。The device provided in this embodiment includes a recording module 201 and an adjustment module 202. The adjustment module 202 includes a movement detection module 2021, an image sensor module 2022, and an encoder module 2023.
为了更好的理解,本实施例以视频录制参数包括曝光时间、帧率进行示例说明。For a better understanding, this embodiment uses video recording parameters including exposure time and frame rate as examples.
一种示例中:In an example:
当移动检测模块2021检测到当前录制环境的画面没有移动时,向图像传感器模块2022下发指令,增大每帧曝光时间,并向编码器模块2023下发指令,减小帧率。When the motion detection module 2021 detects that the picture in the current recording environment is not moving, it issues an instruction to the image sensor module 2022 to increase the exposure time per frame, and issues an instruction to the encoder module 2023 to reduce the frame rate.
其中,图像传感器模块2022及编码器模块2023收到移动检测模块2021下发的指令后,需立即停止当前操作,丢弃当前处理数据,然后按照指令对应的新的编码方式进行采集数据和编码。Among them, after the image sensor module 2022 and the encoder module 2023 receive the instruction issued by the movement detection module 2021, they need to immediately stop the current operation, discard the current processed data, and then collect data and encode according to the new encoding method corresponding to the instruction.
其中,下发指令分批次进行,每个批次指令都包括向图像传感器模块2022和编码器模块2023下发,下发指令次数可以根据实际使用场景试验确定。The issuance of instructions is carried out in batches, each batch of instructions includes issuance to the image sensor module 2022 and the encoder module 2023, and the number of issued instructions can be determined according to actual usage scenarios.
例如:E.g:
第一次下发指令,图像传感器模块2022增大每帧曝光时间至100毫秒,编码器模块2023减小帧率至10帧/秒。The first time an instruction is issued, the image sensor module 2022 increases the exposure time per frame to 100 milliseconds, and the encoder module 2023 reduces the frame rate to 10 frames per second.
第二次下发指令,图像传感器模块2022增大每帧曝光时间至200毫秒,编码器模块2023减小帧率至5帧/秒。The instruction is issued for the second time, the image sensor module 2022 increases the exposure time per frame to 200 milliseconds, and the encoder module 2023 reduces the frame rate to 5 frames per second.
第三次下发指令,图像传感器模块2022增大每帧曝光时间至500毫秒,编码器模块2023减小帧率至2帧/秒。The instruction is issued for the third time, the image sensor module 2022 increases the exposure time per frame to 500 milliseconds, and the encoder module 2023 reduces the frame rate to 2 frames per second.
另一种示例中:In another example:
当移动检测模块2021检测到当前录制环境的画面有移动时,向图像传感器模块2022下发指令,减小每帧曝光时间,并向编码器模块2023下发指令,增大帧率。When the motion detection module 2021 detects that the picture in the current recording environment is moving, it issues an instruction to the image sensor module 2022 to reduce the exposure time of each frame, and issues an instruction to the encoder module 2023 to increase the frame rate.
其中,图像传感器模块2022及编码器模块2023收到移动检测模块2021下发的指令后,需立即停止当前操作,丢弃当前处理数据,然后按照指令对应的新的编码方式进行采集数据和编码。Among them, after the image sensor module 2022 and the encoder module 2023 receive the instruction issued by the movement detection module 2021, they need to immediately stop the current operation, discard the current processed data, and then collect data and encode according to the new encoding method corresponding to the instruction.
其中,下发指令分批次进行,每个批次指令都包括向图像传感器模块2022和编码器模块2023下发,下发指令次数可以根据实际使用场景测试经验确定。The issuance of instructions is carried out in batches, and each batch of instructions includes the issuance to the image sensor module 2022 and the encoder module 2023, and the number of issued instructions can be determined according to the actual use scenario test experience.
例如:E.g:
第一次下发指令,图像传感器模块2022减小每帧曝光时间至200毫秒,编码器模块2023增大帧率至5帧/秒。The first time an instruction is issued, the image sensor module 2022 reduces the exposure time per frame to 200 milliseconds, and the encoder module 2023 increases the frame rate to 5 frames per second.
第二次下发指令,图像传感器模块2022减小每帧曝光时间至100毫秒,编码器模块2023增大帧率至10帧/秒。The second time an instruction is issued, the image sensor module 2022 reduces the exposure time of each frame to 100 milliseconds, and the encoder module 2023 increases the frame rate to 10 frames per second.
第三次下发指令,图像传感器模块2022减小每帧曝光时间至40毫秒,编码器模块2023增大帧率至25帧/秒。The instruction is issued for the third time, the image sensor module 2022 reduces the exposure time per frame to 40 milliseconds, and the encoder module 2023 increases the frame rate to 25 frames per second.
需要说明的是:It should be noted:
IDR:Instantaneous Decoding Refresh,简称I帧,关键帧,帧内编码帧是一种自带全部信息的独立帧,无需参考其它图像便可独立进行解码,视频序列中的第一个帧始终都是I帧。IDR: Instantaneous Decoding Refresh, abbreviated as I frame, key frame, intra-frame coded frame is an independent frame with all its own information, and can be decoded independently without referring to other images. The first frame in the video sequence is always I frame.
GOP:Group of picture,关键帧的周期,也就是两个IDR帧之间的距离。GOP: Group of picture, the period of the key frame, that is, the distance between two IDR frames.
P:前向预测编码帧。P: Forward predictive coding frame.
在上述两种示例中,移动检测模块2021还需向编码器模块2023下发获取关键帧指令,即编码器模块2023收到关键帧指令后,后续编码输出的第一帧是关键帧IDR,从第二帧开始可以不必是关键帧即可是前向预测编码帧P,需根据实际应用场景中的GOP决定。In the above two examples, the motion detection module 2021 also needs to issue a key frame acquisition instruction to the encoder module 2023, that is, after the encoder module 2023 receives the key frame instruction, the first frame output by subsequent encoding is the key frame IDR, and The second frame does not need to be a key frame to be the forward predictive coding frame P, which needs to be determined according to the GOP in the actual application scenario.
实施例四:Embodiment four:
本发明实施例在实施例二的基础上,提供一种装置,请参见图4所示,如图4为本实施例提供的装置的结构示意图:The embodiment of the present invention provides a device on the basis of the second embodiment. Please refer to FIG. 4, which is a schematic structural diagram of the device provided in this embodiment:
本实施例提供的装置包括录制模块201、调整模块202,其中调整模块202包括亮度 检测模块2024,图像传感器模块2022,编码器模块2023。The device provided in this embodiment includes a recording module 201 and an adjustment module 202. The adjustment module 202 includes a brightness detection module 2024, an image sensor module 2022, and an encoder module 2023.
为了更好的理解,本实施例以视频录制参数包括曝光时间、帧率进行示例说明。For a better understanding, this embodiment uses video recording parameters including exposure time and frame rate as examples.
一种示例中:In an example:
当亮度检测模块2024检测到当前录制环境为夜晚场景时,向图像传感器模块2022下发指令,增大每帧曝光时间,并向编码器模块2023下发指令,减小帧率。When the brightness detection module 2024 detects that the current recording environment is a night scene, it issues an instruction to the image sensor module 2022 to increase the exposure time of each frame, and issues an instruction to the encoder module 2023 to reduce the frame rate.
其中,图像传感器模块2022及编码器模块2023收到亮度检测模块2024下发的指令后,需立即停止当前操作,丢弃当前处理数据,然后按照指令对应的新的编码方式进行采集数据和编码。Among them, after the image sensor module 2022 and the encoder module 2023 receive the instruction issued by the brightness detection module 2024, they need to immediately stop the current operation, discard the currently processed data, and then collect data and encode according to the new encoding method corresponding to the instruction.
其中,下发指令分批次进行,每个批次指令都包括向图像传感器模块2022和编码器模块2023下发,下发指令次数可以根据实际使用场景试验确定。The issuance of instructions is carried out in batches, each batch of instructions includes issuance to the image sensor module 2022 and the encoder module 2023, and the number of issued instructions can be determined according to actual usage scenarios.
例如:E.g:
第一次下发指令,图像传感器模块2022增大每帧曝光时间至100毫秒,编码器模块2023减小帧率至10帧/秒。The first time an instruction is issued, the image sensor module 2022 increases the exposure time per frame to 100 milliseconds, and the encoder module 2023 reduces the frame rate to 10 frames per second.
第二次下发指令,图像传感器模块2022增大每帧曝光时间至200毫秒,编码器模块2023减小帧率至5帧/秒。The instruction is issued for the second time, the image sensor module 2022 increases the exposure time per frame to 200 milliseconds, and the encoder module 2023 reduces the frame rate to 5 frames per second.
第三次下发指令,图像传感器模块2022增大每帧曝光时间至500毫秒,编码器模块2023减小帧率至2帧/秒。The instruction is issued for the third time, the image sensor module 2022 increases the exposure time per frame to 500 milliseconds, and the encoder module 2023 reduces the frame rate to 2 frames per second.
另一种示例中:In another example:
当亮度检测模块2024检测到当前录制环境为白天场景时,向图像传感器模块2022下发指令,减小每帧曝光时间,并向编码器模块2023下发指令,增大帧率。When the brightness detection module 2024 detects that the current recording environment is a daytime scene, it issues an instruction to the image sensor module 2022 to reduce the exposure time of each frame, and issues an instruction to the encoder module 2023 to increase the frame rate.
其中,图像传感器模块2022及编码器模块2023收到亮度检测模块2024下发的指令后,需立即停止当前操作,丢弃当前处理数据,然后按照指令对应的新的编码方式进行采集数据和编码。Among them, after the image sensor module 2022 and the encoder module 2023 receive the instruction issued by the brightness detection module 2024, they need to immediately stop the current operation, discard the currently processed data, and then collect data and encode according to the new encoding method corresponding to the instruction.
其中,下发指令分批次进行,每个批次指令都包括向图像传感器模块2022和编码器模块2023下发,下发指令次数可以根据实际使用场景测试经验确定。The issuance of instructions is carried out in batches, and each batch of instructions includes the issuance to the image sensor module 2022 and the encoder module 2023, and the number of issued instructions can be determined according to the actual use scenario test experience.
例如:E.g:
第一次下发指令,图像传感器模块2022减小每帧曝光时间至200毫秒,编码器模块2023增大帧率至5帧/秒。The first time an instruction is issued, the image sensor module 2022 reduces the exposure time per frame to 200 milliseconds, and the encoder module 2023 increases the frame rate to 5 frames per second.
第二次下发指令,图像传感器模块2022减小每帧曝光时间至100毫秒,编码器模块2023增大帧率至10帧/秒。The second time an instruction is issued, the image sensor module 2022 reduces the exposure time of each frame to 100 milliseconds, and the encoder module 2023 increases the frame rate to 10 frames per second.
第三次下发指令,图像传感器模块2022减小每帧曝光时间至40毫秒,编码器模块2023增大帧率至25帧/秒。The instruction is issued for the third time, the image sensor module 2022 reduces the exposure time per frame to 40 milliseconds, and the encoder module 2023 increases the frame rate to 25 frames per second.
需要说明的是:It should be noted:
IDR:Instantaneous Decoding Refresh,简称I帧,关键帧,帧内编码帧是一种自带全 部信息的独立帧,无需参考其它图像便可独立进行解码,视频序列中的第一个帧始终都是I帧。IDR: Instantaneous Decoding Refresh, abbreviated as I frame, key frame, intra-frame coded frame is an independent frame with all its own information, which can be decoded independently without referring to other images. The first frame in the video sequence is always I frame.
GOP:Group of picture,关键帧的周期,也就是两个IDR帧之间的距离。GOP: Group of picture, the period of the key frame, that is, the distance between two IDR frames.
P:前向预测编码帧。P: Forward predictive coding frame.
在上述两种示例中,亮度检测模块2024还需向编码器模块2023下发获取关键帧指令,即编码器模块2023收到关键帧指令后,后续编码输出的第一帧是关键帧IDR,从第二帧开始可以不必是关键帧即可是前向预测编码帧P,需根据实际应用场景中的GOP决定。In the above two examples, the brightness detection module 2024 also needs to issue a key frame acquisition instruction to the encoder module 2023, that is, after the encoder module 2023 receives the key frame instruction, the first frame output by subsequent encoding is the key frame IDR. The second frame does not need to be a key frame to be the forward predictive coding frame P, which needs to be determined according to the GOP in the actual application scenario.
实施例五:Embodiment five:
为了解决一些情形中在视频录制的全程中视频录制参数均为一致不会发生变化,造成拍摄得到的视频效果不好,用户体验度差的问题,在本发明实施例中提供一种终端,请参见图5所示,如图5为本实施例提供的终端的结构示意图:In order to solve the problem that the video recording parameters are consistent and will not change during the entire video recording process in some cases, resulting in poor video effects and poor user experience, a terminal is provided in the embodiment of the present invention. Referring to FIG. 5, FIG. 5 is a schematic structural diagram of the terminal provided in this embodiment:
本实施例提供的终端包括处理器501、存储器502及通信总线503。The terminal provided in this embodiment includes a processor 501, a memory 502, and a communication bus 503.
其中,本实施例中的通信总线503用于实现处理器501与存储器502之间的连接通信,处理器501则用于执行存储器502中存储的一个或者多个程序,以实现以下步骤:Wherein, the communication bus 503 in this embodiment is used to implement connection and communication between the processor 501 and the memory 502, and the processor 501 is used to execute one or more programs stored in the memory 502 to implement the following steps:
当接收到视频录制指令时,进行视频录制;When receiving a video recording instruction, perform video recording;
在视频录制过程中,根据当前录制环境对视频录制参数进行调整;During the video recording process, adjust the video recording parameters according to the current recording environment;
根据调整后的视频录制参数进行视频录制。Perform video recording according to the adjusted video recording parameters.
应当理解的是,本实施例中的终端包括但不限于可以实现视频录制的手机、可穿戴设备、照相机等。It should be understood that the terminals in this embodiment include, but are not limited to, mobile phones, wearable devices, cameras, etc. that can implement video recording.
值得注意的是,为了不累赘说明,在本实施例中并未完全阐述实施例一中的所有示例,应当明确的是,实施例一中的所有示例均适用于本实施例。It is worth noting that, in order not to cumbersome description, this embodiment does not fully describe all the examples in the first embodiment, and it should be clear that all the examples in the first embodiment are applicable to this embodiment.
同时,本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现如上述实施例一中视频录制方法的步骤。At the same time, the embodiments of the present invention also provide a computer-readable storage medium. The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned embodiments. Steps of a video recording method.
本发明的有益效果是:The beneficial effects of the present invention are:
本发明实施例提供的视频录制方法、装置、终端以及计算机可读存储介质,通过当接收到视频录制指令时,进行视频录制,进一步地,在视频录制过程中,根据当前录制环境对视频录制参数进行调整,进一步地,根据调整后的视频录制参数进行视频录制;解决了现有技术中在视频录制的全程中视频录制参数均为一致不会发生变化,造成拍摄得到的视频效果不好,用户体验度差的问题。也即本发明实施例提供的视频录制方法、装置、终端以及计算机可读存储介质,通过在视频录制过程中,根据当前录制环境实时对当前的视频录制参数进行调整,进而根据调整后的视频录制参数进行视频录制,实现了在视频录制过程中结合当前的录制环境对视频录制参数的动态调整,在极大程度上提升了视频录制的效果,进而提升了用户的体验满意度。The video recording method, device, terminal, and computer-readable storage medium provided by the embodiments of the present invention perform video recording when a video recording instruction is received. Further, during the video recording process, the video recording parameters are set according to the current recording environment. Make adjustments, and further, perform video recording according to the adjusted video recording parameters; this solves the problem that in the prior art, the video recording parameters are consistent and will not change during the entire video recording process, resulting in poor video effects obtained by shooting, and users The problem of poor experience. That is, the video recording method, device, terminal, and computer-readable storage medium provided by the embodiments of the present invention adjust the current video recording parameters in real time according to the current recording environment during the video recording process, and then adjust the current video recording parameters according to the adjusted video recording. Parameter video recording realizes the dynamic adjustment of video recording parameters combined with the current recording environment during the video recording process, which greatly improves the effect of video recording and thus improves user experience satisfaction.
该计算机可读存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、计算机程序模块或其他数据)的任何方法或技术中实施的易失性或非易失性、可移除或不可移除的介质。计算机可读存储介质包括但不限于RAM(Random Access Memory,随机存取存储器),ROM(Read-Only Memory,只读存储器),EEPROM(Electrically Erasable Programmable read only memory,带电可擦可编程只读存储器)、闪存或其他存储器技术、CD-ROM(Compact Disc Read-Only Memory,光盘只读存储器),数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。The computer-readable storage medium includes volatile or nonvolatile, removable or Non-removable media. Computer-readable storage media include but are not limited to RAM (Random Access Memory), ROM (Read-Only Memory, read-only memory), EEPROM (Electrically Erasable Programmable read only memory, charged Erasable Programmable Read-Only Memory) ), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, Or any other medium that can be used to store desired information and that can be accessed by a computer.
显然,本领域的技术人员应该明白,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件(可以用计算装置可执行的程序代码来实现)、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。Obviously, those skilled in the art should understand that all or some of the steps in the method disclosed above, the functional modules/units in the system, and the device can be implemented as software (which can be implemented by the program code executable by the computing device) , Firmware, hardware and their appropriate combination. In the hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may consist of several physical components. The components are executed cooperatively. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on a computer-readable medium and executed by a computing device. In some cases, the steps shown or described may be performed in a different order than here. The computer-readable medium may include computer storage Medium (or non-transitory medium) and communication medium (or temporary medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Sexual, removable and non-removable media.
此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。所以,本发明不限制于任何特定的硬件和软件结合。In addition, as is well known to those of ordinary skill in the art, communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. . Therefore, the present invention is not limited to any specific combination of hardware and software.
以上内容是结合具体的实施方式对本发明实施例所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the embodiments of the present invention in combination with specific implementations, and it cannot be considered that the specific implementations of the present invention are limited to these descriptions. For those of ordinary skill in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope of the present invention.

Claims (10)

  1. 一种视频录制方法,包括:A video recording method, including:
    当接收到视频录制指令时,进行视频录制;When receiving a video recording instruction, perform video recording;
    在视频录制过程中,根据当前录制环境对视频录制参数进行调整;During the video recording process, adjust the video recording parameters according to the current recording environment;
    根据调整后的视频录制参数进行视频录制。Perform video recording according to the adjusted video recording parameters.
  2. 如权利要求1所述的视频录制方法,其中,所述根据当前录制环境对视频录制参数进行调整,包括:5. The video recording method of claim 1, wherein the adjusting the video recording parameters according to the current recording environment comprises:
    根据当前录制环境的画面移动速率对视频录制参数进行调整;Adjust the video recording parameters according to the picture movement rate of the current recording environment;
    和/或,and / or,
    根据当前录制环境的亮度值对视频录制参数进行调整。Adjust the video recording parameters according to the brightness value of the current recording environment.
  3. 如权利要求2所述的视频录制方法,其中,所述视频录制参数包括曝光时间、帧率、对比度、饱和度中的至少一种。3. The video recording method of claim 2, wherein the video recording parameters include at least one of exposure time, frame rate, contrast, and saturation.
  4. 如权利要求3所述的视频录制方法,其中,所述根据当前录制环境的画面移动速率对视频录制参数进行调整,包括:5. The video recording method according to claim 3, wherein said adjusting the video recording parameters according to the picture movement rate of the current recording environment comprises:
    获取当前录制环境的画面移动速率,根据所述画面移动速率以及预设画面移动速率-目标录制参数映射表确定目标录制参数,根据所述目标录制参数对当前的视频录制参数进行调整。The picture movement rate of the current recording environment is acquired, the target recording parameter is determined according to the picture movement rate and the preset picture movement rate-target recording parameter mapping table, and the current video recording parameter is adjusted according to the target recording parameter.
  5. 如权利要求3所述的视频录制方法,其中,所述根据当前录制环境的亮度值对视频录制参数进行调整,包括:5. The video recording method of claim 3, wherein the adjusting the video recording parameters according to the brightness value of the current recording environment comprises:
    获取当前录制环境的亮度值,根据所述亮度值以及预设亮度值-目标录制参数映射表确定目标录制参数,根据所述目标录制参数对当前的视频录制参数进行调整。Obtain the brightness value of the current recording environment, determine the target recording parameter according to the brightness value and the preset brightness value-target recording parameter mapping table, and adjust the current video recording parameter according to the target recording parameter.
  6. 如权利要求2-5任一项所述的视频录制方法,其中,当所述视频录制参数包括曝光时间和帧率时,画面移动速率越慢对应的曝光时间越大,帧率越小,亮度值越小对应的曝光时间越大,帧率越小。The video recording method according to any one of claims 2-5, wherein when the video recording parameters include exposure time and frame rate, the slower the picture movement rate, the longer the corresponding exposure time, the lower the frame rate, and the lower the brightness The smaller the value, the larger the exposure time and the smaller the frame rate.
  7. 如权利要求1-5任一项所述的视频录制方法,所述根据当前录制环境对视频录制参数进行调整之前,还包括:5. The video recording method according to any one of claims 1-5, before said adjusting the video recording parameters according to the current recording environment, further comprising:
    采集图像帧,对采集到的所述图像帧进行图像识别,确定当前录制环境的画面移动速率以及当前录制环境的亮度值;Collecting image frames, performing image recognition on the collected image frames, and determining the frame movement rate of the current recording environment and the brightness value of the current recording environment;
    或,or,
    通过光敏传感器确定当前录制环境的亮度值。Determine the brightness value of the current recording environment through the photosensitive sensor.
  8. 一种装置,包括:录制模块以及调整模块;A device including: a recording module and an adjustment module;
    所述录制模块用于当接收到视频录制指令时,进行视频录制;The recording module is used to perform video recording when a video recording instruction is received;
    所述调整模块用于在视频录制过程中,根据当前录制环境对视频录制参数进行调整;The adjustment module is used to adjust the video recording parameters according to the current recording environment during the video recording process;
    所述录制模块还用于根据调整后的视频录制参数进行视频录制。The recording module is also used for video recording according to the adjusted video recording parameters.
  9. 一种终端,包括处理器、存储器及通信总线;A terminal including a processor, a memory and a communication bus;
    所述通信总线用于实现处理器和存储器之间的连接通信;The communication bus is used to realize the connection and communication between the processor and the memory;
    所述处理器用于执行存储器中存储的一个或者多个计算机程序,以实现如权利要求1-7中任一项所述的视频录制方法的步骤。The processor is configured to execute one or more computer programs stored in the memory to implement the steps of the video recording method according to any one of claims 1-7.
  10. 一种计算机可读存储介质,存储有一个或者多个程序,其中,所述一个或者多个程序可被一个或者多个处理器执行,以实现如权利要求1-7中任一项所述的视频录制方法的步骤。A computer-readable storage medium storing one or more programs, wherein the one or more programs can be executed by one or more processors to implement the method according to any one of claims 1-7 The steps of the video recording method.
PCT/CN2020/112905 2019-09-24 2020-09-01 Video recording method, device, terminal, and computer-readable storage medium WO2021057412A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910907195.0 2019-09-24
CN201910907195.0A CN112637476A (en) 2019-09-24 2019-09-24 Video recording method, device, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2021057412A1 true WO2021057412A1 (en) 2021-04-01

Family

ID=75165599

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/112905 WO2021057412A1 (en) 2019-09-24 2020-09-01 Video recording method, device, terminal, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN112637476A (en)
WO (1) WO2021057412A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596320B (en) * 2021-06-16 2022-07-01 荣耀终端有限公司 Video shooting variable speed recording method, device and storage medium
CN113286106B (en) * 2021-06-18 2023-04-25 深圳传音通讯有限公司 Video recording method, mobile terminal and storage medium
CN115174138A (en) * 2022-05-25 2022-10-11 北京旷视科技有限公司 Camera attack detection method, system, device, storage medium and program product
CN117835037A (en) * 2022-09-30 2024-04-05 北京字跳网络技术有限公司 Light supplementing control method, device, equipment and storage medium for video call

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010043277A1 (en) * 2000-04-18 2001-11-22 Minolta Co., Ltd., Electronic camera
CN103155028A (en) * 2010-11-19 2013-06-12 三菱电机株式会社 Display unit, image sensing unit and display system
JP2013250452A (en) * 2012-05-31 2013-12-12 Sharp Corp Image adjustment unit, image display device, computer program, recording medium, and image adjustment method
WO2016008357A1 (en) * 2014-07-17 2016-01-21 努比亚技术有限公司 Photographing method, apparatus, and storage medium
CN107071295A (en) * 2017-05-12 2017-08-18 北京小米移动软件有限公司 Adjusting method, device and the computer-readable storage medium of soft light
CN107229625A (en) * 2016-03-23 2017-10-03 北京搜狗科技发展有限公司 It is a kind of to shoot treating method and apparatus, a kind of device for being used to shoot processing
CN107360365A (en) * 2017-06-30 2017-11-17 盯盯拍(深圳)技术股份有限公司 Image pickup method, filming apparatus, terminal and computer-readable recording medium
CN107454342A (en) * 2017-08-30 2017-12-08 努比亚技术有限公司 A kind of control method, mobile terminal and computer-readable recording medium

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060170816A1 (en) * 2005-01-28 2006-08-03 Silverstein D A Method and system for automatically adjusting exposure parameters of an imaging device
CN102883100A (en) * 2011-07-14 2013-01-16 天津市亚安科技股份有限公司 Device and method for automatically adjusting pickup parameter
US20130242120A1 (en) * 2012-03-15 2013-09-19 Qualcomm Incorporated Motion-state classification for camera applications
CN102790862A (en) * 2012-07-30 2012-11-21 成都西可科技有限公司 Method for dynamically improving effect of cell phone front camera
CN103220431A (en) * 2013-05-07 2013-07-24 深圳市中兴移动通信有限公司 Method and device for automatically switching photographing mode
CN103347152A (en) * 2013-07-08 2013-10-09 华为终端有限公司 Method, device and terminal for picture processing
CN104580969A (en) * 2013-10-23 2015-04-29 中兴通讯股份有限公司 Video frame rate adjusting method and device
CN103873776A (en) * 2014-03-26 2014-06-18 惠州Tcl移动通信有限公司 Method and system for making camera of mobile terminal adapt to scene automatically
CN104967803B (en) * 2015-07-01 2018-01-19 广东欧珀移动通信有限公司 A kind of video recording method and device
CN105072345B (en) * 2015-08-25 2018-12-25 深圳市通则技术股份有限公司 Method for video coding and device
CN106657805A (en) * 2017-01-13 2017-05-10 广东欧珀移动通信有限公司 Shooting method in movement and mobile terminal
US10491807B2 (en) * 2017-06-27 2019-11-26 GM Global Technology Operations LLC Method to use vehicle information and sensors for photography and video viewing recording
CN107396019B (en) * 2017-08-11 2019-05-17 维沃移动通信有限公司 A kind of slow motion video method for recording and mobile terminal
CN108156393B (en) * 2017-12-28 2021-01-15 努比亚技术有限公司 Image photographing method, mobile terminal and computer-readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010043277A1 (en) * 2000-04-18 2001-11-22 Minolta Co., Ltd., Electronic camera
CN103155028A (en) * 2010-11-19 2013-06-12 三菱电机株式会社 Display unit, image sensing unit and display system
JP2013250452A (en) * 2012-05-31 2013-12-12 Sharp Corp Image adjustment unit, image display device, computer program, recording medium, and image adjustment method
WO2016008357A1 (en) * 2014-07-17 2016-01-21 努比亚技术有限公司 Photographing method, apparatus, and storage medium
CN107229625A (en) * 2016-03-23 2017-10-03 北京搜狗科技发展有限公司 It is a kind of to shoot treating method and apparatus, a kind of device for being used to shoot processing
CN107071295A (en) * 2017-05-12 2017-08-18 北京小米移动软件有限公司 Adjusting method, device and the computer-readable storage medium of soft light
CN107360365A (en) * 2017-06-30 2017-11-17 盯盯拍(深圳)技术股份有限公司 Image pickup method, filming apparatus, terminal and computer-readable recording medium
CN107454342A (en) * 2017-08-30 2017-12-08 努比亚技术有限公司 A kind of control method, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN112637476A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
WO2021057412A1 (en) Video recording method, device, terminal, and computer-readable storage medium
EP3624439B1 (en) Imaging processing method for camera module in night scene, electronic device and storage medium
CN108335279B (en) Image fusion and HDR imaging
US10616511B2 (en) Method and system of camera control and image processing with a multi-frame-based window for image data statistics
CN106060249B (en) Photographing anti-shake method and mobile terminal
EP3253064A1 (en) Frame loss method for video frame and video sending apparatus
EP2882184A2 (en) Robust automatic exposure control using embedded data
WO2019033877A1 (en) Video frame coding method, terminal, and storage medium
WO2021047287A1 (en) Video uploading method and apparatus, electronic device, and storage medium
CN109618102B (en) Focusing processing method and device, electronic equipment and storage medium
US20210120230A1 (en) Image encoding control method and apparatus, storage medium, and unmanned aerial vehicle
US11336826B2 (en) Method and apparatus having a function of constant automatic focusing when exposure changes
US10127455B2 (en) Apparatus and method of providing thumbnail image of moving picture
US8995784B2 (en) Structure descriptors for image processing
CN111385484B (en) Information processing method and device
WO2020133465A1 (en) Systems and methods for multi-video stream transmission
US10769416B2 (en) Image processing method, electronic device and storage medium
WO2022151852A1 (en) Image processing method, apparatus, and system, electronic device, and storage medium
US10079981B2 (en) Image dynamic range adjustment method, terminal, and storage medium
WO2021121257A1 (en) Video processing method, video processing device, terminal, and computer readable storage medium
US10122907B1 (en) Integration of transducer outputs in a conferencing system
CN110971833A (en) Image processing method and device, electronic equipment and storage medium
US9565395B1 (en) Video image processing apparatus and recording medium
CN115719316A (en) Image processing method and device, electronic equipment and computer readable storage medium
CN114205650A (en) Three-dimensional panoramic video picture synchronization method and device

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: 20869371

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: 20869371

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 27/02/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20869371

Country of ref document: EP

Kind code of ref document: A1