CN106604043A - Internet-based live broadcast method and live broadcast server - Google Patents

Internet-based live broadcast method and live broadcast server Download PDF

Info

Publication number
CN106604043A
CN106604043A CN201611270040.3A CN201611270040A CN106604043A CN 106604043 A CN106604043 A CN 106604043A CN 201611270040 A CN201611270040 A CN 201611270040A CN 106604043 A CN106604043 A CN 106604043A
Authority
CN
China
Prior art keywords
data
media data
broadcast server
direct broadcast
mentioned
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
CN201611270040.3A
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.)
Ut Starcom (shenzhen) Technology Co Ltd
Original Assignee
Ut Starcom (shenzhen) 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 Ut Starcom (shenzhen) Technology Co Ltd filed Critical Ut Starcom (shenzhen) Technology Co Ltd
Priority to CN201611270040.3A priority Critical patent/CN106604043A/en
Publication of CN106604043A publication Critical patent/CN106604043A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/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/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2183Cache memory
    • 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
    • H04N21/23113Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving housekeeping operations for stored content, e.g. prioritizing content for deletion because of storage space restrictions
    • 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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client

Abstract

The invention discloses an Internet-based live broadcast method and a live broadcast server. The Internet-based live broadcast method comprises the following steps: a live broadcast server receives a data request instruction sent by a client; the live broadcast server determines target media data requested by the client according to the data request instruction; the live broadcast server looks for index information of the target media data in a data index file, wherein the data index file is used to record the location of media data in a data cache pool, and the data cache pool is set in the memory of the live broadcast server and is used to cache media data from a source server; and the live broadcast server locates the target media data in the data cache pool according to the index information of the target media data, and sends the target media data to the client. Through the scheme, the investment of the live broadcast server in a distributed file system can be reduced, cost can be saved, and the management efficiency of cached media data can be improved.

Description

A kind of the Internet live broadcasting method and direct broadcast server
Technical field
The present invention relates to live field, and in particular to a kind of the Internet live broadcasting method and direct broadcast server.
Background technology
OTT is the abbreviation of " Over The Top ", refers to provide a user with various application services by the Internet.It is this Using different with the communication service that current operator is provided, it merely with operator network, and service then by operator it Outer third party provides.Some typical OTT business have the Internet audio frequency and video direct broadcast service etc..In existing OTT live broadcast services, Generally the source server data of reception are stored in into distributed file system by OTT direct broadcast servers, when the terminal request of user it is straight When broadcasting service, OTT direct broadcast servers again read media data from distributed file system, send to the terminal of user.But Because direct broadcast server is that the data of reception are stored in distributed file system, when the data for receiving are more, it is right to increase The input of distributed file system, management that is relatively costly and being unfavorable for data.
The content of the invention
Embodiments provide a kind of the Internet live broadcasting method and direct broadcast server, it is intended to cut down to distributed storage The input of system, reduces cost is lifted to the data cached efficiency of management.
A kind of first aspect of the embodiment of the present invention, there is provided the Internet live broadcasting method, the Internet live broadcasting method bag Include:
Direct broadcast server receives the data requesting instructions that client sends;
According to the data requesting instructions, the targeted media data of the client request is determined;
The index information of the targeted media data is searched in the data directory file, wherein, the data directory File is used for position of the recording medium data in data buffer storage pond;The data buffer storage pond is arranged at the direct broadcast server internal memory In, for caching the media data from source server;
According to the index information of the targeted media data, from the data buffer storage pond targeted media data is positioned And send to client.
The second aspect of the embodiment of the present invention, there is provided a kind of direct broadcast server, the direct broadcast server includes:
Request of data receiving unit, for receiving the data requesting instructions of client transmission;
Target data determining unit, for the data requesting instructions received according to the request of data receiving unit, really The targeted media data of the fixed client request;
Index information searching unit, determines for searching the target data determining unit in the data directory file Targeted media data index information, wherein, the data directory file be used for recording medium data in data buffer storage pond Position;The data buffer storage pond is arranged in the direct broadcast server internal memory, for caching the media data from source server;
First data transmission unit, the rope of the targeted media data for being found according to the index information searching unit Fuse ceases, and the targeted media data is positioned from the data buffer storage pond and is sent to client.
Therefore, in embodiments of the present invention, the request of data for receiving client transmission by direct broadcast server first refers to Order, then direct broadcast server determines the targeted media data of the client request according to the data requesting instructions, and in institute The index information that the targeted media data is searched in data directory file is stated, wherein, the data directory file is used to record Media data is arranged in the direct broadcast server internal memory, for caching in the position in data buffer storage pond, the data buffer storage pond From the media data of source server, finally according to the index information of the targeted media data, from the data buffer storage pond Position the targeted media data and send to client.The present invention program reduces direct broadcast server to distributed file system Input, be managed in the internal memory that media data cache is entered direct broadcast server, saved cost, improve to cache matchmaker The efficiency of management of volume data.
Description of the drawings
Technical scheme in order to be illustrated more clearly that the embodiment of the present invention, below will be to making needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, without having to pay creative labor, can be obtaining it according to these accompanying drawings His accompanying drawing.
Fig. 1 realizes flow process for what the embodiment of the present invention provided the Internet live broadcasting method;
Fig. 2 provides the another of the Internet live broadcasting method and realizes flow process for the embodiment of the present invention;
Fig. 3 provides the structured flowchart of direct broadcast server for the embodiment of the present invention.
Specific embodiment
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention Accompanying drawing in embodiment, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described reality It is only a part of embodiment of the invention to apply example, and not all embodiments.Based on the embodiment in the present invention, the common skill in this area The every other embodiment that art personnel are obtained under the premise of creative work is not made, belongs to the model of present invention protection Enclose.
It is described in detail below in conjunction with realization of the specific embodiment to the present invention:
Embodiment one
Fig. 1 shows that the Internet live broadcasting method that the embodiment of the present invention one is provided realizes flow process, and details are as follows:
In step S101, direct broadcast server receives the data requesting instructions that client sends.
In embodiments of the present invention, the data requesting instructions that direct broadcast server receive user is sent by client.Specifically Ground, can receive client by the download service example (Downloading Service Instance, DSI) of direct broadcast server The data requesting instructions of transmission.
In step s 102, according to above-mentioned data requesting instructions, the targeted media data of above-mentioned client request is determined.
In embodiments of the present invention, the user's request thread of direct broadcast server have received the request of data of client transmission After instruction, the targeted media data of above-mentioned client request can be determined according to above-mentioned data requesting instructions.Here, by It is the data requesting instructions for being directed to the live initiation in the Internet in user, thus, the targeted media data of request is from a certain spy Determine TS (Transport Stream) file data of channel.TS files are the encapsulation lattice carried out under a kind of high-definition camera shoots Formula, is characterized in that the arbitrary fragment from video starts independently to be decoded, thus is widely used in network direct broadcasting In Video service.
In step s 103, the index information of above-mentioned targeted media data is searched in above-mentioned data directory file.
In embodiments of the present invention, it is above-mentioned straight according to the targeted media data of the client request determined in step S102 Broadcasting server can find out the index of above-mentioned targeted media data in data directory file for above-mentioned targeted media data Information, wherein, above-mentioned data directory file is used for position of the recording medium data in data buffer storage pond;Above-mentioned data buffer storage pond sets In being placed in above-mentioned direct broadcast server internal memory, for caching the media data from source server.That is, above-mentioned direct broadcast server will connect The media data of each channel for receiving is stored in above-mentioned data buffer storage pond, and each media number is recorded by data directory file According to the position in data buffer storage pond.When the targeted media data of client request is received, direct broadcast server is according to data Index information in index file, obtains the deposit position of targeted media data.It should be noted that data buffer storage pond and data Index file is present in the internal memory of above-mentioned direct broadcast server.
In step S104, according to the index information of above-mentioned targeted media data, from above-mentioned data buffer storage pond in positioning State targeted media data and send to client.
In embodiments of the present invention, due to having had learned that the index information of above-mentioned targeted media data in step S103, Thus above-mentioned direct broadcast server only need to according to the index information of above-mentioned targeted media data in data buffer storage pond to above-mentioned mesh Mark media data is positioned, and above-mentioned targeted media data is sent to client.Due to data directory file and data buffer storage Pond is present in server memory, and it is very fast that data are read from internal memory, it is thus possible to live in client request When servicing and carrying out channel switch, quick obtaining media data reduces postponing.
Fig. 2 shows that the another of the Internet live broadcasting method that the embodiment of the present invention one is provided realizes flow process, and details are as follows:
In step s 201, when above-mentioned direct broadcast server starts, to above-mentioned data buffer storage pond and above-mentioned data directory file Initialized.
In embodiments of the present invention, when above-mentioned direct broadcast server starts, above-mentioned data buffer storage pond and above-mentioned data are entered Row initialization.Wherein, because above-mentioned data buffer storage pond is present in internal memory, thus, when direct broadcast server starts, first to The system application predetermined number memory element of direct broadcast server;Direct broadcast server is that predetermined number is distributed in above-mentioned data buffer storage pond After individual memory element, can continue respectively each memory element to be divided into into continuous 4K byte storage blocks, while storing for each Unit is indexed value numbering, the initialization of complete paired data cache pool, it should be noted that each memory element of above-mentioned distribution Size be fixed.For example, when the capacity of cache pool acquiescence is 2G bytes, the quantity of said memory cells can be 8196 Individual, the size of said memory cells is 256K bytes, and the index value numbering of said memory cells can be 0 to 8195.Certainly, The number of said memory cells can calculate the size being actually needed according to the quantity of channel and code check, then it is appropriate increase or Reduce, be not construed as limiting herein.
Meanwhile, direct broadcast server also needs to initialize data index file, and its flow process is as follows:In direct broadcast server During startup, caching channel list is obtained.Above-mentioned caching channel list can be by direct broadcast server on startup from extensible markup Read in language (eXtensible Markup Language, XML) file.Wherein, if channel is in current server, adopt IP and port with current server;If channel is not in current server, to main recording channel (Peer Streaming Instance, PSI) request is sent, obtain the position of above-mentioned channel.Above-mentioned caching channel column tableau format is as shown in the table:
Caching channel list Channel ID1 Channel ID2 Channel ID3 ……
After the initialization to above-mentioned caching channel list is completed, by by the management thread of direct broadcast server from above-mentioned table Channel to be cached is read in lattice, then according to the current time, the predetermined number for calculating channel to be cached is continuous TS point The URL (Uniform Resource Locator, URL) of piece, wherein, mutually it is separated between adjacent TS bursts Default time interval.If the data of channel to be cached are received by this grade of DSI, the IP and port using this grade of DSI; If what data to be cached not had been received by the DSI of this grade, would need what is be located to the above-mentioned channel to be cached of main PSI inquiries The IP of DSI and port.It should be noted that above-mentioned channel to be cached is set by developer, for example, for some use The more VHI of family number of requests, can be as channel to be cached;The unexpected winner less for certain user's number of requests Channel, then without the need for carrying out data buffer storage to it herein.It is alternatively possible to the value of above-mentioned predetermined number is taken into 7, will be above-mentioned default Time take 10 seconds, i.e. management thread according to above-mentioned channel cache list, read channel to be cached, then according to it is current when Between calculate the URL of 7 continuous TS bursts, wherein the time interval of adjacent TS bursts 10 seconds.Then get above-mentioned The URL of channel ID and corresponding TS bursts is packed in TS document channels correspondence table, above-mentioned TS document channels correspondence tableau format It is as shown in the table:
After above-mentioned TS document channels correspondence table is initialized, TS will be created according to above-mentioned TS document channels correspondence table File Index Table.What above-mentioned TS File Index Tables were stored is the start-stop rope of each TS file being buffered in data buffer storage pond Quotation marks.Above-mentioned start-stop call number is the TS files that cached in the starting memory location in data buffer storage pond and terminates memory element The numbering of index value.By above-mentioned TS File Index Tables, according to the size and the size of memory element of TS files, can calculate really Make the corresponding TS files of memory element in cache pool.It should be noted that each start-stop of TS files in cache pool is deposited Storage unit must be complete.Above-mentioned TS file indexes tableau format is as follows:
Finally, according to the order of channel to be cached in above-mentioned TS files corresponding lists, cache file list is treated in establishment, and will The corresponding first TS burst of each channel to be cached is stored in be treated in cache file table, then treats caching text according to above-mentioned by DSI Part table starts once to cache correspondence TS files.That is, the above-mentioned information for treating that cache file table is preserved is the TS files that will be cached URL queues.Can by the caching thread of DSI from the above-mentioned original position for treating cache file table once obtain need caching The URL of TS files, then obtains the TS data, it should be noted that above-mentioned to treat in cache file from PSI or the DSI for specifying The queue of the first in first out that storage is.It is above-mentioned to treat that cache file row tableau format is as follows:
Treat cache file list TS11_URL TS21_URL …… TSN1_URL
So far, the initialization to data index file is completed, and direct broadcast server can start caching from source server Media data, and the management of the media data to caching is realized by above-mentioned data directory file.
In step S202, what above-mentioned direct broadcast server received that above-mentioned source server sends treats buffered media data, will be upper State and treat that buffered media data is stored in above-mentioned data buffer storage pond.
In step S203, the position that buffered media data is stored in above-mentioned data buffer storage pond is treated according to above-mentioned, to the number It is updated according to index file.
In embodiments of the present invention, three TS file tables are additionally provided with, TS file tables has respectively been cached, just asking TS files Table and expired TS files table;The caching thread of above-mentioned direct broadcast server can be treated to obtain a TS in cache file list from above-mentioned The URL of file, then according to the URL of the above-mentioned TS files for getting, receives the media data of source server transmission and is stored in number According in cache pool.After above-mentioned TS file caches are finished, the URL of above-mentioned TS files is added the end for having cached TS file tables. It should be noted that the caching thread of above-mentioned direct broadcast server can obtain media data by this grade of DSI from other DSI, Media data can be obtained from PSI by this grade of DSI, be not construed as limiting herein.
Alternatively, in order to preferably manage above-mentioned data directory file and cache pool, above-mentioned the Internet live broadcasting method is also wrapped Include:
Above-mentioned direct broadcast server periodically removes the index information of media data out of date in above-mentioned data directory file, And reclaim the internal memory that above-mentioned media data out of date takes in above-mentioned cache pool.
Wherein, in direct broadcast server, management thread is provided with, the number of above-mentioned management thread is the CPU numbers of server, Thus, the number of the channel to be cached of each thread management is total channel number cooking Thread Count to be cached.Above-mentioned management line Journey property price cycle calculates the URL of the TS files of channel to be cached, and according to result of calculation, and according to calculated result, To above-mentioned TS document channels correspondence table, TS File Index Tables, treat that cache file list and expired TS files table are updated.Together When, in the TS files for occurring having timed, out, management thread will be in above-mentioned TS document channels correspondence table, TS file indexes The corresponding list item of the TS files having timed, out is deleted in table, cache file list and expired TS files table, while reclaiming Internal memory in data buffer storage pond.Internal memory is reused during data buffer storage, it is to avoid because applying for that internal memory goes out repeatedly Existing RAM leakage, RAM fragmentation and internal memory increase out of control and low adverse consequencess of operational efficiency that cause server.
Alternatively, in order to save server memory, what above-mentioned direct broadcast server reception source server sent treats buffered media Data, also include afterwards:
Treat that buffered media data is stored in the distributed file system of source server by above-mentioned;
The above-mentioned index information that above-mentioned targeted media data is searched in above-mentioned data directory file, also includes afterwards:
If there is no the index information of above-mentioned targeted media data in above-mentioned data directory file, from above-mentioned direct broadcast service Above-mentioned targeted media data is read in the distributed file system of device and is sent to client.
Wherein, when above-mentioned TS document channels correspondence table is initialized, the URL of the TS files of the channel of hot topic is only saved, That is, for the media data of unexpected winner channel, it is not stored in the data buffer storage pond of server, but is stored in distributed field system In system, unexpected winner channel can be so avoided to take the memory source of VHI.Therefore, when the targeted media data of user's request When coming from the media data of unexpected winner channel, then the index of above-mentioned targeted media data cannot be found in data directory file Information.At this time, it may be necessary to direct broadcast server directly reads targeted media data from distributed file system and sends to client.
In order that scheme provided in an embodiment of the present invention becomes more apparent, the embodiment of the present invention is illustrated herein and is provided The Internet live broadcasting method process:
User sends data requesting instructions by client, that is, obtain target TS file;
The user's request thread of server is searched and has cached TS files, if above-mentioned caching has above-mentioned mesh in TS files The index information of mark TS files, then obtain the start-stop call number of above-mentioned TS files from above-mentioned TS File Index Tables, then will be upper State TS files and add the end for just asking TS file tables;
According to the start-stop call number of the target TS file for getting, corresponding memory element is read in data buffer storage pond, And by the data is activation for reading to client.Because the size of memory element is fixed as 4K bytes, therefore send every time to visitor The data at family end are also 4K bytes;
After data is activation is finished, the corresponding TS files just asked in TS file tables are deleted;
If the index information of above-mentioned target TS file is not found in TS file tables are cached, from distributed document Target TS file cocurrent is read in system and delivers to client.
In embodiments of the present invention, direct broadcast server is stored in popular channel is data cached in internal storage data cache pool In, and create for data buffer storage pond and index, while be stored in the channel of unexpected winner is data cached in distributed file system, when connecing When receiving the data requesting instructions of client, using the media data cached in data directory ff internal memory, nothing is being searched In the case of fruit, then go in distributed file system to search.Because in most cases, direct broadcast server can be obtained from internal memory Data Concurrent delivers to client, thus the request answer speed of client is greatly improved, without the need for excessive input resource in distribution In formula file system, direct broadcast service quality is improve.Data directory file is utilized simultaneously, improves the media data to caching The efficiency of management.
One of ordinary skill in the art will appreciate that realizing that all or part of step in above-described embodiment method can be Related hardware is instructed to complete by program, corresponding program can be stored in a computer read/write memory medium, Above-mentioned storage medium, such as ROM/RAM, disk or CD.
Embodiment two
Fig. 3 shows the concrete structure block diagram of the direct broadcast server that the embodiment of the present invention two is provided, for convenience of description, only Show the part related to the embodiment of the present invention.The direct broadcast server 3 includes:Request of data receiving unit 31, target data Determining unit 32, index information searching unit 33, the first data transmission unit 34.
Wherein, request of data receiving unit 31, for receiving the data requesting instructions of client transmission;
Target data determining unit 32, the request of data for being received according to above-mentioned request of data receiving unit 31 refers to Order, determines the targeted media data of above-mentioned client request;
Index information searching unit 33, for searching above-mentioned target data determining unit 32 in above-mentioned data directory file It is determined that targeted media data index information, wherein, above-mentioned data directory file be used for recording medium data in data buffer storage The position in pond;Above-mentioned data buffer storage pond is arranged in above-mentioned direct broadcast server internal memory, for caching the media from source server Data;
First data transmission unit 34, for the targeted media data found according to above-mentioned index information searching unit 33 Index information, above-mentioned targeted media data is positioned from above-mentioned data buffer storage pond and is sent to client.
Alternatively, above-mentioned direct broadcast server 3 also includes:
Data initialization unit, for when direct broadcast server starts, to above-mentioned data buffer storage pond and above-mentioned data directory File is initialized;
First media data cache unit, for receive that above-mentioned source server sends buffered media data is treated, will be above-mentioned Treat that buffered media data is stored in above-mentioned data buffer storage pond;
Index file updating block, it is above-mentioned for treating that buffered media data is stored according to above-mentioned media data cache unit The position in data buffer storage pond, is updated to above-mentioned data directory file.
Alternatively, above-mentioned direct broadcast server also includes:
Stale data clears up unit, for periodically removing above-mentioned data directory file in media data out of date rope Fuse ceases, and reclaims the internal memory that above-mentioned media data out of date takes in above-mentioned cache pool.
Above-mentioned direct broadcast server 3 also includes:
Second media data cache unit, for treating the distributed document that buffered media data is stored in source server by above-mentioned In system;
Second data transmission unit, for searching in data directory file when above-mentioned index information searching unit 33 To above-mentioned targeted media data index information when, above-mentioned target is read from the distributed file system of above-mentioned direct broadcast server Media data is simultaneously sent to client.
Alternatively, above-mentioned data initialization unit, specifically includes:
Memory element distributes subelement, for distributing predetermined number memory element for above-mentioned cache pool, wherein, each is deposited The size of storage unit is fixed;
Memory element numbering subelement, each memory element for distributing under subelement distributes said memory cells presses suitable Sequence is indexed value numbering;
Memory element divides subelement, for each memory element that said memory cells are distributed under subelement distribution to be divided For continuous 4K memory blocks, the initialization to above-mentioned cache pool is completed.
In embodiments of the present invention, direct broadcast server is stored in popular channel is data cached in internal storage data cache pool In, and create for data buffer storage pond and index, while be stored in the channel of unexpected winner is data cached in distributed file system, when connecing When receiving the data requesting instructions of client, using the media data cached in data directory ff internal memory, nothing is being searched In the case of fruit, then go in distributed file system to search.Because in most cases, direct broadcast server can be obtained from internal memory Data Concurrent delivers to client, thus the request answer speed of client is greatly improved, without the need for excessive input resource in distribution In formula file system, direct broadcast service quality is improve.Data directory file is utilized simultaneously, improves the media data to caching The efficiency of management.
It should be noted that in several embodiments provided herein, it should be understood that disclosed device and side Method, can realize by another way.For example, device embodiment described above is only schematic, for example, above-mentioned The division of unit, only a kind of division of logic function can have other dividing mode, such as multiple units when actually realizing Or component can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute The coupling each other for showing or discussing or direct-coupling or communication connection can be by some interfaces, device or unit INDIRECT COUPLING or communication connection, can be electrical, mechanical or other forms.
For aforesaid each method embodiment, for easy description, therefore it is all expressed as a series of combination of actions, but It is that those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to the present invention, certain A little steps can adopt other orders or while carry out.Secondly, those skilled in the art also should know, be retouched in description The embodiment stated belongs to preferred embodiment, and involved action and module might not all be necessary to the present invention.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiments.
It is more than to a kind of preferred embodiment provided by the present invention, for one of ordinary skill in the art, according to this The thought of inventive embodiments, will change in specific embodiments and applications, and to sum up, this specification content is not It is interpreted as limitation of the present invention.

Claims (10)

1. a kind of the Internet live broadcasting method, it is characterised in that the Internet live broadcasting method includes:
Direct broadcast server receives the data requesting instructions that client sends;
According to the data requesting instructions, the targeted media data of the client request is determined;
The index information of the targeted media data is searched in the data directory file, wherein, the data directory file For recording medium data data buffer storage pond position;The data buffer storage pond is arranged in the direct broadcast server internal memory, For caching the media data from source server;
According to the index information of the targeted media data, the targeted media data is positioned from the data buffer storage pond concurrent Deliver to client.
2. the Internet live broadcasting method as claimed in claim 1, it is characterised in that the Internet live broadcasting method, also includes:
When the direct broadcast server starts, the data buffer storage pond and the data directory file are initialized;
What the direct broadcast server received that the source server sends treats buffered media data, treats that buffered media data is deposited by described In entering the data buffer storage pond;
Treat the position that buffered media data is stored in the data buffer storage pond, to carry out more the data directory file according to described Newly.
3. the Internet live broadcasting method as claimed in claim 1, it is characterised in that the Internet live broadcasting method, also includes:
The direct broadcast server periodically removes the index information of media data out of date in the data directory file, and returns Receive the internal memory that media data out of date described in the cache pool takes.
4. the Internet live broadcasting method as claimed in claim 2, it is characterised in that the direct broadcast server receives source server and sends out That what is sent treats buffered media data, also includes afterwards:
Treat that buffered media data is stored in the distributed file system of source server by described;
The index information that the targeted media data is searched in the data directory file, also includes afterwards:
If there is no the index information of the targeted media data in the data directory file, from the direct broadcast server The targeted media data is read in distributed file system and is sent to client.
5. the Internet live broadcasting method as claimed in claim 2, it is characterised in that when direct broadcast server starts, to data buffer storage Pond and data directory file are initialized, including:
Distribute predetermined number memory element for the cache pool, wherein, the size of each memory element is fixed;
It is indexed value numbering in order to each memory element;
Each memory element is divided into into continuous 4K memory blocks, the initialization to the cache pool is completed.
6. a kind of direct broadcast server, it is characterised in that the direct broadcast server includes:
Request of data receiving unit, for receiving the data requesting instructions of client transmission;
Target data determining unit, for the data requesting instructions received according to the request of data receiving unit, determines institute State the targeted media data of client request;
Index information searching unit, for searching the mesh that the target data determining unit determines in the data directory file The index information of mark media data, wherein, the data directory file is used for position of the recording medium data in data buffer storage pond; The data buffer storage pond is arranged in the direct broadcast server internal memory, for caching the media data from source server;
First data transmission unit, the index letter of the targeted media data for being found according to the index information searching unit Breath, the targeted media data is positioned from the data buffer storage pond and is sent to client.
7. direct broadcast server as claimed in claim 6, it is characterised in that the direct broadcast server also includes:
Data initialization unit, for when direct broadcast server starts, to the data buffer storage pond and the data directory file Initialized;
First media data cache unit, for receive that the source server sends buffered media data is treated, waits to delay by described Deposit media data to be stored in the data buffer storage pond;
Index file updating block, for treating that buffered media data is stored in the data according to the media data cache unit The position of cache pool, is updated to the data directory file.
8. direct broadcast server as claimed in claim 6, it is characterised in that the direct broadcast server also includes:
Stale data clears up unit, for periodically removing the data directory file in media data out of date index letter Breath, and reclaim the internal memory that media data out of date described in the cache pool takes.
9. direct broadcast server as claimed in claim 7, it is characterised in that the direct broadcast server also includes:
Second media data cache unit, for treating the distributed file system that buffered media data is stored in source server by described In;
Second data transmission unit, for it cannot find in data directory file when the index information searching unit described in During the index information of targeted media data, the target medium number is read from the distributed file system of the direct broadcast server According to and send to client.
10. direct broadcast server as claimed in claim 7, it is characterised in that the data initialization unit, specifically includes:
Memory element distributes subelement, for distributing predetermined number memory element for the cache pool, wherein, each storage is single The size of unit is fixed;
Memory element numbering subelement, each memory element for distributing under subelement distributes the memory element is entered in order Row index values are numbered;
Memory element divides subelement, for each memory element that the memory element is distributed under subelement distribution to be divided into into company Continuous 4K memory blocks, complete the initialization to the cache pool.
CN201611270040.3A 2016-12-30 2016-12-30 Internet-based live broadcast method and live broadcast server Pending CN106604043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611270040.3A CN106604043A (en) 2016-12-30 2016-12-30 Internet-based live broadcast method and live broadcast server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611270040.3A CN106604043A (en) 2016-12-30 2016-12-30 Internet-based live broadcast method and live broadcast server

Publications (1)

Publication Number Publication Date
CN106604043A true CN106604043A (en) 2017-04-26

Family

ID=58582230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611270040.3A Pending CN106604043A (en) 2016-12-30 2016-12-30 Internet-based live broadcast method and live broadcast server

Country Status (1)

Country Link
CN (1) CN106604043A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107404480A (en) * 2017-07-24 2017-11-28 平安科技(深圳)有限公司 A kind of transmission method of stream medium data, storage medium and streaming media server
CN107809684A (en) * 2017-10-27 2018-03-16 广东省南方数字电视无线传播有限公司 Video segment generation method and device, caching server
WO2018226445A1 (en) * 2017-06-08 2018-12-13 Mz Ip Holdings, Llc System and method for managing a file cache for a client application
CN109743377A (en) * 2018-12-27 2019-05-10 杭州当虹科技股份有限公司 A kind of small documents read-write optimization method based on HTTP
CN109756757A (en) * 2019-03-21 2019-05-14 北京数码视讯软件技术发展有限公司 Live data processing method and processing device, live broadcasting method and device and direct broadcast server
CN110139123A (en) * 2018-02-02 2019-08-16 腾讯科技(深圳)有限公司 The broadcasting of files in stream media, transmission, treating method and apparatus
CN110708237A (en) * 2019-10-30 2020-01-17 北京字节跳动网络技术有限公司 Message interaction method and device, readable medium and electronic equipment
CN113132750A (en) * 2021-04-16 2021-07-16 北京金山云网络技术有限公司 Information sending method and device and server
CN115412777A (en) * 2021-05-28 2022-11-29 北京金山云网络技术有限公司 Streaming media data transmission method, device and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026744A (en) * 2007-03-30 2007-08-29 Ut斯达康通讯有限公司 Distributed flow media distribution system, and flow media memory buffer and scheduling distribution method
CN101127898A (en) * 2007-09-20 2008-02-20 Ut斯达康通讯有限公司 Slice storage and streaming service method for stream media system and multimedia files
CN101169759A (en) * 2007-11-08 2008-04-30 Ut斯达康通讯有限公司 Memory management method for application program
CN101315628A (en) * 2007-06-01 2008-12-03 华为技术有限公司 Internal memory database system and method and device for implementing internal memory data base
CN102317901A (en) * 2011-07-25 2012-01-11 华为技术有限公司 Methods for object adjustment and devices for remove control, node and storage system
CN103220587A (en) * 2013-03-22 2013-07-24 深圳市龙视传媒有限公司 Method and device for obtaining time shifting contents
CN104750858A (en) * 2015-04-16 2015-07-01 成都影泰科技有限公司 Network-based data storage method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026744A (en) * 2007-03-30 2007-08-29 Ut斯达康通讯有限公司 Distributed flow media distribution system, and flow media memory buffer and scheduling distribution method
CN101315628A (en) * 2007-06-01 2008-12-03 华为技术有限公司 Internal memory database system and method and device for implementing internal memory data base
CN101127898A (en) * 2007-09-20 2008-02-20 Ut斯达康通讯有限公司 Slice storage and streaming service method for stream media system and multimedia files
CN101169759A (en) * 2007-11-08 2008-04-30 Ut斯达康通讯有限公司 Memory management method for application program
CN102317901A (en) * 2011-07-25 2012-01-11 华为技术有限公司 Methods for object adjustment and devices for remove control, node and storage system
CN103220587A (en) * 2013-03-22 2013-07-24 深圳市龙视传媒有限公司 Method and device for obtaining time shifting contents
CN104750858A (en) * 2015-04-16 2015-07-01 成都影泰科技有限公司 Network-based data storage method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018226445A1 (en) * 2017-06-08 2018-12-13 Mz Ip Holdings, Llc System and method for managing a file cache for a client application
US11301423B2 (en) 2017-06-08 2022-04-12 Mz Ip Holdings, Llc System and method for managing a file cache for a client application
CN107404480A (en) * 2017-07-24 2017-11-28 平安科技(深圳)有限公司 A kind of transmission method of stream medium data, storage medium and streaming media server
CN107809684A (en) * 2017-10-27 2018-03-16 广东省南方数字电视无线传播有限公司 Video segment generation method and device, caching server
CN110139123A (en) * 2018-02-02 2019-08-16 腾讯科技(深圳)有限公司 The broadcasting of files in stream media, transmission, treating method and apparatus
CN109743377A (en) * 2018-12-27 2019-05-10 杭州当虹科技股份有限公司 A kind of small documents read-write optimization method based on HTTP
CN109756757A (en) * 2019-03-21 2019-05-14 北京数码视讯软件技术发展有限公司 Live data processing method and processing device, live broadcasting method and device and direct broadcast server
CN109756757B (en) * 2019-03-21 2021-07-13 北京数码视讯软件技术发展有限公司 Live broadcast data processing method and device, live broadcast method and device and live broadcast server
CN110708237A (en) * 2019-10-30 2020-01-17 北京字节跳动网络技术有限公司 Message interaction method and device, readable medium and electronic equipment
WO2021082584A1 (en) * 2019-10-30 2021-05-06 北京字节跳动网络技术有限公司 Message exchange method and apparatus, readable medium, and electronic device
CN113132750A (en) * 2021-04-16 2021-07-16 北京金山云网络技术有限公司 Information sending method and device and server
CN115412777A (en) * 2021-05-28 2022-11-29 北京金山云网络技术有限公司 Streaming media data transmission method, device and system

Similar Documents

Publication Publication Date Title
CN106604043A (en) Internet-based live broadcast method and live broadcast server
CN103535013B (en) In radio network system and equipment that file transmission (" FLUTE ") agreement transmits different classes of file are irreversibly delivered using multichannel
US8407260B2 (en) Method and apparatus for caching broadcasting information
CN102055718B (en) Method, device and system for layering request content in http streaming system
JP2000512113A (en) Use of hierarchical file system to direct data broadcast from network server to client
WO2008119265A1 (en) A method, server, terminal and system for updating electronic service guide
CN103379362A (en) Video-on-demand method and system
JP2003528499A5 (en)
CN101075892A (en) Method, server and customer terminal for releasing advertisement
US20100179973A1 (en) Systems, methods, and computer programs for delivering content via a communications network
CN102349278B (en) Method and apparatus for on-demand content mapping
CN104506493A (en) HLS content source returning and caching realization method
CN108886629A (en) Application content is packaged and the signaling of transmission
WO2018153237A1 (en) Caching method and system for replaying live broadcast, and playing method and system
CN105828011B (en) A kind of methods, devices and systems of video record
CN102316135A (en) Network on-demand method and system
CN101170719B (en) Multi-file content processing method and system
CN109167840A (en) A kind of task method for pushing, Site autonomy server and edge cache server
CN105872856A (en) Method and system for distributing stream media files
CN107888941B (en) Video segment transmission method, device and system
CN105721952A (en) Live streaming network transmission method and system for equal-length slices
CN106534883A (en) Video control method and device
CN107809684B (en) Video segment generation method and device, cache server
CN104702980B (en) A kind of EPG data processing method, EPG server and EPG data processing system
CN101742247A (en) Method and system for interactive web TV service authentication and EPG server

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
CB02 Change of applicant information

Address after: 518000 Guangdong city of Shenzhen province Nanshan District Guangdong streets Gao Xin Road No. 016 three storey building on the east side of Lenovo

Applicant after: Excellent network Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Guangdong streets Gao Xin Road No. 016 three storey building on the east side of Lenovo

Applicant before: UT Starcom (Shenzhen) Technology Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20170426

RJ01 Rejection of invention patent application after publication