Method, device, electronic equipment and medium for reversing vehicle-mounted video

By receiving video replay instructions on the vehicle-mounted terminal and extracting video index information, reversely processing key frames, and generating replay video information, the problem of the vehicle-mounted terminal not supporting replay is solved, improving user experience and reducing computing burden.

CN114650452BActive Publication Date: 2024-09-24BEIJING ZHONGJIAOXING ROAD INTERNET OF VEHICLES TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210193290.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-09-24
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

Existing vehicle-mounted terminals do not support rewinding vehicle videos, resulting in a reduced user viewing experience.

Method used

By receiving video replay instructions, it extracts video index information in a preset time range, reversely extracts and processes key frames in the video storage area, generates replay video information, discards non-key frames, and reduces the transmission of unnecessary video frames.

Benefits of technology

The replay function of in-vehicle videos is realized, which improves the user’s viewing experience and reduces the computing burden of the in-vehicle terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114650452B
    Figure CN114650452B
Patent Text Reader

Abstract

The present application discloses a method, device, electronic device and medium for reversing in-vehicle video. By applying the technical solution of the present application, after obtaining a video reversal instruction, the corresponding key frame information can be retrieved from the storage area according to the video start and end time periods marked by the video reversal instruction, so that the corresponding reversal video information can be generated in the subsequent manner by discarding non-key frames and only processing key frames. This can not only avoid the problem of reduced user viewing experience caused by the existing in-vehicle terminal not supporting the reversal of in-vehicle video, but also reduce the purpose of increasing the computing burden of the in-vehicle terminal caused by the transmission of unnecessary video frames.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to data processing technology, and in particular to a method, device, electronic equipment and medium for reversing vehicle-mounted video. Background Art

[0002] With the development of the automobile industry, more and more vehicles are using vehicle terminals to provide various convenient services and entertainment for the vehicle. One of the ways is to play the vehicle video files stored in the memory of the vehicle terminal, so that users can check the road conditions or deal with accidents.

[0003] For example, when playing in-vehicle video files using an in-vehicle terminal, since the road conditions captured by the in-vehicle terminal are ever-changing, users may need multiple playback scenarios, such as forward playback of in-vehicle videos, reverse playback of in-vehicle videos, etc. However, most existing in-vehicle terminals do not support reverse playback of in-vehicle videos, which also reduces the user's viewing experience. Summary of the invention

[0004] The embodiments of the present application provide a method, device, electronic device and medium for reversing vehicle-mounted videos, so as to solve the problem in the related art that the existing vehicle-mounted terminals do not support reversing vehicle-mounted videos, which reduces the user viewing experience.

[0005] According to one aspect of an embodiment of the present application, a method for reversing an in-vehicle video is provided, comprising:

[0006] Receiving a video reversal instruction for a target video, wherein the video reversal instruction is used to reversely display video information in the target video within a preset time range;

[0007] Extracting the video index information carried in the video reversal instruction and marked with the starting time point and the ending time point of the preset time range;

[0008] Based on the video index information, extracting all key frames between the starting time point and the ending time point of the target video from the video storage area;

[0009] Based on the key frames, reverse video information is generated.

[0010] Optionally, in another embodiment of the method of the present application, before receiving the video reversal instruction for the target video, the method further includes:

[0011] Collecting original video data through a camera device, and collecting original audio data through an audio device;

[0012] Sending the original video data to a video encoder for encoding and compression to obtain video data; and sending the original audio data to an audio encoder for encoding and compression to obtain audio data;

[0013] Based on the video data and the audio data, index information of the target video is established, wherein the index information includes a frame type, a timestamp, a frame size, and a corresponding storage location corresponding to each video frame in the video data.

[0014] Optionally, in another embodiment of the method of the present application, the step of establishing the index information of the target video based on the video data and the audio data includes:

[0015] Screening out non-key frames in the video data;

[0016] Based on the video data after filtering out non-key frames and the corresponding audio data, index information of the target video is established.

[0017] Optionally, in another embodiment of the method of the present application, extracting all key frames between the start time point and the end time point of the target video from the video storage area based on the video index information includes:

[0018] Based on the video index information, determining the starting time point and the ending time point of the target video;

[0019] Extracting all video frames between the starting time point and the ending time point from the video storage area in reverse order;

[0020] If it is detected that all the video frames include non-key frames, the non-key frames are screened out to obtain all key frames between the start time point and the end time point of the target video.

[0021] Optionally, in another embodiment of the above method of the present application, after extracting all key frames between the starting time point and the ending time point of the target video from the video storage area, the method further includes:

[0022] The audio data corresponding to each key frame is extracted from the video storage area, and the key frame and the corresponding audio data are sent to the video server.

[0023] Optionally, in another embodiment of the above method of the present application, after extracting all key frames between the starting time point and the ending time point of the target video from the video storage area, the method further includes:

[0024] Unpacking all the key frames using the JT1078 protocol to obtain initial reverse video information;

[0025] The audio data corresponding to each key frame is extracted from the video storage area, and the reverse video information is generated based on the initial reverse video information and the corresponding audio and video frames.

[0026] Optionally, in another embodiment of the method of the present application, after receiving the video reversal instruction for the target video, the method further includes:

[0027] If it is determined that the current time is a peak period for business processing, the video index information marked with the start time point and the end time point of the preset time range and carried in the video rewind instruction is extracted.

[0028] According to another aspect of the embodiment of the present application, a vehicle-mounted video reversal device is provided, comprising:

[0029] A receiving module is configured to receive a video reversal instruction for a target video, wherein the video reversal instruction is used to reversely display video information in the target video within a preset time range;

[0030] An extraction module is configured to extract the video index information marked with the starting time point and the ending time point of the preset time range carried in the video reversal instruction;

[0031] The extraction module is configured to extract all key frames between the starting time point and the ending time point of the target video from the video storage area based on the video index information;

[0032] The generating module is configured to generate reverse video information based on the key frames.

[0033] According to another aspect of the embodiments of the present application, an electronic device is provided, including:

[0034] A memory for storing executable instructions; and

[0035] The display is used to execute the executable instructions together with the memory to complete the operation of any of the above-mentioned methods for reversing the in-vehicle video.

[0036] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided for storing computer-readable instructions, and when the instructions are executed, the operations of any of the above-mentioned methods for reversing the in-vehicle video are performed.

[0037] In the present application, a video rewind instruction for a target video can be received, and the video rewind instruction is used to reversely display the video information in the target video that is within a preset time range; extract the video index information marked with the start time point and the end time point of the preset time range carried in the video rewind instruction; based on the video index information, extract all key frames between the start time point and the end time point of the target video from the video storage area; based on the key frames, generate the rewind video information. By applying the technical solution of the present application, after obtaining the video rewind instruction, the corresponding key frame information can be retrieved from the storage area according to the video start and end time period marked by the video rewind instruction, so that the corresponding rewind video information can be generated in the subsequent manner by discarding non-key frames and only processing key frames. Thereby, not only can the problem of reducing the user viewing experience caused by the existing vehicle-mounted terminal not supporting the rewind of vehicle-mounted videos be avoided, but also the purpose of increasing the computing burden of the vehicle-mounted terminal caused by the transmission of unnecessary video frames can be reduced.

[0038] The technical solution of the present application is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present application and, together with the description, serve to explain the principles of the present application.

[0040] The present application can be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:

[0041] Figure 1 A schematic diagram of a method for reversing an in-vehicle video proposed in this application;

[0042] Figure 2 A flowchart of a method for reversing an in-vehicle video proposed in this application;

[0043] Figure 3 This is a structural schematic diagram of an electronic device for reversing vehicle-mounted video proposed in this application;

[0044] Figure 4 This is a schematic structural diagram of an in-vehicle video reverse playback electronic device proposed in this application. DETAILED DESCRIPTION

[0045] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present application.

[0046] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0047] The following description of at least one exemplary embodiment is merely illustrative in nature and is not intended to limit the present application, its application, or uses.

[0048] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.

[0049] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0050] In addition, the technical solutions between the various embodiments of the present application can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0051] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0052] Combine the following Figure 1-Figure 2 To describe the method for reversing the in-vehicle video according to the exemplary embodiment of the present application. It should be noted that the following application scenarios are only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not limited in this regard. On the contrary, the implementation of the present application can be applied to any applicable scenario.

[0053] The present application also proposes a method, device, electronic equipment and medium for reverse broadcasting of vehicle-mounted video.

[0054] Figure 1 The flowchart of a method for reversing a vehicle-mounted video according to an embodiment of the present application is schematically shown. Figure 1 As shown, the method is applied to a vehicle-mounted terminal, comprising:

[0055] S101, receiving a video rewind instruction for a target video, where the video rewind instruction is used to rewind and display video information in the target video within a preset time range.

[0056] S102: extracting video index information carried in the video rewind instruction and marked with a start time point and an end time point of a preset time range.

[0057] S103, based on the video index information, extracting the starting time point of the target video and all key frames between the ending time point from the video storage area.

[0058] S104, generating reverse video information based on the key frames.

[0059] Furthermore, with the development of the automobile industry, more and more vehicles are using vehicle terminals to provide various convenient services and entertainment for the vehicle. One of the ways is to play the vehicle video files stored in the memory of the vehicle terminal, so as to facilitate users to check the road conditions or deal with accidents.

[0060] For example, when playing in-vehicle video files using an in-vehicle terminal, since the road conditions captured by the in-vehicle terminal are ever-changing, users may need multiple playback scenarios, such as forward playback of in-vehicle videos, reverse playback of in-vehicle videos, etc. However, most existing in-vehicle terminals do not support reverse playback of in-vehicle videos, which also reduces the user's viewing experience.

[0061] Furthermore, in order to solve the above-mentioned problems, the present application proposes a method for reversing an in-vehicle video applied to an in-vehicle terminal, wherein the video data captured by the in-vehicle terminal using a camera device needs to be stored first, including:

[0062] Step 1: Optionally, in order to prevent the video data from generating disk fragments, the vehicle terminal generates a file block for storing the video data by pre-allocating files;

[0063] Step 2: The vehicle terminal collects original video data from the camera device; and collects original audio PCM data from the microphone;

[0064] Step 3: Send the original video data to the video encoder for encoding and compression to obtain video data. Also, send the original audio data to the audio encoder for encoding and compression to obtain audio data;

[0065] Step 4: Send the encoded audio and video data to the video module; and write each frame of audio and video data into the file block;

[0066] Step 5: Write the index information of each video frame in the video data into a preset storage area (eg, a sqlite database), the index information including: the frame type, timestamp, audio data, and storage area location corresponding to each video frame.

[0067] Furthermore, when the vehicle terminal subsequently receives a video reversal instruction for the target video, the following steps may be performed:

[0068] Step a: extracting video index information marked with a start time point and an end time point of a preset time range carried in the video reversal instruction;

[0069] Step b: extracting all video frames between the start time point and the end time point from the video storage area in reverse order.

[0070] In one method, the forward or reverse playback of the video can be controlled by a bidirectional linked list. For example, traversing the index information from the head to the tail of the linked list is forward playback, and traversing the index information from the tail to the head of the linked list is reverse playback.

[0071] Step c: When playing in reverse, only the key frames between the starting points are obtained from the video storage area, and non-key frames such as P frames and B frames are discarded. The current playback position is recorded every time a frame is played.

[0072] For example, if the target video duration is 1 hour, and the video reversal instruction is used to reversely display the video information of the first 1 minute of the target video duration of 1 hour, then it is only necessary to extract all the key frames between the 0th second and the 60th second in the video information in reverse order. That is, all the non-key frames between the 0th second and the 60th second are extracted unchanged or discarded after extraction.

[0073] Step d: Reading the audio and video data corresponding to each key frame from the video storage area according to the video index information;

[0074] Step e: Send all key frame data to the JT1078 protocol packaging module to obtain the initial reverse video information;

[0075] Step f: synthesize the audio data with the initial reverse video information to generate the reverse video information. Or execute step g.

[0076] Step g: The vehicle terminal sends the key frame and its corresponding audio data to the video server;

[0077] Step h: The video server converts the JT1078 protocol into a common live broadcast protocol. Common live broadcast protocols include RTMP, HLS, HTTP+FLV, and Websocket+FLV.

[0078] Step i: The client player pulls streaming media data from the video server for playback.

[0079] In the present application, a video rewind instruction for a target video can be received, and the video rewind instruction is used to reversely display the video information in the target video that is within a preset time range; extract the video index information marked with the start time point and the end time point of the preset time range carried in the video rewind instruction; based on the video index information, extract all key frames between the start time point and the end time point of the target video from the video storage area; based on the key frames, generate the rewind video information. By applying the technical solution of the present application, after obtaining the video rewind instruction, the corresponding key frame information can be retrieved from the storage area according to the video start and end time period marked by the video rewind instruction, so that the corresponding rewind video information can be generated in the subsequent manner by discarding non-key frames and only processing key frames. Thereby, not only can the problem of reducing the user viewing experience caused by the existing vehicle-mounted terminal not supporting the rewind of vehicle-mounted videos be avoided, but also the purpose of increasing the computing burden of the vehicle-mounted terminal caused by the transmission of unnecessary video frames can be reduced.

[0080] Optionally, in another embodiment of the method of the present application, before receiving the video reversal instruction for the target video, the method further includes:

[0081] Collecting original video data through a camera device, and collecting original audio data through an audio device;

[0082] Sending the original video data to a video encoder for encoding and compression to obtain video data; and sending the original audio data to an audio encoder for encoding and compression to obtain audio data;

[0083] Based on the video data and the audio data, index information of the target video is established, wherein the index information includes a frame type, a timestamp, a frame size, and a corresponding storage location corresponding to each video frame in the video data.

[0084] Optionally, in another embodiment of the method of the present application, the step of establishing the index information of the target video based on the video data and the audio data includes:

[0085] Screening out non-key frames in the video data;

[0086] Based on the video data after filtering out non-key frames and the corresponding audio data, index information of the target video is established.

[0087] Optionally, in another embodiment of the method of the present application, extracting all key frames between the start time point and the end time point of the target video from the video storage area based on the video index information includes:

[0088] Based on the video index information, determining the starting time point and the ending time point of the target video;

[0089] Extracting all video frames between the starting time point and the ending time point from the video storage area in reverse order;

[0090] If it is detected that all the video frames include non-key frames, the non-key frames are screened out to obtain all key frames between the start time point and the end time point of the target video.

[0091] Optionally, in another embodiment of the above method of the present application, after extracting all key frames between the starting time point and the ending time point of the target video from the video storage area, the method further includes:

[0092] The audio data corresponding to each key frame is extracted from the video storage area, and the key frame and the corresponding audio data are sent to the video server.

[0093] Optionally, in another embodiment of the above method of the present application, after extracting all key frames between the starting time point and the ending time point of the target video from the video storage area, the method further includes:

[0094] Unpacking all the key frames using the JT1078 protocol to obtain initial reverse video information;

[0095] The audio data corresponding to each key frame is extracted from the video storage area, and the reverse video information is generated based on the initial reverse video information and the corresponding audio and video frames.

[0096] Optionally, in another embodiment of the method of the present application, after receiving the video reversal instruction for the target video, the method further includes:

[0097] If it is determined that the current time is a peak period for business processing, the video index information marked with the start time point and the end time point of the preset time range and carried in the video rewind instruction is extracted.

[0098] In one method, before the present application selects to retrieve the corresponding key frame information from the storage area so as to subsequently generate the corresponding reverse video information by discarding non-key frames and only processing key frames, it can also first determine whether the current time is the peak period for business processing. It can be understood that only when it is determined that the vehicle terminal is in the peak period for business processing, will the video index information marked with the start time point and the end time point of the preset time range carried in the video reverse instruction be extracted for the purpose of reducing the increased computing burden of the vehicle terminal caused by the transmission of unnecessary video frames; based on the video index information, all key frames between the start time point and the end time point of the target video are extracted from the video storage area; based on the key frames, the reverse video information is generated. By applying the technical solution of the present application, after obtaining the video reverse instruction, the corresponding key frame information can be retrieved from the storage area according to the video start and end time period marked by the video reverse instruction, so that the corresponding reverse video information can be subsequently generated by discarding non-key frames and only processing key frames.

[0099] By applying the technical solution of the present application, after the vehicle terminal obtains the video reversal instruction, the corresponding key frame information can be retrieved from the storage area according to the video start and end time periods marked by the video reversal instruction, so that the corresponding reversal video information can be generated in the subsequent manner of discarding non-key frames and only processing key frames. This can not only avoid the problem of reducing the user viewing experience caused by the existing vehicle terminal not supporting the reversal of vehicle videos, but also reduce the purpose of increasing the computing burden of the vehicle terminal caused by the transmission of unnecessary video frames.

[0100] Optionally, in another embodiment of the present application, Figure 3 As shown, the present application also provides a vehicle-mounted video reversal device. It includes:

[0101] The receiving module 201 is configured to receive a video reversal instruction for a target video, wherein the video reversal instruction is used to reversely display video information in the target video within a preset time range;

[0102] The extraction module 202 is configured to extract the video index information marked with the starting time point and the ending time point of the preset time range carried in the video reversal instruction;

[0103] The extraction module 202 is configured to extract all key frames between the start time point and the end time point of the target video from the video storage area based on the video index information;

[0104] The generating module 203 is configured to generate reverse video information based on the key frames.

[0105] In the present application, a video rewind instruction for a target video can be received, and the video rewind instruction is used to reversely display the video information in the target video that is within a preset time range; extract the video index information marked with the start time point and the end time point of the preset time range carried in the video rewind instruction; based on the video index information, extract all key frames between the start time point and the end time point of the target video from the video storage area; based on the key frames, generate the rewind video information. By applying the technical solution of the present application, after obtaining the video rewind instruction, the corresponding key frame information can be retrieved from the storage area according to the video start and end time period marked by the video rewind instruction, so that the corresponding rewind video information can be generated in the subsequent manner by discarding non-key frames and only processing key frames. Thereby, not only can the problem of reducing the user viewing experience caused by the existing vehicle-mounted terminal not supporting the rewind of vehicle-mounted videos be avoided, but also the purpose of increasing the computing burden of the vehicle-mounted terminal caused by the transmission of unnecessary video frames can be reduced.

[0106] In another embodiment of the present application, the receiving module 201 is configured to perform the following steps:

[0107] Collecting original video data through a camera device, and collecting original audio data through an audio device;

[0108] Sending the original video data to a video encoder for encoding and compression to obtain video data; and sending the original audio data to an audio encoder for encoding and compression to obtain audio data;

[0109] Based on the video data and the audio data, index information of the target video is established, wherein the index information includes a frame type, a timestamp, a frame size, and a corresponding storage location corresponding to each video frame in the video data.

[0110] In another embodiment of the present application, the receiving module 201 is configured to perform the following steps:

[0111] Screening out non-key frames in the video data;

[0112] Based on the video data after filtering out non-key frames and the corresponding audio data, index information of the target video is established.

[0113] In another embodiment of the present application, the receiving module 201 is configured to perform the following steps:

[0114] Based on the video index information, determining the starting time point and the ending time point of the target video;

[0115] Extracting all video frames between the starting time point and the ending time point from the video storage area in reverse order;

[0116] If it is detected that all the video frames include non-key frames, the non-key frames are screened out to obtain all key frames between the start time point and the end time point of the target video.

[0117] In another embodiment of the present application, the receiving module 201 is configured to perform the following steps:

[0118] The audio data corresponding to each key frame is extracted from the video storage area, and the key frame and the corresponding audio data are sent to the video server.

[0119] In another embodiment of the present application, the receiving module 201 is configured to perform the following steps:

[0120] Unpacking all the key frames using the JT1078 protocol to obtain initial reverse video information;

[0121] The audio data corresponding to each key frame is extracted from the video storage area, and the reverse video information is generated based on the initial reverse video information and the corresponding audio and video frames.

[0122] In another embodiment of the present application, the receiving module 201 is configured to perform the following steps:

[0123] If it is determined that the current time is a peak period for business processing, the video index information marked with the start time point and the end time point of the preset time range and carried in the video rewind instruction is extracted.

[0124] Figure 4 3 is a logical structure block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0125] In an exemplary embodiment, a non-temporary computer-readable storage medium including instructions is also provided, such as a memory including instructions, the above instructions can be executed by an electronic device processor to complete the above-mentioned vehicle-mounted video reversal method, the method comprising: receiving a video reversal instruction for a target video, the video reversal instruction is used to reversely display the video information in the target video within a preset time range; extracting the video index information carried in the video reversal instruction with the start time point and the end time point of the preset time range; based on the video index information, extracting all key frames between the start time point and the end time point of the target video from the video storage area; based on the key frames, generating the reversal video information. Optionally, the above instructions can also be executed by a processor of an electronic device to complete the other steps involved in the above-mentioned exemplary embodiment. For example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0126] In an exemplary embodiment, an application / computer program product is also provided, including one or more instructions, which can be executed by a processor of an electronic device to complete the above-mentioned in-vehicle video reversal method, the method comprising: receiving a video reversal instruction for a target video, the video reversal instruction is used to reversely display the video information in the target video that is within a preset time range; extracting the video index information carried in the video reversal instruction that is marked with the start time point and the end time point of the preset time range; based on the video index information, extracting all key frames between the start time point and the end time point of the target video from the video storage area; based on the key frames, generating the reversal video information. Optionally, the above-mentioned instructions can also be executed by a processor of an electronic device to complete other steps involved in the above-mentioned exemplary embodiment.

[0127] Figure 4 FIG. 3 is an example diagram of an electronic device 300. A person skilled in the art can understand that Figure 4 It is only an example of the electronic device 300 and does not constitute a limitation of the electronic device 300. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device 300 may also include input and output devices, network access devices, buses, etc.

[0128] The processor 302 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor 302 may also be any conventional processor, etc. The processor 302 is the control center of the electronic device 300, and uses various interfaces and lines to connect various parts of the entire electronic device 300.

[0129] The memory 301 can be used to store computer-readable instructions 303. The processor 302 implements various functions of the electronic device 300 by running or executing the computer-readable instructions or modules stored in the memory 301 and calling the data stored in the memory 301. The memory 301 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the electronic device 300, etc. In addition, the memory 301 can include a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM) or other non-volatile / volatile storage devices.

[0130] If the module integrated in the electronic device 300 is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also instruct the relevant hardware to complete it through computer-readable instructions. The computer-readable instructions can be stored in a computer-readable storage medium, and when the computer-readable instructions are executed by the processor, the steps of the above-mentioned various method embodiments can be implemented.

[0131] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0132] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for reversing a vehicle-mounted video, characterized in that: Applied to vehicle terminals, including: Receive a video rewind instruction for a target video, the video rewind instruction being used to reversely display video information in the target video within a preset time range; if it is determined that the current time is a peak business processing period, extract video index information marked with a start time point and an end time point of the preset time range carried in the video rewind instruction; Based on the video index information, extracting all key frames between the starting time point and the ending time point of the target video from the video storage area; Based on the key frames, generating reverse video information; Before receiving the video reversal instruction for the target video, the method further includes: Collecting original video data through a camera device, and collecting original audio data through an audio device; Sending the original video data to a video encoder for encoding and compression to obtain video data; and sending the original audio data to an audio encoder for encoding and compression to obtain audio data; Based on the video data and the audio data, establish index information of the target video, wherein the index information includes a frame type, a timestamp, a frame size, and a corresponding storage location corresponding to each video frame in the video data; After extracting all key frames between the starting time point and the ending time point of the target video from the video storage area, the method further includes: Unpacking all the key frames using the JT1078 protocol to obtain initial reverse video information; The audio data corresponding to each key frame is extracted from the video storage area, and the reverse video information is generated based on the initial reverse video information and the corresponding audio and video frames.

2. The method according to claim 1, characterized in that The step of establishing index information of the target video based on the video data and the audio data includes: Screening out non-key frames in the video data; Based on the video data after filtering out non-key frames and the corresponding audio data, index information of the target video is established.

3. The method according to claim 1, characterized in that The extracting, based on the video index information, all key frames between the starting time point and the ending time point of the target video from the video storage area comprises: Based on the video index information, determining the starting time point and the ending time point of the target video; Extracting all video frames between the starting time point and the ending time point from the video storage area in reverse order; If it is detected that all the video frames include non-key frames, the non-key frames are screened out to obtain all key frames between the start time point and the end time point of the target video.

4. The method according to claim 1, characterized in that After extracting all key frames between the starting time point and the ending time point of the target video from the video storage area, the method further includes: The audio data corresponding to each key frame is extracted from the video storage area, and the key frame and the corresponding audio data are sent to the video server.

5. A vehicle-mounted video reversal device, using the method according to any one of claims 1 to 4, characterized in that: Applied to vehicle terminals, including: A receiving module is configured to receive a video reversal instruction for a target video, wherein the video reversal instruction is used to reversely display video information in the target video within a preset time range; An extraction module is configured to extract the video index information marked with the starting time point and the ending time point of the preset time range carried in the video reversal instruction; The extraction module is configured to extract all key frames between the starting time point and the ending time point of the target video from the video storage area based on the video index information; The generating module is configured to generate reverse video information based on the key frames.

6. An electronic device, characterized in that: include: A memory for storing executable instructions; as well as, A processor is used to execute the executable instructions together with the memory to complete the operation of the in-vehicle video reversal method described in any one of claims 1-4.

7. A computer-readable storage medium for storing computer-readable instructions, characterized in that: When the instruction is executed, the operation of the in-vehicle video reversal method described in any one of claims 1-4 is performed.