CN110896410A - Video data uploading method and device, computer readable medium and electronic equipment - Google Patents

Video data uploading method and device, computer readable medium and electronic equipment Download PDF

Info

Publication number
CN110896410A
CN110896410A CN201811360883.1A CN201811360883A CN110896410A CN 110896410 A CN110896410 A CN 110896410A CN 201811360883 A CN201811360883 A CN 201811360883A CN 110896410 A CN110896410 A CN 110896410A
Authority
CN
China
Prior art keywords
video
server
uploading
video data
network address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811360883.1A
Other languages
Chinese (zh)
Other versions
CN110896410B (en
Inventor
俞一帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201811360883.1A priority Critical patent/CN110896410B/en
Publication of CN110896410A publication Critical patent/CN110896410A/en
Application granted granted Critical
Publication of CN110896410B publication Critical patent/CN110896410B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • H04L61/2575NAT traversal using address mapping retrieval, e.g. simple traversal of user datagram protocol through session traversal utilities for NAT [STUN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a video data uploading method and device, a computer readable medium and electronic equipment. The video data uploading method comprises the following steps: if a DNS query request sent by a video uploading party is received, replacing a source network address of the DNS query request with a network address of a target server; the processed DNS query request is sent to a DNS server so that the DNS server can determine a video server according to a network address of a target server, and the video server is used for preprocessing video data uploaded by a video uploading party and then transmitting the preprocessed video data to designated equipment; receiving DNS response information which is returned by the DNS and contains the network address of the video server; and returning the network address of the video server to the video uploading party so that the video uploading party uploads the video data to the video server through the network address of the video server. The technical scheme of the embodiment of the invention can reduce the transmission delay of the video data and improve the uploading efficiency of the video data.

Description

Video data uploading method and device, computer readable medium and electronic equipment
Technical Field
The invention relates to the technical field of computers and communication, in particular to a method and a device for uploading video data, a computer readable medium and electronic equipment.
Background
At present, the problems of large data transmission quantity and large transmission time delay usually exist when a video acquisition party uploads acquired video data to a background server. For example, when map data is constructed/updated by relying on video data acquired by a vehicle event data recorder, the amount of video data uploaded by the vehicle event data recorder is large, so that network resource consumption is large, a transmission experiment of the video data is large, and transmission efficiency is low.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for uploading video data, a computer-readable medium, and an electronic device, so that transmission delay of video data can be reduced at least to a certain extent, and uploading efficiency of video data is improved.
Additional features and advantages of the invention will be set forth in the detailed description which follows, or may be learned by practice of the invention.
According to an aspect of the embodiments of the present invention, there is provided a method for uploading video data, including: if a Domain Name System (DNS) query request sent by a video uploading party is received, replacing a source network address of the DNS query request with a network address of a target server to obtain a processed DNS query request; sending the processed DNS query request to a DNS server so that the DNS server can determine a video server for receiving video data uploaded by the video uploading party according to the network address of the target server, wherein the video server is used for preprocessing the video data uploaded by the video uploading party and then transmitting the video data to designated equipment; receiving DNS response information which is returned by the DNS and contains the network address of the video server; and returning the network address of the video server to the video uploading party so that the video uploading party uploads the video data to the video server through the network address of the video server.
According to an aspect of the embodiments of the present invention, there is provided a method for uploading video data, including: sending a DNS query request to a target server so that the target server sends the DNS query request to the DNS server and obtains DNS response information which is returned by the DNS server and contains a network address of a video server, wherein the video server is used for preprocessing video data uploaded by the video uploading party and then transmitting the video data to designated equipment; receiving the network address of the video server returned by the target server; and uploading video data to the video server according to the network address of the video server.
According to an aspect of the embodiments of the present invention, there is provided a method for uploading video data, including: receiving a data message sent by a video uploading party; determining a video server for receiving the video data uploaded by the video uploading party according to the data message, wherein the video server is used for preprocessing the video data uploaded by the video uploading party and then transmitting the video data to a designated device; replacing the destination address of the data message with the network address of the video server to obtain a processed data message; and sending the processed data message to the video server so that the video server acquires the video data uploaded by the video uploading party based on the data message.
According to an aspect of the embodiments of the present invention, there is provided an upload apparatus of video data, including: the processing unit is used for replacing a source network address of the DNS query request with a network address of a target server to obtain a processed DNS query request when the DNS query request of a domain name system sent by a video uploading party is received; the first sending unit is used for sending the processed DNS query request to a DNS server so that the DNS server can determine a video server for receiving video data uploaded by the video uploading party according to the network address of the target server, and the video server is used for preprocessing the video data uploaded by the video uploading party and then transmitting the preprocessed video data to designated equipment; a receiving unit, configured to receive DNS response information including a network address of the video server, where the DNS response information is returned by the DNS server; and the second sending unit is used for returning the network address of the video server to the video uploading party so that the video uploading party uploads the video data to the video server through the network address of the video server.
In some embodiments of the present invention, based on the foregoing solution, the apparatus for uploading video data further includes: a detection unit, configured to detect whether a domain name included in the DNS query request matches a domain name corresponding to a preset video server; the processing unit is configured to replace a source network address of the DNS query request with a network address of the target server when a domain name included in the DNS query request matches a domain name corresponding to a preset video server.
In some embodiments of the present invention, based on the foregoing scheme, the second sending unit is configured to: replacing the destination network address of the DNS response information with the network address of the video uploading party to obtain the processed DNS response information; and returning the processed DNS response information to the video uploading party.
According to an aspect of the embodiments of the present invention, there is provided an upload apparatus of video data, including: the device comprises a sending unit, a receiving unit and a sending unit, wherein the sending unit is used for sending a DNS query request to a target server so that the target server sends the DNS query request to the DNS server and obtains DNS response information which is returned by the DNS server and contains a network address of a video server, and the video server is used for preprocessing video data uploaded by a video uploading party and then transmitting the preprocessed video data to designated equipment; the receiving unit is used for receiving the network address of the video server returned by the target server; and the uploading unit is used for uploading the video data to the video server according to the network address of the video server.
In some embodiments of the present invention, based on the foregoing solution, the uploading unit is configured to: periodically uploading the acquired video data to the video server according to the network address of the video server; or sending the state information of the acquired video data to the video server according to the network address of the video server, and uploading the video data corresponding to the video acquisition request to the video server when receiving the video acquisition request sent by the video server.
According to an aspect of the embodiments of the present invention, there is provided an upload apparatus of video data, including: the receiving unit is used for receiving a data message sent by a video uploading party; the first processing unit is used for determining a video server used for receiving the video data uploaded by the video uploading party according to the data message, and the video server is used for preprocessing the video data uploaded by the video uploading party and then transmitting the video data to a designated device; the second processing unit is used for replacing the destination address of the data message with the network address of the video server to obtain a processed data message; and the sending unit is used for sending the processed data message to the video server so that the video server obtains the video data uploaded by the video uploading party based on the data message.
In some embodiments of the present invention, based on the foregoing solution, the apparatus for uploading video data further includes: a detection unit, configured to detect whether the data packet contains predetermined host information and PATH information of a search PATH of a device executable file; the first processing unit is configured to determine, when the data packet includes the predetermined host information and the search PATH information of the device executable file, a video server for receiving the video data uploaded by the video uploading party according to the data packet.
In some embodiments of the present invention, based on the foregoing solution, the apparatus for uploading video data further includes: the third processing unit is used for replacing a source network address of the response information with a destination address of the data message when receiving the response information aiming at the data message returned by the video server, so as to obtain the processed response information; the sending unit is further configured to return the processed response information to the video uploading party.
In some embodiments of the present invention, based on the foregoing scheme, the receiving unit is configured to: and receiving a data message containing video data periodically sent by a video uploading party.
In some embodiments of the present invention, based on the foregoing scheme, the receiving unit is configured to: receiving a data message which is sent by a video uploading party and contains video data state information; the sending unit is further configured to: and when video acquisition information sent by the video server according to the video data state information is received, sending the video acquisition information to the video uploading party so that the video uploading party uploads corresponding video data based on the video acquisition information.
According to an aspect of an embodiment of the present invention, there is provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the uploading method of video data as described in the above embodiments.
According to an aspect of an embodiment of the present invention, there is provided an electronic apparatus including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method for uploading video data as described in the above embodiments.
In the technical solutions provided in some embodiments of the present invention, a processed DNS query request is obtained by replacing a source network address of the DNS query request with a network address of a target server, and the processed DNS query request is sent to a DNS server, so that the DNS server determines a video server that receives video data uploaded by a video uploading party according to the network address of the target server, so that the DNS server can allocate a most appropriate video server (for example, a video server that is closest in distance and/or has a smaller processing load according to the network address allocation of the target server) to the video uploading party, on one hand, transmission delay of video data can be reduced by allocating an appropriate video server, and uploading efficiency of video data is improved, on the other hand, because the source network address of the DNS query request is replaced by the network address of the target server, and the video server is allocated according to the network address of the target server, so that the problem that the video server is difficult to actively capture the video due to unfixed network address of the video uploading party can be avoided.
In the technical solutions provided in some embodiments of the present invention, by receiving a data packet sent by a video uploading party, a video server for receiving video data uploaded by the video uploading party is determined according to the data packet, so that an optimal video server (for example, a video server with a closest distribution distance and/or a smaller processing load) can be allocated to the video uploading party, thereby reducing transmission delay of video data and improving uploading efficiency of video data.
In the technical solutions provided by some embodiments of the present invention, the video server preprocesses the video data uploaded by the video uploading party and transmits the preprocessed video data to the designated device (such as a background cloud server), so that the video server can filter out useless data, reduce the amount of data transmitted to the designated device, and further save the consumption of network resources.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 shows a schematic diagram of an exemplary system architecture to which aspects of embodiments of the invention may be applied;
fig. 2 schematically shows a flow chart of an uploading method of video data according to an embodiment of the present invention;
fig. 3 schematically shows a flow chart of an uploading method of video data according to an embodiment of the present invention;
fig. 4 schematically shows a flow chart of an uploading method of video data according to an embodiment of the present invention;
fig. 5 schematically shows a flowchart of an upload method of video data according to an embodiment of the present invention;
fig. 6 schematically shows a flowchart of an upload method of video data according to an embodiment of the present invention;
fig. 7 schematically shows a flowchart of an upload method of video data according to an embodiment of the present invention;
fig. 8 schematically shows a flowchart of an upload method of video data according to an embodiment of the present invention;
fig. 9 schematically shows a block diagram of an uploading apparatus of video data according to an embodiment of the present invention;
fig. 10 schematically shows a block diagram of an uploading apparatus of video data according to an embodiment of the present invention;
fig. 11 is a block diagram schematically showing an uploading apparatus of video data according to an embodiment of the present invention;
FIG. 12 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present invention can be applied.
As shown in fig. 1, the system architecture may include a vehicle terminal 101 (the vehicle terminal 101 is provided with a device for capturing video, such as a drive recorder), a base station 102, an MEC (Mobile Edge Computing) server 103, an S/P-GW (Serving/Packet Data Network-Gateway) 104, a background cloud server 105, and a video pre-processing server 106. The vehicle terminal 101 communicates with the base station 102 through a Uu interface, the P-GW communicates with the background cloud server through an SGI interface, and the video preprocessing server 106 transmits video data to the background cloud server 105 through a network.
In one embodiment of the invention, the MEC server 103 and the video pre-processing server 106 constitute an edge data center that constitutes an edge computing facility of the mobile network. The MEC server 103 is deployed between the base station 102 and a core network device (S/P-GW) of the mobile network. The video preprocessing server 106 is deployed in an edge data center, and a background cloud server 105 located in a centralized data center is connected with core network equipment of the mobile network through an SGI interface. Wherein, the server responsible for road data acquisition is deployed in the background cloud server 105. The edge data center is provided with an interface for connecting the Internet and can be communicated with the background cloud server 105.
In an embodiment of the present invention, the vehicle terminal 101 may send a DNS query request to the MEC server 103 through the base station 102, after receiving the DNS query request sent by the vehicle terminal 101, the MEC server 103 replaces a source network address of the DNS query request with a network address of the MEC server 103 to obtain a processed DNS query request, and then sends the processed DNS query request to a DNS server (the DNS server may be a part of the background cloud server 105 shown in fig. 1), so that the DNS server may determine, according to the network address of the MEC server 103, the video preprocessing server 106 that receives the video data uploaded by the vehicle terminal 101, and return DNS response information including the network address of the video preprocessing server 106 to the MEC server 103. The MEC server 103 returns the network address of the video preprocessing server 106 to the vehicle terminal 101, and the vehicle terminal can actively upload video data to the video preprocessing server 106, or upload video data to the video preprocessing server 106 according to a capture instruction of the video preprocessing server 106. After receiving the video data uploaded by the vehicle terminal 101, the video preprocessing server 106 may preprocess the video data, for example, filter out unclear video data, and finally upload the preprocessed video data to the background cloud server 105 for storage.
In an embodiment of the present invention, the vehicle terminal 101 may send an HTTP (Hyper Text Transfer Protocol) message to the MEC server 103 through the base station 102, after receiving the HTTP message sent by the vehicle terminal 101, the MEC server 103 determines, according to the HTTP message, the video preprocessing server 106 that receives the video data uploaded by the vehicle terminal 101, further, the MEC server 103 replaces a destination address of the HTTP message with a network address of the video preprocessing server 106 to obtain a processed HTTP message, and then sends the processed HTTP message to the video preprocessing server 106. The video preprocessing server 106 may obtain the video data uploaded by the vehicle terminal 101 according to the HTTP message, and may send a capture instruction to the vehicle terminal 101 to obtain the video data uploaded by the vehicle terminal 101. After the video preprocessing server 106 obtains the video data uploaded by the vehicle terminal 101, the video data may be preprocessed, for example, to filter out unclear video data, and finally, the preprocessed video data is uploaded to the background cloud server 105 for storage.
It should be noted that, in the embodiment shown in fig. 1, the vehicle terminal 101 is taken as an example to be explained, and in other embodiments of the present invention, the video uploading party may also be other devices, such as a security monitoring camera, a mobile camera, and the like.
The implementation details of the technical scheme of the embodiment of the invention are explained in detail as follows:
fig. 2 schematically shows a flowchart of an uploading method of video data according to an embodiment of the present invention, which may be performed by a server, which may be the MEC server shown in fig. 1. Referring to fig. 2, the method for uploading video data at least includes steps S210 to S240, which are described in detail as follows:
in step S210, if a DNS query request sent by a video uploading party is received, replacing a source network address of the DNS query request with a network address of a target server to obtain a processed DNS query request.
In an embodiment of the present invention, the video uploading party may be a car data recorder, a security monitoring camera, a mobile camera, an intelligent mobile device (such as a smart phone and a tablet computer), and the like.
In an embodiment of the present invention, the source network address of the DNS query request is a network address of the video uploading party, and the network address may be an IP (Internet Protocol) address; the network address of the target server is the network address of the execution subject of the technical solution of the embodiment shown in fig. 2, and the network address may also be an IP address.
In an embodiment of the present invention, because the DNS query requests sent by the video uploading party are not all used for acquiring the network address of the video server, after receiving the DNS query request sent by the video uploading party, the target server may detect whether a domain name included in the DNS query request matches a domain name corresponding to a preset video server, and when detecting that the domain name included in the DNS query request matches a domain name corresponding to a preset video server, replace the source network address of the DNS query request with the network address of the target server.
Continuing to refer to fig. 2, in step S220, the processed DNS query request is sent to a DNS server, so that the DNS server determines, according to the network address of the target server, a video server that receives video data uploaded by the video uploading party, where the video server is configured to pre-process the video data uploaded by the video uploading party and transmit the pre-processed video data to a designated device.
In an embodiment of the present invention, the DNS server may determine, based on the correspondence between the network addresses, a video server that receives video data uploaded by the video uploading party according to the network address of the target server. Alternatively, the DNS server may prestore a correspondence between the network address of each target server and the network address of the corresponding video server, where the correspondence may be determined according to the distance, for example, the network address of the video server closer to each target server is associated with the network address of each target server.
In an embodiment of the present invention, the DNS server may also determine, according to the network address of the target server, a video server with a distance within a predetermined range and a low processing load as a video server that receives video data uploaded by the video uploading party.
In an embodiment of the present invention, the video server may filter out unclear video data, repeated video data, and practically irrelevant video data (e.g., road sign data is actually needed, so that non-road sign data may be filtered out) in the video data, which is uploaded by the video uploading party.
Continuing to refer to fig. 2, in step S230, DNS response information including the network address of the video server returned by the DNS server is received.
In step S240, the network address of the video server is returned to the video uploading party, so that the video uploading party uploads the video data to the video server through the network address of the video server.
In an embodiment of the present invention, the process of returning the network address of the video server to the video uploading party in step S240 may include: and replacing the destination network address of the DNS response information with the network address of the video uploading party to obtain the processed DNS response information, and then returning the processed DNS response information to the video uploading party.
The technical solution of the embodiment shown in fig. 2 is to explain the uploading method of video data of the embodiment of the present invention from the perspective of a target server (e.g., the MEC server shown in fig. 1), and the uploading method of video data of the embodiment of the present invention is further explained from the perspective of a video uploading party in conjunction with fig. 3.
Fig. 3 schematically shows a flowchart of an uploading method of video data, which may be performed by a video uploading party, such as the vehicle terminal shown in fig. 1, according to an embodiment of the present invention. Referring to fig. 3, the method for uploading video data at least includes steps S310 to S330, which are described in detail as follows:
in step S310, a DNS query request is sent to a target server, so that the target server sends the DNS query request to a DNS server and obtains DNS response information including a network address of a video server returned by the DNS server, where the video server is configured to pre-process video data uploaded by the video uploading party and transmit the pre-processed video data to a designated device.
In an embodiment of the present invention, the DNS query request sent by the video uploading party includes a domain name of the video server, so that it is convenient for the DNS server to determine that the DNS query request is a query request for acquiring a network address of the video server.
In step S320, the network address of the video server returned by the target server is received.
In an embodiment of the present invention, the target server may replace the destination network address of the received DNS response information returned by the DNS server with the network address of the video uploading party, obtain the processed DNS response information, and then return the processed DNS response information to the video uploading party.
In step S330, the video data is uploaded to the video server according to the network address of the video server.
In an embodiment of the present invention, the process of uploading the video data to the video server according to the network address of the video server in step S330 may specifically include the following two embodiments:
example 1:
the video uploading party uploads the acquired video data to the video server periodically according to the network address of the video server, namely, the video uploading party can actively upload the acquired video data.
Example 2:
the video uploading party can send the state information of the obtained video data to the video server according to the network address of the video server, and when a video obtaining request sent by the video server is received, the video data corresponding to the video obtaining request is uploaded to the video server, namely, the video server actively captures the video from the video uploading party.
In the technical solutions of the embodiments shown in fig. 2 and fig. 3, on one hand, the DNS server allocates a suitable video server to the video uploading party to reduce transmission delay of video data and improve uploading efficiency of video data, and on the other hand, since the network address of the target server replaces the source network address of the DNS query request and the video server is allocated according to the network address of the target server, the problem that the video server is difficult to capture a video actively due to the fact that the network address of the video uploading party is not fixed can also be avoided.
Fig. 4 schematically shows a flowchart of an uploading method of video data according to an embodiment of the present invention, which may be performed by a server, which may be the MEC server shown in fig. 1. Referring to fig. 4, the method for uploading video data at least includes steps S410 to S440, which are described in detail as follows:
in step S410, a data packet sent by the video uploading party is received.
In an embodiment of the present invention, the data packet sent by the video uploading party may be an HTTP packet, and the data packet may include video data uploaded by the video uploading party, for example, the video uploading party may periodically send the obtained video data in the form of a data packet.
In an embodiment of the present invention, the data packet sent by the video uploading party may also not include video data, but only include status information of the video data, where the status information may be an acquisition condition (such as an acquisition location, an acquisition duration) of the video data, and the like. In this case, when video acquisition information sent by the video server according to the video data state information is received, the video acquisition information may be sent to the video uploading party, and the video uploading party may upload corresponding video data based on the video acquisition information.
In step S420, a video server for receiving the video data uploaded by the video uploading party is determined according to the data packet, and the video server is configured to pre-process the video data uploaded by the video uploading party and transmit the video data to a designated device.
In an embodiment of the present invention, the video server that receives the video data uploaded by the video uploading party may be determined according to the network address included in the data packet based on the correspondence relationship between the network addresses. For example, a video server with a short distance is allocated to receive the video data uploaded by the video uploading party, or a video server with a short distance within a predetermined range and a low processing load is allocated to receive the video data uploaded by the video uploading party.
In an embodiment of the present invention, since the data packets sent by the video uploading party are not all related to transmitting video data, after receiving the data packets sent by the video uploading party, it may be detected whether the data packets include predetermined host information and search PATH information of the device executable file, and when detecting that the data packets include the predetermined host information and the search PATH information of the device executable file, a video server for receiving the video data uploaded by the video uploading party is determined according to the data packets.
In step S430, the destination address of the data packet is replaced with the network address of the video server, so as to obtain a processed data packet.
In one embodiment of the invention, the network address of the video server may be an IP address.
In step S440, the processed data packet is sent to the video server, so that the video server obtains the video data uploaded by the video uploading party based on the data packet.
In an embodiment of the present invention, if the data packet includes video data, the video server may obtain the video data from the data packet; if the data message only contains the video data state information, the video server can send a video data acquisition request according to the video data state information, and then the video uploading party can upload corresponding video data accordingly.
In an embodiment of the present invention, when response information for the data packet returned by the video server is received, a source network address of the response information may be replaced with a destination address of the data packet to obtain processed response information, and then the processed response information is returned to the video uploading party.
The technical solution of the embodiment shown in fig. 4 enables the most suitable video server (for example, the video server with the closest distribution distance and/or the video server with the smaller processing load) to be allocated to the video uploading party, so that the transmission delay of the video data can be reduced, and the uploading efficiency of the video data is improved. Meanwhile, the video server is used for preprocessing the video data uploaded by the video uploading party and then transmitting the preprocessed video data to the designated equipment (such as a background cloud server), so that the video server can filter useless data, the data amount transmitted to the designated equipment is reduced, and the consumption of network resources can be further saved.
The implementation details of the technical scheme of the embodiment of the invention are elaborated in detail by taking a vehicle event data recorder as a video uploading party, an MEC server as a target server and a video preprocessing server as a video processor as follows:
in the embodiment of the present invention, the car event data recorder may actively upload video data to the video preprocessing server, or the video preprocessing server actively captures video data from a driving record, which is described in different embodiments below.
Embodiment 1 of vehicle event data recorder actively uploading video data
Referring to fig. 5, a method for uploading video data according to an embodiment of the present invention includes the following steps:
step S501, the automobile data recorder sends a DNS query request to the MEC server, where the DNS query request may be a UDP (User Datagram Protocol) message with a destination port of 53.
Step S502, after receiving the DNS query request, the MEC server detects the DNS query request, and if it is detected that the DNS query request includes a predetermined domain name (e.g., < bucktname > - < APPID >. cos. < Region >. myqcloud. com), performs a dyeing process, that is, replaces the source IP address of the DNS query request with the address of the MEC server.
In one embodiment of the present invention, the dyeing process in step S502 is implemented in a NAPT (network address Port Translation) based manner. Specifically, the MEC server replaces the source IP address in the DNS query request with the outer network address of the MEC server and replaces the source port number of the DNS query request with the locally unique port number of the MEC server. Meanwhile, the MEC server may locally record the mapping relationship so as to perform a reverse mapping operation on subsequent DNS responses from the intelligent DNS server.
In another embodiment of the present invention, the MEC server may further perform the coloring process on the DNS query request sent by the automobile data recorder in the form of a transparent proxy server, and detect all traffic between the radio access network and the radio core network in a transparent proxy manner.
In step S503, after processing the DNS query request, the MEC server forwards the DNS query request to the intelligent DNS server.
Step S504, a mapping relationship between the network address of the MEC server and the network address of the video preprocessing server is established in the IP address library of the intelligent DNS server. Therefore, when the intelligent DNS server receives the DNS query request with the source IP address being the external network address of the MEC server, the address of the video preprocessing server is returned in the DNS response.
In one embodiment of the invention, if the intelligent DNS server does not find the network address of the video pre-processing server corresponding to the outer network address of the MEC server, a default background server address may be returned in the DNS response.
In step S505, the intelligent DNS server returns a DNS response to the MEC server.
In step S506, after receiving the DNS response, the MEC server replaces the destination IP address of the DNS response with the address of the automobile data recorder.
In step S507, the MEC server sends the processed DNS response to the event data recorder.
Step S508, after receiving the DNS response, the event data recorder acquires the network address of the video preprocessing server, and then may initiate an HTTP connection to the video preprocessing server, and upload the video by the PUT method.
In an embodiment of the present invention, the automobile data recorder may upload the video to the video preprocessing server at regular time, for example, every 30 minutes, and this process may be automatically implemented by the automobile data recorder without intervention of the vehicle user.
Embodiment 2 of the automobile data recorder actively uploading video data
Referring to fig. 6, a method for uploading video data according to an embodiment of the present invention includes the following steps:
step S601, the automobile data recorder sends an HTTP request message (the HTTP request message includes video data to be uploaded) to the MEC server, where the HTTP request message may be a TCP message with a destination port of 80.
Step S602, after receiving the HTTP request message sent by the automobile data recorder, the MEC server detects the HTTP request message from the automobile data recorder, and if the MEC server detects that the HTTP request message includes predetermined Host information (e.g., < bucktname > - < APPID >. cos. < Region >. myqcloud. com) and PATH information (/ < ObjectName >), replaces the destination IP address of the HTTP request message with the address of the video preprocessing server.
In one embodiment of the present invention, the MEC server in step S602 may process the HTTP request packet forwarded to the video pre-processing server in the form of a reverse transparent proxy. Specifically, the MEC server replaces the destination IP address of the HTTP request message with the IP address of the video preprocessing server, and records the direct correspondence between the source IP address and the source port number of the corresponding HTTP request message and the original destination IP address, namely < (source IP, source port), destinationIP >.
Step S603, the MEC server forwards the processed HTTP request packet to the video pre-processing server.
In step S604, the video preprocessing server sends HTTP response information to the MEC server, where the HTTP response information may include the receiving condition of the video data and the like.
Step S605, after receiving the HTTP response information sent by the video preprocessing server, the MEC server replaces the source IP address of the HTTP response information with the destination IP address of the HTTP request message according to the correspondence recorded in advance.
Step S606, the MEC server forwards the processed HTTP response information to the automobile data recorder.
Example 1 where video preprocessing Server actively grabs video data from Driving record
Referring to fig. 7, a method for uploading video data according to an embodiment of the present invention includes the following steps:
in step S701, the automobile data recorder sends a DNS query request to the MEC server, where the DNS query request may be a UDP packet with a destination port of 53.
In step S702, after receiving the DNS query request, the MEC server detects the DNS query request, and if it is detected that the DNS query request includes a predetermined domain name (e.g., < bucktname > - < APPID >. cos. < Region >. myqcloud. com), performs a dyeing process, that is, replaces the source IP address of the DNS query request with the address of the MEC server.
In one embodiment of the present invention, the step S702 is implemented in a NAPT-based manner when performing the staining process. Specifically, the MEC server replaces the source IP address in the DNS query request with the outer network address of the MEC server and replaces the source port number of the DNS query request with the locally unique port number of the MEC server. Meanwhile, the MEC server may locally record the mapping relationship so as to perform a reverse mapping operation on subsequent DNS responses from the intelligent DNS server.
In step S703, the MEC server forwards the DNS query request to the intelligent DNS server after processing the DNS query request.
Step S704, a mapping relationship between the network address of the MEC server and the network address of the video preprocessing server is established in the IP address library of the intelligent DNS server. Therefore, when the intelligent DNS server receives the DNS query request with the source IP address being the external network address of the MEC server, the address of the video preprocessing server is returned in the DNS response.
In one embodiment of the invention, if the intelligent DNS server does not find the network address of the video pre-processing server corresponding to the outer network address of the MEC server, a default background server address may be returned in the DNS response.
In step S705, the intelligent DNS server returns a DNS response to the MEC server.
In step S706, after receiving the DNS response, the MEC server replaces the destination IP address of the DNS response with the address of the automobile data recorder.
In step S707, the MEC server sends the processed DNS response to the event data recorder.
Step S708, after receiving the DNS response, the event data recorder acquires the network address of the video preprocessing server, and then may initiate an HTTP connection to the video preprocessing server, and send video data state information, such as a collection location and a collection duration.
In one embodiment of the invention, the tachograph may send video data status information to the video pre-processing server at regular time intervals (e.g., 5 minutes).
Step S709, the video preprocessing server captures corresponding video data from the event data recorder according to the received video data state information. Specifically, after the video preprocessing server receives the video data state information, it can determine whether to initiate video capture. If the video needs to be acquired, the video preprocessing server can send a video acquisition command, and the automobile data recorder initiates video uploading after receiving the video acquisition command; if the video does not need to be collected, the video preprocessing server can keep a silent state after receiving the video data state information.
Example 2 where video preprocessing Server actively grabs video data from Driving record
Referring to fig. 8, a method for uploading video data according to an embodiment of the present invention includes the following steps:
in step S801, the automobile data recorder sends an HTTP request message (the HTTP request message includes state information of the video data) to the MEC server, where the HTTP request message may be a TCP message with a destination port of 80.
Step S802, after receiving the HTTP request message sent by the automobile data recorder, the MEC server detects the HTTP request message from the automobile data recorder, and if the MEC server detects that the HTTP request message includes predetermined Host information (e.g., < bucktname > - < APPID >. cos. < Region >. myqcloud. com) and PATH information (/ < ObjectName >), replaces the destination IP address of the HTTP request message with the address of the video preprocessing server.
In one embodiment of the present invention, the MEC server may process the HTTP request packet forwarded to the video pre-processing server in the form of a reverse transparent proxy in step S802. Specifically, the MEC server replaces the destination IP address of the HTTP request message with the IP address of the video preprocessing server, and records the direct correspondence between the source IP address and the source port number of the corresponding HTTP request message and the original destination IP address, namely < (source IP, source port), destinationIP >.
Step S803, the MEC server forwards the processed HTTP request packet to the video pre-processing server.
In step S804, the video preprocessing server sends HTTP response information to the MEC server, where the HTTP response information may include capture information of the video data (e.g., host information for receiving the video data and informing the car recorder to upload the video data to the car recorder), and the like.
Step S805, after receiving the HTTP response information sent by the video preprocessing server, the MEC server replaces the source IP address of the HTTP response information with the original destination IP address of the HTTP request message according to the correspondence recorded in advance.
Step S806, the MEC server forwards the processed HTTP response information to the automobile data recorder, so that the automobile data recorder uploads the video data accordingly.
According to the technical scheme of the embodiment of the invention, more time is reserved for video identification processing by utilizing the ultra-short transmission time delay between the video preprocessing server and the automobile data recorder, so that the accuracy of subsequent video data identification processing can be improved. In addition, when the number of the automobile data recorders is changed, the technical scheme of the embodiment of the invention can utilize the computing resources in the edge computing facility to perform elastic processing. For example, if the number of the automobile data recorders is increased, more computing resources are provided for the video preprocessing server to enhance the processing capacity of the video preprocessing server. Otherwise, the computing resources are released, and the system operation cost is saved.
In addition, the technical scheme of the embodiment of the invention can effectively reduce the video data volume transmitted to the background server and save network resources by introducing the video preprocessing server. Meanwhile, the video preprocessing server bears most of the video analysis and identification work, so that the configuration requirement on the automobile data recorder can be reduced, and the deployment cost is saved.
In addition, the technical scheme of the embodiment of the invention enables the automobile data recorder to automatically upload videos without manual operation, thereby realizing the automation of road data acquisition and improving the timeliness of data updating. And the processing capacity of the MEC server is enhanced, so that the automobile data recorder can be automatically accessed to the video preprocessing server close to the position of the automobile data recorder, and the heavy work such as scanning a large number of IP address sections which can occur when the server actively grabs the video is avoided.
It should be noted that, in the embodiments shown in fig. 5 to fig. 8, a car recorder is taken as an example to explain, and in other embodiments of the present invention, the video uploading party may also be other devices, such as a security monitoring camera, a mobile camera, an intelligent terminal, and the like.
The following describes an embodiment of an apparatus of the present invention, which may be used to execute the method for uploading video data in the above embodiment of the present invention. For details that are not disclosed in the embodiments of the apparatus of the present invention, please refer to the embodiments of the method for uploading video data of the present invention.
Fig. 9 schematically shows a block diagram of an uploading apparatus of video data according to an embodiment of the present invention.
Referring to fig. 9, an apparatus 900 for uploading video data according to an embodiment of the present invention includes: a processing unit 902, a first transmitting unit 904, a receiving unit 906 and a second transmitting unit 908.
The processing unit 902 is configured to, when receiving a domain name system DNS query request sent by a video uploading party, replace a source network address of the DNS query request with a network address of a target server to obtain a processed DNS query request; the first sending unit 904 is configured to send the processed DNS query request to a DNS server, so that the DNS server determines, according to the network address of the target server, a video server that receives video data uploaded by the video uploading party, where the video server is configured to pre-process the video data uploaded by the video uploading party and transmit the pre-processed video data to a designated device; the receiving unit 906 is configured to receive DNS response information including the network address of the video server, which is returned by the DNS server; the second sending unit 908 is configured to return the network address of the video server to the video uploading party, so that the video uploading party uploads the video data to the video server through the network address of the video server.
In an embodiment of the present invention, the uploading device 900 of the video data further includes: a detection unit, configured to detect whether a domain name included in the DNS query request matches a domain name corresponding to a preset video server; the processing unit is configured to replace a source network address of the DNS query request with a network address of the target server when a domain name included in the DNS query request matches a domain name corresponding to a preset video server.
In an embodiment of the present invention, the second sending unit 908 is configured to: replacing the destination network address of the DNS response information with the network address of the video uploading party to obtain the processed DNS response information; and returning the processed DNS response information to the video uploading party.
Fig. 10 schematically shows a block diagram of an uploading apparatus of video data according to an embodiment of the present invention.
Referring to fig. 10, an upload apparatus 1000 of video data according to an embodiment of the present invention includes: a transmitting unit 1002, a receiving unit 1004, and an uploading unit 1006.
The sending unit 1002 is configured to send a DNS query request to a target server, so that the target server sends the DNS query request to a DNS server and obtains DNS response information including a network address of a video server, where the DNS response information is returned by the DNS server, and the video server is configured to pre-process video data uploaded by the video uploading party and transmit the pre-processed video data to a designated device; the receiving unit 1004 is configured to receive a network address of the video server returned by the target server; the uploading unit 1006 is configured to upload video data to the video server according to the network address of the video server.
In an embodiment of the present invention, the uploading unit 1006 is configured to: periodically uploading the acquired video data to the video server according to the network address of the video server; or sending the state information of the acquired video data to the video server according to the network address of the video server, and uploading the video data corresponding to the video acquisition request to the video server when receiving the video acquisition request sent by the video server.
Fig. 11 schematically shows a block diagram of an uploading apparatus of video data according to an embodiment of the present invention.
Referring to fig. 11, an upload apparatus 1100 of video data according to an embodiment of the present invention includes: a receiving unit 1102, a first processing unit 1104, a second processing unit 1106 and a transmitting unit 1108.
The receiving unit 1102 is configured to receive a data packet sent by a video uploading party; the first processing unit 1104 is configured to determine, according to the data packet, a video server for receiving video data uploaded by the video uploading party, where the video server is configured to pre-process the video data uploaded by the video uploading party and transmit the pre-processed video data to a designated device; the second processing unit 1106 is configured to replace the destination address of the data packet with the network address of the video server, so as to obtain a processed data packet; the sending unit 1108 is configured to send the processed data packet to the video server, so that the video server obtains the video data uploaded by the video uploading party based on the data packet.
In an embodiment of the present invention, the apparatus 1100 for uploading video data further includes: a detection unit, configured to detect whether the data packet contains predetermined host information and PATH information of a search PATH of a device executable file; the first processing unit 1104 is configured to determine, when the data packet includes the predetermined host information and the search PATH information of the device executable file, a video server for receiving the video data uploaded by the video uploading party according to the data packet.
In an embodiment of the present invention, the apparatus 1100 for uploading video data further includes: the third processing unit is used for replacing a source network address of the response information with a destination address of the data message when receiving the response information aiming at the data message returned by the video server, so as to obtain the processed response information; the sending unit 1108 is further configured to return the processed response information to the video uploading party.
In an embodiment of the present invention, the receiving unit 1102 is configured to: and receiving a data message containing video data periodically sent by a video uploading party.
In an embodiment of the present invention, the receiving unit 1102 is configured to: receiving a data message which is sent by a video uploading party and contains video data state information; the sending unit 1108 is further configured to: and when video acquisition information sent by the video server according to the video data state information is received, sending the video acquisition information to the video uploading party so that the video uploading party uploads corresponding video data based on the video acquisition information.
FIG. 12 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
It should be noted that the computer system 1200 of the electronic device shown in fig. 12 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiment of the present invention.
As shown in fig. 12, the computer system 1200 includes a Central Processing Unit (CPU)1201, which can perform various appropriate actions and processes in accordance with a program stored in a Read-Only Memory (ROM) 1202 or a program loaded from a storage section 1208 into a Random Access Memory (RAM) 1203. In the RAM 1203, various programs and data necessary for system operation are also stored. The CPU1201, ROM 1202, and RAM 1203 are connected to each other by a bus 1204. An Input/Output (I/O) interface 1205 is also connected to bus 1204.
The following components are connected to the I/O interface 1205: an input section 1206 including a keyboard, a mouse, and the like; an output section 1207 including a Display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 1208 including a hard disk and the like; and a communication section 1209 including a network interface card such as a LAN (Local area network) card, a modem, or the like. The communication section 1209 performs communication processing via a network such as the internet. A driver 1210 is also connected to the I/O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is mounted on the drive 1210 as necessary, so that a computer program read out therefrom is mounted into the storage section 1208 as necessary.
In particular, according to an embodiment of the present invention, the processes described below with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 1209, and/or installed from the removable medium 1211. The computer program executes various functions defined in the system of the present application when executed by a Central Processing Unit (CPU) 1201.
It should be noted that the computer readable medium shown in the embodiment of the present invention may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method described in the above embodiments.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the invention is not limited to the precise arrangements 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 invention is limited only by the appended claims.

Claims (15)

1. A method for uploading video data is characterized by comprising the following steps:
if a Domain Name System (DNS) query request sent by a video uploading party is received, replacing a source network address of the DNS query request with a network address of a target server to obtain a processed DNS query request;
sending the processed DNS query request to a DNS server so that the DNS server can determine a video server for receiving video data uploaded by the video uploading party according to the network address of the target server, wherein the video server is used for preprocessing the video data uploaded by the video uploading party and then transmitting the video data to designated equipment;
receiving DNS response information which is returned by the DNS and contains the network address of the video server;
and returning the network address of the video server to the video uploading party so that the video uploading party uploads the video data to the video server through the network address of the video server.
2. The method according to claim 1, wherein before replacing the network address of the destination server with the network address of the DNS query request, the method further comprises:
detecting whether the domain name contained in the DNS query request is matched with a domain name corresponding to a preset video server;
and if the domain name contained in the DNS query request is matched with the domain name corresponding to a preset video server, executing a process of replacing the source network address of the DNS query request with the network address of the target server.
3. The method for uploading video data according to claim 1 or 2, wherein returning the network address of the video server to the video uploading party comprises:
replacing the destination network address of the DNS response information with the network address of the video uploading party to obtain the processed DNS response information;
and returning the processed DNS response information to the video uploading party.
4. A method for uploading video data is characterized by comprising the following steps:
sending a DNS query request to a target server so that the target server sends the DNS query request to the DNS server and obtains DNS response information which is returned by the DNS server and contains a network address of a video server, wherein the video server is used for preprocessing video data uploaded by the video uploading party and then transmitting the video data to designated equipment;
receiving the network address of the video server returned by the target server;
and uploading video data to the video server according to the network address of the video server.
5. The method for uploading video data according to claim 4, wherein uploading video data to the video server according to the network address of the video server comprises:
periodically uploading the acquired video data to the video server according to the network address of the video server; or
And sending the state information of the acquired video data to the video server according to the network address of the video server, and uploading the video data corresponding to the video acquisition request to the video server when receiving the video acquisition request sent by the video server.
6. A method for uploading video data is characterized by comprising the following steps:
receiving a data message sent by a video uploading party;
determining a video server for receiving the video data uploaded by the video uploading party according to the data message, wherein the video server is used for preprocessing the video data uploaded by the video uploading party and then transmitting the video data to a designated device;
replacing the destination address of the data message with the network address of the video server to obtain a processed data message;
and sending the processed data message to the video server so that the video server acquires the video data uploaded by the video uploading party based on the data message.
7. The method for uploading video data according to claim 6, wherein before determining, according to the data packet, a video server for receiving the video data uploaded by the video uploading party, the method for uploading video data further comprises:
detecting whether the data message contains predetermined host information and search PATH information of the device executable file;
and if the data message contains the preset host information and the search PATH PATH information of the equipment executable file, executing a process of determining a video server for receiving the video data uploaded by the video uploading party according to the data message.
8. The method for uploading video data according to claim 6, further comprising:
if response information aiming at the data message returned by the video server is received, replacing a source network address of the response information with a destination address of the data message to obtain processed response information;
and returning the processed response information to the video uploading party.
9. The method according to any one of claims 6 to 8, wherein receiving the data packet sent by the video uploading party includes:
and receiving a data message containing video data periodically sent by a video uploading party.
10. The method according to any one of claims 6 to 8, wherein receiving the data packet sent by the video uploading party includes: receiving a data message which is sent by a video uploading party and contains video data state information;
the method for uploading the video data further comprises the following steps: and if video acquisition information sent by the video server according to the video data state information is received, sending the video acquisition information to the video uploading party so that the video uploading party uploads corresponding video data based on the video acquisition information.
11. An apparatus for uploading video data, comprising:
the processing unit is used for replacing a source network address of the DNS query request with a network address of a target server to obtain a processed DNS query request when the DNS query request of a domain name system sent by a video uploading party is received;
the first sending unit is used for sending the processed DNS query request to a DNS server so that the DNS server can determine a video server for receiving video data uploaded by the video uploading party according to the network address of the target server, and the video server is used for preprocessing the video data uploaded by the video uploading party and then transmitting the preprocessed video data to designated equipment;
a receiving unit, configured to receive DNS response information including a network address of the video server, where the DNS response information is returned by the DNS server;
and the second sending unit is used for returning the network address of the video server to the video uploading party so that the video uploading party uploads the video data to the video server through the network address of the video server.
12. An apparatus for uploading video data, comprising:
the device comprises a sending unit, a receiving unit and a sending unit, wherein the sending unit is used for sending a DNS query request to a target server so that the target server sends the DNS query request to the DNS server and obtains DNS response information which is returned by the DNS server and contains a network address of a video server, and the video server is used for preprocessing video data uploaded by a video uploading party and then transmitting the preprocessed video data to designated equipment;
the receiving unit is used for receiving the network address of the video server returned by the target server;
and the uploading unit is used for uploading the video data to the video server according to the network address of the video server.
13. An apparatus for uploading video data, comprising:
the receiving unit is used for receiving a data message sent by a video uploading party;
the first processing unit is used for determining a video server used for receiving the video data uploaded by the video uploading party according to the data message, and the video server is used for preprocessing the video data uploaded by the video uploading party and then transmitting the video data to a designated device;
the second processing unit is used for replacing the destination address of the data message with the network address of the video server to obtain a processed data message;
and the sending unit is used for sending the processed data message to the video server so that the video server obtains the video data uploaded by the video uploading party based on the data message.
14. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out an upload method of video data according to one of the claims 1 to 3, and/or carries out an upload method of video data according to one of the claims 4 or 5, and/or carries out an upload method of video data according to one of the claims 6 to 10.
15. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method of uploading video data as claimed in any one of claims 1 to 3, and/or to implement a method of uploading video data as claimed in claim 4 or 5, and/or to implement a method of uploading video data as claimed in any one of claims 6 to 10.
CN201811360883.1A 2018-11-15 2018-11-15 Video data uploading method and device, computer readable medium and electronic equipment Active CN110896410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811360883.1A CN110896410B (en) 2018-11-15 2018-11-15 Video data uploading method and device, computer readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811360883.1A CN110896410B (en) 2018-11-15 2018-11-15 Video data uploading method and device, computer readable medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110896410A true CN110896410A (en) 2020-03-20
CN110896410B CN110896410B (en) 2022-03-18

Family

ID=69785412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811360883.1A Active CN110896410B (en) 2018-11-15 2018-11-15 Video data uploading method and device, computer readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110896410B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111964686A (en) * 2020-07-20 2020-11-20 汉海信息技术(上海)有限公司 Road data acquisition method, device, server, automobile data recorder and medium
CN113993104A (en) * 2021-10-26 2022-01-28 中汽创智科技有限公司 Data transmission method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238059A (en) * 2010-04-20 2011-11-09 中兴通讯股份有限公司 Data message processing method and system and access service node
CN105681387A (en) * 2015-11-26 2016-06-15 乐视云计算有限公司 Method, device and system for uploading live video
US20170048876A1 (en) * 2015-08-14 2017-02-16 Nec Laboratories America, Inc. Enabling high-bandwidth, responsive mobile applications in lte networks
CN106488504A (en) * 2015-08-28 2017-03-08 华为技术有限公司 Network system and the method for network service
CN107172664A (en) * 2016-03-07 2017-09-15 大唐移动通信设备有限公司 Data transmission method, apparatus and system
CN107172111A (en) * 2016-03-07 2017-09-15 大唐移动通信设备有限公司 A kind of data transmission method, apparatus and system
CN104509066B (en) * 2014-06-05 2017-10-27 胡汉强 A kind of method and the network equipment, management server for accessing network
CN108156210A (en) * 2016-12-06 2018-06-12 腾讯科技(深圳)有限公司 The acquisition methods and device of target resource

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238059A (en) * 2010-04-20 2011-11-09 中兴通讯股份有限公司 Data message processing method and system and access service node
CN104509066B (en) * 2014-06-05 2017-10-27 胡汉强 A kind of method and the network equipment, management server for accessing network
US20170048876A1 (en) * 2015-08-14 2017-02-16 Nec Laboratories America, Inc. Enabling high-bandwidth, responsive mobile applications in lte networks
CN106488504A (en) * 2015-08-28 2017-03-08 华为技术有限公司 Network system and the method for network service
CN105681387A (en) * 2015-11-26 2016-06-15 乐视云计算有限公司 Method, device and system for uploading live video
CN107172664A (en) * 2016-03-07 2017-09-15 大唐移动通信设备有限公司 Data transmission method, apparatus and system
CN107172111A (en) * 2016-03-07 2017-09-15 大唐移动通信设备有限公司 A kind of data transmission method, apparatus and system
CN108156210A (en) * 2016-12-06 2018-06-12 腾讯科技(深圳)有限公司 The acquisition methods and device of target resource

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111964686A (en) * 2020-07-20 2020-11-20 汉海信息技术(上海)有限公司 Road data acquisition method, device, server, automobile data recorder and medium
CN111964686B (en) * 2020-07-20 2022-07-12 汉海信息技术(上海)有限公司 Road data acquisition method, device, server, automobile data recorder and medium
CN113993104A (en) * 2021-10-26 2022-01-28 中汽创智科技有限公司 Data transmission method, device, equipment and storage medium
CN113993104B (en) * 2021-10-26 2023-12-26 中汽创智科技有限公司 Data transmission method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110896410B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
EP3296975A1 (en) Collection and provision method, device, system and server for vehicle image data
CN110896410B (en) Video data uploading method and device, computer readable medium and electronic equipment
WO2017214241A1 (en) Information presentation method, device, and system
CN104038528A (en) Relay apparatus, system, and method
WO2019052355A1 (en) Image processing method, computer device, and computer readable storage medium
CN104378435A (en) Method for transmitting file between browser of computing device and mobile terminal
CN106776917B (en) Method and device for acquiring resource file
CN112965879A (en) Data processing method and device, electronic equipment and readable storage medium
CN109309734B (en) Method and device for transmitting data
CN113359674A (en) Vehicle diagnostic system, method, electronic device, and storage medium
CN105490917A (en) Sharing method and device in application
CN111198859A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN111049888B (en) Data uploading method and device, vehicle-mounted terminal, electronic equipment and storage medium
CN113872967A (en) Vehicle information transmission method and device, electronic equipment and storage medium
CN104683496A (en) Address filtering method and device
CN116303126B (en) Caching method, data processing method and electronic equipment
CN110083736B (en) Violation information processing method and device
CN103685491A (en) Application service providing method, system and related equipment
CN111240786A (en) Walkthrough method and device, electronic equipment and storage medium
CN112511657B (en) Information processing method and device for intelligent networked vehicle data remote management
CN115695416A (en) File downloading method, device, medium and equipment based on cloud storage service
CN111104528B (en) Picture acquisition method and device and client
JP6412641B2 (en) Communication link transmission method, apparatus and terminal
CN110334763B (en) Model data file generation method, model data file generation device, model data file identification device, model data file generation apparatus, model data file identification apparatus, and model data file identification medium
US9003124B2 (en) Managing a region cache

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40022479

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant