CN113364724B - Live broadcast distribution method, system, device and computer readable storage medium - Google Patents

Live broadcast distribution method, system, device and computer readable storage medium Download PDF

Info

Publication number
CN113364724B
CN113364724B CN202010146205.6A CN202010146205A CN113364724B CN 113364724 B CN113364724 B CN 113364724B CN 202010146205 A CN202010146205 A CN 202010146205A CN 113364724 B CN113364724 B CN 113364724B
Authority
CN
China
Prior art keywords
file
media server
playing
link
player
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010146205.6A
Other languages
Chinese (zh)
Other versions
CN113364724A (en
Inventor
丁鹏
杨鑫
施隆海
魏莱
陈坚
段慧斌
张志超
时晓厚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202010146205.6A priority Critical patent/CN113364724B/en
Publication of CN113364724A publication Critical patent/CN113364724A/en
Application granted granted Critical
Publication of CN113364724B publication Critical patent/CN113364724B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/765Media network packet handling intermediate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays

Landscapes

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

Abstract

The disclosure provides a live broadcast distribution method, a live broadcast distribution system, a live broadcast distribution device and a computer-readable storage medium, and relates to the technical field of computers. The live broadcast distribution method comprises the following steps: the camera pushes a Transport Stream (TS) file to a first media server; the first media server slices the TS file, and stores a generated playing link of the TS slice to a database, wherein the playing link of the TS slice is a hypertext transfer protocol (HTTP) access link of the first media server; the first media server uploads the generated TS slices to the object storage cloud, and changes the playing link of the uploaded TS slices into a sharing link of the object storage cloud in a database; the player initiates a playing request of the TS file to a second media server; the second media server acquires a playing link of the TS slice corresponding to the TS file from the database and sends the playing link to the player; and the player plays the TS file according to the playing link of the TS slice corresponding to the TS file. The present disclosure enables multimedia live distribution functionality.

Description

Live broadcast distribution method, system, device and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a live broadcast distribution method, system, device, and computer-readable storage medium.
Background
The improvement of broadband bandwidth and the popularization of fifth-generation mobile communication obviously increase data transmission bandwidth and speed, and can quickly transmit high-quality audio and video. Therefore, video monitoring based on the internet and the internet of things also enters a high-speed development period in China, and real-time video monitoring can be performed by connecting a monitoring camera or a smart phone with a network. With the development of smart cities and the development of automobile internet and internet of things in recent years, the demand of video monitoring is further expanded in various fields, and the video monitoring is increasingly used in the fields of safety precaution, remote teaching, community service and the like.
Disclosure of Invention
The technical problem solved by the present disclosure is how to implement a multimedia live broadcast distribution function.
According to an aspect of an embodiment of the present disclosure, there is provided a live distribution method, including: the camera pushes a Transport Stream (TS) file to a first media server; the first media server slices the TS file, and stores a generated playing link of the TS slice to a database, wherein the playing link of the TS slice is a hypertext transfer protocol (HTTP) access link of the first media server; the first media server uploads the generated TS slices to the object storage cloud, and changes the playing link of the uploaded TS slices into a sharing link of the object storage cloud in a database; the player sends a playing request of the TS file to a second media server; the second media server acquires a playing link of the TS slice corresponding to the TS file from the database and sends the playing link to the player; and the player plays the TS file according to the playing link of the TS slice corresponding to the TS file.
In some embodiments, the playing of the TS file by the player according to the playing link of the TS slice corresponding to the TS file includes: under the condition that the TS slices corresponding to the TS files are uploaded to the object storage cloud, the player acquires the TS slices of the TS files from the object storage cloud for playing according to the shared links of the TS slices corresponding to the TS files in the object storage cloud; and under the condition that the TS slices corresponding to the TS files are not uploaded to the object storage cloud, the player acquires the TS slices of the TS files from the first media server for playing according to the HTTP access link of the first media server.
In some embodiments, the camera pushing the transport stream TS file to the first media server comprises: the camera initiates a pushing request of the TS file to the load balancer; the load balancer distributes the push request to the first media server; a first media server receives a TS file pushed by a camera; the player initiating a playing request of the TS file to the second media server comprises the following steps: the player initiates a playing request of the TS file to the load balancer; the load balancer distributes the play request to the second media server.
In some embodiments, the obtaining, by the second media server, the playing link of the TS slice corresponding to the TS file from the database, and sending the playing link to the player includes: the second media server acquires a playing link of the TS slice corresponding to the TS file from the database; the second media server generates an M3U8 file by using the playing link of the TS slice corresponding to the TS file; the second media server sends the M3U8 file to the player.
In some embodiments, the first media server and the second media server are different media servers.
According to another aspect of an embodiment of the present disclosure, there is provided a live distribution system including: a camera configured to push a Transport Stream (TS) file to a first media server; a first media server configured to: slicing the TS file, and storing a generated playing link of the TS slice to a database, wherein the playing link of the TS slice is a hypertext transfer protocol (HTTP) access link of a first media server; uploading the generated TS slices to an object storage cloud, and modifying the playing link of the uploaded TS slices into a sharing link of the object storage cloud in a database; a player configured to initiate a play request of the TS file to a second media server; the second media server is configured to acquire the playing link of the TS slice corresponding to the TS file from the database and send the playing link to the player; the player is also configured to play the TS file according to the playing link of the TS slice corresponding to the TS file.
In some embodiments, the player is configured to: under the condition that the TS slices corresponding to the TS files are uploaded to the object storage cloud, obtaining the TS slices of the TS files from the object storage cloud for playing according to the shared links of the TS slices corresponding to the TS files in the object storage cloud; and under the condition that the TS slices corresponding to the TS files are not uploaded to the object storage cloud, obtaining the TS slices of the TS files from the first media server for playing according to the HTTP access link of the first media server.
In some embodiments, the system further comprises a load balancer, wherein the camera is configured to initiate a push request of the TS file to the load balancer; the load balancer is configured to distribute the push request to the first media server; the first media server is also configured to receive TS files pushed by the camera; the player is configured to initiate a playing request of the TS file to the load balancer; the load balancer is further configured to distribute the play request to the second media server.
In some embodiments, the second media server is configured to: acquiring a playing link of a TS slice corresponding to the TS file from a database; generating an M3U8 file by using the playing link of the TS slice corresponding to the TS file; the M3U8 file is sent to the player.
In some embodiments, the first media server and the second media server are different media servers.
According to still another aspect of an embodiment of the present disclosure, there is provided a live distribution apparatus including: a memory; and a processor coupled to the memory, the processor configured to perform the aforementioned live distribution method based on instructions stored in the memory.
According to yet another aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer instructions are stored, and when executed by a processor, the instructions implement the foregoing live distribution method.
The method and the device have the advantages that the multimedia live broadcast distribution function is realized, the cost of the live broadcast distribution process is reduced, and the reliability, the safety, the expandability and the universality of the live broadcast distribution process are improved.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 shows a flow diagram of a live distribution method of some embodiments of the present disclosure.
Fig. 2 illustrates a flow diagram of some embodiments in which a camera pushes a TS file to a first media server.
Fig. 3 illustrates a flow diagram of some embodiments in which a player initiates a play request for a TS file to a second media server.
Fig. 4 shows a schematic structural diagram of a live distribution system of some embodiments of the present disclosure.
Fig. 5 shows a schematic structural diagram of a live distribution apparatus according to some embodiments of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The inventor researches and discovers that with the development of cloud computing, the use scale of cloud service is larger and larger, and how to combine traditional private network video monitoring and cloud service together to realize real-time browsing and watching of monitoring videos and historical video query and playing through the cloud service is a problem to be solved urgently. HLS (HTTP Live Streaming) is a HTTP-based Streaming media network Transport protocol, and its working principle is to divide the whole Stream into small HTTP-based TS (Transport Stream) files for downloading and playing. When a streaming media session is started, the client downloads an extended M3U8 playlist file (M3U 8 file for short) containing metadata for finding an available media stream TS file. The object storage is a distributed storage service for storing massive files, and has the advantages of high expansibility, low cost, reliability, safety and the like. Through various modes such as API, SDK and the like, a user can simply and quickly access to object storage, upload, download and manage multi-format files, mass data storage and management are realized, and storage cost is comprehensively optimized.
Aiming at the problems of video monitoring such as storage, live broadcast and on-demand, and combining with an HLS protocol and object storage, the invention provides a method for realizing real-time storage, browsing, watching and playing of a monitoring video through a cloud service by combining with a video monitoring media server and object cloud storage.
Some embodiments of the disclosed live distribution method are first described in conjunction with fig. 1.
Fig. 1 shows a flow diagram of a live distribution method of some embodiments of the present disclosure. As shown in fig. 1, the present embodiment includes steps S101 to S106.
In step S101, the camera pushes a transport stream TS file to the first media server.
Those skilled in the art will understand that the camera can be a monitoring camera, a mobile phone camera, or other terminal plug flow device. The camera can send a request for live broadcasting and pushing the audio and video stream to the first media server through the RTMP or RTSP protocol and the load balancing server, and starts to push the audio and video stream to the media server after the request is allowed.
In step S102, the first media server performs a slicing process on the TS file, and stores a play link of the generated TS slice to the database.
Wherein, the first media server can perform TS slicing according to HLS protocol after receiving the stream. The playing link of the TS slice is a hypertext transfer protocol (HTTP) access link of the first media server, and playing can be achieved.
In step S103, the first media server uploads the generated TS slice to the object storage cloud, and modifies a play link of the TS slice that completes uploading into a share link in the object storage cloud in the database.
The first media server may update the upload completion status (i.e., whether the upload is completed) of the TS slice in real time. For the TS slices which are uploaded, playing the shared links corresponding to the TS slices in the object storage cloud; for the uncompleted uploaded TS slices, the playing link is the HTTP access link of the media server where the TS slices are located. And the media server only uploads the TS slices to the object storage cloud server.
In step S104, the player initiates a play request of the TS file to the second media server.
The player may initiate a live viewing request to the second media server through the load balancing server, and the second media server that receives the play request is not necessarily a live source (the first media server) that receives the push stream, and may or may not be the first media server.
In step S105, the second media server obtains the playing link of the TS slice corresponding to the TS file from the database and sends the playing link to the player.
In some embodiments, the second media server obtains the playing link of the TS slice corresponding to the TS file from the database, generates an M3U8 index file using the playing link of the TS slice corresponding to the TS file, and sends the M3U8 index file to the player.
After receiving a playing request, the media server can obtain a media stream which needs to be obtained and is pushed by a camera according to parameters of the requested links, then searches a database to obtain corresponding TS slice file playing links, forms the obtained playing links into an m3u8 index file, then sends the m3u8 file to the player, and after receiving the index file, the player analyzes the m3u8 index file, the index file contains the playing links of the TS slices, and then obtains the TS slices according to the playing links.
In step S106, the player plays the TS file according to the playing link of the TS slice corresponding to the TS file.
Those skilled in the art will appreciate that the player may be embodied as a monitor player, a cell phone player, or the like. The generated play link of the index file may include both the TS slices that are completed by uploading and the TS slices that are not completed by uploading.
And under the condition that the TS slices corresponding to the TS files are uploaded to the object storage cloud, the player acquires the TS slices of the TS files from the object storage cloud for playing according to the shared links of the TS slices corresponding to the TS files in the object storage cloud. That is, if the playing link is a shared link corresponding to the TS slice in the object storage cloud, the TS slice is directly downloaded from the object storage cloud through the shared link for playing.
And under the condition that the TS slices corresponding to the TS files are not uploaded to the object storage cloud, the player acquires the TS slices of the TS files from the first media server for playing according to the HTTP access link of the first media server. That is, if the play link is a media server address indicating that the upload of the TS slice is not completed, the player downloads the TS slice from the media server where the TS slice is located to play.
The embodiment combines a media server and an object cloud storage service in video monitoring, realizes real-time watching and playing of a monitoring video through an HLS protocol and the object cloud storage service, and realizes slicing, storage and playing functions of live monitoring through the media server, a database server and the object storage cloud, thereby realizing multimedia live broadcast distribution. Meanwhile, the method and the device have the advantages of high expansibility, low cost, reliability, safety and the like of object storage and the advantage of strong universality of the HLS protocol, can reduce the cost of the live broadcast distribution process, and improve the reliability, safety, expandability and universality of the live broadcast distribution process.
In addition, in this embodiment, whether the TS slice is uploaded is considered, the database server records the playing link of the TS slice, the media server updates the playing link of the database server in real time according to the uploading completion of the TS, the media server generates the playing index file in real time according to the playing link stored in the database server, and the playing index file is directly played by the player, and the player directly returns the source or pulls the TS slice from the target storage server for playing.
Some embodiments of the camera pushing TS files to the first media server are described below in conjunction with fig. 2.
Fig. 2 illustrates a flow diagram of some embodiments in which a camera pushes a TS file to a first media server. As shown in fig. 2, the present embodiment includes steps S2011 to S2013.
In step S2011, the camera initiates a push request of the TS file to the load balancer.
In step S2012, the load balancer distributes the push request to the first media server.
In step S2013, the first media server receives the TS file pushed by the camera.
According to the embodiment, the load balance of the TS file push request is realized through the load balancer, and the working efficiency of the media server for processing the TS file push request can be improved, so that the working efficiency of the live broadcast distribution process is improved.
Some embodiments of the player initiating a play request for a TS file to the second media server are described below in conjunction with fig. 3.
Fig. 3 illustrates a flow diagram of some embodiments in which a player initiates a play request for a TS file to a second media server. As shown in fig. 3, the present embodiment includes steps S3041 to S3042.
In step S3041, the player sends a request for playing the TS file to the load balancer.
In step S3042, the load balancer distributes the play request to the second media server. The first media server and the second media server are different media servers.
The embodiment can dynamically generate the M3U8 index file. That is to say, the generation of the M3U8 index file is not limited to the live broadcast source station media server or the HLS source server, and any media server can complete the generation of the M3U8 index file through the database server, so that the working efficiency of the media server in processing the play request of the TS file is improved, and the working efficiency of the live broadcast distribution process is further improved.
A specific application example is listed below to describe the process of implementing live distribution according to the present disclosure.
The method comprises the steps that a camera 1 initiates a stream pushing request through an RTMP or RTSP protocol, the stream pushing request is distributed to a media server A through a load balancing server to be processed, the media server A receives the stream pushing request and starts to receive streams, the camera 1 sends audio and video data to the media server A, the media server A slices the received audio and video data to generate TS slices and uploads the TS slices to an object storage cloud, meanwhile, a playing link of the TS slices is inserted into a database server, the playing link is an HTTP access link of the media server A, and after the uploading of the TS slices is finished, the media server A updates the playing link of the TS slices again to be a shared link of the TS slices in the object storage cloud.
(II) the player 1 initiates a playing request aiming at the camera 1, the load balancing server sends the playing request to the media server A for processing, the media server A obtains a playing link of a current TS file through the database server to form an M3U8 file and sends the M3U8 file to the player 1, the player 1 receives the M3U8 index file and obtains the playing link from the file, the playing link is a shared link corresponding to the TS slice in the object storage cloud for the TS file which is uploaded completely, the playing link is an HTTP access link of the media server A where the TS slice is located for the TS slice which is not uploaded completely, and the player 1 obtains the corresponding TS file from the media server A or the object storage cloud for playing through the playing link.
And (III) the player 2 initiates a playing request aiming at the camera 1, the load balancing server gives the playing request to the media server B for processing, the media server B obtains a playing link of a current TS file through the database server to form an M3U8 file and send the M3U8 file to the player 2, the player 2 receives the M3U8 index file and obtains the playing link from the file, the playing link is a shared link corresponding to the TS slice in the object storage cloud for the TS file which is uploaded completely, the playing link is an HTTP access link of the media server A where the TS slice is located for the TS slice which is not uploaded completely, and the player 2 obtains the corresponding TS file from the media server A or the object storage cloud for playing through the playing link.
Some embodiments of the disclosed live distribution system are described below in conjunction with fig. 4.
Fig. 4 shows a schematic structural diagram of a live distribution system of some embodiments of the present disclosure. As shown in fig. 4, the live distribution system 40 in the present embodiment includes:
a camera 401 configured to push a transport stream TS file to a first media server 402; a first media server 402 configured to: slicing the TS file, and storing a generated playing link of the TS slice to a database, wherein the playing link of the TS slice is a hypertext transfer protocol (HTTP) access link of the first media server 402; uploading the generated TS slices to an object storage cloud, and modifying the playing link of the uploaded TS slices into a sharing link of the object storage cloud in a database; a player 403 configured to initiate a play request of the TS file to the second media server 404; a second media server 404, configured to obtain a playing link of a TS slice corresponding to the TS file from the database, and send the playing link to the player 403; the player 403 is also configured to play the TS file according to the play link of the TS slice corresponding to the TS file.
The embodiment combines a media server and an object cloud storage service in video monitoring, realizes real-time watching and playing of a monitoring video through an HLS protocol and the object cloud storage service, and realizes slicing, storing and playing functions of monitoring live broadcast through the media server, a database server and the object cloud storage service, thereby realizing multimedia live broadcast distribution. Meanwhile, the method and the device have the advantages of high expansibility, low cost, reliability, safety and the like of object storage and the advantage of strong universality of the HLS protocol, can reduce the cost of the live broadcast distribution process, and improve the reliability, safety, expandability and universality of the live broadcast distribution process.
In addition, in this embodiment, whether the TS slice is uploaded is considered, the database server records the playing link of the TS slice, the media server updates the playing link of the database server in real time according to the uploading completion of the TS, the media server generates the playing index file in real time according to the playing link stored in the database server, and the playing index file is directly played by the player, and the player directly returns the source or pulls the TS slice from the target storage server for playing.
In some embodiments, the player 403 is configured to: under the condition that the TS slices corresponding to the TS files are uploaded to the object storage cloud, obtaining the TS slices of the TS files from the object storage cloud for playing according to the shared links of the TS slices corresponding to the TS files in the object storage cloud; and under the condition that the TS slices corresponding to the TS files are not uploaded to the object storage cloud, obtaining the TS slices of the TS files from the first media server 402 for playing according to the HTTP access link of the first media server 402.
In some embodiments, a load balancer 405 is further included, wherein the camera 401 is configured to initiate a push request of the TS file to the load balancer 405; the load balancer 405 is configured to distribute push requests to the first media server 402; the first media server 402 is further configured to receive the TS file pushed by the camera 401; the player 403 is configured to initiate a play request of the TS file to the load balancer 405; the load balancer 405 is also configured to distribute the play request to the second media server 404.
According to the embodiment, the load balance of the TS file push request is realized through the load balancer, and the working efficiency of the media server for processing the TS file push request can be improved, so that the working efficiency of the live broadcast distribution process is improved.
In some embodiments, the second media server 404 is configured to: acquiring a playing link of a TS slice corresponding to the TS file from a database; generating an M3U8 file by using the playing link of the TS slice corresponding to the TS file; the M3U8 file is sent to the player 403.
In some embodiments, first media server 402 and second media server 404 are different media servers.
The embodiment can dynamically generate the M3U8 index file. That is to say, the generation of the M3U8 index file is not limited to the live source station media server or the HLS source server, and any media server can complete the generation of the M3U8 index file through the database server, so that the working efficiency of the media server in processing the play request of the TS file is improved, and the working efficiency of the live distribution process is further improved.
Some embodiments of the disclosed live distribution apparatus are described below in conjunction with fig. 5.
Fig. 5 shows a schematic structural diagram of a live distribution apparatus according to some embodiments of the present disclosure. As shown in fig. 5, the live distribution apparatus 50 of this embodiment includes: a memory 510 and a processor 520 coupled to the memory 510, the processor 520 being configured to perform a live distribution method in any of the embodiments described above based on instructions stored in the memory 510.
Memory 510 may include, for example, system memory, fixed non-volatile storage media, and the like. The system memory stores, for example, an operating system, an application program, a Boot Loader (Boot Loader), and other programs.
The live distribution apparatus 50 may further include an input-output interface 530, a network interface 540, a storage interface 550, and the like. These interfaces 530, 540, 550 and the connections between the memory 510 and the processor 520 may be, for example, via a bus 560. The input/output interface 530 provides a connection interface for input/output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 540 provides a connection interface for various networking devices. The storage interface 550 provides a connection interface for external storage devices such as an SD card and a usb disk.
The present disclosure also includes a computer-readable storage medium having stored thereon computer instructions that, when executed by a processor, implement a live distribution method in any of the foregoing embodiments.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only exemplary of the present disclosure and is not intended to limit the present disclosure, so that any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (10)

1. A live distribution method, comprising:
the camera pushes a Transport Stream (TS) file to a first media server;
the first media server slices the TS file, and stores a generated playing link of the TS slice to the database server, wherein the playing link of the TS slice is a hypertext transfer protocol (HTTP) access link of the first media server;
the first media server uploads the generated TS slices to an object storage cloud, and changes a playing link of the uploaded TS slices into a sharing link of the object storage cloud in a database server;
the player initiates a playing request of the TS file to a second media server;
the second media server obtains the playing link of the TS slice corresponding to the TS file from the database server and sends the playing link to the player, and the playing link comprises
The second media server generates an M3U8 file by using the playing link of the TS slice corresponding to the TS file;
the second media server sends the M3U8 file to the player;
the playing link of the TS slice corresponding to the TS file is a shared link of the TS slice corresponding to the TS file in the object storage cloud when the TS slice corresponding to the TS file is uploaded to the object storage cloud, and the playing link of the TS slice corresponding to the TS file is an HTTP access link of the first media server when the TS slice corresponding to the TS file is not uploaded to the object storage cloud;
and the player plays the TS file according to the playing link of the TS slice corresponding to the TS file.
2. The live broadcast distribution method according to claim 1, wherein the playing, by the player, the TS file according to the playing link of the TS slice corresponding to the TS file includes:
under the condition that the TS slices corresponding to the TS files are uploaded to the object storage cloud, the player acquires the TS slices of the TS files from the object storage cloud for playing according to the shared links of the TS slices corresponding to the TS files in the object storage cloud;
and under the condition that the TS slices corresponding to the TS files are not uploaded to the object storage cloud, the player acquires the TS slices of the TS files from the first media server for playing according to the HTTP access link of the first media server.
3. The live distribution method of claim 1,
the camera pushing the transport stream TS file to the first media server includes: the camera initiates a pushing request of the TS file to a load balancer; the load balancer distributes the push request to the first media server; a first media server receives a TS file pushed by a camera;
the player initiating a play request of the TS file to a second media server includes: the player initiates a playing request of the TS file to a load balancer; the load balancer distributes the playing request to the second media server.
4. The live distribution method of any of claims 1-3, wherein the first media server and the second media server are different media servers.
5. A live distribution system, comprising:
a camera configured to push a Transport Stream (TS) file to a first media server;
a first media server configured to: slicing the TS file, and storing a generated playing link of the TS slice to a database server, wherein the playing link of the TS slice is a hypertext transfer protocol (HTTP) access link of a first media server; uploading the generated TS slices to an object storage cloud, and modifying the playing link of the uploaded TS slices into a sharing link of the object storage cloud in a database server;
a player configured to initiate a play request of the TS file to a second media server;
the second media server is configured to acquire the playing link of the TS slice corresponding to the TS file from the database server and send the playing link to the player, and comprises
Generating an M3U8 file by using the playing link of the TS slice corresponding to the TS file;
sending the M3U8 file to a player;
the playing link of the TS slice corresponding to the TS file is a shared link of the TS slice corresponding to the TS file in the object storage cloud when the TS slice corresponding to the TS file is uploaded to the object storage cloud, and the playing link of the TS slice corresponding to the TS file is an HTTP access link of the first media server when the TS slice corresponding to the TS file is not uploaded to the object storage cloud;
the player is also configured to play the TS file according to the playing link of the TS slice corresponding to the TS file.
6. The live distribution system of claim 5, wherein the player is configured to:
under the condition that the TS slices corresponding to the TS files are uploaded to the object storage cloud, obtaining the TS slices of the TS files from the object storage cloud for playing according to the shared links of the TS slices corresponding to the TS files in the object storage cloud;
and under the condition that the TS slices corresponding to the TS files are not uploaded to the object storage cloud, obtaining the TS slices of the TS files from the first media server for playing according to the HTTP access link of the first media server.
7. The live distribution system of claim 5, further comprising a load balancer, wherein,
the camera is configured to initiate a push request of the TS file to the load balancer; the load balancer is configured to distribute the push request to the first media server; the first media server is also configured to receive TS files pushed by the camera;
the player is configured to initiate a playing request of the TS file to the load balancer; the load balancer is further configured to distribute the play request to a second media server.
8. The live distribution system of any one of claims 5-7, wherein the first media server and the second media server are different media servers.
9. A live distribution apparatus comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the live distribution method of any of claims 1-4 based on instructions stored in the memory.
10. A computer readable storage medium, wherein the computer readable storage medium stores computer instructions that, when executed by a processor, implement the live distribution method of any of claims 1-4.
CN202010146205.6A 2020-03-05 2020-03-05 Live broadcast distribution method, system, device and computer readable storage medium Active CN113364724B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010146205.6A CN113364724B (en) 2020-03-05 2020-03-05 Live broadcast distribution method, system, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010146205.6A CN113364724B (en) 2020-03-05 2020-03-05 Live broadcast distribution method, system, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113364724A CN113364724A (en) 2021-09-07
CN113364724B true CN113364724B (en) 2022-12-30

Family

ID=77523661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010146205.6A Active CN113364724B (en) 2020-03-05 2020-03-05 Live broadcast distribution method, system, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113364724B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7174347B1 (en) * 2002-02-14 2007-02-06 Ncr Corp. Loading data using links in a database
CN108235151A (en) * 2017-12-29 2018-06-29 北京奇虎科技有限公司 A kind of method and apparatus of net cast
CN109286820A (en) * 2018-11-29 2019-01-29 无锡华云数据技术服务有限公司 Stream media ordering method and system based on distributed memory system
CN109756757A (en) * 2019-03-21 2019-05-14 北京数码视讯软件技术发展有限公司 Live data processing method and processing device, live broadcasting method and device and direct broadcast server
CN109819345A (en) * 2017-11-20 2019-05-28 网宿科技股份有限公司 Processing, time-shifting method, video process apparatus and the cloud storage system of live video

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170289229A1 (en) * 2016-03-31 2017-10-05 Le Holdings (Beijing) Co., Ltd. Method and terminal device for providing multimedia content

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7174347B1 (en) * 2002-02-14 2007-02-06 Ncr Corp. Loading data using links in a database
CN109819345A (en) * 2017-11-20 2019-05-28 网宿科技股份有限公司 Processing, time-shifting method, video process apparatus and the cloud storage system of live video
CN108235151A (en) * 2017-12-29 2018-06-29 北京奇虎科技有限公司 A kind of method and apparatus of net cast
CN109286820A (en) * 2018-11-29 2019-01-29 无锡华云数据技术服务有限公司 Stream media ordering method and system based on distributed memory system
CN109756757A (en) * 2019-03-21 2019-05-14 北京数码视讯软件技术发展有限公司 Live data processing method and processing device, live broadcasting method and device and direct broadcast server

Also Published As

Publication number Publication date
CN113364724A (en) 2021-09-07

Similar Documents

Publication Publication Date Title
US11350139B2 (en) Video live broadcast method and apparatus
US9332051B2 (en) Media manifest file generation for adaptive streaming cost management
US9392307B2 (en) Smart pre-load for video-on-demand in an HTTP adaptive streaming environment
US8621099B2 (en) Systems and methods for formatting media content for distribution
CN106685942B (en) Video live broadcast playback system and video live broadcast playback method
Nurminen et al. P2P media streaming with HTML5 and WebRTC
JP5580302B2 (en) Broadcast seeding for peer-to-peer networks
US11277456B2 (en) System and method for delivering an audio-visual con tent to a client device
WO2015165395A1 (en) Video playback method and apparatus
US20120143986A1 (en) Systems and methods for downloading by different processes
TWI616097B (en) Streaming apparatus, streaming method, streaming service system using the streaming apparatus and the recording medium
CN104581374A (en) Methods for obtaining slicing files and generating sub m3u8 files, node and server
US20160381127A1 (en) Systems and methods for dynamic networked peer-to-peer content distribution
CN104618738A (en) Method and device for playing programs of intelligent TV
KR100823730B1 (en) Method and apparatus for providing streaming service based on P2P, and streaming service system using the same
US10601910B2 (en) Method for broadcasting a piece of content in an it network
Kim et al. View pattern-based adaptive streaming strategy for mobile content delivery services
CN113364724B (en) Live broadcast distribution method, system, device and computer readable storage medium
CN110213330B (en) Pre-push system, method, device, electronic equipment and computer readable medium
KR20080042524A (en) Method and system for vod service based on p2p
CN113709412B (en) Live stream processing method, device and system and computer readable storage medium
KR20190029843A (en) Management system for network quality of service based on bittorrent and service quality improvenent method using the same
US20110138437A1 (en) Method and system for providing both live viewing and video on demand
KR101257579B1 (en) Peer-to-peer overlay system and method for real time streaming service
CN112565811B (en) Decentralized edge node distribution system for Internet television

Legal Events

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