Automobile data recorder video processing method, system and device, medium and vehicle
By configuring the private WIFI frequency band of the car system to be different from the Bluetooth frequency band, and combining hardware and software decoding, the problem of stuck and frequency band interference during the driving recorder video preview process is solved, and the video transmission speed and user experience are improved.
Patent Information
- Application Number
- CN202410610917.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-09-06
AI Technical Summary
Existing driving recorders are prone to problems such as freezing and frequency band interference during the video preview process, resulting in poor video transmission and affecting user experience.
By configuring the private WIFI frequency band of the car system to a different frequency band than the Bluetooth frequency band, hardware decoding and software decoding are performed to avoid frequency band interference, and software decoding and hardware decoding are used when audio and video information is transmitted to reduce lagging.
The driving recorder video transmission speed has been improved, the user experience has been improved, and the lag during video playback has been reduced.
Smart Images

Figure CN118612693A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle control technology, and in particular to a driving recorder video processing method, system, device, storage medium and vehicle. Background Art
[0002] In the related technology, a normal dashcam can record driving and outside-vehicle videos, and can also perform video playback online. When a user's vehicle is involved in an accidental collision or traffic accident, it is necessary to divide the responsibilities and clarify the time of the accident and the accident. The dashcam's video playback function can be used to view the accidental collision or traffic accident scene at the time.
[0003] When the dash cam integrated into the infotainment system of the vehicle's smart cockpit previews the video through the APP corresponding to the dash cam, the decoding method of the entire process is hard decoding. The hard decoding preview rate is relatively fast, which will cause the video stream transmission to be unable to keep up with the hard decoding playback speed, resulting in frame loss on the APP and causing stuttering and flowery screen phenomena. Moreover, since the dash cam and the car system use the car's private WIFI, when the current car's BT and WIFI frequency bands are 2.4GHz, the driver firmware of the car system will have the problem of occasional Bluetooth probabilistic disconnection, and WIFI is only used when the video is playing, so the priority of the driver package Bluetooth is increased. When the user's mobile phone is connected to the car Bluetooth and the dash cam video is previewed at the same time, it will cause mutual interference between the frequency bands, resulting in the preview video of the dash cam being stuck. Therefore, there are still technical problems that need to be solved in the relevant technology. Summary of the invention
[0004] The purpose of the present invention is to solve one of the technical problems existing in the prior art to at least a certain extent.
[0005] To this end, an object of an embodiment of the present invention is to provide a driving recorder video processing method, system, device, storage medium and vehicle, which can reduce the jamming of the preview video of the driving recorder.
[0006] In order to achieve the above-mentioned technical objectives, the technical solution adopted by the embodiment of the present invention includes: a driving recorder video processing method, comprising the following steps: configuring the frequency band of the private WIFI of the vehicle system to be a first frequency band; the first frequency band is different from the Bluetooth frequency band of the vehicle system; obtaining first audio and video information under the first frequency band; the first audio and video information is the audio and video information sent by the driving recorder to the vehicle system through the private WIFI; hardware decoding the first audio and video information to obtain second audio and video information; transmitting the second audio and video information to the software middle layer, so that the software middle layer soft-decodes the second audio and video information to obtain target audio and video information and sends the target audio and video information to the driving recorder application.
[0007] In addition, the method for processing a driving recorder video according to the above embodiment of the present invention may also have the following additional technical features:
[0008] Furthermore, in an embodiment of the present invention, the hardware decoding of the first audio and video information to obtain the second audio and video information includes: format parsing the first audio and video information to obtain parsed third audio and video information; and decoding the third audio and video information to obtain the second audio and video information.
[0009] Further, in the embodiment of the present invention, the decoding of the third audio and video information to obtain the second audio and video information includes:
[0010] Obtaining first timestamp information of a current audio and video frame in the third audio and video information, second timestamp information of a frame before the current audio and video frame, and third timestamp information of a first audio and video frame in the third audio and video information;
[0011] Determine, according to the first timestamp information, the second timestamp information and the third timestamp information, the time interval between each two adjacent frames in the third audio and video information;
[0012] determining an average time interval based on the time interval;
[0013] According to the average time interval, all the audio and video frames in the third audio and video information are decoded to obtain the second audio and video information.
[0014] Further, in the embodiment of the present invention, determining the time interval between each two adjacent frames in the third audio and video information according to the first timestamp information, the second timestamp information, and the third timestamp information includes:
[0015] Determine a first relative time of a current audio or video frame according to the first timestamp information and the third timestamp information;
[0016] Determine a second relative time of a previous frame of the current audio and video frame according to the second timestamp information and the third timestamp information;
[0017] Subtract the first relative time from the second relative time to obtain a first time difference, and use the first time difference as the time interval between the current audio and video frame and the previous frame of the current audio and video frame;
[0018] All audio and video frames in the third audio and video information are traversed and calculated to determine the time interval between each two adjacent frames in the third audio and video information.
[0019] Furthermore, in the embodiment of the present invention, configuring the frequency band of the private WIFI of the vehicle system to be the first frequency band includes: configuring the frequency band of the private WIFI of the vehicle system from 2.4 GHz to 5.0 GHz.
[0020] Further, in an embodiment of the present invention, the software intermediate layer performs soft decoding on the second audio and video information to obtain target audio and video information and sends the target audio and video information to the driving recorder application, including:
[0021] The software middle layer reads compressed audio and video stream information from the second audio and video information;
[0022] The software middle layer decapsulates the compressed audio and video stream information to obtain each audio and video frame;
[0023] The software middle layer decodes each audio and video frame and restores the compressed audio and video stream information to obtain target audio and video information and sends the target audio and video information to the driving recorder application.
[0024] On the other hand, an embodiment of the present invention further provides a driving recorder video processing system, comprising:
[0025] A first processing unit, configured to configure a frequency band of a private WIFI of the vehicle system to be a first frequency band; the first frequency band is different from a Bluetooth frequency band of the vehicle system;
[0026] A second processing unit is used to obtain first audio and video information in the first frequency band; the first audio and video information is the audio and video information sent by the driving recorder to the vehicle system through the private WIFI;
[0027] A third processing unit, configured to perform hardware decoding on the first audio and video information to obtain second audio and video information;
[0028] The fourth processing unit is used to transmit the second audio and video information to the software middle layer, so that the software middle layer soft-decodes the second audio and video information, obtains the target audio and video information, and sends the target audio and video information to the driving recorder application.
[0029] On the other hand, the present invention also provides a driving recorder video processing device, comprising:
[0030] at least one processor;
[0031] at least one memory for storing at least one program;
[0032] When the at least one program is executed by the at least one processor, the at least one processor implements the driving recorder video processing method as described above.
[0033] In addition, the present invention also provides a storage medium, in which processor-executable instructions are stored. When the processor-executable instructions are executed by the processor, they are used to execute the driving recorder video processing method as described above.
[0034] In addition, the present invention also provides a vehicle, comprising the driving recorder video processing system as described above or the driving recorder video processing device as described above.
[0035] The advantages and beneficial effects of the present invention will be partly given in the following description, partly become apparent from the following description, or be understood through the practice of the present invention:
[0036] The present invention can first configure the frequency band of the private WIFI of the vehicle system to be a first frequency band different from the vehicle Bluetooth; in the first frequency band, receive the second audio and video information; the second audio and video information is the audio and video information obtained by the vehicle system performing hardware decoding on the first audio and video information; the first audio and video information is the audio and video information sent to the vehicle system by the driving recorder through the private WIFI; perform software decoding on the second audio and video information to obtain the target audio and video information and send it to the driving recorder application. The present invention can transmit the audio and video information in the first frequency band to avoid the frequency band interference of the vehicle Bluetooth. At the same time, when the audio and video information is transmitted between the driving recorder, the vehicle system and the driving recorder application, software decoding and hardware decoding are used to reduce the jamming phenomenon when the audio and video information is played on the APP application corresponding to the driving recorder. The present invention can improve the video transmission speed of the driving recorder and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a schematic diagram of a specific implementation process of a driving recorder recording video in real time in the related art;
[0038] Figure 2 It is a timing diagram of a driving recorder recording a video in real time in the related art;
[0039] Figure 3 A schematic diagram of the steps of a driving recorder video processing method in a specific embodiment of the present invention;
[0040] Figure 4 A schematic diagram of the steps of performing hardware decoding on the first audio and video information to obtain the second audio and video information in a specific embodiment of the present invention;
[0041] Figure 5 A schematic diagram of the steps of decoding the third audio and video information to obtain the second audio and video information in a specific embodiment of the present invention;
[0042] Figure 6 A schematic diagram of a step of determining the time interval between two adjacent frames in the third audio and video information according to the first timestamp information, the second timestamp information and the third timestamp information in a specific embodiment of the present invention;
[0043] Figure 7 In a specific embodiment of the present invention, the software middle layer performs soft decoding on the second audio and video information to obtain the target audio and video information and sends the target audio and video information to the driving recorder application;
[0044] Figure 8 It is a flow chart of a method for processing a driving recorder video in another specific embodiment of the present invention;
[0045] Fig. 9 It is a timing diagram of a driving recorder recording a video in real time in a specific embodiment of the present invention;
[0046] Fig.10 It is a structural schematic diagram of a driving recorder video processing system in a specific embodiment of the present invention;
[0047] Fig.11 It is a structural schematic diagram of a driving recorder video processing device in a specific embodiment of the present invention. DETAILED DESCRIPTION
[0048] The embodiments of the present invention are described in detail below with reference to the accompanying drawings to explain the principles and processes of the driving recorder video processing method, system, device, storage medium and vehicle in the embodiments of the present invention.
[0049] First, the relevant terms in the present invention are explained:
[0050] DVR: A driving recorder is an instrument that records images, sounds and other related information while a vehicle is driving.
[0051] BT: Bluetooth is called BlueTooth in English, and its abbreviation is "BT". Bluetooth technology is an open global specification for wireless data and voice communications. It is a special short-range wireless technology connection based on low-cost short-range wireless connection to establish a communication environment for fixed and mobile devices.
[0052] SDK: Software Development Kit (SDK) is generally a collection of development tools used by software engineers to build application software for specific software packages, software frameworks, hardware platforms, operating systems, etc.
[0053] RESP protocol: RESP (REdis Serialization Protocol) is a protocol for communication between Redis clients and Redis servers. RESP uses TCP as the underlying connection method, transmits data through TCP, and then parses the corresponding information according to the parsing rules to complete the interaction.
[0054] In the related art, refer to Figure 1 The specific implementation scheme of the video display function of the driving recorder on the vehicle computer is as follows:
[0055] 1. The car system needs to integrate the SDK file of the driving recorder APP to make the driving recorder APP available in the car system.
[0056] 2. The user logs in to the vehicle system interface and binds it to the DVR (digital video recorder) account. Settings related to data security need to be authorized and used by the user to obtain permission to use the driving record function.
[0057] 3. Use the built-in WIFI of the car system to establish a video transmission channel between the car system and the DVR.
[0058] 4. The acquired video transmission signal is imaged and displayed on the interface.
[0059] 5. Store the real-time recorded video in the TF memory card for user playback.
[0060] The above is the specific implementation method of the dashcam to record video in real time. Since the car system uses built-in WIFI, you first need to load the WIFI driver. After loading successfully, start the 2.4G WIFI hotspot process daemon, check the WIFI driver network port communication status, and after confirming that the hotspot management service module can communicate normally, send the set hotspot name and password to the DVR APP, and synchronize the initial values of each diagnostic result with the MCU. The MCU transmits files, videos and pictures to the DVR application through WIFI communication, and responds to the user's hard key execution results through the MCU, and synchronizes the information to the Android application. For the specific timing diagram, please refer to Figure 2 .
[0061] When the DVR is connected to the WIFI signal, the data address and video stream information are requested through the RESP protocol. After receiving the request signal, the DVR will feedback the response address, continuously update and feedback the status signal, and record the data video during the vehicle driving process in real time. Through the DvrplayFragment module, the UI interface is updated in real time. When the user performs a preview operation, the address data is sent through the DvrRecordRepository template. After the HikPreviewPlayer module receives the data request, it is sent to the DVR real-time preview player to play the DVR real-time preview screen.
[0062] The above is a normal process of recording driving and outside vehicle videos with a dashcam, and playing back the videos online. When a user's vehicle is involved in an accidental collision or traffic accident, it is necessary to divide the responsibilities and clarify the time of the accident and the accident. The dashcam's video playback function can be used to view the accidental collision or traffic accident scene at that time.
[0063] When the dash cam integrated into the infotainment system of the vehicle's smart cockpit previews the video through the APP corresponding to the dash cam, the decoding method of the entire process is hard decoding. The hard decoding preview rate is relatively fast, which will cause the video stream transmission to be unable to keep up with the hard decoding playback speed, resulting in frame loss on the APP and causing stuttering and flowery screen phenomena. Moreover, since the dash cam and the car system use the car's private WIFI, when the current car's BT and WIFI frequency bands are 2.4GHz, the driver firmware of the car system will have the problem of occasional Bluetooth probabilistic disconnection, and WIFI is only used when the video is playing, so the priority of the driver package Bluetooth is increased. When the user's mobile phone is connected to the car Bluetooth and the dash cam video is previewed at the same time, it will cause mutual interference between the frequency bands, resulting in the preview video of the dash cam being stuck. Therefore, there are still technical problems that need to be solved in the relevant technology.
[0064] In view of the above technical problems, the present invention can provide a driving recorder video processing method. Figure 3 , Figure 3 Schematic diagram of the steps of the driving recorder video processing method of the present invention. Figure 3 In the processing method, the processing method may include but is not limited to steps S101 to S104.
[0065] S101. Configure the frequency band of the private WIFI of the vehicle system to be a first frequency band; the first frequency band is different from the Bluetooth frequency band of the vehicle system.
[0066] It is understandable that the first frequency band can be any frequency band different from the Bluetooth frequency band of the locomotive system, and the specific value of the first frequency band can be determined according to the needs or experience of the designer. Preferably, the first frequency band of the present application can be 5.0 GHz.
[0067] In some feasible embodiments of the present invention, the processor of the vehicle system can first establish a wired or wireless connection with the internal control system of the private WIFI. Through the control signal transmission between the processor and the chip, the processor can configure the frequency band of the private WIFI of the vehicle system to 5.0GHz; the first frequency band is different from the Bluetooth frequency band of the vehicle system, and the different frequency bands can avoid mutual interference between Bluetooth and private WIFI, which affects the data transmission between the driving recorder and the vehicle system.
[0068] It should be noted that the above-mentioned pre-connection connection method may include a connection between a mobile device and a processing module, and may also include a connection between a processing module and a hardware device, as well as a wired connection between other devices currently known or to be developed in the future and the processing module; and the above-mentioned wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (Ultra Wide Band) connection, and other wireless connection methods currently known or to be developed in the future.
[0069] S102. Acquire first audio and video information in a first frequency band; the first audio and video information is audio and video information sent by the driving recorder to the vehicle system via private WIFI.
[0070] It is understandable that the first audio and video information may be audio and video information sent by the driving recorder to the vehicle system via private WIFI. The first audio and video information is undecoded video information, which may be information encapsulated in a file or in a video stream.
[0071] In some feasible embodiments of the present invention, in the first frequency band, the processor of the vehicle system can establish a connection based on a private WIFI before the driving recorder, and through the private WIFI, the processor can obtain the audio and video information sent by the driving recorder.
[0072] S103: Perform hardware decoding on the first audio and video information to obtain second audio and video information.
[0073] It is understandable that the second audio and video information may be audio and video information decoded by hardware.
[0074] In some feasible embodiments of the present invention, the processor may perform hardware decoding on the first audio and video information to obtain the second audio and video information.
[0075] S104: Transmit the second audio and video information to the software middle layer, so that the software middle layer performs soft decoding on the second audio and video information, obtains target audio and video information, and sends the target audio and video information to the driving recorder application.
[0076] It is understandable that the software middle layer can call the algorithm program to perform soft decoding on the first audio and video, and finally obtain the target audio and video information. The dash cam application can be an APP that can play the dash cam video, which can be a vehicle central control APP, a user mobile phone APP, or an APP corresponding to other mobile devices.
[0077] In some feasible embodiments of the present invention, the processor of the vehicle system can transmit the second audio and video information to the software middle layer, so that the software middle layer soft-decodes the second audio and video information, obtains the target audio and video information, and sends the target audio and video information to the driving recorder application.
[0078] In summary, the present invention can first configure the frequency band of the private WIFI of the vehicle system to be a first frequency band different from the vehicle Bluetooth; in the first frequency band, receive the second audio and video information; the second audio and video information is the audio and video information obtained by the vehicle system performing hardware decoding on the first audio and video information; the first audio and video information is the audio and video information sent to the vehicle system by the driving recorder through the private WIFI; perform software decoding on the second audio and video information to obtain the target audio and video information and send it to the driving recorder application. The present invention can transmit audio and video information in the first frequency band to avoid frequency band interference of the vehicle Bluetooth. At the same time, when the audio and video information is transmitted between the driving recorder, the vehicle system and the driving recorder application, software decoding and hardware decoding are used to reduce the jamming phenomenon when the audio and video information is played on the APP application corresponding to the driving recorder. The present invention can improve the video transmission speed of the driving recorder and improve the user experience.
[0079] Further, refer to Figure 4 , performing hardware decoding on the first audio and video information to obtain the second audio and video information may include steps S201 and S202.
[0080] S201, performing format analysis on the first audio and video information to obtain analyzed third audio and video information;
[0081] S202: Decode the third audio and video information to obtain second audio and video information.
[0082] It can be understood that the third audio and video information can be audio and video information obtained by parsing the first audio and video information, and the third audio and video information can include parameters such as the timestamp and clarity of each frame.
[0083] In some feasible embodiments of the present invention, the vehicle system may first obtain the first audio and video information, then perform format analysis on the first audio and video information to obtain the analyzed third audio and video information, and after the processor analyzes the third audio and video information, perform hardware decoding on the third audio and video information to obtain the second audio and video information.
[0084] Further, refer to Figure 5 , decoding the third audio and video information to obtain the second audio and video information may include steps S301-S304.
[0085] S301, obtaining first timestamp information of a current audio or video frame in the third audio or video information, second timestamp information of a frame before the current audio or video frame, and third timestamp information of a first audio or video frame in the third audio or video information;
[0086] S302, determining the time interval between each two adjacent frames in the third audio and video information according to the first timestamp information, the second timestamp information and the third timestamp information;
[0087] S303, determining an average time interval according to the time interval;
[0088] S304: Decode all audio and video frames in the third audio and video information according to the average time interval to obtain second audio and video information.
[0089] It can be understood that the current audio and video frame can be any frame except the first frame, and the previous frame of the current audio and video frame can be any video frame except the last audio and video frame. Correspondingly, the first timestamp information can be the timestamp information corresponding to the current frame, the second timestamp information can be the timestamp information of the previous frame of the current audio and video frame, and the third timestamp information can be the timestamp information of the first audio and video frame in the third audio and video information.
[0090] In some feasible embodiments of the present invention, the processor of the vehicle system can obtain the first timestamp information of the current audio and video frame in the third audio and video information, the second timestamp information of the previous frame of the current audio and video frame, and the third timestamp information of the first audio and video frame in the third audio and video information. Then, based on the first timestamp information, the second timestamp information and the third timestamp information, the time interval between each adjacent frame in the third audio and video information is determined; then, based on the time interval, the average time interval is determined. Finally, at each average time interval, the processor can decode all audio and video frames in the third audio and video information to obtain the second audio and video information. It should be noted that, after obtaining each time interval, the average value of each time interval can be taken to finally obtain the average time interval.
[0091] Further, refer to Figure 6 The step of determining the time interval between two adjacent frames in the third audio and video information according to the first timestamp information, the second timestamp information and the third timestamp information may include steps S401-S404.
[0092] S401. Determine a first relative time of a current audio or video frame according to first timestamp information and third timestamp information.
[0093] S402: Determine a second relative time of a frame before a current audio or video frame according to the second timestamp information and the third timestamp information.
[0094] S403: Subtract the first relative time from the second relative time to obtain a first time difference, and use the first time difference as the time interval between the current audio and video frame and a frame before the current audio and video frame.
[0095] S404: traverse and calculate all audio and video frames in the third audio and video information, and determine the time interval between each two adjacent frames in the third audio and video information.
[0096] It is understandable that the first relative time may be the time difference between the current audio and video frame and the first audio and video frame, and the second relative time may be the time difference between the previous audio and video frame and the first audio and video frame. The first time difference may be the time difference between two adjacent audio and video frames.
[0097] In some feasible embodiments of the present invention, the processor determines the first relative time of the current audio and video frame based on the first timestamp information and the third timestamp information. Then, the second relative time of the previous frame of the current audio and video frame is determined based on the second timestamp information and the third timestamp information; then, the first relative time and the second relative time are subtracted to obtain the first time difference, and the first time difference is used as the time interval between the current audio and video frame and the previous frame of the current audio and video frame; finally, the first time difference corresponding to all audio and video frames in the third audio and video information is traversed and calculated, and each time difference is used as the time interval between any two adjacent frames. It should be noted that the first frame of audio and video frame can be used as a benchmark, so the time interval corresponding to the first frame can be 0.
[0098] Furthermore, in some feasible embodiments of the present invention, configuring the frequency band of the private WIFI of the vehicle system as the first frequency band includes: configuring the frequency band of the private WIFI of the vehicle system from 2.4 GHz to 5.0 GHz. Specifically, in this embodiment, the frequency band of Bluetooth can be 2.4 GHz, and the frequency band of the private WIFI can be adjusted to 5.0 GHz.
[0099] Further, refer to Figure 7 The software middle layer performs soft decoding on the second audio and video information to obtain the target audio and video information and sends the target audio and video information to the driving recorder application. This step may include steps S501-S503.
[0100] S501. The software middle layer reads compressed audio and video stream information from the second audio and video information.
[0101] S502: The software middle layer decapsulates the compressed audio and video stream information to obtain each audio and video frame.
[0102] S503, the software middle layer decodes each audio and video frame and restores the compressed audio and video stream information to obtain the target audio and video information and send the target audio and video information to the driving recorder application.
[0103] In some feasible embodiments of the present invention, the software middle layer can call a program or perform software decoding processing by calling a space. The specific decoding process is: the software middle layer reads the compressed audio and video stream information from the second audio and video information; the software middle layer decapsulates the compressed audio and video stream information to obtain each audio and video frame; the software middle layer decodes each audio and video frame and restores the compressed audio and video stream information to obtain the target audio and video information to be sent. Finally, the software middle layer can send the obtained target audio and video information to the APP corresponding to the driving recorder.
[0104] The specific implementation principle of the present invention is described below:
[0105] 1. First, the decoding mode of the DVR application preview video on the vehicle side is changed to the soft decoding mode. When the vehicle system bottom system transmits the video stream, it still maintains the hard decoding mode to ensure the overall transmission rate. When playing back the DVR video, the overall CPU performance is consumed more, reducing the performance loss. The hard decoding process includes steps S11-S12.
[0106] S11. parse the format of the first audio and video information to obtain the parsed third audio and video information.
[0107] S12: Decode the third audio and video information to obtain decoded second audio and video information.
[0108] Wherein, step S12 includes sub-steps S121 - S124 .
[0109] S121. Obtain first timestamp information of a current audio or video frame in the third audio or video information, second timestamp information of a frame before the current audio or video frame, and third timestamp information of a first audio or video frame in the third audio or video information.
[0110] S122: Determine the time interval between two adjacent frames in the third audio and video information according to the first timestamp information, the second timestamp information, and the third timestamp information.
[0111] S123. Determine an average time interval according to the time interval.
[0112] S124. Decode all audio and video frames in the third audio and video information at an average time interval to obtain second audio and video information.
[0113] Among them, step S122 may include steps S1221-S1224.
[0114] S1221. Determine a first relative time of a current audio or video frame according to the first timestamp information and the third timestamp information.
[0115] S1222. Determine a second relative time of a previous frame of a current audio or video frame according to the second timestamp information and the third timestamp information.
[0116] S1223. Subtract the first relative time from the second relative time to obtain a first time difference, and use the first time difference as the time interval between the current audio and video frame and the previous frame of the current audio and video frame.
[0117] S1224. Traverse and calculate the time intervals between all current audio and video frames in the third audio and video information and the adjacent previous audio and video frames, and determine the time intervals between each two adjacent frames in the third audio and video information.
[0118] Reference Figure 8, the specific transmission decoding process includes steps a1-a4.
[0119] a1) The DVR application will first check the actual connection status of the DVR device. If it is not connected, it will prompt the user that the device is not connected successfully. If it is connected, the DVR application will update the data and the DVR interface will show that it is connecting.
[0120] a2) The vehicle system will perform hardware decoding on the audio and video stream from the DVR, and then transparently transmit the decoded audio and video stream to the software middle layer. At the same time, the DVR application will request the RTSP video playback address from the DVR API interface. The API will feedback the playback address to the DVR application. The application will update the status according to the playback address and display the video interface.
[0121] a3) The DVR application will set the playback address according to the acquired video address and set the playback controls. The playback controls can be used to implement functions such as video playback and pause.
[0122] a4) After the playback control settings are completed, the playback decoding mode of the video is set to soft decoding through the software middle layer. The specific soft decoding process includes steps b1-b3.
[0123] b1) The software middle layer reads the compressed audio and video stream information from the second audio and video information.
[0124] b2) The software middle layer decapsulates the compressed audio and video stream information to obtain each audio and video frame.
[0125] b3) The software middle layer decodes each audio and video frame and restores the compressed audio and video stream information to obtain the target audio and video information and send the target audio and video information to the driving recorder application, and the driving recorder application previews the video interface through the player.
[0126] 2. Adjust the frequency band of the private WIFI inside the car to the 5G band to distinguish it from the BT band, avoid mutual interference caused by the coexistence of BT and WIFI, increase the frequency band of WIFI, improve the overall video transmission rate, and avoid the occurrence of video freeze. The timing diagram of the transmission process can be referred to Fig. 9 , the transmission process includes c1-c4.
[0127] c1. The Android system of the car computer will first load the WIFI driver. After the driver is loaded successfully, it will notify the DVR application that the driver loading and startup are successful.
[0128] c2. The middle layer of the DVR, namely the application service layer, will perform the communication work of the WIFI driver loading the network port and start the 5G WIFI hotspot daemon. The specific process of setting up 5G mainly includes steps d1-d3.
[0129] d1) First, you need to configure the hostapd.conf file. The hostapd.conf file is mainly responsible for controlling the access and authentication of access devices. It is the daemon process of access devices and authentication servers, and requires channel configuration and frequency band configuration.
[0130] d2) Configure the encryption mode of the WIFI hotspot and select the encryption mode according to specific needs.
[0131] d3) Start the hostapd.conf file and complete the settings for the 5G frequency band.
[0132] c3. The middle layer of the DVR, namely the application service layer, sets the hotspot name and password and sends them to the DVR.
[0133] c4. The user triggers the relevant buttons to transmit the signal through the MCU, and the hotspot management service is used to implement the settings and button responses. The DVR application uses WIFI to preview the DVR video and other functions.
[0134] In summary, the present invention has the following advantages:
[0135] 1) The present invention can first configure the frequency band of the private WIFI of the vehicle system to a first frequency band that is different from the vehicle Bluetooth. In the first frequency band, the processor of the vehicle system receives the second audio and video information. The second audio and video information is the audio and video information obtained by the vehicle system performing hardware decoding on the first audio and video information. The first audio and video information is the audio and video information sent to the vehicle system by the driving recorder through the private WIFI. The second audio and video information is software-decoded, and the processor of the vehicle system obtains the target audio and video information and sends it to the driving recorder application. The present invention can transmit audio and video information in the first frequency band to avoid frequency band interference of the vehicle Bluetooth. At the same time, when the audio and video information is transmitted between the driving recorder, the vehicle system and the driving recorder application, software decoding and hardware decoding are used to reduce the jamming phenomenon when the audio and video information is played on the APP application corresponding to the driving recorder. The present invention can improve the video transmission speed of the driving recorder and improve the user experience.
[0136] In addition, refer to Fig.10 ,and Figure 3Corresponding to the method, an embodiment of the present invention also provides a driving recorder video processing system. The system may include: a first processing unit 1001, a second processing unit 1002, a third processing unit 1003 and a fourth processing unit 1004. The first processing unit 1001 can be used to configure the frequency band of the private WIFI of the vehicle system to the first frequency band; the first frequency band is different from the Bluetooth frequency band of the vehicle system. The second processing unit 1002 can be used to obtain the first audio and video information under the first frequency band; the first audio and video information is the audio and video information sent by the driving recorder to the vehicle system through the private WIFI. The third processing unit 1003 can be used to perform hardware decoding on the first audio and video information to obtain the second audio and video information. The fourth processing unit 1004 can be used to transmit the second audio and video information to the software middle layer, so that the software middle layer performs soft decoding on the second audio and video information, obtains the target audio and video information and sends the target audio and video information to the driving recorder application.
[0137] It should be noted that the acquisition unit can be any integrated circuit unit or microprocessor unit obtained by integrating a chip having a processing function and its peripheral circuits through existing integration technology. The first processing unit and the second processing unit can also be any integrated circuit module or microprocessor module obtained by integrating a chip having a processing function and its peripheral circuits through existing integration technology. The first processing unit and the second processing unit can also include one or more memories. One or more memories can be used to store the specific algorithm for dashcam video processing in the present invention.
[0138] In some embodiments of the present invention, the first processing unit 1001 and the second processing unit 1002 may be arranged in the same device having a processor. The first processing unit 1001 may configure the frequency band of the private WIFI of the vehicle system to the first frequency band through the chip inside its own sensor; the first frequency band is different from the Bluetooth frequency band of the vehicle system. The second processing unit 1002 may obtain the first audio and video information under the first frequency band; the first audio and video information is the audio and video information sent by the driving recorder to the vehicle system through the private WIFI. The third processing unit 1003 may perform hardware decoding on the first audio and video information to obtain the second audio and video information. The fourth processing unit 1004 may transmit the second audio and video information to the software middle layer, so that the software middle layer performs soft decoding on the second audio and video information, obtains the target audio and video information and sends the target audio and video information to the driving recorder application. The first processing unit 1001 may transmit the acquired data to the processor through a wired or wireless connection with the processor of the second processing unit 1002. The specific device connection mode and device configuration between the first processing unit 1001 and the second processing unit 1002, the second processing unit 1002 and the third processing unit 1003, and the third processing unit 1003 and the fourth processing unit 1004 are not limited.
[0139] It should be noted that the contents of the above-mentioned dash cam video processing method embodiment are all applicable to the dash cam video processing system embodiment. The functions specifically implemented by the dash cam video processing system embodiment are the same as those of the above-mentioned dash cam video processing method embodiment, and the beneficial effects achieved are also the same as those achieved by the above-mentioned dash cam video processing method embodiment.
[0140] and Figure 3 Corresponding to the method, the embodiment of the present invention also provides a driving recorder video processing device, and its specific structure can be referred to Fig.11 ,include:
[0141] at least one processor 1011;
[0142] At least one memory 1012, used to store at least one program;
[0143] When the at least one program is executed by the at least one processor, the at least one processor implements the driving recorder video processing method.
[0144] The contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0145] and Figure 3Corresponding to the method, an embodiment of the present invention further provides a computer-readable storage medium, which stores instructions executable by a processor, and the instructions executable by the processor are used to execute the driving recorder video processing method when executed by the processor.
[0146] The contents of the above-mentioned dash cam video processing method embodiment are all applicable to the present storage medium embodiment. The functions specifically implemented by the present storage medium embodiment are the same as those of the above-mentioned dash cam video processing method embodiment, and the beneficial effects achieved are also the same as those achieved by the above-mentioned dash cam video processing method embodiment.
[0147] In addition, the present invention also provides a vehicle, which may include the aforementioned driving recorder video processing device or the aforementioned driving recorder video processing system. Specifically, the vehicle may be a private car, such as a sedan, SUV, MPV or pickup truck. The vehicle may also be an operating vehicle, such as a van, a bus, a small truck or a large trailer. The vehicle may be a gasoline vehicle or a new energy vehicle. When the vehicle is a new energy vehicle, it may be a hybrid vehicle or a pure electric vehicle.
[0148] The contents of the above-mentioned dash cam video processing device or system embodiments are all applicable to the present vehicle embodiments. The functions specifically implemented by the present vehicle embodiments are the same as those of the above-mentioned dash cam video processing device or system embodiments, and the beneficial effects achieved are also the same as those achieved by the above-mentioned dash cam video processing device or system embodiments.
[0149] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.
[0150] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.
[0151] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several programs to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0152] The logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable programs for implementing the logical functions, and may be embodied in any computer-readable medium for use by a program execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch and execute a program from a program execution system, device or apparatus), or in conjunction with such program execution systems, devices or apparatuses. For purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by a program execution system, device or apparatus, or in conjunction with such program execution systems, devices or apparatuses.
[0153] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0154] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable program execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0155] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0156] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
[0157] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A driving recorder video processing method, characterized in that: The following steps are involved: The frequency band of the private WIFI of the vehicle system is configured as a first frequency band; the first frequency band is different from the Bluetooth frequency band of the vehicle system; In the first frequency band, first audio and video information is obtained; the first audio and video information is the audio and video information sent by the driving recorder to the vehicle system through the private WIFI; Performing hardware decoding on the first audio and video information to obtain second audio and video information; The second audio and video information is transmitted to the software middle layer, so that the software middle layer performs soft decoding on the second audio and video information, obtains the target audio and video information, and sends the target audio and video information to the driving recorder application.
2. The driving recorder video processing method according to claim 1, characterized in that: The hardware decoding of the first audio and video information to obtain the second audio and video information includes: Performing format analysis on the first audio and video information to obtain analyzed third audio and video information; The third audio and video information is decoded to obtain second audio and video information.
3. The driving recorder video processing method according to claim 2, characterized in that: The decoding of the third audio and video information to obtain the second audio and video information includes: Obtaining first timestamp information of a current audio and video frame in the third audio and video information, second timestamp information of a frame before the current audio and video frame, and third timestamp information of a first audio and video frame in the third audio and video information; Determine, according to the first timestamp information, the second timestamp information and the third timestamp information, the time interval between each two adjacent frames in the third audio and video information; determining an average time interval based on the time interval; According to the average time interval, all the audio and video frames in the third audio and video information are decoded to obtain the second audio and video information.
4. The driving recorder video processing method according to claim 3, characterized in that: The determining, according to the first timestamp information, the second timestamp information and the third timestamp information, the time interval between two adjacent frames in the third audio and video information includes: Determine a first relative time of a current audio or video frame according to the first timestamp information and the third timestamp information; Determine a second relative time of a previous frame of the current audio and video frame according to the second timestamp information and the third timestamp information; Subtract the first relative time from the second relative time to obtain a first time difference, and use the first time difference as the time interval between the current audio and video frame and a frame before the current audio and video frame; All audio and video frames in the third audio and video information are traversed and calculated to determine the time interval between each two adjacent frames in the third audio and video information.
5. The driving recorder video processing method according to claim 1, characterized in that: Configuring the frequency band of the private WIFI of the vehicle system to the first frequency band includes: configuring the frequency band of the private WIFI of the vehicle system from 2.4 GHz to 5.0 GHz.
6. The driving recorder video processing method according to claim 1, characterized in that: The software middle layer performs soft decoding on the second audio and video information to obtain target audio and video information and sends the target audio and video information to the driving recorder application, including: The software middle layer reads compressed audio and video stream information from the second audio and video information; The software middle layer decapsulates the compressed audio and video stream information to obtain each audio and video frame; The software middle layer decodes each audio and video frame and restores the compressed audio and video stream information to obtain target audio and video information and sends the target audio and video information to the driving recorder application.
7. A driving recorder video processing system, characterized in that: include: A first processing unit, configured to configure a frequency band of a private WIFI of the vehicle system to be a first frequency band; The first frequency band is different from the Bluetooth frequency band of the vehicle system; A second processing unit is used to obtain first audio and video information in the first frequency band; the first audio and video information is the audio and video information sent by the driving recorder to the vehicle system through the private WIFI; A third processing unit, configured to perform hardware decoding on the first audio and video information to obtain second audio and video information; The fourth processing unit is used to transmit the second audio and video information to the software middle layer, so that the software middle layer soft-decodes the second audio and video information, obtains the target audio and video information, and sends the target audio and video information to the driving recorder application.
8. A driving recorder video processing device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the driving recorder video processing method as described in any one of claims 1 to 6.
9. A computer-readable storage medium storing instructions executable by a processor, characterized in that: The processor-executable instructions are used to execute the driving recorder video processing method as described in any one of claims 1 to 6 when executed by the processor.
10. A vehicle, characterized in that: It includes the driving recorder video processing system as claimed in claim 7 or the driving recorder video processing device as claimed in claim 8.
