WO2012094988A1 - Method and device for transmitting streaming media data - Google Patents

Method and device for transmitting streaming media data Download PDF

Info

Publication number
WO2012094988A1
WO2012094988A1 PCT/CN2012/070191 CN2012070191W WO2012094988A1 WO 2012094988 A1 WO2012094988 A1 WO 2012094988A1 CN 2012070191 W CN2012070191 W CN 2012070191W WO 2012094988 A1 WO2012094988 A1 WO 2012094988A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
feature information
streaming media
media data
information
Prior art date
Application number
PCT/CN2012/070191
Other languages
French (fr)
Chinese (zh)
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
Priority claimed from CN201110005000.7A external-priority patent/CN102594777B/en
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012094988A1 publication Critical patent/WO2012094988A1/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/70Media network packetisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]
    • 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/8451Structuring of content, e.g. decomposing content into time segments using Advanced Video Coding [AVC]

Definitions

  • the present invention relates to the field of streaming media data transmission technologies, and in particular, to a streaming media data transmission method and apparatus for identifying load data information in a multimedia real-time transmission process. Background technique
  • the streaming media server packs media content such as audio, video, subtitles or animation into multimedia data streams according to relevant transmission protocol specifications, and these multimedia data streams are continuously transmitted in real time on the network in the form of packet packets. .
  • the client does not have to wait for the media content to be completely downloaded. It only takes a few seconds or ten seconds to decode the downloaded data and start playing.
  • the media stream is played and transmitted until the media content is played or the client aborts. Applying these streaming media technologies can significantly reduce media playback latency and reduce client-side caching requirements.
  • the packet structure includes two parts, a protocol header and a payload part.
  • the protocol header includes the payload media type, packet sequence number, timestamp, synchronization source identifier, and so on.
  • the payload portion is typically a simple sequential storage of multimedia data.
  • Another common streaming media transport protocol such as the Moving Picture Experts G (MPEG) Transport Stream (TS, Transport Stream) packet, is the same for its packet structure.
  • MPEG Moving Picture Experts G
  • TS Transport Stream
  • the technical problem to be solved by the present invention is to provide a streaming media data transmission method and apparatus, which can quickly realize personalized viewing and precise positioning viewing.
  • a method for transmitting streaming media data where the sending end encapsulates the streaming media data into a packet, the packet includes a packet header and a payload portion, and the load portion includes one or more access units AU, and the method further includes :
  • the AU feature information of the packet further includes:
  • the attribute that the AU feature information of the packet is used to describe includes: an encoding type of the streaming media data.
  • the step of transmitting, by the sending end, the AU feature information of the packet includes: the sending end encapsulating the AU feature information of the packet in a packet header of the packet or encapsulating the payload of the packet In the section, and sent before the first AU.
  • the receiving end After receiving the packet, the receiving end decodes the access unit AU feature information carried in the packet, that is, the AU feature information of the packet, and the AU feature information of the packet is used to describe the streaming media data carried by the packet. Attribute, including feature information of each AU in the packet, and length information of each AU;
  • the required AU is decoded from the packet according to the required offset position of the AU in the packet and the length information of the packet.
  • the AU feature information of the packet further includes: total length information of the AU feature information of the packet;
  • the method further includes: when the receiving end needs to access all AUs in the packet, according to the total length information of the AU feature information of the packet, skipping the AU feature information of the packet, and directly accessing the AU feature information Each AU.
  • the attribute that the AU feature information of the packet is used to describe includes: an encoding type of the streaming media data. Wherein: the AU feature information of the packet is encapsulated in a header of the packet or encapsulated in a payload portion of the packet, and is located before the AU.
  • the method includes: transmitting data according to any one of the sending methods as described above;
  • a device for transmitting streaming media data comprising a first sending processing module and a second sending processing module, wherein:
  • the first sending processing module is configured to: package the streaming media data into a packet to be sent out; wherein, the packet includes a packet header and a payload portion, and the load portion includes one or more access units AU;
  • the second sending processing module is configured to: when the first sending processing module sends a packet, send the AU feature information of the packet; where the AU feature information of the packet is used to describe the carried
  • the attribute of the media data includes feature information of each AU in the packet and length information of each of the AUs.
  • the AU feature information of the packet further includes:
  • the total length information of the AU feature information of the packet is:
  • the attributes of the AU feature information of the packet for describing are:
  • the second sending processing module is configured to send the AU feature information of the packet according to the following manner:
  • the AU feature information of the packet is encapsulated in a header of the packet or encapsulated in a payload portion of the packet, and is transmitted at a location before the first AU.
  • a device for receiving streaming media data comprising: a first parsing module, a selecting module, an operating module and a second parsing module, wherein:
  • the first parsing module is configured to: after receiving the packet, decode the access unit AU feature information carried in the packet, that is, the AU feature information of the packet, and the AU feature information of the packet is used to describe An attribute of the streaming media data that is carried, including feature information of each AU in the packet, and length information of each AU;
  • the selection module is configured to: select a required AU according to characteristic information of each AU;
  • the operation module is configured to: calculate, according to length information of each AU, an offset position of the required AU in the packet;
  • the second parsing module is configured to: decode the required AU from the packet according to the required offset position of the AU in the packet and the length information of the packet.
  • the AU feature information of the packet further includes total length information of the AU feature information of the packet.
  • the second parsing module is further configured to: when all AUs in the packet are required to be accessed, skip the AU feature information of the packet according to the total length information of the AU feature information of the packet, and directly Analyze each AU.
  • the attributes of the AU feature information of the packet used for describing include:
  • the first parsing module is configured to decode the AU feature information of the packet according to the following manner:
  • the location resolves the feature information of the AU of the packet.
  • a streaming media data transmission system comprising: any one of the transmitting devices as described above and any one of the receiving devices as described above.
  • FIG. 1 is a flowchart of a method for transmitting streaming media data according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of encapsulating AU feature information in a payload portion of a packet according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for receiving streaming media data according to an embodiment of the present invention.
  • FIG. 5 is a block diagram of a streaming media data transmitting apparatus according to an embodiment of the present invention.
  • FIG. 6 is a block diagram of a streaming media data receiving apparatus according to an embodiment of the present invention.
  • FIG. 7 is a flow chart of a method for personalized viewing of multi-view coding according to an application example of the present invention
  • FIG. 8 is a flow chart of a method for realizing accurate positioning of an AU according to an application example of the present invention.
  • the transmitting end When performing streaming media data transmission, the transmitting end encapsulates the streaming media data into a packet, and the packet includes a header and a payload portion, and the payload portion includes one or more access units AU.
  • the embodiment of the present invention preferably provides a streaming media data sending method. As shown in FIG. 1, the method includes:
  • Step S101 The transmitting end further sends the AU feature information of the packet when transmitting the packet.
  • the AU feature information of the packet includes the feature information of each AU in the packet, and the length information of each AU.
  • the feature information of the AU is used to describe the bearer thereof.
  • the properties of streaming media data are used to describe the bearer thereof.
  • the feature information of each AU in the packet is provided for the user to quickly filter the required AU, and the length information of each AU is used for the offset calculation, so that the location of the required AU can be quickly located.
  • the feature information of the AU is related to the streaming media data carried in the AU, and is mainly used to distinguish the streaming media data carried in different AUs, and may be set as needed, for example, may be an encoding type of the streaming media data.
  • other attributes of the streaming media such as transmission priority, error flag, one or more of various hierarchical attributes, etc., may be used, and the present invention is not limited herein.
  • the feature information of the AU may also be used to describe multiple attributes of the streaming media data carried by the AU, thereby further enriching the AU filtering condition, and is more suitable for personalized viewing.
  • the embodiment of the present invention describes the coding type of the streaming media data carried by the AU as an example:
  • the feature information of the AU may be selected as the coding type (FT, Frame Type);
  • the feature information of the AU may be selected as a network abstraction layer unit header ( NAL unit header, Network Abstraction Layer Unit header) NAL unit header SVC extension, Network Abstraction Layer Unit header SVC extension ;
  • the feature information of the AU may be selected as a network abstraction layer unit header ( NAL unit header, Network Abstraction Layer Unit header) NAL unit header MVC extension, Network Abstraction Layer Unit header MVC extension .
  • the data is encapsulated by the TS multiplexing protocol, and the AU is a TS packet, and the feature information of the AU may be selected as a packet identifier (PID, packet identifier).
  • PID packet identifier
  • the AU's feature information can be selected according to similar principles. This is not limited.
  • the AU feature information of the packet further includes: total length information of the AU feature information of the packet. It provides the total byte size occupied by the AU feature information within the packet payload.
  • this field can be used to skip the AU feature information and directly access the AU data. Thereby reducing computational complexity and increasing access speed.
  • the transmitting end may encapsulate the AU feature information of the packet in a header of the packet, for example, for RTP and MPEG-TS.
  • the field extension is performed by the RTP header (defined according to the RTP extension standard RTP Header Extension) and the TS header (defined according to the TS header extension standard transport_private_data), and the AU feature information can be carried in the extension field.
  • the transmitting end may also encapsulate the AU feature information of the packet in a payload portion of the packet and at a position before the first AU.
  • the above describes several specific ways of carrying AU feature information in the band. Other methods can also be used, and no limitation is imposed here.
  • the receiving end may first parse the feature information of the AU, and then adapt and select the AU in the load according to the established policy.
  • the specific selection policy does not belong to the content of the present invention, and details are not described herein again.
  • the processing on the receiving side is as shown in Figure 4, including the steps:
  • Step S401 Decoding the access unit AU feature information carried in the packet, the AU feature information includes feature information of each AU in the packet, and length information of each AU; wherein, the feature of the AU Information is used to describe the attributes of the streaming media data it carries;
  • Step S402 Select a required AU according to the feature information of each AU;
  • Step S403 Calculate, according to the length information of each AU, an offset position of the required AU in the packet;
  • Step S404 Decode the required AU from the packet according to the offset position of the required AU in the packet and its length information.
  • the receiving end quickly filters the required AU according to the feature information of each AU in the packet, and then performs offset calculation according to the length information of each AU, so that the receiving end can be quickly determined. Positioning the desired AU enables personalized viewing to be achieved quickly and efficiently.
  • the feature information of the AU is related to the streaming media data carried in the AU, and is mainly used to distinguish the streaming media data carried in different AUs, and may be set as needed, as described above, and details are not described herein again.
  • the feature information of the AU may be encapsulated in a packet header of the packet, or may be encapsulated in a payload portion of the packet and located before the AU.
  • the receiving end may skip the AU feature by using the field when it is desired to access all the AUs in the packet.
  • Information direct access to AU data. This reduces computational complexity and speeds up access.
  • the embodiment of the present invention further provides a streaming media data transmission method.
  • the transmitting end uses the sending method as described above, and also sends the AU feature information of the packet when transmitting the packet, and uses the receiving method as described above at the receiving end.
  • the AU feature information of the packet the required AU is filtered, and the specific location of the AU is accurately located, thereby realizing personalized playback of the specific AU.
  • the embodiment of the present invention further provides a streaming media data sending device, as shown in FIG. 5, including a first sending processing module and a second sending processing module, where:
  • the first sending processing module is configured to: package the streaming media data into a packet, the packet includes a packet header and a payload portion, and the load portion includes one or more access units AU;
  • the second sending processing module is configured to: when the first sending processing module sends a packet, send the AU feature information of the packet.
  • the AU feature information of the packet includes the feature information of each AU in the packet, and length information of each AU;
  • the feature information of the AU is used to describe attributes of the streaming media data that it carries.
  • the AU feature information of the packet may further include: The total length information of the AU feature information of the packet.
  • the feature information of the AU is related to the streaming media data carried in the AU, and is mainly used to distinguish the streaming media data carried in different AUs, and may be set as needed, for example, may be an encoding type of the streaming media data.
  • other attributes of the streaming media such as transmission priority, error flag, one or more of various hierarchical attributes, etc., may be used, and the present invention is not limited herein.
  • the feature information of the AU may also be used to describe multiple attributes of the streaming media data carried by the AU, thereby further enriching the AU filtering condition, and is more suitable for personalized viewing.
  • the second sending processing module may encapsulate the AU feature information of the packet in a packet header of the packet, or may be encapsulated in a payload portion of the packet and located before the first AU. .
  • it can also be sent in other ways, and the invention is not limited herein.
  • the embodiment of the present invention further provides a receiving device, as shown in FIG. 6, including a first parsing module, a selecting module, an computing module, and a second parsing module, where: the first parsing module is configured After receiving the packet, decoding the access unit AU feature information carried in the packet, the AU feature information includes feature information of each AU in the packet, and length information of each AU; The feature information of the AU is used to describe an attribute of the streaming media data that it carries;
  • the selection module is configured to: select a required AU according to characteristic information of each AU;
  • the operation module is configured to: calculate an offset position of the required AU in the packet according to length information of each AU;
  • the second parsing module is configured to: decode the required AU from the packet according to the offset position of the required AU in the packet and its length information.
  • the AU feature information of the packet further includes total length information of the AU feature information of the packet.
  • the second parsing module may further skip the AU feature information and directly parse each AU according to the total length information of the AU feature information when all AUs in the packet are required to be accessed.
  • the feature information of the AU is related to the streaming media data carried in the AU, and is mainly used to distinguish the streaming media data carried in different AUs, and may be set as needed, for example, The encoding type for streaming media data. Of course, it may be other attributes of the streaming media, such as one or more of transmission priority, error flag, various hierarchical attributes, and the like, and the present invention is not limited herein. Alternatively, the feature information of the AU may also be used to describe multiple attributes of the streaming media data carried by the AU, thereby further enriching the AU screening condition, and is more suitable for personalized viewing.
  • the first parsing module may be configured to extract feature information of the AU from a header of the packet, or may be a location from a payload portion of the packet and located before the AU.
  • the specific encapsulation location is determined by the transmitting end. When the transmitting end uses other encapsulation modes, the location of the parsing of the feature information of the AU changes accordingly. Therefore, the present invention is not limited herein.
  • Embodiments of the present invention also provide a system including the transmitting device and the receiving device as described above.
  • This application example is to realize personalized viewing of multi-view coding by using the technical solution of the present invention.
  • the MVC stream contains both viewl and view2 data. They use the view_id value of the NAL unit header MVC extension to distinguish between 1 and 2.
  • the transport stream packet consists of N AUs, denoted as AU1, AU2, AUn.
  • the server can select the AU in the transport stream packet, as shown in FIG. 7, the specific steps include:
  • Step 701 Parse the feature information of the AU.
  • Step 702 Select a suitable AU
  • Step 703 Parse all AU lengths
  • Step 704 Calculate an offset of the selected AU; Based on the length of all AUs in the packet and the length of the selected AU, the offset of the selected AU in the packet can be calculated.
  • the offset of AU1 is the size of the packet header plus the size of all the feature information of the AU.
  • the offset of AUi is the size of the packet header plus the size of all the feature information of the AU, plus the sum of the lengths of AUI, AU2, and AUi-1.
  • Step 705 Obtain all selected AUs.
  • all the packets of the viewl perspective can be selected from the packet, and the client can view the program from the viewl perspective.
  • This application example is to achieve precise positioning of the AU by using the technical solution of the present invention.
  • the transport stream packet consists of N AUs, denoted AUI, AU2, AUn.
  • the client needs to pinpoint the i-th AU of the packet.
  • the specific steps include:
  • Step 801 Select a suitable AU
  • Step 802 Parse the length of all AUs
  • Step 803 Calculate an offset of the selected AU
  • the offset of AUi in the packet can be calculated.
  • the offset of AUi is the size of the packet header plus the size of all the feature information of the AU, plus the sum of the lengths of AUI, AU2, and AUi-1.
  • Step 804 Get all selected AUs.
  • the streaming media transmission method and system provided by the invention can select and accurately locate the AU in the packet in the media forwarding device and the client by using the information in the media stream, and is applicable to the streaming media on-demand and live broadcast scenarios, which can effectively improve the calculation. effectiveness.
  • the above technical solution can quickly realize personalized viewing and precise positioning viewing. Therefore, the present invention has strong industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method and device for transmitting streaming media data, wherein the method includes: a transmitting end encapsulates streaming media data into a packet and transmits the same, wherein the packet includes a packet header and a payload part, with the payload part including one or more access units (AU); wherein the transmitting end further transmits AU characteristic information about the packet when transmitting the packet, including the characteristic information about each AU in the packet and the length information about each AU; wherein the characteristic information about each AU is used for describing the attributes of the streaming media data borne thereby. The method can quickly realize personalized viewing and viewing with accurate positioning.

Description

一种流媒体数据传输方法及装置  Streaming media data transmission method and device
技术领域 Technical field
本发明涉及流媒体数据传输技术领域, 尤其涉及一种在多媒体实时传输 过程中标识负载数据信息的流媒体数据传输方法及装置。 背景技术  The present invention relates to the field of streaming media data transmission technologies, and in particular, to a streaming media data transmission method and apparatus for identifying load data information in a multimedia real-time transmission process. Background technique
随着通信技术的飞速发展和多媒体技术的广泛应用, 对音频、 视频、 字 幕或动画等多媒体内容进行实时传送的流媒体传输技术应运而生。  With the rapid development of communication technologies and the wide application of multimedia technologies, streaming media transmission technology for real-time transmission of multimedia content such as audio, video, subtitles or animation has emerged.
在流媒体典型的应用系统中, 流媒体服务器把音频、 视频、 字幕或动画 等媒体内容按照相关传输协议规范打包为多媒体数据流, 这些多媒体数据流 以分组包的形式在网络上进行实时连续传输。 客户端不必等待媒体内容全部 下载完毕, 只需延迟几秒或十几秒就可以对已经下载的数据进行解码并开始 播放, 媒体流边传输边播放直到媒体内容播放完毕或客户端中止操作。 应用 这些流媒体传输技术, 可以显著缩短媒体播放等待时间、 降低客户端緩存要 求。  In a typical application system of streaming media, the streaming media server packs media content such as audio, video, subtitles or animation into multimedia data streams according to relevant transmission protocol specifications, and these multimedia data streams are continuously transmitted in real time on the network in the form of packet packets. . The client does not have to wait for the media content to be completely downloaded. It only takes a few seconds or ten seconds to decode the downloaded data and start playing. The media stream is played and transmitted until the media content is played or the client aborts. Applying these streaming media technologies can significantly reduce media playback latency and reduce client-side caching requirements.
然而, 目前常用的流媒体传输协议规范对于传输内容而言几乎是透明的, 其只提供了流媒体传输的通道。 以流媒体传输协议实时传输协议(RTP, Real-time Transport protocol )为例, 其分组包结构包括两部分, 协议头和负载 部分。 协议头包括了负载媒体类型、 包序号、 时间戳、 同步源标识等。 而负 载部分通常是多媒体数据的简单连续顺序存储。 另一种常用流媒体传输协议 如运动图像专家组(MPEG, Moving Pictures Experts Grou )传输流(TS, Transport Stream )分组, 其分组包结构同样如此。 如果一个分组包中存在多 个媒体编码逻辑的访问单元(AU, Access Unit ) , 而且每个 AU的编码特性 和携带数据的属性不一致, 而客户希望选择特定的数据进行播放或者精确定 位到一个分组包内的某一个 AU时, 客户无法从分组包头中获得任何辅助信 息, 只能遍历所有的负载数据。 而这个过程往往计算量大, 且效率低下, 造 成了不必要的计算复杂度。 发明内容 However, the currently used streaming media protocol specifications are almost transparent to the transmission of content, which only provides a channel for streaming media transmission. Taking the Real-time Transport Protocol (RTP) as an example, the packet structure includes two parts, a protocol header and a payload part. The protocol header includes the payload media type, packet sequence number, timestamp, synchronization source identifier, and so on. The payload portion is typically a simple sequential storage of multimedia data. Another common streaming media transport protocol, such as the Moving Picture Experts G (MPEG) Transport Stream (TS, Transport Stream) packet, is the same for its packet structure. If there are multiple access units (AU, Access Unit) of media coding logic in a packet, and the coding characteristics of each AU are inconsistent with the attributes carrying data, the client wants to select specific data for playback or to accurately locate a packet. When an AU is in the package, the customer cannot obtain any auxiliary information from the packet header, and can only traverse all the load data. This process is often computationally intensive and inefficient, resulting in unnecessary computational complexity. Summary of the invention
本发明要解决的技术问题是, 提供一种流媒体数据传输方法及装置, 能 够快速实现个性化观看和精确定位观看。  The technical problem to be solved by the present invention is to provide a streaming media data transmission method and apparatus, which can quickly realize personalized viewing and precise positioning viewing.
为了解决上述技术问题, 釆用如下技术方案:  In order to solve the above technical problems, the following technical solutions are used:
一种流媒体数据的发送方法, 发送端将流媒体数据封装为分组包发送出 去, 所述分组包包括包头和负载部分, 所述负载部分中包括一个或者多个访 问单元 AU, 该方法还包括:  A method for transmitting streaming media data, where the sending end encapsulates the streaming media data into a packet, the packet includes a packet header and a payload portion, and the load portion includes one or more access units AU, and the method further includes :
所述发送端在发送所述分组包时, 还发送所述分组包的 AU特征信息; 其中, 所述分组包的 AU特征信息用于描述所述分组包承载的流媒体数 据的属性, 包括所述分组包中各 AU的特征信息以及各所述 AU的长度信息。 其中, 所述分组包的 AU特征信息还包括:  And transmitting, by the sending end, the AU feature information of the packet, when the packet is sent, where the AU feature information of the packet is used to describe attributes of the streaming media data carried by the packet, including The feature information of each AU in the packet and the length information of each of the AUs. The AU feature information of the packet further includes:
所述分组包的 AU特征信息的总长度信息。 其中: 所述分组包的 AU特征信息用于描述的属性包括: 流媒体数据的 编码类型。 其中: 所述发送端发送所述分组包的 AU特征信息的步骤包括: 所述发送端将所述分组包的 AU特征信息封装在所述分组包的包头中或 者封装在所述分组包的负载部分中, 且位于首个 AU之前的位置发送。 一种流媒体数据的接收方法, 包括:  The total length information of the AU feature information of the packet. The attribute that the AU feature information of the packet is used to describe includes: an encoding type of the streaming media data. The step of transmitting, by the sending end, the AU feature information of the packet includes: the sending end encapsulating the AU feature information of the packet in a packet header of the packet or encapsulating the payload of the packet In the section, and sent before the first AU. A method for receiving streaming media data, comprising:
接收端接收到分组包后, 解码所述分组包中承载的访问单元 AU特征信 息, 即所述分组包的 AU特征信息, 所述分组包的 AU特征信息用于描述其 承载的流媒体数据的属性, 包括所述分组包中各 AU的特征信息以及各所述 AU的长度信息;  After receiving the packet, the receiving end decodes the access unit AU feature information carried in the packet, that is, the AU feature information of the packet, and the AU feature information of the packet is used to describe the streaming media data carried by the packet. Attribute, including feature information of each AU in the packet, and length information of each AU;
根据各所述 AU的特征信息选择所需要的 AU;  Selecting the required AU according to the feature information of each of the AUs;
根据各所述 AU的长度信息, 计算出所需要的 AU在所述分组包中的偏 移位置; 以及 根据所需要的 AU在所述分组包中的偏移位置及所述分组包的长度信息, 从所述分组包中解码出需要的 AU。 其中: 所述分组包的 AU特征信息还包括: 所述分组包的 AU特征信息 的总长度信息; Calculating, according to length information of each of the AUs, an offset position of the required AU in the packet; The required AU is decoded from the packet according to the required offset position of the AU in the packet and the length information of the packet. The AU feature information of the packet further includes: total length information of the AU feature information of the packet;
该方法还包括: 所述接收端在需要访问所述分组包内的所有 AU时, 根 据所述分组包的 AU特征信息的总长度信息, 跳过所述分组包的 AU特征信 息, 直接依次访问各 AU。 其中: 所述分组包的 AU特征信息用于描述的属性包括: 流媒体数据的 编码类型。 其中: 所述分组包的 AU特征信息封装在所述分组包的包头中或者封装 在所述分组包的负载部分中, 且位于 AU之前的位置。  The method further includes: when the receiving end needs to access all AUs in the packet, according to the total length information of the AU feature information of the packet, skipping the AU feature information of the packet, and directly accessing the AU feature information Each AU. The attribute that the AU feature information of the packet is used to describe includes: an encoding type of the streaming media data. Wherein: the AU feature information of the packet is encapsulated in a header of the packet or encapsulated in a payload portion of the packet, and is located before the AU.
包括: 按照如上所述的任意一种发送方法进行数据发送;  The method includes: transmitting data according to any one of the sending methods as described above;
按照如上所述的任意一种接收方法进行数据接收。 一种流媒体数据的发送装置, 包括第一发送处理模块及第二发送处理模 块, 其中:  Data reception is performed in accordance with any of the receiving methods as described above. A device for transmitting streaming media data, comprising a first sending processing module and a second sending processing module, wherein:
所述第一发送处理模块设置成: 将流媒体数据封装为分组包发送出去; 其中, 所述分组包包括包头和负载部分, 所述负载部分中包括一个或者多个 访问单元 AU;  The first sending processing module is configured to: package the streaming media data into a packet to be sent out; wherein, the packet includes a packet header and a payload portion, and the load portion includes one or more access units AU;
所述第二发送处理模块设置成:在所述第一发送处理模块发送分组包时, 发送所述分组包的 AU特征信息; 其中, 所述分组包的 AU特征信息用于描 述其承载的流媒体数据的属性, 包括所述分组包中各 AU的特征信息以及各 所述 AU的长度信息。 其中, 所述分组包的 AU特征信息还包括:  The second sending processing module is configured to: when the first sending processing module sends a packet, send the AU feature information of the packet; where the AU feature information of the packet is used to describe the carried The attribute of the media data includes feature information of each AU in the packet and length information of each of the AUs. The AU feature information of the packet further includes:
所述分组包的 AU特征信息的总长度信息。 其中: 所述分组包的 AU特征信息用于描述的属性包括: 流媒体数据的编码类型。 其中:所述第二发送处理模块设置成按照以下方式发送所述分组包的 AU 特征信息: The total length information of the AU feature information of the packet. Wherein: the attributes of the AU feature information of the packet for describing are: The encoding type of streaming media data. Wherein: the second sending processing module is configured to send the AU feature information of the packet according to the following manner:
将所述分组包的 AU特征信息封装在所述分组包的包头中或者封装在所 述分组包的负载部分中, 且位于首个 AU之前的位置发送。 一种流媒体数据的接收装置, 其中, 包括第一解析模块、 选择模块、 运 算模块及第二解析模块, 其中:  The AU feature information of the packet is encapsulated in a header of the packet or encapsulated in a payload portion of the packet, and is transmitted at a location before the first AU. A device for receiving streaming media data, comprising: a first parsing module, a selecting module, an operating module and a second parsing module, wherein:
所述第一解析模块设置成: 在接收到分组包后, 解码所述分组包中承载 的访问单元 AU特征信息即所述分组包的 AU特征信息, 所述分组包的 AU 特征信息用于描述其承载的流媒体数据的属性, 包括所述分组包中各 AU的 特征信息以及各所述 AU的长度信息;  The first parsing module is configured to: after receiving the packet, decode the access unit AU feature information carried in the packet, that is, the AU feature information of the packet, and the AU feature information of the packet is used to describe An attribute of the streaming media data that is carried, including feature information of each AU in the packet, and length information of each AU;
所述选择模块设置成: 根据各 AU的特征信息选择需要的 AU;  The selection module is configured to: select a required AU according to characteristic information of each AU;
所述运算模块设置成: 根据各 AU的长度信息, 计算出所需要的 AU在 所述分组包中的偏移位置;  The operation module is configured to: calculate, according to length information of each AU, an offset position of the required AU in the packet;
所述第二解析模块设置成: 根据所需要的 AU在所述分组包中的偏移位 置及所述分组包的长度信息, 从所述分组包中解码出需要的 AU。 其中: 所述分组包的 AU特征信息还包括, 所述分组包的 AU特征信息 的总长度信息。  The second parsing module is configured to: decode the required AU from the packet according to the required offset position of the AU in the packet and the length information of the packet. The AU feature information of the packet further includes total length information of the AU feature information of the packet.
所述第二解析模块还设置成: 在需要访问所述分组包内的所有 AU时, 根据所述分组包的 AU特征信息的总长度信息, 跳过所述分组包的 AU特征 信息, 直接依次解析各 AU。 其中: 所述分组包的 AU特征信息用于描述的属性包括:  The second parsing module is further configured to: when all AUs in the packet are required to be accessed, skip the AU feature information of the packet according to the total length information of the AU feature information of the packet, and directly Analyze each AU. Wherein: the attributes of the AU feature information of the packet used for describing include:
流媒体数据的编码类型。 其中: 所述第一解析模块设置成按照以下方式解码所述分组包的 AU特 征信息:  The encoding type of streaming media data. Wherein: the first parsing module is configured to decode the AU feature information of the packet according to the following manner:
从所述分组包的包头中或者从所述分组包的负载部分中且位于 AU之前 的位置解析出所述分组包的 AU的特征信息。 From the header of the packet or from the payload portion of the packet and before the AU The location resolves the feature information of the AU of the packet.
一种流媒体数据传输系统, 包括: 如上所述的任意一种发送装置和如上 所述的任意一种接收装置。  A streaming media data transmission system comprising: any one of the transmitting devices as described above and any one of the receiving devices as described above.
上述技术方案能够快速实现个性化观看和精确定位观看。 附图概述 The above technical solution can quickly realize personalized viewing and precise positioning viewing. BRIEF abstract
图 1是本发明实施例的一种流媒体数据发送方法流程图;  1 is a flowchart of a method for transmitting streaming media data according to an embodiment of the present invention;
图 3是本发明实施例的在分组包的负载部分中封装 AU特征信息的示意 图; 3 is a schematic diagram of encapsulating AU feature information in a payload portion of a packet according to an embodiment of the present invention;
图 4是本发明实施例的一种流媒体数据接收方法流程图;  4 is a flowchart of a method for receiving streaming media data according to an embodiment of the present invention;
图 5是本发明实施例的一种流媒体数据发送装置方框图;  FIG. 5 is a block diagram of a streaming media data transmitting apparatus according to an embodiment of the present invention; FIG.
图 6是本发明实施例的一种流媒体数据接收装置方框图;  6 is a block diagram of a streaming media data receiving apparatus according to an embodiment of the present invention;
图 7是本发明应用实例的一种多视角编码的个性化观看的方法流程图; 图 8是本发明应用实例的一种实现 AU的精确定位的方法流程图。  7 is a flow chart of a method for personalized viewing of multi-view coding according to an application example of the present invention; FIG. 8 is a flow chart of a method for realizing accurate positioning of an AU according to an application example of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
下面将结合附图对本发明实施例做进一步详细说明。  The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
在进行流媒体数据发送时, 发送端会将流媒体数据封装为分组包发送出 去, 所述分组包包括包头和负载部分, 所述负载部分中包括一个或者多个访 问单元 AU。 为了能够实现根据用户需要快速定位到具体的 AU, 本发明实施 例较佳地, 提供了一种流媒体数据发送方法, 如图 1所示, 包括:  When performing streaming media data transmission, the transmitting end encapsulates the streaming media data into a packet, and the packet includes a header and a payload portion, and the payload portion includes one or more access units AU. In order to enable the user to quickly locate a specific AU according to the user's needs, the embodiment of the present invention preferably provides a streaming media data sending method. As shown in FIG. 1, the method includes:
步骤 S101 : 所述发送端在发送分组包时, 还发送所述分组包的 AU特征 信息。  Step S101: The transmitting end further sends the AU feature information of the packet when transmitting the packet.
其中, 所述分组包的 AU特征信息包括所述分组包中各 AU的特征信息, 以及所述各 AU的长度信息。 其中, 所述 AU的特征信息用于描述其承载的 流媒体数据的属性。 The AU feature information of the packet includes the feature information of each AU in the packet, and the length information of each AU. The feature information of the AU is used to describe the bearer thereof. The properties of streaming media data.
其中, 分组包中各 AU的特征信息为用户快速筛选需要的 AU提供了可 能, 而各 AU的长度信息则用于偏移量计算,从而可以快速定位出需要的 AU 的位置。  The feature information of each AU in the packet is provided for the user to quickly filter the required AU, and the length information of each AU is used for the offset calculation, so that the location of the required AU can be quickly located.
其中, 所述 AU的特征信息与 AU中承载的流媒体数据相关, 主要用于 区别不同 AU中承载的流媒体数据, 其可以根据需要进行设置, 例如, 可以 为流媒体数据的编码类型。 当然, 可以为流媒体的其他属性, 例如传输优先 级、 错误标记、 各种分级属性中的一种或者多种, 等等, 本发明在此不做限 制。 或者, 所述 AU的特征信息也可以用于描述其承载的流媒体数据的多个 属性, 从而进一步丰富 AU筛选条件, 更适合个性化观看。  The feature information of the AU is related to the streaming media data carried in the AU, and is mainly used to distinguish the streaming media data carried in different AUs, and may be set as needed, for example, may be an encoding type of the streaming media data. Of course, other attributes of the streaming media, such as transmission priority, error flag, one or more of various hierarchical attributes, etc., may be used, and the present invention is not limited herein. Alternatively, the feature information of the AU may also be used to describe multiple attributes of the streaming media data carried by the AU, thereby further enriching the AU filtering condition, and is more suitable for personalized viewing.
本发明实施例为了便于理解, 以所述 AU的特征信息描述其承载的流媒 体数据的编码类型为例进行说明:  For the sake of understanding, the embodiment of the present invention describes the coding type of the streaming media data carried by the AU as an example:
如对于 AU 中承载的流媒体数据为自适应多码率 (AMR , Adaptive Multi-Rate )编码类型的数据, AU的特征信息可以选择为编码类型( FT, Frame Type ) ;  For the data of the adaptive multi-rate (AMR) coding type for the streaming media data carried in the AU, the feature information of the AU may be selected as the coding type (FT, Frame Type);
对于 AU 中承载的流媒体数据为可分级编码 (SVC , Scalable Video Coding )编码类型的数据, AU的特征信息可以选择为网络抽象层单元头( NAL unit header, Network Abstraction Layer Unit header )力口上网络抽象层单元头可 分级编码扩展 ( NAL unit header SVC extension, Network Abstraction Layer Unit header SVC extension ) ;  For the streaming media data carried in the AU is SVC (Scalable Video Coding) coding type data, the feature information of the AU may be selected as a network abstraction layer unit header ( NAL unit header, Network Abstraction Layer Unit header) NAL unit header SVC extension, Network Abstraction Layer Unit header SVC extension ;
对于 AU 中承载的流媒体数据为多视角编码 (MVC, Multiview video coding )编码类型的数据, AU的特征信息可以选择为网络抽象层单元头( NAL unit header, Network Abstraction Layer Unit header )力口上网络抽象层单元头多 视角编码扩展 ( NAL unit header MVC extension, Network Abstraction Layer Unit header MVC extension ) 。  For the streaming media data carried in the AU is multi-view video coding (MVC) coding type data, the feature information of the AU may be selected as a network abstraction layer unit header ( NAL unit header, Network Abstraction Layer Unit header) NAL unit header MVC extension, Network Abstraction Layer Unit header MVC extension .
对于 AU中承载的流媒体数据为 TS复用协议封装的数据, 其 AU为 TS 包, AU的特征信息可以选择为包标示符(PID, packet identifier ) 。  For the data that is carried in the AU, the data is encapsulated by the TS multiplexing protocol, and the AU is a TS packet, and the feature information of the AU may be selected as a packet identifier (PID, packet identifier).
其他编码类型的数据, AU的特征信息可以根据类似的原则进行选取,在 此不限。 For other coding types of data, the AU's feature information can be selected according to similar principles. This is not limited.
较佳地, 所述分组包的 AU特征信息还包括: 所述分组包的 AU特征信 息的总长度信息。 其提供了该分组包负载内 AU特征信息所占用的总字节大 小。 当客户端希望访问分组包内的所有 AU时, 可以通过该字段跳过 AU特 征信息, 直接访问 AU数据。 从而降低计算复杂度, 提高访问速度。  Preferably, the AU feature information of the packet further includes: total length information of the AU feature information of the packet. It provides the total byte size occupied by the AU feature information within the packet payload. When the client wants to access all the AUs in the packet, this field can be used to skip the AU feature information and directly access the AU data. Thereby reducing computational complexity and increasing access speed.
较佳地, 如图 2所示, 所述发送端可以将所述分组包的 AU特征信息封 装在所述分组包的包头中,例如针对 RTP和 MPEG-TS进行扩展。通过对 RTP 包头 (根据 RTP扩展标准 RTP Header Extension定义)和 TS包头 (根据 TS 头扩展标准 transport_private— data定义)进行字段扩展, 在扩展字段中就可以 携带 AU特征信息。 或者, 如图 3所示, 所述发送端也可以将所述分组包的 AU特征信息封装在所述分组包的负载部分中且位于首个 AU之前的位置。上 面列举几种具体的带内携带 AU特征信息的方式, 也可以釆用其他方式, 在 此不作限制。  Preferably, as shown in FIG. 2, the transmitting end may encapsulate the AU feature information of the packet in a header of the packet, for example, for RTP and MPEG-TS. The field extension is performed by the RTP header (defined according to the RTP extension standard RTP Header Extension) and the TS header (defined according to the TS header extension standard transport_private_data), and the AU feature information can be carried in the extension field. Alternatively, as shown in FIG. 3, the transmitting end may also encapsulate the AU feature information of the packet in a payload portion of the packet and at a position before the first AU. The above describes several specific ways of carrying AU feature information in the band. Other methods can also be used, and no limitation is imposed here.
相应地, 接收端 (媒体转发服务器或者客户端)在接收到分组包后, 可 以先解析 AU的特征信息, 然后按照既定的策略对负载内的 AU进行适配和 选择。 具体的选择策略不属于本发明的关注的内容, 在此不再赘述。 接收端 侧的处理如图 4所示, 包括步骤: Correspondingly, after receiving the packet, the receiving end (media forwarding server or client) may first parse the feature information of the AU, and then adapt and select the AU in the load according to the established policy. The specific selection policy does not belong to the content of the present invention, and details are not described herein again. The processing on the receiving side is as shown in Figure 4, including the steps:
步骤 S401 : 解码所述分组包中承载的访问单元 AU特征信息, 所述 AU 特征信息包括所述分组包中各 AU的特征信息, 以及所述各 AU的长度信息; 其中, 所述 AU的特征信息用于描述其承载的流媒体数据的属性;  Step S401: Decoding the access unit AU feature information carried in the packet, the AU feature information includes feature information of each AU in the packet, and length information of each AU; wherein, the feature of the AU Information is used to describe the attributes of the streaming media data it carries;
步骤 S402: 根据各 AU的特征信息选择需要的 AU;  Step S402: Select a required AU according to the feature information of each AU;
步骤 S403: 根据各 AU的长度信息, 计算出所述需要的 AU在所述分组 包中的偏移位置;  Step S403: Calculate, according to the length information of each AU, an offset position of the required AU in the packet;
步骤 S404: 根据所述需要的 AU在所述分组包中的偏移位置及其长度信 息, 从所述分组包中解码出需要的 AU。  Step S404: Decode the required AU from the packet according to the offset position of the required AU in the packet and its length information.
釆用本发明实施例的方案, 接收端根据分组包中各 AU的特征信息快速 筛选需要的 AU,再根据各 AU的长度信息进行偏移量计算,从而可以快速定 位出需要的 AU的位置, 进而能够快速、 高效地实现个性化观看。 其中, 所述 AU的特征信息与 AU中承载的流媒体数据相关, 主要用于 区别不同 AU中承载的流媒体数据, 其可以根据需要进行设置, 具体如上所 述, 此处不再赘述。 With the solution of the embodiment of the present invention, the receiving end quickly filters the required AU according to the feature information of each AU in the packet, and then performs offset calculation according to the length information of each AU, so that the receiving end can be quickly determined. Positioning the desired AU enables personalized viewing to be achieved quickly and efficiently. The feature information of the AU is related to the streaming media data carried in the AU, and is mainly used to distinguish the streaming media data carried in different AUs, and may be set as needed, as described above, and details are not described herein again.
其中, 所述 AU的特征信息可以封装在所述分组包的包头中, 或者也可 以封装在所述分组包的负载部分中且位于 AU之前的位置。  The feature information of the AU may be encapsulated in a packet header of the packet, or may be encapsulated in a payload portion of the packet and located before the AU.
较佳地, 当所述分组包的 AU特征信息还包括所述分组包的 AU特征信 息的总长度信息时, 接收端在希望访问分组包内的所有 AU时, 可以通过该 字段跳过 AU特征信息, 直接访问 AU数据。 从而降低计算复杂度, 提高访 问速度。  Preferably, when the AU feature information of the packet further includes the total length information of the AU feature information of the packet, the receiving end may skip the AU feature by using the field when it is desired to access all the AUs in the packet. Information, direct access to AU data. This reduces computational complexity and speeds up access.
本发明实施例还提供了一种流媒体数据传输方法, 在发送端釆用如上所 述发送方法, 在发送分组包时还发送分组包的 AU特征信息, 在接收端釆用 如上所述接收方法, 根据分组包的 AU特征信息, 筛选需要的 AU, 并精确定 位出 AU的具体位置, 从而实现个性化播放具体的 AU。 The embodiment of the present invention further provides a streaming media data transmission method. The transmitting end uses the sending method as described above, and also sends the AU feature information of the packet when transmitting the packet, and uses the receiving method as described above at the receiving end. According to the AU feature information of the packet, the required AU is filtered, and the specific location of the AU is accurately located, thereby realizing personalized playback of the specific AU.
为了实现上述发送方法, 本发明实施例还提供了一种流媒体数据发送装 置, 如图 5所示, 包括第一发送处理模块和第二发送处理模块, 其中: In order to implement the foregoing sending method, the embodiment of the present invention further provides a streaming media data sending device, as shown in FIG. 5, including a first sending processing module and a second sending processing module, where:
所述第一发送处理模块设置成: 将流媒体数据封装为分组包发送出去 , 所述分组包包括包头和负载部分, 所述负载部分中包括一个或者多个访问单 元 AU;  The first sending processing module is configured to: package the streaming media data into a packet, the packet includes a packet header and a payload portion, and the load portion includes one or more access units AU;
所述第二发送处理模块设置成:在所述第一发送处理模块发送分组包时, 发送所述分组包的 AU特征信息。  The second sending processing module is configured to: when the first sending processing module sends a packet, send the AU feature information of the packet.
其中, 所述分组包的 AU特征信息包括所述分组包中各 AU的特征信息, 以及所述各 AU的长度信息;  The AU feature information of the packet includes the feature information of each AU in the packet, and length information of each AU;
其中, 所述 AU的特征信息用于描述其承载的流媒体数据的属性。  The feature information of the AU is used to describe attributes of the streaming media data that it carries.
较佳地, 所述分组包的 AU特征信息还可以包括: 所述分组包的 AU特征信息的总长度信息。 Preferably, the AU feature information of the packet may further include: The total length information of the AU feature information of the packet.
其中, 所述 AU的特征信息与 AU中承载的流媒体数据相关, 主要用于 区别不同 AU中承载的流媒体数据, 其可以根据需要进行设置, 例如, 可以 为流媒体数据的编码类型。 当然, 可以为流媒体的其他属性, 例如传输优先 级、 错误标记、 各种分级属性中的一种或者多种, 等等, 本发明在此不做限 制。 或者, 所述 AU的特征信息也可以用于描述其承载的流媒体数据的多个 属性, 从而进一步丰富 AU筛选条件, 更适合个性化观看。  The feature information of the AU is related to the streaming media data carried in the AU, and is mainly used to distinguish the streaming media data carried in different AUs, and may be set as needed, for example, may be an encoding type of the streaming media data. Of course, other attributes of the streaming media, such as transmission priority, error flag, one or more of various hierarchical attributes, etc., may be used, and the present invention is not limited herein. Alternatively, the feature information of the AU may also be used to describe multiple attributes of the streaming media data carried by the AU, thereby further enriching the AU filtering condition, and is more suitable for personalized viewing.
其中, 所述第二发送处理模块可以将所述分组包的 AU特征信息封装在 所述分组包的包头中, 或者也可以封装在所述分组包的负载部分中且位于首 个 AU之前的位置。 当然, 也可以釆用其他方式发送, 本发明在此不作限制。  The second sending processing module may encapsulate the AU feature information of the packet in a packet header of the packet, or may be encapsulated in a payload portion of the packet and located before the first AU. . Of course, it can also be sent in other ways, and the invention is not limited herein.
为了实现上述接收方法, 本发明实施例还提供了一种接收装置, 如图 6 所示, 包括第一解析模块、 选择模块、 运算模块及第二解析模块, 其中: 所述第一解析模块设置成: 在接收到分组包后, 解码所述分组包中承载 的访问单元 AU特征信息, 所述 AU特征信息包括所述分组包中各 AU的特 征信息, 以及所述各 AU的长度信息; 其中, 所述 AU的特征信息用于描述 其承载的流媒体数据的属性; In order to implement the foregoing receiving method, the embodiment of the present invention further provides a receiving device, as shown in FIG. 6, including a first parsing module, a selecting module, an computing module, and a second parsing module, where: the first parsing module is configured After receiving the packet, decoding the access unit AU feature information carried in the packet, the AU feature information includes feature information of each AU in the packet, and length information of each AU; The feature information of the AU is used to describe an attribute of the streaming media data that it carries;
所述选择模块设置成: 根据各 AU的特征信息选择需要的 AU;  The selection module is configured to: select a required AU according to characteristic information of each AU;
所述运算模块设置成: 根据各 AU的长度信息, 计算出所述需要的 AU 在所述分组包中的偏移位置;  The operation module is configured to: calculate an offset position of the required AU in the packet according to length information of each AU;
所述第二解析模块设置成: 根据所述需要的 AU在所述分组包中的偏移 位置及其长度信息, 从所述分组包中解码出需要的 AU。  The second parsing module is configured to: decode the required AU from the packet according to the offset position of the required AU in the packet and its length information.
较佳地, 所述分组包的 AU特征信息还包括, 所述分组包的 AU特征信 息的总长度信息。 相应地, 所述第二解析模块, 还可以在需要访问所述分组 包内所有 AU时, 根据所述 AU特征信息的总长度信息, 跳过所述 AU特征 信息, 直接依次解析各 AU。  Preferably, the AU feature information of the packet further includes total length information of the AU feature information of the packet. Correspondingly, the second parsing module may further skip the AU feature information and directly parse each AU according to the total length information of the AU feature information when all AUs in the packet are required to be accessed.
其中, 所述 AU的特征信息与 AU中承载的流媒体数据相关, 主要用于 区别不同 AU中承载的流媒体数据, 其可以根据需要进行设置, 例如, 可以 为流媒体数据的编码类型。 当然, 可以为流媒体的其他属性, 例如传输优先 级、 错误标记、 各种分级属性中的一种或者多种, 等等, 本发明在此不做限 制。 或者, 所述 AU的特征信息也可以用于描述其承载的流媒体数据的多个 属性, 从而进一步丰富 AU筛选条件, 更适合个性化观看。 The feature information of the AU is related to the streaming media data carried in the AU, and is mainly used to distinguish the streaming media data carried in different AUs, and may be set as needed, for example, The encoding type for streaming media data. Of course, it may be other attributes of the streaming media, such as one or more of transmission priority, error flag, various hierarchical attributes, and the like, and the present invention is not limited herein. Alternatively, the feature information of the AU may also be used to describe multiple attributes of the streaming media data carried by the AU, thereby further enriching the AU screening condition, and is more suitable for personalized viewing.
其中, 所述第一解析模块可以是从所述分组包的包头中, 或者也可以是 从所述分组包的负载部分中且位于 AU之前的位置解析出所述 AU的特征信 息。 具体的封装位置由发送端确定, 当发送端釆用其他封装方式时, 解析所 述 AU的特征信息的位置随之而变, 因此, 本发明在此不做限制。  The first parsing module may be configured to extract feature information of the AU from a header of the packet, or may be a location from a payload portion of the packet and located before the AU. The specific encapsulation location is determined by the transmitting end. When the transmitting end uses other encapsulation modes, the location of the parsing of the feature information of the AU changes accordingly. Therefore, the present invention is not limited herein.
本发明实施例还提供了一种系统,包括如上所述的发送装置和接收装置。 Embodiments of the present invention also provide a system including the transmitting device and the receiving device as described above.
为了进一步说明, 本发明还提供了如下应用实例。 For further explanation, the present invention also provides the following application examples.
应用实例 1:  Application example 1:
本应用实例为釆用本发明技术方案实现多视角编码的个性化观看。 假定 MVC码流中包含 viewl和 view2两种视角的数据, 他们以 NAL unit header MVC extension中的 view— id的取值为 1 , 2来进行区分。 并且传输流分组包 由 N个 AU组成, 记为 AU1 , AU2, AUn。  This application example is to realize personalized viewing of multi-view coding by using the technical solution of the present invention. Assume that the MVC stream contains both viewl and view2 data. They use the view_id value of the NAL unit header MVC extension to distinguish between 1 and 2. And the transport stream packet consists of N AUs, denoted as AU1, AU2, AUn.
如果客户希望观看 viewl视角的数据, 则服务器可以对传输流分组包内 的 AU进行选择, 如图 7所示, 具体步骤包括:  If the client wants to view the data of the viewl perspective, the server can select the AU in the transport stream packet, as shown in FIG. 7, the specific steps include:
步骤 701 : 解析 AU的特征信息;  Step 701: Parse the feature information of the AU.
解析分组包内所有 AU的特征信息,获取 NAL unit header MVC extension 中的 view— id取值;  Parsing the feature information of all AUs in the packet, and obtaining the view_id value in the NAL unit header MVC extension;
步骤 702: 选择适合的 AU;  Step 702: Select a suitable AU;
选取所有 view— id字段取值为 1的 AU, 假定在此有两个 AU的 view— id 字段取值为 1 , 分别为 AU1 , AUi。  Select all AUs whose view-id field is 1 and assume that there are two AU view-id fields with values of 1 , which are AU1 and AUi respectively.
步骤 703: 解析所有 AU的长度;  Step 703: Parse all AU lengths;
步骤 704: 计算已选择 AU的偏移; 根据分组包中所有 AU的长度和已选择 AU的长度, 可以计算出已选择 AU在分组包中的偏移。 AU1的偏移为分组包头的大小加上 AU所有特征信 息的大小。 AUi的偏移为分组包头的大小加上 AU所有特征信息的大小, 加 上 AUI , AU2, AUi - 1长度之和。 Step 704: Calculate an offset of the selected AU; Based on the length of all AUs in the packet and the length of the selected AU, the offset of the selected AU in the packet can be calculated. The offset of AU1 is the size of the packet header plus the size of all the feature information of the AU. The offset of AUi is the size of the packet header plus the size of all the feature information of the AU, plus the sum of the lengths of AUI, AU2, and AUi-1.
步骤 705: 获取所有已选择的 AU。  Step 705: Obtain all selected AUs.
根据已选择 AU的偏移和长度, 即可从分组包中选择所有 viewl视角的 数据包, 则客户端可以以 viewl视角观看节目。  According to the offset and length of the selected AU, all the packets of the viewl perspective can be selected from the packet, and the client can view the program from the viewl perspective.
应用实例 2: Application example 2:
本应用实例为釆用本发明技术方案实现 AU的精确定位。 假定传输流分 组包由 N个 AU组成, 记为 AUI , AU2, AUn。 通过某种策略, 客户端 需要精确定位到该分组包的第 i个 AU。 如图 8所示, 具体步骤包括:  This application example is to achieve precise positioning of the AU by using the technical solution of the present invention. Assume that the transport stream packet consists of N AUs, denoted AUI, AU2, AUn. With some strategy, the client needs to pinpoint the i-th AU of the packet. As shown in Figure 8, the specific steps include:
步骤 801 : 选择适合的 AU;  Step 801: Select a suitable AU;
根据策略, 选择 AU为 AUi;  According to the policy, select AU as AUi;
步骤 802: 解析所有 AU的长度;  Step 802: Parse the length of all AUs;
步骤 803: 计算已选择 AU的偏移;  Step 803: Calculate an offset of the selected AU;
根据分组包中所有 AU的长度和已选择 AU的长度, 可以计算出 AUi在 分组包中的偏移。 AUi的偏移为分组包头的大小加上 AU所有特征信息的大 小 , 加上 AUI , AU2, AUi - 1长度之和。  Based on the length of all AUs in the packet and the length of the selected AU, the offset of AUi in the packet can be calculated. The offset of AUi is the size of the packet header plus the size of all the feature information of the AU, plus the sum of the lengths of AUI, AU2, and AUi-1.
步骤 804: 获取所有已选择的 AU。  Step 804: Get all selected AUs.
根据 AUi的偏移就可以精确定位到 AUi,满足客户精确定位的播放需求。  According to the offset of AUi, it can be accurately positioned to AUi, which meets the customer's precise positioning requirements.
本发明提出的流媒体传输方法与系统, 借助媒体流带内信息在媒体转发 设备和客户端上进行分组包内 AU的选择和精确定位, 适用于流媒体点播和 直播场景, 能够有效的提升计算效率。 The streaming media transmission method and system provided by the invention can select and accurately locate the AU in the packet in the media forwarding device and the client by using the information in the media stream, and is applicable to the streaming media on-demand and live broadcast scenarios, which can effectively improve the calculation. effectiveness.
以上仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域 的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围 之内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention, and various modifications and changes can be made to the present invention. Where is the spirit and principle of the present invention Any modifications, equivalent substitutions, improvements, etc. made therein are intended to be included within the scope of the present invention.
工业实用性 Industrial applicability
上述技术方案能够快速实现个性化观看和精确定位观看。 因此本发明具 有 强的工业实用性。  The above technical solution can quickly realize personalized viewing and precise positioning viewing. Therefore, the present invention has strong industrial applicability.

Claims

权 利 要 求 书 Claim
1、 一种流媒体数据的发送方法, 发送端将流媒体数据封装为分组包发送 出去, 所述分组包包括包头和负载部分, 所述负载部分中包括一个或者多个 访问单元 AU, 该方法还包括: A method for transmitting streaming media data, where a sending end encapsulates streaming media data into a packet, the packet includes a header and a payload, and the payload includes one or more access units AU, the method Also includes:
所述发送端在发送所述分组包时, 还发送所述分组包的 AU特征信息; 其中, 所述分组包的 AU特征信息用于描述所述分组包承载的流媒体数 据的属性, 包括所述分组包中各 AU的特征信息以及各所述 AU的长度信息。  And transmitting, by the sending end, the AU feature information of the packet, when the packet is sent, where the AU feature information of the packet is used to describe attributes of the streaming media data carried by the packet, including The feature information of each AU in the packet and the length information of each of the AUs.
2、 如权利要求 1所述的发送方法, 其中, 所述分组包的 AU特征信息还 包括: 2. The transmitting method according to claim 1, wherein the AU feature information of the packet further comprises:
所述分组包的 AU特征信息的总长度信息。  The total length information of the AU feature information of the packet.
3、 如权利要求 1所述的发送方法, 其中: 3. The transmitting method according to claim 1, wherein:
所述分组包的 AU特征信息用于描述的属性包括: 流媒体数据的编码类 型。  The attributes for describing the AU feature information of the packet include: The encoding type of the streaming media data.
4、 如权利要求 1所述的发送方法, 其中: 所述发送端发送所述分组包的 AU特征信息的步骤包括: 4. The transmitting method according to claim 1, wherein: the transmitting end transmitting the AU feature information of the packet includes:
所述发送端将所述分组包的 AU特征信息封装在所述分组包的包头中或 者封装在所述分组包的负载部分中, 且位于首个 AU之前的位置发送。  The transmitting end encapsulates the AU feature information of the packet in a header of the packet or encapsulated in a payload portion of the packet, and is transmitted at a position before the first AU.
5、 一种流媒体数据的接收方法, 包括: 5. A method for receiving streaming media data, comprising:
接收端接收到分组包后, 解码所述分组包中承载的访问单元 AU特征信 息, 即所述分组包的 AU特征信息, 所述分组包的 AU特征信息用于描述其 承载的流媒体数据的属性, 包括所述分组包中各 AU的特征信息以及各所述 AU的长度信息;  After receiving the packet, the receiving end decodes the access unit AU feature information carried in the packet, that is, the AU feature information of the packet, and the AU feature information of the packet is used to describe the streaming media data carried by the packet. Attribute, including feature information of each AU in the packet, and length information of each AU;
根据各所述 AU的特征信息选择所需要的 AU;  Selecting the required AU according to the feature information of each of the AUs;
根据各所述 AU的长度信息, 计算出所需要的 AU在所述分组包中的偏 移位置; 以及 根据所需要的 AU在所述分组包中的偏移位置及所述分组包的长度信息, 从所述分组包中解码出需要的 AU。 Calculating, according to length information of each of the AUs, an offset position of the required AU in the packet; The required AU is decoded from the packet according to the required offset position of the AU in the packet and the length information of the packet.
6、 如权利要求 5所述的接收方法, 其中: 6. The receiving method according to claim 5, wherein:
所述分组包的 AU特征信息还包括: 所述分组包的 AU特征信息的总长 度信息;  The AU feature information of the packet further includes: total length information of the AU feature information of the packet;
该方法还包括: 所述接收端在需要访问所述分组包内的所有 AU时, 根 据所述分组包的 AU特征信息的总长度信息, 跳过所述分组包的 AU特征信 息, 直接依次访问各 AU。  The method further includes: when the receiving end needs to access all AUs in the packet, according to the total length information of the AU feature information of the packet, skipping the AU feature information of the packet, and directly accessing the AU feature information Each AU.
7、 如权利要求 5所述的接收方法, 其中: 7. The receiving method according to claim 5, wherein:
所述分组包的 AU特征信息用于描述的属性包括: 流媒体数据的编码类 型。  The attributes for describing the AU feature information of the packet include: The encoding type of the streaming media data.
8、 如权利要求 5所述的接收方法, 其中: 8. The receiving method according to claim 5, wherein:
所述分组包的 AU特征信息封装在所述分组包的包头中或者封装在所述 分组包的负载部分中, 且位于 AU之前的位置。  The AU feature information of the packet is encapsulated in the header of the packet or encapsulated in the payload portion of the packet, and is located before the AU.
9、 一种流媒体数据传输方法, 包括:  9. A streaming media data transmission method, comprising:
按照如权利要求 1-4中任一项所述的发送方法进行数据发送;  Data transmission according to the transmission method according to any one of claims 1 to 4;
按照如权利要求 5-8中任一项所述的接收方法进行数据接收。  Data reception is performed according to the receiving method according to any one of claims 5-8.
10、 一种流媒体数据的发送装置, 包括第一发送处理模块及第二发送处 理模块, 其中: 所述第一发送处理模块设置成: 将流媒体数据封装为分组包发送出去; 其中, 所述分组包包括包头和负载部分, 所述负载部分中包括一个或者多个 访问单元 AU; A device for transmitting streaming media data, comprising: a first sending processing module and a second sending processing module, wherein: the first sending processing module is configured to: package the streaming media data into a packet to send out; The packet includes a header and a payload portion, and the load portion includes one or more access units AU;
所述第二发送处理模块设置成:在所述第一发送处理模块发送分组包时, 发送所述分组包的 AU特征信息; 其中, 所述分组包的 AU特征信息用于描 述其承载的流媒体数据的属性, 包括所述分组包中各 AU的特征信息以及各 所述 AU的长度信息。 The second sending processing module is configured to: when the first sending processing module sends a packet, send the AU feature information of the packet; where the AU feature information of the packet is used to describe the carried The attribute of the media data includes feature information of each AU in the packet and length information of each of the AUs.
11、 如权利要求 10所述的发送装置, 其中, 所述分组包的 AU特征信息 还包括: The transmitting device according to claim 10, wherein the AU feature information of the packet further comprises:
所述分组包的 AU特征信息的总长度信息。  The total length information of the AU feature information of the packet.
12、 如权利要求 10所述的发送装置, 其中: 所述分组包的 AU特征信息 用于描述的属性包括: 12. The transmitting device according to claim 10, wherein: the AU feature information of the packet is used to describe attributes including:
流媒体数据的编码类型。  The encoding type of streaming media data.
13、 如权利要求 10所述的发送装置, 其中: 所述第二发送处理模块设置 成按照以下方式发送所述分组包的 AU特征信息: 13. The transmitting apparatus according to claim 10, wherein: the second transmission processing module is configured to transmit AU feature information of the packet in the following manner:
将所述分组包的 AU特征信息封装在所述分组包的包头中或者封装在所 述分组包的负载部分中, 且位于首个 AU之前的位置发送。  The AU feature information of the packet is encapsulated in a header of the packet or encapsulated in a payload portion of the packet, and is transmitted at a location before the first AU.
14、 一种流媒体数据的接收装置, 其中, 包括第一解析模块、 选择模块、 运算模块及第二解析模块, 其中: 14. A device for receiving streaming media data, comprising: a first parsing module, a selecting module, an arithmetic module, and a second parsing module, wherein:
所述第一解析模块设置成: 在接收到分组包后, 解码所述分组包中承载 的访问单元 AU特征信息即所述分组包的 AU特征信息, 所述分组包的 AU 特征信息用于描述其承载的流媒体数据的属性, 包括所述分组包中各 AU的 特征信息以及各所述 AU的长度信息;  The first parsing module is configured to: after receiving the packet, decode the access unit AU feature information carried in the packet, that is, the AU feature information of the packet, and the AU feature information of the packet is used to describe An attribute of the streaming media data that is carried, including feature information of each AU in the packet, and length information of each AU;
所述选择模块设置成: 根据各 AU的特征信息选择需要的 AU;  The selection module is configured to: select a required AU according to characteristic information of each AU;
所述运算模块设置成: 根据各 AU的长度信息, 计算出所需要的 AU在 所述分组包中的偏移位置;  The operation module is configured to: calculate, according to length information of each AU, an offset position of the required AU in the packet;
所述第二解析模块设置成: 根据所需要的 AU在所述分组包中的偏移位 置及所述分组包的长度信息, 从所述分组包中解码出需要的 AU。  The second parsing module is configured to: decode the required AU from the packet according to the required offset position of the AU in the packet and the length information of the packet.
15、 如权利要求 14所述的接收装置, 其中: 15. The receiving device of claim 14, wherein:
所述分组包的 AU特征信息还包括, 所述分组包的 AU特征信息的总长 度信息,  The AU feature information of the packet further includes total length information of the AU feature information of the packet,
所述第二解析模块还设置成: 在需要访问所述分组包内的所有 AU时, 根据所述分组包的 AU特征信息的总长度信息, 跳过所述分组包的 AU特征 信息, 直接依次解析各 AU。 The second parsing module is further configured to: when all AUs in the packet are required to be accessed, skip the AU feature of the packet according to the total length information of the AU feature information of the packet Information, directly parsing each AU in turn.
16、 如权利要求 14所述的接收装置, 其中: 所述分组包的 AU特征信息 用于描述的属性包括: The receiving device according to claim 14, wherein: the AU feature information of the packet is used to describe attributes including:
流媒体数据的编码类型。  The encoding type of streaming media data.
17、 如权利要求 14所述的接收装置, 其中: 所述第一解析模块设置成按 照以下方式解码所述分组包的 AU特征信息: 17. The receiving device of claim 14, wherein: the first parsing module is configured to decode AU feature information of the packet as follows:
从所述分组包的包头中或者从所述分组包的负载部分中且位于 AU之前 的位置解析出所述分组包的 AU的特征信息。  The feature information of the AU of the packet is parsed from the header of the packet or from the payload portion of the packet and before the AU.
18、 一种流媒体数据传输系统, 包括: 如权利要求 10-13 中任一项所述 的发送装置和如权利要求 14-17中任一项所述的接收装置。  A streaming media data transmission system, comprising: the transmitting device according to any one of claims 10-13, and the receiving device according to any one of claims 14-17.
PCT/CN2012/070191 2011-01-11 2012-01-10 Method and device for transmitting streaming media data WO2012094988A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110005000.7A CN102594777B (en) 2011-01-11 A kind of streaming media data transmission method and device
CN201110005000.7 2011-01-11

