CN108306923A - A kind of live video method for uploading, device, electronic equipment and storage medium - Google Patents

A kind of live video method for uploading, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN108306923A
CN108306923A CN201710718810.4A CN201710718810A CN108306923A CN 108306923 A CN108306923 A CN 108306923A CN 201710718810 A CN201710718810 A CN 201710718810A CN 108306923 A CN108306923 A CN 108306923A
Authority
CN
China
Prior art keywords
cdn node
node server
server
main broadcaster
electronic equipment
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
Application number
CN201710718810.4A
Other languages
Chinese (zh)
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.)
Beijing longzhixin Technology Co.,Ltd.
Original Assignee
Beijing Panda Mutual Entertainment 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 Beijing Panda Mutual Entertainment Technology Co Ltd filed Critical Beijing Panda Mutual Entertainment Technology Co Ltd
Priority to CN201710718810.4A priority Critical patent/CN108306923A/en
Publication of CN108306923A publication Critical patent/CN108306923A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1023Server selection for load balancing based on a hash applied to IP addresses or costs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/101Server selection for load balancing based on network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44245Monitoring the upstream path of the transmission network, e.g. its availability, bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/64322IP

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Databases & Information Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

An embodiment of the present invention provides a kind of live video method for uploading, device, electronic equipment and storage mediums, in this method, obtain the IP address of electronic equipment, according to IP address, determine the content distributing network CDN node server at a distance from electronic equipment in pre-determined distance, identified CDN node server is showed into main broadcaster, so that main broadcaster selects a CDN node server, the selected CDN node server of main broadcaster is obtained, live video is uploaded to director server by the selected CDN node server of main broadcaster in real time.In the present invention, multiple CDN node servers around electronic equipment are determined by the IP address of electronic equipment, and show each CDN node server to main broadcaster, it provides more choices for main broadcaster, so that when CDN node server breaks down, main broadcaster can upload live video with one CDN node server of reselection, reduce the probability that can not carry out net cast as a result,.

Description

A kind of live video method for uploading, device, electronic equipment and storage medium
Technical field
The present invention relates to direct seeding technique field, more particularly to a kind of live video method for uploading, device, electronic equipment with And storage medium.
Background technology
Currently, main broadcaster can carry out net cast by the live streaming APP in electronic equipment, excellent program is broadcasted for spectators. General main broadcaster when carrying out net cast needs that live video is uploaded to director server in real time, so that director server will be broadcast live Video is sent to each spectators, so that spectators watch live video.
In the related technology, the upload mode of live video is:By corresponding default with the electronic equipment where live streaming APP CDN (Content Delivery Network, content distributing network) node server upload live video in real time to total clothes Business device.
Due to above-mentioned live video method for uploading, live video is only uploaded by preset CDN node server in real time, When preset CDN node server breaks down, it will be unable to upload live video to director server, only in preset CDN After node server restores normal, live video can be just uploaded to director server, as a result, in preset CDN node server It during failure, will be unable to carry out net cast, therefore, there is an urgent need for a kind of live video method for uploading at present, can not carry out to reduce The probability of net cast.
Invention content
The embodiment of the present invention is designed to provide a kind of live video method for uploading, device, electronic equipment and storage Medium, to reduce the probability that can not carry out net cast.Specific technical solution is as follows:
A kind of live video method for uploading is applied to electronic equipment, the method includes:
Obtain the IP address of the electronic equipment;
According to the IP address, the content distributing network CDN at a distance from the electronic equipment in pre-determined distance is determined Node server;
Identified CDN node server is showed into main broadcaster, so that main broadcaster selects a CDN node server;
Obtain the selected CDN node server of main broadcaster, by the selected CDN node server of the main broadcaster it is real-time on Live video is passed to director server.
Optionally, described according to the IP address, determine the content at a distance from the electronic equipment in pre-determined distance The step of distribution network CDN node server, including:
The IP address is sent to the carrier server communicated to connect with the electronic equipment;
Receive the CDN node clothes at a distance from the electronic equipment in pre-determined distance of the carrier server feedback Be engaged in device, wherein the CDN node server be the carrier server after receiving the IP address, according to the IP CDN node server determined by address.
Optionally, before described the step of identified CDN node server is showed main broadcaster, the method is also wrapped It includes:
Determine the corresponding network-induced delay of each CDN node server;
It is described that identified CDN node server is showed into main broadcaster, so that main broadcaster selects the step of a CDN node server Suddenly, including:
Identified CDN node server and corresponding network-induced delay are showed into main broadcaster so that main broadcaster according to The length of the network-induced delay shown selects a CDN node server.
Optionally, the step of each CDN node server of the determination corresponding network-induced delay, including:
For each CDN node server, determine that the CDN node server sends transmission of the test request to director server Time point;
Determine that the CDN node server receives the receiving time point of the test request of the director server feedback;
According to the sending time point and receiving time point, the corresponding network delay of CDN node server is determined Time.
Optionally, live video is uploaded to total clothes by the selected CDN node server of the main broadcaster in real time described After the step of business device, the method further includes:
Show the frame loss rate of live video when uploading the live video in real time.
A kind of live video upload device, is applied to electronic equipment, described device includes:
Obtain module, the IP address for obtaining the electronic equipment;
CDN node server determining module, for according to the IP address, determining at a distance from the electronic equipment pre- If the content distributing network CDN node server in distance;
Display module, for identified CDN node server to be showed main broadcaster, so that main broadcaster selects a CDN node Server;
Uploading module is saved for obtaining the selected CDN node server of main broadcaster by the selected CDN of the main broadcaster Point server uploads live video to director server in real time.
Optionally, the CDN node server determining module, including:
Transmission unit, for the IP address to be sent to the carrier server communicated to connect with the electronic equipment;
Receiving unit, for receive carrier server feedback at a distance from the electronic equipment in pre-determined distance Interior CDN node server, wherein the CDN node server is that the carrier server is receiving the IP address Afterwards, according to CDN node server determined by the IP address.
Optionally, described device further includes:
Network-induced delay determining module, for before identified CDN node server is showed main broadcaster, determining The corresponding network-induced delay of each CDN node server;
The display module, is specifically used for:
Identified CDN node server and corresponding network-induced delay are showed into main broadcaster so that main broadcaster according to The length of the network-induced delay shown selects a CDN node server.
Optionally, the network-induced delay determining module, including:
Sending time point determination unit determines that the CDN node server is sent for being directed to each CDN node server Test request to director server sending time point;
Receiving time point determination unit, for determining that the CDN node server receives the described of the director server feedback The receiving time point of test request;
Computing unit, for according to the sending time point and receiving time point, determining the CDN node server pair The network-induced delay answered.
Optionally, described device further includes:
Display module, for uploading live video in real time to total by the selected CDN node server of the main broadcaster After server, the frame loss rate of live video when uploading the live video in real time is shown.
A kind of electronic equipment, including processor, communication interface, memory and communication bus, wherein processor, communication connect Mouthful, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the computer program stored on memory, realizes any of the above-described method step Suddenly.
A kind of computer readable storage medium is stored with computer program in the computer readable storage medium, described Any of the above-described method and step is realized when computer program is executed by processor.
In the embodiment of the present invention, the IP address of the electronic equipment is obtained, according to the IP address, is determined and the electronics Content distributing network CDN node server of the distance of equipment in pre-determined distance shows identified CDN node server To main broadcaster, so that main broadcaster selects a CDN node server, the selected CDN node server of main broadcaster is obtained, selected by main broadcaster The CDN node server selected uploads live video to director server in real time.In the present invention, determined by the IP address of electronic equipment Multiple CDN node servers around electronic equipment, and show that each CDN node server to main broadcaster, provides more for main broadcaster The selection of more CDN node servers so that main broadcaster can arbitrarily select a CDN node server to upload live video in real time extremely Director server, and when the selected CDN node server of main broadcaster breaks down, main broadcaster can also be from the CDN node shown One CDN node server of reselection uploads live video in server, and the general of net cast can not be carried out as a result, by reducing Rate.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is the first flow diagram of live video method for uploading provided in an embodiment of the present invention;
Fig. 2, according to IP address, is determined at a distance from electronic equipment in pre-determined distance to be provided in an embodiment of the present invention The flow diagram of content distributing network CDN node server;
Fig. 3 is second of flow diagram of live video method for uploading provided in an embodiment of the present invention;
Fig. 4 is the flow of the corresponding network-induced delay of each CDN node server of determination provided in an embodiment of the present invention Schematic diagram;
Fig. 5 is the third flow diagram of live video method for uploading provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram that a kind of live video provided in an embodiment of the present invention uploads device;
Fig. 7 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In order to solve Related Technical Issues, an embodiment of the present invention provides a kind of live video method for uploading, device, electronics Equipment and storage medium.
A kind of live video method for uploading is provided for the embodiments of the invention first below to be introduced.
As shown in Figure 1, a kind of live video method for uploading provided in an embodiment of the present invention, is applied to electronic equipment, the party Method may include:
S101:Obtain the IP address of electronic equipment.
When in order to upload live video to director server, the IP address for obtaining electronic equipment is needed.
S102:According to IP address, the content distributing network CDN node at a distance from electronic equipment in pre-determined distance is determined Server.
Since CDN (Content Delivery Network, content distributing network) is built in existing the Internet-based One layer of intelligent virtual network on plinth, can be in real time according to the connection of network flow and each node server, load state And the request of user is re-directed into the node serve nearest from user to the integrated informations such as the distance of user and response time On device, to solve the problems, such as network congestion, the response speed that user accesses website is improved.Therefore, it can generally be saved by CDN Point server uploads live video to director server in real time.
It is preset when in order to avoid only uploading live video to director server in real time by preset CDN node server The generation for the case where CDN node server breaks down and leads to not upload live video, with obtaining the IP of electronic equipment Behind location, it is thus necessary to determine that with the CDN node server at a distance from electronic equipment in pre-determined distance.
It is above-mentioned according to IP address, determine the content distributing network CDN node at a distance from electronic equipment in pre-determined distance There are many modes of server, introduces in detail below:
The first:According to IP address, determine the geographical location of electronic equipment, according to identified geographical location, determine with CDN node server of the distance in the geographical location in pre-determined distance.
After the IP address for obtaining electronic equipment, the geographical position that electronic equipment is currently located can be navigated to according to IP address It sets, it should be noted that existing any type positioning side may be used according to the geographical location of IP address Positioning Electronic Devices Method positions.
Due to the geographical location of each CDN node server in a general content distributing network be it is pre-set and It is fixed, therefore, after the geographical location that electronic equipment is currently located is determined, you can according to identified geographical location, Determine CDN node server at a distance from the geographical location in pre-determined distance, it should be noted that the pre-determined distance it is big The small quantity at least two for needing to ensure identified CDN node server.
Second:May include referring to Fig. 2, step S102:
S1021:IP address is sent to the carrier server communicated to connect with electronic equipment.
It, at this time can be by the electronic equipment obtained due to there is the case where operator content distributing network sometimes IP address is sent to the carrier server communicated to connect with electronic equipment.
S1022:Receive the CDN node service at a distance from electronic equipment in pre-determined distance of carrier server feedback Device, wherein CDN node server be carrier server after receiving IP address, according to CDN node determined by IP address Server.
After carrier server receives IP address, the geography that can be currently located according to IP address Positioning Electronic Devices Position when due to operator content distributing network, can pre-set each CDN node server in content distributing network Geographical location, therefore, carrier server, can be according to identified geography after the geographical location of electronic equipment is determined Position determines CDN node server with the geographical location at a distance from pre-determined distance, it should be noted that this preset away from From size need to ensure determined by CDN node server quantity at least two.
Carrier server is after determining CDN node server, by identified CDN node server feedback to electronics Equipment, electronic equipment receive the CDN node service at a distance from electronic equipment in pre-determined distance of carrier server feedback Device.
S103:Identified CDN node server is showed into main broadcaster, so that main broadcaster selects a CDN node server.
After each CDN node server is determined, you can identified CDN node server is showed into main broadcaster, Main broadcaster is that would know that the real-time live video that uploads that can be used to each CDN node server of director server as a result,.
Main broadcaster can select a CDN node server according to actual conditions.
S104:The selected CDN node server of main broadcaster is obtained, it is real-time by the selected CDN node server of main broadcaster Live video is uploaded to director server.
After main broadcaster has selected CDN node server, electronic equipment can obtain the selected CDN node service of main broadcaster Then device can upload live video in real time to director server by the selected CDN node server of main broadcaster.Hereby it is achieved that Net cast.
In the embodiment of the present invention, the IP address of the electronic equipment is obtained, according to the IP address, is determined and the electronics Content distributing network CDN node server of the distance of equipment in pre-determined distance shows identified CDN node server To main broadcaster, so that main broadcaster selects a CDN node server, the selected CDN node server of main broadcaster is obtained, selected by main broadcaster The CDN node server selected uploads live video to director server in real time.In the present invention, determined by the IP address of electronic equipment Multiple CDN node servers around electronic equipment, and show that each CDN node server to main broadcaster, provides more for main broadcaster The selection of more CDN node servers so that main broadcaster can arbitrarily select a CDN node server to upload live video in real time extremely Director server, and when the selected CDN node server of main broadcaster breaks down, main broadcaster can also be from the CDN node shown One CDN node server of reselection uploads live video in server, and the general of net cast can not be carried out as a result, by reducing Rate.
On the basis of method shown in Fig. 1, as shown in figure 3, before step S103, one kind provided in an embodiment of the present invention Live video method for uploading can also include:
S103A:Determine the corresponding network-induced delay of each CDN node server.
Network delay refers to data in transmission process, the case where standing in a long queue, refers to miscellaneous data in network It is transmitted by procotol in medium, is not limited if information content is excessive, the network flow of excess, which may result in, to be set Standby reaction is slow, causes network delay.So in general, network-induced delay is shorter, illustrate that Network status is better.
Therefore, it after CDN node server is determined, is uploaded in real time directly by each CDN node server to know Broadcast Network status when video to director server, it is thus necessary to determine that the corresponding network-induced delay of each CDN node server.
The corresponding network-induced delay of the above-mentioned each CDN node server of determination can be to pass through to send test request Mode determines network-induced delay.May include referring to Fig. 4, step S103A:
S103A1:For each CDN node server, determine that the CDN node server sends test request to total service The sending time point of device;
S103A2:Determine that the CDN node server receives the receiving time point of the test request of director server feedback;
S103A3:According to sending time point and receiving time point, when determining the corresponding network delay of the CDN node server Between.
For each CDN node server, in order to determine the corresponding network-induced delay of CDN node server, the CDN Node server sends test request to director server, and records the sending time point for sending test request, then will be recorded Sending time point be sent to electronic equipment, electronic equipment receives the sending time point of CDN node server transmission.
After total service receives the test request, any processing is not done to the test request, it is directly that the test request is anti- It feeds the CDN node server, which receives the test request of director server feedback, and records and receive The receiving time point of test request, is then sent to electronic equipment by the receiving time point, and electronic equipment receives CDN node clothes The receiving time point that business device is sent.
Electronic equipment is after not only receiving sending time point but also receiving receiving time point, you can according to sending time point and Receiving time point determines the corresponding network-induced delay of CDN node server.
It is detailed, the corresponding network-induced delay of CDN node server is calculated according to following formula:
Wherein, T is the corresponding network-induced delay of CDN node server, and RT is receiving time point, and ST is sending time Point.
Step S103 in Fig. 3:Identified CDN node server and corresponding network-induced delay are showed into master It broadcasts, so that length of the main broadcaster according to the network-induced delay shown, selects a CDN node server.
After the corresponding network-induced delay of each CDN node server is determined, you can by identified CDN node Server and corresponding network-induced delay show main broadcaster, and main broadcaster would know that through each CDN node server as a result, Network-induced delay when live video to director server is uploaded in real time.
Main broadcaster can select the CDN sections that a network-induced delay is shorter according to the length of the network-induced delay shown Point server.
As a result, by way of showing the corresponding network-induced delay of each CDN node server, can make main broadcaster according to The network-induced delay shown, the CDN node server for selecting a network-induced delay shorter upload live video in real time To director server, the quality of live video is improved.
On the basis of method shown in Fig. 1, as shown in figure 5, after step s 104, one kind provided in an embodiment of the present invention Live video method for uploading can also include:
S105:Show the frame loss rate of live video when uploading live video in real time.
Due to by CDN node server upload live video to director server during, often due to various Reason and there is the case where frame losing, such as:CDN node server transmits 24 frame images to director server in a certain second, and always takes Business device but receives only 20 frame images in this second, and this phenomenon is exactly frame losing.Generally with frame loss rate come the case where weighing frame losing.
It therefore, can after uploading live video to director server in real time by the selected CDN node server of main broadcaster The frame loss rate of live video when uploading live video in real time to show.Thus, it is possible to which main broadcaster is made to know that current upload live streaming regards The frame loss rate of frequency, when frame loss rate is higher, main broadcaster can be according to the length of the network-induced delay shown, then reselects one CDN node server uploads live video to director server, to ensure preferable live video quality.
As a result, by way of showing frame loss rate so that main broadcaster can switch other CDN nodes when frame loss rate is higher Server uploads live video to director server, has achieved the purpose that the preferable live video quality of guarantee.
Relative to above method embodiment, the embodiment of the present invention additionally provides a kind of live video upload device, is applied to Electronic equipment, as shown in fig. 6, described device may include:
Obtain module 201, the IP address for obtaining the electronic equipment;
CDN node server determining module 202, for according to the IP address, determining at a distance from the electronic equipment Content distributing network CDN node server in pre-determined distance;
Display module 203, for identified CDN node server to be showed main broadcaster, so that main broadcaster selects CDN sections Point server;
Uploading module 204 passes through the selected CDN of the main broadcaster for obtaining the selected CDN node server of main broadcaster Node server uploads live video to director server in real time.
In the embodiment of the present invention, the IP address of the electronic equipment is obtained, according to the IP address, is determined and the electronics Content distributing network CDN node server of the distance of equipment in pre-determined distance shows identified CDN node server To main broadcaster, so that main broadcaster selects a CDN node server, the selected CDN node server of main broadcaster is obtained, selected by main broadcaster The CDN node server selected uploads live video to director server in real time.In the present invention, determined by the IP address of electronic equipment Multiple CDN node servers around electronic equipment, and show that each CDN node server to main broadcaster, provides more for main broadcaster The selection of more CDN node servers so that main broadcaster can arbitrarily select a CDN node server to upload live video in real time extremely Director server, and when the selected CDN node server of main broadcaster breaks down, main broadcaster can also be from the CDN node shown One CDN node server of reselection uploads live video in server, and the general of net cast can not be carried out as a result, by reducing Rate.
In an implementation of the embodiment of the present invention, the CDN node server determining module 202 may include:
Transmission unit, for the IP address to be sent to the carrier server communicated to connect with the electronic equipment;
Receiving unit, for receive carrier server feedback at a distance from the electronic equipment in pre-determined distance Interior CDN node server, wherein the CDN node server is that the carrier server is receiving the IP address Afterwards, according to CDN node server determined by the IP address.
In an implementation of the embodiment of the present invention, described device can also include:
Network-induced delay determining module, for before identified CDN node server is showed main broadcaster, determining The corresponding network-induced delay of each CDN node server;
The display module 203 can be specifically used for:
Identified CDN node server and corresponding network-induced delay are showed into main broadcaster so that main broadcaster according to The length of the network-induced delay shown selects a CDN node server.
In an implementation of the embodiment of the present invention, the network-induced delay determining module may include:
Sending time point determination unit determines that the CDN node server is sent for being directed to each CDN node server Test request to director server sending time point;
Receiving time point determination unit, for determining that the CDN node server receives the described of the director server feedback The receiving time point of test request;
Computing unit, for according to the sending time point and receiving time point, determining the CDN node server pair The network-induced delay answered.
In an implementation of the embodiment of the present invention, described device can also include:
Display module, for uploading live video in real time to total by the selected CDN node server of the main broadcaster After server, the frame loss rate of live video when uploading the live video in real time is shown.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in fig. 7, comprises processor 701, communication interface 702, Memory 703 and communication bus 704, wherein processor 701, communication interface 702, memory 703 are complete by communication bus 704 At mutual communication,
Memory 703, for storing computer program;
Processor 701 when for executing the computer program stored on memory 703, realizes following steps:
Obtain the IP address of the electronic equipment;
According to the IP address, the content distributing network CDN at a distance from the electronic equipment in pre-determined distance is determined Node server;
Identified CDN node server is showed into main broadcaster, so that main broadcaster selects a CDN node server;
Obtain the selected CDN node server of main broadcaster, by the selected CDN node server of the main broadcaster it is real-time on Live video is passed to director server.
In the embodiment of the present invention, the IP address of the electronic equipment is obtained, according to the IP address, is determined and the electronics Content distributing network CDN node server of the distance of equipment in pre-determined distance shows identified CDN node server To main broadcaster, so that main broadcaster selects a CDN node server, the selected CDN node server of main broadcaster is obtained, selected by main broadcaster The CDN node server selected uploads live video to director server in real time.In the present invention, determined by the IP address of electronic equipment Multiple CDN node servers around electronic equipment, and show that each CDN node server to main broadcaster, provides more for main broadcaster The selection of more CDN node servers so that main broadcaster can arbitrarily select a CDN node server to upload live video in real time extremely Director server, and when the selected CDN node server of main broadcaster breaks down, main broadcaster can also be from the CDN node shown One CDN node server of reselection uploads live video in server, and the general of net cast can not be carried out as a result, by reducing Rate.
In an implementation of the embodiment of the present invention, described according to the IP address, it determines and the electronic equipment Content distributing network CDN node server of the distance in pre-determined distance the step of, may include:
The IP address is sent to the carrier server communicated to connect with the electronic equipment;
Receive the CDN node clothes at a distance from the electronic equipment in pre-determined distance of the carrier server feedback Be engaged in device, wherein the CDN node server be the carrier server after receiving the IP address, according to the IP CDN node server determined by address.
In an implementation of the embodiment of the present invention, identified CDN node server is showed into master described Before the step of broadcasting, the method further includes:
Determine the corresponding network-induced delay of each CDN node server;
It is described that identified CDN node server is showed into main broadcaster, so that main broadcaster selects the step of a CDN node server Suddenly, including:
Identified CDN node server and corresponding network-induced delay are showed into main broadcaster so that main broadcaster according to The length of the network-induced delay shown selects a CDN node server.
In an implementation of the embodiment of the present invention, the corresponding network of each CDN node server of the determination prolongs The step of slow time, including:
For each CDN node server, determine that the CDN node server sends transmission of the test request to director server Time point;
Determine that the CDN node server receives the receiving time point of the test request of the director server feedback;
According to the sending time point and receiving time point, the corresponding network delay of CDN node server is determined Time.
In an implementation of the embodiment of the present invention, pass through the selected CDN node service of the main broadcaster described After device uploads the step of live video to director server in real time, the method further includes:
Show the frame loss rate of live video when uploading the live video in real time.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), can also include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored in the computer readable storage medium There is computer program, when the computer program is executed by processor, realizes following steps:
Obtain the IP address of the electronic equipment;
According to the IP address, the content distributing network CDN at a distance from the electronic equipment in pre-determined distance is determined Node server;
Identified CDN node server is showed into main broadcaster, so that main broadcaster selects a CDN node server;
Obtain the selected CDN node server of main broadcaster, by the selected CDN node server of the main broadcaster it is real-time on Live video is passed to director server.
In the embodiment of the present invention, the IP address of the electronic equipment is obtained, according to the IP address, is determined and the electronics Content distributing network CDN node server of the distance of equipment in pre-determined distance shows identified CDN node server To main broadcaster, so that main broadcaster selects a CDN node server, the selected CDN node server of main broadcaster is obtained, selected by main broadcaster The CDN node server selected uploads live video to director server in real time.In the present invention, determined by the IP address of electronic equipment Multiple CDN node servers around electronic equipment, and show that each CDN node server to main broadcaster, provides more for main broadcaster The selection of more CDN node servers so that main broadcaster can arbitrarily select a CDN node server to upload live video in real time extremely Director server, and when the selected CDN node server of main broadcaster breaks down, main broadcaster can also be from the CDN node shown One CDN node server of reselection uploads live video in server, and the general of net cast can not be carried out as a result, by reducing Rate.
In an implementation of the embodiment of the present invention, described according to the IP address, it determines and the electronic equipment Content distributing network CDN node server of the distance in pre-determined distance the step of, may include:
The IP address is sent to the carrier server communicated to connect with the electronic equipment;
Receive the CDN node clothes at a distance from the electronic equipment in pre-determined distance of the carrier server feedback Be engaged in device, wherein the CDN node server be the carrier server after receiving the IP address, according to the IP CDN node server determined by address.
In an implementation of the embodiment of the present invention, identified CDN node server is showed into master described Before the step of broadcasting, the method further includes:
Determine the corresponding network-induced delay of each CDN node server;
It is described that identified CDN node server is showed into main broadcaster, so that main broadcaster selects the step of a CDN node server Suddenly, including:
Identified CDN node server and corresponding network-induced delay are showed into main broadcaster so that main broadcaster according to The length of the network-induced delay shown selects a CDN node server.
In an implementation of the embodiment of the present invention, the corresponding network of each CDN node server of the determination prolongs The step of slow time, including:
For each CDN node server, determine that the CDN node server sends transmission of the test request to director server Time point;
Determine that the CDN node server receives the receiving time point of the test request of the director server feedback;
According to the sending time point and receiving time point, the corresponding network delay of CDN node server is determined Time.
In an implementation of the embodiment of the present invention, pass through the selected CDN node service of the main broadcaster described After device uploads the step of live video to director server in real time, the method further includes:
Show the frame loss rate of live video when uploading the live video in real time.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (12)

1. a kind of live video method for uploading, which is characterized in that it is applied to electronic equipment, the method includes:
Obtain the IP address of the electronic equipment;
According to the IP address, the content distributing network CDN node at a distance from the electronic equipment in pre-determined distance is determined Server;
Identified CDN node server is showed into main broadcaster, so that main broadcaster selects a CDN node server;
The selected CDN node server of main broadcaster is obtained, is uploaded in real time by the selected CDN node server of the main broadcaster straight Video is broadcast to director server.
2. according to the method described in claim 1, it is characterized in that, described according to the IP address, determination is set with the electronics The step of content distributing network CDN node server of the standby distance in pre-determined distance, including:
The IP address is sent to the carrier server communicated to connect with the electronic equipment;
Receive the CDN node service at a distance from the electronic equipment in pre-determined distance of the carrier server feedback Device, wherein the CDN node server be the carrier server after receiving the IP address, according to the IP CDN node server determined by location.
3. according to the method described in claim 1, it is characterized in that, identified CDN node server is showed described Before the step of main broadcaster, the method further includes:
Determine the corresponding network-induced delay of each CDN node server;
It is described that identified CDN node server is showed into main broadcaster, so that the step of main broadcaster selects a CDN node server, Including:
Identified CDN node server and corresponding network-induced delay are showed into main broadcaster, so that main broadcaster is according to being opened up The length of the network-induced delay shown selects a CDN node server.
4. according to the method described in claim 3, it is characterized in that, the corresponding network of each CDN node server of the determination The step of delay time, including:
For each CDN node server, determine that the CDN node server sends test request to the sending time of director server Point;
Determine that the CDN node server receives the receiving time point of the test request of the director server feedback;
According to the sending time point and receiving time point, the corresponding network-induced delay of CDN node server is determined.
5. according to the method described in claim 1, it is characterized in that, being taken by the selected CDN node of the main broadcaster described After the step of business device uploads live video to director server in real time, the method further includes:
Show the frame loss rate of live video when uploading the live video in real time.
6. a kind of live video uploads device, which is characterized in that be applied to electronic equipment, described device includes:
Obtain module, the IP address for obtaining the electronic equipment;
CDN node server determining module, for according to the IP address, determine with the electronic equipment at a distance from preset away from From interior content distributing network CDN node server;
Display module, for identified CDN node server to be showed main broadcaster, so that main broadcaster selects a CDN node service Device;
Uploading module is taken for obtaining the selected CDN node server of main broadcaster by the selected CDN node of the main broadcaster Business device uploads live video to director server in real time.
7. device according to claim 6, which is characterized in that the CDN node server determining module, including:
Transmission unit, for the IP address to be sent to the carrier server communicated to connect with the electronic equipment;
Receiving unit, for receive carrier server feedback at a distance from the electronic equipment in pre-determined distance CDN node server, wherein the CDN node server be the carrier server after receiving the IP address, root According to CDN node server determined by the IP address.
8. device according to claim 6, which is characterized in that described device further includes:
Network-induced delay determining module, for before identified CDN node server is showed main broadcaster, determining each The corresponding network-induced delay of CDN node server;
The display module, is specifically used for:
Identified CDN node server and corresponding network-induced delay are showed into main broadcaster, so that main broadcaster is according to being opened up The length of the network-induced delay shown selects a CDN node server.
9. device according to claim 8, which is characterized in that the network-induced delay determining module, including:
Sending time point determination unit determines that the CDN node server sends test for being directed to each CDN node server It asks to the sending time point of director server;
Receiving time point determination unit, for determining that the CDN node server receives the test of the director server feedback The receiving time point of request;
Computing unit, for according to the sending time point and receiving time point, determining that the CDN node server is corresponding Network-induced delay.
10. device according to claim 6, which is characterized in that described device further includes:
Display module, for uploading live video in real time to total service by the selected CDN node server of the main broadcaster After device, the frame loss rate of live video when uploading the live video in real time is shown.
11. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the computer program stored on memory, realizes any methods of claim 1-5 Step.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program realizes claim 1-5 any method and steps when the computer program is executed by processor.
CN201710718810.4A 2017-08-21 2017-08-21 A kind of live video method for uploading, device, electronic equipment and storage medium Pending CN108306923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710718810.4A CN108306923A (en) 2017-08-21 2017-08-21 A kind of live video method for uploading, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710718810.4A CN108306923A (en) 2017-08-21 2017-08-21 A kind of live video method for uploading, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN108306923A true CN108306923A (en) 2018-07-20

Family

ID=62869200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710718810.4A Pending CN108306923A (en) 2017-08-21 2017-08-21 A kind of live video method for uploading, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108306923A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109510980A (en) * 2019-01-10 2019-03-22 湖南快乐阳光互动娱乐传媒有限公司 Live broadcast delay measurement method and system
CN109951716A (en) * 2019-03-26 2019-06-28 北京达佳互联信息技术有限公司 A kind of main broadcaster's dispatching method, device, electronic equipment and readable storage medium storing program for executing
CN111107386A (en) * 2019-12-27 2020-05-05 北京达佳互联信息技术有限公司 Live video playback method and device, electronic equipment, system and storage medium
CN114584561A (en) * 2022-03-15 2022-06-03 联想(北京)有限公司 Information processing method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130173687A1 (en) * 2012-01-03 2013-07-04 Teletech Holdings, Inc. Method for providing support services using consumer selected specialists and specialist ratings
CN103533387A (en) * 2013-10-21 2014-01-22 腾讯科技(深圳)有限公司 Live video control method, equipment and system
CN105306383A (en) * 2014-06-10 2016-02-03 腾讯科技(深圳)有限公司 Message push method, terminal and push server
CN106878769A (en) * 2017-02-23 2017-06-20 北京潘达互娱科技有限公司 live video quality monitoring method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130173687A1 (en) * 2012-01-03 2013-07-04 Teletech Holdings, Inc. Method for providing support services using consumer selected specialists and specialist ratings
CN103533387A (en) * 2013-10-21 2014-01-22 腾讯科技(深圳)有限公司 Live video control method, equipment and system
CN105306383A (en) * 2014-06-10 2016-02-03 腾讯科技(深圳)有限公司 Message push method, terminal and push server
CN106878769A (en) * 2017-02-23 2017-06-20 北京潘达互娱科技有限公司 live video quality monitoring method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109510980A (en) * 2019-01-10 2019-03-22 湖南快乐阳光互动娱乐传媒有限公司 Live broadcast delay measurement method and system
CN109510980B (en) * 2019-01-10 2020-07-03 湖南快乐阳光互动娱乐传媒有限公司 Live broadcast delay measurement method and system
CN109951716A (en) * 2019-03-26 2019-06-28 北京达佳互联信息技术有限公司 A kind of main broadcaster's dispatching method, device, electronic equipment and readable storage medium storing program for executing
CN111107386A (en) * 2019-12-27 2020-05-05 北京达佳互联信息技术有限公司 Live video playback method and device, electronic equipment, system and storage medium
CN114584561A (en) * 2022-03-15 2022-06-03 联想(北京)有限公司 Information processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US20240223637A1 (en) Providing third-party dynamic content within adaptive streaming video
CN100505696C (en) System, method and user terminal for realizing video live broadcast in media distributing network
CN108306923A (en) A kind of live video method for uploading, device, electronic equipment and storage medium
US9727579B2 (en) Systems and methods for storing digital content
US11968128B2 (en) Management, by an intermediate device, of the quality of transmission of a data stream to a mobile terminal
US8239495B2 (en) Media player with integrated parallel source download technology
CN108737500B (en) Target resource obtaining and providing method and device, storage medium and computer equipment
CN102572555A (en) Method and system for realizing live video playback at HTTP live streaming (HLS) client
CN110830565B (en) Resource downloading method, device, system, electronic equipment and storage medium
CN110312140B (en) Live broadcast data processing method, device and system and computer readable storage medium
CN109168018A (en) Company's wheat converging system, method, apparatus and own server in a kind of live streaming
WO2011017976A1 (en) Method and system for media service
CN113572750B (en) Video data transmission method and device
CN110445723A (en) A kind of network data dispatching method and fringe node
CN103533444A (en) Method and device for supporting time-shifting playing
CN113556618B (en) Data transmission method and device
CN108270807A (en) A kind of data transmission method and device
CN106657116B (en) Method and device for remotely starting streaming data transmission
CN101958934B (en) Electronic program guide incremental content synchronization method, device and system
CN110798691B (en) Live content uploading and acquiring method and device
WO2022268032A1 (en) Video stream scheduling system and related product
CN105706412B (en) Band-width tactics management in self-correcting content delivery network
CN105554116A (en) Remote interconnection method and system for UPnP (Universal Plug and Play) equipment
CN113382453B (en) Cross-domain graph transmission method and system based on enhanced static routing calculation and source return
CN115643203A (en) Content distribution method, content distribution device, content distribution network, device, and medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210207

Address after: 101300 309, 3rd floor, 60 Fuqian 1st Street, Tianzhu District, Shunyi District, Beijing

Applicant after: Beijing longzhixin Technology Co.,Ltd.

Address before: 100041 room a-1123, 2nd floor, building 3, yard 30, Shixing street, Shijingshan District, Beijing

Applicant before: BEIJING PANDA MUTUAL ENTERTAINMENT TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210315

Address after: 101300 309, 3rd floor, 60 Fuqian 1st Street, Tianzhu District, Shunyi District, Beijing

Applicant after: Beijing longzhixin Technology Co.,Ltd.

Address before: 100041 room a-1123, 2nd floor, building 3, yard 30, Shixing street, Shijingshan District, Beijing

Applicant before: BEIJING PANDA MUTUAL ENTERTAINMENT TECHNOLOGY Co.,Ltd.

WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180720