CN105992016A - HLS on-line transcoding method and system - Google Patents

HLS on-line transcoding method and system Download PDF

Info

Publication number
CN105992016A
CN105992016A CN201510060659.0A CN201510060659A CN105992016A CN 105992016 A CN105992016 A CN 105992016A CN 201510060659 A CN201510060659 A CN 201510060659A CN 105992016 A CN105992016 A CN 105992016A
Authority
CN
China
Prior art keywords
file
rate
low bit
hls
flow data
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
CN201510060659.0A
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.)
TVM Beijing Technology Co Ltd
Original Assignee
TVM Beijing 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 TVM Beijing Technology Co Ltd filed Critical TVM Beijing Technology Co Ltd
Priority to CN201510060659.0A priority Critical patent/CN105992016A/en
Publication of CN105992016A publication Critical patent/CN105992016A/en
Pending legal-status Critical Current

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses an HLS (HTTP Live Streaming) on-line transcoding method and system. The HLS on-line transcoding method comprises the steps: according to the preset configuration, downloading a high code rate HLS audio and video stream and acquiring a corresponding M3U8 file; according to the M3U8 file, decoding the high code rate HLS audio and video stream to obtain the corresponding TS (Transport Stream) data; re-encapsulating the TS data into low code rate TS data and generating a corresponding low code rate M3U8 file; and according to the user requirement, returning the low code rate M3U8 file and the corresponding low code rate TS data. The scheme of the HLS on-line transcoding method and system can realize conversion of 2.5M high code rate HLS live streaming and output HLS live streaming with 3-channel of low code rates (150kbps, 300kbps and 450kbps), so that the user experience degree is greatly improved.

Description

A kind of online code-transferring method of HLS and system
Technical field
The present invention relates to Internet technical field, particularly to a kind of online code-transferring method of HLS and system.
Background technology
HLS (HTTP Live Streaming) is the dynamic code rate adaptive technique of Apple (Fructus Mali pumilae) company.It is mainly used in the audio frequency and video service of PC (PC) and Apple terminal.String file is encrypted including the index file of a M3U8, TS media slicing file and ke.
Conventional stream media protocol mainly has HTTP progressive download and a real-time stream media protocol based on RTSP/RTP, and these two kinds are substantially diverse thing, the most more convenient the most handy be by HTTP progressive download method.Representative in terms of the HTTP Live Streaming of Apple company is this in this.It is initially the stream that Apple develops for mobile devices such as iPhone, iPod, iTouch and iPad. seeing now also to have at desktop and much apply, HTML5 is directly to support this.
But the little slicing mode of HLS protocol can generate substantial amounts of file, store or process these files and ample resources can be caused to waste.If the time shift of a couple of days to be realized, index amount would is that a huge numeral, and significantly affects request speed.Therefore, storage I/O is required quite harsh by HLS protocol.To this, Ye You company proposes extraordinary solution.Novel hand sowing server system, has created the real-time microtomy of memory cache data, has overturned this traditional implementation, fundamentally solves the fragment problems of a large amount of section so that the section of single server and packing ability are no longer bottlenecks.Its ultimate principle is as follows:
File of not cut into slices by TS is stored to disk, but existing in the middle of internal memory, this technology makes no longer to have above the disk of server the file fragmentation of " tons of ", greatly reduces I/O number of disk, extend the service life of server disk, greatly improve the stability that server runs.Simultaneously as use this technology so that directly obtain from the internal memory of server during terminal request data, greatly improve the response speed to terminal data request, optimize video viewing experience.
The data bits that when video code rate is exactly data transmission, the unit interval transmits, typically our unit is that kbps i.e. kilobit is per second.More popular understanding is exactly sampling rate, in unit interval, sampling rate is the biggest, precision is the highest, the file dealt is just closer to original document, but file size is directly proportional to sampling rate, so what almost all of coded format paid attention to is all how to reach minimum distortion with minimum code check, the cbr (cbr (constant bit rate)) being derived around this core and vbr (variable bit rate), it it is all the article done in this respect, but thing is not the most absolute, from the point of view of Ju Li, for an audio frequency, its code check is the highest, the ratio compressed is the least, tonequality loss is the least, with the tonequality of source of sound closer to.
Current audiovisual applications must be in the face of various different client end of playing back, from the beginning of PC end (Web), to smart mobile phone.These client end of playing back have different sizes, so that different video resolutions.Different clients also has in different network environments, such as PC and is usually constructed with WiFi or cable network, has higher Bandwidth guaranteed, and mobile phone, panel computer are when outdoor, uses 2G/3G network, and often bandwidth is not enough, or unstable.So that use different code checks for different network environments.
In prior art, conventional HLS live TV stream is all 512k, and the high code check live TV stream of 800k, 1.5M, 2.5M is poor for network condition, wants to meet requirement for comparing the HLS live TV stream of low bit-rate.Thus, need badly and want a kind of and new can meet user's scheme to different demand bit rates, to improve user experience.
Summary of the invention
The present invention provides a kind of online code-transferring method of HLS and system, in order to solve the problem that cannot support user in prior art to different demand bit rates.
The present invention provides a kind of online code-transferring method of HLS, including:
According to being pre-configured with the high code check HLS audio/video flow of download and obtaining corresponding M3U8 file;
Corresponding TS flow data is obtained according to code check HLS audio/video flow high described in described M3U8 file decoding;
Described TS flow data Reseal is become the TS flow data of low bit-rate and generates corresponding low bit-rate M3U8 file;
Described low bit-rate M3U8 file and the TS flow data of corresponding low bit-rate is returned according to user's request.
Described method also includes:
The high code check HLS audio/video flow downloaded according to corresponding M3U8 file acquisition corresponding TS file and is spliced into corresponding TS stream;
Corresponding TS flow data is obtained according to described TS stream decoding.
Described method also includes:
Described TS flow data is become according to X264 encoder Reseal the TS flow data of low bit-rate.
Described method also includes:
Described TS flow data is recompiled h264 and the aac data into low bit-rate;
Described h264 and aac data are re-packaged into the TS flow data of low bit-rate.
Described method also includes:
Described low bit-rate M3U8 file is dynamically generated according to php.
Described method also includes:
The TS flow data being issued described low bit-rate by Nginx is HLS live TV stream.
A kind of online trans-coding system of HLS, including:
Download unit, for according to being pre-configured with the high code check HLS audio/video flow of download and obtaining corresponding M3U8 file;
Decoding unit, for obtaining corresponding TS flow data according to code check HLS audio/video flow high described in described M3U8 file decoding;
Encapsulation unit, for becoming the TS flow data of low bit-rate and generating corresponding low bit-rate M3U8 file by described TS flow data Reseal;
Release unit, for returning described low bit-rate M3U8 file and the TS flow data of corresponding low bit-rate according to user's request.
Described system also includes:
Concatenation unit, for according to corresponding M3U8 file acquisition corresponding TS file and being spliced into corresponding TS stream by the high code check HLS audio/video flow downloaded;
Described decoding unit obtains corresponding TS flow data according to described TS stream decoding.
Described system also includes:
Coding unit, for recompiling h264 and the aac data into low bit-rate by described TS flow data;
Described h264 and aac data are re-packaged into the TS flow data of low bit-rate by described encapsulation unit.
Described system also includes:
M3U8 kinematics generation module, for dynamically generating described low bit-rate M3U8 file according to php.
The embodiment of the present invention is according to being pre-configured with the high code check HLS audio/video flow of download and obtaining corresponding M3U8 file;Corresponding TS flow data is obtained according to code check HLS audio/video flow high described in described M3U8 file decoding;Described TS flow data Reseal is become the TS flow data of low bit-rate and generates corresponding low bit-rate M3U8 file;Described low bit-rate M3U8 file and the TS flow data of corresponding low bit-rate is returned according to user's request.The scheme of the embodiment of the present invention, it is possible to realize the HLS by live for 2.5M height code check HLS conversion output 3 road low bit-rate (150kbps, 300kbps, 450kbps) live, greatly improve user experience.
Other features and advantages of the present invention will illustrate in the following description, and, partly become apparent from description, or understand by implementing the present invention.The purpose of the present invention and other advantages can be realized by structure specifically noted in the description write, claims and accompanying drawing and be obtained.
Below by drawings and Examples, technical scheme is described in further detail.
Accompanying drawing explanation
Accompanying drawing is for providing a further understanding of the present invention, and constitutes a part for description, is used for together with embodiments of the present invention explaining the present invention, is not intended that limitation of the present invention.In the accompanying drawings:
A kind of HLS online code-transferring method principle flow chart that Fig. 1 provides for the embodiment of the present invention 1;
A kind of HLS online trans-coding system structural representation that Fig. 2 provides for the embodiment of the present invention 3.
Detailed description of the invention
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are illustrated, it will be appreciated that preferred embodiment described herein is merely to illustrate and explains the present invention, is not intended to limit the present invention.
As it is shown in figure 1, a kind of HLS online code-transferring method principle flow chart provided for the embodiment of the present invention 1, wherein,
Step 11, according to being pre-configured with the high code check HLS audio/video flow of download and obtaining corresponding M3U8 file.
In the present embodiment, it is necessary first to obtain the HLS audio/video flow of high code check.Here for the acquisition of HLS stream, can carry out according to download policy set in advance, it is also possible to carry out according to the address that user specifies.For example, it is possible to pre-configured download policy, after strategy comes into force, carry out concrete download according to this download policy.
Generally, HLS is the dynamic code rate adaptive technique of Apple.It is mainly used in the audio frequency and video service of PC and Apple terminal.String file is encrypted including the index file of a M3U8, TS media slicing file and ke.M3U8 is also a kind of M3U, and simply its coded format is UTF-8 form.M3U Latin-1 character set encoding.M3U is the directory information of song, when downloading the audio frequency of FLAC lossless format, and can be with a M3U catalogue file.
The partition strategy of HLS, substantially recommending is 10 seconds bursts, certainly, the concrete time also to mark as a rule according to the actual duration of the burst after dividing well, reason for aspects such as cachings, indexed file can retain up-to-date three burst address, with the form of similar " sliding window ", be updated.M3U8, is index file live for HTTP Live Streaming.M3U8 is substantially it is believed that be exactly .m3u formatted file, and difference is, M3U8 file uses UTF-8 character code.
Such as, shown in specific as follows:
Thus, obtain corresponding M3U8 file, just obtain the index of HLS audio/video flow, can decode HLS audio/video flow file accordingly is TS file.
Step 12, obtains corresponding TS flow data according to M3U8 file decoding height code check HLS audio/video flow.
The high code check HLS audio/video flow downloaded according to corresponding M3U8 file acquisition corresponding TS file and is spliced into corresponding TS stream;Corresponding TS flow data is obtained according to TS stream decoding.
TS flow data is become according to X264 encoder Reseal the TS flow data of low bit-rate.
M3U8 download module can download the M3U8 live TV stream of 2.5M code check according to configuration file, gives TS concatenation module the M3U8 live TV stream downloaded and is combined into TS live TV stream with being stored in shared drive.TS decompression module can take out TS live TV stream data from shared drive and decompress, and solves video data and voice data.
M3U8 file can be distributed by the mode of http on IOS device and mac, and wherein playlist standard is the M3U8 file expanded by m3u, and media file is MPEG2-TS or AAC file (audio only).
M3U8 file has two kinds of application scenarios:
1, multi code Rate of Chinese character adaptation stream.
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=1280000
http://example.com/low.M3U8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=2560000
http://example.com/mid.M3U8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=7680000
http://example.com/hi.M3U8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=65000, CODECS=" mp4a.40.5 "
http://example.com/audio-only.M3U8
2, single rate adaption stream.
#EXTM3U
#EXT-X-TARGETDURATION:5220
#EXTINF:5220,
http://media.example.com/entire.ts
#EXT-X-ENDLIST
This definition is by International Standards Organization:
rfc doc:http://tools.ietf.org/html/draft-pantos-http-live-streaming-06
M3U8 file is the extension of m3u file.At the keyword of extension defined in this rfc, wherein:
#EXT-X-TARGETDURATION
Define the maximum duration of each TS.
#EXT-X-MEDIA-SEQUENCE
Defining the serial number of first file in current M3U8 file, each ts file has fixing unique serial number in M3U8 file, and this serial number aligns for the switching code rate when MBR.
#EXT-X-KEY
Definition cipher mode and the url of key file, for obtaining the key file decoding ts file of 16bytes.
Attribute:
METHOD
URL
#EXT-X-PROGRAM-DATE-TIME
The absolute time of first file
#EXT-X-ALLOW-CACHE
Whether allow cache.
#EXT-X-ENDLIST
Show the end of M3U8 file.Live M3U8 not this tag.
#EXT-X-STREAM-INF
Attribute:
BANDWIDTH specifies code check
The unique ID of PROGRAM-ID
CODECS specifies the type of coding of stream
#EXT-X-DISCONTINUITY
When running into this tag when, explanation there occurs change with properties:
file format
number and type of tracks
encoding parameters
encoding sequence
timestamp sequence
This attribute of #EXT-X-VERSION use and disuse can, can not have.
M3U8 divides top M3U8 and two grades of M3U8, top M3U8 mainly to do multi code Rate of Chinese character adaptation, and two grades of M3U8 are only real section file, and first client acquiescence can select the request that code check is the highest, if it find that code check does not reaches, can ask the stream of suburb low bit-rate.
One actually used in top M3U8 file as follows:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=201273221265, BANDWIDTH=358400
11.M3U8
#EXT-X-STREAM-INF:PROGRAM-ID=201273221265, BANDWIDTH=972800
22.M3U8
Defining again two second grade files of 11.M3U8 and 22.M3U8 in the most top M3U8 file, client can select one of them to obtain its content.
Two grades of M3U8 file contents are as follows:
#EXTM3U
#EXT-X-VERSION:1
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:3,
1-4.ts
#EXTINF:8,
1-6.ts
#EXTINF:8,
1-8.ts
#EXTINF:8,
1-10.ts
#EXTINF:8,
1-12.ts
#EXTINF:8,
1-14.ts
#EXTINF:8,
1-16.ts
#EXTINF:9,
1-18.ts
#EXTINF:6,
1-20.ts
#EXTINF:8,
1-22.ts
#EXTINF:9,
1-24.ts
#EXTINF:3,
1-26.ts
#EXT-X-ENDLIST
After client takes two grades of M3U8 files above, may proceed to the file inside request, the most just can play out.
The above is the situation of program request, live situation, has attribute and tell it is live inside M3U8 file, and client can the next M3U8 file that please look for novelty of timing.
Step 13, becomes TS flow data Reseal the TS flow data of low bit-rate and generates corresponding low bit-rate M3U8 file.
As it has been described above, M3U8 file is an index file, can obtain, according to M3U8 file, the TS fragment file that this audio-video document is corresponding.TS is the storage format of stream, and wherein, each audio-video document is divided into several TS fragment files.Each TS fragment file correspond to a bit of content of this audio-video document.
TS flow data is recompiled h264 and the aac data into low bit-rate;H264 and aac data are re-packaged into the TS flow data of low bit-rate.Low bit-rate M3U8 file is dynamically generated according to php.
TS: full name is MPEG2-TS.The TS i.e. abbreviation of " Transport Stream ".It is that subpackage sends, and each wraps a length of 188 bytes (the also bag of 192 and 204 bytes).The structure of bag is, packet header is 4 bytes (first character joint is 0x47), and load is 184 bytes.The most eurypalynous data can be inserted, such as video, audio frequency, self-defined information etc. in TS flows.MPEG2-TS is mainly used in the program of transmission in real time, the TV programme of such as real-time broadcast.The feature of MPEG2-TS form requires that the arbitrary fragment from video flowing starts to be all independently to decode.Briefly, one section of cut before the vob file on DVD is fallen (or corrupted data data) and may result in whole file and cannot decode, and TV programme are whenever to turn on television set to decode (watching).
One section of TS stream, it is necessary to comprise PAT bag, PMT bag, multiple audio pack, multiple video bag, multiple PCR bag and other information bags.Resolve the flow process of TS flow data: searching PID is the bag of 0x0, resolves the PID that the program_map_PID in PAT, PAT bag represents PMT;Elementary_PID in lookup PMT, PMT bag represents the PID that the PCR_PID in PID, the PMT bag of audio frequency and video bag represents PCR, sometimes the PID of PCR with the PID of audio frequency or video identical, illustrating that PCR can circulate the bag of audio frequency and video, note resolving, PCR is that oneself individually wraps sometimes;The PID of CAT, NIT, SDT, EIT is respectively as follows: 0x01,0x10,0x11,0x12.
Ts Piece file mergence generally has following manner, and this is not limited by the present embodiment.
1, dos command combination and segmentation.
The first step: first, arrange our segmentation shelves, we are as a example by TS form: segmentation shelves RNTO in order: 1.ts, (N simply represents a number for 2.ts, 3.ts ... N.ts, there is no Special Significance, have several segmentation shelves just the rest may be inferred~), needing the segmentation shelves integrated, unification is put under a catalogue.
Second step: under this catalogue, a newly-built text document, it is simply that the file of the entitled txt of suffix.Open, input: copy/b 1.ts+2.ts+3.ts.....+N.ts xxx.ts.
Having a space between copy and/b, have a space between/b and 1.ts, have a space between N.ts and xxx.ts, remaining all do not have space, [+] be plus sige, [xxx.ts] be merge after the filename of file.So, it is also possible to it is entered as the filename to store.
3rd step: after input, stored text, filename is random, closes.By suffix name txt, changing to bat, this is exactly the batch-processed files of Windows.Double-click and run, can see that segmentation shelves can gradually merge into complete shelves.
Advantage: the software that HD video merges is a lot, but the most lossless merging software is little, in order to avoid this type of event occurs, utilizes DOS to carry out combination and segmentation shelves, and as long as resource is the segmentations of complete shelves, the most lossless after merging, a byte is all without loss.
2, opening tsmuxergui, first add xxxx.disk1.ts, then some append is sequentially added into xxxx.disk2.ts until all TS of whole append complete!
The HDTV spread in network mainly exists in the way of two class files, one class is to compress through Moving Picture Experts Group-2, video stream file with .tp and .ts as suffix, one class is the .wmv file crossed through WMV-HD (Windows Media Video High Definition) standard compression, also having minority file suffixes is .avi or .mpg, and its character and .wmv are duplicate.HDTV file is the biggest, even the .wmv file after recompiling is the most not insignificant.Calculating with the time span of a common film .wmv file will have more than 4G, and .tp and the .ts file of same time span can reach more than 8G, the even up to G more than 20 having.Therefore, except by file suffixes name, it is also possible to determine whether HDTV file by file size.How in PC, to play HDTV program?For .wmv file, as long as system is mounted with Windows Media Player 9 or more highest version, it is possible to normal play, the latest edition of some playout softwares has begun to support WMV-HD, such as WINDVD6 etc., it is also possible to directly use these software to play HDTV.Some HDTV file have employed the coded format of other standard in compression process, it is necessary to installs corresponding decoder, run into Windows Media Player 9 can not normal play time, ffdshow can be installed again, it is with various the most frequently used decoders.Play the video stream file with .tp and .ts as suffix somewhat to bother a bit, because file includes AC3 audio-frequency information and MPEG-2 video information respectively.The most now having the software playing .tp and .ts file the most specially to come out, Moonlight-Elecard MPEG Player is exactly the software that the most a relatively common support HDTV plays, and the most up-to-date version is 2.x.After installing, it is also possible to run other playout software and play out to the decoder calling Moonlight-Elecard MPEG Player.
The process resolving ts is through finding pat table, the id of the program of corresponding existence is found out from pat table, the pmt table of these programs is found according to these id, therefrom receive the relative media data id that these programs are total, then by these id, from ts file, find the es data of these files again, complete decoding or other operation.
In this step, give data coding module data.This coding module can call X264 encoder and weave into h264 and the aac data of 3 kinds of low bit-rate, and these data is put in chained list.TS package module can take out h264 and the aac data after encoding from chained list and be packaged into low bit-rate TS, intercepted a TS fragment file with 10 seconds and is stored in system disk.M3U8 file is dynamically generated with php.
Step 14, returns described low bit-rate M3U8 file and the TS flow data of corresponding low bit-rate according to user's request.
The TS flow data being issued described low bit-rate by Nginx is HLS live TV stream.When user asks these three live TV stream (150kbps, 300kbps, 450kbps), first nginx can receive user's request, can process user's request according to request interface php script, returns different M3U8 file according to the different parameters of user's request to user.
The online code-transferring method of a kind of HLS that the embodiment of the present invention 2 provides, wherein,
Step 21, M3U8 download module can be downloaded the M3U8 live TV stream of 2.5M code check according to configuration file, give TS concatenation module the M3U8 live TV stream downloaded and be combined into TS live TV stream with being stored in shared drive.
Step 22, TS decompression module can take out TS live TV stream data from shared drive and decompress, solve video data and voice data, give data coding module data.This coding module can call X264 encoder and weave into h264 and the aac data of 3 kinds of low bit-rate, and these data is put in chained list.
Step 23, TS package module can take out h264 and the aac data after encoding from chained list and be packaged into low bit-rate TS, intercepted a TS fragment file with 10 seconds and is stored in system disk.
Step 24, dynamically generates M3U8 file with php.
Step 25, user asks these three live TV stream (150kbps, 300kbps, time 450kbps), first nginx can receive user's request, can process user's request according to request interface php script, returns different M3U8 file according to the different parameters of user's request to user.
As in figure 2 it is shown, a kind of HLS online trans-coding system structural representation provided for the embodiment of the present invention 3, wherein,
Download unit 31, for according to being pre-configured with the high code check HLS audio/video flow of download and obtaining corresponding M3U8 file;
Decoding unit 32, for obtaining corresponding TS flow data according to M3U8 file decoding height code check HLS audio/video flow;
Encapsulation unit 33, for becoming the TS flow data of low bit-rate and generating corresponding low bit-rate M3U8 file by TS flow data Reseal;
Release unit 34, for returning low bit-rate M3U8 file and the TS flow data of corresponding low bit-rate according to user's request.
Particularly, said system also includes:
Concatenation unit 35, for according to corresponding M3U8 file acquisition corresponding TS file and being spliced into corresponding TS stream by the high code check HLS audio/video flow downloaded;
Decoding unit 32 obtains corresponding TS flow data according to TS stream decoding.
Particularly, said system also includes:
Coding unit 36, for recompiling h264 and the aac data into low bit-rate by TS flow data;
H264 and aac data are re-packaged into the TS flow data of low bit-rate by encapsulation unit 33.
Particularly, said system also includes:
M3U8 kinematics generation module 37, for dynamically generating low bit-rate M3U8 file according to php.
In sum, the embodiment of the present invention is according to being pre-configured with the high code check HLS audio/video flow of download and obtaining corresponding M3U8 file;Corresponding TS flow data is obtained according to code check HLS audio/video flow high described in described M3U8 file decoding;Described TS flow data Reseal is become the TS flow data of low bit-rate and generates corresponding low bit-rate M3U8 file;Described low bit-rate M3U8 file and the TS flow data of corresponding low bit-rate is returned according to user's request.The scheme of the embodiment of the present invention, it is possible to realize the HLS by live for 2.5M height code check HLS conversion output 3 road low bit-rate (150kbps, 300kbps, 450kbps) live, greatly improve user experience.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program.Therefore, the form of the embodiment in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware.And, the present invention can use the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory and optical memory etc.) wherein including computer usable program code.
The present invention is to describe with reference to method, equipment (system) and the flow chart of computer program according to embodiments of the present invention and/or block diagram.It should be understood that can be by the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces the manufacture including command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to perform sequence of operations step on computer or other programmable devices to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides the step of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame for realization.
Obviously, those skilled in the art can carry out various change and modification without departing from the spirit and scope of the present invention to the present invention.So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. the online code-transferring method of HLS, it is characterised in that including:
According to being pre-configured with the high code check HLS audio/video flow of download and obtaining corresponding M3U8 file;
Corresponding TS fluxion is obtained according to code check HLS audio/video flow high described in described M3U8 file decoding According to;
Described TS flow data Reseal is become the TS flow data of low bit-rate and generates corresponding low bit-rate M3U8 file;
Described low bit-rate M3U8 file and the TS flow data of corresponding low bit-rate is returned according to user's request.
2. the method for claim 1, it is characterised in that described method also includes:
By the high code check HLS audio/video flow of download according to corresponding M3U8 file acquisition corresponding TS file And it is spliced into corresponding TS stream;
Corresponding TS flow data is obtained according to described TS stream decoding.
3. the method for claim 1, it is characterised in that described method also includes:
Described TS flow data is become according to X264 encoder Reseal the TS flow data of low bit-rate.
4. the method as described in claim 1 or 3, it is characterised in that described method also includes:
Described TS flow data is recompiled h264 and the aac data into low bit-rate;
Described h264 and aac data are re-packaged into the TS flow data of low bit-rate.
5. the method for claim 1, it is characterised in that described method also includes:
Described low bit-rate M3U8 file is dynamically generated according to php.
6. the method for claim 1, it is characterised in that described method also includes:
The TS flow data being issued described low bit-rate by Nginx is HLS live TV stream.
7. the online trans-coding system of HLS, it is characterised in that including:
Download unit, for according to being pre-configured with the high code check HLS audio/video flow of download and obtaining corresponding M3U8 file;
Decoding unit, for obtaining according to code check HLS audio/video flow high described in described M3U8 file decoding Corresponding TS flow data;
Encapsulation unit, for becoming TS flow data the life of low bit-rate by described TS flow data Reseal Become corresponding low bit-rate M3U8 file;
Release unit, for returning described low bit-rate M3U8 file and corresponding low bit-rate according to user's request TS flow data.
8. system as claimed in claim 7, it is characterised in that described system also includes:
Concatenation unit, for obtaining the high code check HLS audio/video flow downloaded according to corresponding M3U8 file Take corresponding TS file and be spliced into corresponding TS stream;
Described decoding unit obtains corresponding TS flow data according to described TS stream decoding.
9. system as claimed in claim 7, it is characterised in that described system also includes:
Coding unit, for recompiling h264 and the aac data into low bit-rate by described TS flow data;
Described h264 and aac data are re-packaged into the TS flow data of low bit-rate by described encapsulation unit.
10. system as claimed in claim 7, it is characterised in that described system also includes:
M3U8 kinematics generation module, for dynamically generating described low bit-rate M3U8 file according to php.
CN201510060659.0A 2015-02-05 2015-02-05 HLS on-line transcoding method and system Pending CN105992016A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510060659.0A CN105992016A (en) 2015-02-05 2015-02-05 HLS on-line transcoding method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510060659.0A CN105992016A (en) 2015-02-05 2015-02-05 HLS on-line transcoding method and system

