CN116434377A - Vehicle driving video and audio storage method and device, electronic equipment and storage medium - Google Patents
Vehicle driving video and audio storage method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN116434377A CN116434377A CN202211700444.7A CN202211700444A CN116434377A CN 116434377 A CN116434377 A CN 116434377A CN 202211700444 A CN202211700444 A CN 202211700444A CN 116434377 A CN116434377 A CN 116434377A
- Authority
- CN
- China
- Prior art keywords
- data
- video
- storage
- audio
- stored
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000012545 processing Methods 0.000 claims abstract description 25
- 238000004590 computer program Methods 0.000 claims description 17
- 238000013500 data storage Methods 0.000 claims description 9
- 230000008569 process Effects 0.000 claims description 8
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 3
- 206010039203 Road traffic accident Diseases 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 2
- 239000003990 capacitor Substances 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C5/00—Registering or indicating the working of vehicles
- G07C5/08—Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
- G07C5/0841—Registering performance data
- G07C5/085—Registering performance data using electronic data carriers
- G07C5/0866—Registering performance data using electronic data carriers the electronic data carrier being a digital video recorder in combination with video camera
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/71—Indexing; Data structures therefor; Storage structures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/78—Television signal recording using magnetic recording
- H04N5/781—Television signal recording using magnetic recording on disks or drums
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The embodiment of the invention discloses a vehicle driving video and audio storage method, a device, electronic equipment and a storage medium. The vehicle driving video and audio storage method comprises the following steps: acquiring driving video and audio data to be stored of a preset frame number; the driving video data to be stored comprise driving video data to be stored and/or driving audio data to be stored; performing data encoding processing on the driving video and audio data to be stored to obtain encoded video and audio data; determining a preset storage space of a first storage module to store the encoded video and audio data into the preset storage space; wherein the first memory module is a ferroelectric memory module. The technical scheme of the embodiment of the invention can store the driving video and audio data in time, thereby realizing complete storage of the driving video and audio data.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a vehicle driving video and audio storage method, a device, electronic equipment and a storage medium.
Background
Existing vehicles are typically equipped with a tachograph to record video or audio data during the vehicle's travel. Particularly, when an accident occurs in a vehicle, the accident responsibility can be judged by the behaviors of the vehicle and other vehicles recorded by the automobile data recorder.
Because the memory of the automobile data recorder for storing video data or audio data has low writing speed and limited total writing times, the automobile data recorder can write the data into the memory after every other time. However, if the power supply is abnormal due to an accident, a section of data cannot be written into the memory, so that the data is lost and cannot be retrieved.
In the prior art, in order to prevent the situation that complete data cannot be stored due to disconnection of external power supply of equipment when a vehicle collides, a battery or a Farad capacitor is added in the equipment to supply power to the equipment when the power supply is abnormal, but the battery or the Farad capacitor is possibly damaged in the moment, so that the complete data cannot be stored.
Disclosure of Invention
The embodiment of the invention provides a vehicle driving video and audio storage method, a device, electronic equipment and a storage medium, which can timely store driving video and audio data so as to realize complete storage of the driving video and audio data.
According to an aspect of the present invention, there is provided a vehicle driving video and audio storage method, including:
acquiring driving video and audio data to be stored of a preset frame number; the driving video data to be stored comprise driving video data to be stored and/or driving audio data to be stored;
performing data encoding processing on the driving video and audio data to be stored to obtain encoded video and audio data;
determining a preset storage space of a first storage module to store the encoded video and audio data into the preset storage space; wherein the first memory module is a ferroelectric memory module.
According to another aspect of the present invention, there is provided a vehicle running video and audio storage device, including:
the data acquisition module is used for acquiring the driving video and audio data to be stored of a preset frame number; the driving video data to be stored comprise driving video data to be stored and/or driving audio data to be stored;
the data coding module is used for carrying out data coding processing on the driving video and audio data to be stored to obtain coded video and audio data;
the data storage module is used for determining a preset storage space of the first storage module so as to store the coded video and audio data into the preset storage space; wherein the first memory module is a ferroelectric memory module.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the vehicle driving video storage method according to any embodiment of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute the method for storing a vehicle driving video and audio according to any embodiment of the present invention.
According to the technical scheme, the driving video and audio data to be stored of the preset frame number is obtained, the driving video and audio data to be stored is subjected to data encoding processing to obtain the encoded video and audio data, and the preset storage space of the first storage module is determined, so that the encoded video and audio data are stored in the preset storage space, the problem that the driving video and audio data cannot be stored completely in the prior art is solved, the driving video and audio data can be stored timely, and therefore the complete storage of the driving video and audio data is achieved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for storing video and audio for driving a vehicle according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for storing video and audio during driving of a vehicle according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a vehicle running video and audio storage device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device for implementing the method for storing video and audio on a vehicle according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a vehicle driving video and audio storage method provided in an embodiment of the present invention, where the embodiment is applicable to a situation of timely storing driving video and audio data, the method may be performed by a vehicle driving video and audio storage device, and the device may be implemented in a software and/or hardware manner and may generally be directly integrated in an electronic device for executing the method, where the electronic device may be a terminal device or a server device, and the embodiment of the present invention does not limit a type of the electronic device for executing the vehicle driving video and audio storage method. Specifically, as shown in fig. 1, the vehicle driving video storage method specifically includes the following steps:
s110, acquiring driving video and audio data to be stored of a preset frame number; the driving video data to be stored comprise driving video data to be stored and/or driving audio data to be stored.
The preset frame number may be a preset frame number for acquiring the driving video and audio data to be stored. The driving video data to be stored can be video data in the driving process of the vehicle to be stored. The driving video data to be stored may be video data during driving of the vehicle to be stored. The driving audio data to be stored may be audio data during driving of the vehicle to be stored.
In the embodiment of the invention, the preset frame number of the video data of the driving to be stored is acquired, the preset frame number of the audio data of the driving to be stored is acquired, or the preset frame number of the video data of the driving to be stored and the audio data of the driving to be stored are acquired at the same time.
Exemplary, the method for obtaining the audio-video data of the driving to be stored with the preset frame number may obtain one frame of audio-video data of the driving to be stored, or may obtain multiple frames of audio-video data of the driving to be stored, which is not limited in the embodiment of the present invention.
And S120, carrying out data encoding processing on the driving video and audio data to be stored to obtain encoded video and audio data.
The encoded audio-visual data may be data obtained by encoding the driving audio-visual data to be stored.
In the embodiment of the invention, after the driving video data to be stored with the preset frame number is obtained, the driving video data to be stored can be further subjected to data encoding processing to obtain encoded video data. It can be understood that the data encoding process is performed on the driving video data to be stored, and the data encoding process may be performed on each frame of the driving video data to be stored. That is, if the multi-frame driving video and audio data to be stored is obtained, the multi-frame encoding video and audio data can be obtained.
S130, determining a preset storage space of a first storage module to store the encoded video and audio data into the preset storage space; wherein the first memory module is a ferroelectric memory module.
The first storage module may be a module for storing the driving video and audio data to be stored, for example, may be a ferroelectric storage module. The preset storage space may be a space in the preset first storage module for storing the driving video and audio data to be stored.
In the embodiment of the invention, after the driving video data to be stored is subjected to data encoding processing to obtain the encoded video data, the preset storage space of the first storage module can be further determined so as to store the encoded video data into the preset storage space. It should be noted that, if the preset frame number is multiple frames, the storage space occupied by the encoded audio-visual data of the preset frame number needs to be smaller than the preset storage space of the first storage module. It may be understood that if multi-frame encoded audio-visual data is obtained, the multi-frame encoded audio-visual data may be stored in the preset storage space at the same time, or the frame encoded audio-visual data may be stored in the preset storage space after each frame of encoded audio-visual data is obtained, which is not limited in the embodiment of the present invention.
Note that the ferroelectric memory (FRAM, ferroelectric RAM) is a nonvolatile memory, which combines the advantages of the RAM (Random Access Memory ) and the nonvolatile memory, and has high read-write durability and a fast writing speed. However, since the ferroelectric memory is expensive, if all the video and audio data are stored in the ferroelectric memory, the cost of the tachograph is too high. Therefore, the ferroelectric memory module has smaller preset memory space, i.e. less encoded video and audio data is stored in the ferroelectric memory module.
According to the technical scheme, the driving video data to be stored of the preset frame number is obtained, the driving video data to be stored is subjected to data encoding processing to obtain encoded video data, the preset storage space of the first storage module is determined, so that the encoded video data is stored in the preset storage space, the problem that the driving video data cannot be stored completely in the prior art is solved, the driving video data can be stored timely, and therefore the complete storage of the driving video data is achieved.
Example two
Fig. 2 is a flowchart of a vehicle driving video and audio storage method according to a second embodiment of the present invention, where the foregoing technical solutions are further refined, and various specific alternative implementations are provided after the encoded video and audio data is stored in the preset storage space and the data encoding process is performed on the driving video and audio data to be stored to obtain the encoded video and audio data. The technical solution in this embodiment may be combined with each of the alternatives in one or more embodiments described above. As shown in fig. 2, the method may include the steps of:
s210, acquiring driving video and audio data to be stored of a preset frame number; the driving video data to be stored comprise driving video data to be stored and/or driving audio data to be stored.
Optionally, the data acquisition module of the automobile data recorder may acquire the to-be-stored automobile data, or may acquire the to-be-stored automobile data in any other manner, which is not limited in the embodiment of the present invention.
S220, carrying out data encoding processing on the driving video and audio data to be stored to obtain encoded video and audio data.
Optionally, the data encoding module of the automobile data recorder may perform data encoding processing on the automobile data to be stored, or may perform data encoding processing on the automobile data to be stored in any other way, which is not limited in the embodiment of the present invention.
Optionally, after performing data encoding processing on the driving video and audio data to be stored to obtain encoded video and audio data, the method further includes: acquiring coded video and audio data in a preset time period; storing the coded video and audio data in a preset time period into a second storage module; the second storage module is an external hard disk storage module.
The preset time period may be a preset time period, for example, may be 3 seconds, or may be 5 seconds, which is not limited in the embodiment of the present invention. The second storage module may be another module for storing the driving video and audio data to be stored, for example, may be an external hard disk storage module.
In the embodiment of the invention, after the data encoding processing is performed on the driving video and audio data to be stored to obtain the encoded video and audio data, the encoded video and audio data in the preset time period can be further obtained, so that the encoded video and audio data in the preset time period can be stored in the second storage module. It can be understood that, because the writing times of the external hard disk storage module are limited and the writing speed is slower, when the external hard disk storage module is written, the coded video and audio data in the preset time period can be written once, and more coded video and audio data can be stored in the external hard disk storage module, namely, the video and audio data with a longer time can be stored in the external hard disk storage module for a user to check.
It should be noted that if the number of the obtained encoded audio/video data cannot meet the number of the encoded audio/video data in the preset time period, waiting may be performed until the number of the encoded audio/video data in the preset time period is met. For example, assuming that the preset time period is 3 seconds, and the 1 second encoded audio-visual data includes 25 frames of encoded audio-visual data, the encoded audio-visual data in the preset time period may be 75 frames of encoded audio-visual data, and if 5 frames of encoded audio-visual data are obtained, waiting may be performed until 75 frames of encoded audio-visual data are obtained.
S230, determining a preset storage space of a first storage module, and determining whether an available storage space exists in the preset storage space; if yes, executing S240; otherwise, S250 is performed.
Wherein the available storage space may be available storage space. It is understood that the available storage space may be less than or equal to the preset storage space.
In the embodiment of the invention, after the data encoding processing is performed on the driving video and audio data to be stored to obtain the encoded video and audio data, the preset storage space of the first storage module can be further determined, and whether the available storage space exists in the preset storage space or not is determined. If the available storage space exists in the preset storage space, the target storage position of the coded video and audio data can be determined in the available storage space. If the available storage space does not exist in the preset storage space, the to-be-covered video and audio data in the first storage module can be determined, so that the to-be-covered storage position of the to-be-covered video and audio data is determined to be the target storage position of the coded video and audio data.
Optionally, the duration of the audio-visual permission corresponding to the preset storage space is greater than the duration of the audio-visual permission corresponding to the preset time period.
The audio-visual time allowed to be stored may be an audio-visual time allowed to be stored in a preset storage space, for example, 5 seconds of audio-visual data may be allowed to be stored in the preset storage space, 7 seconds of audio-visual data may be allowed to be stored in the preset storage space, and the embodiment of the invention is not limited in this way. It may be appreciated that the allowable audio-visual duration may be an audio-visual duration stored in the first storage module. The audio-visual duration of the time period may be an audio-visual duration included in a preset time period. It can be understood that the audio-visual duration of the time period can be the audio-visual duration of each writing into the second storage module.
Specifically, the allowable audio-visual storage time length corresponding to the preset storage space is longer than the audio-visual time length of the time period corresponding to the preset time period, that is, the audio-visual time length stored in the first storage module can be longer than the audio-visual time length written into the second storage module each time.
S240, determining a target storage position of the coded video and audio data in the available storage space.
The target storage location may be a storage location of the encoded audio-visual data in the first storage module.
In the embodiment of the invention, after determining that the available storage space exists in the preset storage space, the target storage position of the encoded video and audio data can be further determined in the available storage space. It should be noted that, the embodiment of the present invention does not limit a specific implementation manner of determining the target storage location of the encoded audio-visual data in the available storage space, as long as the determination of the target storage location of the encoded audio-visual data in the available storage space can be achieved.
S250, determining the video and audio data to be covered in the first storage module.
The video data to be covered may be video data to be covered, which is stored in the first storage module. It can be appreciated that when there is no available storage space in the preset storage space, if the encoded audio-visual data is stored in the preset storage space, the stored audio-visual data needs to be covered.
In the embodiment of the invention, after determining that the available storage space does not exist in the preset storage space, the audio-visual data to be covered in the first storage module can be further determined.
Optionally, determining the audio-visual data to be covered in the first storage module may include: determining storage time stamp data of each storage video and audio data in the first storage module; determining target timestamp data in the stored timestamp data; and determining the stored video and audio data corresponding to the target time stamp data as video and audio data to be covered.
The audio-visual data stored in the first storage module can be audio-visual data stored in the first storage module. The stored time stamp data may be stored time stamp data corresponding to the audio-visual data. It will be appreciated that the storage time stamp data may be used to identify the time and order in which the storage of the audiovisual data was stored in the first storage module. The target timestamp data may be a target value in each stored timestamp data, for example, may be timestamp data of an earliest time in each stored timestamp data, which is not limited by the embodiment of the present invention.
Specifically, after determining that the available storage space does not exist in the preset storage space, the storage timestamp data of each storage video data in the first storage module can be further determined to determine the target timestamp data in each storage timestamp data, so that the storage video data corresponding to the target timestamp data is determined to be the video data to be covered.
S260, determining the storage position to be covered of the video and audio data to be covered as the target storage position of the encoded video and audio data.
The storage position to be covered may be a storage position of the audio-visual data to be covered in the first storage module.
In the embodiment of the invention, after the to-be-overlaid video and audio data in the first storage module is determined, the to-be-overlaid storage position of the to-be-overlaid video and audio data can be further determined as the target storage position of the encoded video and audio data.
S270, storing the coded video and audio data to the target storage position.
In the embodiment of the invention, after the target storage position of the encoded video and audio data is determined, the encoded video and audio data can be further stored in the target storage position.
In a specific example of an embodiment of the present invention, the automobile data recorder may include a data acquisition module, a data encoding module, a ferroelectric memory module, and an external hard disk memory module. Specifically, after the data acquisition module acquires data (i.e. to-be-stored driving video and audio data), the data is encoded by the data encoding module, and the encoded data (i.e. the encoded video and audio data) is immediately written into the ferroelectric memory (i.e. the first storage module). Meanwhile, the coded data is cached, and the data cached for 3 seconds (namely, the preset time period) is written into an external hard disk memory (namely, a second storage module) for long-term storage. Specifically, only 5 seconds (i.e. the duration of video and audio is allowed to be stored) of data is reserved in the ferroelectric memory, and after the storage time exceeds 5 seconds, the storage data at the earliest time (i.e. the video and audio data to be covered) is covered and stored, so that the latest 5 seconds of data are stored in the ferroelectric memory. When the encoded data is acquired, the encoded data is immediately written into the ferroelectric memory, and no buffer and no waiting time are needed. It will be appreciated that when a serious traffic accident occurs in the vehicle, longer time data may be obtained in the external hard disk memory and the last 5 seconds of data at the time of the accident may be obtained in the ferroelectric memory.
According to the technical scheme, the problem that key video and audio data are lost when all external power supplies of the automobile data recorder are damaged in an extreme automobile accident is solved, and the fact that the equipment is suddenly powered down can be ensured to store video at the last moment through the mode of storing the data in real time by the ferroelectric memory FRAM is solved.
According to the technical scheme, the driving video and audio data to be stored of the preset frame number are obtained, the driving video and audio data to be stored are subjected to data encoding processing to obtain encoded video and audio data, and the preset storage space of the first storage module is determined to determine whether available storage space exists in the preset storage space. And when the available storage space exists in the preset storage space, determining the target storage position of the coded video and audio data in the available storage space. And when the available storage space is not determined to exist in the preset storage space, determining the to-be-covered video and audio data in the first storage module, so as to determine the to-be-covered storage position of the to-be-covered video and audio data as a target storage position of the coded video and audio data. Therefore, the encoded video and audio data is stored to the target storage position, the problem that the existing vehicle video and audio data cannot be completely stored is solved, the vehicle video and audio data can be timely stored, and the complete storage of the vehicle video and audio data is realized.
Example III
Fig. 3 is a schematic diagram of a vehicle running video and audio storage device according to a third embodiment of the present invention, where, as shown in fig. 3, the device includes: a data acquisition module 310, a data encoding module 320, and a data storage module 330, wherein:
the data acquisition module 310 is configured to acquire a preset number of frames of driving video data to be stored; the driving video data to be stored comprise driving video data to be stored and/or driving audio data to be stored;
the data encoding module 320 is configured to perform data encoding processing on the driving video data to be stored to obtain encoded video data;
the data storage module 330 is configured to determine a preset storage space of the first storage module, so as to store the encoded video data into the preset storage space; wherein the first memory module is a ferroelectric memory module.
According to the technical scheme, the driving video data to be stored of the preset frame number is obtained, the driving video data to be stored is subjected to data encoding processing to obtain encoded video data, the preset storage space of the first storage module is determined, so that the encoded video data is stored in the preset storage space, the problem that the driving video data cannot be stored completely in the prior art is solved, the driving video data can be stored timely, and therefore the complete storage of the driving video data is achieved.
Optionally, the data storage module 330 may be specifically configured to: and determining a target storage position of the coded video and audio data in a preset storage space so as to store the coded video and audio data in the target storage position.
Optionally, the data storage module 330 may be further configured to: under the condition that the available storage space does not exist in the preset storage space, determining audio-visual data to be covered in the first storage module; and determining the storage position to be covered of the video and audio data to be covered as a target storage position of the coded video and audio data.
Optionally, the data storage module 330 may be further configured to: determining storage time stamp data of each storage video and audio data in the first storage module; determining target timestamp data in the stored timestamp data; and determining the stored video and audio data corresponding to the target time stamp data as video and audio data to be covered.
Optionally, the data storage module 330 may be further configured to: and under the condition that the available storage space exists in the preset storage space, determining the target storage position of the coded video and audio data in the available storage space.
Optionally, the data storage module 330 may be further specifically configured to: acquiring coded video and audio data in a preset time period; storing the coded video and audio data in a preset time period into a second storage module; the second storage module is an external hard disk storage module.
Optionally, the duration of the audio-visual permission corresponding to the preset storage space is greater than the duration of the audio-visual permission corresponding to the preset time period.
The vehicle driving video and audio storage device provided by the embodiment of the invention can execute the vehicle driving video and audio storage method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the vehicle drive video storage method.
In some embodiments, the vehicle ride video storage method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more of the steps of the vehicular ride instead of audio/visual storage method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the vehicle ride video storage method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (10)
1. A vehicle driving video and audio storage method is characterized by comprising the following steps:
acquiring driving video and audio data to be stored of a preset frame number; the driving video data to be stored comprise driving video data to be stored and/or driving audio data to be stored;
performing data encoding processing on the driving video and audio data to be stored to obtain encoded video and audio data;
determining a preset storage space of a first storage module to store the encoded video and audio data into the preset storage space; wherein the first memory module is a ferroelectric memory module.
2. The method of claim 1, wherein storing the encoded audiovisual data in the predetermined storage space comprises:
and determining a target storage position of the coded video and audio data in the preset storage space so as to store the coded video and audio data in the target storage position.
3. The method of claim 2, wherein determining the target storage location of the encoded audiovisual data in the preset storage space comprises:
under the condition that the available storage space does not exist in the preset storage space, determining audio-visual data to be covered in the first storage module;
and determining the storage position to be covered of the video and audio data to be covered as a target storage position of the encoded video and audio data.
4. The method of claim 3, wherein the determining the audio-visual data to be overlaid in the first storage module comprises:
determining storage time stamp data of each storage video and audio data in the first storage module;
determining target timestamp data in the stored timestamp data;
and determining the stored video and audio data corresponding to the target timestamp data as the video and audio data to be covered.
5. The method of claim 2, wherein determining the target storage location of the encoded audiovisual data in the preset storage space comprises:
and under the condition that the available storage space exists in the preset storage space, determining the target storage position of the coded video and audio data in the available storage space.
6. The method of claim 1, further comprising, after the data encoding process is performed on the driving video data to be stored to obtain encoded video data:
acquiring the coded video and audio data in a preset time period;
storing the coded video and audio data in the preset time period into a second storage module; the second storage module is an external hard disk storage module.
7. The method of claim 6, wherein the allowable storage audio-visual duration corresponding to the preset storage space is greater than the audio-visual duration corresponding to the preset time period.
8. A vehicle drive video storage device, comprising:
the data acquisition module is used for acquiring the driving video and audio data to be stored of a preset frame number; the driving video data to be stored comprise driving video data to be stored and/or driving audio data to be stored;
the data coding module is used for carrying out data coding processing on the driving video and audio data to be stored to obtain coded video and audio data;
the data storage module is used for determining a preset storage space of the first storage module so as to store the coded video and audio data into the preset storage space; wherein the first memory module is a ferroelectric memory module.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the vehicle ride video and audio storage method of any one of claims 1-7.
10. A computer readable storage medium, wherein the computer readable storage medium stores computer instructions for causing a processor to implement the vehicle ride video and audio storage method of any one of claims 1-7 when executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211700444.7A CN116434377A (en) | 2022-12-28 | 2022-12-28 | Vehicle driving video and audio storage method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211700444.7A CN116434377A (en) | 2022-12-28 | 2022-12-28 | Vehicle driving video and audio storage method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116434377A true CN116434377A (en) | 2023-07-14 |
Family
ID=87087906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211700444.7A Pending CN116434377A (en) | 2022-12-28 | 2022-12-28 | Vehicle driving video and audio storage method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116434377A (en) |
-
2022
- 2022-12-28 CN CN202211700444.7A patent/CN116434377A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN116434377A (en) | Vehicle driving video and audio storage method and device, electronic equipment and storage medium | |
CN109816993B (en) | Method for identifying vehicle rapid acceleration behavior and related equipment | |
CN110932966A (en) | Message processing method and device, computer storage medium and electronic equipment | |
CN116594563A (en) | Distributed storage capacity expansion method and device, electronic equipment and storage medium | |
CN114564149B (en) | Data storage method, device, equipment and storage medium | |
CN112988105A (en) | Playing state control method and device, electronic equipment and storage medium | |
CN113032207A (en) | Application process monitoring method and device, electronic equipment and storage medium | |
CN118155673B (en) | Segmented power-on recovery method and device, computer equipment and readable storage medium | |
CN114640872B (en) | Startup animation display method, device, equipment and medium | |
CN116719621B (en) | Data write-back method, device, equipment and medium for mass tasks | |
CN117033078A (en) | Data backup method, device and computer program product | |
CN117389254A (en) | Vehicle diagnosis method, system and storage medium | |
CN113326888B (en) | Labeling capability information determining method, related device and computer program product | |
CN115982052A (en) | Data processing method | |
CN118196925A (en) | Vehicle state signal processing method, device, equipment and storage medium | |
CN117818698A (en) | Line collineation processing method, device, equipment and electronic equipment | |
CN117194113A (en) | Container snapshot generation method, device, equipment and medium | |
CN118132799A (en) | Video stream storage method, device, network video recording equipment and medium | |
CN114691452A (en) | Memory monitoring method, device, equipment and storage medium | |
KR101663429B1 (en) | Method, apparatus and computer program for managing data storage area | |
CN116881296A (en) | Method, device, equipment and storage medium for monitoring and managing cache data | |
CN116860826A (en) | Data processing method, device, equipment and medium based on time sequence database | |
CN115225556A (en) | Detection method, device, equipment and storage medium | |
CN116193636A (en) | Bluetooth connection fault processing method, device, equipment and medium | |
CN116703963A (en) | AR tracking method and device, AR equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |