WO2017092338A1 - 一种数据传输的方法和装置 - Google Patents

一种数据传输的方法和装置 Download PDF

Info

Publication number
WO2017092338A1
WO2017092338A1 PCT/CN2016/089279 CN2016089279W WO2017092338A1 WO 2017092338 A1 WO2017092338 A1 WO 2017092338A1 CN 2016089279 W CN2016089279 W CN 2016089279W WO 2017092338 A1 WO2017092338 A1 WO 2017092338A1
Authority
WO
WIPO (PCT)
Prior art keywords
data stream
live
live data
camera device
resource address
Prior art date
Application number
PCT/CN2016/089279
Other languages
English (en)
French (fr)
Inventor
杨星
Original Assignee
乐视控股(北京)有限公司
乐视致新电子科技(天津)有限公司
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 乐视控股(北京)有限公司, 乐视致新电子科技(天津)有限公司 filed Critical 乐视控股(北京)有限公司
Priority to US15/245,104 priority Critical patent/US20170164016A1/en
Publication of WO2017092338A1 publication Critical patent/WO2017092338A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2381Adapting the multiplex stream to a specific network, e.g. an Internet Protocol [IP] network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • 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/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/611Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
    • 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
    • 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
    • H04L65/756Media network packet handling adapting media to device capabilities
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/4223Cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/64322IP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a method and apparatus for data transmission.
  • the IP Camera has all the image capture functions of the traditional camera. It can also transmit live video and audio over the Internet or an internal LAN.
  • the inventors found that some manufacturers currently communicate directly with the manufacturer's own unique server through IP Camera and send control commands. There are also some manufacturers that use the P2P method, that is, the live terminal and the IP Camera to perform direct connection control operations. This communication method requires a point-to-point connection between the live terminal and the IP Camera.
  • the above-mentioned live video communication is usually a single device interacting with the server, and the live video communication is relatively simple.
  • the technical problem to be solved by the embodiments of the present invention is to provide a method for data transmission, which solves the problem of complicated video communication.
  • the embodiment of the invention further provides a device for data transmission, which is used to ensure the implementation and application of the above method.
  • the present invention discloses a data transmission method, the method comprising: receiving a live data stream sent by at least two camera devices; wherein the live data stream is encoded by the camera device according to the first protocol. After being sent, the live data stream is subjected to protocol conversion for each live data stream, and each converted live data stream is obtained; and each converted live data stream is obtained. Upload to the live server at the same time.
  • the embodiment of the invention further discloses a device for data transmission, the device comprising: a receiving module, configured to receive a live data stream sent by at least two camera devices; wherein the live data stream is a camera device according to the first After the protocol is encoded, the conversion module is configured to perform protocol conversion on the live data stream for each live data stream, to obtain each converted live data stream, and an uploading module, configured to convert each converted live data stream. Upload to the live server at the same time.
  • Embodiments of the present invention provide a computer program comprising computer readable code that, when executed on an electronic device, causes the electronic device to perform the method of data transmission described above.
  • Embodiments of the present invention provide a computer readable medium in which the above computer program is stored.
  • the embodiment of the present invention includes the following advantages: receiving live data streams sent by at least two camera devices; performing protocol conversion on the live data streams for each live data stream, and obtaining live broadcasts after each conversion Data stream; upload each converted live stream to the live server at the same time. Therefore, the live data stream of multiple camera devices can be transmitted through the router, so that the live video communication is more diverse.
  • FIG. 1 is a flow chart showing the steps of an embodiment of a method for data transmission according to the present invention
  • FIG. 2 is a flow chart showing the steps of another embodiment of a method for data transmission according to the present invention.
  • Embodiment 3 is a flow chart showing the steps of an embodiment of a method for playing a live data stream in Embodiment 2 of the present invention
  • FIG. 4 is a block diagram showing the structure of an apparatus for data transmission according to the present invention.
  • FIG. 5 is a structural block diagram of another embodiment of an apparatus for data transmission according to the present invention.
  • Figure 6 shows schematically a block diagram of an electronic device for performing the method according to the invention
  • Fig. 7 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • the present application provides a method for data transmission, by receiving a live data stream sent by at least two camera devices, and performing protocol conversion on the live data stream for each live data stream.
  • the live data stream after each conversion is obtained; and the converted live data stream is simultaneously uploaded to the live server. Therefore, the live data stream of multiple camera devices can be transmitted through the router, so that the live video communication is more diverse.
  • homes, shopping malls, and the like usually have video live broadcast requirements such as monitoring through a camera device, or webcast through a camera device.
  • video live broadcast requirements such as monitoring through a camera device, or webcast through a camera device.
  • the user can monitor the daily situation of the home in real time through IP Camera, TV camera and other devices when going out, and the monitoring of multiple camera devices can satisfy multi-angle and all-round monitoring.
  • the user needs to know the captured picture in real time, so it needs to be transmitted to the user through the network. Therefore, the embodiment of the present invention implements synchronous transmission of live data streams of different camera devices through a router.
  • FIG. 1 a flow chart of steps of a method for data transmission according to the present invention is shown, which may specifically include the following steps:
  • Step S102 Receive a live data stream sent by at least two camera devices, where the live data stream is sent by the camera device according to the first protocol.
  • the image pickup apparatus of the embodiment of the present invention refers to a terminal device having a real-time photographing function, and takes a photo Video devices can transmit live video and audio over the Internet or an internal LAN. Therefore, the camera device may include an IP camera such as a camera having a network communication function, and may also include a smart phone with a camera, a smart TV, a tablet computer, and the like.
  • the live video data is captured and generated by the at least two camera devices in real time, and then the live video data is encoded by the camera device according to a first protocol, such as Real-time Transport Protocol (RTP), to generate a live data stream.
  • the camera device transmits the live data stream to the router.
  • RTP is a network transmission protocol that specifies the standard packet format for delivering audio and video over the Internet.
  • the router receives the live data stream sent by at least two camera devices.
  • Step S104 Perform protocol conversion on the live data stream for each live data stream to obtain each converted live data stream.
  • the router Since the live server only receives the data encoded according to the specific protocol, and the first protocol of the embodiment of the present invention does not belong to the scope of the specific protocol, after the router receives the live data stream sent by the at least two camera devices, the router needs to The live data stream is converted by the protocol. In order to ensure the synchronization of the live data streams, protocol conversion can be performed on each live data stream to obtain the converted live data stream.
  • Step S106 Upload each converted live data stream to the live broadcast server at the same time.
  • the server can receive the converted live data stream.
  • the converted live data stream is simultaneously uploaded to the live server through the router.
  • the live broadcast terminal can obtain the required live data stream from the live server through the router and play the corresponding live video.
  • the live data stream sent by the at least two camera devices is received; for each live data stream, the live data stream is protocol-converted to obtain each converted live data stream; and each converted live data is obtained.
  • the stream is simultaneously uploaded to the live server. Therefore, the live data stream of multiple camera devices can be transmitted through the router, so that the live video communication is more diverse.
  • the camera device and the router in the embodiment of the present invention comply with the ONVIF protocol, wherein the ONVIF protocol is a global open interface standard, which ensures interoperability of network video products produced by different vendors.
  • the camera device and the router realize the interworking of each device in the ONVIF protocol through the software development kit (SDK, Software Development Kit) and the SDK on the router side.
  • the method may include the following steps:
  • Step S202 The router receives the registration request sent by the imaging device, and respectively assigns a registration identifier to each camera device according to the registration request.
  • the router Before the camera device and the router transmit data, you need to register with the router to establish a connection with the router.
  • the router receives the registration request sent by the camera device, and assigns a registration identifier, such as an Internet Protocol (IP) address, to each camera device according to the registration request.
  • IP Internet Protocol
  • the router can distinguish different camera devices according to the registration identifier.
  • Step S204 Perform shooting by at least two imaging devices and generate a live data stream.
  • Step S206 Each camera device sends the live data stream to a router.
  • the at least two camera devices capture and generate live video data in real time, and the live video data is encoded by the SDK of the camera device according to a first protocol, such as Real-time Transport Protocol (RTP), to generate a live data stream.
  • the camera device transmits the live data stream to the router.
  • the SDK on the camera device can perform RTP transmission on the video captured in real time, and can also store the captured video, which is generally stored in MP4 format. It can be realized by two processes such as the writer working at the same time. One writer performs RTP transmission, that is, transmission of live data stream, and another writer performs storage of the captured video, that is, shooting and generating a live data stream.
  • Step S208 The router receives the live data stream sent by the at least two camera devices.
  • the live data stream is sent by the camera device according to the first protocol.
  • Step S210 Parse the live data stream for each live data stream, and encode the parsed live data stream according to the second protocol to obtain each converted live data stream.
  • the router receives the live data stream sent by at least two camera devices through the SDK on the router side.
  • the server may receive data encoded according to a specific protocol, where the specific protocol includes Real Time Messaging Protocol (RTMP) or Real Time Streaming Protocol (HLS, Http Live Streaming) network transmission protocol. . Both protocols are open protocols for real-time streaming of audio, video and data to the server.
  • the first protocol of the embodiment of the present invention does not belong to the scope of the specific protocol. Therefore, after receiving the live data stream sent by the at least two camera devices, the router needs to solve the live data stream through the SDK of the router. Code, get each live data. Then, according to the second protocol, each live broadcast data is encoded to implement protocol conversion. In order to ensure the synchronization of the live data streams, protocol conversion can be performed on each live data stream at the same time to obtain the converted live data streams.
  • Step S212 The router sends a transmission request to the server, where the transmission request is used to request an upload resource address for each converted live data stream.
  • Step S214 Receive a resource address sent by the server, where the resource address includes at least two upload resource addresses.
  • the SDK of the router sends a transmission request to the server, where the transmission request is used to request an upload resource address for each converted live data stream.
  • the SDK of the router receives the resource address sent by the server, where the resource address includes at least two upload resource addresses.
  • the resource address here includes a Uniform Resoure Locator (URL).
  • Step S216 Configure an upload resource address for each converted live data stream, and simultaneously upload the corresponding converted live data stream to the server according to the upload resource address.
  • the router SDK Since there are at least two converted live data streams, in order to facilitate the separation of different converted live data streams during transmission and subsequent acquisition, the router SDK needs to allocate one upload for each converted live stream. Resource address. Uploading the corresponding converted live data stream to the server simultaneously according to the upload resource address.
  • the embodiment of the present invention adopts a simultaneous protocol conversion for each data stream and simultaneously transmits to different upload resource addresses, such as URL addresses, representing different live input streams, and transmitting to The live server provides live broadcast services based on multiple live streams.
  • Step S218 Send a control instruction to the imaging device, wherein the control instruction includes a lifting instruction and/or a steering instruction.
  • the image capturing apparatus may include an IP camera, and the IP Camera may generally rotate 360 degrees to change the shooting angle.
  • the SDK on the router side can find the corresponding IP Camera according to the registered address of the IP Camera, such as the IP address, and send a control command to change the shooting angle of the IP Camera.
  • the control command includes a lifting instruction and/or a steering instruction.
  • the camera device receives the control command, and executes the control command to perform the operation of adjusting the shooting angle, such as lifting the camera or rotating the camera, thereby adjusting the shooting angle of the video, so that the shooting angle can be adjusted in real time during remote monitoring, and monitoring of different positions can be viewed.
  • Video image may include an IP camera, and the IP Camera may generally rotate 360 degrees to change the shooting angle.
  • the SDK on the router side can find the corresponding IP Camera according to the registered address of the IP Camera, such as the IP address, and send a control command to change the shooting angle of the IP Camera.
  • the control command includes a lifting instruction and/or a
  • the resource address further includes a public network resource address
  • the live broadcast terminal can play the corresponding live data stream by using the public network resource address.
  • FIG. 3 a flow chart of steps of a method for playing a live broadcast data stream according to the present invention is shown. Specifically, the method may include the following steps:
  • Step S302 The router sends the public network resource address to the live broadcast terminal, so that the public network terminal plays the public network resource address corresponding to the live data stream.
  • the resource address sent by the SDK receiving server of the router also includes the public network resource address, where the public network resource address is also the external resource address of the server, such as the external URL address. That is, the live terminal can play the corresponding live data stream through the public network resource address.
  • the public network resource address is sent to the live broadcast terminal, and the live broadcast terminal can play the public network resource address corresponding to the live broadcast data stream.
  • the live broadcast terminal can also send the public network resource address to another live broadcast terminal, and the other live broadcast terminal can view the shared live broadcast video through the public network resource address.
  • Step S304 Receive a handover request sent by the live broadcast terminal, where the handover request includes a registration identifier of the target imaging device.
  • Step S306 Stop acquiring the live data stream of the current imaging device according to the registration identifier of the target imaging device, and switch to acquiring the live data stream from the target imaging device.
  • Step S308 The live data stream of the target imaging device is fed back to the live broadcast terminal.
  • the live broadcast terminal watches the video captured by one camera device, there may be a need to watch the video captured by another target camera device, for example, the live terminal is watching the mobile phone.
  • the handover request includes a registration identifier of the target camera device, such as an IP address. Determining the live data stream of the current camera device according to the IP address of the target camera device, and switching to obtaining the live data stream from the target camera device, The live data stream is fed back to the live broadcast terminal. The live data stream of the target camera device is played through the live terminal.
  • the router receives the handover request sent by the live broadcast terminal, stops acquiring the live broadcast data stream of the current camera device according to the registration identifier of the target camera device, and switches to obtaining the live broadcast data stream from the target camera device;
  • the live data stream of the target camera device is fed back to the live broadcast terminal.
  • the live data stream of the target camera device is played through the live terminal. Live broadcast
  • the terminal switches the function of the camera device.
  • a device for data transmission according to an embodiment of the present invention is described in detail.
  • FIG. 4 a structural block diagram of an apparatus for data transmission according to the present invention is shown. Specifically, the following modules may be included: a receiving module 402, a converting module 404, and an uploading module 406.
  • the receiving module 402 is configured to receive a live data stream sent by the at least two camera devices, where the live data stream is sent by the camera device according to the first protocol.
  • the conversion module 404 is configured to perform protocol conversion on the live data stream for each live data stream to obtain each converted live data stream.
  • the uploading module 406 is configured to simultaneously upload each converted live data stream to the live server.
  • the live data stream sent by the at least two camera devices is received; for each live data stream, the live data stream is protocol-converted to obtain each converted live data stream; and each converted live data is obtained.
  • the stream is simultaneously uploaded to the live server. Therefore, the live data stream of multiple camera devices can be transmitted through the router, so that the live video communication is more diverse.
  • FIG. 5 a structural block diagram of another embodiment of a data transmission apparatus according to the present invention is shown, which may specifically include the following modules: a registration module 412, a control module 414, a receiving module 402, a conversion module 404, an uploading module 406, and an address sending module. 408, and switching module 410.
  • the registration module 412 is configured to receive, by the router, a registration request sent by the camera device, and respectively assign a registration identifier to each camera device according to the registration request.
  • the control module 414 is configured to send a control instruction to the imaging device, wherein the control instruction includes a lifting instruction and/or a steering instruction.
  • the receiving module 402 is configured to receive a live data stream sent by at least two camera devices;
  • the live data stream is sent after the camera device encodes according to the first protocol;
  • the conversion module 404 is configured to parse the live data stream, and encode the parsed live data stream according to the second protocol; and obtain each converted live data stream.
  • the uploading module 406 is configured to simultaneously upload each converted live data stream to the live server.
  • the uploading module 406 includes a request sending submodule 4062, an address receiving submodule 4064, and an address assigning submodule 4066.
  • the request sending sub-module 4062 is configured to send a transmission request to the server, where the transmission request is used to request an upload resource address for each converted live data stream.
  • the address receiving sub-module 4064 is configured to receive a resource address sent by the server, where the resource address includes at least two upload resource addresses.
  • the address allocation sub-module 4066 is configured to configure an upload resource address for each converted live data stream, and simultaneously upload the corresponding converted live data stream to the live broadcast server according to the upload resource address.
  • the address sending module 408 is configured to send the public network resource address to the live broadcast terminal, so as to play the public network resource address corresponding to the live data stream by using the live broadcast terminal.
  • the switching module 410 is configured to receive a handover request sent by the live broadcast terminal, where the handover request includes a registration identifier of the target camera device, and stop acquiring the live data stream of the current camera device according to the registration identifier of the target camera device, And switching to obtaining the live data stream from the target camera device; feeding the live data stream of the target camera device to the live broadcast terminal.
  • the router receives the handover request sent by the live broadcast terminal, stops acquiring the live broadcast data stream of the current camera device according to the registration identifier of the target camera device, and switches to obtaining the live broadcast data stream from the target camera device;
  • the live data stream of the target camera device is fed back to the live broadcast terminal.
  • the live data stream of the target camera device is played through the live terminal. Realize the function of switching the camera device to the live terminal.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • embodiments of the embodiments of the invention may be provided as a method, apparatus, or computer program product.
  • embodiments of the invention may be in the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
  • embodiments of the invention may take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • Figure 6 illustrates an electronic device in accordance with the present invention.
  • the electronic device conventionally includes a processor 610 and a computer program product or computer readable medium in the form of a memory 620.
  • the memory 620 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 620 has a memory space 630 for program code 631 for performing any of the method steps described above.
  • storage space 630 for program code may include various program code 631 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have a storage section, a storage space, and the like arranged similarly to the storage 620 in the electronic device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 631', ie, code readable by a processor, such as 610, that when executed by an electronic device causes the electronic device to perform each of the methods described above step.
  • Embodiments of the invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device
  • Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner such that the computer is readable and stored
  • the instructions in the reservoir produce an article of manufacture comprising an instruction device that implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供了一种数据传输的方法和装置,数据传输的方法包括:接收至少两个摄像设备发送的直播数据流;其中,所述直播数据流是摄像设备依据第一协议进行编码后发送的;针对各直播数据流,对所述直播数据流进行协议转换,得到各转换后的直播数据流;将各转换后的直播数据流同时上传给直播服务器。从而能够通过路由器传输多个摄像设备的直播数据流,使视频直播通讯更加多样。

