CN108206957A - A kind of method that HLS plays NGOD video files - Google Patents

A kind of method that HLS plays NGOD video files Download PDF

Info

Publication number
CN108206957A
CN108206957A CN201711228821.0A CN201711228821A CN108206957A CN 108206957 A CN108206957 A CN 108206957A CN 201711228821 A CN201711228821 A CN 201711228821A CN 108206957 A CN108206957 A CN 108206957A
Authority
CN
China
Prior art keywords
ngod
cdn
files
index
file
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.)
Granted
Application number
CN201711228821.0A
Other languages
Chinese (zh)
Other versions
CN108206957B (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.)
GUIZHOU BROADCASTING&TV INFORMATION NETWORK Co Ltd
Original Assignee
GUIZHOU BROADCASTING&TV INFORMATION NETWORK 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 GUIZHOU BROADCASTING&TV INFORMATION NETWORK Co Ltd filed Critical GUIZHOU BROADCASTING&TV INFORMATION NETWORK Co Ltd
Priority to CN201711228821.0A priority Critical patent/CN108206957B/en
Publication of CN108206957A publication Critical patent/CN108206957A/en
Application granted granted Critical
Publication of CN108206957B publication Critical patent/CN108206957B/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand

Landscapes

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

Abstract

The invention discloses the method that a kind of HLS (HTTP Live Streaming) plays NGOD (Next Generation On Demand Video Architecture) standard video file, the method that the HLS plays NGOD video files includes the following steps:C2 obtains index file;C2 index files turn M3U8;TS fragment datas obtain.The new media platform of full IP of the present invention using original resource construction newly.Original video file is converted into new media IP streams, index file is converted into M3U8, without to build storage and caching, waste investment again.

Description

A kind of method that HLS plays NGOD video files
Technical field
The invention belongs to a kind of methods that interactive VOD technical field more particularly to HLS play NGOD video files.
Background technology
Most of interactive VOD system that radio and TV operator builds uses NGOD standard working-outs, mainly includes content distribution system It unites (CDN), background management system (BO), video stream pushing server (VSS), resource management system (ERM), gate system (PORTAL), the systems such as EPG, since by OTT and IPTV competitions, radio and TV operator is built again based on OTT/IPTV technologies The full IP platforms of new media, the system that the new media IP platforms of many broadcasting and TV manufacturers construction are totally independent of original NGOD standards, This results in the film source of user's program request to need to re-inject into new media platform, builds storage system again, and waste is invested, simultaneously The time cost of injection is also very high.
It is built again in conclusion radio and TV operator builds the full IP platforms presence of new media based on OTT/IPTV technologies again If storage system, waste investment, while injection length cost is very high.
Invention content
The purpose of the present invention is to provide a kind of methods that HLS plays NGOD video files, it is intended to solve radio and TV operator Again the full IP platforms of the new media based on OTT/IPTV technologies are built and are noted simultaneously in the presence of storage system, waste investment is built again The problem of angle of incidence cost is very high.
The present invention analyzes NGOD index files on edge stream pushing server and is converted to M3U8 files, then It corresponds on complete TS files, is all the C2 interfaces of the NGOD standards used in CDN data Hui Yuan, is compatible with broadcasting and TV operation The NGOD CDN that quotient uses, therefore in edge stream pushing server when providing plug-flow service to IP user, do not need to newly-built center Content library and caching can continue to use the centre point library built well at present and caching, so as to avoid investment waste.
Implementation method of the present invention includes the following steps:
Step 1, C2 obtain index file;
Step 2, C2 index files turn M3U8;
Step 3, TS fragment datas obtain.
Further, the C2 obtains index file and specifically includes:
1) edge stream pushing server obtains the CDN of index with going back to source using the content Location Request of C2 from NGOD CDN Location;
2) the content Location Request of NGOD CDN responses C2, return an address that index file download service can be provided to Edge stream pushing server;
3) edge stream pushing server uses the content transmission request of C2 under NGOD CDN service Address requests index files It carries;
4) content transmission request of the corresponding C2 of NGOD CDN, and give data answering to edge stream pushing server.
Further, the C2 index files turn M3U8 and specifically include:
1) according to NGOD index file forms, the index record table of index files is parsed, generates a key frame information Queue, each node preserves time and the position offset that content starts for key frame relative to file in queue;
2) according to the maximum length of a film of the M3U8 fragments of configuration, crucial frame queue is traversed, forms the queue of fragment data information, Each node preserves fragment deviation post, fragment duration information in queue;
3) M3U8 files are generated according to the burst information queue of generation, wherein in the URL of each fragment, stores complete TS The download information of file, the deviation post of TS fragments, the file size of TS fragments and TS fragments duration.
Further, the TS fragment datas acquisition specifically includes:
1) edge stream pushing server obtains the CDN of TS files with going back to source using the content Location Request of C2 from NGOD CDN Location;
2) the content Location Request of NGOD CDN responses C2 returns to an address that can provide TS file download services to side Edge stream pushing server;
3) edge stream pushing server using the content transmission request of C2 to NGOD CDN service Address requests TS file downloads, And it is asked to analyze the cheap position of the relatively complete TS files of TS slicing files and fragment size in string with user, be used Range modes ask TS fragment datas;
4) NGOD CDN respond the content transmission request of C2, and according to the Range parameters of request, TS fragment data responses are given Edge stream pushing server.
Another object of the present invention is to provide a kind of new media for the method that NGOD video files are played using the HLS Platform.
The method that HLS provided by the invention plays NGOD video files utilizes the new matchmaker of the new full IP of original resource construction Body platform;Original video file is converted into new media IP streams, index file is converted into M3U8, without to build again Storage and caching, waste investment.
Description of the drawings
Fig. 1 is the method flow diagram that HLS provided in an embodiment of the present invention plays NGOD video files.
Fig. 2 is sequence diagram provided in an embodiment of the present invention.
Fig. 3 is that C2 provided in an embodiment of the present invention obtains index file flow diagram.
Fig. 4 is that TS fragment datas provided in an embodiment of the present invention obtain flow diagram.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to embodiments, to the present invention It is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not used to Limit the present invention.
The application principle of the present invention is explained in detail below in conjunction with the accompanying drawings.
As shown in Figure 1, the method that HLS provided in an embodiment of the present invention plays NGOD video files includes the following steps:
S101:C2 obtains index file;
S102:C2 index files turn M3U8;
S103:TS fragment datas obtain.
The application principle of the present invention is further described below in conjunction with the accompanying drawings.
Sequence diagram is as shown in Figure 2.
1):Terminal gets the broadcasting string of M3U8 from EPG first, and id parameters store corresponding NGOD videos in string is played The medium ID of file
Such as:http://10.2.10.10/nv.m3u8Id=OTHE0000357723010400
2):Stream pushing server parses NGOD video files ID after the request of terminal is received (OTHE0000357723010400), it and using NGOD C2 interfaces goes to download index file
a):The index file Location Request sent to NGOD-CDN:
b):NGOD-CDN responses one can provide the TransferPort and TransferID of index file download to edge Stream pushing server
c):Plug-flow service goes request data using TransferPort and TransferID generation request strings
GET
POBJACB5FEC794BE64A2EDF7FD81B5B6BFCB6AD8BCF2AC2E3D37ACB6ABB7ACB6ABB7ACB6ABB7A CA40DB7HTTP/1.1
Host:10.2.85.3
Accept-Encoding:identity
Transfer-Delay:0
Range:Bytes=0-1221898
Ingress-Capacity:800000000
d):NGOD-CDN response index file data
HTTP/1.1 206Partial Content
Server:Cisco/CDS Gateway/3.0
Content-Length:1221899
Content-Range:bytes 0-1221898/1221899
Content-Type:video/mpeg
Transfer-Encoding:chunked
Cache-Control:public
Connection:Keep-Alive
059E
Video Index File...........Cisco System…………………
3) index file is converted into M3U8 files
After index file obtains, Analytical Index file parses the index list information of base speed file, plug-flow service Device forms the content of M3U8 listing files according to index information and the duration (generally 10 seconds) of configuration, each in M3U8 contents In TS fragments URL, it will record the fragment relative to the deviation post of base speed file and the size of fragment.
The key frame information of base speed TS files is had recorded in index file in Index index records, concrete structure is as follows:
Wherein for converting HLS functions, there are two main parameters
1:PacketOffset, for calculating the starting position of fragment and fragment length
2:PCR, for calculating fragment duration
As index file is:
It is assumed that each key frame time phase difference 5 seconds, the TS durations fragment of transformed M3U8 is 10 seconds, then generates what is come M3U8 is:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:10
#EXTINF:10,
nv.tsId=assert_id&cp=provider_id&begin=PacketOffset1&filesize= (PacketOffset3-PacketOffset1)
#EXTINF:10,
nv.tsId=assert_id&cp=provider_id&begin=PacketOffset3&filesize= (PacketOffset5+PacketOffset3)
#EXTINF:10,
nv.tsId=assert_id&cp=provider_id&begin=PacketOffset5&filesize= (TS_FILE_SIZE-PacketOffset5)
#EXT-X-ENDLIST
4) TS fragment datas obtain
For terminal when asking TS fragment datas, stream pushing server is according to the fragment data carried in URL relative to base speed text The deviation post of part and the size of fragment equally using C2 and carry upper range parameters, source request are carried out back from Cisco CDN Data are asked so as to the TS fragment datas of response terminal.
Such as the URL of first TS fragment of request is:
nv.tsId=OTHE0000357723010400&begin=0&filesize=1879812
A) the video file Location Request sent to NGOD-CDN:
b):NGOD-CDN responses one can carry video and draw the TransferPort and TransferID of file download to edge Stream pushing server
c):Plug-flow service is gone here and there using TransferPort and TransferID generation requests and goes request data, and according to Start and filesize parameters in URL determine the range of Range in request
GET
POBJACB5FEC794BE64A0EDF7FD83B5B6BFC96BF662ECACA82F37ACB6ABB7ACB6ABB7ACB6ABB7B AE977B7HTTP/1.1
Host:10.2.85.130
Accept-Encoding:identity
Transfer-Delay:0
Range:Bytes=0-1879812
Ingress-Capacity:800000000
d):NGOD-CDN response video file datas
HTTP/1.1 206Partial Content
Server:Cisco/CDS Gateway/3.0
Content-Length:1879813
Content-Range:bytes 0-1879812/375380728
Content-Type:video/mpeg
Transfer-Encoding:chunked
Cache-Control:public
Connection:Keep-Alive
007B
G@...............................................。
As shown in figure 3, the C2 obtains index file, flow is as follows:
1):Edge stream pushing server is obtained using C2Content Locate (the content Location Request of C2) from NGOD CDN The CDN of index is taken to return source address;
2):NGOD CDN response C2Content Locate return to an address that can provide index file download service Give edge stream pushing server;
3):Edge stream pushing server is taken using C2Content Transfer (content transmission request of C2) to NGOD CDN Address requests of being engaged in index file is downloaded;
4):The corresponding C2Content Transfer of NGOD CDN, and give data answering to edge stream pushing server.
The C2 index files turn M3U8 and specifically include:
1):According to NGOD index file forms, the index record table of index files is parsed, generates a key frame letter The queue of breath, each node preserves time and the position offset that content starts for key frame relative to file in queue.
2):According to the maximum length of a film of the M3U8 fragments of configuration, crucial frame queue is traversed, forms the team of fragment data information Row, each node saves the information such as fragment deviation post, fragment duration in queue.
3):M3U8 files are generated according to the burst information queue of generation, wherein in the URL of each fragment, are stored complete The download information of TS files, the deviation post of TS fragments, the file size of TS fragments and TS fragments duration.
As shown in figure 4, the TS fragment datas acquisition flow is as follows:
1):Edge stream pushing server is obtained using C2Content Locate (the content Location Request of C2) from NGOD CDN The CDN of TS files is taken to return source address;
2):NGOD CDN response C2Content Locate, return an address that TS file download services can be provided to Edge stream pushing server;
3):Edge stream pushing server is taken using C2Content Transfer (content transmission request of C2) to NGOD CDN Business Address requests TS file downloads, and the cheap position of the relatively complete TS files of TS slicing files is analyzed in being gone here and there with user's request It puts and fragment size, TS fragment datas is asked using Range modes;
4):NGOD CDN respond C2Content Transfer, should by TS fragment datas according to the Range parameters of request It answers and gives edge stream pushing server.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement made within refreshing and principle etc., should all be included in the protection scope of the present invention.

Claims (5)

1. a kind of method that HLS plays NGOD video files, which is characterized in that the method that the HLS plays NGOD video files NGOD index files are analyzed on edge stream pushing server and are converted to M3U8 files;Then complete TS is corresponded to On file, in CDN data Hui Yuan all be use NGOD standards C2 interfaces, compatibility radio and TV operator use NGOD CDN;
The method that the HLS plays NGOD video files specifically includes following steps:
Step 1, C2 obtain index file;
Step 2, C2 index files turn M3U8;
Step 3, TS fragment datas obtain.
2. the method that HLS as described in claim 1 plays NGOD video files, which is characterized in that the C2 obtains index text Part specifically includes:
1) edge stream pushing server obtains CDN times source addresses of index using the content Location Request of C2 from NGOD CDN;
2):The content Location Request of NGOD CDN responses C2 returns to an address that can provide index file download service to side Edge stream pushing server;
3):Edge stream pushing server is downloaded using the content transmission request of C2 to NGOD CDN service Address requests index file;
4):The content transmission request of the corresponding C2 of NGOD CDN, and give data answering to edge stream pushing server.
3. the method that HLS as described in claim 1 plays NGOD video files, which is characterized in that the C2 index files turn M3U8 is specifically included:
1):According to NGOD index file forms, the index record table of index files is parsed, one key frame information of generation Queue, each node preserves time and the position offset that content starts for key frame relative to file in queue;
2):According to the maximum length of a film of the M3U8 fragments of configuration, crucial frame queue is traversed, forms the queue of fragment data information, team Each node preserves fragment deviation post, fragment duration information in row;
3):M3U8 files are generated according to the burst information queue of generation, wherein in the URL of each fragment, store complete TS texts The download information of part, the deviation post of TS fragments, the file size of TS fragments and TS fragments duration.
4. the method that HLS as described in claim 1 plays NGOD video files, which is characterized in that the TS fragment datas obtain It takes and specifically includes:
1) edge stream pushing server obtains CDN times source addresses of TS files using the content Location Request of C2 from NGOD CDN;
2):The content Location Request of NGOD CDN responses C2 returns to an address that can provide TS file download services to edge Stream pushing server;
3):Edge stream pushing server uses the content transmission request of C2 to NGOD CDN service Address requests TS file downloads, and And asked to analyze the cheap position of the relatively complete TS files of TS slicing files and fragment size in string with user, use Range Mode asks TS fragment datas;
4):NGOD CDN respond the content transmission request of C2, according to the Range parameters of request, by TS fragment data responses to side Edge stream pushing server.
5. a kind of new media platform for the method that NGOD video files are played using HLS described in 4 any one of Claims 1 to 4.
CN201711228821.0A 2017-11-29 2017-11-29 Method for playing NGOD video file by HLS Active CN108206957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711228821.0A CN108206957B (en) 2017-11-29 2017-11-29 Method for playing NGOD video file by HLS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711228821.0A CN108206957B (en) 2017-11-29 2017-11-29 Method for playing NGOD video file by HLS

Publications (2)

Publication Number Publication Date
CN108206957A true CN108206957A (en) 2018-06-26
CN108206957B CN108206957B (en) 2021-05-28

Family

ID=62604037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711228821.0A Active CN108206957B (en) 2017-11-29 2017-11-29 Method for playing NGOD video file by HLS

Country Status (1)

Country Link
CN (1) CN108206957B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143380A (en) * 2010-12-31 2011-08-03 华为技术有限公司 Content provision control method, content provision control device and content provision control system for content transmission network
US20120259996A1 (en) * 2011-04-06 2012-10-11 Sony Corporation Reception apparatus, reception method, and program
US20140247887A1 (en) * 2011-12-28 2014-09-04 Verizon Patent And Licensing Inc. Just-in-time (jit) encoding for streaming media content
CN104469391A (en) * 2014-11-21 2015-03-25 深圳市天威视讯股份有限公司 Cloud-platform-based digital television content distribution system and method
CN105979373A (en) * 2015-12-03 2016-09-28 乐视致新电子科技(天津)有限公司 Play method and device
CN106162377A (en) * 2015-04-08 2016-11-23 中国移动通信集团公司 The conversion method of adaptive stream media technology, device, BM-SC and terminal
CN106303747A (en) * 2015-05-29 2017-01-04 中兴通讯股份有限公司 The Internet protocol IP video system merged and implementation method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143380A (en) * 2010-12-31 2011-08-03 华为技术有限公司 Content provision control method, content provision control device and content provision control system for content transmission network
US20120259996A1 (en) * 2011-04-06 2012-10-11 Sony Corporation Reception apparatus, reception method, and program
US20140247887A1 (en) * 2011-12-28 2014-09-04 Verizon Patent And Licensing Inc. Just-in-time (jit) encoding for streaming media content
CN104469391A (en) * 2014-11-21 2015-03-25 深圳市天威视讯股份有限公司 Cloud-platform-based digital television content distribution system and method
CN106162377A (en) * 2015-04-08 2016-11-23 中国移动通信集团公司 The conversion method of adaptive stream media technology, device, BM-SC and terminal
CN106303747A (en) * 2015-05-29 2017-01-04 中兴通讯股份有限公司 The Internet protocol IP video system merged and implementation method
CN105979373A (en) * 2015-12-03 2016-09-28 乐视致新电子科技(天津)有限公司 Play method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马少林: "基于融合CDN的流媒体系统及其关键技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Also Published As

Publication number Publication date
CN108206957B (en) 2021-05-28

Similar Documents

Publication Publication Date Title
KR101956121B1 (en) Apparatus and method for providing streaming contents
Stockhammer Dynamic adaptive streaming over HTTP-- standards and design principles
CN103051931B (en) Review performance recording, playback method, server, client and system
CN103813185B (en) A kind of method that segment programs are quickly distributed, server and client
US20110246563A1 (en) Method and apparatus for providing timeshift service in digital broadcasting system and system thereof
Walker et al. ROUTE/DASH IP streaming-based system for delivery of broadcast, broadband, and hybrid services
CN102780921A (en) Method, system and device for acquiring review information during watching programs
JP2006521038A (en) System for distributing multimedia content
WO2012034501A1 (en) Method, apparatus, and system for dynamic media content insertion based on http stream
CN102118428A (en) Method and system for playing streaming media
CN107820115A (en) Realize the method, apparatus and client and storage medium of video information preview
US11601525B2 (en) Apparatus and methods for content access, retrieval, and delivery in a content distribution network
KR102085192B1 (en) Rendering time control
CN105228001A (en) The method and system that a kind of FLV format video is play online
CN102474517A (en) A method of switching media content for a mobile apparatus
US11356719B2 (en) Reception device, reception method, transmission device, and transmission method
KR101705898B1 (en) Method and system for providing timeshift service in digital broadcasting system
WO2013097454A1 (en) Video inter-cut method, device and system
US20190238937A1 (en) Signaling and reporting interactivity usage in streaming services
WO2015039477A1 (en) Information system, information delivery method and iptv system based on multi-screen interaction
JP2017011325A (en) Receiver, transmitter, and data processing method
US20140282666A1 (en) Systems and Methods for Content History
EP2413600A2 (en) Iptv receiver, and content-downloading method for same
CN101984619A (en) Implementation method and system of streaming media service
CN102594773B (en) A kind of method and system for realizing data acquisition

Legal Events

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