Disclosure of Invention
The invention aims to provide an IPTV system which is convenient to deploy, simple to maintain, more stable and efficient and has high integration level and a working method thereof.
The technical scheme adopted by the invention is as follows: the IPTV system with high integration level is characterized by comprising a switch and an integration server connected with the switch; the integrated server comprises a content management server, a live broadcast server, an on-demand server and a time shifting server; the content management server is respectively connected with the live broadcast server, the time shifting server and the on-demand server; the live broadcast server is connected with the time shifting server; wherein,
the content management server is a module for interaction between a user and the server, and the user manages the whole server through the content management server;
the live broadcast server is connected with the front-end program source through the switch; receiving the configuration of a user through a content server and providing corresponding live broadcast service;
the time shifting server acquires live program data from the live broadcast server, records programs according to EPG information uploaded by a user and generates time shifting programs;
and the on-demand server receives the on-demand information and the on-demand file through the content server, so that the on-demand function is realized.
Preferably, the integrated server is a server that integrates a content management server, a live server, an on-demand server, and a timeslip server of a conventional IPTV into one server.
Preferably, the content server comprises a web page server module and a database module, wherein the web page server module provides web page service for user access management;
and the database module stores the management data set by the user.
Preferably, the live server includes, in response to the request,
the program source conversion queue generating module generates a program buffer queue according to a configuration file generated by a front-end program source and a content management server;
the live broadcast service receiving module is used for receiving a live broadcast service request of a client;
the live program query module is used for querying whether the program exists in the buffer queue module according to the live service request of the client;
the program forwarding module is used for forwarding the program existing in the buffer queue module to the user according to the live broadcast service request of the client;
and the program buffer generation module is used for buffering the program generation program existing in the buffer queue module part according to the live broadcast service request of the client and adding the program generation program into the buffer queue.
Preferably, the timeslip server includes a timeslip program module and a play module, wherein,
a time-shifted program generation module, comprising: the program data acquisition module is used for acquiring program data needing time shifting by a live broadcast server; and the EPG information acquisition module is used for acquiring the EPG information of the time-shifting program by the content management server.
Preferably, the switch is a gigabit switch.
A working method of an IPTV system based on the IPTV system with high integration level is characterized in that a user generates a live broadcast configuration file through live broadcast information configured by a web interface and a content management server, and the live broadcast configuration file is directly stored in a live broadcast server configuration directory.
Preferably, the live broadcast server generates a program buffer queue according to configuration files generated by the front-end program source and the content management server, when the client requests the live broadcast service, firstly, the client queries whether the program exists in the program buffer queue, if so, the program is directly forwarded to the user, and if not, the program is buffered and added into the buffer queue, so that the live broadcast service is provided for the user.
Preferably, the method further includes the step that the time shift server acquires program data needing time shift from a program buffer queue of the live broadcast server, and the content management server acquires EPG information of the time shift program, so as to generate the time shift program.
Preferably, the method further comprises that when the user requests to request for on-demand, the on-demand server searches the film management directory for the film requested by the client according to the client request, and then sends the film to the user through the HTTP protocol.
Compared with the prior art, the invention has the beneficial effects that: the problems that a traditional IPTV system is too complex, large in cost investment and difficult to maintain are solved, the use of the IPTV system is not limited to large operators, small and medium operators with relatively low capital intensity can use the IPTV system, and the application market of the IPTV is expanded.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Any feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.
The IPTV system with high integration level as shown in fig. 1 includes a switch and an integration server connected thereto; the integrated server comprises a content management server, a live broadcast server, an on-demand server and a time shifting server; the content management server is respectively connected with the live broadcast server, the time shifting server and the on-demand server; the live broadcast server is connected with the time shifting server.
The live server provides program data for the time shift server to generate time-shifted programs. The traditional IPTV system live broadcast server and time shift server are systems, and need to provide original program data respectively. Therefore, the IPTV system is easier to deploy and maintain.
In this embodiment, the switch is a gigabit switch, and is configured to connect a plurality of source devices and an integrated server, where data of the gigabit switch is determined according to the number of source programs and a code rate. The SPTS video source of the IP output is sent to the integration server through the gigabit switch. The source may be output by an encoder, a big card receiver, a gateway for TS2IP, and the streaming server supports multiple transport formats such as: TCP, UDP, RTP, etc. Support the use mode of traditional STB + tv and support the mobile terminal (handset, tablet, etc.) client mode.
As shown in fig. 2, the content management server is a module through which a user interacts with the server, and the user manages the entire server and provides value-added services, such as advertisements.
The live broadcast server: the user manages the live program through a WEB management interface (a content management server), including live program source setting, program adding, deleting, modifying and the like, the content management server writes the configuration of the user into the live server, and then the live server can provide corresponding live service. Meanwhile, the live broadcast server integrates RTSP and HLS protocols on an output protocol, so that the limitation on a client platform is reduced.
The time shifting server obtains live program data from the live broadcast server, records programs according to EPG information uploaded by a user, and generates time shifting programs.
The on-demand server: the user manages the on-demand programs through a WEB management interface (a content management server), wherein the management comprises movie information addition, movie file uploading, movie deletion, modification and the like, and the content management server provides the movie information and the movie files for the on-demand server, so that the on-demand function is realized. The output protocol of the on-demand server is HTTP, and the mainstream platform supports the protocol.
In this embodiment, the integrated server is a server that integrates a content management server, a live broadcast server, an on-demand server, and a timeslip server of a conventional IPTV into one server. In order to simplify and reduce the complexity and cost of the IPTV system, a live broadcast server, a VOD server, a time shift server, a management server and a CDN system (the parts can be simplified in a small and medium-sized IPTV system) of the traditional IPTV are integrated into one server, the live broadcast forwarding capability of the server is optimized, and the server simultaneously supports multiple GE ports, so that the load of the small and medium-sized IPTV system can be met, the investment can be greatly reduced, and the application field of the IPTV system is expanded.
As shown in fig. 3, in this specific embodiment, the content server includes a web page server module and a database module, where the web page server module provides a web page service for user access management; and the database module stores the management data set by the user. Because the content management server and the live broadcast server are integrated, live broadcast information configured by a user through a web interface is generated by the content management server and directly stored in a live broadcast server configuration directory, and the traditional IPTV system needs to transmit related configuration files through a network because the two servers are separated. The integration of the content management server and the on-demand server brings the same advantage that the movie files uploaded by the user through the web management interface are directly stored in the movie management directory of the on-demand server. Due to high integration level, the IPTV system completes information exchange among the functional servers locally instead of the traditional IPTV servers through a network, and particularly, stream media files such as films need extremely high system overhead through network transmission, so that the system greatly improves the efficiency and stability of the servers.
As shown in fig. 4, the live broadcast server includes a program source queue generation module, which generates a program buffer queue according to a configuration file generated by a front-end program source and a content management server; the live broadcast service receiving module is used for receiving a live broadcast service request of a client; the live program query module is used for querying whether the program exists in the buffer queue module according to the live service request of the client; the program forwarding module is used for forwarding the program existing in the buffer queue module to the user according to the live broadcast service request of the client; and the program buffer generation module is used for buffering the program generation program existing in the buffer queue module part according to the live broadcast service request of the client and adding the program generation program into the buffer queue.
The live broadcast server generates a program buffer queue according to a front-end program source (IP data) and a configuration file generated by the content management server, when a client requests live broadcast service, firstly, the client inquires whether the program exists in the program buffer queue, if so, the program is directly forwarded to a user, and if not, the program buffer is generated and added into the buffer queue, thereby providing the live broadcast service for the user.
As shown in fig. 5, the time shift server includes a time-shifted program module and a playing module, wherein the time-shifted program generating module includes: the program data acquisition module is used for acquiring program data needing time shifting by a live broadcast server; and the EPG information acquisition module is used for acquiring the EPG information of the time-shifting program by the content management server.
The time shifting server acquires program data needing time shifting from a program buffer queue of the live broadcast server, and acquires EPG information of the time shifting program from the content management server, so that the time shifting program is generated. Compared with the traditional IPTV system, the system has the advantages that the time-shifting server of the system has different modes of acquiring time-shifting program data and EPG, the traditional EPG is acquired from the management server through the network, the system is acquired through local inter-process communication, the traditional program data of the time-shifting server is original IP stream data, and the system is acquired from a program buffer module of a live broadcast server. The playing module is used for providing time-shifted program viewing service. When a client proposes to watch the time-shifted program, the playing module firstly judges whether the requested program supports time shifting, if so, the playing module reads the time-shifted program index, and then packs the corresponding time-shifted program through TS stream and sends the time-shifted program to the client.
Meanwhile, in the present specific embodiment, the time-shifted program supports operations such as fast forward, fast backward, skip, and the like, and the flow is as shown in fig. 5, the index of the time-shifted program is read, whether the requested time and the multiple of fast forward and fast backward are legal is judged, if yes, the file designated by the index is skipped to, so that you want to have a cheap price, and TS liu data is read; if the request is a jump request, the data is sent from the file offset, and if the request is fast forward or fast backward, the data is read from the index specified file offset and each hanging frame is read and sent to the client.
As shown in fig. 6, when a user requests a request for on-demand, the on-demand server searches the movie management directory for a movie requested by the client according to the client request, and then sends the movie to the user through the HTTP protocol. Compared with the traditional on-demand server, the system does not need the on-demand server to request the film file from the content management server through the network, thereby greatly lightening the network load of the server.
The input of the system is shown in fig. 1, a live program source is provided for a server by a front-end gigabit switch in an IP mode, the management of IPTV content is completed by an administrator through a web management interface (content management server), and the management includes live program configuration, EPG information management, movie file uploading, user right management, value-added service management such as advertisement, hotel ordering, and the like, and finally provided services include live broadcast, time-shifted program, high-definition on-demand, advertisement push, and the like.
The IPTV system is highly integrated in the change of interaction modes among the servers and the sharing of resources, and is different from the traditional IPTV system in that the servers are independent systems, the servers need to communicate with each other in a network mode and the like.
The highly integrated streaming media server supports a plurality of gigabit network ports, and each network port can be freely configured to be input by a video stream or output by a forwarding video stream; the video stream input of the streaming media server supports TCP, UDP and RTP in various formats; the integrated timeslip server can support any program and any time period 24 hour timeslip; the time shifting support completely supports jumping, fast forwarding and fast rewinding, and has no special requirements on the front-end source coding format, namely all coding formats are supported; the streaming media server realizes live broadcast and on-demand watching of a mobile phone and a flat board, and simultaneously realizes an HLS protocol to support IPHONE and IPAD; the integrated apache and mysql based management server is more efficient.