Description

一种数据传输的方法和装置
本申请要求在2015年12月3日提交中国专利局、申请号为201510885364.7、发明名称为“一种数据传输的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及互联网技术领域,特别是涉及一种数据传输的方法和装置。
背景技术
网络摄像机(IP Camera)具备一般传统摄像机所有的图像捕捉功能外,还可以通过互联网或者内部局域网进行直播视频和音频的传输。
发明人在实现本发明的过程中发现,目前有些厂家通过IP Camera与该厂家自己特有的服务器进行直接通讯,并且发送控制指令。还有一些厂家通过P2P的方式,即直播终端与IP Camera进行直连控制操作,这种通讯方式需要在直播终端与IP Camera进行点对点连接。
但是,上述视频直播通讯通常是单个设备与服务器进行交互,视频直播通讯比较单一。
发明内容
本发明实施例所要解决的技术问题是提供一种数据传输的方法,解决视频通讯比较复杂的问题。
相应的,本发明实施例还提供了一种数据传输的装置,用以保证上述方法的实现及应用。
为了解决上述问题,本发明公开了一种数据传输的方法,所述的方法包括:接收至少两个摄像设备发送的直播数据流;其中,所述直播数据流是摄像设备依据第一协议进行编码后发送的;针对各直播数据流,对所述直播数据流进行协议转换,得到各转换后的直播数据流;将各转换后的直播数据流 同时上传给直播服务器。
本发明实施例还公开了一种数据传输的装置,所述的装置包括:接收模块,用于接收至少两个摄像设备发送的直播数据流;其中,所述直播数据流是摄像设备依据第一协议进行编码后发送的;转换模块,用于针对各直播数据流,对所述直播数据流进行协议转换,得到各转换后的直播数据流;上传模块,用于将各转换后的直播数据流同时上传给直播服务器。
本发明实施例提供一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在电子装置上运行时,导致所述电子装置执行上述的数据传输的方法。
本发明实施例提供一种计算机可读介质,其中存储了上述的计算机程序。
与现有技术相比,本发明实施例包括以下优点:通过接收至少两个摄像设备发送的直播数据流;针对各直播数据流,对所述直播数据流进行协议转换,得到各转换后的直播数据流;将各转换后的直播数据流同时上传给直播服务器。从而能够通过路由器传输多个摄像设备的直播数据流,使视频直播通讯更加多样。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明的一种数据传输的方法实施例的步骤流程图;
图2是本发明的另一种数据传输的方法实施例的步骤流程图;
图3是本发明实施例二中的直播数据流的播放方法实施例的步骤流程图;
图4是本发明的一种数据传输的装置实施例的结构框图;
图5是本发明的另一种数据传输的装置实施例的结构框图;
图6示意性地示出了用于执行根据本发明的方法的电子装置的框图;以及
图7示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例的核心构思之一在于,本申请提供了一种数据传输的方法,通过接收至少两个摄像设备发送的直播数据流;针对各直播数据流,对所述直播数据流进行协议转换,得到各转换后的直播数据流;将各转换后的直播数据流同时上传给直播服务器。从而能够通过路由器传输多个摄像设备的直播数据流,使视频直播通讯更加多样。
当前家庭、商场等场所通常具有通过摄像设备进行监控等视频直播需求,或者通过摄像设备进行网络直播。例如用户在外出时通过IP Camera、电视camera等设备实时监控家里的日常情况,多个摄像设备进行监控可以满足多角度、全方位的监控。此时用户需要实时获知拍摄的画面,因此需要通过网络同步传输给用户。因此本发明实施例通过路由器实现对不同摄像设备的直播数据流的同步传输。
实施例一
详细介绍本发明实施例数据传输的方法。
参照图1,示出了本发明的一种数据传输的方法实施例的步骤流程图,具体可以包括如下步骤:
步骤S102、接收至少两个摄像设备发送的直播数据流;其中,所述直播数据流是摄像设备依据第一协议进行编码后发送的。
本发明实施例的摄像设备指的是具有实时拍摄功能的终端设备,并且摄 像设备可以通过互联网或者内部局域网进行直播视频和音频的传输。因此摄像设备可以包括IP Camera如具有网络通信功能的摄像头,也可以包括具有摄像头的智能手机、智能电视、平板电脑等设备。
通过至少两个摄像设备实时拍摄并生成直播视频数据,然后通过摄像设备依据第一协议例如实时传送协议(RTP,Real-time Transport Protocol),对该直播视频数据进行编码,生成直播数据流。摄像设备将所述直播数据流传送给路由器。其中,RTP是一个网络传输协议,详细说明了在互联网上传递音频和视频的标准数据包格式。路由器接收至少两个摄像设备发送的直播数据流。
步骤S104、针对各直播数据流,对所述直播数据流进行协议转换,得到各转换后的直播数据流。
由于直播服务器只接收按照特定协议进行编码的数据,而本发明实施例的第一协议不属于特定协议的范畴,所以路由器接收到至少两个摄像设备发送的直播数据流后,需要通过路由器针对各直播数据流进行协议转换,为了保证各直播数据流的同步性,可以同时对各直播数据流进行协议转换,得到各转换后的直播数据流。
步骤S106、将各转换后的直播数据流同时上传给直播服务器。
经过协议转换后,服务器可以接收转换后的直播数据流,为了保证各直播数据流的同步性,通过路由器将各转换后的直播数据流同时上传给直播服务器。直播终端可以通过路由器从直播服务器中获取需要的直播数据流,播放相应的直播视频。
综上所述,通过接收至少两个摄像设备发送的直播数据流;针对各直播数据流,对所述直播数据流进行协议转换,得到各转换后的直播数据流;将各转换后的直播数据流同时上传给直播服务器。从而能够通过路由器传输多个摄像设备的直播数据流,使视频直播通讯更加多样。
实施例二
详细介绍本发明实施例的另一种数据传输的方法。本发明实施例的摄像设备与路由器遵循ONVIF协议,其中,ONVIF协议是一个全球性的开放接口标准,这一接口标准可以确保不同厂商生产的网络视频产品具有互通性。 摄像设备和路由器分别通过摄像设备端的软件开发工具包(SDK,Software Development Kit)以及路由器端的SDK实现ONVIF协议中各设备的互通。
参照图2,示出了本发明的另一种数据传输的方法实施例的步骤流程图,具体可以包括如下步骤:
步骤S202、路由器接收摄像设备发送的注册请求,依据所述注册请求为各摄像设备分别分配注册标识。
摄像设备与路由器进行数据传输前,需要先在路由器端注册,与路由器端建立连接。路由器接收摄像设备发送的注册请求,依据所述注册请求为各摄像设备分别分配注册标识,如互联网协议(IP,Internet Protocol)地址。路由器依据该注册标识可以区分不同的摄像设备。
步骤S204、通过至少两个摄像设备进行拍摄并生成直播数据流。
步骤S206、各摄像设备将所述直播数据流发送给路由器。
至少两个摄像设备实时拍摄的并生成直播视频数据,通过摄像设备端的SDK依据第一协议例如实时传送协议(RTP,Real-time Transport Protocol),对该直播视频数据进行编码,生成直播数据流。摄像设备将所述直播数据流传送给路由器。摄像设备端的SDK可以对实时拍摄的视频进行RTP传输,同时也可以对拍摄的视频进行存储,一般存储为MP4格式。可以通过两个进程如writer同时工作来实现,一个writer进行RTP传输,即直播数据流的传输,另一个writer进行对拍摄的视频进行存储,即拍摄生成直播数据流。
步骤S208、路由器接收至少两个摄像设备发送的直播数据流;其中,所述直播数据流是摄像设备依据第一协议进行编码后发送的。
步骤S210、针对各直播数据流,对所述直播数据流进行解析,将解析后的直播数据流按照第二协议进行编码,得到各转换后的直播数据流。
路由器通过路由器端的SDK接收至少两个摄像设备发送的直播数据流。本申请实施例中,服务器可以接收按照特定协议进行编码的数据,其中,特定协议包括实时消息传送协议(RTMP,Real-time Messaging Protocol)或实时流传输协议(HLS,Http Live Streaming)网络传输协议。这两种协议都是可以与服务器进行音频、视频和数据等实时流传输的开放协议。而本发明实施例的第一协议不属于特定协议的范畴,所以路由器接收到至少两个摄像设备发送的直播数据流后,需要通过路由器端的SDK针对各直播数据流进行解 码,获取各直播数据。再按照第二协议对各直播数据进行编码,实现协议的转换。为了保证各直播数据流的同步性,可以同时对各直播数据流进行协议转换,得到各转换后的直播数据流。
步骤S212、路由器向服务器发送传输请求,其中,所述传输请求用于为各转换后的直播数据流请求上传资源地址。
步骤S214、接收服务器发送的资源地址,其中,所述资源地址包括至少两个上传资源地址。
路由器的SDK向服务器发送数据之前,需要先确定上传资源地址。路由器的SDK向服务器发送传输请求,其中,所述传输请求用于为各转换后的直播数据流请求上传资源地址。路由器的SDK接收服务器发送的资源地址,其中,所述资源地址包括至少两个上传资源地址。这里的资源地址包括统一资源定位符(Uniform Resoure Locator,URL)。
步骤S216、为每个转换后的直播数据流分别配置一个上传资源地址,依据所述上传资源地址将对应的转换后的直播数据流同时上传给服务器。
由于有至少两个转换后的直播数据流,为了便于在传输和以后的获取过程中区分开不同的转换后的直播数据流,路由器的SDK需要为每个转换后的直播数据流分别分配一个上传资源地址。依据所述上传资源地址将对应的转换后的直播数据流同时上传给服务器。为了保证各转换后直播数据流传输的同步性,本发明实施例采取了对各数据流同时进行协议的转换以及同时传输到不同的上传资源地址如URL地址,代表不同的直播输入流,传输到直播服务器,直播服务器基于多个直播数据流提供直播服务。
步骤S218、向摄像设备发送控制指令,其中,所述控制指令包括抬起指令和/或转向指令。
本实施例中摄像设备可以包括IP Camera,IP Camera一般可以360度旋转来改变拍摄角度。路由器端的SDK可以依据IP Camera的注册地址如IP地址,找到对应的IP Camera,对其发送控制指令,来改变IP Camera的拍摄角度,所述控制指令包括抬起指令和/或转向指令。摄像设备接收到控制指令,执行该控制指令即执行抬起摄像头或旋转摄像头等调整拍摄角度的操作,从而调整视频的拍摄角度,使得在远程监控时也可以实时调整拍摄角度,查看不同位置的监控视频图像。
另外,所述资源地址还包括公网资源地址,直播终端通过该公网资源地址可以播放对应的直播数据流。
参照图3,示出了本发明的一种直播数据流播放的方法实施例的步骤流程图,具体可以包括如下步骤:
步骤S302、路由器将所述公网资源地址发送给直播终端,以通过所述直播终端播放公网资源地址对应直播数据流。
路由器的SDK接收服务器发送的资源地址中还包括公网资源地址,这里的公网资源地址也就是服务器对外的资源地址,如对外的URL地址。即直播终端可以通过该公网资源地址播放对应的直播数据流。将所述公网资源地址发送给直播终端,直播终端可以播放公网资源地址对应直播数据流。直播终端也可以将该公网资源地址发送给另一台直播终端,另一台直播终端可以通过该公网资源地址看到分享的直播视频。
步骤S304、接收所述直播终端发出的切换请求,其中,所述切换请求包括目标摄像设备的注册标识。
步骤S306、依据所述目标摄像设备的注册标识,停止获取当前摄像设备的直播数据流,并切换到从所述目标摄像设备获取直播数据流。
步骤S308、将所述目标摄像设备的直播数据流反馈给所述直播终端。
由于不同的摄像设备的位置不同、设备的性能也不同,直播终端在观看某台摄像设备拍摄的视频时,可能会有观看另一台目标摄像设备拍摄的视频的需求,例如直播终端在观看手机Camera拍摄的视频时,考虑到手机Camera拍摄的范围比较小,想切换到IP Camera拍摄的视频,此时可以向路由器发送切换摄像设备的请求。其中,所述切换请求包括目标摄像设备的注册标识,如IP地址。依据所述目标摄像设备的注册标识,如依据目标摄像设备的IP地址,停止获取当前摄像设备的直播数据流,并切换到从所述目标摄像设备获取直播数据流,将所述目标摄像设备的直播数据流反馈给所述直播终端。通过所述直播终端播放目标摄像设备的直播数据流。
综上所述,通过路由器接收所述直播终端发出的切换请求;依据目标摄像设备的注册标识,停止获取当前摄像设备的直播数据流,并切换到从所述目标摄像设备获取直播数据流;将所述目标摄像设备的直播数据流反馈给所述直播终端。通过所述直播终端播放目标摄像设备的直播数据流。实现直播 终端切换摄像设备的功能。
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。
实施例三
详细介绍本发明实施例的一种数据传输的装置。
参照图4,示出了本发明一种数据传输的装置实施例的结构框图,具体可以包括如下模块:接收模块402,转换模块404,以及上传模块406。
接收模块402,用于接收至少两个摄像设备发送的直播数据流;其中,所述直播数据流是摄像设备依据第一协议进行编码后发送的。
转换模块404,用于针对各直播数据流,对所述直播数据流进行协议转换,得到各转换后的直播数据流。
上传模块406,用于将各转换后的直播数据流同时上传给直播服务器。
综上所述,通过接收至少两个摄像设备发送的直播数据流;针对各直播数据流,对所述直播数据流进行协议转换,得到各转换后的直播数据流;将各转换后的直播数据流同时上传给直播服务器。从而能够通过路由器传输多个摄像设备的直播数据流,使视频直播通讯更加多样。
实施例四
详细介绍本发明实施例的另一种数据传输的装置。
参照图5,示出了本发明另一种数据传输装置实施例的结构框图,具体可以包括如下模块:注册模块412,控制模块414,接收模块402,转换模块404,上传模块406,地址发送模块408,以及切换模块410。
注册模块412,用于路由器接收摄像设备发送的注册请求,依据所述注册请求为各摄像设备分别分配注册标识。
控制模块414,用于向摄像设备发送控制指令,其中,所述控制指令包括抬起指令和/或转向指令。
接收模块402,用于接收至少两个摄像设备发送的直播数据流;其中,所 述直播数据流是摄像设备依据第一协议进行编码后发送的;
转换模块404,用于对所述直播数据流进行解析,将解析后的直播数据流按照第二协议进行编码;得到各转换后的直播数据流。
上传模块406,用于将各转换后的直播数据流同时上传给直播服务器。
其中,所述上传模块406包括:请求发送子模块4062,地址接收子模块4064,以及地址分配子模块4066。
请求发送子模块4062,用于路由器向服务器发送传输请求,其中,所述传输请求用于为各转换后的直播数据流请求上传资源地址。
地址接收子模块4064,用于接收服务器发送的资源地址,其中,所述资源地址包括至少两个上传资源地址。
地址分配子模块4066,用于为每个转换后的直播数据流分别配置一个上传资源地址,依据所述上传资源地址将对应的转换后的直播数据流同时上传给所述直播服务器。
地址发送模块408,用于将所述公网资源地址发送给直播终端,以通过所述直播终端播放公网资源地址对应直播数据流。
切换模块410,用于接收所述直播终端发出的切换请求,其中,所述切换请求包括目标摄像设备的注册标识;依据所述目标摄像设备的注册标识,停止获取当前摄像设备的直播数据流,并切换到从所述目标摄像设备获取直播数据流;将所述目标摄像设备的直播数据流反馈给所述直播终端。
综上所述,通过路由器接收所述直播终端发出的切换请求;依据目标摄像设备的注册标识,停止获取当前摄像设备的直播数据流,并切换到从所述目标摄像设备获取直播数据流;将所述目标摄像设备的直播数据流反馈给所述直播终端。通过所述直播终端播放目标摄像设备的直播数据流。实现直播终端切换摄像设备的功能。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
例如,图6示出了可以实现根据本发明的电子装置。该电子装置传统上包括处理器610和以存储器620形式的计算机程序产品或者计算机可读介质。存储器620可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器620具有用于执行上述方法中的任何方法步骤的程序代码631的存储空间630。例如,用于程序代码的存储空间630可以包括分别用于实现上面的方法中的各种步骤的各个程序代码631。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图7所述的便携式或者固定存储单元。该存储单元可以具有与图6的电子装置中的存储器620类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码631’,即可以由例如诸如610之类的处理器读取的代码,这些代码当由电子装置运行时,导致该电子装置执行上面所描述的方法中的各个步骤。
本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。
以上对本发明所提供的一种数据传输的方法和一种数据传输的装置,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (16)

  1. 一种数据传输的方法,其特征在于,所述的方法包括:
    接收至少两个摄像设备发送的直播数据流;其中,所述直播数据流是摄像设备依据第一协议进行编码后发送的;
    针对各直播数据流,对所述直播数据流进行协议转换,得到各转换后的直播数据流;
    将各转换后的直播数据流同时上传给直播服务器。
  2. 根据权利要求1所述的方法,其特征在于,所述对所述直播数据流进行协议转换,包括:
    对所述直播数据流进行解析,将解析后的直播数据流按照第二协议进行编码。
  3. 根据权利要求1所述的方法,其特征在于,所述将各转换后的直播数据流同时上传给直播服务器,包括:
    路由器向服务器发送传输请求,其中,所述传输请求用于为各转换后的直播数据流请求上传资源地址;
    接收服务器发送的资源地址,其中,所述资源地址包括至少两个上传资源地址;
    为每个转换后的直播数据流分别配置一个上传资源地址,依据所述上传资源地址将对应的转换后的直播数据流同时上传给所述直播服务器。
  4. 根据权利要求3所述的方法,其特征在于,所述资源地址还包括公网资源地址,所述的方法还包括:
    将所述公网资源地址发送给直播终端,以通过所述直播终端播放公网资源地址对应直播数据流。
  5. 根据权利要求4所述的方法,其特征在于,还包括:
    接收所述直播终端发出的切换请求,其中,所述切换请求包括目标摄像 设备的注册标识;
    依据所述目标摄像设备的注册标识,停止获取当前摄像设备的直播数据流,并切换到从所述目标摄像设备获取直播数据流;
    将所述目标摄像设备的直播数据流反馈给所述直播终端。
  6. 根据权利要求1所述的方法,其特征在于,所述接收至少两个摄像设备发送的直播数据流前,还包括:
    路由器接收摄像设备发送的注册请求,依据所述注册请求为各摄像设备分别分配注册标识。
  7. 根据权利要求1所述的方法,其特征在于,还包括:
    向摄像设备发送控制指令,其中,所述控制指令包括抬起指令和/或转向指令。
  8. 一种数据传输的装置,其特征在于,所述的装置包括:
    接收模块,用于接收至少两个摄像设备发送的直播数据流;其中,所述直播数据流是摄像设备依据第一协议进行编码后发送的;
    转换模块,用于针对各直播数据流,对所述直播数据流进行协议转换,得到各转换后的直播数据流;
    上传模块,用于将各转换后的直播数据流同时上传给直播服务器。
  9. 根据权利要求8所述的装置,其特征在于,
    所述转换模块,用于对所述直播数据流进行解析,将解析后的直播数据流按照第二协议进行编码。
  10. 根据权利要求8所述的装置,其特征在于,所述上传模块包括:
    请求发送子模块,用于路由器向服务器发送传输请求,其中,所述传输请求用于为各转换后的直播数据流请求上传资源地址;
    地址接收子模块,用于接收服务器发送的资源地址,其中,所述资源地址包括至少两个上传资源地址;
    地址分配子模块,用于为每个转换后的直播数据流分别配置一个上传资 源地址,依据所述上传资源地址将对应的转换后的直播数据流同时上传给所述直播服务器。
  11. 根据权利要求10所述的装置,其特征在于,所述资源地址还包括公网资源地址,所述的装置还包括:
    地址发送模块,用于将所述公网资源地址发送给直播终端,以通过所述直播终端播放公网资源地址对应直播数据流。
  12. 根据权利要求11所述的装置,其特征在于,所述的装置还包括:
    切换模块,用于接收所述直播终端发出的切换请求,其中,所述切换请求包括目标摄像设备的注册标识;依据所述目标摄像设备的注册标识,停止获取当前摄像设备的直播数据流,并切换到从所述目标摄像设备获取直播数据流;将所述目标摄像设备的直播数据流反馈给所述直播终端。
  13. 根据权利要求8所述的装置,其特征在于,所述的装置还包括:
    注册模块,用于路由器接收摄像设备发送的注册请求,依据所述注册请求为各摄像设备分别分配注册标识。
  14. 根据权利要求8所述的装置,其特征在于,所述的装置还包括:
    控制模块,用于向摄像设备发送控制指令,其中,所述控制指令包括抬起指令和/或转向指令。
  15. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子装置上运行时,导致所述电子装置执行根据权利要求1-7中的任一个所述的数据传输的方法。
  16. 一种计算机可读介质,其中存储了如权利要求15所述的计算机程序。
PCT/CN2016/089279 2015-12-03 2016-07-07 一种数据传输的方法和装置 WO2017092338A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/245,104 US20170164016A1 (en) 2015-12-03 2016-08-23 Data transfer method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510885364.7 2015-12-03
CN201510885364.7A CN105978926A (zh) 2015-12-03 2015-12-03 一种数据传输的方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/245,104 Continuation US20170164016A1 (en) 2015-12-03 2016-08-23 Data transfer method and device

Publications (1)

Publication Number Publication Date
WO2017092338A1 true WO2017092338A1 (zh) 2017-06-08

Family

ID=56988220

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089279 WO2017092338A1 (zh) 2015-12-03 2016-07-07 一种数据传输的方法和装置

Country Status (3)

Country Link
US (1) US20170164016A1 (zh)
CN (1) CN105978926A (zh)
WO (1) WO2017092338A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040232A (zh) * 2021-11-01 2022-02-11 北京奇艺世纪科技有限公司 投屏系统、方法、电子设备和存储介质

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108024088B (zh) * 2016-10-31 2020-07-03 杭州海康威视系统技术有限公司 一种视频轮巡方法及装置
CN108243153B (zh) * 2016-12-23 2019-03-12 视联动力信息技术股份有限公司 一种在视联网中播放电视节目的方法和装置
CN108173861A (zh) * 2017-12-29 2018-06-15 北京奇虎科技有限公司 一种视频直播的方法、装置和直播分发连接器
CN108206833B (zh) * 2018-01-11 2021-04-27 福建星网锐捷通讯股份有限公司 音视频数据传输方法及其系统
CN111064976B (zh) * 2018-10-17 2022-01-04 武汉斗鱼网络科技有限公司 一种直播信息的发送方法及服务器
CN111479136B (zh) * 2020-03-03 2023-04-07 视联动力信息技术股份有限公司 一种监控资源的传输方法和装置
CN112153353B (zh) * 2020-11-25 2021-04-09 南京创科信息科技有限公司 一种基于应急场景的视频资源整合与协议转换系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938623A (zh) * 2010-09-09 2011-01-05 宇龙计算机通信科技(深圳)有限公司 一种基于视频通话的多路图像传输方法及终端
US20130290517A1 (en) * 2012-04-27 2013-10-31 National Taipei University Of Technolo Nat traversal under tcp for real time streaming protocol
CN103517036A (zh) * 2012-06-29 2014-01-15 上海益网数码科技有限公司 一种3g物联网p2p视频安防监控平台
CN104639900A (zh) * 2015-02-03 2015-05-20 广西智询信息科技有限公司 Rtmp转m3u8视频切片系统及方法
CN104639903A (zh) * 2015-02-03 2015-05-20 广西智询信息科技有限公司 移动终端扫码直播无线视频监控系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7324166B1 (en) * 2003-11-14 2008-01-29 Contour Entertainment Inc Live actor integration in pre-recorded well known video

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938623A (zh) * 2010-09-09 2011-01-05 宇龙计算机通信科技(深圳)有限公司 一种基于视频通话的多路图像传输方法及终端
US20130290517A1 (en) * 2012-04-27 2013-10-31 National Taipei University Of Technolo Nat traversal under tcp for real time streaming protocol
CN103517036A (zh) * 2012-06-29 2014-01-15 上海益网数码科技有限公司 一种3g物联网p2p视频安防监控平台
CN104639900A (zh) * 2015-02-03 2015-05-20 广西智询信息科技有限公司 Rtmp转m3u8视频切片系统及方法
CN104639903A (zh) * 2015-02-03 2015-05-20 广西智询信息科技有限公司 移动终端扫码直播无线视频监控系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040232A (zh) * 2021-11-01 2022-02-11 北京奇艺世纪科技有限公司 投屏系统、方法、电子设备和存储介质
CN114040232B (zh) * 2021-11-01 2023-09-01 北京奇艺世纪科技有限公司 投屏系统、方法、电子设备和存储介质

Also Published As

Publication number Publication date
CN105978926A (zh) 2016-09-28
US20170164016A1 (en) 2017-06-08

Similar Documents

Publication Publication Date Title
WO2017092338A1 (zh) 一种数据传输的方法和装置
WO2017181777A1 (zh) 全景视频直播方法、装置和系统以及视频源控制设备
US10021301B2 (en) Omnidirectional camera with multiple processors and/or multiple sensors connected to each processor
US9537902B2 (en) Enabling devices without native broadcast capability to access and/or receive broadcast data in an efficient manner
JP2021052415A (ja) 対話型ビデオ会議
CN103581712B (zh) 基于移动终端的多协议视频播放方法及系统
US9024995B2 (en) Video calling using a remote camera device to stream video to a local endpoint host acting as a proxy
US9843725B2 (en) Omnidirectional camera with multiple processors and/or multiple sensors connected to each processor
TWI435568B (zh) 多媒體影音之轉換及傳輸的方法以及系統
JP6377784B2 (ja) オーディオビデオ同期取込によって一対多オーディオビデオストリーミングを行う方法
KR102243753B1 (ko) 미디어 오케스트레이션 활성화
KR101647938B1 (ko) 이동통신망을 통해 이기종 네트워크를 연동하여 미디어 스트리밍을 제공하는 방법 및 시스템
KR102064284B1 (ko) 실시간 통신을 수행하는 장치, 시스템, 및 방법
CN105451004A (zh) 智能机顶盒及其支持视频通信监控的媒体处理系统和方法
EP2696591B1 (en) Video calling using a remote camera device to stream video to a local endpoint host acting as a proxy
JP6016809B2 (ja) コンテンツ提供方法及びコンテンツ提供システム
US10581550B2 (en) System and method for providing single fiber 4K video
CN104038741A (zh) 一种视频数据的投影方法
JP2015513731A (ja) ユニバーサルプラグアンドプレイに基づくビデオ監視を実現する方法、装置及びシステム
WO2015196651A1 (zh) 一种数据共享的方法、设备和系统、存储介质
KR101843475B1 (ko) 동영상을 제공하는 미디어 서버
WO2014183539A1 (zh) 会话建立的方法、装置及会话内容的递送方法和装置
JP2024503063A (ja) フォーマットをatsc3.0低電力無線に変換するドングル
KR20050081292A (ko) 셋톱박스를 이용한 이동통신단말기의 디지털카메라영상전송방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16869651

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16869651

Country of ref document: EP

Kind code of ref document: A1