CN101146212B - Stream media encapsulation and unpacking method and system for video order network - Google Patents

Stream media encapsulation and unpacking method and system for video order network Download PDF

Info

Publication number
CN101146212B
CN101146212B CN2006100309985A CN200610030998A CN101146212B CN 101146212 B CN101146212 B CN 101146212B CN 2006100309985 A CN2006100309985 A CN 2006100309985A CN 200610030998 A CN200610030998 A CN 200610030998A CN 101146212 B CN101146212 B CN 101146212B
Authority
CN
China
Prior art keywords
rtp
rtcp
video
data
stb
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
CN2006100309985A
Other languages
Chinese (zh)
Other versions
CN101146212A (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.)
Xi'an Sihua Information Technology Co., Ltd
Original Assignee
Sihua Technology (shanghai) Coltd
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 Sihua Technology (shanghai) Coltd filed Critical Sihua Technology (shanghai) Coltd
Priority to CN2006100309985A priority Critical patent/CN101146212B/en
Publication of CN101146212A publication Critical patent/CN101146212A/en
Application granted granted Critical
Publication of CN101146212B publication Critical patent/CN101146212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a streaming media packing/unpacking method for a video-on-demand network. The video-on-demand network is the video-on-demand network based on a HFC network. A STB is connectedwith a backbone network by the HFC network and QAM equipment. The HFC network provides a service to the STB. The streaming media packing/unpacking method comprises: the digital signals coded from video/audio signals are packed in a TS streaming format and added with a TS head; the TS streaming is packed in a UDP format and added with UDP and TCP/IP heads and transmitted to the QAM equipment via the backbone network; the QAM equipment removes the UDP and TCP/IP heads and extracts the TS streaming from the UDP format and transmits to the HFC network by means of radio-frequency RF signals; the HFC network transmits the TS streaming in radio-frequency RF signal form to the STB; the STB reduces the TS streaming into the digital signals and decodes the digital signals to video/audio signals by adecoding chip in the STB. The invention also discloses a streaming media packing/unpacking system for the video-on-demand networks.

Description

The Streaming Media package unpacking method and the system of VoD network
Technical field
The present invention relates to the VoD network technical field, more particularly, relate to the Streaming Media package unpacking method and the system of VoD network.
Background technology
Lower-cost hfc plant (hybrid fiber coax) is applied in the VoD network, to make operator will effectively utilize existing hfc plant resource more, on hfc plant, realize the interactive digital television business with lower cost, for expansion interactive digital TV business provides multiple access scheme.
In the interactive TV scheme of HFC, with respect to IPTV (internet television) system, introduce QAM equipment (quadrature amplitude modulation conversion equipment) afterwards, the control information between STB (set-top box) and the marginal flow media services engine cache is transmitted by different paths respectively with video stream data.Because up order request amount of information is minimum, can deliver to VOD (video request program) system headend by any IP network, descending video flowing is then sent to user STB by the hfc plant of having used QAM equipment.
QAM equipment is a kind ofly digital media signal can be modulated into the equipment that radiofrequency signal is transmitted on hfc plant.QAM equipment generally is deployed in fringe node, is input as the IP data, is output as radio frequency (RF) signal.
Difference based on the VoD network of hfc plant and existing IPTV system is, flow processs such as the access authentication of STB, information browse are identical, mutual by IP network, after user's order request is redirected to the marginal flow server, streaming server directly is not transferred to STB to video flowing by IP network, but export video flowing to QAM equipment with appropriate package form, QAM is modulated into radio frequency (RF with video flowing, Radio Frequency), be transferred to STB by hfc plant, STB carries out the demodulation sign indicating number to video flowing.
Because hfc plant is with the radio frequency transmission signals, in video on-demand system, introduced simultaneously QAM equipment based on hfc plant, in order to adapt to the transmission characteristic of QAM equipment, utilize the speed of resource, raising bandwidth utilization and the video flowing broadcast of hfc plant better, need the data format that be transmitted be defined, with the form encapsulation of data of the most suitable QAM equipment and hfc plant transmission.
Summary of the invention
The data encapsulation form that the purpose of this invention is to provide the transmission of a kind of suitable QAM equipment and hfc plant specifically, relates to based on Streaming Media package unpacking method and system in the VoD network of hfc plant.
According to a first aspect of the invention, a kind of Streaming Media package unpacking method of VoD network is provided, described VoD network is based on the VoD network of hfc plant, STB is connected to backbone network by hfc plant and QAM equipment, provide service by hfc plant to STB, described Streaming Media package unpacking method comprises:
To be packaged into TS stream (transmission code stream) form by the digital signal that the video/audio signal coding forms, and add TS packet header;
TS stream is packaged into the UDP form, and adds UDP and TCP/IP packet header, send QAM equipment to by backbone network;
QAM equipment will be removed UDP and TCP/IP packet header, extract TS stream from U DP form, and be transferred to hfc plant by radio frequency rf signal;
Hfc plant is transferred to STB with the form that TS flows with radio frequency rf signal;
STB is reduced into digital signal with TS stream, and by the decoding chip among the STB digital signal decoding is become video/audio signal.
According to one embodiment of the invention, stream medium data is when to be video/audio signal by MPEG 4 codings form, and this method also comprises:
To be packaged into RTP/RTCP (RTP/RTCP Real-time Transport Control Protocol) form by the digital signal that the video/audio signal coding forms, add RTP/RTCP packet header, and RTP/RTCP be sealed dress up the TS form again; And
STB is reduced into the RTP/RTCP form with TS stream earlier, further is reduced into digital signal again, and by the decoding chip among the STB digital signal decoding is become video/audio signal.
Preferable, the data of same RTP/RTCP bag are split to be assigned in one or several TS bags, comprises in the described RTP/RTCP form embedding indicating head, is used for discerning the data that belong to same RTP/RTCP bag that are positioned at different TS bags.
According to one embodiment of the invention, the video/audio data coding is become the RTP/RTCP packet, the length maximum is no more than 1416 bytes;
Data in the described RTP/RTCP bag belong to different audio frequency and/or track of video respectively, and each RTP/RTCP comprises that the embedding of 4 bytes indicates head, are used to identify the length of the affiliated audio frequency of RTP/RTCP bag and/or video track and record RTP/RTCP bag;
Described RTP/RTCP bag splits in a plurality of TS packets, and puts beginning flag on the TS at RTP/RTCP place data packet head;
When installing to the TS data envelope in the UDP message bag, the TS bag of each UDP message bag carrying is 1~7.
Preferable, described method also comprises, and the code stream controlled step makes code stream smooth-out, and this step comprises:
The Control for Speed Limitation step, introduce a congestion window, the data volume that record current time sheet has sent, the data that send in each timeslice are limited, and when new timeslice arrives, congestion window will be cleared, begin the data volume that adds up and send in the past, when a certain segment encode flows through big congestion window and is filled, will stop to give out a contract for a project, reattempt to next timeslice and send;
Quicken controlled step, introduce a pre-buffer memory prebuffer again, be illustrated in the maximum data that can send in advance in the process of giving out a contract for a project, when the progress that sends does not also reach the amount of prebuffer appointment in advance, to under the condition that bandwidth allows, send, meet or exceed prebuffer in advance up to progress with maximum.
Described Control for Speed Limitation step has precedence over described acceleration controlled step, only just operates under the prerequisite that the Control for Speed Limitation step allows to send and quickens controlled step.
According to a second aspect of the invention, provide a kind of Streaming Media package of VoD network to separate packet system, described VoD network is based on the VoD network of hfc plant, STB is connected to backbone network by hfc plant and QAM equipment, provide service by hfc plant to STB, described Streaming Media package is separated packet system and is comprised:
The TS casing device will be packaged into the TS stream format by the digital signal that the video/audio signal coding forms, and add TS packet header;
The UDP casing device is connected in described TS stream casing device, also is connected in backbone network, TS stream is packaged into the UDP form, and adds UDP and TCP/IP packet header, sends QAM equipment to by backbone network;
UDP unpacks device, is arranged in QAM equipment, removes UDP and TCP/IP packet header, extracts TS stream from the UDP form, and is transferred to hfc plant by radio frequency rf signal, and hfc plant is transferred to STB with the form that TS flows with radio frequency rf signal;
TS unpacks device, is arranged in described STB, and TS stream is reduced into digital signal, and by the decoding chip among the STB digital signal decoding is become video/audio signal.
According to one embodiment of the invention, described stream medium data is when to be video/audio signal by the MPEG4 coding form, and this system also comprises:
The RTP/RTCP casing device connects described TS casing device, will be packaged into the RTP/RTCP form by the digital signal that the video/audio signal coding forms, and adds RTP/RTCP packet header, again the RTP/RTCP bag is transferred to the TS casing device and is packaged into the TS form; And
RTP/RTCP unpacks device, be arranged in STB, connect described TS and unpack device, earlier TS stream is reduced into the RTP/RTCP form, further be transferred to TS again and unpack device and be reduced into digital signal, and digital signal decoding is become video/audio signal by the decoding chip among the STB.
Preferable, the data of same RTP/RTCP bag are split to be assigned in one or several TS bags, comprises in the described RTP/RTCP form embedding indicating head, is used for discerning the data that belong to same RTP/RTCP bag that are positioned at different TS bags.
According to one embodiment of the invention, the RTP/RTCP casing device becomes the RTP/RTCP packet with the video/audio data coding, and the length maximum is no more than 1416 bytes;
Data in the described RTP/RTCP bag belong to different audio frequency and/or track of video respectively, and each RTP/RTCP comprises that the embedding of 4 bytes indicates head, are used to identify the length of the affiliated audio frequency of RTP/RTCP bag and/or video track and record RTP/RTCP bag;
The TS casing device splits the RTP/RTCP bag in a plurality of TS packets, and puts beginning flag on the TS at RTP/RTCP place data packet head;
When the UDP casing device installed to the TS data envelope in the UDP message bag, the TS bag of each UDP message bag carrying was 1~7.
Preferable, described system also comprises, and the code stream control device makes code stream smooth-out, and this device comprises:
Speed-limiting control device, set a congestion window, the data volume that record current time sheet has sent, the data that send in each timeslice are limited, and when new timeslice arrives, congestion window will be cleared, begin the data volume that adds up and send in the past, when a certain segment encode flows through big congestion window and is filled, will stop to give out a contract for a project, reattempt to next timeslice and send;
Accel control, set a pre-buffer memory prebuffer, be illustrated in the maximum data that can send in advance in the process of giving out a contract for a project, when the progress that sends does not also reach the amount of prebuffer appointment in advance, to under the condition that bandwidth allows, send, meet or exceed prebuffer in advance up to progress with maximum;
Described speed-limiting control device has precedence over described accel control, only just operates accel control under the prerequisite that speed-limiting control device allows to send.
Adopt technical scheme of the present invention, taken into full account the transmission characteristic of QAM equipment and hfc plant, can utilize the speed of resource, raising bandwidth utilization and the video flowing broadcast of hfc plant better.
Description of drawings
The above and other features of the present invention, character and advantage will become more obvious by the description below in conjunction with drawings and Examples, identical in the accompanying drawings Reference numeral is represented identical feature all the time, wherein:
Fig. 1 uses the structured flowchart based on the video on-demand system of hfc plant that Streaming Media package of the present invention is separated packet technology;
Fig. 2 is a structured flowchart of separating packet system according to the Streaming Media package of one embodiment of the invention;
Fig. 3 unpacks flow process according to one embodiment of the invention to the Streaming Media package of MPEG 4 formatted datas;
Fig. 4 unpacks flow process according to one embodiment of the invention to the Streaming Media package of MPEG 2 formatted datas;
Fig. 5 is according to the Streaming Media packet structure figure of one embodiment of the invention to MPEG 4 formatted datas;
Fig. 6 is according to embedding the structure chart that indicates head in one embodiment of the invention RTP/RTCP bag;
Fig. 7 splits the schematic diagram of RTP/RTCP bag to different TS bags according to one embodiment of the invention;
Fig. 8 is the flow chart that unpacks flow process according to the Streaming Media package of one embodiment of the invention.
Embodiment
Further specify technical scheme of the present invention below in conjunction with drawings and Examples.
Video on-demand system based on hfc plant
Fig. 1 uses the structured flowchart based on the video on-demand system of hfc plant that Streaming Media package of the present invention is separated packet technology, and as shown in Figure 1, this video on-demand system 100 comprises:
IP-based backbone network 102, SiteServer LBS of the present invention are exactly the backbone network that is applied to this IP, in CDN network (content distributing network) 102;
Marginal flow media services engine 104 and marginal flow media services engine cache 105 are connected to IP-based backbone network 102, receive data from backbone network 102;
QAM equipment 106 is connected to marginal flow media services engine 104, receives the data from marginal flow media services engine 104;
Hfc plant 108 links to each other with QAM equipment 106 by radio frequency link;
STB110 links to each other with hfc plant 108 by radio frequency link;
Any IP network 112 is connected between marginal flow media services engine 104 and the STB 110, carries out the IP agreement and connects.
In video on-demand system scheme based on hfc plant, with respect to the IPTV system, to introduce after the QAM equipment 106, the control information between STB 110 and marginal flow media services engine 104 and the buffer memory 105 thereof is transmitted by different paths respectively with video stream data.Because up order request amount of information is minimum, can deliver to the VOD head end by any IP network 112, i.e. marginal flow media services engine 104 and buffer memory 105 thereof, descending video flowing are then sent to STB 110 by QAM equipment 106 and hfc plant 108.
QAM equipment 106 is a kind ofly digital media signal can be modulated into the equipment that radiofrequency signal is transmitted on hfc plant 108.QAM equipment 106 generally is deployed in fringe node, is input as the IP data, is output as the RF signal.
This system 100 with the difference of existing IPTV system is, flow processs such as the access authentication of STB, information browse are identical, mutual by IP network, after user's order request is redirected to the marginal flow server, streaming server directly is not transferred to STB to video flowing by IP network, but exports video flowing to QAM equipment with appropriate package form, and QAM is modulated into radio frequency (RadioFrequency) with video flowing, be transferred to STB by hfc plant, STB carries out the demodulation sign indicating number to video flowing.
Owing in this video on-demand system, increased QAM equipment, in order to adapt to the requirement of QAM device transmission, needed to use appropriate package form that Media Stream is transmitted, and need to consider respectively for the program of different coding form.Usually, two kinds of the most frequently used coded formats are MPEG 2 and MPEG4.
For MPEG2 form program, adopt the mode directly be packaged into TS stream to transmit, such transmission means requires minimumly to terminal, as long as can watch the STB of DVB program, just can accept and decodes program.But consider conserve bandwidth and storage, generally do not adopt MPEG2 to realize video request program.Present case is the mode that MPEG 2 signals is packaged into RTP over TS, transmits again.
Program for the MPEG4/H.264 coding according to the difference of decoding terminals mode, has two kinds of package forms to select.Comprise that the mode that adopts RTP over TS transmits and adopt the mode of MPEG4/H.264 over TS to encapsulate.What adopt at present is the mode of RTP over TS.
The Streaming Media package is separated packet system
According to the present invention, at first provide a kind of Streaming Media package of VoD network to separate packet system, this VoD network is based on the VoD network of hfc plant, STB is connected to backbone network by hfc plant and QAM equipment, provide service by hfc plant to STB, with reference to shown in Figure 2, Fig. 2 is a structured flowchart of separating packet system 200 according to the Streaming Media package of one embodiment of the invention, and this Streaming Media package is separated packet system 200 and comprised:
TS casing device 202 will be packaged into the TS stream format by the digital signal that the video/audio signal coding forms, and add TS packet header; TS casing device 202 normally is positioned on the content server that the video/audio program is provided, because this server all is to be connected in backbone network 102 usually, therefore TS casing device 202 is illustrated as being connected to backbone network 102 (by the following UDP casing device 204 that will describe) in Fig. 2.
UDP casing device 204 is connected in TS stream casing device 202, also is connected in backbone network 102, TS stream is packaged into the UDP form, and adds UDP and TCP/IP packet header, sends QAM equipment 106 to by backbone network 102.Need explanation, usually, QAM equipment 106 is connected to backbone network 102 by marginal flow media services engine 104 and marginal flow media services engine cache 105, does not describe in detail at this.
UDP unpacks device 206, is arranged in QAM equipment 106, is shown the QAM equipment 106 that is connected among Fig. 2, and in the application of reality, UDP unpacks device 206 and can integrate with QAM equipment 106, also can separate.UDP unpacks device 206 and removes UDP and TCP/IP packet header, extracts TS stream from the UDP form, and is transferred to hfc plant 108 by radio frequency rf signal, and hfc plant 108 is transferred to STB 110 with the form that TS flows with radio frequency rf signal.
TS unpacks device 208, be arranged in STB 110, be shown among Fig. 2 and be connected in STB 110, in the application of reality, TS unpacks device 208 and can integrate with STB 110, also can separate, TS unpacks device 208 TS stream is reduced into digital signal, and digital signal decoding is become video/audio signal by the decoding chip among the STB 110 (not shown, to those skilled in the art, it is technique known that STB 110 comprises decoding chip).
According to embodiment shown in Figure 2, be the situation that video/audio signal forms by the MPEG4 coding for stream medium data, this system 200 also comprises:
RTP/RTCP casing device 201 connects TS casing device 202, will be packaged into the RTP/RTCP form by the digital signal that the video/audio signal coding forms, and adds RTP/RTCP packet header, again the RTP/RTCP bag is transferred to TS casing device 202 and is packaged into the TS form; And
RTP/RTCP unpacks device 209, be arranged in STB 110, connect TS and unpack device 208, earlier TS stream is reduced into the RTP/RTCP form, further be transferred to TS again and unpack device 208 and be reduced into digital signal, and digital signal decoding is become video/audio signal by the decoding chip among the STB 110.
MPEG 2 and MPEG 4 coded format data processing
Said that above two kinds of the most frequently used coded formats are MPEG 2 and MPEG 4.Data at these two kinds of coded formats are described respectively below.
At first, for MPEG 2 coded formats, Fig. 4 unpacks flow process according to one embodiment of the invention to the Streaming Media package of MPEG2 formatted data.MPEG2 form program adopts the mode directly be packaged into TS stream to transmit, and such transmission means requires minimumly to terminal, as long as can watch the STB of DVB program, just can accept and decodes program.But consider conserve bandwidth and storage, generally do not adopt MPEG2 to realize video request program.Present case is the mode that MPEG 2 signals is packaged into RTP over TS, transmits again.As shown in Figure 4, the flow process of package/unpack is roughly as follows:
At first, at memory device, such as content server or connecting on other equipment of backbone network, file is deposited with the file format of MPEG 2.
Afterwards, TS casing device (such as being arranged in streaming media server) reads file data and is packaged into the TS packet mode, adds UDP packet header and TCP/IP packet header by the UDP casing device again, and sends to QAM equipment by backbone network.
UDP unpacks device (for example being arranged in QAM equipment) to carry out UDP and unpacks and TS bag taken out and demodulation is made Radio Frequency signal and is transferred to STB by hfc plant, and at QAM equipment place, data have reverted to the form of TS stream again.
STB receives after the TS data and to unpack device by TS it is carried out the TS broadcast that unpacks and decode, and in the drawings, the data at STB place still are illustrated as the form of TS stream.
Program for the MPEG4/H.264 coding according to the difference of decoding terminals mode, has two kinds of package forms to select.Comprise that the mode that adopts RTP over TS transmits and adopt the mode of MPEG4/H.264 over TS to encapsulate.What adopt at present is the mode of RTP over TS.Below be that example describes just with RTP over TS.With reference to figure 3, Fig. 3 unpacks flow process according to one embodiment of the invention to the Streaming Media package of MPEG 4 formatted datas:
At first, at memory device, such as content server or connecting on other equipment of backbone network, file is deposited with MPEG 4 file formats.
RTP/RTCP casing device (such as being arranged in streaming media server) reads file, be packaged into the RTP/RTCP form earlier, be transferred to the TS casing device then and add and packet header of TS be transferred to the UDP casing device again and add UDP packet header and TCP/IP packet header, send to QAM equipment by backbone network then.
UDP unpacks device (being arranged in QAM equipment) to carry out U DP and unpacks the TS data are taken out and be modulated into Radio Frequency signal and be transferred to STB by hfc plant;
After STB receives the TS data, unpack device by TS the TS header data is removed, the beared information of taking-up TS is RTP/RTCP bag data just, and the RTP/RTCP that offers among the STB unpacks device.
RTP/RTCP among the STB unpacks device RTP/RTCP is wrapped processing data information, solves the data of MPEG 4 forms, at last again by decoding chip to the audio, video data broadcast of decoding.
Package form and fractionation
The packet that offers QAM equipment is the UDP bag.Carrying the transport stream TS packet in the UDP bag, the interior TS bag of each UDP bag is 1~7 not to be waited.Carried the RTP/RTCP bag in the TS data flow, the video/audio format data in the RTP/RTCP bag after the carrying encoded (MPEG 2 or MPEG 4 codings).According to one embodiment of the invention, the package form of MPEG 4 coded format data is as follows, and with reference to figure 5, Fig. 5 is that structure is as follows according to the Streaming Media packet structure figure of one embodiment of the invention to MPEG 4 formatted datas:
IP head (IP Header), UDP head (UDP Header), TS head (TS Header), RTP/RTCP head (RTP Header), MPEG 4 format signals carryings (Payload MPEG4/H.264).
Consider the transmission characteristic of QAM equipment and hfc plant, the RTP/RTCP bag that transmits the audio frequency and video that belongs to different content simultaneously in single elementary stream ES is reasonable, such as the packet at four streams of single ES transmission.In order to distinguish the RTP/RTCP that these adhere to different content separately, before the RTP/RTCP bag, add one and embedded the sign head, Embedded Binary head such as 4 bytes, distinguish these stream by the passage ID that is included in wherein, and the inspection of integrality is provided at regrouping process for RTP/RTCP by length byte Length.
Like this, the data of same RTP/RTCP bag are split to be assigned in one or several TS bags, comprises in the RTP/RTCP form embedding indicating head, is used for discerning the data that belong to same RTP/RTCP bag that are positioned at different TS bags.
The form of an example Embedded Binary head of embedding sign head recited above is as follows, as shown in Figure 6, Fig. 6 indicates head according to embedding in one embodiment of the invention RTP/RTCP bag, i.e. the structure chart of Embedded Binary head, and this Embedded Binary head comprises:
The initial symbol " $ " of 1 byte;
The passage ID of 1 byte;
The length byte Length of 2 bytes.
Assign in one or several TS bags because the data of same RTP/RTCP bag are split, just need by following processing procedure:
The RTP/RTCP casing device becomes the RTP/RTCP packet with the video/audio data coding;
Data in the RTP/RTCP bag belong to different audio frequency and/or track of video respectively, each RTP/RTCP comprises that the embedding of 4 bytes indicates head, such as Embedded Binary head, be used to identify the length of the affiliated audio frequency of RTP/RTCP bag and/or video track and record RTP/RTCP bag;
The TS casing device splits the RTP/RTCP bag in a plurality of TS packets, and puts beginning flag on the TS at RTP/RTCP place data packet head;
When the UDP casing device installed to the TS data envelope in the UDP message bag, the TS bag of each UDP message bag carrying was 1~7.
Fig. 7 splits the schematic diagram of RTP/RTCP bag to different TS bags according to one embodiment of the invention; With reference to embodiment shown in Figure 7, concrete package step comprises:
The RTP/RTCP casing device becomes RTP/RTCP data packet length maximum with the video/audio data coding and is no more than 1416;
These RTP/RTCP bag data belong to different track Track (comprising Voice ﹠ Video) respectively, therefore before each RTP/RTCP packet, add the Embedded Binary head of 4 bytes, be used to identify the length of affiliated Track of RTP/RTCP and record RTP/RTCP bag.
These RTP/RTC P bags are split in a plurality of TS packets, and on the TS at RTP/RTCP place data packet head, put beginning flag, indicate such as Start_Unit_Indicate.Need to prove, with reference to shown in Figure 7, together split the assigning in a plurality of TS packets of a part that the anterior staggered head (InterleaveHead) of RTP/RTCP bag also wraps as RTP/RTCP.
At last the TS data envelope is installed in the UDP message bag, the TS bag of each UDP message bag carrying is 1~7 not to be waited.
Code stream control
Since the adaptive capacity that QAM equipment changes code stream relatively a little less than, and present stage film source code check change not too steady.Therefore Streaming Media relies on the strategy of giving out a contract for a project on the traditional ethernet to tend to cause give out a contract for a project sometime too fast, and QAM equipment buffer memory is not enough and cause overflowing (Overflow).
At this situation, need when transmitting Streaming Media, control dynamically the code stream of each program request stream, make code stream steady as far as possible, and reduce or eliminate QAM equipment to overflow (Overflow) unusual.
Thus, the system 200 with reference to shown in Figure 2 had increased by two following devices before QAM equipment 106:
Speed-limiting control device 210, speed-limiting control device 210 is set a congestion window, the data volume that record current time sheet has sent, the data that send in each timeslice are limited, and when new timeslice arrives, congestion window will be cleared, begin the data volume that adds up and send in the past, when a certain segment encode flows through big congestion window and is filled, will stop to give out a contract for a project, reattempt to next timeslice and send;
Accel control 212, set a pre-buffer memory prebuffer, be illustrated in the maximum data that can send in advance in the process of giving out a contract for a project, when the progress that sends does not also reach the amount of prebuffer appointment in advance, to under the condition that bandwidth allows, send, meet or exceed prebuffer in advance up to progress with maximum.
Speed-limiting control device 210 has precedence over accel control 212, only just operates accel control 212 under the prerequisite that speed-limiting control device 210 allows to send.
Like this, speed-limiting control device 210 and accel control 212 are mainly started with from two aspects, make code stream smooth-out.At first be the Control for Speed Limitation of speed-limiting control device 210, by introducing a congestion window, the data volume that record current time sheet has sent limits the data that send in each timeslice.When new timeslice arrives, congestion window will be cleared, and begin the data volume that adds up and send in the past.When a certain segment encode of film source flows through big congestion window and is filled, will stop to give out a contract for a project, reattempt to next timeslice and send.So just can limit the peak value of code stream, violent code stream fluctuation not occur.But this control algolithm may reduce packet sending speed, the buffer memory quantity of terminal is reduced, even consume light.The cooperation of acceleration control algolithm that need be by accel control 212 just can prevent the appearance of this class situation.Quicken control and introduce a pre-buffer memory prebuffer again, be illustrated in the maximum data that can send in advance in the process of giving out a contract for a project.When the progress that sends did not also reach the amount of prebuffer appointment in advance, the transmission of will doing the best under the condition that bandwidth allows (sending with maximum) met or exceeded prebuffer in advance up to progress.When code stream is little, can multiple give the data in some follow-up prebuffer scopes like this, when code stream became big, the buffer memory of reduction of speed terminal can not consume light soon yet.Simultaneously the startup stage of program request, can shorten start-up time, user experience effect preferably is provided by this acceleration.
These two kinds of controls, Control for Speed Limitation is top-priority, only quickens control under the prerequisite that Control for Speed Limitation allows to send and just might operate.By this a pair of Control for Speed Limitation and acceleration control algolithm, it is steady relatively just to make code stream change violent relatively film source output code flow in certain limit, trends towards cbr (constant bit rate).
Streaming Media package unpacking method
According to a second aspect of the invention, a kind of Streaming Media package unpacking method of VoD network also is provided, described VoD network is based on the VoD network of hfc plant, STB is connected to backbone network by hfc plant and QAM equipment, provide service by hfc plant to STB, with reference to figure 8, Fig. 8 is the flow chart that unpacks flow process according to the Streaming Media package of one embodiment of the invention, and this Streaming Media package unpacking method 800 comprises:
802. will be packaged into the TS stream format by the digital signal that the video/audio signal coding forms, and add TS packet header;
804. TS stream is packaged into the UDP form, and adds UDP and TCP/IP packet header, send QAM equipment to by backbone network;
806.QAM equipment will be removed UDP and TCP/IP packet header, extract TS stream from U DP form, and be transferred to hfc plant by radio frequency rf signal;
808.HFC network is transferred to STB with the form that TS flows with radio frequency rf signal;
810.STB TS stream is reduced into the digital signal of MPEG 4 or MPEG 2 forms, and the digital signal decoding of MPEG 4 or MPEG 2 forms is become video/audio signal by the decoding chip among the STB.
Continuation wherein also comprises following step with reference to figure 8, is specifically designed to stream medium data and is the situation of video/audio signal when forming by MPEG 4 codings, and these steps comprise:
801. will be packaged into the RTP/RTCP form by the digital signal that the video/audio signal coding forms, add RTP/RTCP packet header, RTP/RTCP is sealed dress up the TS form again; And
809.STB earlier TS stream is reduced into the RTP/RTCP form, further is reduced into the digital signal of MPEG4 form again, and the digital signal decoding of MPEG4 form is become video/audio signal by the decoding chip among the STB.
According to embodiments of the invention, the data of same RTP/RTCP bag are split to be assigned in one or several TS bags, comprises in the RTP/RTCP form embedding indicating head, is used for discerning the data that belong to same RTP/RTCP bag that are positioned at different TS bags.Comprise following process:
The video/audio data coding is become the RTP/RTCP packet, and the length maximum is no more than 1416 bytes;
Data in the RTP/RTCP bag belong to different audio frequency and/or track of video respectively, and each RTP/RTCP comprises that the embedding of 4 bytes indicates head, are used to identify the length of the affiliated audio frequency of RTP/RTCP bag and/or video track and record RTP/RTCP bag;
The RTP/RTCP bag splits in a plurality of TS packets, and puts beginning flag on the TS at RTP/RTCP place data packet head;
When installing to the TS data envelope in the UDP message bag, the TS bag of each UDP message bag carrying is 1~7.
In order to make code stream smooth-out, the present invention also comprises the code stream controlled step, and this step comprises:
The Control for Speed Limitation step, introduce a congestion window, the data volume that record current time sheet has sent, the data that send in each timeslice are limited, and when new timeslice arrives, congestion window will be cleared, begin the data volume that adds up and send in the past, when a certain segment encode flows through big congestion window and is filled, will stop to give out a contract for a project, reattempt to next timeslice and send;
Quicken controlled step, introduce a pre-buffer memory prebuffer again, be illustrated in the maximum data that can send in advance in the process of giving out a contract for a project, when the progress that sends does not also reach the amount of prebuffer appointment in advance, to under the condition that bandwidth allows, send, meet or exceed prebuffer in advance up to progress with maximum;
The Control for Speed Limitation step has precedence over described acceleration controlled step, only just operates under the prerequisite that the Control for Speed Limitation step allows to send and quickens controlled step.
The detail section of Streaming Media package unpacking method and above-mentioned Streaming Media package unpack systems compliant, therefore just no longer describe in detail here.
Adopt technical scheme of the present invention, taken into full account the transmission characteristic of QAM equipment and H FC network, can utilize the speed of resource, raising bandwidth utilization and the video flowing broadcast of hfc plant better.
The foregoing description provides to being familiar with the person in the art and realizes or use of the present invention; those skilled in the art can be under the situation that does not break away from invention thought of the present invention; the foregoing description is made various modifications or variation; thereby protection scope of the present invention do not limit by the foregoing description, and should be the maximum magnitude that meets the inventive features that claims mention.

Claims (10)

1. the Streaming Media package unpacking method of a VoD network, it is characterized in that, described VoD network is based on the VoD network of hfc plant, STB is connected to backbone network by hfc plant and QAM equipment, provide service by hfc plant to STB, described Streaming Media package unpacking method comprises:
To be packaged into the TS stream format by the digital signal that the video/audio signal coding forms, and add TS packet header;
TS stream is packaged into the UDP form, and adds UDP and TCP/IP packet header, send QAM equipment to by backbone network;
QAM equipment will be removed UDP and TCP/IP packet header, extract TS stream from the UDP form, and be transferred to hfc plant by radio frequency rf signal;
Hfc plant is transferred to STB with the form that TS flows with radio frequency rf signal;
STB is reduced into digital signal with TS stream, and by the decoding chip among the STB digital signal decoding is become video/audio signal.
2. Streaming Media package unpacking method as claimed in claim 1 is characterized in that, described stream medium data is when to be video/audio signal by MPEG 4 codings form, and described method also comprises:
To be packaged into the RTP/RTCP form by the digital signal that the video/audio signal coding forms, add RTP/RTCP packet header, and RTP/RTCP be sealed dress up the TS form again; And
STB is reduced into the RTP/RTCP form with TS stream earlier, further is reduced into digital signal again, and by the decoding chip among the STB digital signal decoding is become video/audio signal.
3. Streaming Media package unpacking method as claimed in claim 2, it is characterized in that, the data of same RTP/RTCP bag are split to be assigned in one or several TS bags, comprise in the described RTP/RTCP form embedding indicating head, be used for discerning the data that belong to same RTP/RTCP bag that are positioned at different TS bags.
4. Streaming Media package unpacking method as claimed in claim 3 is characterized in that,
The video/audio data coding is become the RTP/RTCP packet, and the length maximum is no more than 1416 bytes;
Data in the described RTP/RTCP bag belong to different audio frequency and/or track of video respectively, and each RTP/RTCP comprises that the embedding of 4 bytes indicates head, are used to identify the length of the affiliated audio frequency of RTP/RTCP bag and/or video track and record RTP/RTCP bag;
Described RTP/RTCP bag splits in a plurality of TS packets, and puts beginning flag on the TS at RTP/RTCP place data packet head;
When installing to the TS data envelope in the UDP message bag, the TS bag of each UDP message bag carrying is 1~7.
5. Streaming Media package unpacking method as claimed in claim 4 is characterized in that described method also comprises, the code stream controlled step makes code stream smooth-out, and this step comprises:
The Control for Speed Limitation step, introduce a congestion window, the data volume that record current time sheet has sent, the data that send in each timeslice are limited, and when new timeslice arrives, congestion window will be cleared, begin the data volume that adds up and send in the past, when a certain segment encode flows through big congestion window and is filled, will stop to give out a contract for a project, reattempt to next timeslice and send;
Quicken controlled step, introduce a pre-buffer memory prebuffer again, be illustrated in the maximum data that can send in advance in the process of giving out a contract for a project, when the progress that sends does not also reach the amount of prebuffer appointment in advance, to under the condition that bandwidth allows, send, meet or exceed prebuffer in advance up to progress with maximum;
Described Control for Speed Limitation step has precedence over described acceleration controlled step, only just operates under the prerequisite that the Control for Speed Limitation step allows to send and quickens controlled step.
6. the Streaming Media package of a VoD network is separated packet system, it is characterized in that, described VoD network is based on the VoD network of hfc plant, STB is connected to backbone network by hfc plant and QAM equipment, provide service by hfc plant to STB, described Streaming Media package is separated packet system and is comprised:
The TS casing device will be packaged into the TS stream format by the digital signal that the video/audio signal coding forms, and add TS packet header;
The UDP casing device is connected in described TS stream casing device, also is connected in backbone network, TS stream is packaged into the UDP form, and adds UDP and TCP/IP packet header, sends QAM equipment to by backbone network;
UDP unpacks device, is arranged in QAM equipment, removes UDP and TCP/IP packet header, extracts TS stream from the UDP form, and is transferred to hfc plant by radio frequency rf signal, and hfc plant is transferred to STB with the form that TS flows with radio frequency rf signal;
TS unpacks device, is arranged in described STB, and TS stream is reduced into digital signal, and by the decoding chip among the STB digital signal decoding is become video/audio signal.
7. Streaming Media package as claimed in claim 6 is separated packet system, it is characterized in that, described stream medium data is when to be video/audio signal by MPEG 4 codings form, and described system also comprises:
The RTP/RTCP casing device connects described TS casing device, will be packaged into the RTP/RTCP form by the digital signal that the video/audio signal coding forms, and adds RTP/RTCP packet header, again the RTP/RTCP bag is transferred to the TS casing device and is packaged into the TS form; And
RTP/RTCP unpacks device, be arranged in STB, connect described TS and unpack device, earlier TS stream is reduced into the RTP/RTCP form, further be transferred to TS again and unpack device and be reduced into digital signal, and digital signal decoding is become video/audio signal by the decoding chip among the STB.
8. Streaming Media package as claimed in claim 7 is separated packet system, it is characterized in that, the data of same RTP/RTCP bag are split to be assigned in one or several TS bags, comprise in the described RTP/RTCP form embedding indicating head, be used for discerning the data that belong to same RTP/RTCP bag that are positioned at different TS bags.
9. Streaming Media package as claimed in claim 8 is separated packet system, it is characterized in that,
The RTP/RTCP casing device becomes the RTP/RTCP packet with the video/audio data coding, and the length maximum is no more than 1416 bytes;
Data in the described RTP/RTCP bag belong to different audio frequency and/or track of video respectively, and each RTP/RTCP comprises that the embedding of 4 bytes indicates head, are used to identify the length of the affiliated audio frequency of RTP/RTCP bag and/or video track and record RTP/RTCP bag;
The TS casing device splits the RTP/RTCP bag in a plurality of TS packets, and puts beginning flag on the TS at RTP/RTCP place data packet head;
When the UDP casing device installed to the TS data envelope in the UDP message bag, the TS bag of each UDP message bag carrying was 1~7.
10. Streaming Media package as claimed in claim 9 is separated packet system, it is characterized in that, described system also comprises, the code stream control device makes code stream smooth-out, and this device comprises:
Speed-limiting control device, set a congestion window, the data volume that record current time sheet has sent, the data that send in each timeslice are limited, and when new timeslice arrives, congestion window will be cleared, begin the data volume that adds up and send in the past, when a certain segment encode flows through big congestion window and is filled, will stop to give out a contract for a project, reattempt to next timeslice and send;
Accel control, set a pre-buffer memory prebuffer, be illustrated in the maximum data that can send in advance in the process of giving out a contract for a project, when the progress that sends does not also reach the amount of prebuffer appointment in advance, to under the condition that bandwidth allows, send, meet or exceed prebuffer in advance up to progress with maximum;
Described speed-limiting control device has precedence over described accel control, only just operates accel control under the prerequisite that speed-limiting control device allows to send.
CN2006100309985A 2006-09-11 2006-09-11 Stream media encapsulation and unpacking method and system for video order network Active CN101146212B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006100309985A CN101146212B (en) 2006-09-11 2006-09-11 Stream media encapsulation and unpacking method and system for video order network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006100309985A CN101146212B (en) 2006-09-11 2006-09-11 Stream media encapsulation and unpacking method and system for video order network

