WO2011144097A2 - Method, apparatus and system for rearrangement and extraction of media data in segment - Google Patents

Method, apparatus and system for rearrangement and extraction of media data in segment Download PDF

Info

Publication number
WO2011144097A2
WO2011144097A2 PCT/CN2011/074716 CN2011074716W WO2011144097A2 WO 2011144097 A2 WO2011144097 A2 WO 2011144097A2 CN 2011074716 W CN2011074716 W CN 2011074716W WO 2011144097 A2 WO2011144097 A2 WO 2011144097A2
Authority
WO
WIPO (PCT)
Prior art keywords
sub
segment
attribute
information
rearrangement
Prior art date
Application number
PCT/CN2011/074716
Other languages
French (fr)
Chinese (zh)
Other versions
WO2011144097A3 (en
Inventor
惠宇
张园园
石腾
乐培玉
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2011/074716 priority Critical patent/WO2011144097A2/en
Priority to CN201180000721.7A priority patent/CN102217313B/en
Publication of WO2011144097A2 publication Critical patent/WO2011144097A2/en
Publication of WO2011144097A3 publication Critical patent/WO2011144097A3/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Definitions

  • the present invention relates to the field of media data processing, and in particular, to a method, a device and a system for rearranging and extracting media data in a slice.
  • the server compresses and encodes multimedia information through MVC (Multiview Video Coding), SVC (Scalable Video Coding), or AVC (Advanced Video Coding) encoding techniques.
  • MVC Multiview Video Coding
  • SVC Scalable Video Coding
  • AVC Advanced Video Coding
  • FIG. 1 is a schematic diagram of the structure of the Segment.
  • the Segment includes several Movie Fragments.
  • Movie Fragment is composed of Moof (Movie Fragment box, collectively referred to as description structure) and Media Data (Media Data). Moof is used to describe the time information and storage byte size of Media Data.
  • the storage unit of Media Data is Samples are stored one by one and stored at the decoding time.
  • the Sample consists of a NAL (Network Abstraction Layer) representing a single video frame or a series of video frames in the video stream. In a Sample, several consecutive NAL units with the same specified attributes form a Sub-sample.
  • NAL Network Abstraction Layer
  • the client When the client performs certain operations, it only needs to request some discretely stored media data in the fragment. For example, when performing fast forward operations, the client only needs to display media data at a certain rate (for example, 4 times). However, since these media data are discretely stored in the slice according to the decoding time.
  • One way of processing is that the client requests the entire fragment from the server, and then proposes the media data that it needs. The method requests a large amount of redundant media data other than the media data required by the client, resulting in waste of bandwidth and time.
  • the other is that the client first calculates the byte range of each discrete media data, and then requests the required media data from the server according to the calculated byte range. This method will require multiple requests to get the media data you need, which is slower and less efficient. Summary of the invention
  • the present invention provides a method, device, and system for rearranging and extracting media data in a slice.
  • the technical solution is as follows:
  • a method for rearranging media data in a tile comprising:
  • the index information of the sub-segment is added, and the index information includes rearrangement attribute information and location information of the sub-segment.
  • a server for rearranging media data in a fragment includes: a slicing module, a rearrangement module, and an adding module;
  • the slicing module is configured to slice media content
  • the rearrangement module is configured to physically store the media data in the segment that meets the rearrangement attribute in the process of the slice, and form a sub-segment corresponding to the rearrangement attribute, where the media data is
  • the adding module is configured to add index information of the sub-segment, where the index information includes rearrangement attribute information and location information of the sub-segment.
  • a method for extracting media data in a tile comprising:
  • index information of the sub-segment where the index information includes re-arrangement attribute information and location information of the sub-segment; and calculating, according to the index information, a byte range of the sub-segment corresponding to the predetermined re-arrangement attribute;
  • a client the client includes: an acquisition module, a calculation module, a request module, and a receiving module
  • the obtaining module is configured to obtain index information of a sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment;
  • the calculating module is configured to calculate, according to the index information, a byte range of a sub-segment corresponding to a predetermined re-arrangement attribute, where the requesting module is configured to obtain, according to the byte range request, the predetermined re-arrangement attribute
  • the receiving module is configured to receive the media data in the sub-segment corresponding to the predetermined rearrangement attribute.
  • a system for rearranging and extracting media data in a tile comprising a server and a client;
  • the server includes:
  • a slicing module for slicing media content
  • a rearrangement module configured to physically store the media data in the segment within the segment that satisfies the rearrangement attribute in a process of slicing, to form a sub-segment corresponding to the rearrangement attribute, where the media data is sampled Or subsample composition;
  • An adding module configured to add index information of the sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment;
  • a sending module configured to send, to the client, the media data in the sub-segment corresponding to the predetermined re-sorting attribute; the client includes:
  • An obtaining module configured to acquire, by the server, index information of a sub-segment, where the index information includes rearrangement attribute information and location information of the sub-segment;
  • a calculation module configured to calculate a byte range of the sub-segment corresponding to the predetermined re-arrangement attribute according to the index information
  • a requesting module configured to request, according to the byte range, the obtained re-arrangement attribute from the server Corresponding sub-segment
  • a receiving module configured to receive media data in the sub-segment corresponding to the predetermined re-sorting attribute sent by the server.
  • the technical solution provided by the embodiment of the present invention has the beneficial effects of: constituting a sub-segment corresponding to the rearrangement attribute by physically storing the media data satisfying the rearrangement attribute among the segments in the fragment; Implementing the technical solution of the index information of the sub-segment, and arranging the media data in the segment in the fragment according to different rearrangement attributes to form a sub-segment corresponding to different rearrangement attributes; acquiring index information of the sub-segment; The index information calculates a byte range of the sub-segment corresponding to the predetermined rearrangement attribute; the sub-segment corresponding to the predetermined rearrangement attribute is obtained according to the byte range request; and the sub-segment corresponding to the predetermined rearrangement attribute is obtained
  • the implementation of the technical solution of the media data can quickly and accurately extract the media data corresponding to the predetermined rearrangement attribute in the slice.
  • FIG. 1 is a schematic structural view of a segment provided in the background art of the present invention.
  • FIG. 2 is a flowchart of a method for rearranging media data in a slice according to Embodiment 1 of the present invention
  • FIG. 3 is a block diagram of a server device according to Embodiment 2 of the present invention.
  • FIG. 5 is a flowchart of a method for extracting media data in a slice according to Embodiment 4 of the present invention.
  • FIG. 6 is a block diagram of a device of a client according to Embodiment 5 of the present invention.
  • FIG. 7 is a schematic diagram of a system for rearranging and extracting media data in a slice according to Embodiment 6 of the present invention. detailed description
  • a method for re-arranging media data in a fragment the execution body of the method includes a content preparation module, an HTTP streaming server, or a distribution server.
  • the present invention does not specifically limit this, as shown in FIG. 2, Specific steps are as follows:
  • Step 101 Slice the media content, and package the slice content into a format that meets the requirements (such as 3GP format) to form a slice;
  • the media content is sliced according to a predetermined data block size
  • each Movie Fragment in Segment is composed of Moof (Movie Fragment Box) and Media Data of media data, and the media data is Sample or Sub-sample. (Subsample) Composition, in the implementation, Sample or Sub-sample is stored in Track.
  • the description item Traf (Track Fragment Box) of the track fragment in Moof is used to describe the media data in the corresponding Track Fragment.
  • the track fragment operation description item Trun (Track Fragment Run Box) in Traf is used. Describes the time information of the Sample in the Track Fragment, such as the decoding time and the synthesis time.
  • the sub-sample information item Subs (Sub-sample Information Box) is used to describe the storage byte size of all Sub-samples that make up a Sample in the Track Fragment.
  • this embodiment uses the example of rearranging the media data in a Track Fragment in the Movie Fragment as an example, and the method of rearranging the media data in the other Track Fragment in the Movie Fragment is the same;
  • Step 102 Physically reordering the media data satisfying the rearrangement attribute in the Movie Fragment of the Segment, so that the media data satisfying the rearrangement attribute is physically stored continuously, and the level corresponding to the rearrangement attribute is formed ( a sub-segment), wherein the media data is composed of Sample or Sub-sample;
  • the reordering attribute is a single attribute or a combination of any attributes.
  • the attributes include a video view, a video quality, and a frame rate.
  • the original Movie Fragment structure includes the moof and the Track Fragment, which stores a sample of 2D video; then, according to a single attribute, such as 2, 4 and 8 frame rate, the sample stored in the Track Fragment Performing rearrangement, specifically, physically storing the I frame samples of the 2x frame rate stored in the Track Fragment continuously to form a sub-segment corresponding to the 2x frame rate, and storing the 4x frame rate I frame samples stored in the Track Fragment Physically contiguous storage, forming a sub-segment corresponding to a frame rate of 4 times, physically storing the I frame samples of the 8x frame rate stored in the Track Fragment continuously, forming a sub-segment corresponding to the 8x frame rate, in the Track Fragment
  • the remaining samples stored are treated as a sub-segment.
  • the segment stores media data of multiple views as a Track Fragment, and each Sample contains multiple view video frames at the same time, and each view video frame can constitute a Sub-sample;
  • the Sample in the Track Fragment is stored in the decoding order. Where the Sample consists of multiple Sub-samples, the Sample structure in the Track Fragment is as follows:
  • the Trun in the description item Traf corresponding to the Track fragment describes the decoding time of the Sample in the Track fragment according to the decoding order, that is, the decoding time of all Sub-samples belonging to the same Sample, and the media data Sample in Trun.
  • the description order is as follows: Trun [sampleO, samplel, sample2, , sampleN] ;
  • Subs in Traf describes the storage byte size of each Sub-sample in each Sample according to the decoding order of Sample.
  • the contents of Subs are as follows:
  • the Sub-sample belonging to the same Sample has the same time information.
  • the sampleO decoding time is the first (seconds), then the subsample sub-sample (0, 0), sub- in SampleO.
  • the decoding time of sample (0, 1) , ..., sub-sample (0, k) is the first Is, and the time information of Samplel is 1.
  • Is, the subsample sub-sample (1, 0) in Samplel , sub-sample (1, 1) , •••sub-sample (1, m) decoding time is 1.
  • the decoding time of N, 1) and -sub-sample (N, n) is the xth second;
  • the sub-samples of the same reordering attribute are physically contiguously stored to form a sub-segment, and the sub-samplings in the sub-segment are still stored according to the decoding order of the original samples, for example, as described above, the same weight is
  • the sub-sample (0, 0) of the row attribute belongs to SampleO, the decoding time is 1 second; the sub-sample (1, 0) belongs to the 1.
  • sub-sample ( ⁇ , ⁇ ) belongs to SampleN,
  • the decoding time is the xth second; in the sub-segment, the sub-samples with the same rearrangement attribute are stored in the order of sub-sample (0, 0), sub-sample (1, 0), •••sub -sample (N, 0);
  • pair () represents a sub-segment
  • the step further includes: using a first description item in the description structure Moof in the fragment, such as a track fragment operation description item, according to a decoding order of the samples to which the sub-sample belongs Describe the decoding order of the subsamples;
  • the first description item Trim describes the structure unchanged, and still follows
  • the decoding order of the original Sample describes the time information of the Sample, that is, all Sub-samples belonging to the Sample have the same time information, the storage order of the Sub-sample in a sub-segment and the storage order of the Sample before the sorting. Still consistent.
  • the Subs can obtain the correspondence between Sample and Sub-sample, so use the Sample time letter.
  • the second description item in the description structure Moof in the fragment such as the sub-sample information description item, describes the storage byte size of the sub-sample according to the decoding order of the samples to which the sub-sample belongs;
  • the second description item Subs describes the structure unchanged, and still describes the byte storage size of each Sub-sample in the Sample according to the decoding order of the original Sample.
  • the third description item is used to identify the physical storage structure of the Sub-sample, and is defined as follows:
  • the fourth new description item in Moof describes the correspondence between the sub-sample and the sub-segment to which the sub-sample belongs according to the decoding order of the samples to which the sub-sample belongs.
  • the fourth description item is used to describe the correspondence between the Sub-sample and the sub-segment level to which it belongs.
  • the fourth description item is as follows:
  • SubsToLevelBox extends Ful lBox ( ' stlf, , version, 0) ⁇ unsigned int (32) entry— count ;
  • the fourth description item is similar to the structure of Subs, and the order of description of sub-sample is the same, and is still described in the order in which Sub-samples are stored in the Sample.
  • the structure parameter level_ident defines the identifier of the level to which each Sub-sample belongs. The identifier can start from a predetermined value (such as 1) and is incremented by the predetermined value in the order in which the order is stored. It should be noted that, when there is a Sub-sample that does not belong to any level, the level- identify corresponding to the Sub-sample that does not belong to any level is 0.
  • the parameter level_ identify takes a value from 1
  • the following structure describes the correspondence between each Sub-sample and level of the two levels obtained above, that is, the first Sub-sample in each Sample. Belonging to the first level, the other Sub-sample belongs to the second level, then the structure of the fourth description item is as follows:
  • SampleO contains subsamples Sub-sample (0, 1) and Sub-sample (0, 2), and these two subsamples correspond to sub-segments levell and level2, respectively
  • Samplel contains sub-samples Sub-sample (1, 1) and Sub-sample (1, 2), and these two subsamples correspond to the sub-segments levell and level2 respectively.
  • Subs describes the decoding time of the subsample, it also describes the information of the subsegment to which the subsample belongs. Then, at this time, the fourth description item may not be defined.
  • the embodiment of the present invention supports the case of rearranging media data according to a combination of any attributes.
  • each Sample contains multiple view video frames at the same time, and each view video frame can constitute a Sub-sample.
  • a plurality of sub-segments are formed; for example, a sub-sample of an I frame representing a frame rate of 2 times of the view angle 1 is physically stored continuously to form a sub-segment, and an I representing a frame rate of 4 times of the angle of view 1 is formed.
  • the sub-sample of the frame is physically stored contiguously, forming another sub-segment, and so on.
  • Step 103 Add index information to the sub-segment, where the index information includes attribute information and location information of the sub-segment; what is needed is that, in a Segment, some tracks of the Movie Fragment may be followed according to certain rearrangement attributes.
  • the Sample in Fragment performs physical reordering, and the Sample that satisfies the reordering property continuously stored after physical reordering constitutes several sub-segments level; and Sub-sample in other Track Fragment of Movie Fragment can also be followed according to some reordering attributes.
  • Physical reordering, Sub-Sample satisfying the rearrangement attribute continuously stored after physical reordering may constitute several sub-segment levels;
  • a slice contains a number of Movie Fragments, and may also include a slice index item Sidx.
  • Sub-slice index item Ssix (SubsSubsegmentlndexBox) and other index items, which are used to describe the index information of the Movie Fragment in the fragment.
  • Ssix can be used to describe the location information and reordering attribute information of level; in the specific operation, these index items can also be extracted separately and stored in an index file.
  • adding index information for the sub-segment specifically includes:
  • Table 1 exemplarily shows the position information of the level described in the sub-slice index item Ssix, as follows:
  • SubsegmentlndexBox extends Ful lBox ( 'Ssix' , 0, 0) Unsigned int (32) Subsegment count;
  • Table 2 exemplarily shows the reordering attribute information describing level in Ssix in the fragment, as follows:
  • the position information of the sub-segment level and the method of adding the rearrangement attribute letter in the index item Sidx in the slice may be the same as the position information and the rearrangement attribute information added in the Ssix level, and will not be described here.
  • Table 3 exemplarily shows the attribute information of the level added in the MPD, as follows:
  • the index information of the level can also be added in the index file.
  • the addition method is similar to the method of adding the level index information in Ssix, and will not be described here.
  • the embodiment of the present invention physically stores the media data satisfying the rearrangement attribute in the segments in the fragment to form a sub-segment corresponding to the rearrangement attribute; and implements the technical solution of adding the index information of the sub-segment
  • the media data in the segment in the segment is arranged according to different rearrangement attributes to form a sub-segment corresponding to different rearrangement attributes, and the rearrangement attribute of the sub-segment is a single attribute or a combination of attributes, so that the user can quickly and accurately
  • the index information of the sub-segments of the different rearrangement attributes the sub-segments of the required rearrangement attributes are found, and the media data is obtained therefrom.
  • a server may be a media data preparation module, an HTTP streaming server, or a distribution server.
  • the present invention does not specifically limit the present invention, and includes: a slicing module 200, a reordering module 201, and an adding Module 202, the following describes each functional module in detail:
  • a slicing module 200 configured to slice media content
  • the rearrangement module 201 is configured to physically store the media data satisfying the rearrangement attribute in the segments in the fragment in a slicing process to form a sub-segment corresponding to the rearrangement attribute;
  • the media data consists of samples or subsamples
  • the reordering attribute is a single attribute or a combination of any attributes, and specifically one attribute includes a video view, a video quality, and a frame rate.
  • the adding module 202 is configured to add index information of the sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment. Specifically, the adding module 202 includes:
  • a first adding unit 2021 configured to add index information of the sub-segment in the index item in the fragment;
  • a second adding unit 2022 configured to add reordering attribute information of the sub-segment in the media presentation description MPD, and add location information of the sub-segment in the index file;
  • a third adding unit 2023 configured to add reordering attribute information of the sub-segment in the media presentation description MPD, and add location information of the sub-segment in the index item in the fragment;
  • the fourth adding unit 2024 is configured to add index information of the sub-segment in the index file.
  • the server when the rearrangement module 201 is configured to physically store the media data satisfying the rearrangement attribute among the segments in the fragment to form a sub-segment corresponding to the rearrangement attribute, and the media data is composed of the sub-sample, the server also includes:
  • a first description module 203 configured to describe, by using a first description item in the description structure Moof in the fragment, a decoding order of the sub-sample according to a decoding order of the samples to which the sub-sample belongs;
  • a second description module 204 configured to describe, by using a second description item in the description structure Moof in the fragment, a storage byte size of the subsample according to a decoding order of the samples to which the subsample belongs;
  • the third description module 205 is configured to identify a physical storage structure of the subsample by using a third description item added in the description structure Moof in the fragment.
  • the fourth description unit 206 is configured to describe, by using the fourth description item in the description structure in the fragment, the correspondence between the sub-sample and the sub-segment to which the sub-sample belongs according to the decoding order of the sample to which the sub-sample belongs.
  • the embodiment of the present invention physically stores the media data satisfying the rearrangement attribute in the segments in the fragment to form a sub-segment corresponding to the rearrangement attribute; and implements the technical solution of adding the index information of the sub-segment , the media data in the segment in the fragment is made into a sub-segment of different rearrangement attributes, and the rearrangement attribute of the sub-segment is a single attribute or a combination of attributes, so that the user can quickly and accurately according to the child of the different rearrangement attribute.
  • the index information of the fragment finds the sub-segment of the desired reordering attribute and obtains the media data therefrom.
  • a method for extracting media data in a fragment includes any client, such as a mobile phone, a PC, etc., and the present invention does not specifically limit this, and the details are as follows:
  • Step 301 Obtain index information of the sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment;
  • Step 302 calculate, according to the index information, a byte range of the sub-segment corresponding to the predetermined re-arrangement attribute;
  • Step 303 Request a sub-segment corresponding to the predetermined reordering attribute according to the byte range;
  • Step 304 Receive media data in a sub-segment corresponding to the predetermined rearrangement attribute.
  • the media data consists of samples or subsamples;
  • the reordering attribute is a single attribute or a combination of any attributes.
  • the attributes include a video view, a video quality, and a frame rate.
  • the embodiment of the present invention calculates a byte range of a sub-segment corresponding to a predetermined rearrangement attribute according to the index information; and obtains the sub-segment corresponding to the predetermined rearrangement attribute according to the byte range request; receiving the predetermined
  • the implementation of the technical solution of the media data in the sub-segment corresponding to the rearrangement attribute, the client can quickly and accurately extract the media data corresponding to the predetermined rearrangement attribute in the fragment.
  • a method for extracting media data in a fragment the execution body of the method includes any client, such as a mobile phone, a PC, etc., and the present invention does not specifically limit this, and the specific steps are as follows:
  • Step 401 Send an MPD request to the server
  • the client obtains a URL (Uniform Resource Locator) of the MPD (Media Presentation Description) through the external connection, and sends an MPD request to the distribution server through the URL; the server receives the MPD request. After that, the MPD information is sent to the client;
  • a URL Uniform Resource Locator
  • MPD Media Presentation Description
  • Step 402 Receive MPD information sent by the server, and obtain a segment address from the MPD information.
  • Step 403 Obtain index information of a sub-segment level in the slice, where the index information includes level re-arrangement attribute information and location.
  • the reordering attribute is a single attribute or a combination of any attributes.
  • the attributes include a video view, a video quality, and a frame rate.
  • obtaining index information of the level in the fragment includes:
  • the range is preferably a byte range of 0 to 1000;
  • Step 404 Obtaining the index file according to the address of the index file in the MPD, and acquiring the index file from the server according to the obtained address file to obtain the index information of the level stored in the index file.
  • Step 404 Obtain a byte range of a level corresponding to the predetermined rearrangement attribute according to the index information. Specifically, obtaining a byte range of the level corresponding to the predetermined rearrangement attribute according to the index information, including: rearranging the acquired sub-segment In the attribute information, the re-arrangement attribute information of the sub-segment level matching the predetermined re-arrangement attribute is found;
  • the location information of the obtained sub-segment is searched according to the re-arrangement attribute information of the level matching the predetermined re-arrangement attribute;
  • Step 405 Request a level corresponding to the predetermined reordering attribute from the server according to the calculated byte range.
  • the request is sent to the server according to the calculated byte range and the fragment address; after receiving the request, the server sends the level in the byte range corresponding to the fragment address to the client.
  • Step 406 Receive the level returned by the server and obtain media data from it.
  • the embodiment of the present invention calculates a byte range of a sub-segment corresponding to a predetermined rearrangement attribute according to the index information; and requests the sub-segment corresponding to the predetermined rearrangement attribute according to the byte range; receiving the predetermined weight
  • the implementation of the technical solution of the media data in the sub-segment corresponding to the row attribute can quickly and accurately acquire the media data corresponding to the predetermined rearrangement attribute in the fragment.
  • a client which may be a user terminal such as a mobile phone or a PC, is not specifically limited in the present invention, and includes: an obtaining module 501, a calculating module 502, a requesting module 503, and a receiving module 504. The following describes each function module in detail:
  • the obtaining module 501 is configured to obtain index information of the sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment;
  • the calculating module 502 is configured to calculate, according to the index information, a byte range of the sub-segment corresponding to the predetermined re-arrangement attribute; the requesting module 503, configured to obtain, according to the byte range request, the sub-segment corresponding to the predetermined re-arrangement attribute;
  • the receiving module 504 is configured to receive media data in a sub-segment corresponding to the predetermined re-arrangement attribute.
  • the reordering attribute is a single attribute or a combination of any attributes.
  • the attributes include a video view, a video quality, and a frame rate.
  • the obtaining module 501 includes:
  • a first obtaining unit 5011 configured to acquire index information of a sub-segment stored in an index item in the fragment
  • a second obtaining unit 5012 configured to acquire re-arrangement attribute information of the sub-segment stored in the media presentation description MPD, and Acquiring the location information of the sub-segment stored in the index entry in the fragment, so as to obtain the index information of the sub-segment
  • the third obtaining unit 5013 configured to acquire the re-arrangement attribute information of the sub-segment stored in the media presentation description MPD, and obtain Indexing the location information of the sub-segments stored in the file, thereby obtaining index information of the sub-segments; or
  • the fourth obtaining unit 5014 is configured to obtain index information of the sub-segments stored in the index file.
  • the calculation module 502 includes:
  • the first searching unit 5021 is configured to: in the reordering attribute information of the sub-segment, search for re-arrangement attribute information of the sub-segment matching the predetermined re-arrangement attribute;
  • the second searching unit 5022 is configured to: in the location information of the sub-segment, search for location information of the sub-segment matching the predetermined re-arrangement attribute according to the re-arrangement attribute information of the sub-segment matching the predetermined re-arrangement attribute;
  • the calculating unit 5023 is configured to calculate a byte range of the sub-segment matching the predetermined rearrangement attribute according to the position information of the sub-segment matching the predetermined re-arrangement attribute.
  • the embodiment of the present invention calculates a byte range of a sub-segment corresponding to a predetermined rearrangement attribute according to the index information; and requests the sub-segment corresponding to the predetermined rearrangement attribute according to the byte range; receiving the predetermined weight
  • the implementation of the technical solution of the media data in the sub-segment corresponding to the row attribute can quickly and accurately acquire the media data corresponding to the predetermined rearrangement attribute in the fragment.
  • an embodiment of the present invention provides a system for rearranging and extracting media data in a fragment.
  • the system includes a server 61 and a client 62.
  • the server 61 may specifically be a media data preparation module and an HTTP stream.
  • the client can be a user terminal such as a mobile phone or a PC. The following system is described in detail below:
  • the server 61 includes:
  • a slicing module 610 configured to slice media content
  • the rearrangement module 611 is configured to physically store the media data in the segment that meets the rearrangement attribute in the process of the slice, to form a sub-segment corresponding to the rearrangement attribute, and the media data is sampled or subsampled Constitute
  • the adding module 612 is configured to add index information of the sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment;
  • the sending module 613 is configured to send, to the client, the media data in the sub-segment corresponding to the predetermined re-sorting attribute; the client 62 includes:
  • the obtaining module 621 is configured to obtain index information of the sub-segment from the server, where the index information includes re-arrangement attribute information and location information of the sub-segment; a calculation module 622, configured to calculate, according to the index information, a byte range of the sub-segment corresponding to the predetermined re-arrangement attribute; the requesting module 623, configured to request, from the server, the sub-segment corresponding to the predetermined re-arrangement attribute according to the byte range; The module 624 is configured to receive media data in the sub-segment corresponding to the predetermined re-sorting attribute sent by the server.
  • the embodiment of the present invention physically stores the media data satisfying the rearrangement attribute in the segments in the fragment to form a sub-segment corresponding to the rearrangement attribute; and implements the technical solution of adding the index information of the sub-segment And arranging the media data in the segment in the fragment according to different rearrangement attributes to form a sub-segment corresponding to different rearrangement attributes; acquiring index information of the sub-segment; and calculating, according to the index information, a corresponding to the predetermined rearrangement attribute a byte range of the sub-segment; requesting the sub-segment corresponding to the predetermined re-arrangement attribute according to the byte range; implementing the technical solution of receiving the media data in the sub-segment corresponding to the predetermined re-arrangement attribute, the client
  • the media data corresponding to the predetermined rearrangement attribute can be obtained in the slice quickly and accurately.

Abstract

A method, an apparatus and a system for rearrangement and extraction of media data in segment are disclosed in the present invention which belongs to the field of media data processing. The rearrangement method includes: segmenting media content; during the segmenting process, continuously and physically storing media data fulfilled with a rearrangement attribute in the fragments of the segment, and composing sub-fragments corresponding to the rearrangement attribute, wherein, the media data is composed with samples or sub-samples; adding index information of the sub-fragments, wherein, the index information includes the rearrangement attribute information and location information of the sub-fragment; obtaining the index information of the sub-fragments, wherein the index information includes the rearrangement attribute information and location information of the sub-fragment; calculating the range of byte of the sub-fragments corresponding to a predetermined rearrangement attribute according to the index information; and requesting and receiving the sub-fragments corresponding to the predetermined rearrangement attribute according to the range of the byte. It enables the client to obtain the media data corresponding to the rearrangement attribute in the segments quickly and precisely.

Description

重排、 抽取分片中媒体数据的方法、 设备及系统 技术领域  Method, device and system for rearranging and extracting media data in slices
本发明涉及媒体数据处理领域, 具体涉及一种重排、 抽取分片中媒体数据的方法、 设 备及系统。  The present invention relates to the field of media data processing, and in particular, to a method, a device and a system for rearranging and extracting media data in a slice.
 Say
背景技术 Background technique
随着因特网的快速发展, 多媒体信息 (如动画、 影音等) 在网络上的传输越来越频繁 和重要。 通常, 服务器将多媒体信息经 MVC (Multiview Video Coding, 多视角视频编码)、 SVC ( Scalable Video Coding, 可扩展视频编码) 或书者 AVC (Advanced Video Coding, 高 级视频编码) 等编码技术压縮编码形成一路或多路视频流后存储在多媒体文件中, 并可将 多媒体文件生成不同的 Segment (分片), 使客户端根据实际情况选择下载相应的 Segment , 以提高多媒体文件在网络中的传输效率。  With the rapid development of the Internet, the transmission of multimedia information (such as animation, audio and video, etc.) on the network is more and more frequent and important. Generally, the server compresses and encodes multimedia information through MVC (Multiview Video Coding), SVC (Scalable Video Coding), or AVC (Advanced Video Coding) encoding techniques. One or more video streams are stored in the multimedia file, and the multimedia file can be generated into different segments, so that the client selects and downloads the corresponding segment according to the actual situation, so as to improve the transmission efficiency of the multimedia file in the network.
参见图 1, 为 Segment的结构示意图, Segment包括若干个 Movie Fragment (片段)。 其中, Movie Fragment贝 lj由 Moof (Movie Fragment box, 这里统称为描述结构) 禾口 Media Data (媒体数据)构成, Moof用于描述 Media Data的时间信息和存储字节大小, Media Data 的存储单元是一个个 Sample (样本), 并按解码时间存储。 Sample 由视频流中表示一个单 独视频帧或者一系列视频帧的 NAL (Network Abstraction Layer, 网络提取层) 构成。 在 一个 Sample中, 若干个连续的指定属性相同的 NAL单元可构成一个 Sub-sample (子样本)。  See Figure 1, which is a schematic diagram of the structure of the Segment. The Segment includes several Movie Fragments. Among them, Movie Fragment is composed of Moof (Movie Fragment box, collectively referred to as description structure) and Media Data (Media Data). Moof is used to describe the time information and storage byte size of Media Data. The storage unit of Media Data is Samples are stored one by one and stored at the decoding time. The Sample consists of a NAL (Network Abstraction Layer) representing a single video frame or a series of video frames in the video stream. In a Sample, several consecutive NAL units with the same specified attributes form a Sub-sample.
当客户端执行某些操作时, 只需要请求分片中部分离散存储的媒体数据, 例如, 进行 快进操作时, 客户端只需要展现某个速率 (例如 4倍) 的媒体数据。 但由于在分片中这些 媒体数据按照解码时间被离散存储。 一种处理方式是客户端向服务器请求整个分片, 再从 中提出自己所需的媒体数据; 该方法会请求得到除客户端所需媒体数据以外的大量冗余媒 体数据, 造成带宽和时间的浪费; 另一种是客户端首先计算出各离散媒体数据的字节范围 后, 再根据计算得到的字节范围向服务器分别请求所需的媒体数据。 该方法将要分多次请 求才能得到自己所需的媒体数据, 速度及效率较低。 发明内容  When the client performs certain operations, it only needs to request some discretely stored media data in the fragment. For example, when performing fast forward operations, the client only needs to display media data at a certain rate (for example, 4 times). However, since these media data are discretely stored in the slice according to the decoding time. One way of processing is that the client requests the entire fragment from the server, and then proposes the media data that it needs. The method requests a large amount of redundant media data other than the media data required by the client, resulting in waste of bandwidth and time. The other is that the client first calculates the byte range of each discrete media data, and then requests the required media data from the server according to the calculated byte range. This method will require multiple requests to get the media data you need, which is slower and less efficient. Summary of the invention
为了解决在请求分片中部分离散存储的媒体数据时出现大量冗余数据或者需多次请求 等问题, 本发明实施例提供了一种重排、 抽取分片中媒体数据的方法、 设备及系统, 所述 技术方案如下: In order to solve a large amount of redundant data or multiple requests in order to partially discard the stored media data in the request fragment The present invention provides a method, device, and system for rearranging and extracting media data in a slice. The technical solution is as follows:
一种重排分片中媒体数据的方法, 所述方法包括:  A method for rearranging media data in a tile, the method comprising:
获取分片内的片段中满足重排属性的媒体数据, 所述媒体数据由样本或子样本构成; 将分片内的片段中满足重排属性的媒体数据在物理上连续存储, 构成与所述重排属性 对应的子片段;  Obtaining, in the fragment, a media data that satisfies a reordering attribute, where the media data is composed of a sample or a subsample; and media data that satisfies the rearrangement attribute in the fragment in the fragment is physically and continuously stored, and is configured and configured Rearranging the sub-segments corresponding to the attributes;
添加所述子片段的索引信息, 所述索引信息包括所述子片段的重排属性信息和位置信 息。  The index information of the sub-segment is added, and the index information includes rearrangement attribute information and location information of the sub-segment.
一种重排分片中媒体数据的服务端, 所述服务端包括: 切片模块、 重排模块和添加模 块;  A server for rearranging media data in a fragment, the server includes: a slicing module, a rearrangement module, and an adding module;
所述切片模块, 用于对媒体内容进行切片;  The slicing module is configured to slice media content;
所述重排模块, 用于在切片的过程中, 将分片内的片段中满足重排属性的媒体数据在 物理上连续存储, 构成与所述重排属性对应的子片段, 所述媒体数据由样本或子样本构成; 所述添加模块, 用于添加所述子片段的索引信息, 所述索引信息包括所述子片段的重 排属性信息和位置信息。  The rearrangement module is configured to physically store the media data in the segment that meets the rearrangement attribute in the process of the slice, and form a sub-segment corresponding to the rearrangement attribute, where the media data is And the adding module is configured to add index information of the sub-segment, where the index information includes rearrangement attribute information and location information of the sub-segment.
一种抽取分片中媒体数据的方法, 所述方法包括:  A method for extracting media data in a tile, the method comprising:
获取子片段的索引信息, 所述索引信息包括子片段的重排属性信息和位置信息; 根据所述索引信息计算与预定重排属性对应的子片段的字节范围;  And acquiring index information of the sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment; and calculating, according to the index information, a byte range of the sub-segment corresponding to the predetermined re-arrangement attribute;
根据所述字节范围请求所述与预定重排属性对应的子片段;  And requesting, according to the byte range, the sub-segment corresponding to the predetermined rearrangement attribute;
获取所述与预定重排属性对应的子片段中的媒体数据。  Obtaining the media data in the sub-segment corresponding to the predetermined rearrangement attribute.
一种客户端, 所述客户端包括: 获取模块、 计算模块、 请求模块和接收模块  A client, the client includes: an acquisition module, a calculation module, a request module, and a receiving module
所述获取模块, 用于获取子片段的索引信息, 所述索引信息包括子片段的重排属性信 息和位置信息;  The obtaining module is configured to obtain index information of a sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment;
所述计算模块, 用于根据所述索引信息计算与预定重排属性对应的子片段的字节范围; 所述请求模块, 用于根据所述字节范围请求得到所述与预定重排属性对应的子片段; 所述接收模块, 用于接收所述与预定重排属性对应的子片段中的媒体数据。  The calculating module is configured to calculate, according to the index information, a byte range of a sub-segment corresponding to a predetermined re-arrangement attribute, where the requesting module is configured to obtain, according to the byte range request, the predetermined re-arrangement attribute The receiving module is configured to receive the media data in the sub-segment corresponding to the predetermined rearrangement attribute.
一种在重排并抽取分片中媒体数据的系统, 所述系统包括服务端和客户端;  A system for rearranging and extracting media data in a tile, the system comprising a server and a client;
所述服务端包括:  The server includes:
切片模块, 用于对媒体内容进行切片;  a slicing module for slicing media content;
重排模块, 用于在切片的过程中, 将分片内的片段中满足重排属性的媒体数据在物理 上连续存储, 构成与所述重排属性对应的子片段, 所述媒体数据由样本或子样本构成; 添加模块, 用于添加所述子片段的索引信息, 所述索引信息包括所述子片段的重排属 性信息和位置信息; a rearrangement module, configured to physically store the media data in the segment within the segment that satisfies the rearrangement attribute in a process of slicing, to form a sub-segment corresponding to the rearrangement attribute, where the media data is sampled Or subsample composition; An adding module, configured to add index information of the sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment;
发送模块, 用于向所述客户端发送所述与预定重排属性对应的子片段中的媒体数据; 所述客户端包括:  a sending module, configured to send, to the client, the media data in the sub-segment corresponding to the predetermined re-sorting attribute; the client includes:
获取模块, 用于向所述服务端获取子片段的索引信息, 所述索引信息包括子片段的重 排属性信息和位置信息;  An obtaining module, configured to acquire, by the server, index information of a sub-segment, where the index information includes rearrangement attribute information and location information of the sub-segment;
计算模块, 用于根据所述索引信息计算与预定重排属性对应的子片段的字节范围; 请求模块, 用于根据所述字节范围向所述服务端请求得到所述与预定重排属性对应的 子片段;  a calculation module, configured to calculate a byte range of the sub-segment corresponding to the predetermined re-arrangement attribute according to the index information; and a requesting module, configured to request, according to the byte range, the obtained re-arrangement attribute from the server Corresponding sub-segment;
接收模块, 用于接收所述服务端发送的所述与预定重排属性对应的子片段中的媒体数 据。  And a receiving module, configured to receive media data in the sub-segment corresponding to the predetermined re-sorting attribute sent by the server.
本发明实施例提供的技术方案带来的有益效果是: 通过将分片内的片段中满足重排属 性的媒体数据在物理上连续存储, 构成与所述重排属性对应的子片段; 添加所述子片段的 索引信息的技术方案的实现, 将分片内的片段中的媒体数据按照不同重排属性进行排列构 成与不同重排属性相对应的子片段; 获取子片段的索引信息; 根据所述索引信息计算与预 定重排属性对应的子片段的字节范围; 根据所述字节范围请求得到所述与预定重排属性对 应的子片段; 获取所述与预定重排属性对应的子片段中的媒体数据的技术方案的实现, 可 以快速而准确地在分片中抽取与预定重排属性对应的媒体数据。 附图说明  The technical solution provided by the embodiment of the present invention has the beneficial effects of: constituting a sub-segment corresponding to the rearrangement attribute by physically storing the media data satisfying the rearrangement attribute among the segments in the fragment; Implementing the technical solution of the index information of the sub-segment, and arranging the media data in the segment in the fragment according to different rearrangement attributes to form a sub-segment corresponding to different rearrangement attributes; acquiring index information of the sub-segment; The index information calculates a byte range of the sub-segment corresponding to the predetermined rearrangement attribute; the sub-segment corresponding to the predetermined rearrangement attribute is obtained according to the byte range request; and the sub-segment corresponding to the predetermined rearrangement attribute is obtained The implementation of the technical solution of the media data can quickly and accurately extract the media data corresponding to the predetermined rearrangement attribute in the slice. DRAWINGS
图 1是本发明背景技术中提供的分片的结构示意图;  1 is a schematic structural view of a segment provided in the background art of the present invention;
图 2是本发明实施例 1提供的一种重排分片中媒体数据的方法流程图;  2 is a flowchart of a method for rearranging media data in a slice according to Embodiment 1 of the present invention;
图 3是本发明实施例 2提供的一种服务端的装置框图;  3 is a block diagram of a server device according to Embodiment 2 of the present invention;
图 4是本发明实施例 3提供的一种抽取分片中媒体数据的方法流程图;  4 is a flowchart of a method for extracting media data in a slice according to Embodiment 3 of the present invention;
图 5是本发明实施例 4提供的一种抽取分片中媒体数据的方法流程图;  FIG. 5 is a flowchart of a method for extracting media data in a slice according to Embodiment 4 of the present invention; FIG.
图 6是本发明实施例 5提供的一种客户端的装置框图;  6 is a block diagram of a device of a client according to Embodiment 5 of the present invention;
图 7是本发明实施例 6提供的一种重排并抽取分片中媒体数据的系统示意图。 具体实施方式  FIG. 7 is a schematic diagram of a system for rearranging and extracting media data in a slice according to Embodiment 6 of the present invention. detailed description
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明实施方式作 进一步地详细描述。 实施例 1 The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Example 1
参见图 2, 一种在重排分片中媒体数据的方法, 该方法的执行主体包括内容准备模块、 HTTP流媒体服务器或分发服务器等, 本发明对此不做具体的限制, 参见图 2, 具体步骤如 下:  Referring to FIG. 2, a method for re-arranging media data in a fragment, the execution body of the method includes a content preparation module, an HTTP streaming server, or a distribution server. The present invention does not specifically limit this, as shown in FIG. 2, Specific steps are as follows:
步骤 101 : 将媒体内容进行切片, 并将切片内容封装成符合要求的格式(如 3GP格式), 形成分片;  Step 101: Slice the media content, and package the slice content into a format that meets the requirements (such as 3GP format) to form a slice;
具体地, 按照预定数据块大小将媒体内容进行切片;  Specifically, the media content is sliced according to a predetermined data block size;
参见图 1, Segment (分片) 中每个 Movie Fragment (片段) 由媒体数据的 Moof (Movie Fragment Box, 描述结构) 和 Media Data (媒体数据) 构成, 媒体数据由 Sample (样本) 或 Sub-sample (子样本) 构成, 在具体实现时, Sample (样本) 或 Sub-sample (子样本) 存储在 Track (存储单元) 中。  Referring to Figure 1, each Movie Fragment in Segment is composed of Moof (Movie Fragment Box) and Media Data of media data, and the media data is Sample or Sub-sample. (Subsample) Composition, in the implementation, Sample or Sub-sample is stored in Track.
其中, Moof 中轨道片段的描述项 Traf ( Track Fragment Box ) 用于描述相应 Track Fragment (轨道片段)中的媒体数据, 具体地, Traf 中的轨道片段运作描述项 Trun ( Track Fragment Run Box) 用于描述 Track Fragment中 Sample的时间信息, 如解码时间、 合成 时间, 子样本信息描述项 Subs ( Sub-sample Information Box) 用于描述 Track Fragment 中组成一个 Sample的所有 Sub-sample的存储字节大小。  The description item Traf (Track Fragment Box) of the track fragment in Moof is used to describe the media data in the corresponding Track Fragment. Specifically, the track fragment operation description item Trun (Track Fragment Run Box) in Traf is used. Describes the time information of the Sample in the Track Fragment, such as the decoding time and the synthesis time. The sub-sample information item Subs (Sub-sample Information Box) is used to describe the storage byte size of all Sub-samples that make up a Sample in the Track Fragment.
下面, 本实施例就以在 Movie Fragment中的一个 Track Fragment中重排媒体数据为 例来进行相关说明, 在 Movie Fragment中其他 Track Fragment中重排媒体数据的方法与 此相同;  In the following, this embodiment uses the example of rearranging the media data in a Track Fragment in the Movie Fragment as an example, and the method of rearranging the media data in the other Track Fragment in the Movie Fragment is the same;
步骤 102: Segment (分片) 的 Movie Fragment (片段) 中满足重排属性的媒体数据 进行物理重排序, 使满足重排属性的媒体数据在物理上连续存储, 构成与重排属性对应的 level (子片段), 其中, 媒体数据由 Sample或 Sub-sample构成;  Step 102: Physically reordering the media data satisfying the rearrangement attribute in the Movie Fragment of the Segment, so that the media data satisfying the rearrangement attribute is physically stored continuously, and the level corresponding to the rearrangement attribute is formed ( a sub-segment), wherein the media data is composed of Sample or Sub-sample;
其中, 重排属性为单一属性或任意属性的组合, 具体地, 属性包括视频视角、 视频质 量和帧率。  The reordering attribute is a single attribute or a combination of any attributes. Specifically, the attributes include a video view, a video quality, and a frame rate.
现举例说明如何将 Track Fragment中满足重排属性的 Sample进行物理重排序, 如下 所述:  Here is an example of how to physically reorder the Samples in the Track Fragment that satisfy the reordering properties, as follows:
原有 Movie Fragment结构包括 moof禾口 Track Fragment , 该 Track Fragment存储了一 路 2D视频的样本;那么,按照单一属性,如按照 2倍、 4倍和 8倍帧率,将该 Track Fragment 中存储的样本进行重排, 具体地, 将 Track Fragment中存储的 2倍帧率的 I帧样本物理上 连续存储, 构成与 2倍帧率对应的子片段, 将 Track Fragment中存储的 4倍帧率 I帧样本 物理上连续存储, 构成与 4倍帧率对应的子片段, 将 Track Fragment中存储的 8倍帧率的 I帧样本在物理上连续存储, 构成与 8倍帧率对应的子片段, Track Fragment中存储的剩 余的样本作为一个子片段。 The original Movie Fragment structure includes the moof and the Track Fragment, which stores a sample of 2D video; then, according to a single attribute, such as 2, 4 and 8 frame rate, the sample stored in the Track Fragment Performing rearrangement, specifically, physically storing the I frame samples of the 2x frame rate stored in the Track Fragment continuously to form a sub-segment corresponding to the 2x frame rate, and storing the 4x frame rate I frame samples stored in the Track Fragment Physically contiguous storage, forming a sub-segment corresponding to a frame rate of 4 times, physically storing the I frame samples of the 8x frame rate stored in the Track Fragment continuously, forming a sub-segment corresponding to the 8x frame rate, in the Track Fragment The remaining samples stored are treated as a sub-segment.
现举例说明如何将 Track Fragment中满足重排属性的 Sub-sample进行物理重排序, 使满足重排属性的 Sub-sample在物理上连续存储, 构成与重排属性对应的子片段, 如下所 述:  An example is given to how to physically reorder Sub-samples in the Track Fragment that satisfy the reordering attribute, so that the Sub-samples that satisfy the reordering attributes are physically stored continuously, and constitute sub-segments corresponding to the re-arranged attributes, as follows:
Segment中将多个视角的媒体数据存储为一个 Track Fragment中, 每个 Sample包含了 同一时刻多个视角视频帧, 每个视角视频帧可构成一个 Sub-sample;  The segment stores media data of multiple views as a Track Fragment, and each Sample contains multiple view video frames at the same time, and each view video frame can constitute a Sub-sample;
该 Track Fragment 中的 Sample 按照解码顺序进行存储, 其中, Sample 由多个 Sub-sample构成, 则该 Track Fragment中的 Sample的存储结构如下:  The Sample in the Track Fragment is stored in the decoding order. Where the Sample consists of multiple Sub-samples, the Sample structure in the Track Fragment is as follows:
{ 【sub_sample (0, 0) , sub_sample (0, 1), - " 31113_3腿 16 (0, k)】,  { [sub_sample (0, 0) , sub_sample (0, 1), - " 31113_3 leg 16 (0, k)],
【 sub-sample (1, 0) , sub-sample (1, 1) , " ' 31113_3腿 16 (1, m)】,  [sub-sample (1, 0) , sub-sample (1, 1) , " ' 31113_3 leg 16 (1, m)],
【 sub-sample (N, 0) , sub-sample (N, 1) ,•••sub-sample (N, n)】 } [sub-sample (N, 0) , sub-sample (N, 1) ,•••sub-sample (N, n)] }
其中, 【 sub-sample (0, 0) , sub-sample (0, 1) , ···, sub-sample (0, k)】为 SampleO, M 码时间为第 Is (秒); 【 sub-sample (1, 0) , sub-sample (1, 1) , …, sub-sample (1, m)】 为 Samplel , 解码时间为第 L is;、 … 、 [ sub-sample (N, 0) , sub-sample (Ν, 1) , sub-sample (Ν, η)】为 SampleN, 解码时间为第 x秒; 其中 Sub- sample (i, j)表示第 ( i+1 ) 个 Sample的第 (j+1 )个 Sub-sample, 其中, k、 m、 n、 可能相等也可能不等, 本发明对此 并不做具体的限制。  Where [sub-sample (0, 0) , sub-sample (0, 1) , ···, sub-sample (0, k)] is SampleO, M code time is the first (seconds); [sub- Sample (1, 0) , sub-sample (1, 1) , ..., sub-sample (1, m)] is Samplel, and the decoding time is L is;, ..., [ sub-sample (N, 0) , Sub-sample (Ν, 1) , sub-sample (Ν, η)] is SampleN, and the decoding time is xth seconds; where Sub-sample (i, j) represents the (i+1)th sample (j) +1) Sub-samples, where k, m, n may or may not be equal, and the present invention does not specifically limit this.
这里, 该 Track fragment对应的描述项 Traf 中的 Trun按照解码顺序描述了该 Track fragment中 Sample的解码时间,即描述了属于同一个 Sample的所有 Sub-sample的解码时 间 , Trun 中对媒体数据 Sample 的描述顺序如 : Trun [sampleO, samplel, sample2, , sampleN] ; Traf 中的 Subs则按照 Sample的解码顺序描述了每个 Sample中 每个 Sub-sample的存储字节大小, Subs的内容如下所示:  Here, the Trun in the description item Traf corresponding to the Track fragment describes the decoding time of the Sample in the Track fragment according to the decoding order, that is, the decoding time of all Sub-samples belonging to the same Sample, and the media data Sample in Trun. The description order is as follows: Trun [sampleO, samplel, sample2, , sampleN] ; Subs in Traf describes the storage byte size of each Sub-sample in each Sample according to the decoding order of Sample. The contents of Subs are as follows:
Subs [  Subs [
sub-sample (0, 0) . size, sub-sample (0, 1) . size, •••sub-sample (0, k) . size, sub-sample (1, 0) . size, sub-sample (1, 1) . size,•••sub-sample (1, m) . size, sub-sample (N, 0) . size, sub-sample (N, 1) . size, sub-sample (N, n) . size  Sub-sample (0, 0) . size, sub-sample (0, 1) . size, •••sub-sample (0, k) . size, sub-sample (1, 0) . size, sub-sample (1, 1) . size,•••sub-sample (1, m) . size, sub-sample (N, 0) . size, sub-sample (N, 1) . size, sub-sample (N, n) . size
] 假定该 Track Fragment中所有 Sample的首个 Sub-sample的重排属性相同, 那么, 将 所有 Sample中的首个 Sub-sample进行物理重排序, 使所有 Sample中的首个 Sub-sample 在物理上连续存储构成一个子片段; ] Assuming that the reordering properties of the first Sub-samples of all Samples in the Track Fragment are the same, then the first Sub-samples in all Samples are physically reordered so that the first Sub-samples in all Samples are physically consecutive. The storage constitutes a sub-segment;
假定所有 Sample中除去首个 Sub-sample的其他 Sub-sample的重排属性相同, 将所有 Sample中除去首个 Sub-sample的其他 Sub-sample进行物理重排序,使所有 Sample中除去 首个 Sub-sample的其他 Sub-sample在物理上连续存储就构成另外一个子片段;  Assume that the reordering properties of all Sub-samples except the first Sub-sample in all Samples are the same, and all other Sub-samples except the first Sub-sample in Sample are physically reordered, so that the first Sub- is removed from all Samples. The other Sub-samples of the sample are physically stored continuously to form another sub-segment;
这里需要说明的是, 属于同一个 Sample 的 Sub-sample 具有相同的时间信息, 如, SampleO 的解码时间为第 Is (秒), 则 SampleO 中的子样本 sub-sample (0, 0), sub-sample (0, 1) , …, sub-sample (0, k)的解码时间皆为第 Is , Samplel 的时间信息为第 1. Is , 贝 lj Samplel中的子样本 sub-sample (1, 0), sub-sample (1, 1) ,•••sub-sample (1, m) 的 解码 时 间 皆为第 1. Is, , SampleN 中 的子样本 sub-sample (N, 0) , sub-sample (N, 1) , -sub-sample (N, n)的解码时间皆为第 x秒;  It should be noted that the Sub-sample belonging to the same Sample has the same time information. For example, the sampleO decoding time is the first (seconds), then the subsample sub-sample (0, 0), sub- in SampleO. The decoding time of sample (0, 1) , ..., sub-sample (0, k) is the first Is, and the time information of Samplel is 1. Is, the subsample sub-sample (1, 0) in Samplel , sub-sample (1, 1) , •••sub-sample (1, m) decoding time is 1. Is, , subsample sub-sample (N, 0), sub-sample ( in SampleN The decoding time of N, 1) and -sub-sample (N, n) is the xth second;
那么, 将相同重排属性的子样本进行物理上连续存储后构成子片段, 该子片段中的子 采样仍然按照原有样本的解码顺序进行存储, 例如, 由上述的说明可以知道, 具有相同重 排属性的 sub-sample (0, 0)属于 SampleO, 解码时间为第 1秒; sub-sample (1, 0)属于第 1. 1 秒; ……; sub-sample (Ν, Ο)属于 SampleN, 解码时间为第 x秒; 贝 lj, 在该子片段中, 具有 相 同 重 排 属 性 的 子 样 本 的 存 储 顺 序 为 sub-sample (0, 0) , sub-sample (1, 0),•••sub-sample (N, 0);  Then, the sub-samples of the same reordering attribute are physically contiguously stored to form a sub-segment, and the sub-samplings in the sub-segment are still stored according to the decoding order of the original samples, for example, as described above, the same weight is The sub-sample (0, 0) of the row attribute belongs to SampleO, the decoding time is 1 second; the sub-sample (1, 0) belongs to the 1. 1 second; ...; sub-sample (Ν, Ο) belongs to SampleN, The decoding time is the xth second; in the sub-segment, the sub-samples with the same rearrangement attribute are stored in the order of sub-sample (0, 0), sub-sample (1, 0), •••sub -sample (N, 0);
下面的示例则描述了上述两个子片段的存储结构:  The following example describes the storage structure of the above two sub-segments:
{ ( sub-sample (0, 0) , sub-sample (1, 0) ,•••sub-sample (N, 0) ),  { ( sub-sample (0, 0) , sub-sample (1, 0) ,•••sub-sample (N, 0) ),
( sub-sample (0, 1) ,•••sub-sample (0, k) , sub-sample (1, 1) ,•••sub-sample (1, m) , sub-sample (N, 1) ,•••sub-sample (N, n) ) }  (sub-sample (0, 1) ,•••sub-sample (0, k) , sub-sample (1, 1) ,•••sub-sample (1, m) , sub-sample (N, 1 ),•••sub-sample (N, n) ) }
其中, 一对 () 就表示了一个子片段;  Where a pair () represents a sub-segment;
具体地, 当 Track fragment中 Sample包含多个 Sub-sample时, 本步骤还包括: 通过片段内的描述结构 Moof 中的第一描述项, 如轨道片段运作描述项, 按照子样本所 属样本的解码顺序描述子样本的解码顺序;  Specifically, when the Sample in the Track fragment includes multiple Sub-samples, the step further includes: using a first description item in the description structure Moof in the fragment, such as a track fragment operation description item, according to a decoding order of the samples to which the sub-sample belongs Describe the decoding order of the subsamples;
具体地,由于物理重排后的 Sub-sample在物理存储结构上有所变化,需要对 Sub-sample 添加相应的信息描述, 如下: (一)、第一描述项 Trim描述结构不变, 仍然按照原有 Sample 的解码顺序描述 Sample的时间信息, 即属于该 Sample的所有 Sub-sample都具有相同的时 间信息, 重排后在一个子片段中的 Sub-sample的存储顺序和排序前 Sample的存储顺序仍 然一致。 且可通过 Subs获得 Sample和 Sub-sample的对应关系, 因此使用 Sample时间信 息描述所属的 Sub-sample的时间信息; Specifically, since the Sub-sample after the physical rearrangement changes in the physical storage structure, a corresponding information description needs to be added to the Sub-sample, as follows: (1) The first description item Trim describes the structure unchanged, and still follows The decoding order of the original Sample describes the time information of the Sample, that is, all Sub-samples belonging to the Sample have the same time information, the storage order of the Sub-sample in a sub-segment and the storage order of the Sample before the sorting. Still consistent. And the Subs can obtain the correspondence between Sample and Sub-sample, so use the Sample time letter. Information describing the time information of the sub-sample to which it belongs;
并且 Trun指向第一个 Sample中第一个 Sub-sample的物理位置。  And Trun points to the physical location of the first Sub-sample in the first Sample.
通过片段内的描述结构 Moof 中的第二描述项, 如子样本信息描述项, 按照子样本所属 样本的解码顺序描述子样本的存储字节大小;  The second description item in the description structure Moof in the fragment, such as the sub-sample information description item, describes the storage byte size of the sub-sample according to the decoding order of the samples to which the sub-sample belongs;
具体地,第二描述项 Subs描述结构不变,仍然按照原有 Sample的解码顺序描述 Sample 中每个 Sub-sample的字节存储大小。  Specifically, the second description item Subs describes the structure unchanged, and still describes the byte storage size of each Sub-sample in the Sample according to the decoding order of the original Sample.
通过片段内的描述结构 Moof 中新增的第三描述项标识子样本的物理存储结构; 具体地, 由于重排后的 Sub-sample的物理存储结构发生了变化, 所以需要在 Moof 中 添加第三描述项, 该第三描述项用于标识 Sub-sample的物理存储结构, 定义如下:  Identifying the physical storage structure of the subsample by the third description item added in the description structure Moof in the fragment; specifically, since the physical storage structure of the rearranged Sub-sample changes, it is necessary to add the third in Moof Description item, the third description item is used to identify the physical storage structure of the Sub-sample, and is defined as follows:
class SampleOrderBox extends Ful lBox ( ' sprd, , version=0, flags)  Class SampleOrderBox extends Ful lBox ( ' sprd, , version=0, flags)
{ unsigned int (2) type; 其中, type为 0表示按照某一重排属性对 Sub-sample进行了物理重排;  { unsigned int (2) type; where type is 0 means that the Sub-sample is physically rearranged according to a reordering attribute;
通过片段内的描述结构 Moof 中新增的第四描述项按照子样本所属样本的解码顺序描述 子样本与自身所属子片段的对应关系。  Through the description structure in the fragment, the fourth new description item in Moof describes the correspondence between the sub-sample and the sub-segment to which the sub-sample belongs according to the decoding order of the samples to which the sub-sample belongs.
具体地, 第四描述项用于描述 Sub-sample与其所属子片段 level的对应关系, 第四描 述项示例如下:  Specifically, the fourth description item is used to describe the correspondence between the Sub-sample and the sub-segment level to which it belongs. The fourth description item is as follows:
al igned (8) class SubsToLevelBox extends Ful lBox ( ' stlf, , version, 0) { unsigned int (32) entry— count ;  Al igned (8) class SubsToLevelBox extends Ful lBox ( ' stlf, , version, 0) { unsigned int (32) entry— count ;
int i, j;  Int i, j;
for (i=0; i < entry— count ; i++) {  For (i=0; i < entry- count ; i++) {
unsigned int (32) sample— delta ;  Unsigned int (32) sample—delta ;
unsigned int (16) Subsample count;  Unsigned int (16) Subsample count;
if (Subsample count > 0) {  If (Subsample count > 0) {
for (j=0 ; j < Subsample count; j++) {  For (j=0 ; j < Subsample count; j++) {
if (version == 1) unsigned int (32) level— identify ; ; else unsigned int (16) level— identify ; If (version == 1) unsigned int (32) level— identify ; ; else Unsigned int (16) level- identify ;
}} 其中, 第四描述项与 Subs 的结构类似, 对 sub-sample 的描述顺序一致, 仍然按照 Sample中 Sub-sample的存储顺序描述。结构参数 level— identify定义了在每个 Sub-sample 所属 level的标识,该标识可从预定数值开始(如 1),且以所述预定数值递增,顺序和 level 的存储顺序一致。 需要说明的是, 当存在不属于任何 level的 Sub-sample时, 所述不属于 任何 level的 Sub-sample对应的 level— identify标识为 0。 }} Among them, the fourth description item is similar to the structure of Subs, and the order of description of sub-sample is the same, and is still described in the order in which Sub-samples are stored in the Sample. The structure parameter level_ident defines the identifier of the level to which each Sub-sample belongs. The identifier can start from a predetermined value (such as 1) and is incremented by the predetermined value in the order in which the order is stored. It should be noted that, when there is a Sub-sample that does not belong to any level, the level- identify corresponding to the Sub-sample that does not belong to any level is 0.
例如, 假定参数 level— identify从 1开始取值, 下面结构则描述了上述划分后得到的 两个 level中的每个 Sub-sample和 level的对应关系,即每个 Sample中的首个 Sub-sample 属于第一个 level, 其他的 Sub-sample属于第二个 level, 那么, 第四描述项的结构如下 所示:  For example, assuming that the parameter level_ identify takes a value from 1, the following structure describes the correspondence between each Sub-sample and level of the two levels obtained above, that is, the first Sub-sample in each Sample. Belonging to the first level, the other Sub-sample belongs to the second level, then the structure of the fourth description item is as follows:
stlf [levell, level2,— level2,  Stlf [levell, level2, — level2,
levell, level2,— level2, levell, level2,— level2, ];  Levell, level2, — level2, levell, level2, — level2, ];
需要说明的是, 上述第四描述项是一个可选项, 当所有 Sample中每个 Sub-sample对 应的 level顺序一致时, 可不定义;  It should be noted that the foregoing fourth description item is an optional item, and may be undefined when the level order of each Sub-sample in all Samples is consistent;
例如, SampleO包含子样本 Sub-sample (0, 1)和 Sub-sample (0, 2), 而这两个子样 本分别对应子片段 levell和 level2, Samplel包含子样本 Sub-sample ( 1, 1)和 Sub-sample (1, 2), 而这两个子样本分别对应子片段 levell和 level2, 此时, 由于所有 Sample中只 有两个 Sub-sample, 且该两个 Sub-sample分别对应的两个 level, Subs描述子样本的解码 时间时, 也就描述了子样本所属子片段的信息了, 那么, 此时, 可不定义该第四描述项。  For example, SampleO contains subsamples Sub-sample (0, 1) and Sub-sample (0, 2), and these two subsamples correspond to sub-segments levell and level2, respectively, and Samplel contains sub-samples Sub-sample (1, 1) and Sub-sample (1, 2), and these two subsamples correspond to the sub-segments levell and level2 respectively. At this time, since there are only two Sub-samples in all Samples, and the two sub-samples correspond to two levels, When Subs describes the decoding time of the subsample, it also describes the information of the subsegment to which the subsample belongs. Then, at this time, the fourth description item may not be defined.
另外, 需要重点说明的是, 本发明实施例支持按照任意属性的组合对媒体数据进行重 排的情况, 现举例说明:  In addition, it should be noted that the embodiment of the present invention supports the case of rearranging media data according to a combination of any attributes.
Segment中将多个视角的媒体数据存储在一个 Track Fragment中, 则每个 Sample包含 了同一时刻多个视角视频帧, 每个视角视频帧可构成一个 Sub-sample。  In the Segment, the media data of multiple views is stored in a Track Fragment, and each Sample contains multiple view video frames at the same time, and each view video frame can constitute a Sub-sample.
那么, 为了满足 2D终端快进快退的需要, 将满足视角和帧率这两种属性要求的媒体数 据进行物理重排,构成若干个子片段;例如,将表示视角 1的 2倍帧率的 I帧的 sub-sample 物理上连续存储, 构成一个子片段, 将表示视角 1的 4倍帧率的 I帧的 sub-sample物理上 连续存储, 构成另一个子片段, 等等。 Then, in order to meet the needs of the 2D terminal fast forward and rewind, the number of media that meet the requirements of the two angles of view and frame rate will be satisfied. According to physical rearrangement, a plurality of sub-segments are formed; for example, a sub-sample of an I frame representing a frame rate of 2 times of the view angle 1 is physically stored continuously to form a sub-segment, and an I representing a frame rate of 4 times of the angle of view 1 is formed. The sub-sample of the frame is physically stored contiguously, forming another sub-segment, and so on.
步骤 103: 为子片段添加索引信息, 该索引信息包括子片段的属性信息和位置信息; 需要知道的是,在一个 Segment中,可按照某些重排属性对 Movie Fragment的一些 Track Step 103: Add index information to the sub-segment, where the index information includes attribute information and location information of the sub-segment; what is needed is that, in a Segment, some tracks of the Movie Fragment may be followed according to certain rearrangement attributes.
Fragment中的 Sample进行物理重排序, 物理重排序后连续存储的满足重排属性的 Sample 就构成若干个子片段 level ; 也可按照某些重排属性对 Movie Fragment 的另一些 Track Fragment 中的 Sub-sample 进行物理重排序, 物理重排序后连续存储的满足重排属性的 Sub-Sample可构成若干个子片段 level ; The Sample in Fragment performs physical reordering, and the Sample that satisfies the reordering property continuously stored after physical reordering constitutes several sub-segments level; and Sub-sample in other Track Fragment of Movie Fragment can also be followed according to some reordering attributes. Physical reordering, Sub-Sample satisfying the rearrangement attribute continuously stored after physical reordering may constitute several sub-segment levels;
另外, 一个分片内除包含若干个 Movie Fragment 夕卜, 还可包括分片索引项 Sidx In addition, a slice contains a number of Movie Fragments, and may also include a slice index item Sidx.
( Segment IndexBox) 子分片索引项 Ssix ( SubsSubsegmentlndexBox) 等索引项, 用以描 述分片内 Movie Fragment的索引信息。 例如, Ssix可用来描述 level的位置信息及重排属 性信息; 而在具体操作时, 这些索引项也可被单独抽取出来存储在一个索引文件中。 (Segment IndexBox) Sub-slice index item Ssix (SubsSubsegmentlndexBox) and other index items, which are used to describe the index information of the Movie Fragment in the fragment. For example, Ssix can be used to describe the location information and reordering attribute information of level; in the specific operation, these index items can also be extracted separately and stored in an index file.
那么, 为子片段添加索引信息具体地包括:  Then, adding index information for the sub-segment specifically includes:
在分片内的索引项中添加子片段 level的索引信息; 或  Add index information of the sub-segment level to the index entry in the slice; or
在媒体展现描述 MPD中添加子片段 level 的重排属性信息, 在索引文件中添加子片段 level的位置信息; 或  Adding the reordering attribute information of the sub-segment level in the MPD description to the MPD, and adding the position information of the sub-segment level to the index file; or
在媒体展现描述 MPD中添加子片段 level 的重排属性信息, 在分片内的索引项中添加 子片段 level的位置信息; 或  Adding the reordering attribute information of the sub-segment level in the MPD description to the MPD, and adding the position information of the sub-segment level to the index item in the fragment; or
在索引文件中添加子片段 level的索引信息。  Add the index information of the sub-segment level to the index file.
其中, 表 1示例性的给出了在子分片索引项 Ssix中描述 level的位置信息, 如下: 表 1  Among them, Table 1 exemplarily shows the position information of the level described in the sub-slice index item Ssix, as follows: Table 1
Figure imgf000011_0001
Figure imgf000011_0001
相应的, 在 Ssix中添加 level的重排属性,  Correspondingly, add the reordering attribute of level in Ssix.
al igned (8) class SubsegmentlndexBox extends Ful lBox ( 'Ssix' , 0, 0) unsigned int (32) Subsegment count; Al igned (8) class SubsegmentlndexBox extends Ful lBox ( 'Ssix' , 0, 0) Unsigned int (32) Subsegment count;
unsigned int (8) Subsegment level count; for ( i=l; i <= Subsegment count; i++)  Unsigned int (8) Subsegment level count; for ( i=l; i <= Subsegment count; i++)
for ( j=l; j <= Subsegment level count; j++) unsigned int (32) accumulated— level— size;  For ( j=l; j <= Subsegment level count; j++) unsigned int (32) accumulated—level—size;
〃增加 level具体属性信息  〃 increase level specific attribute information
unsigned int (8) attribute— count ;  Unsigned int (8) attribute- count ;
for ( k=0; k< attribute— count ; k++) {  For ( k=0; k< attribute_ count ; k++) {
string attrName ; // level对应属性名;  String attrName ; // level corresponds to the attribute name;
unsigned int (32) attrvalue ; // level对应属性取值  Unsigned int (32) attrvalue ; // level corresponding attribute value
表 2示例性的给出了在分片内 Ssix中描述了 level的重排属性信息, 如下: Table 2 exemplarily shows the reordering attribute information describing level in Ssix in the fragment, as follows:
表 2  Table 2
Figure imgf000012_0002
Figure imgf000012_0002
同样的, 也可以在分片内的索引项 Sidx中添加子片段 level的位置信息及重排属性信 添加方式与在 Ssix中添加 level的位置信息及重排属性信息相同, 此处就不再赘述。 表 3示例性的给出了在 MPD中添加的 level的属性信息, 如下: Similarly, the position information of the sub-segment level and the method of adding the rearrangement attribute letter in the index item Sidx in the slice may be the same as the position information and the rearrangement attribute information added in the Ssix level, and will not be described here. . Table 3 exemplarily shows the attribute information of the level added in the MPD, as follows:
表 3
Figure imgf000012_0001
Representation
table 3
Figure imgf000012_0001
Representation
SubRepresentation SubRepresentation
Level 必选项  Level required
bandwidth 必选项 level的带宽  Bandwidth Required level bandwidth
trickModeAPR 可选项 快捷操作时的帧率  trickModeAPR Optional Frame rate for shortcut operations
Viewld 可选项 Level对应的视角标识  Viewld Optional Level Viewpoint Correspondence
qual itylevel 可选项 Level对应的视频质量标识  Qualitylevel Optional Video quality identifier corresponding to Level
由于 Sidx、 Ssix这些 box描述的信息可被单独抽取出来存储在一个索引文件中。 因此 在索引文件中同样也可添加 level的索引信息, 添加方式与在 Ssix中添加 level的索引信 息的方式类似, 此处不再累述。 Since the information described by the boxes Sidx and Ssix can be extracted separately and stored in an index file. Therefore, the index information of the level can also be added in the index file. The addition method is similar to the method of adding the level index information in Ssix, and will not be described here.
本发明实施例通过将分片内的片段中满足重排属性的媒体数据在物理上连续存储, 构 成与所述重排属性对应的子片段; 添加所述子片段的索引信息的技术方案的实现, 将分片 内的片段中的媒体数据按照不同重排属性进行排列构成与不同重排属性相对应的子片段, 该子片段的重排属性为单一属性或属性组合, 以便用户可以快速而准确的根据该不同重排 属性的子片段的索引信息找到所需重排属性的子片段, 并从中获取媒体数据。 实施例 2  The embodiment of the present invention physically stores the media data satisfying the rearrangement attribute in the segments in the fragment to form a sub-segment corresponding to the rearrangement attribute; and implements the technical solution of adding the index information of the sub-segment The media data in the segment in the segment is arranged according to different rearrangement attributes to form a sub-segment corresponding to different rearrangement attributes, and the rearrangement attribute of the sub-segment is a single attribute or a combination of attributes, so that the user can quickly and accurately According to the index information of the sub-segments of the different rearrangement attributes, the sub-segments of the required rearrangement attributes are found, and the media data is obtained therefrom. Example 2
参见图 3, 一种服务端, 该服务端可以是媒体数据准备模块、 HTTP流媒体服务器或分 发服务器等, 本发明对此不做具体的限制, 包括: 切片模块 200、 重排模块 201和添加模块 202, 下面详细介绍各个功能模块:  Referring to FIG. 3, a server may be a media data preparation module, an HTTP streaming server, or a distribution server. The present invention does not specifically limit the present invention, and includes: a slicing module 200, a reordering module 201, and an adding Module 202, the following describes each functional module in detail:
切片模块 200, 用于对媒体内容进行切片;  a slicing module 200, configured to slice media content;
重排模块 201, 用于在切片过程中, 将分片内的片段中满足重排属性的媒体数据在物理 上连续存储, 构成与重排属性对应的子片段;  The rearrangement module 201 is configured to physically store the media data satisfying the rearrangement attribute in the segments in the fragment in a slicing process to form a sub-segment corresponding to the rearrangement attribute;
其中, 媒体数据由样本或子样本构成;  Wherein the media data consists of samples or subsamples;
其中, 重排属性为单一属性或任一属性的组合, 具体地一属性包括视频视角、 视频质 量禾口帧率。  The reordering attribute is a single attribute or a combination of any attributes, and specifically one attribute includes a video view, a video quality, and a frame rate.
添加模块 202, 用于添加子片段的索引信息, 其中, 索引信息包括子片段的重排属性信 息和位置信息。 具体地, 添加模块 202包括: The adding module 202 is configured to add index information of the sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment. Specifically, the adding module 202 includes:
第一添加单元 2021, 用于在分片内的索引项中添加子片段的索引信息; 或  a first adding unit 2021, configured to add index information of the sub-segment in the index item in the fragment; or
第二添加单元 2022, 用于在媒体展现描述 MPD中添加子片段的重排属性信息, 在索引 文件中添加子片段的位置信息; 或  a second adding unit 2022, configured to add reordering attribute information of the sub-segment in the media presentation description MPD, and add location information of the sub-segment in the index file; or
第三添加单元 2023, 用于在媒体展现描述 MPD中添加子片段的重排属性信息, 在分片 内的索引项中添加子片段的位置信息; 或  a third adding unit 2023, configured to add reordering attribute information of the sub-segment in the media presentation description MPD, and add location information of the sub-segment in the index item in the fragment; or
第四添加单元 2024, 用于在索引文件中添加子片段的索引信息。  The fourth adding unit 2024 is configured to add index information of the sub-segment in the index file.
具体地, 当重排模块 201, 用于将分片内的片段中满足重排属性的媒体数据在物理上连 续存储, 构成与重排属性对应的子片段, 媒体数据由子样本构成时, 服务端还包括:  Specifically, when the rearrangement module 201 is configured to physically store the media data satisfying the rearrangement attribute among the segments in the fragment to form a sub-segment corresponding to the rearrangement attribute, and the media data is composed of the sub-sample, the server Also includes:
第一描述模块 203, 用于通过片段内的描述结构 Moof 中的第一描述项按照子样本所属 样本的解码顺序描述子样本的解码顺序;  a first description module 203, configured to describe, by using a first description item in the description structure Moof in the fragment, a decoding order of the sub-sample according to a decoding order of the samples to which the sub-sample belongs;
第二描述模块 204, 用于通过片段内的描述结构 Moof 中的第二描述项按照子样本所属 样本的解码顺序描述子样本的存储字节大小;  a second description module 204, configured to describe, by using a second description item in the description structure Moof in the fragment, a storage byte size of the subsample according to a decoding order of the samples to which the subsample belongs;
第三描述模块 205, 用于通过片段内的描述结构 Moof 中新增的第三描述项标识子样本 的物理存储结构。  The third description module 205 is configured to identify a physical storage structure of the subsample by using a third description item added in the description structure Moof in the fragment.
第四描述单元 206, 用于通过片段内的描述结构 Moof 中新增的第四描述项按照子样本 所属样本的解码顺序描述子样本与自身所属子片段的对应关系。  The fourth description unit 206 is configured to describe, by using the fourth description item in the description structure in the fragment, the correspondence between the sub-sample and the sub-segment to which the sub-sample belongs according to the decoding order of the sample to which the sub-sample belongs.
本发明实施例通过将分片内的片段中满足重排属性的媒体数据在物理上连续存储, 构 成与所述重排属性对应的子片段; 添加所述子片段的索引信息的技术方案的实现, 将分片 内的片段中的媒体数据制作成不同重排属性的子片段, 该子片段的重排属性为单一属性或 属性组合, 以便用户可以快速而准确的根据该不同重排属性的子片段的索引信息找到所需 重排属性的子片段, 并从中获取媒体数据。 实施例 3  The embodiment of the present invention physically stores the media data satisfying the rearrangement attribute in the segments in the fragment to form a sub-segment corresponding to the rearrangement attribute; and implements the technical solution of adding the index information of the sub-segment , the media data in the segment in the fragment is made into a sub-segment of different rearrangement attributes, and the rearrangement attribute of the sub-segment is a single attribute or a combination of attributes, so that the user can quickly and accurately according to the child of the different rearrangement attribute. The index information of the fragment finds the sub-segment of the desired reordering attribute and obtains the media data therefrom. Example 3
参见图 4, 一种在抽取分片中媒体数据的方法, 该方法的执行主体包括任何客户端, 如 手机、 PC机等, 本发明对此并不做具体限制, 具体如下:  Referring to FIG. 4, a method for extracting media data in a fragment, the execution body of the method includes any client, such as a mobile phone, a PC, etc., and the present invention does not specifically limit this, and the details are as follows:
步骤 301 : 获取子片段的索引信息, 索引信息包括子片段的重排属性信息和位置信息; 步骤 302: 根据索引信息计算与预定重排属性对应的子片段的字节范围;  Step 301: Obtain index information of the sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment; Step 302: calculate, according to the index information, a byte range of the sub-segment corresponding to the predetermined re-arrangement attribute;
步骤 303: 根据字节范围请求与预定重排属性对应的子片段;  Step 303: Request a sub-segment corresponding to the predetermined reordering attribute according to the byte range;
步骤 304: 接收与预定重排属性对应的子片段中的媒体数据。  Step 304: Receive media data in a sub-segment corresponding to the predetermined rearrangement attribute.
其中, 媒体数据由样本或子样本构成; 其中, 重排属性为单一属性或任意属性的组合, 具体地, 属性包括视频视角、 视频质 量禾口帧率。 Wherein the media data consists of samples or subsamples; The reordering attribute is a single attribute or a combination of any attributes. Specifically, the attributes include a video view, a video quality, and a frame rate.
本发明实施例通过根据所述索引信息计算与预定重排属性对应的子片段的字节范围; 根据所述字节范围请求得到所述与预定重排属性对应的子片段; 接收所述与预定重排属性 对应的子片段中的媒体数据的技术方案的实现, 客户端可以快速而准确地在分片中抽取与 预定重排属性对应的媒体数据。 实施例 4  The embodiment of the present invention calculates a byte range of a sub-segment corresponding to a predetermined rearrangement attribute according to the index information; and obtains the sub-segment corresponding to the predetermined rearrangement attribute according to the byte range request; receiving the predetermined The implementation of the technical solution of the media data in the sub-segment corresponding to the rearrangement attribute, the client can quickly and accurately extract the media data corresponding to the predetermined rearrangement attribute in the fragment. Example 4
参见图 5, 一种抽取分片中媒体数据的方法, 该方法的执行主体包括任何客户端, 如手 机、 PC机等, 本发明对此并不做具体限制, 具体步骤如下:  Referring to FIG. 5, a method for extracting media data in a fragment, the execution body of the method includes any client, such as a mobile phone, a PC, etc., and the present invention does not specifically limit this, and the specific steps are as follows:
步骤 401 : 向服务器发送 MPD请求;  Step 401: Send an MPD request to the server;
具体地, 客户端通过外带方式获得 MPD (Media Presentation Description, 媒体呈现 描述) 的 URL (Uniform Resource Locator, 统一资源定位符), 通过该 URL向分发服务器 发送 MPD请求; 服务器在接收到该 MPD请求后, 将 MPD信息发送给客户端;  Specifically, the client obtains a URL (Uniform Resource Locator) of the MPD (Media Presentation Description) through the external connection, and sends an MPD request to the distribution server through the URL; the server receives the MPD request. After that, the MPD information is sent to the client;
步骤 402: 接收服务器发送的 MPD信息, 并从该 MPD信息中获取分片 (Segment )地址; 步骤 403: 获取分片中子片段 level的索引信息, 该索引信息包括 level的重排属性信 息和位置信息;  Step 402: Receive MPD information sent by the server, and obtain a segment address from the MPD information. Step 403: Obtain index information of a sub-segment level in the slice, where the index information includes level re-arrangement attribute information and location. Information
其中, 重排属性为单一属性或任意属性的组合, 具体地, 属性包括视频视角、 视频质 量禾口帧率。  The reordering attribute is a single attribute or a combination of any attributes. Specifically, the attributes include a video view, a video quality, and a frame rate.
具体地, 获取分片中 level的索引信息包括:  Specifically, obtaining index information of the level in the fragment includes:
根据获取的分片地址及预设字节范围向服务器发送分片请求以获取分片内的索引项, 并从该索引项中获取 level 的索引信息, 其中, 本发明实施例中预设字节范围优选为 0到 1000的字节范围;  Sending a fragmentation request to the server according to the obtained fragmentation address and the preset byte range to obtain an index entry in the fragment, and obtaining index information of the level from the index entry, where the preset byte is in the embodiment of the present invention. The range is preferably a byte range of 0 to 1000;
或者  Or
从 MPD中获取 level 的属性信息, 根据获取的分片地址及预设字节范围向服务器发送 分片请求以获取分片内的索引项, 并获取索引项中描述的 level的位置信息; 或者  Obtaining the attribute information of the level from the MPD, sending a fragmentation request to the server according to the obtained fragmentation address and the preset byte range to obtain an index item in the fragment, and obtaining location information of the level described in the index item; or
从 MPD中获取 level的属性信息, 根据 MPD中获取索引文件的地址, 且根据该获取的 索引文件的地址向服务器获取所述索引文件以得到所述索引文件中存储的 level 的位置信 息, 从而得到子片段的索引信息; 或者  Obtaining the attribute information of the level from the MPD, obtaining the index file according to the address of the obtained index file according to the obtained address file, and obtaining the position information of the level stored in the index file, thereby obtaining Index information of the sub-segment; or
根据 MPD 中获取索引文件的地址, 且根据该获取的索引文件的地址向服务器获取所述 索引文件以得到所述索引文件中存储的 level的索引信息。 步骤 404: 根据索引信息获得与预定重排属性对应的 level的字节范围; 具体地, 根据索引信息获得与预定重排属性对应的 level的字节范围, 包括: 在获取的子片段的重排属性信息中, 查找得到与预定重排属性相匹配的子片段 level 的重排属性信息; Obtaining the index file according to the address of the index file in the MPD, and acquiring the index file from the server according to the obtained address file to obtain the index information of the level stored in the index file. Step 404: Obtain a byte range of a level corresponding to the predetermined rearrangement attribute according to the index information. Specifically, obtaining a byte range of the level corresponding to the predetermined rearrangement attribute according to the index information, including: rearranging the acquired sub-segment In the attribute information, the re-arrangement attribute information of the sub-segment level matching the predetermined re-arrangement attribute is found;
在获取的子片段的位置信息中, 根据所述与预定重排属性相匹配的 level 的重排属性 信息查找该 level的位置信息;  In the location information of the obtained sub-segment, the location information of the level is searched according to the re-arrangement attribute information of the level matching the predetermined re-arrangement attribute;
根据所述与重排属性相匹配的 level 的位置信息计算得到所述与预定重排属性相匹配 的 level的字节范围。  And calculating, according to the location information of the level matching the reordering attribute, the byte range of the level matching the predetermined reordering attribute.
步骤 405 : 根据计算的字节范围向服务器请求与预定重排属性对应的 level。  Step 405: Request a level corresponding to the predetermined reordering attribute from the server according to the calculated byte range.
具体地, 根据计算的字节范围及分片地址向服务器发送请求; 服务器在接收到该请求 后, 将该分片地址对应的字节范围内的 level发送给客户端。  Specifically, the request is sent to the server according to the calculated byte range and the fragment address; after receiving the request, the server sends the level in the byte range corresponding to the fragment address to the client.
步骤 406 : 接收服务器返回的 level并从中获取媒体数据。  Step 406: Receive the level returned by the server and obtain media data from it.
本发明实施例通过根据所述索引信息计算与预定重排属性对应的子片段的字节范围; 根据所述字节范围请求所述与预定重排属性对应的子片段; 接收所述与预定重排属性对应 的子片段中的媒体数据的技术方案的实现, 可以快速而准确地在分片中获取与预定重排属 性对应的媒体数据。 实施例 5  The embodiment of the present invention calculates a byte range of a sub-segment corresponding to a predetermined rearrangement attribute according to the index information; and requests the sub-segment corresponding to the predetermined rearrangement attribute according to the byte range; receiving the predetermined weight The implementation of the technical solution of the media data in the sub-segment corresponding to the row attribute can quickly and accurately acquire the media data corresponding to the predetermined rearrangement attribute in the fragment. Example 5
参见图 6, 一种客户端, 该客户端具体可以为手机、 PC机等用户终端, 本发明对此并 不做具体限制, 包括: 获取模块 501、 计算模块 502、 请求模块 503和接收模块 504, 下面 详细介绍各个功能模块:  Referring to FIG. 6, a client, which may be a user terminal such as a mobile phone or a PC, is not specifically limited in the present invention, and includes: an obtaining module 501, a calculating module 502, a requesting module 503, and a receiving module 504. The following describes each function module in detail:
获取模块 501, 用于获取子片段的索引信息, 索引信息包括子片段的重排属性信息和位 置信息;  The obtaining module 501 is configured to obtain index information of the sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment;
计算模块 502, 用于根据索引信息计算与预定重排属性对应的子片段的字节范围; 请求模块 503, 用于根据字节范围请求得到与预定重排属性对应的子片段;  The calculating module 502 is configured to calculate, according to the index information, a byte range of the sub-segment corresponding to the predetermined re-arrangement attribute; the requesting module 503, configured to obtain, according to the byte range request, the sub-segment corresponding to the predetermined re-arrangement attribute;
接收模块 504, 用于接收与预定重排属性对应的子片段中的媒体数据。  The receiving module 504 is configured to receive media data in a sub-segment corresponding to the predetermined re-arrangement attribute.
其中, 重排属性为单一属性或任意属性的组合, 具体地, 属性包括视频视角、 视频质 量禾口帧率。  The reordering attribute is a single attribute or a combination of any attributes. Specifically, the attributes include a video view, a video quality, and a frame rate.
具体地, 获取模块 501包括:  Specifically, the obtaining module 501 includes:
第一获取单元 5011, 用于获取分片内的索引项中存储的子片段的索引信息; 或 第二获取单元 5012, 用于获取媒体展现描述 MPD中存储的子片段的重排属性信息, 并 获取分片内索引项中存储的子片段的位置信息, 从而得到子片段的索引信息; 或 第三获取单元 5013, 用于获取媒体展现描述 MPD中存储的子片段的重排属性信息, 并 获取索引文件中存储的子片段的位置信息, 从而得到子片段的索引信息; 或 a first obtaining unit 5011, configured to acquire index information of a sub-segment stored in an index item in the fragment; or a second obtaining unit 5012, configured to acquire re-arrangement attribute information of the sub-segment stored in the media presentation description MPD, and Acquiring the location information of the sub-segment stored in the index entry in the fragment, so as to obtain the index information of the sub-segment; or the third obtaining unit 5013, configured to acquire the re-arrangement attribute information of the sub-segment stored in the media presentation description MPD, and obtain Indexing the location information of the sub-segments stored in the file, thereby obtaining index information of the sub-segments; or
第四获取单元 5014, 用于获取索引文件中存储的子片段的索引信息。  The fourth obtaining unit 5014 is configured to obtain index information of the sub-segments stored in the index file.
计算模块 502包括:  The calculation module 502 includes:
第一查找单元 5021, 用于在子片段的重排属性信息中, 查找与预定重排属性相匹配的 子片段的重排属性信息;  The first searching unit 5021 is configured to: in the reordering attribute information of the sub-segment, search for re-arrangement attribute information of the sub-segment matching the predetermined re-arrangement attribute;
第二查找单元 5022, 用于在子片段的位置信息中, 根据与预定重排属性相匹配的子片 段的重排属性信息查找与预定重排属性相匹配的子片段的位置信息;  The second searching unit 5022 is configured to: in the location information of the sub-segment, search for location information of the sub-segment matching the predetermined re-arrangement attribute according to the re-arrangement attribute information of the sub-segment matching the predetermined re-arrangement attribute;
计算单元 5023, 用于根据与预定重排属性相匹配的子片段的位置信息计算得到与预定 重排属性相匹配的子片段的字节范围。  The calculating unit 5023 is configured to calculate a byte range of the sub-segment matching the predetermined rearrangement attribute according to the position information of the sub-segment matching the predetermined re-arrangement attribute.
本发明实施例通过根据所述索引信息计算与预定重排属性对应的子片段的字节范围; 根据所述字节范围请求所述与预定重排属性对应的子片段; 接收所述与预定重排属性对应 的子片段中的媒体数据的技术方案的实现, 可以快速而准确地在分片中获取与预定重排属 性对应的媒体数据。 实施例 6  The embodiment of the present invention calculates a byte range of a sub-segment corresponding to a predetermined rearrangement attribute according to the index information; and requests the sub-segment corresponding to the predetermined rearrangement attribute according to the byte range; receiving the predetermined weight The implementation of the technical solution of the media data in the sub-segment corresponding to the row attribute can quickly and accurately acquire the media data corresponding to the predetermined rearrangement attribute in the fragment. Example 6
参见图 7, 本发明实施例提供了一种重排并抽取分片中媒体数据的系统, 该系统包括服 务端 61和客户端 62, 其中, 服务端 61具体可以为媒体数据准备模块、 HTTP流媒体服务器 或分发服务器等服务端, 客户端具体可以为手机、 PC机等用户终端, 下面详细介绍上述系 统:  Referring to FIG. 7, an embodiment of the present invention provides a system for rearranging and extracting media data in a fragment. The system includes a server 61 and a client 62. The server 61 may specifically be a media data preparation module and an HTTP stream. For the server such as the media server or the distribution server, the client can be a user terminal such as a mobile phone or a PC. The following system is described in detail below:
具体地, 服务端 61包括:  Specifically, the server 61 includes:
切片模块 610, 用于对媒体内容进行切片;  a slicing module 610, configured to slice media content;
重排模块 611, 用于在切片的过程中, 将分片内的片段中满足重排属性的媒体数据在物 理上连续存储, 构成与重排属性对应的子片段, 媒体数据由样本或子样本构成;  The rearrangement module 611 is configured to physically store the media data in the segment that meets the rearrangement attribute in the process of the slice, to form a sub-segment corresponding to the rearrangement attribute, and the media data is sampled or subsampled Constitute
添加模块 612, 用于添加子片段的索引信息, 索引信息包括子片段的重排属性信息和位 置信息;  The adding module 612 is configured to add index information of the sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment;
发送模块 613, 用于向客户端发送与预定重排属性对应的子片段中的媒体数据; 客户端 62包括:  The sending module 613 is configured to send, to the client, the media data in the sub-segment corresponding to the predetermined re-sorting attribute; the client 62 includes:
获取模块 621, 用于向服务端获取子片段的索引信息, 索引信息包括子片段的重排属性 信息和位置信息; 计算模块 622, 用于根据索引信息计算与预定重排属性对应的子片段的字节范围; 请求模块 623, 用于根据字节范围向服务端请求得到与预定重排属性对应的子片段; 接收模块 624, 用于接收服务端发送的与预定重排属性对应的子片段中媒体数据。 本发明实施例通过将分片内的片段中满足重排属性的媒体数据在物理上连续存储, 构 成与所述重排属性对应的子片段; 添加所述子片段的索引信息的技术方案的实现, 将分片 内的片段中的媒体数据按照不同重排属性进行排列构成与不同重排属性相对应的子片段; 获取子片段的索引信息; 根据所述索引信息计算与预定重排属性对应的子片段的字节范围; 根据所述字节范围请求所述与预定重排属性对应的子片段; 接收所述与预定重排属性对应 的子片段中的媒体数据的技术方案的实现, 客户端可以快速而准确地在分片中获取与预定 重排属性对应的媒体数据。 The obtaining module 621 is configured to obtain index information of the sub-segment from the server, where the index information includes re-arrangement attribute information and location information of the sub-segment; a calculation module 622, configured to calculate, according to the index information, a byte range of the sub-segment corresponding to the predetermined re-arrangement attribute; the requesting module 623, configured to request, from the server, the sub-segment corresponding to the predetermined re-arrangement attribute according to the byte range; The module 624 is configured to receive media data in the sub-segment corresponding to the predetermined re-sorting attribute sent by the server. The embodiment of the present invention physically stores the media data satisfying the rearrangement attribute in the segments in the fragment to form a sub-segment corresponding to the rearrangement attribute; and implements the technical solution of adding the index information of the sub-segment And arranging the media data in the segment in the fragment according to different rearrangement attributes to form a sub-segment corresponding to different rearrangement attributes; acquiring index information of the sub-segment; and calculating, according to the index information, a corresponding to the predetermined rearrangement attribute a byte range of the sub-segment; requesting the sub-segment corresponding to the predetermined re-arrangement attribute according to the byte range; implementing the technical solution of receiving the media data in the sub-segment corresponding to the predetermined re-arrangement attribute, the client The media data corresponding to the predetermined rearrangement attribute can be obtained in the slice quickly and accurately.
以上实施例提供的技术方案中的全部或部分内容可以通过软件编程实现, 其软件程序 存储在可读取的存储介质中, 存储介质例如: 计算机中的硬盘、 光盘或软盘。 以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  All or part of the technical solutions provided by the above embodiments may be implemented by software programming, and the software program is stored in a readable storage medium such as a hard disk, an optical disk or a floppy disk in a computer. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Claims

权 利 要 求 书 Claims
1、 一种重排分片中媒体数据的方法, 其特征在于, 所述方法包括:  A method for rearranging media data in a slice, the method comprising:
对媒体内容进行切片;  Slice media content;
在切片的过程中, 将分片内的片段中满足重排属性的媒体数据在物理上连续存储, 构成 与所述重排属性对应的子片段, 所述媒体数据由样本或子样本构成;  In the process of slicing, the media data in the segment within the segment that satisfies the rearrangement attribute is physically stored continuously to form a sub-segment corresponding to the rearrangement attribute, and the media data is composed of samples or sub-samples;
添加所述子片段的索引信息,所述索引信息包括所述子片段的重排属性信息和位置信息。  The index information of the sub-segment is added, and the index information includes rearrangement attribute information and location information of the sub-segment.
2、 根据权利要求 1所述的方法, 其特征在于, 当所述媒体数据由子样本构成时, 所述将 所述满足重排属性的媒体数据在物理上连续存储构成与所述重排属性对应的子片段之后, 所 述方法还包括: The method according to claim 1, wherein when the media data is composed of sub-samples, the media data satisfying the rearrangement attribute is physically continuously stored to form a correspondence with the rearrangement attribute. After the sub-segment, the method further includes:
通过片段内的描述结构 Moof 中的第一描述项按照子样本所属样本的解码顺序描述子样 本的解码顺序;  Decoding the decoding order of the subsample according to the decoding order of the samples to which the subsample belongs according to the first description item in the description structure Moof in the fragment;
通过片段内的描述结构 Moof 中的第二描述项按照子样本所属样本的解码顺序描述子样 本的存储字节大小;  Describe the storage byte size of the subsample according to the decoding order of the samples to which the subsample belongs according to the second description item in the description structure in the fragment;
通过片段内的描述结构 Moof 中新增的第三描述项标识子样本的物理存储结构。  The physical storage structure of the subsample is identified by the third description item added in the description structure in the fragment.
3、 根据权利要求 2所述的方法, 其特征在于, 所述方法还包括: The method according to claim 2, wherein the method further comprises:
通过片段内的描述结构 Moof 中新增的第四描述项按照子样本所属样本的解码顺序描述 子样本与自身所属子片段的对应关系。  Through the description structure in the fragment, the fourth new description item in Moof describes the correspondence between the sub-sample and the sub-segment to which the sub-sample belongs according to the decoding order of the samples to which the sub-sample belongs.
4、 根据权利要求 1所述的方法, 其特征在于, 所述添加所述子片段的索引信息, 包括: 在分片内的索引项中添加所述子片段的索引信息; 或 The method according to claim 1, wherein the adding the index information of the sub-segment comprises: adding index information of the sub-segment to an index item in the fragment; or
在媒体展现描述 MPD中添加所述子片段的重排属性信息, 在索引文件中添加所述子片段 的位置信息; 或  Adding rearrangement attribute information of the sub-segment in the media presentation description MPD, and adding location information of the sub-segment in the index file; or
在媒体展现描述 MPD中添加所述子片段的重排属性信息, 在分片内的索引项中添加所述 子片段的位置信息; 或  Adding the rearrangement attribute information of the sub-segment in the media presentation description MPD, and adding the location information of the sub-segment in the index item in the fragment; or
在索引文件中添加所述子片段的索引信息。  The index information of the sub-segment is added in the index file.
6、根据权利要求 1-5中任意一项权利要求所述的方法, 其特征在于, 所述重排属性为单 一属性或任意属性的组合; The method according to any one of claims 1 to 5, wherein the rearrangement attribute is a single a combination of attributes or arbitrary attributes;
其中, 属性包括视频视角、 视频质量和帧率。  Among them, attributes include video perspective, video quality, and frame rate.
6、 一种服务端, 其特征在于, 所述服务端包括: 切片模块、 重排模块和添加模块; 所述切片模块, 用于对媒体内容进行切片; A server, the server includes: a slicing module, a rearrangement module, and an adding module; the slicing module is configured to slice the media content;
所述重排模块, 用于在切片的过程中, 将分片内的片段中满足重排属性的媒体数据在物 理上连续存储, 构成与所述重排属性对应的子片段, 所述媒体数据由样本或子样本构成; 所述添加模块, 用于添加所述子片段的索引信息, 所述索引信息包括所述子片段的重排 属性信息和位置信息。  The rearrangement module is configured to physically store the media data in the segment that meets the rearrangement attribute in the process of the slice, and form a sub-segment corresponding to the rearrangement attribute, where the media data is And the adding module is configured to add index information of the sub-segment, where the index information includes rearrangement attribute information and location information of the sub-segment.
7、 根据权利要求 6所述的服务端, 其特征在于, 当所述重排模块, 用于将分片内的片段 中满足重排属性的媒体数据在物理上连续存储, 构成与所述重排属性对应的子片段, 所述媒 体数据由子样本构成时, 所述服务端还包括: The server according to claim 6, wherein the rearrangement module is configured to physically store the media data satisfying the rearrangement attribute in the segments in the fragment, and constitute the weight When the media data is composed of sub-samples, the server further includes:
第一描述模块,用于通过片段内的描述结构 Moof 中的第一描述项按照子样本所属样本的 解码顺序描述子样本的解码顺序;  a first description module, configured to describe, by using a first description item in the description structure Moof in the fragment, a decoding order of the sub-sample according to a decoding order of the samples to which the sub-sample belongs;
第二描述模块,用于通过片段内的描述结构 Moof 中的第二描述项按照子样本所属样本的 解码顺序描述子样本的存储字节大小;  a second description module, configured to describe, by using a second description item in the description structure Moof in the fragment, a storage byte size of the subsample according to a decoding order of the samples to which the subsample belongs;
第三描述模块,用于通过片段内的描述结构 Moof 中新增的第三描述项标识子样本的物理 存储结构。  And a third description module, configured to identify a physical storage structure of the subsample by using a third description item added in the description structure in the fragment.
8、 根据权利要求 7所述的服务端, 其特征在于, 所述服务端还包括: The server according to claim 7, wherein the server further comprises:
第四描述单元,用于通过片段内的描述结构 Moof 中新增的第四描述项按照子样本所属样 本的解码顺序描述子样本与自身所属子片段的对应关系。 9、 根据权利要求 6所述的服务端, 其特征在于, 所述添加模块包括:  And a fourth description unit, configured to describe, by using a description item in the fragment, a fourth description item added in the Moof, according to a decoding order of the samples to which the sub-sample belongs, a correspondence relationship between the sub-sample and the sub-segment to which the sub-sample belongs. The server according to claim 6, wherein the adding module comprises:
第一添加单元, 用于在分片内的索引项中添加所述子片段的索引信息; 或  a first adding unit, configured to add index information of the sub-segment in an index item in the fragment; or
第二添加单元, 用于在媒体展现描述 MPD中添加所述子片段的重排属性信息, 在索引文 件中添加所述子片段的位置信息; 或  a second adding unit, configured to add rearrangement attribute information of the sub-segment in the media presentation description MPD, and add location information of the sub-segment in the index file; or
第三添加单元, 用于在媒体展现描述 MPD中添加所述子片段的重排属性信息, 在分片内 的索引项中添加所述子片段的位置信息; 或 第四添加单元, 用于在索引文件中添加所述子片段的索引信息。 a third adding unit, configured to add rearrangement attribute information of the sub-segment in the media presentation description MPD, and add location information of the sub-segment in an index item in the fragment; or And a fourth adding unit, configured to add index information of the sub-segment in the index file.
10、 根据权利要求 6-9中任意一项权利要求所述的服务端, 其特征在于, 所述重排属性 为单一属性或任意属性的组合; The server according to any one of claims 6-9, wherein the rearrangement attribute is a single attribute or a combination of any attributes;
其中, 属性包括视频视角、 视频质量和帧率。  Among them, attributes include video perspective, video quality, and frame rate.
11、 一种抽取分片中媒体数据的方法, 其特征在于, 所述方法包括: A method for extracting media data in a slice, the method comprising:
获取子片段的索引信息, 所述索引信息包括子片段的重排属性信息和位置信息; 根据所述索引信息计算与预定重排属性对应的子片段的字节范围;  And acquiring index information of the sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment; and calculating, according to the index information, a byte range of the sub-segment corresponding to the predetermined re-arrangement attribute;
根据所述字节范围请求所述与预定重排属性对应的子片段;  And requesting, according to the byte range, the sub-segment corresponding to the predetermined rearrangement attribute;
接收所述与预定重排属性对应的子片段中的媒体数据。  Receiving the media data in the sub-segment corresponding to the predetermined rearrangement attribute.
12、 根据权利要求 11所述的方法, 其特征在于, 所述获取子片段的索引信息包括: 获取分片内的索引项中存储的子片段的索引信息; 或 The method of claim 11, wherein the acquiring the index information of the sub-segment comprises: acquiring index information of the sub-segment stored in the index item in the fragment; or
获取媒体展现描述 MPD中存储的子片段的重排属性信息, 并获取分片内索引项中存储的 子片段的位置信息, 从而得到子片段的索引信息; 或  Obtaining a media presentation description of the reordering attribute information of the sub-segment stored in the MPD, and acquiring location information of the sub-segment stored in the index item in the fragment, thereby obtaining index information of the sub-segment; or
获取媒体展现描述 MPD中存储的子片段的重排属性信息, 并获取索引文件中存储的子片 段的位置信息, 从而得到子片段的索引信息; 或  Obtaining the media presentation description of the reordering attribute information of the sub-segments stored in the MPD, and obtaining the location information of the sub-segments stored in the index file, thereby obtaining index information of the sub-segments; or
获取索引文件中存储的子片段的索引信息。  Get index information of the sub-segments stored in the index file.
13、根据权利要求 11所述的方法, 其特征在于, 所述根据所述索引信息计算与预定重排 属性对应的子片段的字节范围包括: The method according to claim 11, wherein the calculating a byte range of the sub-segment corresponding to the predetermined rearrangement attribute according to the index information comprises:
在子片段的重排属性信息中, 查找与预定重排属性相匹配的子片段的重排属性信息; 在子片段的位置信息中, 根据所述与预定重排属性相匹配的子片段的重排属性信息查找 所述与预定重排属性相匹配的子片段的位置信息;  In the rearrangement attribute information of the sub-segment, searching for reordering attribute information of the sub-segment matching the predetermined re-arrangement attribute; in the position information of the sub-segment, according to the weight of the sub-segment matching the predetermined re-arrangement attribute The row attribute information finds the location information of the sub-segment matching the predetermined rearrangement attribute;
根据所述与预定重排属性相匹配的子片段的位置信息计算得到所述与预定重排属性相匹 配的子片段的字节范围。  And calculating, according to the position information of the sub-segment matching the predetermined rearrangement attribute, the byte range of the sub-segment matching the predetermined rearrangement attribute.
14、 根据权利要求 12-13中任意一项权利要求所述的方法, 其特征在于, 所述重排属性 为单一属性或任意属性的组合; 15、 一种客户端, 其特征在于, 所述客户端包括: 获取模块、 计算模块、 请求模块和接 收模块 The method according to any one of claims 12-13, wherein the rearrangement attribute is a single attribute or a combination of any attributes; 15. A client, wherein the client comprises: an acquisition module, a calculation module, a request module, and a receiving module
所述获取模块, 用于获取子片段的索引信息, 所述索引信息包括子片段的重排属性信息 和位置信息;  The obtaining module is configured to obtain index information of a sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment;
所述计算模块, 用于根据所述索引信息计算与预定重排属性对应的子片段的字节范围; 所述请求模块, 用于根据所述字节范围请求所述与预定重排属性对应的子片段; 所述接收模块, 用于接收所述与预定重排属性对应的子片段中的媒体数据。  The calculating module is configured to calculate, according to the index information, a byte range of a sub-segment corresponding to a predetermined re-arrangement attribute, where the requesting module is configured to request, according to the byte range, the content corresponding to a predetermined re-arrangement attribute a sub-segment; the receiving module, configured to receive the media data in the sub-segment corresponding to the predetermined re-arrangement attribute.
16、 根据权利要求 15所述的客户端, 其特征在于, 所述获取模块包括: The client according to claim 15, wherein the obtaining module comprises:
第一获取单元, 用于获取分片内的索引项中存储的子片段的索引信息; 或  a first acquiring unit, configured to acquire index information of a sub-segment stored in an index item in the fragment; or
第二获取单元, 用于获取媒体展现描述 MPD中存储的子片段的重排属性信息, 并获取分 片内索引项中存储的子片段的位置信息, 从而得到子片段的索引信息; 或  a second obtaining unit, configured to acquire reordering attribute information of the sub-segment stored in the media presentation description MPD, and obtain location information of the sub-segment stored in the index item in the fragment, thereby obtaining index information of the sub-segment; or
第三获取单元, 用于获取媒体展现描述 MPD中存储的子片段的重排属性信息, 并获取索 引文件中存储的子片段的位置信息, 从而得到子片段的索引信息; 或  a third obtaining unit, configured to obtain reordering attribute information of the sub-segment stored in the media presentation description MPD, and obtain location information of the sub-segment stored in the index file, thereby obtaining index information of the sub-segment; or
第四获取单元, 用于获取索引文件中存储的子片段的索引信息。  The fourth obtaining unit is configured to obtain index information of the sub-segments stored in the index file.
17、 根据权利要求 15所述的客户端, 其特征在于, 所述计算模块包括:  The client according to claim 15, wherein the calculation module comprises:
第一查找单元, 用于在子片段的重排属性信息中, 查找与预定重排属性相匹配的子片段 的重排属性信息;  a first searching unit, configured to search, in the reordering attribute information of the sub-segment, re-arrangement attribute information of the sub-segment matching the predetermined re-arrangement attribute;
第二查找单元, 用于在子片段的位置信息中, 根据所述与预定重排属性相匹配的子片段 的重排属性信息查找所述与预定重排属性相匹配的子片段的位置信息;  a second searching unit, configured to: in the location information of the sub-segment, search for the location information of the sub-segment matching the predetermined re-arrangement attribute according to the re-arrangement attribute information of the sub-segment matching the predetermined re-arrangement attribute;
计算单元, 用于根据所述与预定重排属性相匹配的子片段的位置信息计算得到所述与预 定重排属性相匹配的子片段的字节范围。  And a calculating unit, configured to calculate, according to the location information of the sub-segment matching the predetermined reordering attribute, the byte range of the sub-segment matching the predetermined re-sequencing attribute.
18、 根据权利要求 16-17中任意一项权利要求所述的客户端, 其特征在于, 所述重排属 性为单一属性或任意属性的组合; The client according to any one of claims 16-17, wherein the rearrangement attribute is a single attribute or a combination of any attributes;
其中, 属性包括视频视角、 视频质量和帧率。  Among them, attributes include video perspective, video quality, and frame rate.
19, 一种在重排并抽取分片中媒体数据的系统, 其特征在于, 所述系统包括服务端和客 户端; 19. A system for rearranging and extracting media data in a tile, wherein the system includes a server and a client Account
所述服务端包括:  The server includes:
切片模块, 用于对媒体内容进行切片  Slice module for slicing media content
重排模块, 用于在切片的过程中, 将分片内的片段中满足重排属性的媒体数据在物理上 连续存储, 构成与所述重排属性对应的子片段, 所述媒体数据由样本或子样本构成;  a rearrangement module, configured to physically store the media data in the segment within the segment that satisfies the rearrangement attribute in a process of slicing, to form a sub-segment corresponding to the rearrangement attribute, where the media data is sampled Or subsample composition;
添加模块, 用于添加所述子片段的索引信息, 所述索引信息包括所述子片段的重排属性 信息和位置信息;  An adding module, configured to add index information of the sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment;
发送模块, 用于向所述客户端发送所述与预定重排属性对应的子片段中的媒体数据; 所述客户端包括:  a sending module, configured to send, to the client, the media data in the sub-segment corresponding to the predetermined re-sorting attribute; the client includes:
获取模块, 用于向所述服务端获取子片段的索引信息, 所述索引信息包括子片段的重排 属性信息和位置信息;  An obtaining module, configured to acquire, by the server, index information of a sub-segment, where the index information includes re-arrangement attribute information and location information of the sub-segment;
计算模块, 用于根据所述索引信息计算与预定重排属性对应的子片段的字节范围; 请求模块, 用于根据所述字节范围向所述服务端请求得到所述与预定重排属性对应的子 片段;  a calculation module, configured to calculate a byte range of the sub-segment corresponding to the predetermined re-arrangement attribute according to the index information; and a requesting module, configured to request, according to the byte range, the obtained re-arrangement attribute from the server Corresponding sub-segment;
接收模块,用于接收所述服务端发送的所述与预定重排属性对应的子片段中的媒体数据。  And a receiving module, configured to receive media data in the sub-segment corresponding to the predetermined re-sorting attribute sent by the server.
PCT/CN2011/074716 2011-05-26 2011-05-26 Method, apparatus and system for rearrangement and extraction of media data in segment WO2011144097A2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2011/074716 WO2011144097A2 (en) 2011-05-26 2011-05-26 Method, apparatus and system for rearrangement and extraction of media data in segment
CN201180000721.7A CN102217313B (en) 2011-05-26 2011-05-26 Method, device and system for resetting and extracting media data in fragments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/074716 WO2011144097A2 (en) 2011-05-26 2011-05-26 Method, apparatus and system for rearrangement and extraction of media data in segment

Publications (2)

Publication Number Publication Date
WO2011144097A2 true WO2011144097A2 (en) 2011-11-24
WO2011144097A3 WO2011144097A3 (en) 2012-04-26

Family

ID=44746764

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074716 WO2011144097A2 (en) 2011-05-26 2011-05-26 Method, apparatus and system for rearrangement and extraction of media data in segment

Country Status (2)

Country Link
CN (1) CN102217313B (en)
WO (1) WO2011144097A2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013106184A1 (en) * 2012-01-09 2013-07-18 Thomson Licensing Managing time-shift data
AU2014294215B2 (en) 2013-07-22 2018-10-04 Sony Corporation Image processing device and method
WO2015123861A1 (en) 2014-02-21 2015-08-27 华为技术有限公司 Method for processing video, terminal and server
CA3004644C (en) * 2015-02-13 2021-03-16 Shanghai Jiao Tong University Implementing method and application of personalized presentation of associated multimedia content
CN106027337B (en) * 2016-05-11 2019-04-05 百度在线网络技术(北京)有限公司 Smart home platform is applied to Network Provider selection method therein and device
CN107071548B (en) * 2017-04-20 2020-08-28 北京搜狐新媒体信息技术有限公司 Video processing method and system
CN108769789B (en) * 2018-05-31 2021-07-30 海能达通信股份有限公司 RTP streaming media storage and reading method and device based on slices
WO2019227366A1 (en) * 2018-05-31 2019-12-05 海能达通信股份有限公司 Slice-based rtp streaming media storage method and device, and slice-based rtp streaming media reading method and device
CN114697668B (en) * 2022-04-22 2023-06-30 腾讯科技(深圳)有限公司 Encoding and decoding method of point cloud media and related products

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040019901A1 (en) * 2002-04-29 2004-01-29 The Boeing Company Methodology for display/distribution of multiple content versions based on demographics
CN1650624A (en) * 2002-04-26 2005-08-03 松下电器产业株式会社 Demultiplexing device
US20100318600A1 (en) * 2009-06-15 2010-12-16 David Furbeck Methods and apparatus to facilitate client controlled sessionless adaptation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1650624A (en) * 2002-04-26 2005-08-03 松下电器产业株式会社 Demultiplexing device
US20040019901A1 (en) * 2002-04-29 2004-01-29 The Boeing Company Methodology for display/distribution of multiple content versions based on demographics
US20100318600A1 (en) * 2009-06-15 2010-12-16 David Furbeck Methods and apparatus to facilitate client controlled sessionless adaptation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
'Technical Specification, 3rd Generation Partnership Project, Technical Specification Group Services and System Aspects, Transparent end-to-end' 3GPP TS 26.234 V9.3.0 June 2010, *

Also Published As

Publication number Publication date
CN102217313B (en) 2013-10-02
WO2011144097A3 (en) 2012-04-26
CN102217313A (en) 2011-10-12

Similar Documents

Publication Publication Date Title
WO2011144097A2 (en) Method, apparatus and system for rearrangement and extraction of media data in segment
RU2681086C1 (en) Method, device and computer program for incapsulation of scalable partitioned data of multimedia with time connection
JP6665126B2 (en) Media packet decoding method and decoding device in multimedia system
JP6177839B2 (en) Data transmission method and apparatus, and data reception method and apparatus
JP6058677B2 (en) Signaling segment characteristics for streaming media data over a network
CN103069769B (en) For the special-effect mode transmitted through the network crossfire of decoded video data
US8898228B2 (en) Methods and systems for scalable video chunking
JP5953307B2 (en) Client, content creator entity and methods for media streaming by them
WO2016029804A1 (en) Video play method, media device, player and multimedia system
US20160105732A1 (en) Optimizing Caches For Media Streaming
TW201842785A (en) Segment types as delimiters and addressable resource identifiers
WO2018014691A1 (en) Method and device for acquiring media data
TW201711478A (en) Directory limit based system and method for storing media segments
CN1764974A (en) The storage medium of storage multi-medium data and the method and apparatus of multimedia rendering data
WO2009131286A1 (en) Scalable video providing and reproducing system and methods thereof
TW201909007A (en) Processing media data using a common descriptor for one of the file format logic boxes
WO2011054319A1 (en) Method, device and system for realizing hierarchically requesting content in http streaming system
WO2012162995A1 (en) Method and device for transmitting stream media
CN113330751A (en) Method and apparatus for storage and signaling of media segment size and priority ranking
WO2015123861A1 (en) Method for processing video, terminal and server
CN108810567B (en) Audio and video visual angle matching method, client and server
WO2018014545A1 (en) Code stream data processing method and apparatus
WO2012071932A1 (en) Method and system for quick launch of segmented program
EP2740275A1 (en) Methods and systems for providing file data for video files
KR20110129064A (en) Content virtual segmentation method, and method and system for providing streaming service using the same

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180000721.7

Country of ref document: CN

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11783014

Country of ref document: EP

Kind code of ref document: A2