CN111225252B - PON gateway UPNP video live broadcast method based on openwrt system - Google Patents

PON gateway UPNP video live broadcast method based on openwrt system Download PDF

Info

Publication number
CN111225252B
CN111225252B CN202010009004.1A CN202010009004A CN111225252B CN 111225252 B CN111225252 B CN 111225252B CN 202010009004 A CN202010009004 A CN 202010009004A CN 111225252 B CN111225252 B CN 111225252B
Authority
CN
China
Prior art keywords
program
upnp
server
multicast
data packet
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.)
Active
Application number
CN202010009004.1A
Other languages
Chinese (zh)
Other versions
CN111225252A (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.)
Guangdong Unionman Technology Co Ltd
Original Assignee
Guangdong Unionman Technology 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 Guangdong Unionman Technology Co Ltd filed Critical Guangdong Unionman Technology Co Ltd
Priority to CN202010009004.1A priority Critical patent/CN111225252B/en
Publication of CN111225252A publication Critical patent/CN111225252A/en
Application granted granted Critical
Publication of CN111225252B publication Critical patent/CN111225252B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26258Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list
    • 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/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • 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/64Addressing
    • H04N21/6405Multicasting
    • 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/64Addressing
    • H04N21/6408Unicasting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention relates to the technical field of data processing, and provides a PON gateway UPNP video live broadcast method based on openwrt system, firstly, a DMS server stores program list information data in a local database thereof, distributes a program list to a bound UPNP device, after receiving a program link request of a client UPNP device to a certain program, the DMS server extracts a broadcast website of a selected broadcast program from the local database thereof, and packages the broadcast website into a multicast message so as to obtain a program multicast stream data packet of a broadcast television front end; and then the DMS server re-encapsulates the program multicast stream data packet into a program unicast data packet and distributes the program unicast data packet to the corresponding UPNP equipment. The invention utilizes the DMS server developed based on openwrt system to distribute the live broadcast video stream in real time by UPNP, realizes the live broadcast of the UPNP equipment network without delay and pause, and greatly improves the watching experience of users.

Description

PON gateway UPNP video live broadcast method based on openwrt system
Technical Field
The invention relates to the technical field of data processing, in particular to a PON gateway UPNP video live broadcast method based on an openwrt system.
Background
UPNP (Universal Plug and Play) protocol, namely the universal Plug and play protocol. UPNP is a structure in which various intelligent devices, wireless devices, personal computers, and the like implement peer-to-peer network connections (P2P) that are distributed and open, and is an independent medium. The UPNP device may be used in any operating system using any programming language. The UPNP specification is based on the TCP/IP protocol and a new Internet protocol that is formulated for devices to communicate with each other.
Unicast needs to establish a single data channel between the client and the media server; while multicast enables point-to-multipoint network connections between a sender and each receiver. The multicast solves the problem of low efficiency of unicast and broadcast modes, the multicast router establishes tree-type routing for the multicast data packet by means of a multicast routing protocol, and the transmitted information starts to be copied and distributed at the fork intersections as far as possible.
In the application of the existing DLNA (DIGITAL LIVING NETWORK ALLIANCE ), the use of a DMS (DIGITAL MEDIA SERVER, digital media server) is common, but the existing openwrt scheme only implements playing of local storage (U-disk) resources, and for broadcast and television live video streams, because the live video streams are multicast-based video streams and real-time data streams, there is no way to play the broadcast and television live video streams after local storage, so that the existing DLNA server developed based on the openwrt system has no way to perform UPNP distribution and play in the DMS for the broadcast and television live video source.
Disclosure of Invention
The invention provides a PON gateway UPNP video live broadcast method based on an openwrt system, which solves the technical problems of poor user experience caused by data delay caused by network delay when the existing mobile terminal watches live broadcast in a connected network (in the form of an external network).
In order to solve the technical problem, the invention provides a PON gateway UPNP video live broadcast method based on openwrt system, which comprises the following steps:
s1, the server side of the PON gateway obtains the data information of the live program list;
s2, the server analyzes and stores the data information of the live program list, and distributes the data information to the bound UPNP equipment;
s3, when the UPNP equipment selects a program to play, the server analyzes the playing website of the selected program from the stored live program list data information;
s4, the server encapsulates the multicast message according to the playing website and adds multicast to obtain the program multicast streaming data packet of the radio and television front end;
and S5, the server re-encapsulates the program multicast stream data packet into a program unicast data packet, and distributes the program unicast data packet to the corresponding UPNP equipment.
S6, when the UPNP equipment broadcasts the selected program directly according to the program unicast data packet, the server side sends a multicast join request to the broadcast television information network at regular time, acquires a new program multicast stream data packet, and enters the step S4.
In step S4, the server encapsulates the multicast packet according to the broadcast website, which specifically includes the steps of:
s41, acquiring the multicast address and the port number in the playing website;
s42, acquiring a wide area network IP address communicated with the radio and television intranet;
s43, packaging the multicast address, the port number and the IP address into the multicast message.
In step S5, the server repackages the multicast stream packet of the program into a unicast packet of the program, which specifically includes the steps of:
s51, the server side inputs the program multicast stream data packet led from the broadcasting and television front end to a central control module of the server side, and reports the program multicast stream data packet to an application layer from a kernel in real time;
and S52, the application layer repackages the program multicast stream data packets into program unicast data packets.
In step S52, the server reports the kernel to the application layer in real time through a Netlink socket.
The service side is a DMS service side, and the DMS service side adopts an openwrt system.
In step S1, the server obtains the live program list data information through an http request.
In step S2, specifically, the method includes: and the server stores the analyzed live program list data information in a local database thereof, and distributes the program list in the live program list data information to the bound UPNP equipment through a standard UPNP protocol.
The UPNP equipment is a multimedia player with a UPNP function.
And the UPNP equipment and the server side carry out data transmission through the PON gateway.
The invention provides a PON gateway UPNP video live broadcast method based on openwrt system, firstly, a DMS server stores program list information data in a local database thereof, distributes a program list to a bound UPNP device, after receiving a program link request of a client UPNP device to a certain program, the DMS server extracts a broadcast website of the selected broadcast program from the local database thereof, and packages the broadcast website into multicast messages so as to obtain a program multicast stream data packet of a broadcast television front end; and then the DMS server re-encapsulates the program multicast stream data packet into a program unicast data packet and distributes the program unicast data packet to the corresponding UPNP equipment. By implementing the method, the UPNP is distributed to the live video stream in real time by using the DMS server developed based on the openwrt system, the live video broadcast of the UPNP equipment network without delay and pause is realized, and the watching experience of a user is greatly improved.
Drawings
Fig. 1 is a system flowchart of a PON gateway UPNP video live broadcast method based on an openwrt system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a detailed operation of step S4 in fig. 1 according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a specific operation of step S5 in fig. 1 according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in detail below with reference to the accompanying drawings, which are given solely for the purpose of illustration and are not to be construed as limitations of the present invention, including reference to and illustration of the accompanying drawings, which are not to be construed as limitations of the scope of the invention, since many variations thereof are possible without departing from the spirit and scope of the invention.
As shown in fig. 1, a PON gateway UPNP video live broadcast method based on an openwrt system provided in the embodiment of the present invention includes the following steps:
s1, the server side of the PON gateway obtains the data information of the live program list;
s2, the server analyzes and stores the data information of the live program list, and distributes the data information to the bound UPNP equipment;
s3, when the UPNP equipment selects a program to play, the server analyzes the playing website of the selected program from the stored live program list data information;
s4, the server side packages the multicast message according to the playing website and adds multicast to obtain a program multicast stream data packet of the broadcasting and television front end;
and S5, the server re-encapsulates the program multicast stream data packet into a program unicast data packet, and distributes the program unicast data packet to the corresponding UPNP equipment.
S6, when the UPNP equipment broadcasts the selected program directly according to the program unicast data packet, the server side sends a multicast join request to the broadcast television information network at regular time, acquires a new program multicast stream data packet, and enters the step S4.
Referring to fig. 2, in the step S4, the encapsulating, by the server, the multicast packet according to the broadcast website specifically includes the steps of:
s41, acquiring the multicast address and the port number in the playing website;
s42, acquiring a wide area network IP address communicated with the radio and television intranet;
s43, packaging the multicast address, the port number and the IP address into the multicast message.
Referring to fig. 3, in step S5, the server repackages the multicast stream packets of the program into unicast packets of the program, specifically including the steps of:
s51, the server side inputs the program multicast stream data packet led from the broadcasting and television front end to a central control module of the server side, and reports the program multicast stream data packet to an application layer from a kernel in real time;
and S52, the application layer repackages the program multicast stream data packet into a program unicast data packet.
In step S52, the server reports the kernel to the application layer in real time through a Netlink socket.
The server is a DMS server, and the DMS server adopts an openwrt system.
In step S1, the server acquires the data information of the live program list through an http request.
In step S2, specifically, the method includes: and the server stores the analyzed live program list data information in a local database thereof, and distributes the program list in the live program list data information to the bound UPNP equipment through a standard UPNP protocol.
The UPNP equipment is a multimedia player with a UPNP function.
And the UPNP equipment and the server side carry out data transmission through the PON gateway.
Referring to fig. 1 to fig. 3, the specific work flow of the live broadcast method is as follows:
firstly, a DMS server side sends an http request to a broadcast television information network (broadcasting and television front end) to acquire live program list data information; and then, the DMS server analyzes the live program list data information and stores the data information into a local database, and simultaneously distributes the program list in the live program list data information to peripheral bound UPNP equipment through a standard UPNP protocol.
At this time, when a certain UPNP device (for example, a player supporting a UPNP function downloaded by a mobile phone, or VLC software of a computer terminal) selects a program to play, the DMS server obtains a playing website of the selected program from the live program list data stored in a local database, and obtains a multicast address and a port number of the selected program and a wide area network IP address communicating with a radio and television intranet according to the playing website; and finally, packaging the multicast address, the port number and the IP address into a multicast message and sending the multicast message to a broadcast television information network, thereby joining multicast and acquiring a program multicast stream data packet at the front end of the broadcast television.
And the DMS server inputs the program multicast streaming data packet led from the radio and television front end into a central control module of the DMS server, and reports the program multicast streaming data packet to an application layer from a kernel in real time, and the application layer re-encapsulates the program multicast streaming data packet into a program unicast data packet and distributes the program unicast data packet to the corresponding UPNP equipment.
When the UPNP equipment broadcasts the selected program in a live mode according to the program unicast data packet, the DMS server side sends a multicast adding request to a broadcast television information network at regular time, acquires and packages a new program multicast data packet into a new program unicast data packet, and continuously transmits the multicast data stream of the broadcasting and television front end to the PON gateway, so that live broadcast interruption is effectively prevented.
The embodiment of the invention provides a PON gateway UPNP video live broadcast method based on an openwrt system, firstly, a DMS server stores program list information data in a local database of the DMS server, distributes a program list to bound UPNP equipment, extracts a broadcast website of a selected broadcast program from the local database of the DMS server after receiving a program link request of a client UPNP equipment to a certain program, and encapsulates the broadcast website into multicast messages so as to obtain a program multicast stream data packet of a broadcasting and television front end; and then the DMS server side repackages the program multicast stream data packets into program unicast data packets and distributes the program unicast data packets to corresponding UPNP equipment. By implementing the method, the UPNP is distributed to the live video stream in real time by utilizing the DMS server developed based on the openwrt system, the live video without delay and pause playing of the UPNP equipment network is realized, and the watching experience of a user is greatly improved.
The above embodiments are preferred embodiments of the present invention, but the present invention is not limited to the above embodiments, and any other changes, modifications, substitutions, combinations, and simplifications which do not depart from the spirit and principle of the present invention should be construed as equivalents thereof, and all such changes, modifications, substitutions, combinations, and simplifications are intended to be included in the scope of the present invention.

Claims (9)

1. A PON gateway UPNP video live broadcast method based on openwrt system is characterized by comprising the following steps:
s1, the server side of the PON gateway obtains the data information of the live program list;
s2, the server analyzes and stores the live program list data information and distributes the live program list data information to bound UPNP equipment;
s3, when a UPNP equipment selects a program to play, the server analyzes the playing website of the selected program from the stored live program list data information;
s4, the server encapsulates the multicast message according to the playing website and adds multicast to obtain the program multicast streaming data packet of the radio and television front end;
s5, the server re-encapsulates the program multicast stream data packet into a program unicast data packet, and distributes the program unicast data packet to the corresponding UPNP equipment;
s6, when the UPNP equipment broadcasts the selected program directly according to the program unicast data packet, the server side sends a multicast join request to the broadcast television information network at regular time, acquires a new program multicast stream data packet, and enters the step S4.
2. The PON gateway UPNP video live broadcasting method based on an openwrt system according to claim 1, wherein in the step S4, the server encapsulates the multicast packet according to the broadcast website, specifically comprising the steps of:
s41, acquiring the multicast address and the port number in the playing website;
s42, acquiring a wide area network IP address communicated with the radio and television intranet;
s43, packaging the multicast address, the port number and the IP address into the multicast message.
3. The PON gateway UPNP video live broadcasting method according to claim 2, wherein in the step S5, the server re-encapsulates the multicast stream packets of the program into unicast packets of the program, and the method includes the specific steps of:
s51, the server inputs the program multicast stream data packet led from the radio and television front end to a central control module of the server, and reports the program multicast stream data packet to an application layer from a kernel in real time;
and S52, the application layer repackages the program multicast stream data packets into program unicast data packets.
4. The PON gateway UPNP video live broadcasting method based on openwrt system as claimed in claim 3, wherein in said step S52, said server reports from kernel to application layer in real time through Netlink socket.
5. The PON gateway UPNP video live broadcasting method according to claim 1, wherein the PON gateway UPNP video live broadcasting method based on an openwrt system comprises the following steps: the server is a DMS server, and the DMS server adopts an openwrt system.
6. The PON gateway UPNP video live broadcasting method according to claim 1, wherein in the step S1, the server side acquires data information of the live program list through an http request.
7. The PON gateway UPNP video live broadcasting method based on openwrt system according to claim 1, wherein in the step S2, specifically, the method includes: and the server stores the analyzed live program list data information in a local database thereof, and distributes the program list in the live program list data information to the bound UPNP equipment through a standard UPNP protocol.
8. The PON gateway UPNP video live broadcasting method based on openwrt system according to claim 1, wherein: the UPNP equipment is a multimedia player with a UPNP function.
9. The PON gateway UPNP video live broadcasting method according to claim 1, wherein the PON gateway UPNP video live broadcasting method based on an openwrt system comprises the following steps: and the UPNP equipment and the server side carry out data transmission through the PON gateway.
CN202010009004.1A 2020-01-06 2020-01-06 PON gateway UPNP video live broadcast method based on openwrt system Active CN111225252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010009004.1A CN111225252B (en) 2020-01-06 2020-01-06 PON gateway UPNP video live broadcast method based on openwrt system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010009004.1A CN111225252B (en) 2020-01-06 2020-01-06 PON gateway UPNP video live broadcast method based on openwrt system

Publications (2)

Publication Number Publication Date
CN111225252A CN111225252A (en) 2020-06-02
CN111225252B true CN111225252B (en) 2022-07-26

Family

ID=70828139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010009004.1A Active CN111225252B (en) 2020-01-06 2020-01-06 PON gateway UPNP video live broadcast method based on openwrt system

Country Status (1)

Country Link
CN (1) CN111225252B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107959622A (en) * 2018-01-18 2018-04-24 博为科技有限公司 A kind of intelligent home gateway system and intelligent home gateway
CN110337004A (en) * 2019-07-08 2019-10-15 西安交通大学 A kind of TV program transmitting method and system

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820499B (en) * 2010-05-18 2014-01-01 中兴通讯股份有限公司 Method and system for realizing automatic interaction between STB (set top box) and home gateway
US20130031585A1 (en) * 2011-07-29 2013-01-31 Hitachi Consumer Electronics Co., Ltd. Portable terminal, system, information processing method and program
KR101958663B1 (en) * 2012-12-27 2019-03-15 주식회사 알티캐스트 Home media server and method for providing personalization service
WO2015077983A1 (en) * 2013-11-29 2015-06-04 华为终端有限公司 Device and method for playing media in home network
CN105828174B (en) * 2015-01-05 2019-11-05 中兴通讯股份有限公司 A kind of method and apparatus for sharing media content
CN105392020B (en) * 2015-11-19 2019-01-25 广州华多网络科技有限公司 A kind of internet video live broadcasting method and system
CN106453255B (en) * 2016-09-09 2022-03-08 北京邦天信息技术有限公司 Method, UPnP device and system for realizing service continuous playing
CN106535005B (en) * 2016-10-25 2021-07-06 北京邦天信息技术有限公司 Method and device for realizing broadcast control service
CN107613308A (en) * 2017-08-03 2018-01-19 上海斐讯数据通信技术有限公司 Forwarding data flow method and system under a kind of live scene
CN108124166B (en) * 2017-12-27 2020-02-18 北京工业大学 Internet live broadcast system
CN112118458B (en) * 2020-08-21 2022-08-12 烽火通信科技股份有限公司 Video distribution method and system based on fusion terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107959622A (en) * 2018-01-18 2018-04-24 博为科技有限公司 A kind of intelligent home gateway system and intelligent home gateway
CN110337004A (en) * 2019-07-08 2019-10-15 西安交通大学 A kind of TV program transmitting method and system

Also Published As

Publication number Publication date
CN111225252A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
US10205971B2 (en) Media data live broadcast method, device, and system
US9380079B2 (en) Content multicasting
EP2248300B1 (en) Delivery of multicast data
US6584082B1 (en) Apparatus, method and article of manufacture for transmitting data over a satellite
US7827275B2 (en) Method and system for remotely accessing devices in a network
EP2817971B1 (en) Network controlled streaming
CN105656910B (en) Media transmission server, media transmission system, user terminal and media transmission method
KR20090065554A (en) System and method for providing advanced session control of a unicast session
CN106817629B (en) Media information transmission method, device and system
US20080025306A1 (en) Internet protocol television system, method for providing internet protocol multicast TV signal, TV transferring apparatus, and TV receiving apparatus
JP2002118552A (en) Stream relay apparatus and stream broadcast distribution network and recording medium
JP3836843B2 (en) Method for receiving content distributed by multiple channels via information network by one terminal
CN111225252B (en) PON gateway UPNP video live broadcast method based on openwrt system
KR100902855B1 (en) Grouping of session objects
US20120163379A1 (en) Multicast routing device, multicast network system applying the same, and packet transmission method
CN102300036A (en) Video data scheduling method of interactive studio
KR100789379B1 (en) Homegateway and its method for providing multicast traffic control function
KR101368247B1 (en) System and method for internet protocol television tunnelling service
KR20020023596A (en) Internet broadcasting system and method for transfering data in internet broadcasting system
CN112822499B (en) Data communication method, device and system for network live broadcast and electronic equipment
KR100643705B1 (en) A method for multicast playout service in Internet broadcasting system, and an apparatus therefor
KR100621328B1 (en) Method and System for Providing Multimedia Streaming Service by Using Information on Multicasting
JP2010252110A (en) Network connecting apparatus, and control method thereof
KR100841593B1 (en) Appratus and method for providing multimedia contents, and appratus and method for receiving multimedia contents
EP3588847A1 (en) Multicast signal transmitting and receiving method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant