RTSP (Real Time Streaming Protocol)-based flight data acquisition and playback method, system, equipment and medium
Through the flight video data collection and playback method based on the RTSP protocol, the problem of high-speed and large-capacity data collection and storage in the existing technology is solved, the rapid real-time monitoring and on-demand playback of the entire aircraft video is realized, and the rapid real-time monitoring of flight video data is satisfied. and on-demand demand.
Patent Information
- Application Number
- CN202410721810.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing flight video data collection and playback system cannot effectively solve the problem of high-speed and large-capacity data collection and storage. It lacks fast real-time monitoring and scalable full-aircraft video collection capabilities, and cannot realize full-aircraft controlled on-demand video.
Using the flight video data collection and playback method based on the RTSP protocol, the video data stream is collected through the airborne video collection device and sent to the data management processor in the form of RSTP video data packets for repackaging and recording. The airborne video display terminal based on the location information Request video history information for playback and display to achieve controlled on-demand video on the entire machine.
It achieves fast, real-time and scalable whole-aircraft video collection, simplifies video analysis, realizes controlled on-demand video of the whole aircraft, and meets the needs of fast real-time monitoring and on-demand playback of flight video data.
Smart Images

Figure CN118573799A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of avionics technology, and in particular to a flight data acquisition and playback method, system, equipment and medium based on RTSP protocol. Background Art
[0002] In the field of avionics technology, pilots can monitor flight video data to detect abnormal flight situations in a timely manner; ground video playback data can be used as a basis for pilot training and evaluation; flight video data plays an important role in the flight process as a basis for analysis and evaluation, accident prevention, etc. Existing recording and playback equipment can realize data acquisition and playback functions, but does not consider the acquisition and storage of high-speed and large-capacity data.
[0003] In summary, the flight video data acquisition and playback system should have the ability of fast real-time monitoring, on-demand playback, and scalable full-aircraft video acquisition. Therefore, it is necessary to provide a flight video data acquisition and playback design based on the RTSP protocol to realize controlled on-demand video of the entire aircraft. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a flight data acquisition and playback method, system, device and medium based on the RTSP protocol, including an RTSP flight video data acquisition method, a frame data packaging scheme, and a flight video data playback method to achieve the purpose of controlled on-demand video of the entire aircraft.
[0005] The embodiment of the present application provides the following technical solution: a flight video data acquisition and playback method based on the RTSP protocol, comprising:
[0006] The flight video data stream based on RTSP protocol is collected through the onboard video acquisition device;
[0007] Initializing flight video data acquisition through the airborne video acquisition device, and sending the acquired flight video data stream to the data management processor in the form of RSTP video data packets, repackaging the received RSTP video data packets through the data management processor, and writing the repacked video data into the data transmission card for recording;
[0008] The flight video data playback is initialized through the airborne video display terminal, and according to the position information of the airborne video acquisition device, the video history request information of different channels is sent to the data management processor. The data management processor reads the video history information of the channel corresponding to the video history request information in the data transmission card, and transmits it to the airborne video display terminal. The airborne video display terminal plays back and displays the video history information according to the on-demand instruction.
[0009] According to an embodiment of the present application, the flight video data acquisition is initialized by the airborne video acquisition device, and the collected flight video data stream is sent to the data management processor in the form of an RSTP video data packet, including:
[0010] Sending a link establishment message to the data management processor by the airborne video acquisition device to complete the link establishment between the airborne video acquisition device and the data management processor;
[0011] The airborne video acquisition device sends video configuration information to the data management processor, and the data management processor parses the received video configuration information, creates a corresponding video acquisition task according to the number of video configuration channels obtained after parsing, and creates history information in the data transmission card;
[0012] The airborne video acquisition device cyclically sends RSTP video data packets to the data management processor.
[0013] According to an embodiment of the present application, the received RSTP video data packet is repackaged by the data management processor, and the repackaged video data is written into the data transmission card for recording, including:
[0014] The data management processor receives the RSTP video data packets cyclically and repacks the RSTP video data packets according to requirements; the repackaging includes adding frame count, channel number, data length and packet tail check information.
[0015] According to an embodiment of the present application, initializing the playback of flight video data through an onboard video display terminal includes:
[0016] Sending a link establishment message to the data management processor via the airborne video display terminal to complete the link establishment between the airborne video display terminal and the data management processor;
[0017] Sending video configuration request information to the data management processor through the onboard video display terminal; after the data management processor reads the locally loaded configuration information, it returns the video configuration information corresponding to the video configuration request information to the onboard video display terminal;
[0018] The onboard video display terminal parses the acquired video configuration information.
[0019] According to an embodiment of the present application, the airborne video acquisition device and the data management processor, as well as the airborne video display terminal and the data management processor, interact via an Ethernet bus.
[0020] According to an embodiment of the present application, the airborne video acquisition device adopts an airborne high-definition camera.
[0021] The present application also provides a flight video data acquisition and playback system based on the RTSP protocol, including:
[0022] Airborne video acquisition device, used to collect flight video data stream based on RTSP protocol;
[0023] A data management processor, wherein the data management processor is connected to the airborne video acquisition device via Ethernet, and the airborne video acquisition device is used to send the collected flight video data stream in the form of RSTP video data packets to the data management processor after initializing flight video data acquisition, and the data management processor is used to repackage the received RSTP video data packets and write the repackaged video data into a data transmission card for recording;
[0024] An airborne video display terminal, wherein the airborne video display terminal is connected to the data management processor via Ethernet. The airborne video display terminal is used to send video history request information of different channels to the data management processor according to the position information of the airborne video acquisition device after initializing the flight video data playback. The data management processor is used to read the video history information of the corresponding channel in the data transmission card according to the video history request information, and transmit it to the airborne video display terminal. The airborne video display terminal is used to play back and display the video history information according to the on-demand instruction.
[0025] The present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned flight video data acquisition and playback method based on the RTSP protocol when executing the computer program.
[0026] The present application also provides a computer-readable storage medium, which stores a computer program for executing the above-mentioned flight video data acquisition and playback method based on the RTSP protocol.
[0027] Compared with the prior art, the beneficial effects that can be achieved by at least one of the above-mentioned technical solutions adopted in the embodiments of this specification include at least: a flight video data acquisition and playback method based on the RTSP protocol in the embodiments of the present invention, by designing the RTSP flight video data acquisition method, the frame data packaging scheme, and the flight video data playback method, fast, real-time, and scalable full-aircraft video acquisition is achieved, video parsing is simplified, and controlled on-demand video of the entire aircraft is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 A schematic diagram of a flight video data acquisition and playback method according to an embodiment of the present invention;
[0030] Figure 2 A schematic diagram of a video collection interaction process of a data management processor according to an embodiment of the present invention;
[0031] Figure 3 A schematic diagram of a flight video data acquisition design method according to an embodiment of the present invention;
[0032] Figure 4 A schematic diagram of a flight video data playback design method according to an embodiment of the present invention;
[0033] Figure 5 This is a schematic diagram of the flight video frame data packaging solution;
[0034] Figure 6 A schematic diagram of a flight video data acquisition and playback system according to an embodiment of the present invention;
[0035] Figure 7 It is a structural schematic diagram of the computer device of the present invention. DETAILED DESCRIPTION
[0036] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0037] The following describes the implementation methods of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, in the absence of conflict, the following embodiments and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.
[0038] like Figure 1 As shown, an embodiment of the present invention provides a flight video data acquisition and playback method based on the RTSP protocol, comprising:
[0039] S101. Capture flight video data stream based on RTSP protocol through an onboard video acquisition device;
[0040] During specific implementation, the airborne video acquisition device adopts an airborne high-definition camera.
[0041] S102. Initialize flight video data acquisition through the onboard video acquisition device, and send the acquired flight video data stream to the data management processor in the form of RSTP video data packets, repackage the received RSTP video data packets through the data management processor, and write the repackaged video data into the data transmission card for recording;
[0042] When implementing it, Figure 3 As shown, flight video data acquisition is initialized by the airborne video acquisition device, and the collected flight video data stream is sent to the data management processor in the form of RSTP video data packets, including: sending a link establishment message to the data management processor by the airborne video acquisition device to complete the link establishment between the airborne video acquisition device and the data management processor; sending video configuration information to the data management processor by the airborne video acquisition device, and the data management processor parses the received video configuration information and creates a corresponding video acquisition task according to the number of video configuration channels obtained after the analysis, and creates history information in the data transmission card; the airborne video acquisition device sends RSTP video data packets to the data management processor in a loop.
[0043] The link establishment process between the airborne video acquisition device and the data management processor specifically includes: the data management processor and the airborne high-definition camera communicate based on the Ethernet socket, the data management processor creates a socket, binds the IP and port number through bind(), and after the airborne camera successfully creates the socket, directly sends the video data through the sendto() interface, and the data management processor receives the video data through the recvfrom() interface. This process of sending and receiving is cyclical. The interactive process of the data management processor collecting video is as follows: Figure 2 shown.
[0044] In a specific implementation, the received RSTP video data packet is repackaged by the data management processor, and the repackaged video data is written into the data transmission card for recording, including: the data management processor cyclically receives the RSTP video data packet, and repackages the RSTP video data packet according to demand; the repackaging includes adding frame count, channel number, data length and packet tail check information.
[0045] S103. Initialize the flight video data playback through the airborne video display terminal, and send video history request information of different channels to the data management processor according to the location information of the airborne video acquisition device. The data management processor reads the video history information of the channel corresponding to the video history request information in the data transmission card, and transmits it to the airborne video display terminal. The airborne video display terminal plays back and displays the video history information according to the on-demand instruction.
[0046] When implementing it, Figure 4 As shown, the flight video data playback is initialized through the onboard video display terminal, including: sending a link establishment message to the data management processor through the onboard video display terminal to complete the link establishment between the onboard video display terminal and the data management processor; sending video configuration request information to the data management processor through the onboard video display terminal; the data management processor reads the locally loaded configuration information and returns the video configuration information corresponding to the video configuration request information to the onboard video display terminal; the onboard video display terminal parses the acquired video configuration information.
[0047] In this embodiment, the airborne video acquisition device and the data management processor, as well as the airborne video display terminal and the data management processor interact via an Ethernet bus.
[0048] like Figure 6 As shown, the present application also provides a flight video data acquisition and playback system based on the RTSP protocol, including:
[0049] Airborne video acquisition device, used to collect flight video data stream based on RTSP protocol;
[0050] A data management processor, wherein the data management processor is connected to the airborne video acquisition device via Ethernet, and the airborne video acquisition device is used to send the collected flight video data stream in the form of RSTP video data packets to the data management processor after initializing flight video data acquisition, and the data management processor is used to repackage the received RSTP video data packets and write the repackaged video data into a data transmission card for recording;
[0051] An airborne video display terminal, wherein the airborne video display terminal is connected to the data management processor via Ethernet. The airborne video display terminal is used to send video history request information of different channels to the data management processor according to the position information of the airborne video acquisition device after initializing the flight video data playback. The data management processor is used to read the video history information of the corresponding channel in the data transmission card according to the video history request information, and transmit it to the airborne video display terminal. The airborne video display terminal is used to play back and display the video history information according to the on-demand instruction.
[0052] like Figure 6 As shown, in this embodiment, the data management processor of the flight parameter video data management and recording system with data acquisition function is first connected to the airborne high-definition camera of the whole aircraft through Ethernet. The data management processor interacts based on the Ethernet bus, and realizes RTSP video data stream acquisition through the processes of flight video data acquisition initialization, flight video data reading, flight video data packaging, etc.;
[0053] Among them, the data management processor collects the video interaction process such as Figure 2 As shown, the data management processor and the airborne high-definition camera communicate based on the Ethernet socket. The data management processor creates a socket and uses bind() to bind the IP and port number. After the airborne camera successfully creates the socket, it directly uses the sendto() interface to send video data. The data management processor receives the video data through the recvfrom() interface, and this sending and receiving process is cyclic.
[0054] The specific video collection process is as follows Figure 3 As shown in the figure, first, the flight video data acquisition process is initialized, which includes creating a socket for link building, receiving and parsing video configuration information, creating corresponding video acquisition tasks according to the number of video configuration channels, and creating resume information in the data transmission card; secondly, reading flight video data includes cyclically receiving RSTP video data packets; finally, after successfully receiving the RTSP video data packet, the flight video data is packaged into a packet structure such as frame count, header, and tail check information can be added according to needs. After successful packaging, the data is written into the data transmission card for recording. The specific frame data packaging scheme is as follows Figure 5 shown.
[0055] The data management processor with data playback function is connected to the airborne video display terminal via Ethernet, interacts based on the Ethernet bus, and realizes RTSP video data stream playback through flight video data playback request initialization and playback video data reading process.
[0056] The specific data playback design process is as follows: Figure 4As shown, first, the flight video data playback initialization is requested, and the process includes device link establishment, video configuration information transmission, and the airborne video display terminal obtaining and parsing the video configuration information; secondly, the video history information of different channels is requested according to the airborne camera position information. The data management processor reads the video history information of the corresponding channel of the data transmission card according to the channel request for transmission. After receiving the video history information, the airborne video display terminal selects the video history that needs to be on demand and requests the video data of the specific history. The data management processor reads the video data in the data card according to the request content, and the interaction is cyclic until the video data transmission is completed, thereby realizing the video data playback function.
[0057] In one embodiment, a computer device is provided, such as Figure 7 As shown, it includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned flight video data acquisition and playback method based on the RTSP protocol is implemented.
[0058] Specifically, the computer device may be a computer terminal, a server, a microprocessor or a similar computing device.
[0059] In this embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program for executing the above-mentioned flight video data acquisition and playback method based on the RTSP protocol.
[0060] Specifically, computer-readable storage media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0061] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present invention are not limited to any specific combination of hardware and software.
[0062] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A flight video data acquisition and playback method based on RTSP protocol, characterized in that: include: The flight video data stream based on RTSP protocol is collected through the onboard video acquisition device; Initializing flight video data acquisition through the airborne video acquisition device, and sending the acquired flight video data stream to the data management processor in the form of RSTP video data packets, repackaging the received RSTP video data packets through the data management processor, and writing the repacked video data into the data transmission card for recording; The flight video data playback is initialized through the airborne video display terminal, and according to the position information of the airborne video acquisition device, the video history request information of different channels is sent to the data management processor. The data management processor reads the video history information of the channel corresponding to the video history request information in the data transmission card, and transmits it to the airborne video display terminal. The airborne video display terminal plays back and displays the video history information according to the on-demand instruction.
2. The flight video data acquisition and playback method based on RTSP protocol according to claim 1 is characterized in that: Initializing flight video data acquisition through the airborne video acquisition device, and sending the acquired flight video data stream to the data management processor in the form of RSTP video data packets, including: Sending a link establishment message to the data management processor by the airborne video acquisition device to complete the link establishment between the airborne video acquisition device and the data management processor; The airborne video acquisition device sends video configuration information to the data management processor, and the data management processor parses the received video configuration information, creates a corresponding video acquisition task according to the number of video configuration channels obtained after parsing, and creates history information in the data transmission card; The airborne video acquisition device cyclically sends RSTP video data packets to the data management processor.
3. The flight video data acquisition and playback method based on RTSP protocol according to claim 1 is characterized in that: Repackaging the received RSTP video data packets through the data management processor, and writing the repacked video data into the data transmission card for recording, including: The data management processor receives the RSTP video data packets cyclically and repacks the RSTP video data packets according to requirements; the repackaging includes adding frame count, channel number, data length and packet tail check information.
4. The flight video data acquisition and playback method based on RTSP protocol according to claim 1 is characterized in that: Initialize flight video data playback through the onboard video display terminal, including: Sending a link establishment message to the data management processor via the airborne video display terminal to complete the link establishment between the airborne video display terminal and the data management processor; Sending video configuration request information to the data management processor through the onboard video display terminal; after the data management processor reads the locally loaded configuration information, it returns the video configuration information corresponding to the video configuration request information to the onboard video display terminal; The onboard video display terminal parses the acquired video configuration information.
5. The flight video data acquisition and playback method based on RTSP protocol according to claim 1 is characterized in that: The airborne video acquisition device and the data management processor, as well as the airborne video display terminal and the data management processor, interact via an Ethernet bus.
6. The flight video data acquisition and playback method based on RTSP protocol according to claim 1 is characterized in that: The airborne video acquisition device adopts an airborne high-definition camera.
7. A flight video data acquisition and playback system based on RTSP protocol, characterized in that: include: Airborne video acquisition device, used to collect flight video data stream based on RTSP protocol; A data management processor, wherein the data management processor is connected to the airborne video acquisition device via Ethernet, and the airborne video acquisition device is used to send the collected flight video data stream in the form of RSTP video data packets to the data management processor after initializing flight video data acquisition, and the data management processor is used to repackage the received RSTP video data packets and write the repackaged video data into a data transmission card for recording; An airborne video display terminal, wherein the airborne video display terminal is connected to the data management processor via Ethernet. The airborne video display terminal is used to send video history request information of different channels to the data management processor according to the position information of the airborne video acquisition device after initializing the flight video data playback. The data management processor is used to read the video history information of the corresponding channel in the data transmission card according to the video history request information, and transmit it to the airborne video display terminal. The airborne video display terminal is used to play back and display the video history information according to the on-demand instruction.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the flight video data acquisition and playback method based on the RTSP protocol described in any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the flight video data acquisition and playback method based on the RTSP protocol according to any one of claims 1 to 6.
Citation Information
Patent Citations
Pump station video monitoring system based on smart phone
CN102752583A
Method and system for simulation window display
CN106534803A
Multichannel synchronous storage and playback method for cockpit audio and video recorder
CN106791534A
Web-based unmanned aerial vehicle track and video synchronous playback method
CN113179438A
Video switching method and video switching system suitable for network camera
CN113395489A
