CN104602138B - A kind of method and device for making streaming media server support HLS protocol - Google Patents

A kind of method and device for making streaming media server support HLS protocol Download PDF

Info

Publication number
CN104602138B
CN104602138B CN201510051752.5A CN201510051752A CN104602138B CN 104602138 B CN104602138 B CN 104602138B CN 201510051752 A CN201510051752 A CN 201510051752A CN 104602138 B CN104602138 B CN 104602138B
Authority
CN
China
Prior art keywords
file
virtual clip
media
media file
clip
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
CN201510051752.5A
Other languages
Chinese (zh)
Other versions
CN104602138A (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.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network 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 Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201510051752.5A priority Critical patent/CN104602138B/en
Priority to CN201810119061.8A priority patent/CN108124202B/en
Publication of CN104602138A publication Critical patent/CN104602138A/en
Application granted granted Critical
Publication of CN104602138B publication Critical patent/CN104602138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/61Network physical structure; Signal processing
    • H04N21/6106Network physical structure; Signal processing specially adapted to the downstream path of the transmission network
    • H04N21/6125Network physical structure; Signal processing specially adapted to the downstream path of the transmission network involving transmission via Internet
    • 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/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/64322IP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention proposes a kind of method and device for making streaming media server support HLS protocol, it is related to stream media technology field, to in the case where reducing occupancy server storage so that existing streaming media server supports the real time streaming based on HLS protocol.This method includes:Obtain the file identification and characteristic parameter of the media file stored in the server identification and streaming media server of streaming media server;The characteristic parameter of media file includes at least:The file size and file duration of media file;Obtain fragment segmentation duration and fragment segmentation size;The characteristic parameter of each virtual clip in media file is determined according to the characteristic parameter of media file, fragment segmentation duration, fragment segmentation size, and the index entry in index file is constructed according to the characteristic parameter of the server identification of streaming media server, the file identification of media file and each virtual clip.

Description

A kind of method and device for making streaming media server support HLS protocol
Technical field
The present invention relates to stream media technology field, more particularly to one kind to make streaming media server support HLS (HTTP Live Streaming, hypertext live TV stream;The agreement that real time streaming is realized based on HTTP proposed by Apple Inc.) agreement Method and device.
Background technology
With the development of network, the relation of daily life and internet is more and more closer.Since internet provides Video resource it is rich, more and more users by internet program request TV play, film, variety show or other sounds/ Video information.
General playback method is that user is selected after needing the audio/video file that obtains, downloaded from server the sound/ Video file (after this document is all downloaded, then on a user device plays out the audio/video file.In order to The limitation that general playback method needs to play after first file is all downloaded is broken through, developer proposes the general of Streaming Media Read, i.e., will be stored after audio/video compressing file on the server, played for user when downloading.
Realizing the agreement of streaming media in the prior art mainly has two kinds, and a kind of is conventional live streaming media agreement (such as RTMP (Real Time Messaging Protocol, real-time messages transport protocol), RTSP (Real Time Streaming Protocol, real time streaming transport protocol), (Microsoft Media Server Protocol are (micro- for mobile agent server protocol Soft media server agreement) etc.), another kind is HLS protocol.In method using conventional live streaming media agreement, Streaming Media Server is stored audio/video file as an entirety.Relative to conventional live streaming media agreement, HLS associations are supported Whole audio/video file is divided into segmental file small one by one and is stored by the streaming media server of view, due to segmental file Duration it is very short, therefore, in the playing process of audio/video file, client can select from different audio/video sources with Different speed downloads same audio/video resource, the switching of code check is carried out, to adapt to the broadcasting under the conditions of different bandwidth.Mirror In above-mentioned advantage, HLS protocol is more and more widely used in the broadcasting of various audio/video files.
In order to make the streaming media server of support routine live streaming media agreement also to support HLS protocol, the prior art Implementation method can be:First the media file stored in conventional streaming media server will be supported to download, and by download Media file cuts into small segmental file one by one, and segmental file then is uploaded to streaming media server, will then divide The fileinfo of segment file writes a m3u8 and (media file after segmentation is described with text mode) in file, finally The m3u8 files of generation are uploaded into the streaming media server.
State in realization during making streaming media server support HLS protocol, inventor has found in the prior art at least There are the following problems:With the above-mentioned prior art, although streaming media server can support conventional live streaming media to assist at the same time Negotiation HLS protocol, but need to store two kinds of files for representing same information of segmental file after original big file and cutting, Add the disk load of server storage.
The content of the invention
The embodiment of the present invention provides a kind of method and device for making streaming media server support HLS protocol, to subtract In the case of taking server storage less so that existing streaming media server supports the real time flow medium based on HLS protocol Transmission.
To reach above-mentioned purpose, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, an embodiment of the present invention provides a kind of method for making streaming media server support HLS protocol, including: Obtain the file identification and feature ginseng of the media file stored in the server identification and streaming media server of streaming media server Number;The characteristic parameter of media file includes at least:The file size of media file, the file duration of media file;Obtain fragment Split duration and fragment segmentation size;Matchmaker is determined according to the characteristic parameter of media file, fragment segmentation duration, fragment segmentation size The characteristic parameter of each virtual clip in body file, and according to the server identification of streaming media server, the file of media file Index entry in the characteristic parameter of mark and each virtual clip construction index file;The characteristic parameter of virtual clip is used in matchmaker Virtual clip is uniquely determined out in body file.
Second aspect, an embodiment of the present invention provides a kind of streaming media server, including:Acquiring unit, flows for obtaining The file identification and characteristic parameter of the media file stored in the server identification and streaming media server of media server;Media The characteristic parameter of file includes at least:The file size of media file, the file duration of media file;Acquiring unit, is additionally operable to Obtain fragment segmentation duration and fragment segmentation size;Processing unit, when splitting for the characteristic parameter according to media file, fragment Long, fragment segmentation size determines the characteristic parameter of each virtual clip in media file, and according to the service of streaming media server Index entry in the characteristic parameter construction index file of device mark, the file identification of media file and each virtual clip;Virtually The characteristic parameter of fragment is used to uniquely determine out virtual clip in media file.
A kind of method and device for making streaming media server support HLS protocol provided in an embodiment of the present invention, obtains stream matchmaker The file identification and characteristic parameter of the media file stored in the server identification and streaming media server of body server, and obtain Fragment splits duration and fragment segmentation size;It is true according to the characteristic parameter of media file, fragment segmentation duration, fragment segmentation size Determine the characteristic parameter of each virtual clip in media file, and according to the server identification of streaming media server, media file Index entry in file identification and the characteristic parameter of each virtual clip construction index file.Pass through stroke by media file virtually It is divided into virtual clip, the index entry of each virtual clip is then constructed in indexed file, so that in streaming media server The whole media file of storage has corresponding index file, only needs just to be obtained respectively according to index file in program request To the content of each virtual clip so that streaming media server can support HLS protocol, simultaneously because index file is relative to existing There is the segmental file after media file is split in technology to greatly reduce compared to the memory spaces of needs, accounted for so less The memory space of server.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art Required attached drawing is briefly described, it should be apparent that, drawings in the following description are only some realities of the present invention Example is applied, for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow signal of method for making streaming media server support HLS protocol provided in an embodiment of the present invention Figure;
Fig. 2 is that the flow that another kind provided in an embodiment of the present invention makes streaming media server support the method for HLS protocol is shown It is intended to;
Fig. 3 is that the flow that another kind provided in an embodiment of the present invention makes streaming media server support the method for HLS protocol is shown It is intended to;
Fig. 4 is that the flow that another kind provided in an embodiment of the present invention makes streaming media server support the method for HLS protocol is shown It is intended to;
Fig. 5 is a kind of functional schematic of streaming media server provided in an embodiment of the present invention;
Fig. 6 is the functional schematic of another streaming media server provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment, belongs to the scope of protection of the invention.
It should be noted that HLS protocol is the agreement for real time streaming, its main feature is that media file is carried out Segment transmissions, the content of transmission include two parts, and a part is TS (the Transport Stream for storage media data (transport stream;Full name MPEG2-TS) media file, another part is the M3U8 index files for indexing TS media files.Terminal M3U8 file acquisitions to TS media files can be passed through.
It should be noted that the streaming media server in all embodiments of the invention refers to support the live agreement of Conventional media (such as RTMP, RTSP, mobile agent server protocol), while the streaming media server of HLS protocol is not supported.
An embodiment of the present invention provides a kind of method for making streaming media server support HLS protocol, as shown in Figure 1, including:
101st, the file of the media file stored in the server identification and streaming media server of streaming media server is obtained Mark and characteristic parameter.
Wherein, the characteristic parameter of media file includes at least:The file size of media file, media file file when It is long.
It should be noted that the identification information of streaming media server can be host number and the port of streaming media server Number, the other identifier that can uniquely determine out streaming media server is can also be, for example, domain name, IP address (Internet Protocol Address, internet protocol address) or node identification etc..The present invention is without limitation.
It should be noted that one or more media files can be stored with streaming media server, and the media stored File is whole file.All embodiments of the present invention are illustrated from the angle of any one media file.
It should also be noted that, the server identification of streaming media server is used for one service of unique mark in internet Device.The file identification of media file is used for one media file of unique mark in streaming media server.The file of media file Size refers to the size of the memory space shared by the media file.The file duration of media file refers to play a media text Time needed for part.
Specifically, can be from the server identification and streaming media server that streaming media server obtains streaming media server The file identification and characteristic parameter of the media file of storage or by the server identification of streaming media server, Streaming Media The file identification and characteristic parameter of the media file stored in server are stored into storage device, are obtained and are flowed from the storage device The file identification and characteristic parameter of the media file stored in the server identification and streaming media server of media server.
102nd, fragment segmentation duration and fragment segmentation size are obtained.
It should be noted that media file to be virtually divided into multiple virtual clips, wherein virtual clip is to media Division on Documents Logical, media file of the actual storage in streaming media server are still the audio/video text of an entirety Part.When fragment segmentation duration refers to be divided media file, in addition to last virtual clip, other all virtual pieces Duration corresponding to section, that is to say, that fragment segmentation duration is other all virtual clips in addition to last virtual clip Average duration.Exemplary, if the file duration of a media file is 130 seconds, if a length of 3 seconds when fragment is split.So root The media file can be divided into 44 virtual clips according to fragment segmentation duration, wherein, the duration of preceding 43 virtual clips is all Equal to fragment segmentation duration 3 seconds, the 44th virtual clip when a length of 1 second.
Specifically, obtaining fragment segmentation duration set in advance, or obtain the fragment segmentation duration of user configuration.
It should be noted that fragment segmentation size refers to the size of the corresponding file of fragment segmentation duration.Fragment segmentation is big It is small when referring to be divided media file, in addition to last virtual clip, the text corresponding to other all virtual clips The size of part.
Specifically, it can obtain fragment segmentation size set in advance or acquisition to obtain fragment segmentation size The fragment segmentation size of user configuration, can also be that splitting duration according to the characteristic parameter and fragment of media file determines fragment point Cut size.
Under normal circumstances, default fragment segmentation size is the integral multiple of 188 bytes.
Wherein, determine that fragment segmentation size specifically includes according to the characteristic parameter of media file and fragment segmentation duration:It is first Unit interval corresponding file size is first determined according to the file size and file duration of media file, then according to the unit interval Corresponding file size and fragment segmentation duration determines that fragment splits size.
It should be noted that minimum dividing unit during due to division media file is byte (Byte), and according to above-mentioned The fragment segmentation that method calculates not of uniform size is integral words section surely, then when dividing virtual clip, the first of virtual clip A byte and last byte may not be a complete byte, the two bytes are imperfect when playing virtual clip pair User's viewing sense is affected to be can be ignored.
In order to eliminate the shadow that each virtual clip first character section and last byte are not a complete bytes Ring, the fragment calculated can be split to size according to the downward rounding of byte, if for example, the fragment segmentation size calculated is 384.125 bytes, then according to obtaining 384 bytes after the downward rounding of byte, then can determine that it is 384 words to separate clip size Section, then the size of all virtual clips in addition to last virtual clip is equal to 384 bytes, except last is empty Intend the error that all virtual clips outside fragment add up, can be all modified in last byte.In order to eliminate each void Intend the influence that fragment first character section and last byte are not a complete bytes, each byte can also calculated End position when, byte number is added one according to the integer part of end position or subtracts one, with to each virtual clip The error of one byte or last byte is modified, if for example, calculating a certain void according to the clip size of calculating The end position for intending fragment is the 122.875th byte, then according to rounding up, the end position of the virtual clip is arranged to 123rd byte.
It should be noted that obtained in the fragment segmentation size for obtaining fragment segmentation size or user configuration set in advance In the case of fragment segmentation size, step 101 does not have sequencing with step 102, can first carry out step 101, then perform step Rapid 102;Step 102 can also be first carried out, then performs step 101;Step 101 and step 102 can also be performed at the same time, the present invention This is not restricted.In the case where the characteristic parameter according to media file and fragment segmentation duration determine fragment segmentation size, " obtaining fragment segmentation duration " in step 101 and step 102 must be first carried out, then could obtain fragment segmentation size, but It is not have sequencing between " obtaining fragment segmentation duration " in step 101 and step 102.
103rd, determined according to the characteristic parameter of media file, fragment segmentation duration, fragment segmentation size every in media file The characteristic parameter of one virtual clip, and according to the server identification of streaming media server, the file identification of media file and each Index entry in the characteristic parameter construction index file of virtual clip.
Wherein, the characteristic parameter of virtual clip is used to uniquely determine out virtual clip in media file.
It should be noted that before the index entry in constructing index file, it is also necessary to create index file and write basis Character string.It is the character string required by the form of index file that index file, which is divided into basic character string,.
It should be noted that the characteristic parameter of all virtual clips in media file can be first calculated, and will be each virtual The characteristic parameter of fragment is stored, then according to the server identification of streaming media server, media file file identification and The construction index file of the characteristic parameter of each virtual clip of storage;The feature of a virtual clip can also often calculated During parameter, with regard to adding the corresponding index entry of the virtual clip in indexed file.
It should be noted that in order to uniquely determine out a virtual clip, so the parameter needed has virtual clip in matchmaker Specific location in body file, media file mark in the server and stores the server of the media file in a network Mark.URL (Uniform Resource Locator (universal resource locator) sentence construction indexes are used in M3U8 files , the wherein general type of URL is:<The access mode of URL:://<Host::<Port:/<Path:.
It should be noted that the characteristic parameter of each virtual clip includes:The clip durations of each virtual clip, start bit Put and end position.Correspondingly, step 103 can be achieved by the steps of:
The initial position of S1, initialization of virtual fragment.
It should be noted that the initial position of virtual clip is exactly the phase for needing to configure respective index item respective file fragment For the position of whole file.Generally using the first address of whole file as 0 into line displacement.
Specifically, in the case where needing to make the corresponding index file of entirety of media file, initialization of virtual fragment Initial position relative to whole media file offset be 0.So under normal circumstances, at this time can rising the virtual clip Beginning, position was arranged to 0.
S2, judge whether virtual clip is last virtual clip in media file.
It should be noted that due to needing to divide file according to fixed fragment segmentation size, it is possible that most Differing in size for the virtual clip divided afterwards splits size in fragment, correspondingly, the time of the virtual clip may not also Split duration equal to fragment, then the definite method of the relevant parameter of last virtual clip and the parameter of other virtual clips Definite method it is different, so needing to judge whether the pending virtual clip such as current is last virtual clip.
It should be noted that it is different according to the result of judgement, perform different steps.If virtual clip is not media file In last virtual clip, then perform step S3;If virtual clip is last virtual clip in media file, Perform step S4.
If S3, virtual clip are not last virtual clips in media file, according to the start bit of virtual clip Put and fragment splits the end position that size determines virtual clip, when fragment segmentation duration is determined as the fragment of virtual clip It is long, rope is constructed according to the characteristic parameter of the server identification of streaming media server, the file identification of media file and virtual clip The corresponding index entry of virtual clip in quotation part, and the initial position of virtual clip is updated, jump to and whether judge virtual clip For last virtual clip in media file.
It should be noted that prepare calculate characteristic parameter virtual clip be not last virtual clip situation Under, then the clip durations of this virtual clip are equal to fragment segmentation duration, and the size of this virtual clip is equal to fragment Split size.
It should be noted that if the virtual clip is the virtual clip of first division, then the starting of the virtual clip Address is exactly the initial position of virtual clip when initializing;If the virtual clip is not the virtual clip of first division, then The initial position of the virtual clip is determined when its previous virtual clip divides.
Specifically, by the initial position of virtual clip plus the end for subtracting one and being determined as virtual clip after fragment segmentation size The initial position of end position=virtual clip of position, i.e. virtual clip+fragment segmentation size -1 (byte), and virtual piece The clip durations of section=fragment segmentation duration, then according to the construction rule of index entry, according to the server mark of media server The corresponding index of the virtual clip is added in the characteristic parameter indexed file of knowledge, the file identification of media file and virtual clip , the index entry construction of current virtual fragment finishes at this time, then just jumps to next virtual clip, specially updates virtual clip Initial address for virtual clip end address plus fragment split size, then jump device step S2, continue to judge next Whether virtual clip is last virtual clip.
If S4, virtual clip are last virtual clips in media file, according to the file size of media file Determine the end position of virtual clip, virtual clip is determined according to the initial position of the characteristic parameter of media file and virtual clip Clip durations, according to the feature of the server identification of streaming media server, the file identification of media file and virtual clip join The corresponding index entry of virtual clip in number construction index file.
It should be noted that in the case where the virtual clip for preparing calculating characteristic parameter is last virtual clip, So the clip durations of this virtual clip and clip size need specifically to be determined according to relevant parameter.
Specifically, the corresponding value of the file size of media file to be determined as to the end position of virtual clip, then basis The size of media file and the initial position of virtual clip determine last virtual clip includes how many byte, then according to matchmaker The file size and file duration of body file determine duration needed for each byte, are finally included according to last virtual clip Duration needed for byte number and each byte determines the clip durations of last virtual clip.Then according to the construction of index entry Rule, is indexing according to the characteristic parameter of the server identification of media server, the file identification of media file and virtual clip The corresponding index entry of the virtual clip is added in file, the index entry construction of all virtual clips finishes at this time.
It should be noted that judge that the method for the clip durations of last virtual clip can also be media file It is that the clip durations that file duration subtracts all virtual clips in addition to last virtual clip obtain as a result, being determined as last The clip durations of a virtual clip.
It should be noted that due to initialization of virtual fragment initial position when by the initial position of first virtual clip 0 is arranged to relative to the offset of whole media file, so at this time the stop bits of last virtual clip can be installed It is set to the value corresponding to media file size.If the initial position of first virtual clip sets N, then last virtual piece The end position of section is equal to the value corresponding to N+ media file sizes.
An embodiment of the present invention provides a kind of method for making streaming media server support HLS protocol, obtains streaming media service The file identification and characteristic parameter of the media file stored in the server identification and streaming media server of device, and obtain fragment point Cut duration and fragment segmentation size;Media are determined according to the characteristic parameter of media file, fragment segmentation duration, fragment segmentation size The characteristic parameter of each virtual clip in file, and according to the files-designated of the server identification of streaming media server, media file Know and the index entry in the characteristic parameter of each virtual clip construction index file.By by media file it is virtual be divided into void Intend fragment, the index entry of each virtual clip is then constructed in indexed file, so that stored in streaming media server Whole media file has corresponding index file, only needs just be got respectively according to index file in program request each The content of virtual clip so that streaming media server can support HLS protocol, simultaneously because index file is relative to the prior art It is middle media file is split after segmental file greatly reduce compared to the memory spaces of needs, so the less clothes of occupancy The memory space of business device.
An embodiment of the present invention provides a kind of method for making streaming media server support HLS protocol, as shown in Fig. 2, including:
201st, the file of the media file stored in the server identification and streaming media server of streaming media server is obtained Mark and characteristic parameter.
Wherein, the characteristic parameter of media file includes at least:The file size of media file, media file file when It is long.
Specifically, referring to step 101, details are not described herein.
202nd, fragment segmentation duration and fragment segmentation size are obtained.
Specifically, referring to step 102, details are not described herein.
203rd, the initial position of initialization of virtual fragment, and during broadcasting remaining according to the initialization of the file duration of media file It is long.
It should be noted that when remaining playing duration is exactly the playback of media files a to virtual clip, the matchmaker is played Body file is left the duration needed for content.
Specifically, the method for the initial position of initialization of virtual fragment refers to the S1 of step 103, details are not described herein.
Specifically, when constructing the index file of full content of media file, the corresponding residue of first virtual clip Playing duration is determined as the file duration of media file.
204th, judge whether remaining playing duration is less than or equal to fragment segmentation duration.
It should be noted that step 204 be judge current virtual fragment whether be last virtual clip one kind side Method, can also use other methods, such as be judged according to the size of remaining unallocated media file size and segmentation.This hair It is bright without limitation.
It should be noted that when obtaining fragment segmentation size, if employ according to the characteristic parameter of media file and The method that fragment segmentation duration determines fragment segmentation size, and in order to eliminate each virtual clip first character section and last A byte is not the influence of a complete byte, and the fragment calculated is split size according to the downward rounding of byte, then by Being less than segmentation duration in the clip size of other virtual clips in addition to last virtual clip actually should corresponding fragment Size, is less than fragment segmentation duration it is possible that occurring when remaining time, but also unallocated file size is more than fragment Split the situation of size, need to determine whether last virtual piece according to remaining playing duration and fragment segmentation duration at this time Section.
If the 205, remaining playing duration is more than fragment segmentation duration, split according to the initial position of virtual clip and fragment Size determines the end position of virtual clip, fragment segmentation duration is determined as to the clip durations of virtual clip, according to Streaming Media Virtual piece in the characteristic parameter construction index file of the server identification of server, the file identification of media file and virtual clip The corresponding index entry of section, and initial position and the played file residual time length of virtual clip are updated, jump to judgement virtual clip Whether it is last virtual clip in media file.
Specifically, the end position of virtual clip is determined according to the initial position of virtual clip and fragment segmentation size, will Fragment segmentation duration is determined as the clip durations of virtual clip, according to the server identification of streaming media server, media file The corresponding index entry of virtual clip in file identification and the characteristic parameter of virtual clip construction index file, and update virtual clip Initial position, jump to judge virtual clip whether be last virtual clip in media file method, refer to S3 in step 103, is not repeating herein.
It should be noted that since in addition to last virtual clip, the duration of other virtual clips is equal to fragment point Duration is cut, so specifically renewal played file residual time length subtracts fragment segmentation duration for current residual time length.
In the case that the 206th, if remaining playing duration is less than or equal to fragment segmentation duration, according to the file of media file Size determines the end position of virtual clip, is determined virtually according to the initial position of the characteristic parameter of media file and virtual clip The clip durations of fragment, according to the spy of the server identification of streaming media server, the file identification of media file and virtual clip Levy the corresponding index entry of virtual clip in parametric configuration index file.
Specifically, referring to the S4 in step 103, do not repeating herein.
An embodiment of the present invention provides a kind of method for making streaming media server support HLS protocol, obtains streaming media service The file identification and characteristic parameter of the media file stored in the server identification and streaming media server of device, and obtain fragment point Cut duration and fragment segmentation size;Media are determined according to the characteristic parameter of media file, fragment segmentation duration, fragment segmentation size The characteristic parameter of each virtual clip in file, and according to the files-designated of the server identification of streaming media server, media file Know and the index entry in the characteristic parameter of each virtual clip construction index file.By by media file it is virtual be divided into void Intend fragment, the index entry of each virtual clip is then constructed in indexed file, so that stored in streaming media server Whole media file has corresponding index file, only needs just be got respectively according to index file in program request each The content of virtual clip so that streaming media server can support HLS protocol, simultaneously because index file is relative to the prior art It is middle media file is split after segmental file greatly reduce compared to the memory spaces of needs, so the less clothes of occupancy The memory space of business device.
A kind of method for making streaming media server support HLS protocol of the embodiment of the present invention, at this time, user's program request is matchmaker Part in body file, can not have to the corresponding index file of all the elements of construction media file, only construct program request part pair The index file answered.It is corresponding as shown in figure 3, including:
301st, the file of the media file stored in the server identification and streaming media server of streaming media server is obtained Mark and characteristic parameter.
Wherein, the characteristic parameter of media file includes at least:The file size of media file, media file file when It is long.
Specifically, referring to step 101, details are not described herein.
302nd, initial time and the end time of played file are obtained.
Wherein, played file is part or all of in media file.
It should be noted that when user only carries out program request to the partial document in media file, user in media file The part of program request is called played file, only can make index file to the partial document.Carried out in user using HLS protocol During program request, it is merely able to there is the partial document in the media file of index file to carry out program request.
It should be noted that the initial time of played file and the value of end time are in 0 and the file duration of media file Between.
Specifically, media file can be divided into several parts, each section can serve as a played file, at this time may be used To obtain initial time and the end time of played file from streaming media server.It can also be the user program request media file A part, at this time from terminal obtain played file initial time end time.
It should be noted that user only sets the initial time of program request under normal circumstances, so terminating at this point it is possible to give tacit consent to Time is the file duration of media file.
It should be noted that in the case where played file is the whole of media file, when giving tacit consent to the starting of played file Between be 0, end time of played file is the file duration of media file.
303rd, played file is determined according to the initial time and end time of the characteristic parameter of media file and played file Initial position and end position.
Specifically, determine that unit interval corresponding file is big according to the file size of media file and file duration first It is small, the initial position of played file is then determined according to the initial time of unit interval corresponding file size and played file, And the end position of played file is determined according to the end time of unit interval corresponding file size and played file.
It should be noted that the mode of above-mentioned specific implementation be by the offset of the first address of media file be arranged to 0 into Row calculates.If the offset for setting the first address of media file is M, correspondingly, the initial position of played file and end position Add M on the basis of above-mentioned calculating respectively.
304th, fragment segmentation duration and fragment segmentation size are obtained.
Specifically, referring to step 102, details are not described herein.
305th, according to the characteristic parameter of media file, the initial time of played file and end time, fragment segmentation duration, Fragment segmentation size, initial position and the end position of played file determine that the feature of each virtual clip in media file is joined Number, and according to the characteristic parameter of the server identification of streaming media server, the file identification of media file and each virtual clip Construct the index entry of the index file of played file in media file.
It should be noted that at this time except initialization of virtual fragment initial position for played file initial position, with And judging whether virtual clip is last virtual clip in played file, other all refer to step 103, herein no longer Repeat.
An embodiment of the present invention provides a kind of method for making streaming media server support HLS protocol, obtains streaming media service The file identification and characteristic parameter of the media file stored in the server identification and streaming media server of device, obtain played file Initial time and end time and the enlightenment initial position and the end position that calculate played file, then obtain fragment segmentation Duration and fragment segmentation size;According to the characteristic parameter of media file, the initial time of played file and end time, fragment point Cut duration, fragment segmentation size, the initial position of played file and end position and determine each virtual clip in media file Characteristic parameter, and according to the spy of the server identification of streaming media server, the file identification of media file and each virtual clip Levy the index entry of the index file of played file in parametric configuration media file.By the way that the played file in media file is virtual The index entry for being divided into virtual clip, each virtual clip then being constructed in indexed file, so that streaming media service Played file in device in media file has corresponding index file, only needs just be divided according to index file in program request The content of each virtual clip is not got so that streaming media server can support HLS protocol simultaneously because index file phase Greatly reduce for memory space of the segmental file after media file is split in the prior art compared to needs, so compared with The memory space of the server taken is lacked.
Further, as shown in figure 4, on the basis of the index file method of construction media file, further include such as Fig. 4 institutes The lookup flow shown.Including;
401st, the program request instruction of terminal is obtained.
Wherein, program request instruction is used in program request streaming media server the media file stored.
It should be noted that can first carry out step 401 obtains program request instruction, it is then interim dynamically to construct index text Part;Can also be just that the media file in streaming media server constructs before performing step 401 and obtaining program request instruction Index file.The present invention is without limitation.But the execution of step 402 must construct the media file that needs program request Index file after perform.
402nd, instructed according to program request, virtual clip is searched from media file using index file, and successively by virtual piece Section is sent to terminal.
Specifically, terminal first accesses the corresponding index file of media file for needing program request of program request instruction instruction, successively Obtain index entry and parse index entry, then the server identification in index entry finds corresponding streaming media server, Corresponding media file is found in streaming media server according to the file identification of media file, according to the feature of virtual clip Parameter determines the virtual clip in media file, finally by the data sending in the virtual clip to terminal.
An embodiment of the present invention provides a kind of method for making streaming media server support HLS protocol, is making media file Index file outside, the virtual clip searched according to index file in media file is additionally provided, and successively by virtual clip Send to terminal, index file so can be used by program request instruction, streaming media server is supported HLS protocol.Together When due to the storage of index file needs compared with the segmental file after media file is split in the prior art it is empty Between greatly reduce, so the memory space of the less server taken.
As shown in figure 5, it is a kind of functional schematic of streaming media server provided in an embodiment of the present invention.With reference to figure 5 Shown, which includes:Acquiring unit 501 and processing unit 502.
Acquiring unit 501, the matchmaker stored in the server identification and streaming media server for obtaining streaming media server The file identification and characteristic parameter of body file.
Wherein, the characteristic parameter of media file includes at least:The file size of media file, media file file when It is long.
The identification information of streaming media server includes:The host number and port numbers of streaming media server.
Acquiring unit 501, is additionally operable to obtain fragment segmentation duration and fragment segmentation size.
Further, acquiring unit 501, determine specifically for the characteristic parameter according to media file and fragment segmentation duration Fragment splits size.
Processing unit 502, determines for the characteristic parameter according to media file, fragment segmentation duration, fragment segmentation size The characteristic parameter of each virtual clip in media file, and according to the server identification of streaming media server, the text of media file Part identifies and the index entry in the characteristic parameter of each virtual clip construction index file.
Wherein, the characteristic parameter of virtual clip is used to uniquely determine out virtual clip in media file.
Specifically, the characteristic parameter of each virtual clip includes:Clip durations, initial position and the knot of each virtual clip Beam position.
Processing unit 502, specifically for the initial position of initialization of virtual fragment, and judges whether virtual clip is matchmaker Last virtual clip in body file;
In the case of last virtual clip during virtual clip is not media file, processing unit 502 is specifically used The end position of virtual clip is determined in the initial position according to virtual clip and fragment segmentation size, fragment segmentation duration is true It is set to the clip durations of virtual clip, according to the server identification of streaming media server, the file identification of media file and virtual The corresponding index entry of virtual clip in the characteristic parameter construction index file of fragment, and the initial position of virtual clip is updated, jump Go to and judge whether virtual clip is last virtual clip in media file;
In the case of last virtual clip during virtual clip is media file, processing unit 502 is specifically used for The end position of virtual clip is determined according to the file size of media file, according to the characteristic parameter and virtual clip of media file Initial position determine the clip durations of virtual clip, according to the server identification of streaming media server, the file of media file Identify index entry corresponding with virtual clip in the characteristic parameter of virtual clip construction index file.
Further, processing unit 502, are additionally operable to initialize remaining playing duration according to the file duration of media file.
Correspondingly, processing unit 502, during specifically for judging whether remaining playing duration is less than or equal to fragment segmentation It is long;
Virtual clip is not that last virtual clip in media file includes:If remaining playing duration is more than fragment point Duration is cut, then it is not last virtual clip in media file to judge virtual clip;
Virtual clip is that last virtual clip in media file includes:If remaining playing duration is less than or equal to piece Section segmentation duration, then it is last virtual clip in media file to judge virtual clip;
Processing unit 502, is additionally operable to renewal played file residual time length.
Further, acquiring unit 501, are additionally operable to obtain initial time and the end time of played file;
Wherein, played file is part or all of in media file.
Correspondingly, processing unit 502, be additionally operable to according to the characteristic parameter of media file and the initial time of played file and End time determines initial position and the end position of played file.
Processing unit 502, specifically for the characteristic parameter according to media file, the initial time of played file and at the end of Between, fragment segmentation duration, fragment segmentation size, played file initial position and end position determine each void in media file Intend the characteristic parameter of fragment, and according to the server identification of streaming media server, the file identification of media file and each virtual The index entry of the index file of played file in the characteristic parameter construction media file of fragment.
On the basis of Fig. 5, further, as shown in fig. 6, the streaming media server further includes:Transmitting element 503.
Correspondingly, acquiring unit 501, is additionally operable to obtain the program request instruction of terminal.
Wherein, program request instruction is used in program request streaming media server the media file stored.
Processing unit 502, is additionally operable to be instructed according to program request, and virtual clip is searched from media file using index file.
Transmitting element 503, for successively sending virtual clip to terminal.
An embodiment of the present invention provides a kind of streaming media server, obtains the server identification of streaming media server and flows matchmaker The file identification and characteristic parameter of the media file stored in body server, obtain initial time and the end time of played file And initial position and the end position of played file are calculated, then obtain fragment segmentation duration and fragment segmentation size;According to The characteristic parameter of media file, the initial time of played file and end time, fragment segmentation duration, fragment are split size, are broadcast Put the initial position of file and end position determines the characteristic parameter of each virtual clip in media file, and taken according to Streaming Media It is engaged in playing in the characteristic parameter construction media file of the server identification of device, the file identification of media file and each virtual clip The index entry of the index file of file.By by the played file in media file it is virtual be divided into virtual clip, Ran Hou The index entry of each virtual clip is constructed in index file, so that the played file in streaming media server in media file There is corresponding index file, only need just be got respectively in each virtual clip according to index file in program request Hold so that streaming media server can support HLS protocol, simultaneously because index file is relative in the prior art by media file Segmental file after being split greatly reduces compared to the memory space for needs, so the storage sky of the less server taken Between.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Division, is only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit Close or communicate to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical location, you can with positioned at a place, or can also be distributed to multiple In network unit.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That the independent physics of unit includes, can also two or more units integrate in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in one and computer-readable deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server, or network equipment etc.) performs the portion of each embodiment the method for the present invention Step by step.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc. are various to store The medium of program code.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:It still may be used To modify to the technical solution described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical solution spirit and Scope.

Claims (8)

  1. A kind of 1. method for making streaming media server support hypertext live TV stream HLS protocol, it is characterised in that including:
    The file identification of the media file stored in the server identification and the streaming media server of acquisition streaming media server And characteristic parameter;The characteristic parameter of the media file includes at least:The file size of the media file, the media file File duration;
    Obtain fragment segmentation duration and fragment segmentation size;
    The media are determined according to the characteristic parameter of the media file, fragment segmentation duration, fragment segmentation size The characteristic parameter of each virtual clip in file, and according to the server identification of the streaming media server, the media file File identification and each virtual clip characteristic parameter construction index file in index entry;The spy of the virtual clip Sign parameter is used to uniquely determine out the virtual clip in the media file;
    Wherein, the characteristic parameter of the virtual clip includes:Clip durations, initial position and the stop bits of the virtual clip Put;
    Described in the characteristic parameter, fragment segmentation duration, fragment segmentation size according to the media file determines The characteristic parameter of each virtual clip in media file, and according to the server identification of the streaming media server, the media The file identification of file and the characteristic parameter of each virtual clip construct the index entry in the index file, specific bag Include:
    The initial position of initialization of virtual fragment;
    Judge whether the virtual clip is last virtual clip in the media file;
    If the virtual clip is not last virtual clip in the media file, according to rising for the virtual clip Beginning position and fragment segmentation size determine the end position of the virtual clip, fragment segmentation duration is determined as institute The clip durations of virtual clip are stated, according to the server identification of the streaming media server, the file identification of the media file The corresponding index entry of virtual clip described in the index file is constructed with the characteristic parameter of the virtual clip, and described in updating The initial position of virtual clip, jump to it is described judge the virtual clip whether be in the media file last is empty Intend fragment;
    If the virtual clip is last virtual clip in the media file, according to the file of the media file Size determines the end position of the virtual clip, according to the starting of the characteristic parameter of the media file and the virtual clip The clip durations of virtual clip described in location determination, according to the server identification of the streaming media server, the media file File identification and the characteristic parameter of the virtual clip construct the corresponding index entry of virtual clip described in the index file.
  2. 2. according to the method described in claim 1, it is characterized in that, judge whether the virtual clip is the media described Before last virtual clip in file, further include:
    Remaining playing duration is initialized according to the file duration of the media file;
    It is described to judge whether the virtual clip is that last virtual clip in the media file includes:Judge described surplus Whether remaining playing duration is less than or equal to fragment segmentation duration;
    The virtual clip is not that last virtual clip in the media file includes:If the residue playing duration is big Split duration in the fragment, then it is not last virtual clip in the media file to judge the virtual clip;
    The virtual clip is that last virtual clip in the media file includes:If the residue playing duration is less than Or split duration equal to the fragment, then it is last virtual clip in the media file to judge the virtual clip;
    At the initial position of the renewal virtual clip, further include:Update the remaining playing duration.
  3. 3. according to the method described in claim 1, it is characterized in that, in the characteristic parameter according to the media file, institute State fragment segmentation duration, the fragment splits the characteristic parameter that size determines each virtual clip in the media file, and root According to the feature of the server identification of the streaming media server, the file identification of the media file and each virtual clip After index entry in parametric configuration index file, further include:
    Obtain the program request instruction of terminal;The program request instruction is used in streaming media server described in program request the media text stored Part;
    Instructed according to the program request, virtual clip is searched from the media file using the index file, and successively by institute Virtual clip is stated to send to the terminal.
  4. 4. according to the method described in claim 1, it is characterized in that, in the characteristic parameter according to the media file, institute State fragment segmentation duration, the fragment splits the characteristic parameter that size determines each virtual clip in the media file, and root According to the feature of the server identification of the streaming media server, the file identification of the media file and each virtual clip Before index entry in parametric configuration index file, further include:
    Obtain initial time and the end time of played file;The played file is the part or complete in the media file Portion;
    The played file is determined according to the initial time and end time of the characteristic parameter of the media file and played file Initial position and end position;
    Described in the characteristic parameter, fragment segmentation duration, fragment segmentation size according to the media file determines The characteristic parameter of each virtual clip in media file, and according to the server identification of the streaming media server, the media The index entry of the file identification of file and the characteristic parameter of each virtual clip construction index file includes:
    Split according to the characteristic parameter of the media file, the initial time of the played file and end time, the fragment Duration, fragment segmentation size, the initial position of the played file and end position determine each in the media file The characteristic parameter of virtual clip, and according to the server identification of the streaming media server, the file identification of the media file The index entry of the index file of played file described in the media file is constructed with the characteristic parameter of each virtual clip.
  5. 5. according to the method described in claim 1, it is characterized in that, the acquisition fragment segmentation size includes:
    The fragment segmentation size is determined according to the characteristic parameter of the media file and fragment segmentation duration.
  6. 6. according to the method described in claim 1, it is characterized in that,
    The identification information of the streaming media server includes:The host number and port numbers of the streaming media server.
  7. A kind of 7. streaming media server, it is characterised in that including:
    Acquiring unit, for obtain streaming media server server identification and the streaming media server in store media text The file identification and characteristic parameter of part;The characteristic parameter of the media file includes at least:The file size of the media file, The file duration of the media file;
    The acquiring unit, is additionally operable to obtain fragment segmentation duration and fragment segmentation size;
    Processing unit, for the characteristic parameter according to the media file, fragment segmentation duration, fragment segmentation size Determine the characteristic parameter of each virtual clip in the media file, and according to the server identification of the streaming media server, Index entry in the file identification of the media file and the characteristic parameter of each virtual clip construction index file;It is described The characteristic parameter of virtual clip is used to uniquely determine out the virtual clip in the media file;
    Wherein, the characteristic parameter of the virtual clip includes:Clip durations, initial position and the stop bits of the virtual clip Put;
    The processing unit, specifically for the initial position of initialization of virtual fragment, and judge the virtual clip whether be Last virtual clip in the media file;
    In the case of last virtual clip during the virtual clip is not the media file, the processing unit tool Body is used for the end position that the virtual clip is determined according to the initial position of the virtual clip and fragment segmentation size, Fragment segmentation duration is determined as to the clip durations of the virtual clip, according to the server mark of the streaming media server The characteristic parameter of knowledge, the file identification of the media file and the virtual clip constructs virtual piece described in the index file The corresponding index entry of section, and update the initial position of the virtual clip, jump to it is described judge the virtual clip whether be Last virtual clip in the media file;
    In the case of last virtual clip during the virtual clip is the media file, the processing unit is specific For determining the end position of the virtual clip according to the file size of the media file, according to the spy of the media file The initial position of sign parameter and the virtual clip determines the clip durations of the virtual clip, according to the streaming media server Server identification, the file identification of the media file and the characteristic parameter of the virtual clip construct in the index file The corresponding index entry of the virtual clip.
  8. 8. streaming media server according to claim 7, it is characterised in that
    The processing unit, is additionally operable to initialize remaining playing duration according to the file duration of the media file;
    The processing unit, specifically for judging whether the remaining playing duration is less than or equal to fragment segmentation duration;
    The virtual clip is not that last virtual clip in the media file includes:If the residue playing duration is big Split duration in the fragment, then it is not last virtual clip in the media file to judge the virtual clip;
    The virtual clip is that last virtual clip in the media file includes:If the residue playing duration is less than Or split duration equal to the fragment, then it is last virtual clip in the media file to judge the virtual clip;
    The processing unit, is additionally operable to update the remaining playing duration.
CN201510051752.5A 2015-01-30 2015-01-30 A kind of method and device for making streaming media server support HLS protocol Active CN104602138B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510051752.5A CN104602138B (en) 2015-01-30 2015-01-30 A kind of method and device for making streaming media server support HLS protocol
CN201810119061.8A CN108124202B (en) 2015-01-30 2015-01-30 Method for making stream media server support H L S protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510051752.5A CN104602138B (en) 2015-01-30 2015-01-30 A kind of method and device for making streaming media server support HLS protocol

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201810119061.8A Division CN108124202B (en) 2015-01-30 2015-01-30 Method for making stream media server support H L S protocol

Publications (2)

Publication Number Publication Date
CN104602138A CN104602138A (en) 2015-05-06
CN104602138B true CN104602138B (en) 2018-05-08

Family

ID=53127571

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201510051752.5A Active CN104602138B (en) 2015-01-30 2015-01-30 A kind of method and device for making streaming media server support HLS protocol
CN201810119061.8A Active CN108124202B (en) 2015-01-30 2015-01-30 Method for making stream media server support H L S protocol

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201810119061.8A Active CN108124202B (en) 2015-01-30 2015-01-30 Method for making stream media server support H L S protocol

Country Status (1)

Country Link
CN (2) CN104602138B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883626A (en) * 2015-05-22 2015-09-02 深圳市九洲电器有限公司 Method and system for streaming media management
CN105302883B (en) * 2015-10-13 2018-12-21 深圳市乐唯科技开发有限公司 A kind of management method and system of time-based media file
CN106658230A (en) * 2015-10-29 2017-05-10 北京国双科技有限公司 Method and device for dividing video time length
CN106658229A (en) * 2015-10-29 2017-05-10 北京国双科技有限公司 Video duration time dividing method and video duration time dividing device
CN107277081A (en) * 2016-04-06 2017-10-20 北京优朋普乐科技有限公司 Section method for down loading and device, the stream media system of stream medium data
CN105872598A (en) * 2016-04-25 2016-08-17 乐视控股(北京)有限公司 Multimedia live method and device
CN107613321A (en) * 2016-07-12 2018-01-19 北京数码视讯科技股份有限公司 A kind of method of program recording and device
CN106488259B (en) * 2016-10-25 2019-09-06 上海网达软件股份有限公司 A kind of joining method and system of HLS Streaming Media fragment
CN106973080A (en) * 2017-02-20 2017-07-21 绿网天下(福建)网络科技股份有限公司 A kind of big document distribution method of LAN and system
CN107370726B (en) * 2017-06-22 2021-05-04 上海网达软件股份有限公司 Virtual slicing method and system for distributed media file transcoding system
CN111866549B (en) 2019-04-29 2023-03-24 腾讯科技(深圳)有限公司 Video processing method and device, terminal and storage medium
CN110740342B (en) * 2019-09-06 2022-02-18 浙江大华技术股份有限公司 Storage medium, streaming media transmission and playing method, and slicing method and device
CN112256634B (en) * 2020-10-14 2024-03-26 杭州当虹科技股份有限公司 Http-based low-memory large file analysis method
CN113806316B (en) * 2021-09-15 2022-06-21 星环众志科技(北京)有限公司 File synchronization method, equipment and storage medium
CN117336311B (en) * 2023-11-30 2024-03-12 深圳市小溪流科技有限公司 Method and device for keeping consistency of multiple HLS server slices

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420452A (en) * 2008-12-05 2009-04-29 深圳市迅雷网络技术有限公司 Video file publishing method and device
CN102088620A (en) * 2010-12-01 2011-06-08 中兴通讯股份有限公司 Method for downloading media file in content distribution network and client

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7738561B2 (en) * 2004-11-16 2010-06-15 Industrial Technology Research Institute MPEG-4 streaming system with adaptive error concealment
CN101227590B (en) * 2007-01-19 2013-03-06 北京风行在线技术有限公司 P2P protocol-based media file order program control method and apparatus
US8667164B2 (en) * 2010-04-26 2014-03-04 Samsung Electronics Co., Ltd. Method and apparatus for playing live content
CN102801690B (en) * 2011-05-25 2015-09-30 华为技术有限公司 The processing method of Streaming Media, Distributor, client and system
KR101313592B1 (en) * 2012-04-13 2013-10-01 애니포인트 미디어 그룹 Computing device and method for streaming
CN103354618B (en) * 2013-06-24 2015-04-15 西安交通大学 HLS-based multi-scenario streaming media adaptive live broadcast method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420452A (en) * 2008-12-05 2009-04-29 深圳市迅雷网络技术有限公司 Video file publishing method and device
CN102088620A (en) * 2010-12-01 2011-06-08 中兴通讯股份有限公司 Method for downloading media file in content distribution network and client

Also Published As

Publication number Publication date
CN104602138A (en) 2015-05-06
CN108124202A (en) 2018-06-05
CN108124202B (en) 2020-07-21

Similar Documents

Publication Publication Date Title
CN104602138B (en) A kind of method and device for making streaming media server support HLS protocol
US8595330B2 (en) Method, system and apparatus for uploading and downloading a caption file
KR101120796B1 (en) Session description message extensions
TW507445B (en) Partitioning of file for emulating streaming
US8943215B2 (en) Distributed smooth streaming utilizing dynamic manifests
CN106162062B (en) Obtain the method and system of monitor video
CN107483627A (en) A kind of file distributing, method for down loading, Distributor, client and system
US20110246660A1 (en) Systems, Methods, and Apparatuses for Media File Streaming
KR101743228B1 (en) Streaming apparatus and method thereof, streaming service system using the streaming apparatus and computer readable recording medium
CN104144097A (en) Voice message transmission system, sending end, receiving end and voice message transmission method
CN110267117B (en) Streaming media data processing method and streaming media processing server
WO2014149371A2 (en) Advertising download verification
CN109814913A (en) Method and device for splitting, recombining and operating application package
US8880108B2 (en) Short message processing method and apparatus
CN105279217B (en) Reconfigurable content objects
CN105100291A (en) Resource address generating method, device and system
US11490171B2 (en) Early termination of content
CN108650265B (en) File downloading method and device, storage medium and electronic terminal
CN105049926B (en) A kind of method and terminal, playback equipment collected, play multi-media segment
CN112202739B (en) Flow monitoring method and device
CN110519656B (en) Self-adaptive streaming media playing method, system and server
CN106612309B (en) The update method of configuration file, apparatus and system
JP5231627B2 (en) Method for identifying supplement data relating to at least one content, method for transmitting supplement data, related processing device and application server
CN110838924B (en) Block transmission method and device
JP2011519443A5 (en)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: QINGDAO HISENSE MEDIA NETWORKS CO., LTD.

Free format text: FORMER OWNER: QINGDAO HISENSE ELECTRIC CO., LTD.

Effective date: 20150507

C10 Entry into substantive examination
C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 266100 QINGDAO, SHANDONG PROVINCE TO: 266071 QINGDAO, SHANDONG PROVINCE

SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20150507

Address after: 266071 Laoshan, Qingdao province Hongkong District No. East Road, room 248, room 131

Applicant after: Qingdao Hisense Media Networks Co., Ltd.

Address before: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Applicant before: Qingdao Hisense Electric Co., Ltd.

GR01 Patent grant
GR01 Patent grant