CN109194983A - Live broadcasting method, system, storage medium, broadcasting server and server cluster - Google Patents
Live broadcasting method, system, storage medium, broadcasting server and server cluster Download PDFInfo
- Publication number
- CN109194983A CN109194983A CN201811180830.1A CN201811180830A CN109194983A CN 109194983 A CN109194983 A CN 109194983A CN 201811180830 A CN201811180830 A CN 201811180830A CN 109194983 A CN109194983 A CN 109194983A
- Authority
- CN
- China
- Prior art keywords
- audio
- server
- video data
- broadcasting
- video
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000003860 storage Methods 0.000 title claims abstract description 17
- 230000002452 interceptive effect Effects 0.000 claims description 40
- 230000005540 biological transmission Effects 0.000 claims description 12
- 238000006243 chemical reaction Methods 0.000 claims description 6
- 238000009826 distribution Methods 0.000 claims description 4
- 241001269238 Data Species 0.000 claims 1
- 238000004891 communication Methods 0.000 abstract description 4
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000007726 management method Methods 0.000 description 90
- 230000008569 process Effects 0.000 description 5
- 230000002045 lasting effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- CMAUJSNXENPPOF-UHFFFAOYSA-N n-(1,3-benzothiazol-2-ylsulfanyl)-n-cyclohexylcyclohexanamine Chemical compound C1CCCCC1N(C1CCCCC1)SC1=NC2=CC=CC=C2S1 CMAUJSNXENPPOF-UHFFFAOYSA-N 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing 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
- H04N21/234309—Processing 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 by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45504—Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing 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
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the present application provides a kind of live broadcasting method, system, storage medium, broadcasting server and server cluster, is related to field of communication technology.Live broadcasting method is applied to the broadcasting server in live broadcast system, and method includes: the first audio, video data that broadcasting server obtains rtp format;First audio, video data is converted into the second audio, video data of rtmp format by broadcasting server;Second audio, video data is sent to web server by broadcasting server, the net cast address for web server based on the second audio, video data generation the second audio, video data of association.Downloading client and register in compared to the prior art and open permission to watch the mode of live streaming, the user terminal of the application can by be loaded into net cast address can direct viewing be broadcast live so as to watch live streaming simultaneously more convenient by a large amount of user.
Description
Technical field
This application involves fields of communication technology, take in particular to a kind of live broadcasting method, system, storage medium, broadcast
Business device and server cluster.
Background technique
Currently, client computer, which needs individually to be added in live streaming room, participates in net cast data interactive in live broadcast system,
It is time-consuming and laborious, it can not easily meet the demand for only needing the client of watching video live broadcast.It is based especially on internet doctor
The actual scene for treating video interrogation, in the case where video teaching or a large amount of personnel of base learn, due to being currently based upon movement
Client, the equipment such as mobile phone, pad are upper in user right and use, there is significant limitation, and a wide range of teaching can be restricted.
Summary of the invention
The application is to provide a kind of live broadcasting method, system, storage medium, broadcasting server and server cluster, with reality
Now more easily viewing live streaming.
To achieve the goals above, embodiments herein is accomplished in that
In a first aspect, the embodiment of the present application provides a kind of live broadcasting method, applied to the broadcasting server in live broadcast system,
The described method includes:
The broadcasting server obtains the first audio, video data of rtp format;
First audio, video data is converted into the second audio, video data of rtmp format by the broadcasting server;
Second audio, video data is sent to web server by the broadcasting server, for the web server base
The net cast address for being associated with second audio, video data is generated in second audio, video data.
With reference to first aspect, in some possible implementations, the method is also applied in the live broadcast system
Management server cluster, before the first audio, video data that the broadcasting server obtains rtp format, the method is also wrapped
It includes:
The management server cluster creation needs to obtain the virtual of first audio, video data of live streaming user live broadcast
User;
The live streaming run in the management server and described is added in the Virtual User by the management server cluster
Real-time interactive video virtual room where user;
The management server cluster based on by the real-time interactive video virtual room the Virtual User and institute
Live streaming user-association is stated, and the mark of first audio, video data and first audio, video data is sent to described virtual
The corresponding broadcasting server of user, so that the broadcasting server determines that received data are described based on the mark
First audio, video data.
With reference to first aspect, in some possible implementations, the management server cluster includes: video channel pipe
Manage server, video server and speech channel server;First audio, video data includes: to be stored in the Video service
The first video data on device and the first audio data being stored on the speech channel server, the management server collection
Group is by the Virtual User and the live streaming user-association in the real-time interactive video virtual room, and by first sound
The mark of video data and first audio, video data is sent to the corresponding broadcasting server of the Virtual User, packet
It includes:
The video channel management server is ordered based on the Virtual User in the real-time interactive video virtual room
Read the live streaming user and by the Virtual User and the live streaming user-association;
The video channel management server is based on being successfully associated, and the video server is notified to send described first respectively
Video data and the speech channel server send first audio data;And obtain the first IP of the video server
Address and the video server are the first end slogan for sending the first port of the first video data distribution, and are obtained
Second IP address of the speech channel server and the speech channel server are to send the first audio data distribution
Second port second end slogan;
First video data is sent to the Virtual User pair by the first port by the video server
The broadcasting server answered;First audio data is sent to by the speech channel server by the second port
The broadcasting server;And the video channel management server is by first IP address, the first end slogan, described
Second IP address and the second end slogan are sent to the broadcasting server as the mark.
With reference to first aspect, in some possible implementations, the broadcasting server obtains the first sound of rtp format
Video data, comprising:
The broadcasting server receives the management based on the behavior for simulating the corresponding client of the Virtual User
The audio, video data to be determined of server set pocket transmission and the mark;
The broadcasting server determines that the audio, video data to be determined is described the of rtp format according to the mark
One audio, video data.
Second aspect, the embodiment of the present application provide a kind of live broadcasting method, applied to the management server in live broadcast system
Cluster, which comprises
The management server cluster creation needs to obtain the Virtual User of the first audio, video data of live streaming user live broadcast;
The live streaming run in the management server and described is added in the Virtual User by the management server cluster
Real-time interactive video virtual room where user;
The management server cluster based on by the real-time interactive video virtual room the Virtual User and institute
Live streaming user-association is stated, and the mark of first audio, video data and first audio, video data is sent to described virtual
The corresponding broadcasting server of user.
The third aspect, the embodiment of the present application provide a kind of live broadcasting method, are applied to live broadcast system, the live broadcast system packet
It includes: broadcasting server, the management server cluster being connect with the broadcasting server, which comprises
The management server cluster creation needs to obtain the first audio, video data of the rtp format of live streaming user live broadcast
Virtual User;
The live streaming run in the management server and described is added in the Virtual User by the management server cluster
Real-time interactive video virtual room where user;
The management server cluster based on by the real-time interactive video virtual room the Virtual User and institute
Live streaming user-association is stated, and the mark of first audio, video data and first audio, video data is sent to described virtual
The corresponding broadcasting server of user.
The broadcasting server determines that obtaining data is first audio, video data based on the mark;
First audio, video data is converted into the second audio, video data of rtmp format by the broadcasting server;
Second audio, video data is sent to web server by the broadcasting server, for the web server base
The net cast address for being associated with second audio, video data is generated in second audio, video data.
Fourth aspect, the embodiment of the present application provide a kind of broadcasting server, are applied to live broadcast system, the broadcast service
Device includes:
First data obtaining module obtains the first audio, video data of rtp format for the broadcasting server.
First audio, video data is converted into rtmp format for the broadcasting server by data format conversion module
The second audio, video data.
Second audio, video data is sent to web services for the broadcasting server by the first data transmission blocks
Device, the video for the web server based on second audio, video data generation association, second audio, video data are straight
Broadcast address.
5th aspect, the embodiment of the present application provide a kind of management server cluster, are applied to live broadcast system, the management
Server cluster includes:
Virtual User creation module creates for the management server cluster and needs to obtain the first of live streaming user live broadcast
The Virtual User of audio, video data.
Module is added in Virtual User, and the management service is added in the Virtual User for the management server cluster
Real-time interactive video virtual room where the live streaming user run on device and described.
Second data transmission blocks are based on for the management server cluster by the real-time interactive video virtual room
The interior Virtual User and the live streaming user-association, and by first audio, video data and first audio, video data
Mark be sent to the corresponding broadcasting server of the Virtual User.
6th aspect, the embodiment of the present application provide a kind of live broadcast system, the live broadcast system include: broadcasting server,
The management server cluster being connect with the broadcasting server,
The live broadcast system, for executing such as first aspect, any implementation of first aspect, second aspect and third party
Live broadcasting method described in face.
7th aspect, the embodiment of the present application provide a kind of calculating of non-volatile program code that can be performed with computer
The readable storage medium of machine, said program code execute the computer such as first aspect, any implementation of first aspect, the
Live broadcasting method described in two aspects and the third aspect.
The beneficial effect of the embodiment of the present application includes:
Due to broadcasting server can by the first audio, video data of rtp format convert can be with the rtmp format of association link
The second audio, video data;Therefore web server can be made to be based on the second audio, video data and generate the second audio, video data of association
Net cast address.It is therefore, middle compared to the prior art to download client and register the mode for opening permission to watch live streaming,
The user terminal of the application can by be loaded into net cast address can direct viewing be broadcast live so that a large amount of user
It is more convenient that live streaming is watched simultaneously.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of structural block diagram of live broadcast system of the application first embodiment offer;
Fig. 2 shows a kind of flow charts for live broadcasting method that the application second embodiment provides;
Fig. 3 shows a kind of structural block diagram of broadcasting server of the application 3rd embodiment offer;
Fig. 4 shows a kind of structural block diagram of management server cluster of the application fourth embodiment offer.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Ground description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist
The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below
Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art not into
Row goes out every other embodiment obtained under the premise of creative work, shall fall in the protection scope of this application.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Term " first ", " the
Two " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.Furthermore term in the application " and/
Or ", only a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, it can be with table
Show: individualism A exists simultaneously A and B, these three situations of individualism B.
First embodiment
Referring to Fig. 1, the application's provides a kind of live broadcast system, which includes: at least one client
11, management server cluster 12, broadcasting server 13 and web server 14.
Each client can be the live streaming for operating in corresponding each user terminal on you at least one client 11
Software.Any one client 11 at least one client 11 can be established with management server cluster 12 to be communicated to connect,
To realize the audio-video number for establishing any one client 11 communicated to connect and capable of being broadcast live live streaming user and generating in real time
According to being transferred to management server cluster 12.
Management server cluster 12 can be established with any one client at least one client 11 and be communicated to connect, with
And management server cluster 12 can be connected with broadcasting server 13.
Optionally, management server cluster 12 can be the server cluster being made of multiple child servers, the present embodiment
In, management server cluster 12 may include: video channel management server 121, video server 122 and speech channel service
Device 123.Wherein, video channel management server 121 can connect with video server 122 and speech channel server 123 respectively
It connecing, any one client 11 at least one client 11 can be established with video channel management server 121 and be communicated to connect,
And any one client 11 can based on video channel management server 121 establish communication and can again with video server
122 and speech channel server 123 establish communication connection respectively.In addition, management server cluster 12 and broadcasting server 13
Connection then can take with broadcast for video channel management server 121, video server 122 and speech channel server 123
Business device 13 connects.
Broadcasting server 13 can be for for DCBS server (the Doctor ChannelBroadcast in medical field
Server, medical item channel broadcasting server).Furthermore web server 14 can be the server of delivery Nginx.Broadcast clothes
Business device 13 can cooperate with Web server 14 to be realized to data conversion in the connection for generating associated data.
It is understood that at least one client 11, management server cluster 12 in the live broadcast system 10 of the present embodiment,
Broadcasting server 13 and web server 14 cooperate the execution being able to achieve to live broadcasting method, and to the detailed of the execution of live broadcasting method
Process will be described below.
Second embodiment
Referring to Fig. 2, present embodiments provide a kind of live broadcasting method, be applied to live broadcast system, the present embodiment will respectively from
The live broadcasting method is described in detail in management server cluster and broadcast server side in live broadcast system.The live broadcasting method
It may include: step S100, step S200, step S300, step S400, step S500 and step S600.
Step S100: the management server cluster creation needs to obtain the first sound of the rtp format of live streaming user live broadcast
The Virtual User of video data.
Step S200: the management server cluster by the Virtual User be added it is being run in the management server and
Real-time interactive video virtual room where the live streaming user.
Step S300: the management server cluster will be based on will be described virtual in the real-time interactive video virtual room
User and the live streaming user-association, and the mark of first audio, video data and first audio, video data is sent to
The corresponding broadcasting server of the Virtual User.
Step S400: the broadcasting server determines that obtaining data is first audio, video data based on the mark.
Step S500: first audio, video data is converted into the second audio-video of rtmp format by the broadcasting server
Data.
Step S600: second audio, video data is sent to web server by the broadcasting server, for described
Web server generates the net cast address for being associated with second audio, video data based on second audio, video data.
Each step of the application will be described in detail below.
Before executing step S100, the audio, video data that the live streaming of live streaming user generates in real time can be first obtained.For
For at least one client, each client at least one client can be that the live streaming user being broadcast live is needed to be made
Client.Therefore any one client corresponding live streaming user at least one client, when needing to be broadcast live, this is straight
Broadcasting user can be broadcast live initiation operation in the corresponding client, in this way, the client can be detected and be responded
The live streaming of user initiates operation and generates live streaming request, and the live streaming is requested to be sent to the management server cluster by network
In video channel management server.
Wherein, live streaming user can be there are many role, for example, live streaming user can be Doctor's Assistant, administrator, Shang Jizhuan
Family, patient, head, which examine doctor or seek, examines doctor etc..
The live streaming requests to may include the account information of live streaming user, and video channel management server is based on
By in live streaming request account information and each preset account information matched and live streaming user verified.
Have in determining each preset account information and the matched preset target account information of the account information, then video
Channel management server determines that the live streaming user's checking passes through, wherein after user logins or registers on the client, client
It then may include correct account information in the live streaming request of generation.Conversely, in determining each preset account information not with
The matched preset target account information of the account information, then video channel management server can determine the live streaming user's checking
Do not pass through, wherein the account information, which mismatches, illustrates the account information for empty or information errors, then then illustrating the user
Not login, registration or log-on message input error on the client.Therefore when account information mismatches, video channel management clothes
Business device can be generated and return corresponding login prompt, account input error miscue or registration prompt, so that live streaming user
Operation is re-started, and until account information matches.
After confirmation live streaming user's checking passes through, video channel management server can respond video channel management server
Live streaming request, so that video channel management server can be accused by interacting with video server and speech channel server
The relevant information of video server and speech channel the server client is known, for example, relevant information can be the client ip
Address and/or MAC Address.And video channel management server is based on responding live streaming request, can also inform that client is asked
It asks and passes through, audio, video data can be sent to video server and speech channel server.
Based on this, the first video in the first audio, video data that user live broadcast generates in real time can will be broadcast live in client
Data lasting be transmitted to video server and client just can also be by the first audio numbers in first audio, video data
Speech channel server is transmitted to according to lasting.
Correspondingly, the video data received can then can be confirmed based on the relevant information of the client in video server
For the first video data of the client, video server is then by first video data in the corresponding region in storage medium
Storage.Speech channel server can also the relevant information based on the client then it can be identified that the audio data received is
First audio data of the client, speech channel server then can also in the corresponding region in storage medium by this first
Audio data storage.
It should be noted that the memory space on video server and speech channel server can be limited, with
Client persistently transmits real-time first audio, video data, and video server and speech channel server cannot be stored without limitation
First audio, video data.Therefore, video server can store the first video counts reached in preset duration away from current time
According to and speech channel server also can store the first audio data reached in preset duration away from current time.Wherein, should
Preset duration can be 1-30 minutes, but be not intended as limiting.The first video data beyond preset duration can be by video
Server is deleted, and can also be deleted by speech channel server beyond preset first audio data.
For video channel management server, for the user convenient for management live streaming user and viewing live streaming, video channel pipe
Request should be broadcast live also based on phase in reason server, which can be broadcast live the live streaming user of request by video channel management server
It is added in the real-time interactive video virtual room just operated in video channel management server, alternatively, being regarded in real-time interactive
When frequency virtual room is creation, creates and run the real-time interactive video virtual room, then live streaming user is added to positive fortune
In capable real-time interactive video virtual room.
It is understood that it is not physically that live streaming user, which is added in the real-time interactive video virtual room just run,
User is put into some room, but the realization in virtual level, it is so-called to be added into the straight of real-time interactive video virtual room
Broadcasting user is not the user itself, but one of expression identity of the user on network mark.
It will also be appreciated that after the first audio, video data in management server cluster-based storage preset duration, management clothes
Business device can continue to execute step S100.
Step S100: the management server cluster creation needs to obtain the first sound of the rtp format of live streaming user live broadcast
The Virtual User of video data.
In the present embodiment, the live streaming of live streaming user can be watched to realize other users based on link, then can be with
For other users first live streaming user is subscribed to, with based on subscribing to come so that subsequent can generate association live streaming user
The link of live streaming.
As a kind of mode for realizing subscription, the video channel management server in management server cluster can create one
The virtual use of first audio, video data of a rtp format for being used to obtain the live streaming user live broadcast by subscription live streaming user
Family, the Virtual User can be corresponding with broadcasting server.Wherein, the program of the Virtual User of creation can be set in advance in view
In frequency channel management server, then video channel management server can be created that based on the preset control program is run
The Virtual User.
Step S200: the management server cluster by the Virtual User be added it is being run in the management server and
Real-time interactive video virtual room where the live streaming user.
To realize that the Virtual User of creation can subscribe to live streaming user, therefore first Virtual User and live streaming user can be set
In identical platform, it can the Virtual User to be added to just in real-time interactive video virtual room.It is understood that live streaming
User can be elder generation and the Virtual User is added in real-time interactive video virtual room, then when Virtual User is added, by
In, also comprising live streaming user, therefore the real-time interactive video virtual room can be and be currently running in real-time interactive video virtual room
Rather than do not create also, therefore, Virtual User can be added directly into the real-time interactive video virtual room.This
Sample, the user in the real-time interactive video virtual room then include at least live streaming user and the Virtual User being just added.
Step S300: the management server cluster will be based on will be described virtual in the real-time interactive video virtual room
User and the live streaming user-association, and the mark of first audio, video data and first audio, video data is sent to
The corresponding broadcasting server of the Virtual User.
It is respectively positioned in the real-time interactive video virtual room based on live streaming user and Virtual User, video channel management service
Device can execute the operation that Virtual User and live streaming user are established to incidence relation, so that Virtual User and live streaming user-association.
Wherein, Virtual User and live streaming user-association, it can be that the Virtual User subscribes to live streaming user.
Correspondingly, video channel management server is based on live streaming user and Virtual User is successfully associated, video channel management
Server can continue to execute subsequent process, i.e., video channel management server based on be successfully associated determination can be by first
Video data and the first audio data are sent to broadcasting server.
As a kind of mode that the first video data and the first audio data are sent, video channel management server can be with
Video server interacts, and is sent with obtaining the first IP address and the video server of the video server from video server
First video data and the first end slogan of first port and video channel management server that distribute can also and voice
Channel server interacts, to obtain the second IP address and speech channel of speech channel server from speech channel server
Server sends first audio data and the second end slogan of second port that distributes.
Furthermore video channel management server can also by the interaction of video server and speech channel server, and
So that first video data of video server by first port transmission storage, and speech channel server is passed through
First audio data of second port transmission storage.
In addition, for the first video data and the first audio data that can identify acquisition convenient for broadcasting server, therefore video
Channel management server can be regarded using the first IP address, first end slogan, the second IP address and second end slogan as the first sound
The mark of frequency is sent to broadcasting server.
Therefore, first video data, speech channel server transport based on video server transmission storage store
First audio data and video channel management server send the mark of first audio-video, just realize management server collection
The mark of first audio, video data and the first audio, video data is sent to the corresponding broadcasting server of Virtual User by group.
Step S400: the broadcasting server determines that obtaining data is first audio, video data based on the mark.
In general, obtaining audio, video data is to be executed by client, therefore broadcasting server can simulate Virtual User
The behavior of corresponding client and the audio, video data to be determined and the first audio-video for receiving management server collection pocket transmission
The mark of data.Broadcasting server can carry out port study based on the mark of the first audio, video data of acquisition, i.e., to
One IP address, first end slogan, the second IP address and second end slogan are learnt.In this way, broadcasting server can be based on the
One IP address and first end slogan identify the video data to be determined received from video server, so that it is determined that
Determining video data is the first video data of rtp format.Certainly, broadcasting server can also be based on the second IP address and the
Two-port netwerk number identifies the audio data to be determined received from speech channel server, so that it is determined that sound to be determined
Frequency is according to the first audio data for being rtp format.
Therefore, broadcasting server obtains the based on determining to the first video data and to the determination of the first audio data
One audio, video data.
Step S500: first audio, video data is converted into the second audio-video of rtmp format by the broadcasting server
Data.
Due to the data that the first audio, video data of acquisition is rtp format, therefore the first audio, video data of rtp format can not
The link of generation is associated with it.Therefore the program that format conversion has been preset in broadcasting server carrys out first to rtp format
Audio, video data is converted.
The program of the preset format conversion is so run based on broadcasting server, broadcasting server can be by rtp format
The first audio, video data be converted into the second audio, video data of rtmp format, the second audio, video data of the rtmp format
To be that can link associated data with generation.
It is understood that the second audio, video data of the rtmp format may include rtmp format second audio data and
The second audio data of rtmp format.
Step S600: second audio, video data is sent to web server by the broadcasting server, for described
Web server generates the net cast address for being associated with second audio, video data based on second audio, video data.
First audio, video data is converted into the second audio, video data by broadcasting server can be a lasting process, with
The lasting progress of this process, broadcasting server can also continue the second audio, video data changed into is sent to
Web server.
For web server, web server can then generate the second audio-video of association based on the second audio, video data
The net cast address of data, and the net cast address is pushed to page end.In this way, the user of other viewing live streamings passes through
Net cast address on page end can download second audio, video data from web server, so that live streaming be watched to use
The live video at family.
It should be noted that guarantee the timeliness of data and saving memory space, first stored on broadcasting server
Audio, video data can be for away from the data in current time preset duration, the first audio, video data beyond preset duration broadcasts clothes
Business device can be deleted, to guarantee the real-time update of the first audio, video data.In addition, the second sound stored in web server
Video data can be the second audio, video data web services beyond preset duration away from the data in current time preset duration
Device can also be deleted, to guarantee the real-time update of the second audio, video data.
Wherein, the user for watching live streaming can also be there are many role, for example, live streaming user can be Doctor's Assistant, management
Member, higher level expert, patient, head, which examine doctor or seek, examines doctor etc..
3rd embodiment
Referring to Fig. 3, present embodiments providing a kind of broadcasting server 13, it is applied to live broadcast system, the broadcast service
Device 13 includes:
First data obtaining module 131 obtains the first audio, video data of rtp format for the broadcasting server.
First audio, video data is converted into rtmp for the broadcasting server by data format conversion module 132
Second audio, video data of format.
Second audio, video data is sent to web clothes for the broadcasting server by the first data transmission blocks 133
Business device, the video for the web server based on second audio, video data generation association, second audio, video data
Address is broadcast live.
3rd embodiment
Referring to Fig. 4, present embodiments providing a kind of management server cluster 12, it is applied to live broadcast system, the management
Server cluster 12 includes:
Virtual User creation module 1201 creates for the management server cluster and needs to obtain live streaming user live broadcast
The Virtual User of first audio, video data;
Module 1202 is added in Virtual User, and the management is added in the Virtual User for the management server cluster
Real-time interactive video virtual room where the live streaming user run on server and described;
Second data transmission blocks 1203 are based on the real-time interactive video is virtual for the management server cluster
The Virtual User in room and the live streaming user-association, and by first audio, video data and first audio-video
The mark of data is sent to the corresponding broadcasting server of the Virtual User.
It should be noted that due to it is apparent to those skilled in the art that, for the convenience and letter of description
Clean, system, the specific work process of device and unit of foregoing description can be with reference to corresponding in preceding method embodiment
Journey, details are not described herein.
It should be understood by those skilled in the art that, the embodiment of the present application can provide as the production of method, system or computer program
Product.Therefore, in terms of the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and hardware
Embodiment form.Moreover, it wherein includes computer available programs generation that the embodiment of the present application, which can be used in one or more,
The meter implemented in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of code
The form of calculation machine program product.
In conclusion the embodiment of the present application provides a kind of live broadcasting method, system, storage medium, broadcasting server and clothes
Business device cluster.Live broadcasting method is applied to the broadcasting server in live broadcast system, and method includes: that broadcasting server obtains rtp format
The first audio, video data;First audio, video data is converted into the second audio, video data of rtmp format by broadcasting server;Extensively
It broadcasts server and the second audio, video data is sent to web server, generate pass so that web server is based on the second audio, video data
Join the net cast address of the second audio, video data.
Due to broadcasting server can by the first audio, video data of rtp format convert can be with the rtmp format of association link
The second audio, video data;Therefore web server can be made to be based on the second audio, video data and generate the second audio, video data of association
Net cast address.It is therefore, middle compared to the prior art to download client and register the mode for opening permission to watch live streaming,
The user terminal of the application can by be loaded into net cast address can direct viewing be broadcast live so that a large amount of user
It is more convenient that live streaming is watched simultaneously.
The above is only preferred embodiment of the present application, are not intended to limit this application, for those skilled in the art
For member, various changes and changes are possible in this application.Within the spirit and principles of this application, it is made it is any modification,
Equivalent replacement, improvement etc., should be included within the scope of protection of this application.It should also be noted that similar label and letter are under
Similar terms are indicated in the attached drawing in face, therefore, once being defined in a certain Xiang Yi attached drawing, are not then needed in subsequent attached drawing
It is further defined and explained.
More than, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, and it is any to be familiar with
Those skilled in the art within the technical scope of the present application, can easily think of the change or the replacement, and should all cover
Within the protection scope of the application.Therefore, the protection scope of the application should be subject to the protection scope in claims.
Claims (10)
1. a kind of live broadcasting method, which is characterized in that applied to the broadcasting server in live broadcast system, which comprises
The broadcasting server obtains the first audio, video data of rtp format;
First audio, video data is converted into the second audio, video data of rtmp format by the broadcasting server;
Second audio, video data is sent to web server by the broadcasting server, so that the web server is based on institute
It states the second audio, video data and generates the net cast address for being associated with second audio, video data.
2. live broadcasting method according to claim 1, which is characterized in that the method is also applied in the live broadcast system
Management server cluster, before the first audio, video data that the broadcasting server obtains rtp format, the method is also wrapped
It includes:
The management server cluster creation needs to obtain the Virtual User of first audio, video data of live streaming user live broadcast;
The live streaming user run in the management server and described is added in the Virtual User by the management server cluster
The real-time interactive video virtual room at place;
The management server cluster is based on by the Virtual User in the real-time interactive video virtual room and described straight
Broadcasting user association, and the mark of first audio, video data and first audio, video data is sent to the Virtual User
The corresponding broadcasting server, so that it is described first that the broadcasting server, which determines received data based on the mark,
Audio, video data.
3. live broadcasting method according to claim 2, which is characterized in that the management server cluster includes: video channel
Management server, video server and speech channel server;First audio, video data includes: to be stored in the video clothes
The first video data being engaged on device and the first audio data being stored on the speech channel server, the management server
Cluster is by the Virtual User and the live streaming user-association in the real-time interactive video virtual room, and by described first
The mark of audio, video data and first audio, video data is sent to the corresponding broadcasting server of the Virtual User, packet
It includes:
The video channel management server subscribes to institute based on the Virtual User in the real-time interactive video virtual room
State live streaming user and by the Virtual User and the live streaming user-association;
The video channel management server is based on being successfully associated, and the video server is notified to send first video respectively
Data and the speech channel server send first audio data;And obtain the first IP address of the video server
It is the first end slogan for sending the first port of the first video data distribution with the video server, and described in acquisition
Second IP address of speech channel server and the speech channel server are send first audio data distribution the
The second end slogan of Two-port netwerk;
It is corresponding that first video data is sent to the Virtual User by the first port by the video server
The broadcasting server;First audio data is sent to described by the speech channel server by the second port
Broadcasting server;And the video channel management server is by first IP address, the first end slogan, described second
IP address and the second end slogan are sent to the broadcasting server as the mark.
4. live broadcasting method according to claim 2, which is characterized in that the broadcasting server obtains the first of rtp format
Audio, video data, comprising:
The broadcasting server receives the management service based on the behavior for simulating the corresponding client of the Virtual User
The audio, video data to be determined of device collection pocket transmission and the mark;
The broadcasting server determines that the audio, video data to be determined is first sound of rtp format according to the mark
Video data.
5. a kind of live broadcasting method, which is characterized in that applied to the management server cluster in live broadcast system, which comprises
The management server cluster creation needs to obtain the Virtual User of the first audio, video data of live streaming user live broadcast;
The live streaming user run in the management server and described is added in the Virtual User by the management server cluster
The real-time interactive video virtual room at place;
The management server cluster is based on by the Virtual User in the real-time interactive video virtual room and described straight
Broadcasting user association, and the mark of first audio, video data and first audio, video data is sent to the Virtual User
Corresponding broadcasting server.
6. a kind of live broadcasting method, which is characterized in that be applied to live broadcast system, the live broadcast system includes: broadcasting server and institute
State the management server cluster of broadcasting server connection, which comprises
The management server cluster creation needs to obtain the virtual of the first audio, video data of the rtp format of live streaming user live broadcast
User;
The live streaming user run in the management server and described is added in the Virtual User by the management server cluster
The real-time interactive video virtual room at place;
The management server cluster is based on by the Virtual User in the real-time interactive video virtual room and described straight
Broadcasting user association, and the mark of first audio, video data and first audio, video data is sent to the Virtual User
Corresponding broadcasting server;
The broadcasting server determines that obtaining data is first audio, video data based on the mark;
First audio, video data is converted into the second audio, video data of rtmp format by the broadcasting server;
Second audio, video data is sent to web server by the broadcasting server, so that the web server is based on institute
It states the second audio, video data and generates the net cast address for being associated with second audio, video data.
7. a kind of broadcasting server, which is characterized in that be applied to live broadcast system, the broadcasting server includes:
First data obtaining module obtains the first audio, video data of rtp format for the broadcasting server;
First audio, video data is converted into the of rtmp format for the broadcasting server by data format conversion module
Two audio, video datas;
Second audio, video data is sent to web server for the broadcasting server by the first data transmission blocks, with
The net cast for being associated with second audio, video data is generated based on second audio, video data for the web server
Location.
8. a kind of management server cluster, which is characterized in that be applied to live broadcast system, the management server cluster includes:
Virtual User creation module creates the first sound view for needing to obtain live streaming user live broadcast for the management server cluster
The Virtual User of frequency evidence;
Module is added in Virtual User, and the management server is added in the Virtual User for the management server cluster
Real-time interactive video virtual room where operation the and described live streaming user;
Second data transmission blocks, for the management server cluster based on will be in the real-time interactive video virtual room
The Virtual User and the live streaming user-association, and by the mark of first audio, video data and first audio, video data
Knowledge is sent to the corresponding broadcasting server of the Virtual User.
9. a kind of live broadcast system, which is characterized in that the live broadcast system includes: that broadcasting server and the broadcasting server connect
The management server cluster connect,
The live broadcast system, for executing the live broadcasting method as described in any claim of claim 1-6.
10. a kind of computer-readable storage media for the non-volatile program code that can be performed with computer, which is characterized in that institute
Stating program code makes the computer execute the live broadcasting method as described in any claim of claim 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811180830.1A CN109194983A (en) | 2018-10-10 | 2018-10-10 | Live broadcasting method, system, storage medium, broadcasting server and server cluster |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811180830.1A CN109194983A (en) | 2018-10-10 | 2018-10-10 | Live broadcasting method, system, storage medium, broadcasting server and server cluster |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109194983A true CN109194983A (en) | 2019-01-11 |
Family
ID=64947989
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811180830.1A Pending CN109194983A (en) | 2018-10-10 | 2018-10-10 | Live broadcasting method, system, storage medium, broadcasting server and server cluster |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109194983A (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103607570A (en) * | 2013-11-25 | 2014-02-26 | 青岛科讯通电子科技有限公司 | Kindergarten live broadcast |
CN104244108A (en) * | 2014-09-24 | 2014-12-24 | 上海网达软件股份有限公司 | Live method and system |
CN105898620A (en) * | 2015-11-26 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | Multimedia real-time live broadcast method and device |
CN106254951A (en) * | 2016-09-27 | 2016-12-21 | 腾讯科技(深圳)有限公司 | A kind of net cast creation method and system, access device, management equipment |
CN106330912A (en) * | 2016-08-25 | 2017-01-11 | 北京智能管家科技有限公司 | Video live broadcasting and two-way communication fusion system and method |
CN106534877A (en) * | 2016-10-24 | 2017-03-22 | 广州酷狗计算机科技有限公司 | Method and device for sending media stream |
CN106713937A (en) * | 2016-12-30 | 2017-05-24 | 广州虎牙信息科技有限公司 | Video playing control method and device as well as terminal equipment |
CN106803923A (en) * | 2017-03-01 | 2017-06-06 | 北京牡丹电子集团有限责任公司数字电视技术中心 | RTMP plug-flow real-time live broadcast systems |
CN106941629A (en) * | 2017-04-05 | 2017-07-11 | 深圳进门财经科技股份有限公司 | Real-time live broadcast method based on SIP+RTP Yu RTMP protocol interconnections |
CN107423312A (en) * | 2017-03-14 | 2017-12-01 | 北京潘达互娱科技有限公司 | Live data player method and device |
CN108235042A (en) * | 2016-12-14 | 2018-06-29 | 腾讯科技(深圳)有限公司 | A kind of more people's live network broadcast methods, device, adding apparatus and system |
CN108289187A (en) * | 2017-07-31 | 2018-07-17 | 深圳银澎云计算有限公司 | Network direct broadcasting accesses video-meeting method and system |
-
2018
- 2018-10-10 CN CN201811180830.1A patent/CN109194983A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103607570A (en) * | 2013-11-25 | 2014-02-26 | 青岛科讯通电子科技有限公司 | Kindergarten live broadcast |
CN104244108A (en) * | 2014-09-24 | 2014-12-24 | 上海网达软件股份有限公司 | Live method and system |
CN105898620A (en) * | 2015-11-26 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | Multimedia real-time live broadcast method and device |
CN106330912A (en) * | 2016-08-25 | 2017-01-11 | 北京智能管家科技有限公司 | Video live broadcasting and two-way communication fusion system and method |
CN106254951A (en) * | 2016-09-27 | 2016-12-21 | 腾讯科技(深圳)有限公司 | A kind of net cast creation method and system, access device, management equipment |
CN106534877A (en) * | 2016-10-24 | 2017-03-22 | 广州酷狗计算机科技有限公司 | Method and device for sending media stream |
CN108235042A (en) * | 2016-12-14 | 2018-06-29 | 腾讯科技(深圳)有限公司 | A kind of more people's live network broadcast methods, device, adding apparatus and system |
CN106713937A (en) * | 2016-12-30 | 2017-05-24 | 广州虎牙信息科技有限公司 | Video playing control method and device as well as terminal equipment |
CN106803923A (en) * | 2017-03-01 | 2017-06-06 | 北京牡丹电子集团有限责任公司数字电视技术中心 | RTMP plug-flow real-time live broadcast systems |
CN107423312A (en) * | 2017-03-14 | 2017-12-01 | 北京潘达互娱科技有限公司 | Live data player method and device |
CN106941629A (en) * | 2017-04-05 | 2017-07-11 | 深圳进门财经科技股份有限公司 | Real-time live broadcast method based on SIP+RTP Yu RTMP protocol interconnections |
CN108289187A (en) * | 2017-07-31 | 2018-07-17 | 深圳银澎云计算有限公司 | Network direct broadcasting accesses video-meeting method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9571793B2 (en) | Methods, systems and program products for managing resource distribution among a plurality of server applications | |
CN100382072C (en) | Method and system for providing contents | |
KR100990525B1 (en) | Initializing relationships between devices in a network | |
JP4017037B2 (en) | Adaptive infrastructure configuration | |
CN106254951B (en) | A kind of net cast creation method and its system, access device, management equipment | |
CN101365096B (en) | Method for providing video content, related service apparatus and system | |
CN110830735B (en) | Video generation method and device, computer equipment and storage medium | |
CN108306819A (en) | Instant communicating system implementation method, medium and computing device based on block chain | |
CN101247332A (en) | Bandwidth requesting system, bandwidth requesting device, client device, bandwidth requesting method, content playback method, and program | |
CN108810052A (en) | The selection method and device of direct broadcast server | |
CN109862438A (en) | A kind of method and apparatus of agency's forwarding real-time streaming protocol stream medium data | |
US20120297075A1 (en) | Device interconnection and service discovery via a communication cloud | |
CN109995807A (en) | A kind of management of multimedia equipment system and method | |
CN106303637B (en) | IPTV service processing method and system based on OTT terminal | |
CN113747247B (en) | Live broadcast method, live broadcast device, computer equipment and storage medium | |
CN102572603B (en) | A kind of for providing the method and apparatus of interactive message request for video user | |
US20150296182A1 (en) | Method and system for providing video service | |
KR100596723B1 (en) | Device for integrating multimedia streaming service and application streaming service and method thereof | |
JP2012015720A (en) | Stream data distribution system and method thereof | |
CN109194983A (en) | Live broadcasting method, system, storage medium, broadcasting server and server cluster | |
CN101989978A (en) | Method, device and system for forwarding data by real time streaming protocol (RTSP) proxy | |
CN108668140B (en) | Audio and video interaction state synchronization method and device | |
CN105847884B (en) | Method and device for controlling television user to use television | |
CN109963088A (en) | Live network broadcast method, apparatus and system based on augmented reality AR | |
CN109086123A (en) | Moving method, device, terminal, server and the storage medium of utility cession |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190111 |