Embodiment
For the advantage of the technical scheme that makes the embodiment of the invention is clearer, embodiments of the invention are done further to specify below in conjunction with accompanying drawing and specific embodiment.
On the one hand, the embodiment of the invention provides a kind of method of sending medium.
As shown in Figure 2, the flow chart of first embodiment of the method for embodiment of the invention transmission medium comprises:
S101, the medium transmitting terminal obtains media slicing data packet, and said packet carries transmission information; Obtain the video frame distribution information of media slicing; Corresponding relation between the transmission information that the frame of video of said video frame distribution information presentation medium burst and media slicing data packet are carried;
S102, medium transmitting terminal control the transmission of media slicing data packet according to said video frame distribution information.
The embodiment of the invention is sent the method for medium, obtains the video frame distribution information of media slicing data packet and media slicing; According to said video frame distribution information, the transmission of control media slicing data packet.Said packet carries transmission information; Corresponding relation between the transmission information that the frame of video of said video frame distribution information presentation medium burst and media slicing data packet are carried; Through method with external receipts video frame distribution information, can be to medium based on the transmission of frame of video control, the video frame distribution information of the outer transmission of band media slicing, can the information transmitted amount many, and information transmitted is complete.
Optional, as shown in Figure 3, the flow chart for second embodiment of the method for the transmission medium of the embodiment of the invention comprises:
S201, the medium transmitting terminal obtains media slicing data packet, and said packet carries transmission information; Obtain the video frame distribution information of media slicing; Corresponding relation between the transmission information that the frame of video of said video frame distribution information presentation medium burst and media slicing data packet are carried;
The medium transmitting terminal obtains media slicing data packet, and the step of obtaining the video frame distribution information of media slicing is:
The medium transmitting terminal generates media slicing data packet, and the medium transmitting terminal generates the video frame distribution information of media slicing;
Perhaps do, the medium transmitting terminal is from the packet of other source of media receiving media burst, and the medium transmitting terminal is from the video frame distribution information of other source of media receiving media burst.
The step of the video frame distribution information of said receiving media burst is:
The descriptor of receiving media, the descriptor of said medium are carried the frame of video descriptor of said media slicing; From the descriptor of media slicing, obtain the video frame distribution information of media slicing.
Perhaps be that the descriptor of receiving media, the descriptor of said medium are carried the burst descriptor of said medium; The burst descriptor of said medium is carried the frame of video descriptor of said media slicing; Obtain the burst descriptor of said medium from the descriptor of said medium; Obtain the frame of video descriptor of said media slicing from the burst descriptor of said medium.
Below describe the medium transmitting terminal and generate media slicing data packet; The medium transmitting terminal generates the burst principle of the video frame distribution information of media slicing, and is as shown in Figure 4, for one one by H.264 or the length of MPEG4 format compressed be 1 hour film; Can be divided into 900 bursts; The content of corresponding 4 second hands of each burst, successively with segmental identification 1 to segmental identification 900 signs, the content between segmental identification 76 correspondences 5 minutes 0 second to 5 minutes and 4 seconds for example.And each burst is made up of 8 GOP (Group of Picture, image sets), is GOP1 to GOP8.Each GOP promptly, comprises 1 I frame again by 15 frame groups, several P frames, and several B frames, in the present embodiment, each GOP contains 1 I frame, 4 P frames, 10 B frames.Different frame data have a frame type sign at head, are used for the type of codec identification frame.
Frame is the single width image frame of least unit in the image animation, is equivalent to each the lattice camera lens on the cinefilm.One frame is exactly a secondary static picture, and continuous frame just forms animation, like film image etc.Usually said frame number, briefly, the frame number of the picture that in 1 time in second, transmits exactly also is appreciated that to graphic process unit can refresh several times each second, uses fps (Frames Per Second) expression usually.Each frame all is static image, and in extremely rapid succession display frame has just formed the illusion of motion.High frame per second can obtain more smooth, more true to nature animation.Frame number each second (fps) is many more, and the action that is shown will be more smooth.
Wherein, I frame (I-frame) is an independent frame, uses the initial data direct coding, and I frame information encoded amount is big, so data volume is big.And the I frame can independently reduce broadcast, is the basis of other frames.Lose the I frame, B frame, P frame in follow-up this GOP are also just useless.Wherein the I frame is periodically to appear in the sequence of frames of video, and the frequency of occurrences can be selected by encoder.
The P frame is a forward predicted frame, carries out motion prediction with nearest I or P frame as the reference frame comparison, only writes down the difference of this frame and reference frame.So code efficiency is higher, data volume is little, but needs the reference frame data of front to reduce frame.
The B frame is bi-directional predicted interpolation frame, can carry out motion prediction as benchmark with the frame of front and back, and compression rates is maximum, and data volume is minimum.
The step that medium transmitting terminal or other source of media generate media slicing data packet is below described.This step comprises:
(a) obtain the frame of video of media slicing;
(b), the frame of video of media slicing is packaged into a plurality of packets according to the size of the frame of video of media slicing.
Packet is the RTP bag that comprises shift time, sequence of data packet number, it will be understood by those skilled in the art that can be RTP bag or proprietary protocol bag.Among this embodiment, be example with the RTP bag.In the RTP packet header of RTP regulation, comprise two fields: sequence number and timestamp.Sequence number is mainly used in each packet of mark, and for example first sequence of data packet number is that 0, the second data packet number is that 1, the three data packet number is that 2...... increases progressively with this.Moment when timestamp is used for first byte sampling of identification data packet.When said packet was RTP, the shift time of the frame of video that packet is corresponding can carry through the timestamp of RTP.Each frame of video can be packaged into a plurality of RTP bags, and the timestamp of a plurality of RTP bags of corresponding same frame of video is identical.Frame of video is packaged into a plurality of RTP bags for prior art, repeats no more here.
Source of media is carried out the RTP encapsulation to each frame in each burst by its size and is deposited after with the film burst.The number of the packet after the different frame encapsulation is different; For example bigger about 20 RTP of I frame needs wrap and accomplish transmission; And a smaller B frame needs about 2 RTP to wrap to accomplish transmission, and the P frame of size between I frame and B frame needs about 4 RTP to wrap to accomplish transmission.Source of media generates descriptor, the frame of video descriptor of burst, the burst descriptor of medium medium after with film burst and encapsulation.
Wherein, the descriptor of medium is used to describe the information of media characteristic, comprising: basic descriptor and burst descriptor.For example for a film, basic descriptor comprises: film name, film size, film code check, publisher, issuing time etc.
The burst descriptor is used to describe the essential information of all bursts of medium.Comprise: each burst size, each segmental identification (Key), each burst time corresponding, the check code of each burst and the video frame distribution information of each burst.
The video frame distribution information of burst, the corresponding relation of the frame of video of presentation medium and media slicing data packet transmission information.Said video frame distribution information comprises: the sequence number (SN) of the initial data bag of the shift time (timestamp) of segmental identification (Key), frame of video, the type of frame of video and frame of video, the data packet number (packet) of frame of video.The type of said frame of video comprises: I frame, P frame, B frame.
The descriptor of medium or burst descriptor, video frame distribution information can be carried, transmit, preserve with carrier formats such as file, communication signaling, communication messages.
As shown in Figure 5; With segmental identification 76 is example, and in the video frame distribution information of segmental identification 76, timestamp is that 300000 milliseconds RTP bag is the I frame; Totally 20 RTP wrap; The sequence number of first bag in these 20 bags (be homing sequence number) is that the sequence number of 1, the second bag is 2 ... the sequence number of the 20th bag is 20.Timestamp is every to be a frame at a distance from 40 milliseconds.And for example timestamp is that 300040 milliseconds RTP bag is the B frame, and totally 2 RTP bags, the sequence number of first bag in these 2 bags (be homing sequence number) are that the sequence number of 21, the second bags is 22.
S202, the locating information of medium transmitting terminal receiving media request end request service;
Said locating information is:
The corresponding segmental identification of broadcast zero-time of media request end subscriber customization, and the sequence number of the initial data bag of the next I frame after the broadcast zero-time corresponding data bag of customization; In the present embodiment, the locating information of reception is: segmental identification is a segmental identification 76, sequence of data packet numbers 21.
Perhaps be the corresponding segmental identification of broadcast zero-time of media request end subscriber customization, and the shift time in the burst of the broadcast zero-time of customization correspondence; In the present embodiment, the locating information of reception is: 2900 milliseconds of segmental identification 76 and shift times.
Perhaps be the broadcast zero-time of media request end subscriber customization.In the present embodiment, the locating information of reception is: 5 minutes 2 seconds 900 milliseconds.
S203, medium transmitting terminal be according to said video frame distribution information, search after the corresponding packet of said locating information the initial data bag of next I frame; In the present embodiment, the initial data bag of the next I frame after the corresponding packet of locating information is: segmental identification is 76, sequence of data packet number is 21 packet.
S204, the initial data packet start of the next I frame of medium transmitting terminal after the corresponding packet of locating information is for media receiving end provides media services.
In the present embodiment, be that the packet of segmental identification 76, sequence of data packet numbers 21 begins, media services are provided from segmental identification.
Optional, among the step S202, said media receiving end requested service is that request is filled in clean culture soon; The initial data packet start of the next I frame of medium transmitting terminal described in the step S204 after the corresponding packet of locating information then for media receiving end provides the step of media services is:
The initial data packet start of the next I frame of medium transmitting terminal after the corresponding packet of locating information is filled service soon for media receiving end provides clean culture.In the present embodiment, the medium transmitting terminal is that segmental identification 76, sequence of data packet number are that 21 packet begins from segmental identification, fills service soon for media receiving end provides clean culture.
The embodiment of the invention can realize the service of filling soon that becomes more meticulous based on the I frame data, reduces the startup time-delay and the VCR operation delay of media receiving end playing media.
As shown in Figure 6, the flow chart of the 3rd embodiment of the method for the transmission medium of the embodiment of the invention comprises:
S301, the medium transmitting terminal obtains media slicing data packet, and said packet carries transmission information; Obtain the video frame distribution information of media slicing; Corresponding relation between the transmission information that the frame of video of said video frame distribution information presentation medium burst and media slicing data packet are carried;
The transport packet of said packet is drawn together: the shift time of the frame of video of the sequence number of packet, packet correspondence;
Said video frame distribution information comprises: the sequence number of the initial data bag that the shift time of segmental identification, frame of video, the type of frame of video and frame of video are corresponding, the corresponding quantity of data packets of frame of video; The type of said frame of video comprises: I frame, P frame, B frame.
S302, medium transmitting terminal judge the frame type that said media slicing data packet is corresponding according to said video frame distribution information;
In the present embodiment; With video frame distribution information shown in Figure 5 is example; Sequence number is that the corresponding frame type of 20 packet is the I frame, and sequence number is that 25,26 the corresponding frame type of packet is the P frame, and sequence number is that 21,22,23,24 the corresponding frame type of packet is the B frame.
S303, the frame type that the medium transmitting terminal is corresponding according to said media slicing data packet, the priority of the said media slicing data packet of mark;
The agreement (like IP agreement, Ethernet protocol) that the priority of the said media slicing data packet of mark can be passed through network layer, link layer realizes.
Wherein, when the frame type under the media slicing data packet was the I frame, the priority of the said media slicing data packet of mark was high priority; In the present embodiment, flag sequence number is that 20 packet is a high priority.
When the frame type under the media slicing data packet was the P frame, the priority of the said media slicing data packet of mark was medium priority; In the present embodiment, flag sequence number is that 25,26 packet is a medium priority.
When the frame type under the media slicing data packet was the B frame, the priority of the said media slicing data packet of mark was low priority.In the present embodiment, flag sequence number is that 21,22,23,24 packet is a low priority
S304, the medium transmitting terminal sends the media slicing data packet behind the mark priority information.
In the embodiment of the invention, follow-up web-transporting device can carry out QoS (Quality of Service, service quality) control according to the priority of media slicing data packet mark.When follow-up web-transporting device transmission mark is stated the media slicing data packet after the priority, when network takes place when congested, at first loss priority low, to the packet of the most weak B frame type of GOP influence.The preferential packet that transmits the I frame type that GOP has the greatest impact, priority is the highest that keeps is realized the QoS control based on video frame distribution information.
Corresponding to the method that the present invention sends medium, on the other hand, the embodiment of the invention provides a kind of method of receiving media.
As shown in Figure 7, the flow chart for first embodiment of the method for receiving media of the present invention stream comprises:
S401, the video frame distribution information of media receiving end receiving media burst, the corresponding relation between the transmission information that the frame of video of said video frame distribution information presentation medium burst and media slicing data packet are carried;
S402, media receiving end control the reception of media slicing data packet according to said video frame distribution information.
The method of embodiment of the invention receiving media, the video frame distribution information of media receiving end receiving media burst, according to said video frame distribution information, the reception of control media slicing data packet.Corresponding relation between the transmission information that the frame of video of said video frame distribution information presentation medium burst and media slicing data packet are carried; Can carry out reception control to medium based on frame of video.
As shown in Figure 8, the flow chart for second embodiment of the method for receiving media of the present invention stream comprises:
S501, the video frame distribution information of media receiving end receiving media burst, the corresponding relation between the transmission information that the frame of video of said video frame distribution information presentation medium burst and media slicing data packet are carried;
The transport packet of said packet is drawn together: the shift time of the frame of video of the sequence number of packet, packet correspondence;
Said video frame distribution information comprises: the sequence number of the initial data bag that the shift time of segmental identification, frame of video, the type of frame of video and frame of video are corresponding, the corresponding quantity of data packets of frame of video; The type of said frame of video comprises: I frame, P frame, B frame.
The step of the video frame distribution information of said receiving media is:
The descriptor of receiving media, the descriptor of said medium is carried the video frame distribution information of said medium; Obtain the video frame distribution information of said medium from the descriptor of said medium;
Perhaps be that the step of the burst descriptor of said receiving media is: the descriptor of receiving media, the descriptor of said medium are carried the burst descriptor of said medium, and the burst descriptor of said medium is carried the video frame distribution information of said medium; Obtain the burst descriptor of said medium from the descriptor of said medium, obtain the video frame distribution information of said medium from the burst descriptor of said medium.
S502, media receiving end obtain the broadcast zero-time of customization; In the present embodiment, suppose that the user is dragged to 900 milliseconds in film 5 minutes and 2 seconds.
S503, media receiving end search the corresponding locating information of broadcast zero-time of said customization according to said video frame distribution information;
The corresponding locating information of the broadcast zero-time of said customization is:
The segmental identification that the broadcast zero-time of said customization is corresponding, and the sequence number of the initial data bag of the next I frame after the broadcast zero-time corresponding data bag of customization; In the present embodiment, according to video frame distribution information shown in Figure 5, the corresponding locating information in 5 minutes 2 seconds positions of 900 milliseconds is: segmental identification is 76, sequence of data packet number is 21.
Perhaps be the segmental identification that the broadcast zero-time of customization is corresponding, and the shift time in the burst of the broadcast zero-time of customization correspondence; In the present embodiment, according to video frame distribution information shown in Figure 5, the corresponding locating information in 5 minutes 2 seconds positions of 900 milliseconds is: segmental identification be 76 and shift time be 2900 milliseconds.
Perhaps be the broadcast zero-time of customization.In the present embodiment, locating information is: 5 minutes 2 seconds 900 milliseconds.
S504 when media receiving end request medium transmitting terminal provides media services, sends the corresponding locating information of broadcast zero-time of said customization to the medium transmitting terminal;
In the embodiment of the invention, the locating information of transmission is: segmental identification is that segmental identification 76, sequence of data packet number are 21.
Perhaps be: segmental identification be 76 and shift time be 2900 milliseconds.
Perhaps do, 5 minutes 2 seconds 900 milliseconds.
S505, the initial data packet start of the next I frame of media receiving end after the corresponding packet of said locating information is accepted service from the medium transmitting terminal.In the present embodiment, be that segmental identification 76, sequence of data packet number are 21 to begin the acceptance service from segmental identification.
When the described request service is filled service soon for the request clean culture; The initial data packet start of said next I frame after the corresponding packet of locating information; The step of accepting service is: the initial data packet start of the next I frame after the corresponding packet of said locating information, and accept clean culture and fill service soon.In the present embodiment, be that segmental identification 76, sequence of data packet number are 21 beginnings, accept clean culture and fill service soon, can receive data rapidly, obtain the service of " one to one " relatively stable reliable content source from segmental identification.
The method of the described receiving media of the embodiment of the invention also comprises:
S506, media receiving end resolve to the frame of video of medium with said media slicing data packet;
S507, media receiving end play the frame of video of said medium.The embodiment of the invention can realize the service of filling soon that becomes more meticulous based on the I frame data, reduces the startup time-delay and the VCR operation delay of media receiving end media play.Broadcast when VCR operation refers to displaying video, time-out, precedingly drag, after drag, operations such as F.F., rewind down.
Optional, the method for the described receiving media of the embodiment of the invention also comprises:
S508, media receiving end preserve said media slicing data packet.In the P2P network, can media services be provided for other services request entity.
As shown in Figure 9, the flow chart for the 3rd embodiment of the method for receiving media of the present invention stream comprises:
S601, the video frame distribution information of media receiving end receiving media burst, the corresponding relation between the transmission information that the frame of video of said video frame distribution information presentation medium burst and media slicing data packet are carried;
The transport packet of said packet is drawn together: the shift time of the frame of video of the sequence number of packet, packet correspondence;
Said video frame distribution information comprises: the sequence number of the initial data bag that the shift time of segmental identification, frame of video, the type of frame of video and frame of video are corresponding, the corresponding quantity of data packets of frame of video; The type of said frame of video comprises: I frame, P frame, B frame.
S602, when data-bag lost, media receiving end is searched the sequence number of the packet of losing according to the sequence number of the packet that receives;
Before this step, can also comprise that the sequence number according to the packet that receives judges whether the packet of losing; If be judged as the packet of losing, then search the sequence number of the packet of losing.
With the example that is transmitted as of the RTP data flow of segmental identification 76, media receiving end receives sequence number and is respectively 19,23,24,25,26 RTP bag, judges that therefore losing sequence number is three RTP bags of 20,21,22.
S603 according to video frame distribution information, judges the affiliated frame type of losing of packet;
According to the video frame distribution information in the description document among Fig. 5, judge that sequence number is that the frame type of 20 bag is the I frame, sequence number is the frame type B frame of 21 and 22 bag.
S604 according to the frame type under the packet of losing, sends the repeat requests of corresponding data bag.
The data-bag lost of I frame type, the P frame type among the same GOP that receives after can causing, the packet of B frame type are invalid, and the B frame lose to the influence of whole GOP much smaller than, I frame and P frame lose influence to whole GOP.Therefore, the frame type under the packet that said basis is lost, send the step that can also increase judgement before the step of repeat requests of corresponding data bag:
When the frame type I frame under the packet of losing, confirm to send repeat requests;
Perhaps be when the frame type under the packet of losing is I frame or P frame, can according to circumstances select to send or do not send repeat requests.In the present embodiment, media receiving end request retransmission sequence number is 20 bag, is 21 and 22 packet drop and ignore sequence number.Therefore, the embodiment of the invention can realize the frame type based on data, and realizes different packet loss retransmission service.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to accomplish through the relevant hardware of computer program instructions; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like each embodiment of above-mentioned method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
On the other hand, the embodiment of the invention provides a kind of device that sends medium.
Shown in figure 10, the structural representation for the present invention sends device first embodiment of medium comprises:
Acquiring unit 21 is used to obtain media slicing data packet; And the video frame distribution information of obtaining media slicing; Said packet carries transmission information, the corresponding relation between the transmission information that the frame of video of said video frame distribution information presentation medium burst and media slicing data packet are carried;
Control unit 22 is used for according to said video frame distribution information, the transmission of control media slicing data packet.
The embodiment of the invention is sent in the device of medium, obtains media slicing data packet through acquiring unit, and said packet carries transmission information; Obtain the video frame distribution information of media slicing; Control unit is controlled the transmission of media slicing data packet according to said video frame distribution information, and said video frame distribution information is represented, the corresponding relation between the transmission information that the frame of video of media slicing and media slicing data packet are carried; Can realize that out-band method is to the transmission control of medium based on frame of video.
Shown in figure 11, send the structural representation of device first embodiment of medium for the present invention.Said acquiring unit 21 comprises: generation unit 211 or receiving element 212, and said generation unit 211 is used to generate the video frame distribution information of media slicing data packet and media slicing; Said receiving element 212 is used for the video frame distribution information of the packet and the media slicing of receiving media burst.
Said control unit 22 comprises: receiving element 221, the locating information of receiving media receiving terminal request service;
Search unit 222, according to said video frame distribution information, search after the corresponding packet of said locating information the initial data bag of next I frame;
The device of said transmission medium also comprises: transmitting element 23, the initial data packet start of the next I frame after the corresponding packet of locating information provides media services.
The embodiment of the invention is sent in the device of medium, obtains media slicing data packet through acquiring unit, and said packet carries transmission information; Obtain the video frame distribution information of media slicing; When receiving element receives services request, receive locating information; Search the unit according to said video frame distribution information, search after the corresponding packet of said locating information the initial data bag of next I frame; The initial data packet start of the next I frame of transmitting element after the corresponding packet of locating information provides media services.Said video frame distribution information is represented, the corresponding relation between the transmission information that the frame of video of media slicing and media slicing data packet are carried; Can realize providing service, reduce the startup time-delay and the VCR operation delay of media receiving end media play based on I frame data bag.
Shown in figure 12, send the structural representation of device first embodiment of medium for the present invention.Said control unit 22 comprises: judging unit 223, according to video frame distribution information, judge the frame type that media slicing data packet is corresponding; Indexing unit 224, the frame type corresponding, the priority of the said media slicing data packet of mark according to media slicing data packet;
The device of said transmission medium also comprises: transmitting element 23, the media slicing data packet behind the transmission mark priority information.
The device that the embodiment of the invention is sent medium obtains media slicing data packet through acquiring unit, and said packet carries transmission information; Obtain the video frame distribution information of media slicing; Judging unit is according to said video frame distribution information, and acquiring unit obtains media slicing data packet, and said packet carries transmission information; Obtain the video frame distribution information of media slicing; Judge the frame type that media slicing data packet is corresponding; The frame type that indexing unit is corresponding according to media slicing data packet, the priority of the said media slicing data packet of mark; Transmitting element sends the media slicing data packet behind the mark priority information, and said video frame distribution information is represented, the corresponding relation between the transmission information that the frame of video of media slicing and media slicing data packet are carried; Realized that follow-up web-transporting device can carry out QoS control according to the priority of mark.
The device that sends medium with the embodiment of the invention is corresponding, and on the other hand, the embodiment of the invention provides a kind of device of receiving media.
Shown in figure 13, the structural representation for device first embodiment of receiving media of the present invention comprises:
Receiving element 11, the video frame distribution information of receiving media burst, the corresponding relation between the transmission information that the frame of video of said video frame distribution information presentation medium burst and media slicing data packet are carried;
Control unit 12, according to said video frame distribution information, the reception of control media slicing data packet.
In the device of embodiment of the invention receiving media; Through control unit according to said video frame distribution information; The reception of control media slicing data packet; The video frame distribution information of receiving element receiving media burst, said video frame distribution information are represented, the corresponding relation between the transmission information that the frame of video of media slicing and media slicing data packet are carried; Can realize medium are carried out the reception control based on frame of video.
Shown in figure 14, the structural representation of device second embodiment of receiving media of the present invention, said control unit 12 comprises: time acquisition unit 121, obtain the media play zero-time of customization; Search unit 122,, search the corresponding locating information of broadcast zero-time of said customization according to said video frame distribution information; Transmitting element 123, the locating information of the request service that the broadcast zero-time of transmission multimedia receiving terminal customization is corresponding;
Said receiving element 11 also is used for, the initial data packet start of the next I frame after the corresponding packet of said locating information, acceptance service.
The device of receiving media can also comprise: resolution unit 13 with said media slicing data packet, resolves to the frame of video of medium; Broadcast unit 14 is play the frame of video of said medium.
The device of receiving media can also comprise preserves unit 15, is used to preserve said media slicing data packet.
The embodiment of the invention can receive the service based on I frame data bag, reduces the startup time-delay and the VCR operation delay of media receiving end media play.
Shown in figure 15, the structural representation of device first embodiment of receiving media of the present invention.Different with accompanying drawing 14 is that said control unit 12 also comprises: search unit 124, according to the sequence number of the packet that receives, search the sequence number of the packet of losing; Judging unit 125 according to video frame distribution information, is judged the affiliated frame type of losing of packet; Transmitting element 126 according to the frame type under the packet of losing, sends the repeat requests of corresponding data bag;
Said receiving element 11 also is used to accept to serve and receive the corresponding data bag of re-transmission.
On the other hand, the present invention implements to provide a kind of system of transmission medium, and is shown in figure 16, and the structural representation for the system of embodiment of the invention transmission medium comprises:
Medium transmitting terminal 32 is used to obtain media slicing data packet, and the video frame distribution information of media slicing; According to said video frame distribution information, the transmission of control media slicing data packet; Said packet carries the transmission information of packet;
Media receiving end 31, the video frame distribution information of receiving media burst, according to said video frame distribution information, the reception of control media slicing data packet; Corresponding relation between the transmission information that the frame of video of said video frame distribution information presentation medium burst and media slicing data packet are carried.
Optional, the transmission of said medium transmitting terminal control media slicing data packet is specially: when receiving services request, receive locating information; According to said video frame distribution information, search after the corresponding packet of said locating information the initial data bag of next I frame; The initial data packet start of the next I frame after the corresponding packet of locating information provides media services.The reception of said media receiving end control media slicing data packet is specially: the broadcast zero-time of obtaining customization; According to said video frame distribution information, search the corresponding locating information of broadcast zero-time of said customization; , plays the medium transmitting terminal the corresponding locating information of zero-time when sending the request service of customization; The initial data packet start of the next I frame after the corresponding packet of said locating information, the acceptance service.
Optional, the reception of said media receiving end control media slicing data packet is specially: according to the sequence number of the packet that receives, search the sequence number of the packet of losing; According to video frame distribution information, judge the affiliated frame type of losing of packet; According to the frame type under the packet of losing, send the repeat requests of corresponding data bag.The transmission of said medium transmitting terminal control media slicing data packet is specially: media services are provided; Receive the repeat requests of corresponding data bag; Send the corresponding data bag of said re-transmission.
Optional, the transmission of said medium transmitting terminal control media slicing data packet is specially: said medium transmitting terminal also is used for according to said video frame distribution information, judges the frame type that media slicing data packet is corresponding; The frame type corresponding according to media slicing data packet, the priority of the said media slicing data packet of mark; Media slicing data packet behind the transmission mark priority information.The transmission of said medium transmitting terminal control media slicing data packet is specially: media receiving end receives the media slicing data packet behind the mark priority information; When sending the media slicing data packet behind the said mark priority information, carry out service quality control.
The embodiment of the invention can realize the service based on I frame data bag, reduces the startup time-delay and the VCR operation delay of media receiving end media play; Be the packet of different frame type, different packet loss retransmission service is provided, service quality control is carried out in the transmission of Media Stream.
The embodiment of the invention can be used in P2P (Peer-to-Peer, the peer-to-peer network) network.In the time of in being applied to the P2P network; Said media receiving end is the Peer of request service; Said medium transmitting terminal is the Peer that media services are provided, and this Peer that media services are provided both can be a source of media, also can obtain the Peer of media content through the P2P network.After source of media inserts the P2P network; Source of media is published to the packet after the media slicing encapsulation and the video frame distribution information of burst on other memory devices in the P2P network, and medium transmitting terminal (Peer of media services promptly is provided) obtains packet and the video frame distribution information of burst after the media slicing encapsulation from this memory device.
Said media receiving end is personal computer, mobile phone, personal digital assistant, server, network-caching equipment; Said medium transmitting terminal is personal computer, mobile phone, personal digital assistant, network-caching equipment.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technical staff who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by said protection range with claim.