Publications (1)

Publication Number Publication Date
WO2012094988A1 true WO2012094988A1 (en) 2012-07-19

Family

ID=46482985

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/070191 WO2012094988A1 (en) 2011-01-11 2012-01-10 Method and device for transmitting streaming media data

Country Status (1)

Country Link
WO (1) WO2012094988A1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212452A (en) * 2006-12-31 2008-07-02 中兴通讯股份有限公司 Real-time transport protocol based multimedia data link control method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212452A (en) * 2006-12-31 2008-07-02 中兴通讯股份有限公司 Real-time transport protocol based multimedia data link control method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
NETWORK WORKING GROUP: "RTP Payload Format for H.264 Video", RFC3984, 1 March 2005 (2005-03-01) *
NETWORK WORKING GROUP: "RTP Payload Format for MPEG-4 Audio/Visual Streams", RFC3016, 30 November 2000 (2000-11-30) *
NETWORK WORKING GROUP: "RTP Payload Format for Transport of MPEG-4 Elementary Streams", RFC3640, 30 November 2003 (2003-11-30) *

Also Published As

Publication number Publication date
CN102594777A (en) 2012-07-18

Similar Documents

Publication Publication Date Title
US10728591B2 (en) Method of configuring and transmitting an MMT transport packet
JP6422527B2 (en) Data receiving method and apparatus in multimedia system
TWI668982B (en) Method and server device for transport interface for multimedia and file transport, and computer-readable storage medium for recording related instructions thereon
RU2750337C2 (en) Method and device for transmitting media data in multimedia transport system
US20200029130A1 (en) Method and apparatus for configuring content in a broadcast system
CN105847868B (en) Generate the method and system of the reference to the point of interest in Media Stream
US11805302B2 (en) Method, device, and computer program for transmitting portions of encapsulated media content
CN111149368A (en) Content source description for immersive media data
WO2012094916A1 (en) Method for encapsulating and transmitting streaming media packet, and device for processing streaming media
JP2013536623A (en) Providing sequence data set for streaming video data
US20140344875A1 (en) Method for transmitting media data having access unit divided into media fragment units in heterogeneous network
WO2011153366A1 (en) Fragmented file structure for live media stream delivery
KR102098723B1 (en) Method configuring and transmitting mmt transport packet
CN111034203A (en) Processing omnidirectional media with dynamic zone-by-zone encapsulation
JP2019520741A (en) Sample entry and random access
EP3096524B1 (en) Communication apparatus, communication data generation method, and communication data processing method
WO2010130188A1 (en) Method and apparatus for carrying transport stream
CN112771876B (en) Method and apparatus for retrieving media data and method and apparatus for transmitting media data
CN110870323B (en) Processing media data using omnidirectional media format
CN110832878B (en) Enhanced region-oriented encapsulation and view-independent high-efficiency video coding media profile
WO2012094988A1 (en) Method and device for transmitting streaming media data
CN102594777B (en) A kind of streaming media data transmission method and device
Raj et al. Server side trick play for video streaming

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12733917

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12733917

Country of ref document: EP

Kind code of ref document: A1