Publications (1)

Publication Number Publication Date
CN105992016A true CN105992016A (en) 2016-10-05

Family

ID=57037246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510060659.0A Pending CN105992016A (en) 2015-02-05 2015-02-05 HLS on-line transcoding method and system

Country Status (1)

Country Link
CN (1) CN105992016A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791924A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
CN106791925A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
CN107547948A (en) * 2017-09-05 2018-01-05 成都索贝数码科技股份有限公司 It is a kind of while the method and system that high code and low code media data access is provided
CN110149560A (en) * 2019-06-05 2019-08-20 亦非云互联网技术(上海)有限公司 Player optimization method and system, storage medium and terminal based on HLS protocol
CN114363303A (en) * 2021-12-31 2022-04-15 上海网达软件股份有限公司 Stream media transcoding method for realizing quick playing of monitoring video

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102257777A (en) * 2011-06-03 2011-11-23 华为技术有限公司 Route decision method, content distribution device, content distribution network interconnection system
CN103036889A (en) * 2012-12-19 2013-04-10 常州中流电子科技有限公司 Self-adapting streaming media displaying method and self-adapting streaming media displaying system
US20140047071A1 (en) * 2012-08-07 2014-02-13 Ntt Docomo, Inc. Method, system and network for transmitting multimedia data to a plurality of clients
CN103826139A (en) * 2014-02-27 2014-05-28 北京六间房科技有限公司 CDN system, watching server and streaming media data transmission method
CN103957428A (en) * 2014-05-16 2014-07-30 中国科学院上海高等研究院 Streaming media server with multi-code-rate transcoding function based on many-core processor
CN104243430A (en) * 2013-06-20 2014-12-24 腾讯科技(深圳)有限公司 Streaming media playing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102257777A (en) * 2011-06-03 2011-11-23 华为技术有限公司 Route decision method, content distribution device, content distribution network interconnection system
US20140047071A1 (en) * 2012-08-07 2014-02-13 Ntt Docomo, Inc. Method, system and network for transmitting multimedia data to a plurality of clients
CN103036889A (en) * 2012-12-19 2013-04-10 常州中流电子科技有限公司 Self-adapting streaming media displaying method and self-adapting streaming media displaying system
CN104243430A (en) * 2013-06-20 2014-12-24 腾讯科技(深圳)有限公司 Streaming media playing method and device
CN103826139A (en) * 2014-02-27 2014-05-28 北京六间房科技有限公司 CDN system, watching server and streaming media data transmission method
CN103957428A (en) * 2014-05-16 2014-07-30 中国科学院上海高等研究院 Streaming media server with multi-code-rate transcoding function based on many-core processor

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791924A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
CN106791925A (en) * 2017-02-09 2017-05-31 合网络技术(北京)有限公司 Video generation method and device
CN107547948A (en) * 2017-09-05 2018-01-05 成都索贝数码科技股份有限公司 It is a kind of while the method and system that high code and low code media data access is provided
CN107547948B (en) * 2017-09-05 2020-05-05 成都索贝数码科技股份有限公司 Method and system for simultaneously providing high code and low code media data access
CN110149560A (en) * 2019-06-05 2019-08-20 亦非云互联网技术(上海)有限公司 Player optimization method and system, storage medium and terminal based on HLS protocol
CN114363303A (en) * 2021-12-31 2022-04-15 上海网达软件股份有限公司 Stream media transcoding method for realizing quick playing of monitoring video
CN114363303B (en) * 2021-12-31 2023-06-02 上海网达软件股份有限公司 Streaming media transcoding method for realizing rapid playing of surveillance video

Similar Documents

Publication Publication Date Title
US20230179837A1 (en) Network Video Streaming with Trick Play Based on Separate Trick Play Files
Sodagar The mpeg-dash standard for multimedia streaming over the internet
US10560726B2 (en) System and method for delivery and caching of personalized media streaming content
US9247317B2 (en) Content streaming with client device trick play index
US8521899B2 (en) Multi-out media distribution system and method
US20190075148A1 (en) Personalized content streams using aligned encoded content segments
US20140297804A1 (en) Control of multimedia content streaming through client-server interactions
US20140359678A1 (en) Device video streaming with trick play based on separate trick play files
EP3209025A1 (en) Splicing method and splicing system for http live streaming media fragmentation
US20200112753A1 (en) Service description for streaming media data
CN110870282B (en) Processing media data using file tracks of web content
US20150256600A1 (en) Systems and methods for media format substitution
WO2014193996A2 (en) Network video streaming with trick play based on separate trick play files
CN105992044A (en) Method and system of transcoding HLS to RTMP live streaming
CN105992016A (en) HLS on-line transcoding method and system
WO2015192683A1 (en) Content distribution method, device and system based on adaptive streaming technology
CN109644282B (en) System level signaling of supplemental enhancement information tracks for media data streaming
KR20120114016A (en) Method and apparatus for network adaptive streaming user data in a outer terminal
CN110832872A (en) Processing media data using generic descriptors for file format boxes
CN105992022A (en) On-line recording and downloading method and system
US10432989B2 (en) Transmission apparatus, transmission method, reception apparatus, receiving method, and program
Yang et al. Implementation of HTTP live streaming for an IP camera using an open source multimedia converter
US11184665B2 (en) Initialization set for network streaming of media data
WO2017122543A1 (en) Information processing device and information processing method
RU2658672C2 (en) Content provision device, program, terminal device and content provision system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161005