CN110248129B - Video recording device and video recording method thereof - Google Patents

Video recording device and video recording method thereof Download PDF

Info

Publication number
CN110248129B
CN110248129B CN201811061481.1A CN201811061481A CN110248129B CN 110248129 B CN110248129 B CN 110248129B CN 201811061481 A CN201811061481 A CN 201811061481A CN 110248129 B CN110248129 B CN 110248129B
Authority
CN
China
Prior art keywords
card
module
processing
place
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811061481.1A
Other languages
Chinese (zh)
Other versions
CN110248129A (en
Inventor
泮建光
许少飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201811061481.1A priority Critical patent/CN110248129B/en
Publication of CN110248129A publication Critical patent/CN110248129A/en
Application granted granted Critical
Publication of CN110248129B publication Critical patent/CN110248129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • 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
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/907Television signal recording using static stores, e.g. storage tubes or semiconductor memories

Landscapes

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

Abstract

The invention relates to the field of video monitoring, in particular to a video recording device and a video recording method thereof. The design ensures that the video recording process is not interrupted due to the replacement of the TF card, and ensures the continuity of the video recording.

Description

Video recording device and video recording method thereof
Technical Field
The invention relates to the field of video monitoring, in particular to a video recording device and a video recording method thereof.
Background
At present, the TF card is widely applied to electronic consumer products such as mobile phones, digital cameras and the like due to the characteristics of small volume and high capacity. At present, the methods for continuous video recording by using the TF card mainly include the following methods:
1. the method adopts the single TF card to carry out circulating video recording, the TF card needs to be ensured to be always on line, and after the TF card is fully recorded, the historical video is covered by the new video, so that the historical video is lost, and the continuity of the video cannot be ensured.
2. Two TF cards are used to continuously replace the video. Because only one position for storing the TF card is arranged in the existing equipment, software can continuously inquire to determine whether the video data stored in the TF card reaches a saturated state or not, when the TF card reaches the saturated state, the TF card is replaced, and the video is interrupted in the process of replacing the TF card.
Therefore, the continuity of the video cannot be effectively ensured no matter the single TF card is used for carrying out the circulating video recording or two TF cards are used for continuously changing the video recording.
Disclosure of Invention
The embodiment of the invention provides a video recording device and a video recording method thereof, which are used for solving the problem that the continuity of video recording cannot be ensured in the prior art.
The embodiment of the invention provides a video recording device, which comprises a processing module, a video acquisition module, an internal storage module, an SD card module and a TF card;
the processing module is connected with the SD card module and is used for sending a command for carrying out in-situ detection on the TF card to the SD card module;
the SD card module is connected with the TF card and used for detecting whether the TF card exists or not after receiving the command sent by the processing module and sending the detection result to the processing module;
the processing module is also connected with the video acquisition module, the TF card and the internal storage module, and is further used for processing and storing the video data acquired by the video acquisition module into the TF card when the TF card is determined to exist, and processing and storing the video data acquired by the video acquisition module into the internal storage module when the TF card is determined not to exist.
Further, the apparatus further comprises: the battery switching device comprises a double-battery switching module and a main battery, wherein a clamping groove for placing a TF card is formed in the bottom end of the main battery, and the TF card is placed in the clamping groove;
the main battery is connected with the processing module, the SD card module and the video acquisition module and supplies power to the processing module, the SD card module and the video acquisition module;
the double-battery switching module is connected with the processing module and the main battery and is used for detecting whether the main battery is in place or not, and sending a detection notice to the processing module when detecting that the main battery is not in place;
and the processing module is used for sending a command for carrying out in-place detection on the TF card to the SD card module after receiving the detection notification.
Further, the apparatus further comprises: an auxiliary battery;
the double-battery switching module is connected with the auxiliary battery and is also used for controlling the auxiliary battery to supply power when the main battery is detected not in place;
the auxiliary battery is connected with the processing module, the SD card module and the video acquisition module and supplies power to the processing module, the SD card module and the video acquisition module.
Further, the dual battery switching module is configured to send a detection notification identifying that the main battery is not in place to the processing module when detecting that the main battery is not in place;
and when the main battery is detected to be in place, not sending a detection notice for identifying that the main battery is not in place to the processing module.
Further, the video acquisition module comprises a camera and a video processing unit;
the camera is connected with the video processing unit and used for collecting video data and transmitting the video data to the video processing unit;
the video processing unit is connected with the processing module and used for processing the received video data and then sending the processed video data to the processing module.
Further, the internal storage module is a multimedia memory card EMMC or FLASH memory.
Further, the processing module is further configured to perform encoding and decoding processing on the received video data, and store the encoded and decoded video data in the TF card or the internal storage module.
The embodiment of the invention provides a video recording method based on the video recording device, which comprises the following steps:
sending a command for carrying out in-place detection on the TF card to the SD card module;
according to the received detection result, when the TF card is determined to exist, the received video data are stored in the TF card after being processed; and when determining that the TF card does not exist, processing the received video data and storing the processed video data in an internal storage module.
Further, before sending the command for performing in-place detection on the TF card to the SD card module, the method further includes:
after receiving a detection notice for identifying that the main battery is not in place, sending a command for carrying out in-place detection on the TF card to the SD card module;
the detection notice for identifying the absence of the main battery is sent by the dual-battery switching module after the absence of the main battery is detected.
Further, the processing and storing the received video data into the TF card comprises: the received video data is stored in the TF card after being coded and decoded;
the step of processing and storing the received video data into the internal storage module comprises: and the received video data is stored in an internal storage module after being coded and decoded.
The embodiment of the invention provides a video recording device and a video recording method thereof, wherein a processing module is connected with an SD card module, so that the processing module can control the SD card module to carry out in-place detection on a TF card, and meanwhile, the processing module is connected with a video acquisition module, the TF card and an internal storage module, so that the processing module can timely and effectively control the TF card or the internal storage module to store video data according to the in-place condition of the TF card. The design ensures that the video recording process is not interrupted due to the replacement of the TF card, and ensures the continuity of the video recording.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic structural diagram of a video recording apparatus according to embodiment 1 of the present invention;
fig. 2 is a schematic structural diagram of a video recording apparatus according to embodiment 2 of the present invention;
fig. 3 is a schematic structural diagram of a video recording apparatus according to embodiment 3 of the present invention;
fig. 4 is a schematic structural diagram of a video capture module in a video recording apparatus according to embodiment 5 of the present invention;
fig. 5 is a flowchart of a video recording method based on the video recording apparatus according to embodiment 8 of the present invention;
fig. 6 is a flowchart of a video recording method based on the video recording apparatus according to embodiment 9 of the present invention.
Detailed Description
In order to provide a device and a method for recording video, which ensure continuous video recording, the preferred embodiments of the present invention are described below with reference to the accompanying drawings, it should be understood that the preferred embodiments described herein are only for illustrating and explaining the present invention, and are not intended to limit the present invention. And the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Example 1:
fig. 1 is a schematic structural diagram of a video recording apparatus according to an embodiment of the present invention, where the video recording apparatus includes: the device comprises a processing module, a video acquisition module, an internal storage module, an SD card module and a TF card;
the processing module is connected with the SD card module and is used for sending a command for carrying out in-situ detection on the TF card to the SD card module;
the SD card module is connected with the TF card and used for detecting whether the TF card exists or not after receiving the command sent by the processing module and sending the detection result to the processing module;
the processing module is also connected with the video acquisition module, the TF card and the internal storage module, and is further used for processing and storing the video data acquired by the video acquisition module into the TF card when the TF card is determined to exist, and processing and storing the video data acquired by the video acquisition module into the internal storage module when the TF card is determined not to exist.
The processing module may be a control chip such as an 8086 chip, a control system such as a control system based on a single chip microcomputer STM32 series, a control processing device such as a CPU, or a corresponding control processing circuit.
The processing module can directly send a command for carrying out in-place detection on the TF card to the SD card module, and can also send a command for carrying out in-place detection on the TF card to the SD card module through other devices or circuits; the command for performing the in-place detection on the TF card may be a simple control signal, such as a high level signal or a low level signal, or a signal with a control instruction for controlling the SD card module to perform the in-place detection on the TF card, or a signal other than a command for controlling the SD card module to perform the in-place detection on the TF card, such as a signal for controlling the SD card module to detect whether the storage space of the TF card is saturated or not. In order to enable the processing module to more efficiently coordinate the storage of the video data by the TF card and the internal storage module, the preferred processing module in the embodiment of the present invention may directly send a control signal for performing in-place detection on the TF card to the SD card module.
The SD card module is not only limited to the detection of the TF card, but also can perform other operations on the TF card, such as reading and writing operations on the TF card. In order to more efficiently store video data, the SD card module preferably performs in-situ detection on the TF card.
The SD card module performs in-place detection on the TF card, and can perform in-place detection on the TF card through a TF card identification unit or a TF card reading and writing unit. The process of performing in-place detection on the TF card belongs to the prior art, and detailed description of a specific detection process is omitted in the embodiment of the present invention.
After the SD card module performs in-place detection on the TF card, it may send a detection result to the processing module through a reply signal, for example, when the TF card is detected to exist, the reply signal is sent back to the processing module, and when the TF card is detected to not exist, the reply signal is not sent back to the processing module; the detection result may also be sent to the processing module by different signals, for example, when detecting that the TF card exists, a high level signal is sent to the processing module, and when detecting that the TF card does not exist, a low level signal is sent to the processing module, or when detecting that the TF card does not exist, a signal carrying the first tag information is sent to the processing module, and when detecting that the TF card does not exist, a signal carrying the second tag information is sent to the processing module.
The video acquisition module can be a camera, other video equipment such as a handheld video recorder, or a combination of the video equipment and the video processing unit. The video acquisition module can directly acquire video data through a camera and can also acquire the video data through other video recording equipment, such as a vehicle event data recorder; in addition, the video acquisition module is not limited to the acquisition of video data, and can perform corresponding processing on the acquired video data, such as encoding and decoding processing and identification screening processing.
When the processing module determines that the TF card exists, the video data collected by the video collecting module may be processed, such as encoded and decoded, and then stored in the TF card, and a module for processing the video data may be disposed in the specific processing module, for example, the video data collected by the video collecting module may be processed by a video encoding and decoding chip, i.e., an MB86H51 chip, and then stored in the TF card. Correspondingly, when the processing module determines that the TF card does not exist, the video data acquired by the video acquisition module can be processed, such as coding and decoding, and then stored in the internal storage module.
The internal memory module is a built-in memory device, such as a semiconductor memory device. The type and the storage space of the storage device are not limited, but in order to ensure the continuity of the video recording, the storage device with large storage space, small volume and stable performance is preferred in the embodiment of the invention.
As shown in fig. 1, the operation principle of a video recording apparatus according to an embodiment of the present invention is as follows:
the processing module sends a command for carrying out in-place detection on the TF card to the SD card module; after receiving the command sent by the processing module, the SD card module detects whether a TF card exists or not and sends a detection result to the processing module; when the processing module determines that the TF card exists, the processing module processes the video data acquired by the video acquisition module and stores the processed video data into the TF card, and when the processing module determines that the TF card does not exist, the processing module processes the video data acquired by the video acquisition module and stores the processed video data into the internal storage module.
In the video recording device provided by the embodiment of the invention, the processing module is connected with the SD card module, the video acquisition module, the TF card and the internal storage module, so that the processing module can timely and effectively control the TF card or the internal storage module to store video data according to the in-place condition of the TF card. The design ensures that the video recording process is not interrupted due to the replacement of the TF card, and ensures the continuity of the video recording.
Example 2:
in order to ensure that unnecessary software consumption and equipment power consumption are reduced in the continuous video recording process, on the basis of the foregoing embodiment, fig. 2 is a schematic structural diagram of a video recording apparatus provided in an embodiment of the present invention, where the video recording apparatus provided in an embodiment of the present invention further includes: the battery switching device comprises a double-battery switching module and a main battery, wherein a clamping groove for placing a TF card is formed in the bottom end of the main battery, and the TF card is placed in the clamping groove;
the main battery is connected with the processing module, the SD card module and the video acquisition module and supplies power to the processing module, the SD card module and the video acquisition module;
the double-battery switching module is connected with the processing module and the main battery and is used for detecting whether the main battery is in place or not, and sending a detection notice to the processing module when detecting that the main battery is not in place;
and the processing module is used for sending a command for carrying out in-place detection on the TF card to the SD card module after receiving the detection notification.
The dual battery switching module may be a control chip such as a single chip, a control processing device such as a microprocessor, or a control circuit such as a 8086 chip-based control circuit.
The main battery is not limited in selection parameters such as model and performance indexes such as battery capacity, and the position of the main battery is not limited, but in order to better supply power to the processing module, the SD card module and the video acquisition module and keep the normal work of the processing module, the SD card module and the video acquisition module, the main battery is matched with the processing module, the SD card module and the video acquisition module.
The TF card can be placed in the card seat or in the card slot, and in order to place the TF card more conveniently, the card slot is preferably used for placing the TF card in the embodiment of the invention.
The clamping groove for placing the TF card can be arranged at the bottom end of the main battery and also can be arranged at other positions. In order to further reduce unnecessary software consumption and equipment power consumption in the process of ensuring continuous video recording, the embodiment of the invention preferably arranges the clamping groove for placing the TF card at the bottom end of the main battery, and places the TF card in the clamping groove, so that the in-place state of the main battery is closely connected with the in-place state of the TF card, namely the in-place state of the TF card can be changed after the in-place state of the main battery is changed. Therefore, whether the main battery is in place or not can be detected firstly, and if the main battery is not in place, the in-place state of the TF card is further detected, so that the aims of further reducing unnecessary software consumption and equipment power consumption are fulfilled.
The dual-battery switching module can detect whether the main battery is in place or not through an interruption or polling mode, and can also detect whether the main battery is in place or not through other modes, for example, the main battery is detected whether the main battery is in place or not through a detection circuit of the main battery combined with the switch tube, namely when the main battery is in place, the switch tube is conducted, and a high-level signal is output to the dual-battery switching module; when the main battery is not in place, the switching tube is cut off, and a low level signal is output to the double-battery switching module. In order to reduce the difficulty of circuit design, it is preferable in the embodiment of the present invention that the dual battery switching module detects whether the main battery is in place by way of interruption or polling.
When the main battery is detected not to be in place, the double-battery switching module sends a signal carrying a detection result to the processing module, and when the main battery is detected to be in place, the double-battery switching module does not send the signal carrying the detection result to the processing module; it should be particularly noted that the manner in which the dual-battery switching module sends the in-place state of the main battery to the processing module is not limited to the manner described above, and other manners may also be used, for example, when it is detected that the main battery is not in place, the dual-battery switching module sends a signal carrying the first detection result to the processing module, and when it is detected that the main battery is in place, the dual-battery switching module sends a signal carrying the second detection result to the processing module.
The signal carrying the detection result in the above step is only one embodiment of the detection notification, and the detection notification is not limited to this, but may also be a signal carrying other information besides the detection result.
After receiving the detection notification, the processing module may send only a command for performing in-place detection on the TF card to the SD card module, or send a signal including other control instructions in addition to the command for performing in-place detection on the TF card to the SD card module. In order to further reduce unnecessary software consumption and equipment power consumption in the video recording process, in the embodiment of the invention, it is preferable that the processing module only sends a command for performing in-place detection on the TF card to the SD card module after receiving the detection notification.
As shown in fig. 2, the operation principle of the video recording apparatus provided by the embodiment of the present invention is as follows:
the main battery supplies power to the processing module, the SD card module and the video acquisition module;
the double-battery switching module detects whether the main battery is in place or not in an interruption or polling mode, and sends a detection notification to the processing module when detecting that the main battery is not in place;
and after receiving the detection notification, the processing module sends a command for carrying out in-place detection on the TF card to the SD card module.
In the video recording apparatus provided in the embodiment of the present invention, the processing module sends a command for performing in-place detection on the TF card to the SD card module after receiving the notification of the detection of whether the main battery is in place by the dual battery switching module. Under the normal condition, the time for changing the in-place state of the main battery is longer than the time for changing the in-place state of the TF card, so that the detection times of the processing module on the TF card are greatly reduced, and unnecessary software consumption and equipment power consumption are further reduced in the continuous video recording process.
Example 3:
in order to ensure that the video recording is not interrupted due to the power failure of the device in the process of continuous video recording. On the basis of the foregoing embodiments, fig. 3 is a schematic structural diagram of a video recording apparatus according to an embodiment of the present invention, where the video recording apparatus according to an embodiment of the present invention further includes: an auxiliary battery;
the double-battery switching module is also connected with the auxiliary battery and is also used for controlling the auxiliary battery to supply power when the main battery is detected not in place;
the auxiliary battery is connected with the processing module, the SD card module and the video acquisition module and supplies power to the processing module, the SD card module and the video acquisition module.
The selection parameters of the auxiliary battery such as the model number, the performance index and the battery capacity are not limited, the position of the auxiliary battery is not limited, but in order to better supply power to the processing module, the SD card module and the video acquisition module and keep the normal work of the processing module, the SD card module and the video acquisition module, the auxiliary battery is matched with the processing module, the SD card module and the video acquisition module.
The process of the double-battery switching module detecting whether the main battery is in place can be to detect whether the main battery is in place by an interruption or polling mode, and can also detect whether the main battery is in place by other modes, for example, the main battery is detected whether the main battery is in place by a detection circuit of the main battery combined with a switch tube, namely when the main battery is in place, the switch tube is conducted, and a high-level signal is output to the double-battery switching module; when the main battery is not in place, the switching tube is cut off, and a low level signal is output to the double-battery switching module. In order to reduce the difficulty of circuit design, it is preferable in the embodiment of the present invention that the dual battery switching module detects whether the main battery is in place by way of interruption or polling.
In the process that the dual-battery switching module detects whether the main battery is in place, if the change of the in-place state of the main battery is detected, namely the in-place state of the main battery is changed into the out-of-place state or the out-of-place state of the main battery is changed into the in-place state, a signal that the in-place state of the main battery is changed can be sent to the processing module, so that the processing module sends a command for performing in-place detection on the TF card to the SD card module, and the SD card module further detects the TF card; if the polling mode is adopted to detect that the in-place state of the main battery is not changed, delaying a set time threshold, detecting whether the main battery is in place or not until the in-place state of the main battery is detected to be changed, and sending a signal that the in-place state of the main battery is changed to the processing module so that the processing module sends a command for carrying out in-place detection on the TF card to the SD card module, and further leading the SD card module to carry out detection on the TF card; if the in-place state of the main battery is detected to be changed in an interruption mode, a signal indicating that the in-place state of the main battery is changed is sent to the processing module, so that the processing module sends a command for carrying out in-place detection on the TF card to the SD card module, and the SD card module further detects the TF card.
When the double-battery switching module detects that the main battery is not in place, the double-battery switching module can only send a signal for controlling the power supply of the auxiliary battery to control the power supply of the auxiliary battery, and can also send a command for controlling the power supply of the auxiliary battery and signals including other control instructions to the auxiliary battery to control the power supply of the auxiliary battery. In order to efficiently control the power supply of the auxiliary battery, the embodiment of the invention preferably includes: and when the double-battery switching module detects that the main battery is not in place, the double-battery switching module controls the auxiliary battery to supply power by only sending a signal for controlling the auxiliary battery to supply power.
The auxiliary battery can supply power to the processing module, the SD card module and the video acquisition module through the voltage conversion device or the voltage conversion circuit. The process of supplying power to the processing module, the SD card module and the video acquisition module by the auxiliary battery belongs to the prior art, and specific power supply process is not described in detail in the embodiment of the present invention.
In addition, when the double-battery switching module detects that the main battery is in place, the main battery is controlled to supply power to the processing module, the SD card module and the video acquisition module, and the principle of the double-battery switching module is the same as that of the auxiliary battery, so that the redundant description is omitted.
As shown in fig. 3, the operation principle of the video recording apparatus according to the embodiment of the present invention is as follows:
when the double-battery switching module detects that the main battery is not in place, the auxiliary battery is controlled to supply power to the processing module, the SD card module and the video acquisition module;
when the double-battery switching module detects that the main battery is in place, the main battery is controlled to supply power to the processing module, the SD card module and the video acquisition module.
In the process that the double-battery switching module detects whether the main battery is in place, if the in-place state of the main battery is detected to be changed, a signal that the in-place state of the main battery is changed is sent to the processing module, so that the processing module sends a command for carrying out in-place detection on the TF card to the SD card module, and the SD card module further detects the TF card; if the polling mode is adopted to detect that the in-place state of the main battery is not changed, delaying a set time threshold, detecting whether the main battery is in place or not until the in-place state of the main battery is detected to be changed, and sending a signal that the in-place state of the main battery is changed to the processing module so that the processing module sends a command for carrying out in-place detection on the TF card to the SD card module, and further leading the SD card module to carry out detection on the TF card; if the in-place state of the main battery is detected to be changed in an interruption mode, a signal indicating that the in-place state of the main battery is changed is sent to the processing module, so that the processing module sends a command for carrying out in-place detection on the TF card to the SD card module, and the SD card module further detects the TF card.
In the video recording apparatus provided by the embodiment of the present invention, the dual battery switching module controls the main battery or the auxiliary battery to supply power according to the detected in-place state of the main battery. The design is such that the video recording is not interrupted by the power-off of the device during the continuous video recording. In addition, when the received signal that the main battery in-place state changes, the processing module sends a command for carrying out in-place detection on the TF card to the SD card module. Therefore, the detection times of the processing module to the TF card are greatly reduced, and unnecessary software consumption and equipment power consumption are further reduced in the continuous video recording process. .
Example 4:
on the basis of the foregoing embodiments, in order to more efficiently send a detection result of whether the main battery is in place to the processing module, an embodiment of the present invention provides a video recording apparatus, where the dual battery switching module is configured to send a detection notification to the processing module when detecting that the main battery is not in place;
and when the main battery is detected to be in place, not sending a detection notice to the processing module.
The detection notification may be a signal for identifying that the main battery is not in place, or may be a signal for carrying other information besides the signal for identifying that the main battery is not in place, such as a signal of remaining battery capacity of the main battery.
There are various ways for the dual battery switching module to transmit the detection notification to the processing module, for example, when the dual battery switching module detects that the main battery is not in place, the dual battery switching module sends the detection notification to the processing module, and when the dual battery switching module detects that the main battery is in place, the dual battery switching module does not send the detection notification to the processing module; or the double-battery switching module sends a first detection notice to the processing module when detecting that the main battery is in place, and sends a second detection notice to the processing module when detecting that the main battery is not in place.
In order to further simplify the control procedure and improve the efficiency, the embodiment of the invention is preferably as follows: the double-battery switching module sends a detection notice for identifying that the main battery is not in place to the processing module when detecting that the main battery is not in place, and does not send the detection notice to the processing module when detecting that the main battery is in place.
The working principle of the video recording device provided by the embodiment of the invention is as follows:
the double-battery switching module sends a detection notice for identifying that the main battery is not in place to the processing module when detecting that the main battery is not in place, and does not send the detection notice to the processing module when detecting that the main battery is in place.
In the video recording device provided by the embodiment of the invention, the double-battery switching module sends the detection notice for identifying the absence of the main battery to the processing module only under the condition of detecting the absence of the main battery, so that the control program is greatly simplified, and the detection result of whether the main battery is in place is sent to the processing module more efficiently.
Example 5:
on the basis of the foregoing embodiments, in order to improve the execution efficiency of the processing module, fig. 4 is a schematic structural diagram of a video acquisition module in a video recording apparatus according to an embodiment of the present invention, where the video acquisition module includes a camera and a video processing unit;
the camera is connected with the video processing unit and used for collecting video data and transmitting the video data to the video processing unit;
the video processing unit is connected with the processing module and used for processing the received video data and then sending the processed video data to the processing module.
After the camera collects the video data, the video data can be transmitted to the video processing unit for processing and then transmitted to the processing module; the video data can also be directly transmitted to a processing module for processing. In order to improve the working efficiency of the processing module, in the embodiment of the invention, after the video data is preferably acquired by the camera, the video data is transmitted to the video processing unit for processing and then transmitted to the processing module.
The video processing unit can be a video processing chip, such as a high compression rate video compression and decompression chip-ADV 611 chip, a video D/A conversion chip-SAA 7121 chip; or a video processing device, such as a video processor; but also a video processing circuit.
The way of processing the received video data by the video processing unit is not limited to performing encoding and decoding processing on the video data, but may be other processing ways, such as performing compression and/or conversion processing on the video data.
The working principle of the video acquisition module in the video recording device provided by the embodiment of the invention is as follows:
the camera acquires video data and transmits the video data to the video processing unit;
and the video processing unit processes the video data and then sends the processed video data to the processing module.
The video acquisition module provided by the embodiment of the invention processes the acquired video data and then sends the processed video data to the processing module, so that the time of processing the video data by the processing module is greatly shortened, and the step of processing the video data by the processing module can be even omitted, and the video data is directly stored. Therefore, the structural design can improve the execution efficiency of the processing module.
Example 6:
on the basis of the foregoing embodiments, in order to meet a higher required storage capacity, an embodiment of the present invention provides a video recording apparatus, wherein the internal storage module is a multimedia memory card EMMC or a FLASH memory.
It should be noted that the internal memory module may be a built-in memory device or a memory card, and the type and the memory capacity of the memory device or the memory card are not limited, such as a DRAM (Dynamic RAM) or a built-in memory chip. In order to meet the higher required storage capacity, the embodiment of the present invention preferably selects an Embedded EMMC (Embedded Multi Media Card) or a FLASH memory.
The preferably built-in EMMC or FLASH memory of the internal storage module provided by the embodiment of the invention can meet the higher required storage capacity, and provides guarantee on the storage capacity for guaranteeing the continuity of the video.
Example 7:
on the basis of the foregoing embodiments, in order to improve the storage efficiency of video data, an embodiment of the present invention provides a video recording apparatus, where the processing module is further configured to perform encoding and decoding processing on received video data, and store the video data after the encoding and decoding processing in a TF card or an internal storage module.
The processing module processes the received video data in a mode not limited to coding and decoding the video data; other processing modes, such as compression processing or transform compression processing after the video data is subjected to coding and decoding processing, are also possible. In order to improve the storage efficiency of the video data, the preferred processing module in the embodiment of the present invention performs encoding and decoding processing on the received video data.
The working principle of the processing module in the video recording device provided by the embodiment of the invention is as follows:
the processing module carries out coding and decoding processing on the received video data and stores the video data subjected to coding and decoding processing into the TF card or the internal storage module.
The processing module in the video recording device provided by the embodiment of the invention carries out coding and decoding processing on the video data and then stores the video data into the TF card or the internal storage module, thereby greatly improving the storage efficiency of the video data.
Example 8:
fig. 5 is a flowchart of a video recording method based on the video recording apparatus according to an embodiment of the present invention. Based on the foregoing embodiments, as shown in fig. 5, an embodiment of the present invention provides a video recording method based on the video recording apparatus, where the method includes the following steps:
s501: sending a command for carrying out in-place detection on the TF card to the SD card module;
s502: according to the received detection result, when the TF card is determined to exist, the received video data are stored in the TF card after being processed;
s503: and when determining that the TF card does not exist, processing the received video data and storing the processed video data in an internal storage module.
Preferably, step S502 includes: the received video data is stored in the TF card after being coded and decoded;
preferably, step S503 includes: and the received video data is stored in an internal storage module after being coded and decoded.
The method provided in the embodiment of the present invention is executed by a corresponding module or unit in a video recording apparatus provided in one of embodiments 1 to 7, and the implementation principle, the function use, the effect, and the like of the method are similar to those of the corresponding implementation processes in embodiments 1 to 7, and are not described herein again.
Example 9:
on the basis of the above embodiments, the embodiments of the present invention provide a video recording method based on a video recording apparatus. In order to further reduce unnecessary software consumption and device consumption, based on the method of embodiment 8, before step S501, the method further includes:
after receiving a detection notice for identifying that the main battery is not in place, sending a command for carrying out in-place detection on the TF card to the SD card module;
the detection notice for identifying the absence of the main battery is sent by the dual-battery switching module after the absence of the main battery is detected.
Fig. 6 is a video recording method based on the video recording apparatus according to an embodiment of the present invention, which includes the following specific steps:
s601: and carrying out in-situ detection on the TF card.
After the video recording device is started, the TF card also needs to be detected in place, and the specific in-place detection step comprises the following steps: the processing module sends a command for carrying out in-place detection on the TF card to the SD card module; after receiving the command, the SD card module detects whether a TF card exists or not and sends a detection result to the processing module.
S602: and the processing module judges whether the TF card exists according to the received detection result.
S603: if the TF card exists, the video data is stored to the TF card.
And when the processing module determines that the TF card exists, the processing module encodes and decodes the video data acquired by the video acquisition module and stores the encoded and decoded video data into the TF card.
S604: and if the TF card does not exist, storing the video data into an internal storage module.
And when the processing module determines that the TF card does not exist, the processing module encodes and decodes the video data acquired by the video acquisition module and stores the encoded and decoded video data into the internal storage module.
After step S603 or step S604 is executed, step S605 is executed.
S605: delaying for an N threshold time.
In order to ensure continuous recording, in the embodiment of the present invention, the detection may be performed according to a set period, and a specific period may be preset, for example, the period may be a duration N.
Therefore, when the processing module delays for N threshold time, the subsequent operation is carried out.
S606: the processing module judges whether the in-place state of the main battery is changed.
The processing module judges whether the in-place state of the main battery is changed or not according to whether a signal that the in-place state of the main battery is changed is received or not, wherein the signal that the in-place state of the main battery is changed is sent after the double-battery switching module detects that the in-place state of the main battery is changed.
If the main battery in-place state changes, the process returns to step S601, that is, if the processing module receives a signal that the main battery in-place state changes, the processing module determines that the main battery in-place state changes, and returns to step S601.
If the main battery in-place state is not changed, the process returns to step S605, that is, if the processing module does not receive a signal that the main battery in-place state is changed, the processing module determines that the main battery in-place state is not changed, and returns to step S605.
For the system/apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points. It is to be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or operation from another entity or operation without necessarily requiring or implying any actual such relationship or order between such entities or operations.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely application embodiment, or an embodiment combining application and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and variations of this invention provided they come within the scope of the appended claims and their equivalents.

Claims (8)

1. A video recording device is characterized by comprising a processing module, a video acquisition module, an internal storage module, an SD card module and a TF card;
the processing module is connected with the SD card module and is used for sending a command for carrying out in-situ detection on the TF card to the SD card module;
the SD card module is connected with the TF card and used for detecting whether the TF card exists or not after receiving the command sent by the processing module and sending the detection result to the processing module;
the processing module is also connected with the video acquisition module, the TF card and the internal storage module, and is also used for processing and storing the video data acquired by the video acquisition module into the TF card when the TF card is determined to exist, and processing and storing the video data acquired by the video acquisition module into the internal storage module when the TF card is determined not to exist;
wherein the apparatus further comprises: the battery switching device comprises a double-battery switching module and a main battery, wherein a clamping groove for placing a TF card is formed in the bottom end of the main battery, and the TF card is placed in the clamping groove;
the main battery is connected with the processing module, the SD card module and the video acquisition module and supplies power to the processing module, the SD card module and the video acquisition module;
the double-battery switching module is connected with the processing module and the main battery and is used for detecting whether the main battery is in place or not, and sending a detection notice to the processing module when detecting that the main battery is not in place;
and the processing module is used for sending a command for carrying out in-place detection on the TF card to the SD card module after receiving the detection notice.
2. The apparatus of claim 1, further comprising: an auxiliary battery;
the double-battery switching module is connected with the auxiliary battery and is also used for controlling the auxiliary battery to supply power when the main battery is detected not in place;
the auxiliary battery is connected with the processing module, the SD card module and the video acquisition module and supplies power to the processing module, the SD card module and the video acquisition module.
3. The apparatus according to claim 2, wherein the dual battery switching module is configured to send a detection notification identifying that the main battery is not in place to the processing module when detecting that the main battery is not in place;
and when the main battery is detected to be in place, not sending a detection notice for identifying that the main battery is not in place to the processing module.
4. The apparatus of claim 1, wherein the video capture module comprises a camera and a video processing unit;
the camera is connected with the video processing unit and used for collecting video data and transmitting the video data to the video processing unit;
the video processing unit is connected with the processing module and used for processing the received video data and then sending the processed video data to the processing module.
5. The device of claim 1, wherein the internal storage module is a multimedia memory card EMMC or FLASH memory.
6. The apparatus according to claim 1, wherein the processing module is further configured to perform coding and decoding processing on the received video data, and store the coded and decoded video data in the TF card or the internal storage module.
7. A video recording method based on the video recording apparatus as claimed in any one of claims 1 to 6, wherein the method comprises the steps of:
sending a command for carrying out in-place detection on the TF card to the SD card module;
according to the received detection result, when the TF card is determined to exist, the received video data are stored in the TF card after being processed; when determining that no TF card exists, processing the received video data and storing the processed video data into an internal storage module;
before sending a command for performing in-place detection on the TF card to the SD card module, the method further comprises the following steps:
after receiving a detection notice for identifying that the main battery is not in place, sending a command for carrying out in-place detection on the TF card to the SD card module;
the detection notice for identifying the absence of the main battery is sent by the dual-battery switching module after the absence of the main battery is detected.
8. The method according to claim 7, wherein the processing and storing the received video data into the TF card comprises: the received video data is stored in the TF card after being coded and decoded;
the step of processing and storing the received video data into the internal storage module comprises: and the received video data is stored in an internal storage module after being coded and decoded.
CN201811061481.1A 2018-09-12 2018-09-12 Video recording device and video recording method thereof Active CN110248129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811061481.1A CN110248129B (en) 2018-09-12 2018-09-12 Video recording device and video recording method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811061481.1A CN110248129B (en) 2018-09-12 2018-09-12 Video recording device and video recording method thereof

Publications (2)

Publication Number Publication Date
CN110248129A CN110248129A (en) 2019-09-17
CN110248129B true CN110248129B (en) 2022-07-08

Family

ID=67882842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811061481.1A Active CN110248129B (en) 2018-09-12 2018-09-12 Video recording device and video recording method thereof

Country Status (1)

Country Link
CN (1) CN110248129B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061677B (en) * 2019-12-26 2023-01-24 杭州迪普科技股份有限公司 FPGA configuration method and device and FPGA device
CN113033316A (en) * 2021-03-01 2021-06-25 湖南长海现代实验室设备有限公司 Device and method for detecting and controlling show window state of fume hood

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006042115A (en) * 2004-07-29 2006-02-09 Victor Co Of Japan Ltd Video camera
CN201682576U (en) * 2010-04-14 2010-12-22 东莞福泽尔电子科技有限公司 Vehicle-mounted digital video recorder
CN103617008A (en) * 2013-12-11 2014-03-05 成都亿盟恒信科技有限公司 Double-SD-card multimedia file storage system and method for vehicle-mounted video monitoring terminal
CN205901898U (en) * 2016-08-08 2017-01-18 深圳市巨龙创视科技有限公司 HD IP camera of two storage cards in area
CN207424958U (en) * 2017-10-20 2018-05-29 盯盯拍(深圳)技术股份有限公司 Automobile data recorder

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8385171B2 (en) * 2007-11-09 2013-02-26 Canon Kabushiki Kaisha Information recording apparatus, and control method therefor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006042115A (en) * 2004-07-29 2006-02-09 Victor Co Of Japan Ltd Video camera
CN201682576U (en) * 2010-04-14 2010-12-22 东莞福泽尔电子科技有限公司 Vehicle-mounted digital video recorder
CN103617008A (en) * 2013-12-11 2014-03-05 成都亿盟恒信科技有限公司 Double-SD-card multimedia file storage system and method for vehicle-mounted video monitoring terminal
CN205901898U (en) * 2016-08-08 2017-01-18 深圳市巨龙创视科技有限公司 HD IP camera of two storage cards in area
CN207424958U (en) * 2017-10-20 2018-05-29 盯盯拍(深圳)技术股份有限公司 Automobile data recorder

Also Published As

Publication number Publication date
CN110248129A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN108345524B (en) Application program monitoring method and application program monitoring device
US10248627B2 (en) Method for storing image of vehicle black box
CN110248129B (en) Video recording device and video recording method thereof
KR20180064198A (en) Data storage device and operating method thereof
RU2010102951A (en) IMAGE CODING DEVICE, IMAGE CODING METHOD, IMAGE DECODING DEVICE, IMAGE DECODING METHOD, PROGRAM AND MEMORY STORAGE
US20110122260A1 (en) Camera module
US10687066B2 (en) Low power-consuming encoding method, and apparatus
US20150036012A1 (en) Automatic image-capturing system
CN103823727B (en) A kind of backup method of live recording and device
US20110068896A1 (en) Communication device and method for sending a quick reply message
KR102108374B1 (en) Stroage system and method for analyzing non-signal thereof
CN112840663B (en) Video encoding method, video encoding device, electronic equipment and storage medium
CN113691722B (en) Control method and device and electronic equipment
US10008288B2 (en) Power loss test device and method for nonvolatile memory device
CN105700656B (en) Standby abnormal power consumption detection system and method
CN114554179B (en) Automatic shooting method, system, terminal and storage medium based on target model
US8478113B2 (en) Video server
US20150002666A1 (en) Apparatus for monitoring an image with low power
CN108960384A (en) A kind of coding/decoding method and client of graphic code
CN116610648A (en) Log storage method and device, electronic equipment and storage medium
JP5807495B2 (en) Communication data logger device
US9693314B2 (en) Power consumption detection system and method for electronic device
US9542974B2 (en) Video management system and method for event recording using the same
US9298673B2 (en) Electronic device and information processing method
US11243719B2 (en) Wireless communication enabled storage device and control method therefor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant