CN112637476A - 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
CN112637476A
CN112637476A CN201910907195.0A CN201910907195A CN112637476A CN 112637476 A CN112637476 A CN 112637476A CN 201910907195 A CN201910907195 A CN 201910907195A CN 112637476 A CN112637476 A CN 112637476A
Authority
CN
China
Prior art keywords
video recording
recording
video
current
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201910907195.0A
Other languages
Chinese (zh)
Inventor
邵长春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201910907195.0A priority Critical patent/CN112637476A/en
Priority to PCT/CN2020/112905 priority patent/WO2021057412A1/en
Publication of CN112637476A publication Critical patent/CN112637476A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • 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

Abstract

The invention provides a video recording method, a video recording device, a terminal and a computer readable storage medium, wherein when a video recording instruction is received, video recording is carried out, furthermore, in the video recording process, video recording parameters are adjusted according to the current recording environment, and further, video recording is carried out according to the adjusted video recording parameters; the problems that in the prior art, video recording parameters are consistent and can not change in the whole video recording process, the video effect obtained by shooting is poor, and the user experience degree is poor are solved. That is, the video recording method, the video recording device, the video recording terminal and the computer readable storage medium provided by the invention realize dynamic adjustment of video recording parameters in combination with the current recording environment in the video recording process, improve the video recording effect to a great extent, and further improve the experience satisfaction of users.

Description

Video recording method, device, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of audio and video technologies, and in particular, to a video recording method, apparatus, terminal, and computer-readable storage medium.
Background
With the development of terminal technology, the terminal integrates functions of communication, shooting, video and the like, and becomes an indispensable part in daily life of people. Because high definition digtal camera's technical breakthrough, the pixel of terminal camera is more and more high for the effect promotes greatly that shoots, video recording of terminal, and terminal convenient to carry, people in normal life and tourism more and more tend to shoot, video recording with the terminal.
For convenience of description, the terminal takes a mobile phone as an example, and video recording parameters adopted when the mobile phone records videos at present are all consistent and cannot change in the whole recording process, so that the video effect obtained by shooting is not good, and the experience satisfaction of a user is greatly reduced.
Disclosure of Invention
The video recording method, the video recording device, the video recording terminal and the computer readable storage medium mainly solve the technical problems that in the prior art, video recording parameters are consistent and cannot change in the whole video recording process, so that the video effect obtained by shooting is poor, and the user experience is poor.
In order to solve the above technical problem, an embodiment of the present invention provides a video recording method, including:
when a video recording instruction is received, video recording is carried out;
in the video recording process, video recording parameters are adjusted according to the current recording environment;
and recording the video according to the adjusted video recording parameters.
An embodiment of the present invention further provides a device, where the device includes: the recording module and the adjusting module;
the recording module is used for recording videos when receiving video recording instructions;
the adjusting module is used for adjusting video recording parameters according to the current recording environment in the video recording process;
and the recording module is also used for recording the video according to the adjusted video recording parameters.
The embodiment of the invention also provides a terminal, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more computer programs stored in the memory to implement the steps of the video recording method as described above.
Embodiments of the present invention also provide a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps of the video recording method as described above.
The invention has the beneficial effects that:
according to the video recording method, the video recording device, the terminal and the computer readable storage medium provided by the embodiment of the invention, when a video recording instruction is received, video recording is carried out, further, in the video recording process, video recording parameters are adjusted according to the current recording environment, and further, video recording is carried out according to the adjusted video recording parameters; the problems that in the prior art, video recording parameters are consistent and can not change in the whole video recording process, the video effect obtained by shooting is poor, and the user experience degree is poor are solved. That is, according to the video recording method, the video recording device, the terminal, and the computer-readable storage medium provided by the embodiments of the present invention, in the video recording process, the current video recording parameter is adjusted in real time according to the current recording environment, and then video recording is performed according to the adjusted video recording parameter, so that dynamic adjustment of the video recording parameter in combination with the current recording environment in the video recording process is realized, the video recording effect is greatly improved, and further, the experience satisfaction of a user is improved.
Additional features and corresponding advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic basic flowchart of a video recording method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram three of an apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
in order to solve the problems that video recording parameters are consistent and can not change in the whole video recording process in the prior art, so that the effect of a shot video is poor and the user experience degree is poor, the embodiment of the invention provides a video recording method, wherein the video recording is carried out when a video recording instruction is received, further, in the video recording process, the video recording parameters are adjusted according to the current recording environment, and further, the video recording is carried out according to the adjusted video recording parameters; referring to fig. 1, fig. 1 is a schematic view of a basic flow of a video recording method provided in this embodiment.
S101: and when a video recording instruction is received, recording the video.
It should be understood that the video recording command in this embodiment may be issued by a user clicking or pressing a physical button, or may be issued by a user clicking or pressing a virtual button, or may be issued by a non-touch screen, such as voice. It should be noted that, in practical applications, the adjustment can be flexibly made according to specific application scenarios, and the present invention is not limited as long as the method is within the protection scope of the present invention.
S102: and in the video recording process, adjusting the video recording parameters according to the current recording environment.
Optionally, in this embodiment, the video recording parameter includes, but is not limited to, exposure time, frame rate, contrast, and saturation, where the video recording parameter includes any one or any combination of exposure time, frame rate, contrast, and saturation. It should be noted that, only a few common video recording parameters are listed here, and in practical applications, the parameters can be flexibly adjusted according to specific application scenarios.
Optionally, in this embodiment, adjusting the video recording parameter according to the current recording environment includes at least the following two ways:
the first method is as follows: and adjusting the video recording parameters according to the picture moving rate of the current recording environment.
Optionally, adjusting the video recording parameter according to the picture moving rate of the current recording environment includes:
acquiring the picture moving rate of the current recording environment, determining a target recording parameter according to the picture moving rate and a picture moving rate-target recording parameter mapping table, and adjusting the current video recording parameter according to the target recording parameter.
In some examples, obtaining the picture movement rate of the current recording environment may be performed by acquiring image frames, and performing image recognition, such as a difference method, on the acquired image frames. It should be noted that the present invention is not limited to this manner, and it is within the scope of the present invention to determine the picture movement rate of the current recording environment.
It should be understood that the terminal stores a mapping table of picture moving rate to target recording parameter in advance, and for better understanding, this is described as a specific example, for example, referring to table one:
watch 1
Picture moving rate Exposure time Frame rate Contrast ratio Degree of saturation
a2 below K1 N1 M1 Q1
a2~a3 K2 N2 M2 Q2
a4~a5 K3 N3 M3 Q3
a6~a7 K4 N4 M4 Q4
a7 or more K5 N5 M5 Q5
According to the first table, the video recording parameters include exposure time, frame rate, contrast, and saturation, wherein the slower the picture moving rate (a2< a3< a4< a5< a6< a7) 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), and the smaller the saturation (Q1< Q2< Q3< Q4< Q5< Q6< Q7).
In an example, the obtained picture moving rate may also be determined, and it is determined whether the obtained picture moving rate belongs to a non-moving scene or a moving scene, where the picture moving rate is smaller than a preset threshold value corresponding to the non-moving scene, and the picture moving rate is greater than the preset threshold value corresponding to the moving scene, for example, see table two shown below:
watch two
Scene Rate of movement Exposure time Frame rate Contrast ratio Degree of saturation
Non-moving scene a5 below K1 N1 M1 Q1
Moving scene a5 or more K2 N2 M2 Q2
As shown in table two, the video recording parameters include exposure time, frame rate, contrast, and saturation, where a picture moving rate a5 or less corresponds to an unmoved scene, a picture moving rate a5 or more corresponds to a moving scene, and the exposure time K1> K2, the frame rate N1< N2, the contrast M1< M2, and the saturation Q1< Q2.
It should be noted that the above lists only two exemplary mapping tables of picture moving rate-target recording parameters, and in practical applications, the mapping table of picture moving rate-target recording parameters is flexibly set by developers according to experiments or experiences.
The second method comprises the following steps: and adjusting video recording parameters according to the brightness value of the current recording environment.
Optionally, adjusting the video recording parameter according to the brightness value of the current recording environment includes:
acquiring the brightness value of the current recording environment, determining a target recording parameter according to the brightness value and a brightness value-target recording parameter mapping table, and adjusting the current video recording parameter according to the target recording parameter.
In some examples, obtaining the brightness value of the current recording environment may be performed by acquiring an image frame, and performing image recognition on the acquired image frame; in other examples, obtaining the brightness value of the current recording environment may determine the brightness value of the current recording environment through a photosensitive sensor. It should be noted that the present invention is not limited to these two ways, and it is within the scope of the present invention to determine the brightness value of the current recording environment.
It should be understood that, the terminal stores the picture moving rate-target recording parameter mapping table in advance,
for better understanding, a specific example is described herein, for example, with reference to table three:
watch III
Brightness value Exposure time Frame rate Contrast ratio Degree of saturation
b2 below K1 N1 M1 Q1
b2~b3 K2 N2 M2 Q2
b4~b5 K3 N3 M3 Q3
b6~b7 K4 N4 M4 Q4
b7 or more K5 N5 M5 Q5
According to the third table, the video recording parameters include exposure time, frame rate, contrast, and saturation, wherein the smaller the brightness value (b2< b3< b4< b5< b6< b7) 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), and the smaller the saturation (Q1< Q2< Q3< Q4< Q5< Q6< Q7).
In an example, the obtained brightness value of the current recording environment may be further determined to determine whether the current recording environment belongs to a night scene or a day scene, where the brightness value is smaller than a preset threshold corresponding to the night scene and larger than the preset threshold corresponding to the day scene, for example, see table four:
watch four
Scene Brightness value Exposure time Frame rate Contrast ratio Degree of saturation
Night scene b5 below K1 N1 M1 Q1
Daytime scene b5 or more K2 N2 M2 Q2
As shown in table four above, the video recording parameters include exposure time, frame rate, contrast, and saturation, where below the luminance value b5 corresponds to a night scene, above the luminance value b5 corresponds to a day scene, the exposure time K1> K2, the frame rate N1< N2, the contrast M1< M2, and the saturation Q1< Q2.
It should be noted that the above lists only two exemplary luminance value-target recording parameter mapping tables, and in practical applications, the luminance value-target recording parameter mapping table is flexibly set by a developer according to experiments or experience.
It should be understood that the first and second modes may be executed separately or simultaneously, and when executed simultaneously, for example, the video recording parameter values obtained from the first and second tables may be different, at this time, the video recording parameter value obtained from the first table may be used as the reference, the video recording parameter value obtained from the second table may also be used as the reference, or an average value of the video recording parameter values obtained from the first and second tables may also be taken or other calculations may be performed.
S103: and recording the video according to the adjusted video recording parameters.
In this embodiment, video recording is performed according to the adjusted video recording parameter.
For better understanding, this is illustrated here by way of example:
for example, as shown in table two, it is assumed that the terminal performs video recording starting with video recording parameters corresponding to a moving scene, that is, when a video recording instruction is received to perform video recording, the corresponding exposure time is K2, the frame rate is N2, the contrast is M2, and the saturation is Q2, and the current environment is monitored to find that the current environment is in an unmoved scene, and at this time, the exposure time is K1, the frame rate is N1, the contrast is M1, and the saturation is Q1, because the exposure time K1> K2, the frame rate N1< N2, the contrast M1< M2, and the saturation Q1< Q2 are automatically adjusted to increase the exposure time, decrease the frame rate, decrease the contrast, and decrease the saturation, and further, the video recording is performed according to the exposure time K1, the N frame rate 1, the contrast M1, and the saturation Q1; it should be understood that when it is detected that the current environment is found to be in a moving scene again, the exposure time is automatically adjusted to K2, the frame rate is N2, the contrast is M2, and the saturation is Q2, and the automatic adjustment is to decrease the exposure time, increase the frame rate, increase the contrast, and increase the saturation, and further, video recording is performed according to the exposure time K2, the frame rate N2, the contrast M2, and the saturation Q2.
For example, as shown in table four, it is assumed that the terminal performs video recording starting with video recording parameters corresponding to a daytime scene, that is, when a video recording instruction is received to perform video recording, the corresponding exposure time is K2, the frame rate is N2, the contrast is M2, and the saturation is Q2, and the current environment is monitored to find that the current environment is in a nighttime 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 K1> K2, the frame rate N1< N2, the contrast M1< M2, and the saturation Q1< Q2 are automatically adjusted to increase the exposure time, decrease the frame rate, decrease the contrast, and decrease the saturation, and further, the video recording is performed according to the exposure time K1, the N frame rate 1, the contrast M1, and the saturation Q1; it should be understood that when it is detected that the current environment is found to be in the daytime scene again, the exposure time is automatically adjusted to K2, the frame rate is N2, the contrast is M2, and the saturation is Q2, and the automatic adjustment is performed to decrease the exposure time, increase the frame rate, increase the contrast, and increase the saturation, and further, video recording is performed according to the exposure time K2, the frame rate N2, the contrast M2, and the saturation Q2.
According to the video recording method provided by the embodiment of the invention, when a video recording instruction is received, video recording is carried out, further, in the video recording process, video recording parameters are adjusted according to the current recording environment, and further, video recording is carried out according to the adjusted video recording parameters; the problems that in the prior art, video recording parameters are consistent and can not change in the whole video recording process, the video effect obtained by shooting is poor, and the user experience degree is poor are solved. That is, in the video recording process, the video recording method provided by the embodiment of the invention adjusts the current video recording parameter in real time according to the current recording environment, and then performs video recording according to the adjusted video recording parameter, so that dynamic adjustment of the video recording parameter in combination with the current recording environment in the video recording process is realized, the video recording effect is improved to a great extent, and further the experience satisfaction degree of a user is improved.
Meanwhile, the video recording method provided by the embodiment of the invention can dynamically adjust the video recording parameters in real time according to the current recording environment, particularly when the video recording parameters comprise exposure time and frame rate, effectively improve the definition and video shooting effect of video pictures aiming at the exposure time of the video recording parameters, effectively reduce the transmission code rate of subsequent video uploading aiming at the frame rate of the video recording parameters, reduce bandwidth waste and further improve the experience satisfaction of users.
Example two:
in order to solve the problems that video recording parameters are consistent and cannot change in the whole video recording process in the prior art, which causes poor video effect obtained by shooting and poor user experience, an embodiment of the present invention provides a device, please refer to fig. 2, where fig. 2 is a schematic structural diagram of the device provided in this embodiment:
the device provided by the embodiment comprises a recording module 201 and an adjusting module 202;
the recording module 201 is configured to record a video when receiving a video recording instruction;
the adjusting module 202 is configured to adjust video recording parameters according to a current recording environment during a video recording process;
it should be understood that the recording module 201 is also configured to perform video recording according to the adjusted video recording parameters.
It should be understood that the recording module 201 and the adjusting module 202 in the present embodiment include, but are not limited to being implemented by a processor or other hardware devices.
Optionally, in this embodiment, the video recording parameter includes, but is not limited to, exposure time, frame rate, contrast, and saturation, where the video recording parameter includes any one or any combination of exposure time, frame rate, contrast, and saturation. It should be noted that, only a few common video recording parameters are listed here, and in practical applications, the parameters can be flexibly adjusted according to specific application scenarios.
Optionally, in this embodiment, the adjusting module 202 adjusts the video recording parameter according to the current recording environment, which includes at least the following two ways:
the first method is as follows: the adjusting module 202 adjusts the video recording parameters according to the picture moving rate of the current recording environment.
Optionally, the adjusting module 202 obtains a picture moving rate of the current recording environment, determines a target recording parameter according to the picture moving rate and a picture moving rate-target recording parameter mapping table, and adjusts the current video recording parameter according to the target recording parameter.
Alternatively, the adjusting module 202 may acquire the picture moving rate of the current recording environment by acquiring an image frame, and performing image recognition, such as a difference method, on the acquired image frame.
The second method comprises the following steps: the adjusting module 202 adjusts the video recording parameters according to the brightness value of the current recording environment.
Optionally, the adjusting module 202 obtains a brightness value of the current recording environment, determines a target recording parameter according to the brightness value and a brightness value-target recording parameter mapping table, and adjusts the current video recording parameter according to the target recording parameter.
Optionally, the adjusting module 202 may acquire the brightness value of the current recording environment by acquiring an image frame, and performing image recognition on the acquired image frame.
Alternatively, the adjusting module 202 may determine the brightness value of the current recording environment through a photosensitive sensor.
In this embodiment, for example, the video recording parameters include exposure time, frame rate, contrast, and saturation, where the slower the frame moving rate, the larger the corresponding exposure time, the smaller the frame rate, the smaller the contrast, and the smaller the saturation, the smaller the brightness value, the larger the corresponding exposure time, the smaller the frame rate, the smaller the contrast, and the smaller the saturation.
It is to be noted that, in order to avoid redundant description, all examples in the first embodiment are not fully set forth in the present embodiment, and it should be clear that all examples in the first embodiment are applicable to the present embodiment.
The device provided by the embodiment of the invention records the video when receiving the video recording instruction through the recording module, further adjusts the video recording parameter according to the current recording environment in the video recording process through the adjusting module, and further records the video according to the adjusted video recording parameter through the recording module; the problems that in the prior art, video recording parameters are consistent and can not change in the whole video recording process, the video effect obtained by shooting is poor, and the user experience degree is poor are solved. That is, in the video recording process, the device provided by the embodiment of the invention adjusts the current video recording parameter in real time according to the current recording environment, and then performs video recording according to the adjusted video recording parameter, so that the dynamic adjustment of the video recording parameter in combination with the current recording environment in the video recording process is realized, the video recording effect is improved to a great extent, and the experience satisfaction degree of a user is further improved.
Meanwhile, the device provided by the embodiment of the invention can dynamically adjust the video recording parameters in real time according to the current recording environment, particularly when the video recording parameters comprise exposure time and frame rate, effectively improve the definition and video shooting effect of video pictures aiming at the exposure time of the video recording parameters, effectively reduce the transmission code rate of subsequent video uploading aiming at the frame rate of the video recording parameters, reduce bandwidth waste and further improve the experience satisfaction of users.
Example three:
the embodiment of the present invention provides a device based on the second embodiment, please refer to fig. 3, and fig. 3 is a schematic structural diagram of the device provided in this embodiment:
the apparatus provided by this embodiment includes a recording module 201 and an adjusting module 202, wherein the adjusting module 202 includes a movement detecting module 2021, an image sensor module 2022, and an encoder module 2023.
For better understanding, the present embodiment is exemplified by video recording parameters including exposure time and frame rate.
In one example:
when the motion detection module 2021 detects that the picture of the current recording environment does not move, 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 decrease the frame rate.
After receiving the instruction issued by the motion detection module 2021, the image sensor module 2022 and the encoder module 2023 need to immediately stop the current operation, discard the current processing data, and then perform data collection and encoding according to a new encoding mode corresponding to the instruction.
The issuing instructions are performed in batches, each batch of instructions includes issuing instructions to the image sensor module 2022 and the encoder module 2023, and the issuing times can be determined according to an actual use scene test.
For example:
the first time the instruction is issued, the image sensor module 2022 increases the exposure time per frame to 100 milliseconds, and the encoder module 2023 decreases the frame rate to 10 frames/second.
The second time the instruction is issued, the image sensor module 2022 increases the exposure time per frame to 200 ms, and the encoder module 2023 decreases the frame rate to 5 frames/sec.
The third time, the image sensor module 2022 increases the exposure time per frame to 500 ms, and the encoder module 2023 decreases the frame rate to 2 frames/sec.
In another example:
when the motion detection module 2021 detects that the picture of the current recording environment has motion, 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.
After receiving the instruction issued by the motion detection module 2021, the image sensor module 2022 and the encoder module 2023 need to immediately stop the current operation, discard the current processing data, and then perform data collection and encoding according to a new encoding mode corresponding to the instruction.
The issuing instructions are performed in batches, each batch of instructions includes issuing instructions to the image sensor module 2022 and the encoder module 2023, and the issuing times can be determined according to actual use scene test experience.
For example:
for the first time, the image sensor module 2022 issues an instruction to decrease the exposure time per frame to 200 ms, and the encoder module 2023 increases the frame rate to 5 frames/sec.
The second time the instruction is issued, the image sensor module 2022 reduces the exposure time per frame to 100 milliseconds, and the encoder module 2023 increases the frame rate to 10 frames/second.
The third time the instruction is issued, the image sensor module 2022 reduces the exposure time per frame to 40 ms, and the encoder module 2023 increases the frame rate to 25 frames/sec.
It should be noted that:
IDR: the video sequence is characterized in that an instant Decoding Refresh, referred to as an I frame for short, is a key frame, and an intra-frame coded frame is an independent frame with all information, and can be independently decoded without referring to other images, and the first frame in the video sequence is always an I frame.
GOP: group of picture, the period of a key frame, i.e. the distance between two IDR frames.
P: frames are forward predictive coded.
In the above two examples, the motion detection module 2021 further needs to issue an instruction to the encoder module 2023 to obtain a key frame, that is, after the encoder module 2023 receives the key frame instruction, the first frame output by subsequent encoding is a key frame IDR, and from the second frame, the first frame may be a forward predictive encoded frame P without being a key frame, and needs to be determined according to a GOP in an actual application scene.
Example four:
the embodiment of the present invention provides a device based on the second embodiment, please refer to fig. 4, and fig. 4 is a schematic structural diagram of the device provided in this embodiment:
the apparatus provided by this embodiment includes a recording module 201 and an adjusting module 202, wherein the adjusting module 202 includes a brightness detecting module 2024, an image sensor module 2022, and an encoder module 2023.
For better understanding, the present embodiment is exemplified by video recording parameters including exposure time and frame rate.
In one example:
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 decrease the frame rate.
After receiving the instruction issued by the brightness detection module 2024, the image sensor module 2022 and the encoder module 2023 need to immediately stop the current operation, discard the current processing data, and then perform data acquisition and encoding according to a new encoding mode corresponding to the instruction.
The issuing instructions are performed in batches, each batch of instructions includes issuing instructions to the image sensor module 2022 and the encoder module 2023, and the issuing times can be determined according to an actual use scene test.
For example:
the first time the instruction is issued, the image sensor module 2022 increases the exposure time per frame to 100 milliseconds, and the encoder module 2023 decreases the frame rate to 10 frames/second.
The second time the instruction is issued, the image sensor module 2022 increases the exposure time per frame to 200 ms, and the encoder module 2023 decreases the frame rate to 5 frames/sec.
The third time, the image sensor module 2022 increases the exposure time per frame to 500 ms, and the encoder module 2023 decreases the frame rate to 2 frames/sec.
In another example:
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.
After receiving the instruction issued by the brightness detection module 2024, the image sensor module 2022 and the encoder module 2023 need to immediately stop the current operation, discard the current processing data, and then perform data acquisition and encoding according to a new encoding mode corresponding to the instruction.
The issuing instructions are performed in batches, each batch of instructions includes issuing instructions to the image sensor module 2022 and the encoder module 2023, and the issuing times can be determined according to actual use scene test experience.
For example:
for the first time, the image sensor module 2022 issues an instruction to decrease the exposure time per frame to 200 ms, and the encoder module 2023 increases the frame rate to 5 frames/sec.
The second time the instruction is issued, the image sensor module 2022 reduces the exposure time per frame to 100 milliseconds, and the encoder module 2023 increases the frame rate to 10 frames/second.
The third time the instruction is issued, the image sensor module 2022 reduces the exposure time per frame to 40 ms, and the encoder module 2023 increases the frame rate to 25 frames/sec.
It should be noted that:
IDR: the video sequence is characterized in that an instant Decoding Refresh, referred to as an I frame for short, is a key frame, and an intra-frame coded frame is an independent frame with all information, and can be independently decoded without referring to other images, and the first frame in the video sequence is always an I frame.
GOP: group of picture, the period of a key frame, i.e. the distance between two IDR frames.
P: frames are forward predictive coded.
In the above two examples, the brightness detection module 2024 further needs to issue an instruction to the encoder module 2023 to obtain a key frame, that is, after the encoder module 2023 receives the key frame instruction, the first frame output by subsequent encoding is a key frame IDR, and from the second frame, the first frame may be a forward predictive encoding frame P without being a key frame, and needs to be determined according to a GOP in an actual application scene.
Example five:
in order to solve the problems that video recording parameters are consistent and cannot change in the whole video recording process in the prior art, which causes poor video effect obtained by shooting and poor user experience, a terminal is provided in an embodiment of the present invention, please refer to fig. 5, where fig. 5 is a schematic structural diagram of the terminal provided in this embodiment:
the terminal provided by the embodiment comprises a processor 501, a memory 502 and a communication bus 503.
In this embodiment, the communication bus 503 is used to implement connection 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 a video recording instruction is received, video recording is carried out;
in the video recording process, video recording parameters are adjusted according to the current recording environment;
and recording the video according to the adjusted video recording parameters.
It should be understood that the terminal in the present embodiment includes, but is not limited to, a mobile phone, a wearable device, a camera, etc. which can implement video recording.
It is to be noted that, in order to avoid redundant description, all examples in the first embodiment are not fully set forth in the present embodiment, and it should be clear that all examples in the first embodiment are applicable to the present embodiment.
Meanwhile, an embodiment of the present invention further provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps of the video recording method in the above-mentioned embodiment.
The computer-readable storage media include volatile or nonvolatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact disk Read-Only Memory), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
It will be apparent to those skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software (which may be implemented in program code executable by a computing device), firmware, hardware, and suitable combinations thereof. In a 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, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed over computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media), executed by a computing device, and in some cases may perform the steps shown or described in a different order than here. The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art.
In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a more detailed description of embodiments of the present invention, and the present invention is not to be considered limited to such descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. A video recording method, comprising:
when a video recording instruction is received, video recording is carried out;
in the video recording process, video recording parameters are adjusted according to the current recording environment;
and recording the video according to the adjusted video recording parameters.
2. The video recording method of claim 1, wherein the adjusting the video recording parameters according to the current recording environment comprises:
adjusting video recording parameters according to the picture moving rate of the current recording environment;
and/or the presence of a gas in the gas,
and adjusting video recording parameters according to the brightness value of the current recording environment.
3. The video recording method of claim 2, wherein the video recording parameters include at least one of exposure time, frame rate, contrast, saturation.
4. The video recording method of claim 3, wherein the adjusting the video recording parameters according to the picture moving rate of the current recording environment comprises:
acquiring the picture moving rate of the current recording environment, determining a target recording parameter according to the picture moving rate and a preset picture moving rate-target recording parameter mapping table, and adjusting the current video recording parameter according to the target recording parameter.
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:
acquiring the brightness value of the current recording environment, determining a target recording parameter according to the brightness value and a preset brightness value-target recording parameter mapping table, and adjusting the current video recording parameter according to the target recording parameter.
6. The video recording method according to any of claims 2 to 5, wherein when the video recording parameters include an exposure time and a frame rate, a slower picture moving rate corresponds to a larger exposure time and a smaller frame rate, and a smaller luminance value corresponds to a larger exposure time and a smaller frame rate.
7. The video recording method according to any of claims 1-5, wherein before adjusting the video recording parameters according to the current recording environment, further comprising:
collecting image frames, carrying out image recognition on the collected image frames, and determining the picture moving rate of the current recording environment and the brightness value of the current recording environment;
or the like, or, alternatively,
the brightness value of the current recording environment is determined by a light sensitive sensor.
8. An apparatus, characterized in that the apparatus comprises: the recording module and the adjusting module;
the recording module is used for recording videos when receiving video recording instructions;
the adjusting module is used for adjusting video recording parameters according to the current recording environment in the video recording process;
and the recording module is also used for recording the video according to the adjusted video recording parameters.
9. A terminal, characterized in that the terminal comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
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. A computer-readable storage medium, having one or more programs stored thereon which are executable by one or more processors to perform the steps of the video recording method as claimed in any one of claims 1-7.
CN201910907195.0A 2019-09-24 2019-09-24 Video recording method, device, terminal and computer readable storage medium Withdrawn CN112637476A (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
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
CN112637476A true CN112637476A (en) 2021-04-09

Family

ID=75165599

Family Applications (1)

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

Country Status (2)

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

Cited By (4)

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

Citations (19)

* 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
CN102790862A (en) * 2012-07-30 2012-11-21 成都西可科技有限公司 Method for dynamically improving effect of cell phone front camera
CN102883100A (en) * 2011-07-14 2013-01-16 天津市亚安科技股份有限公司 Device and method for automatically adjusting pickup parameter
CN103155028A (en) * 2010-11-19 2013-06-12 三菱电机株式会社 Display unit, image sensing unit and display system
CN103220431A (en) * 2013-05-07 2013-07-24 深圳市中兴移动通信有限公司 Method and device for automatically switching photographing mode
US20130242120A1 (en) * 2012-03-15 2013-09-19 Qualcomm Incorporated Motion-state classification for camera applications
CN103873776A (en) * 2014-03-26 2014-06-18 惠州Tcl移动通信有限公司 Method and system for making camera of mobile terminal adapt to scene automatically
CN104092942A (en) * 2014-07-17 2014-10-08 深圳市中兴移动通信有限公司 Shooting method and device
CN104580969A (en) * 2013-10-23 2015-04-29 中兴通讯股份有限公司 Video frame rate adjusting method and device
CN104967803A (en) * 2015-07-01 2015-10-07 广东欧珀移动通信有限公司 Video recording method and video recording device
CN105072345A (en) * 2015-08-25 2015-11-18 深圳市巨米电子有限公司 Video encoding method and device
US20160094770A1 (en) * 2013-07-08 2016-03-31 Huawei Device Co., Ltd. Image Processing Method and Apparatus, and Terminal
CN106657805A (en) * 2017-01-13 2017-05-10 广东欧珀移动通信有限公司 Shooting method in movement and mobile terminal
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
CN107396019A (en) * 2017-08-11 2017-11-24 维沃移动通信有限公司 A kind of slow motion video method for recording and mobile terminal
CN107454342A (en) * 2017-08-30 2017-12-08 努比亚技术有限公司 A kind of control method, mobile terminal and computer-readable recording medium
CN108156393A (en) * 2017-12-28 2018-06-12 努比亚技术有限公司 Image capturing method, mobile terminal and computer readable storage medium
US20180376054A1 (en) * 2017-06-27 2018-12-27 GM Global Technology Operations LLC Method To Use Vehicle Information And Sensors For Photography And Video Viewing Recording

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3551123B2 (en) * 2000-04-18 2004-08-04 ミノルタ株式会社 Electronic camera
JP5896834B2 (en) * 2012-05-31 2016-03-30 シャープ株式会社 Image adjustment unit, image display device, computer program, recording medium, and image adjustment method
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

Patent Citations (20)

* 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
CN103155028A (en) * 2010-11-19 2013-06-12 三菱电机株式会社 Display unit, image sensing unit and display system
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
US20160094770A1 (en) * 2013-07-08 2016-03-31 Huawei Device Co., Ltd. Image Processing Method and Apparatus, and Terminal
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
CN104092942A (en) * 2014-07-17 2014-10-08 深圳市中兴移动通信有限公司 Shooting method and device
WO2016008357A1 (en) * 2014-07-17 2016-01-21 努比亚技术有限公司 Photographing method, apparatus, and storage medium
CN104967803A (en) * 2015-07-01 2015-10-07 广东欧珀移动通信有限公司 Video recording method and video recording device
CN105072345A (en) * 2015-08-25 2015-11-18 深圳市巨米电子有限公司 Video encoding method and device
CN106657805A (en) * 2017-01-13 2017-05-10 广东欧珀移动通信有限公司 Shooting method in movement and mobile terminal
CN107071295A (en) * 2017-05-12 2017-08-18 北京小米移动软件有限公司 Adjusting method, device and the computer-readable storage medium of soft light
US20180376054A1 (en) * 2017-06-27 2018-12-27 GM Global Technology Operations LLC Method To Use Vehicle Information And Sensors For Photography And Video Viewing Recording
CN107360365A (en) * 2017-06-30 2017-11-17 盯盯拍(深圳)技术股份有限公司 Image pickup method, filming apparatus, terminal and computer-readable recording medium
CN107396019A (en) * 2017-08-11 2017-11-24 维沃移动通信有限公司 A kind of slow motion video method for recording and mobile terminal
CN107454342A (en) * 2017-08-30 2017-12-08 努比亚技术有限公司 A kind of control method, mobile terminal and computer-readable recording medium
CN108156393A (en) * 2017-12-28 2018-06-12 努比亚技术有限公司 Image capturing method, mobile terminal and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596320A (en) * 2021-06-16 2021-11-02 荣耀终端有限公司 Video shooting variable speed recording method, device, storage medium and program product
CN113286106A (en) * 2021-06-18 2021-08-20 深圳传音通讯有限公司 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
WO2024067743A1 (en) * 2022-09-30 2024-04-04 北京字跳网络技术有限公司 Light-replenishment control method and apparatus for video call, and device and storage medium

Also Published As

Publication number Publication date
WO2021057412A1 (en) 2021-04-01

Similar Documents

Publication Publication Date Title
CN112637476A (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
US20210256669A1 (en) Unified Bracketing Approach for Imaging
US11532076B2 (en) Image processing method, electronic device and storage medium
US9646360B2 (en) Processing digital photographs in response to external applications
JP5766877B2 (en) Frame coding selection based on similarity, visual quality, and interest
WO2020034769A1 (en) Image processing method and apparatus, storage medium, and electronic device
CN109618102B (en) Focusing processing method and device, electronic equipment and storage medium
CN111385484B (en) Information processing method and device
CN112487888B (en) Image acquisition method and device based on target object
WO2017008352A1 (en) Image processing method, image processing device and terminal
CN115086567A (en) Time-delay shooting method and device
CN109120929B (en) Video encoding method, video decoding method, video encoding device, video decoding device, electronic equipment and video encoding system
US10769416B2 (en) Image processing method, electronic device and storage medium
CN110300268A (en) Camera switching method and equipment
CN113157178B (en) Information processing method and device
CN114913471A (en) Image processing method and device and readable storage medium
CN114205650A (en) Three-dimensional panoramic video picture synchronization method and device
CN113992859A (en) Image quality improving method and device
CN113259594A (en) Image processing method and device, computer readable storage medium and terminal
CN112085002A (en) Portrait segmentation method, portrait segmentation device, storage medium and electronic equipment
WO2020074303A1 (en) Determining dynamicity for light effects based on movement in video content
WO2016025485A2 (en) Detection of action frames of a video stream
EP4304188A1 (en) Photographing method and apparatus, medium and chip
CN116980767A (en) Shooting method, shooting device and medium

Legal Events

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

Application publication date: 20210409

WW01 Invention patent application withdrawn after publication