Publications (2)

Publication Number Publication Date
CN101146212A CN101146212A (en) 2008-03-19
CN101146212B true CN101146212B (en) 2010-06-09

Family

ID=39208464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006100309985A Active CN101146212B (en) 2006-09-11 2006-09-11 Stream media encapsulation and unpacking method and system for video order network

Country Status (1)

Country Link
CN (1) CN101146212B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100161716A1 (en) * 2008-12-22 2010-06-24 General Instrument Corporation Method and apparatus for streaming multiple scalable coded video content to client devices at different encoding rates
CN101945253A (en) * 2010-09-03 2011-01-12 深圳市同洲电子股份有限公司 Method and system for realizing video-on-demand on single server
CN102625194A (en) * 2011-01-26 2012-08-01 郑州威科姆科技股份有限公司 General document flow mode VOD method based on IPQAM
KR20120138604A (en) 2011-06-14 2012-12-26 삼성전자주식회사 Method and apparatus for transmitting/receiving hybrid media content in a multimedia system
WO2013097218A1 (en) * 2011-12-31 2013-07-04 华为技术有限公司 Stream media data processing method, device and system
CN105338341B (en) * 2014-08-12 2019-06-21 杭州海康威视系统技术有限公司 Restore the method and device of real-time video code stream
CN107872716B (en) * 2016-09-23 2019-12-06 杭州海康威视数字技术股份有限公司 post-packaged streaming data analysis method and device and electronic equipment
CN107979783B (en) * 2016-10-25 2020-03-24 杭州海康威视数字技术股份有限公司 Streaming data analysis method and device and electronic equipment
CN109218760B (en) * 2018-10-19 2021-04-02 广州珠江数码集团股份有限公司 Method and device for modulating large-code-rate program
CN113132766B (en) * 2021-03-17 2023-05-23 杭州当虹科技股份有限公司 VBR (visual basic) sending method of TS (transport stream) packaging format

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790174A (en) * 1991-09-27 1998-08-04 Bell Atlantic Network Services, Inc. PSTN architecture for video-on-demand services
CN1372417A (en) * 2001-02-28 2002-10-02 上海龙林通信技术有限公司 Device and method for order and storage of video program in wide band network
CN1409929A (en) * 1999-11-12 2003-04-09 通用仪器公司 MPEG-4 rideo specific control packet for providing customized set of coding tools
CN1416646A (en) * 2000-01-13 2003-05-07 美国安科公司 Method and appts. for identifying signal route for delivery of video-on-demand to subscriber terminal
CN1516468A (en) * 2003-08-29 2004-07-28 广州新华夏宽带网视讯技术有限公司 Telephone video requesting system and its method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790174A (en) * 1991-09-27 1998-08-04 Bell Atlantic Network Services, Inc. PSTN architecture for video-on-demand services
CN1409929A (en) * 1999-11-12 2003-04-09 通用仪器公司 MPEG-4 rideo specific control packet for providing customized set of coding tools
CN1416646A (en) * 2000-01-13 2003-05-07 美国安科公司 Method and appts. for identifying signal route for delivery of video-on-demand to subscriber terminal
CN1372417A (en) * 2001-02-28 2002-10-02 上海龙林通信技术有限公司 Device and method for order and storage of video program in wide band network
CN1516468A (en) * 2003-08-29 2004-07-28 广州新华夏宽带网视讯技术有限公司 Telephone video requesting system and its method

Also Published As

Publication number Publication date
CN101146212A (en) 2008-03-19

Similar Documents

Publication Publication Date Title
CN101146212B (en) Stream media encapsulation and unpacking method and system for video order network
CN107534777B (en) Method and apparatus for transmitting or receiving service signaling for broadcast service
CN101146213B (en) VoD network and ordering method
RU2369040C2 (en) Buffering during data streaming
US7035295B2 (en) Direct RTP delivery method and system over MPEG network
EP1623303B1 (en) Information frame modifier
US5790753A (en) System for downloading computer software programs
EP2987296B1 (en) Method and apparatus for packet header compression
CN100568971C (en) The transmission code stream of a kind of MPEG-4 is to the real time conversion method of internet stream media alliance stream
KR20130126538A (en) Methods of performing hybrid transmission using expansion of mmt packet format
US10623691B2 (en) Apparatus for transmitting broadcast signal, apparatus for receiving broadcast signal, method for transmitting broadcast signal and method for receiving broadcast signal
CN105264846A (en) Transmission apparatus, transfer stream transmission method and processing apparatus
KR20070020207A (en) System and method of supporting transport and playback of signals
US10492100B2 (en) Broadcast signal transmission apparatus, broadcast signal receiving apparatus, broadcast signal transmission method, and broadcast signal receiving method
CN107147916A (en) A kind of method for transmitting H.265 encoded video data on the level of the transport layer
US20030097663A1 (en) Method and apparatus for dynamic provisioning of IP-based services in a DVB network
CN101193290A (en) A real time conversion system from MPEG-4 transmission code stream to Internet stream media alliance stream
CN101312531B (en) Stream service transmission method in broadcast system and stream media frame encapsulation device
WO2008022500A1 (en) A method for transmitting the control information and the media information of the mobile multimedia broadcast differentially
WO2008043213A1 (en) A mobile multimedia broadcast system for enhancing transmission efficiency by using variable-length frame and thereof method
WO2008043212A1 (en) A method for transferring assistant data in mobile multi-media broadcast
Pekowsky et al. Multimedia data broadcasting strategies
KR100442473B1 (en) Digital animation controller via network
JP2000059328A (en) Device and method for multiplexing
KR200291292Y1 (en) Digital animation controller via network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: SHANGHAI SIHUA TECH. CO., LTD.

Free format text: FORMER OWNER: SIHUA TECH (SHANGHAI) CO., LTD.

Effective date: 20110516

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20110516

Address after: 200333, building 7, Tiandi Software Park, No. 879, Zhongjiang Road, Shanghai

Patentee after: Shanghai Sihua Tech Co., Ltd.

Address before: 200333, building 7, Tiandi Software Park, No. 879, Zhongjiang Road, Shanghai

Patentee before: Sihua Technology (Shanghai) Co.Ltd

TR01 Transfer of patent right

Effective date of registration: 20201028

Address after: Room 11704, 17 / F, unit 1, building 1, Jingu Rongcheng, No. 10, Jinye 1st Road, hi tech Zone, Xi'an City, Shaanxi Province

Patentee after: Xi'an Sihua Information Technology Co., Ltd

Address before: 200333, building 7, Tiandi Software Park, No. 879, Zhongjiang Road, Shanghai

Patentee before: SHANGHAI SIHUA TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right