[go: up one dir, main page]

CN101938324B - Network media stream playing method and device - Google Patents

Network media stream playing method and device Download PDF

Info

Publication number
CN101938324B
CN101938324B CN 200910150674 CN200910150674A CN101938324B CN 101938324 B CN101938324 B CN 101938324B CN 200910150674 CN200910150674 CN 200910150674 CN 200910150674 A CN200910150674 A CN 200910150674A CN 101938324 B CN101938324 B CN 101938324B
Authority
CN
China
Prior art keywords
error correction
forward error
network media
media stream
port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 200910150674
Other languages
Chinese (zh)
Other versions
CN101938324A (en
Inventor
胡小翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200910150674 priority Critical patent/CN101938324B/en
Publication of CN101938324A publication Critical patent/CN101938324A/en
Application granted granted Critical
Publication of CN101938324B publication Critical patent/CN101938324B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供了一种网络媒体流播放方法与装置,所述方法包括:从第一端口接收媒体数据源发送的网络媒体流;从第二端口接收媒体数据源发送的所述网络媒体流的前向纠错冗余信息;根据所述前向纠错冗余信息播放所述网络媒体流。本发明实施例的网络媒体流播放方法与装置采用不同于媒体数据端口的另一个端口来接收前向纠错冗余信息,能自然兼容未集成前向纠错功能的终端,实现了最大的终端兼容性。

An embodiment of the present invention provides a method and device for playing network media streams, the method comprising: receiving the network media stream sent by the media data source from the first port; receiving the network media stream sent by the media data source from the second port forward error correction redundancy information; play the network media stream according to the forward error correction redundancy information. The method and device for playing network media streams in the embodiments of the present invention use another port different from the media data port to receive forward error correction redundant information, which is naturally compatible with terminals that do not integrate forward error correction functions, and realizes the largest terminal compatibility.

Description

一种网络媒体流播放方法与装置Method and device for playing network media stream

技术领域 technical field

本发明涉及通信领域,具体地涉及一种网络媒体流播放方法与装置。The present invention relates to the communication field, in particular to a method and device for playing network media streams.

背景技术 Background technique

IPTV(Internet Protocol Television,交互式网络电视)是一种利用宽带IP网络,向家庭用户提供包括数字电视在内的多种交互式服务的技术。用户在家中通过STB(Set Top Box,网络机顶盒)和普通电视机来享受交互式网络电视服务。IPTV (Internet Protocol Television) is a technology that uses broadband IP networks to provide home users with a variety of interactive services, including digital TV. Users enjoy interactive Internet TV services through STB (Set Top Box, Internet set-top box) and ordinary TV sets at home.

CDN(Content Distribution Network,内容分发网络)和终端之间是通过传统IP网络互联的,一般使用无连接UDP(User Datagram Protocol,用户数据报协议)报文来传送媒体内容。UDP报文在经过多个承载网设备后会出现随机丢失,对于流媒体内容来说可能造成画面破损或者声音停顿。为了解决这个问题,可以使用TCP(Transmission Control Protocol,传输控制协议)来传送媒体内容,但逐包确认机制对服务器和网络的开销较大,不适合大规模应用。The CDN (Content Distribution Network, Content Distribution Network) and the terminal are interconnected through a traditional IP network, and generally use connectionless UDP (User Datagram Protocol, User Datagram Protocol) messages to transmit media content. UDP packets will be randomly lost after passing through multiple bearer network devices, which may cause picture damage or sound pause for streaming media content. In order to solve this problem, TCP (Transmission Control Protocol) can be used to transmit media content, but the packet-by-packet confirmation mechanism has a large overhead on the server and network, and is not suitable for large-scale applications.

图1为现有技术的基于前向纠错技术的网络媒体流传输系统的架构图。如图1所示,FEC(Forward Error Correction,前向纠错)技术的原理为网络媒体流服务器对原始媒体内容进行前向纠错编码,将原始媒体内容加入一定量的前向纠错冗余信息后一起发送出去;客户端进行反向FEC前向纠错解码,对丢失的报文进行恢复,以达到提高视频质量的目的。FIG. 1 is a structural diagram of a network media stream transmission system based on forward error correction technology in the prior art. As shown in Figure 1, the principle of FEC (Forward Error Correction) technology is that the network media streaming server performs forward error correction encoding on the original media content, and adds a certain amount of forward error correction redundancy to the original media content. After the information is sent out together; the client performs reverse FEC forward error correction decoding to recover the lost message, so as to improve the video quality.

FEC前向纠错编码与解码的算法有很多种,例如“Raptor”、“ReedSolomon”等,其复杂度和纠删性能都各不相同。在本领域中,纠删意为恢复网络媒体流在网络传输过程中丢失的报文分片,该纠删的功能由FEC解码模块完成的。FEC解码模块一般是集成到STB里的,有一定的定制化工作。在实际应用当中,机顶盒的生产厂家多种多样,软硬件版本也各不相同,一部分机顶盒由于厂家开发进度或者硬件性能限制等原因并没有完成FEC解码算法的集成。因此,如何对这些机顶盒提供同等内容的流服务就成为一个非常现实的问题。There are many algorithms for FEC forward error correction encoding and decoding, such as "Raptor", "ReedSolomon", etc., with different complexity and erasure correction performance. In this field, erasure correction means recovering packet fragments lost during network transmission of network media streams, and the erasure correction function is completed by the FEC decoding module. The FEC decoding module is generally integrated into the STB and requires some customization. In practical applications, there are various manufacturers of set-top boxes, and the software and hardware versions are also different. Some set-top boxes have not completed the integration of FEC decoding algorithms due to the development progress of manufacturers or hardware performance limitations. Therefore, how to provide streaming services of the same content to these set-top boxes has become a very real problem.

有鉴于此,现有技术将网络媒体流的FEC冗余数据复用到RTP(Real-timeTransport Protocol,实时传送协议)流中,采用保留的PT(Payload Type,载荷类型)字段进行传送。PT字段用来表示RTP载荷的格式、类型及确定终端应用层程序对此载荷采取的解析方法,其中,保留的PT字段可用于标识RTP报文的类型为网络媒体流的FEC冗余数据。In view of this, the existing technology multiplexes the FEC redundant data of the network media stream into the RTP (Real-time Transport Protocol, real-time transport protocol) stream, and uses the reserved PT (Payload Type, payload type) field for transmission. The PT field is used to indicate the format and type of the RTP payload and to determine the analysis method adopted by the terminal application layer program for this payload. The reserved PT field can be used to identify the type of the RTP message as FEC redundant data of the network media stream.

现有技术采用单一数据信道分时传输网络媒体流及其FEC冗余数据,例如先传输多个网络媒体流报文再传输一个FEC冗余数据报文的交替传输方式。现有技术在使用RTP流作为FEC冗余数据传输通道的情况下,未集成相应FEC功能的终端在收到无法识别或解析的特定载荷类型的RTP报文时必须主动丢弃。对于终端来说,处理FEC冗余报文是要显式感知的,即终端需要从网络上收取FEC冗余报文至应用层之后再进行判断处理。In the prior art, a single data channel is used to transmit network media streams and their FEC redundant data in time-sharing, for example, an alternate transmission mode in which multiple network media stream messages are transmitted first and then a FEC redundant data message is transmitted. In the prior art, when an RTP stream is used as an FEC redundant data transmission channel, a terminal not integrated with a corresponding FEC function must actively discard an RTP packet of a specific payload type that cannot be identified or parsed. For the terminal, the processing of the FEC redundant message needs to be explicitly perceived, that is, the terminal needs to receive the FEC redundant message from the network and send it to the application layer before making judgment and processing.

发明内容 Contents of the invention

本发明实施例提供了一种网络媒体流的播放方法及装置、一种网络媒体流发送方法及装置,本发明实施例的一种网络媒体流的播放方法及装置通过另一个端口来接收前向纠错冗余信息,根据接收的前向纠错冗余信息来恢复网络媒体流中丢失的数据报文分片,并播放恢复后的网络媒体流。Embodiments of the present invention provide a method and device for playing network media streams, a method and device for sending network media streams, and a method and device for playing network media streams in embodiments of the present invention receive forward The error correction redundant information recovers the lost data message fragments in the network media stream according to the received forward error correction redundant information, and plays the restored network media stream.

一方面,本发明实施例提供了一种网络媒体流的播放方法,所述方法包括:从第一端口接收媒体数据源发送的网络媒体流;从第二端口接收所述媒体数据源发送的所述网络媒体流的前向纠错冗余信息;根据所述前向纠错冗余信息播放所述网络媒体流。On the one hand, an embodiment of the present invention provides a method for playing a network media stream, the method comprising: receiving the network media stream sent by the media data source from the first port; receiving the network media stream sent by the media data source from the second port forward error correction redundancy information of the network media stream; playing the network media stream according to the forward error correction redundancy information.

另一方面,本发明实施例提供了一种网络媒体流播放装置,所述装置包括:第一接收单元,用于从第一端口接收媒体数据源发送的网络媒体流;第二接收单元,用于从第二端口接收所述媒体数据源发送的所述网络媒体流的前向纠错冗余信息;播放单元,用于根据所述前向纠错冗余信息播放所述网络媒体流。On the other hand, an embodiment of the present invention provides a device for playing network media streams, the device comprising: a first receiving unit configured to receive a network media stream sent by a media data source from a first port; a second receiving unit configured to receiving from the second port the forward error correction redundancy information of the network media stream sent by the media data source; a playing unit configured to play the network media stream according to the forward error correction redundancy information.

又一方面,本发明实施例提供了一种网络媒体流发送方法,所述方法包括:将网络媒体流发送给终端设备的第一端口;将所述网络媒体流的前向纠错冗余信息发送给所述终端设备的第二端口。In yet another aspect, an embodiment of the present invention provides a method for sending a network media stream, the method comprising: sending the network media stream to a first port of a terminal device; sending forward error correction redundancy information of the network media stream to sent to the second port of the terminal device.

再一方面,本发明实施例提供了一种网络媒体流发送装置,所述装置包括:第一发送单元,用于将网络媒体流发送给终端设备的第一端口;第二发送单元,用于将所述网络媒体流的前向纠错冗余信息发送给所述终端设备的第二端口。In yet another aspect, an embodiment of the present invention provides an apparatus for sending a network media stream, the apparatus comprising: a first sending unit, configured to send the network media stream to a first port of a terminal device; a second sending unit, configured to sending the forward error correction redundancy information of the network media stream to the second port of the terminal device.

本发明实施例具有如下有益技术效果:本发明实施例的媒体数据发送方法及装置没有将前向纠错冗余信息交织到网络媒体流中,而是将网络媒体流及其前向纠错冗余信息分别发送至终端设备的不同端口,终端应用层不需要对FEC冗余报文显示感知,有效地避免了终端设备因不支持相应前向纠错冗余信息报文解码功能而无法播放的缺陷,实现了对各种终端设备的兼容。The embodiments of the present invention have the following beneficial technical effects: the media data sending method and device of the embodiments of the present invention do not interweave forward error correction redundancy information into the network media stream, but interweave the network media stream and its forward error correction redundancy The remaining information is sent to different ports of the terminal device, and the terminal application layer does not need to display and perceive the FEC redundant message, which effectively avoids the failure of the terminal device to play because it does not support the decoding function of the corresponding forward error correction redundant information message Defects, to achieve compatibility with various terminal equipment.

附图说明 Description of drawings

图1为现有技术的基于前向纠错技术的网络媒体流传输系统的架构图;Fig. 1 is the frame diagram of the network media stream transmission system based on forward error correction technology of prior art;

图2为本发明实施例的网络媒体流播放方法的整体流程图;Fig. 2 is the overall flow chart of the network media stream playing method of the embodiment of the present invention;

图3为本发明实施例的网络媒体流播放装置的功能框图;Fig. 3 is the functional block diagram of the network media stream player of the embodiment of the present invention;

图4为本发明实施例的网络媒体流发送方法的整体流程图;4 is an overall flowchart of a method for sending a network media stream according to an embodiment of the present invention;

图5为本发明实施例的网络媒体流发送装置的功能框图;FIG. 5 is a functional block diagram of a device for sending network media streams according to an embodiment of the present invention;

图6为本发明实施例的系统原理图;Fig. 6 is a system schematic diagram of an embodiment of the present invention;

图7为本发明实施例进行兼容播放的具体实现方法流程图;FIG. 7 is a flow chart of a specific implementation method for compatible playback according to an embodiment of the present invention;

图8为本发明实施例的媒体播放信令流程图之一;FIG. 8 is one of the flow charts of media playing signaling in an embodiment of the present invention;

图9为本发明实施例的媒体播放信令流程图之二;FIG. 9 is the second flow chart of media playing signaling in the embodiment of the present invention;

图10为本发明实施例的媒体播放信令流程图之三。FIG. 10 is the third flow chart of media playing signaling in the embodiment of the present invention.

具体实施方式 Detailed ways

下面结合附图对本发明实施例作详细阐述,下列示例性描述应当理解为是对本发明权利要求的解释而不是对本发明权利要求的限制。The embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. The following exemplary description should be interpreted as an explanation of the claims of the present invention rather than a limitation of the claims of the present invention.

现有技术采用一个数据信道分时发送网络媒体流和网络媒体流的前向纠错冗余数据。终端需要将接收到RTP报文发送至应用层以进行识别、判断或解析,对于未集成相应FEC功能的终端在收到无法识别或解析的特定载荷类型(Payload Type)的RTP报文时必须主动丢弃,终端对于保留PT值的FEC冗余RTP报文是需要显式感知的。本发明实施例提供的的方法与装置采用两个端口分别接收网络媒体流和网络媒体流的冗余信息,终端对该冗余信息并不需要显示感知,避免了终端设备因不支持相应前向纠错冗余信息报文解码功能而无法播放的缺陷,实现了对各种终端设备的兼容。In the prior art, a data channel is used to time-divisionally transmit network media streams and forward error correction redundant data of the network media streams. The terminal needs to send the received RTP message to the application layer for identification, judgment or analysis. For a terminal that does not integrate the corresponding FEC function, it must actively For discarding, the terminal needs to be aware of the FEC redundant RTP packets that retain the PT value. The method and device provided by the embodiments of the present invention use two ports to respectively receive the network media stream and the redundant information of the network media stream. The defect that the redundant information message cannot be played due to the decoding function of error correction has realized the compatibility with various terminal equipments.

图2为本发明实施例的网络媒体流播放方法的整体流程图。如图2所示,本发明实施例的一种网络媒体流的播放方法包括如下步骤:FIG. 2 is an overall flowchart of a method for playing network media streams according to an embodiment of the present invention. As shown in Figure 2, a kind of playing method of network media stream of the embodiment of the present invention comprises the following steps:

步骤S201、从第一端口接收媒体数据源发送的网络媒体流;Step S201, receiving a network media stream sent by a media data source from a first port;

步骤S202、从第二端口接收所述媒体数据源发送的所述网络媒体流的前向纠错冗余信息;Step S202, receiving the forward error correction redundancy information of the network media stream sent by the media data source from the second port;

步骤S203、根据所述前向纠错冗余信息播放所述网络媒体流。Step S203, playing the network media stream according to the forward error correction redundancy information.

具体地,实际应用中,步骤S201之前还包括步骤200:Specifically, in practical applications, step S201 also includes step 200:

步骤200、打开用于接收网络媒体流的第一端口以及用于接收所述网络媒体流的前向纠错冗余信息的第二端口;Step 200, open the first port for receiving the network media stream and the second port for receiving the forward error correction redundancy information of the network media stream;

可选地,步骤S203可以具体包括:根据所述前向纠错冗余信息恢复所述网络媒体流中丢失的数据报文分片,再播放恢复后的网络媒体流;Optionally, step S203 may specifically include: recovering lost data packet fragments in the network media stream according to the forward error correction redundancy information, and playing the recovered network media stream;

可选地,步骤S201可以位于步骤S202之后;可选地,步骤S201可以与步骤S202同时发生。Optionally, step S201 may be located after step S202; optionally, step S201 and step S202 may occur simultaneously.

可选地,该方法还包括:通过和所述媒体数据源的动态协商来约定所述第二端口;或根据配置信息确定所述第二端口。例如,动态协商的方式可以是在媒体数据源与终端设备之间通过RTSP(Real Time Streaming Protocol,实时流协议)的“SETUP”命令来传递第二端口号。第一端口的获取方式可选地为通过媒体数据源与终端设备之间的RTSP信令交互来获取。Optionally, the method further includes: agreeing on the second port through dynamic negotiation with the media data source; or determining the second port according to configuration information. For example, the way of dynamic negotiation can be to transmit the second port number through the "SETUP" command of RTSP (Real Time Streaming Protocol, real-time streaming protocol) between the media data source and the terminal equipment. The manner of obtaining the first port may optionally be obtained through RTSP signaling interaction between the media data source and the terminal device.

图3为本发明实施例的一种网络媒体流的播放装置的原理框图,该装置可以位于STB中。如图3所示,本发明实施例的一种网络媒体流的播放装置30包括:端口监听单元31,用于打开接收网络媒体流的第一端口以及接收所述网络媒体流的前向纠错冗余信息的第二端口,进行端口监听;第一接收单元32,用于从所述第一端口接收媒体数据源发送的网络媒体流;第二接收单元33,用于从所述第二端口接收媒体数据源发送的所述网络媒体流的前向纠错冗余信息;播放单元34,用于根据所述前向纠错冗余信息播放所述网络媒体流。可选地,播放单元34可以根据所述前向纠错冗余信息恢复所述网络媒体流中丢失的数据报文分片,再播放恢复后的网络媒体流。FIG. 3 is a functional block diagram of an apparatus for playing network media streams according to an embodiment of the present invention, and the apparatus may be located in an STB. As shown in FIG. 3 , a playback device 30 of a network media stream according to an embodiment of the present invention includes: a port monitoring unit 31 configured to open a first port for receiving a network media stream and a forward error correction device for receiving the network media stream. The second port of redundant information is used for port monitoring; the first receiving unit 32 is used to receive the network media stream sent by the media data source from the first port; the second receiving unit 33 is used to receive the network media stream from the second port The forward error correction redundancy information of the network media stream sent by the media data source is received; the playing unit 34 is configured to play the network media stream according to the forward error correction redundancy information. Optionally, the playing unit 34 may recover the lost data packet fragments in the network media stream according to the forward error correction redundancy information, and then play the recovered network media stream.

可选地,该网络媒体流的播放装置还具有一个端口设置单元35,该单元用于通过和所述媒体数据源的动态协商来约定所述第二端口;或根据配置信息确定所述第二端口。第一端口的获取方式可以沿用现有技术的方式,如:通过媒体数据源与终端设备之间的RTSP信令交互来获取。Optionally, the playing device of the network media stream also has a port setting unit 35, which is used to agree on the second port through dynamic negotiation with the media data source; or determine the second port according to configuration information. port. The method of obtaining the first port may follow the method of the prior art, for example, obtain through RTSP signaling interaction between the media data source and the terminal device.

图4为本发明实施例的一种网络媒体流发送方法的整体方法流程图。如图4所示,本发明实施例的一种网络媒体流发送方法包括:FIG. 4 is a flow chart of an overall method of a method for sending a network media stream according to an embodiment of the present invention. As shown in Figure 4, a method for sending a network media stream according to an embodiment of the present invention includes:

步骤S401、将网络媒体流发送给终端设备的第一端口;Step S401, sending the network media stream to the first port of the terminal device;

步骤S402、将网络媒体流的前向纠错冗余信息发送给终端设备的第二端口。Step S402, sending the forward error correction redundancy information of the network media stream to the second port of the terminal device.

可选地,步骤S401可以位于步骤S402之后;可选地,步骤S401与步骤S402可以同时进行。Optionally, step S401 may be located after step S402; optionally, step S401 and step S402 may be performed simultaneously.

可选地,该方法还包括:通过和所述终端的动态协商来约定所述第二端口;或根据配置信息确定所述第二端口。例如,动态协商的方式可以是在媒体数据源与终端设备之间通过RTSP的“SETUP”命令来传递第二端口号。第一端口的获取方式例如可以为:通过媒体数据源与终端设备之间的RTSP信令交互来获取。Optionally, the method further includes: agreeing on the second port through dynamic negotiation with the terminal; or determining the second port according to configuration information. For example, the manner of dynamic negotiation may be to transfer the second port number between the media data source and the terminal device through an RTSP "SETUP" command. The manner of acquiring the first port may be, for example, acquiring through RTSP signaling interaction between the media data source and the terminal device.

图5为本发明实施例的一种网络媒体流发送装置的原理框图,该装置可以位于MS中。如图5所示,本发明实施例的一种网络媒体流发送装置50包括:第一发送单元51,用于将网络媒体流发送给终端设备的第一端口;第二发送单元52,用于将网络媒体流的前向纠错冗余信息发送给终端设备的第二端口。Fig. 5 is a functional block diagram of an apparatus for sending a network media stream according to an embodiment of the present invention, and the apparatus may be located in an MS. As shown in FIG. 5 , a network media stream sending device 50 according to an embodiment of the present invention includes: a first sending unit 51, configured to send the network media stream to a first port of a terminal device; a second sending unit 52, configured to Send the forward error correction redundancy information of the network media stream to the second port of the terminal device.

可选地,本实施例的网络媒体流发送装置50还包括端口设置单元53,用于通过和所述终端的动态协商来约定所述第二端口;或根据配置信息确定所述第二端口。可选地,动态协商的方式可以是在网络媒体流发送装置与终端设备之间通过RTSP的“SETUP”命令来传递第一端口号和第二端口号。第一端口的获取方式为例如通过媒体数据源与终端设备之间的RTSP信令交互来获取。Optionally, the network media stream sending device 50 in this embodiment further includes a port setting unit 53, configured to agree on the second port through dynamic negotiation with the terminal; or determine the second port according to configuration information. Optionally, the manner of dynamic negotiation may be to transmit the first port number and the second port number through an RTSP "SETUP" command between the network media stream sending apparatus and the terminal device. The manner of acquiring the first port is, for example, acquiring through RTSP signaling interaction between the media data source and the terminal device.

图6为本发明实施例的系统原理图。如图6所示,本发明实施例的系统包括:网络媒体流发送装置61和网络媒体流播放装置62。网络媒体流发送装置61可选地为MS或媒体内容源,媒体内容源可选地具有一FEC编码器;网络媒体流发送装置61通过IP网络连接于网络媒体流播放装置62,播放装置62可以为一机顶盒STB,可选地,STB具有一FEC解码器;与机顶盒62相连的显示设备63可选地为一电视机、显示器或计算机。FIG. 6 is a system schematic diagram of an embodiment of the present invention. As shown in FIG. 6 , the system of the embodiment of the present invention includes: a network media stream sending device 61 and a network media stream playing device 62 . The network media stream sending device 61 is optionally MS or a media content source, and the media content source optionally has a FEC encoder; the network media stream sending device 61 is connected to the network media stream playing device 62 through an IP network, and the playing device 62 can It is a set-top box STB, optionally, the STB has a FEC decoder; the display device 63 connected to the set-top box 62 is optionally a TV, a monitor or a computer.

图7为本发明实施例进行兼容播放的具体实现方法流程图。如图7所示,本实施例的兼容播放方法包括如下步骤:FIG. 7 is a flow chart of a specific implementation method for compatible playback according to an embodiment of the present invention. As shown in Figure 7, the compatible playing method of the present embodiment includes the following steps:

步骤S701、本发明实施例的网络媒体流播放装置打开用于接收网络媒体流的第一端口以及用于接收该网络媒体流的前向纠错冗余信息的第二端口;Step S701, the network media stream playing device according to the embodiment of the present invention opens a first port for receiving the network media stream and a second port for receiving forward error correction redundancy information of the network media stream;

步骤S702、本发明实施例的网络媒体流播放装置从第一端口接收媒体数据源发送的网络媒体流;Step S702, the network media stream playing device according to the embodiment of the present invention receives the network media stream sent by the media data source from the first port;

步骤S703、本发明实施例的网络媒体流播放装置判断从第二端口接收网络媒体流的前向纠错冗余信息是否超过预设的等待时间,如是,则进入步骤S704,如否,则进入步骤S706;Step S703, the network media stream playing device of the embodiment of the present invention judges whether the forward error correction redundancy information received from the second port of the network media stream exceeds the preset waiting time, if yes, proceed to step S704, if not, proceed to Step S706;

步骤S704、放弃接收该前向纠错冗余信息,并放弃对前向纠错冗余信息的解码;Step S704, giving up receiving the FEC redundant information, and giving up decoding the FEC redundant information;

步骤S705、终端设备直接播放接收到的网络媒体流,呈现普通画质;Step S705, the terminal device directly plays the received network media stream, presenting a normal image quality;

步骤S706、终端设备判断自身的前向纠错解码器的软硬件版本是否具有相应的前向纠错冗余信息解码功能,如是,则进入步骤S707,如否,则进入步骤S709;Step S706, the terminal device judges whether the software and hardware version of its own FEC decoder has a corresponding FEC redundant information decoding function, if yes, proceed to step S707, if not, proceed to step S709;

步骤S707、终端设备解码前向纠错冗余信息;Step S707, the terminal device decodes the forward error correction redundant information;

步骤S708、终端设备根据前向纠错冗余信息播放媒体数据,呈现流畅画质;该步骤可进一步包括:根据所述前向纠错冗余信息恢复所述网络媒体流中丢失的数据报文分片,播放恢复后的网络媒体流;Step S708, the terminal device plays the media data according to the forward error correction redundancy information, presenting a smooth picture quality; this step may further include: recovering the lost data packets in the network media stream according to the forward error correction redundancy information Fragmentation, playing the restored network media stream;

步骤S709、终端设备放弃解码前向纠错冗余信息;Step S709, the terminal device gives up decoding the forward error correction redundant information;

步骤S710、终端设备直接播放接收到的网络媒体流,呈现普通画质。Step S710, the terminal device directly plays the received network media stream, presenting a normal image quality.

本发明实施例的网络媒体流发送方法与装置将网络媒体流及其前向纠错冗余信息分别配置不同的目标端口号后发送到终端设备的相应端口,而没有破坏原始网络媒体流。本发明实施例的网络媒体流播放方法与装置,打开两个端口分别接收网络媒体流及其前向纠错冗余信息,并根据前向纠错冗余信息播放网络媒体流。The method and device for sending network media streams according to the embodiments of the present invention configure the network media streams and their forward error correction redundancy information with different target port numbers and send them to corresponding ports of terminal equipment without destroying the original network media streams. In the method and device for playing network media streams in the embodiments of the present invention, two ports are opened to respectively receive network media streams and forward error correction redundancy information thereof, and play the network media streams according to the forward error correction redundancy information.

图8为本发明实施例的媒体播放信令流程图之一。在本实施例中,媒体数据播放装置为一机顶盒,可选地为一适用于交互式网络电视IPTV的网络机顶盒。媒体数据发送装置为一媒体内容源,可选地为一适用于交互式网络电视IPTV的一多媒体信息服务器或媒体内容源。Fig. 8 is one of the flow charts of media playing signaling in the embodiment of the present invention. In this embodiment, the media data playing device is a set-top box, optionally a network set-top box suitable for interactive network television (IPTV). The media data sending device is a media content source, optionally a multimedia information server or media content source suitable for IPTV.

本实施例中机顶盒与媒体内容源之间通信交互的过程如下:In this embodiment, the communication and interaction process between the set-top box and the media content source is as follows:

步骤S801、机顶盒向媒体内容源发送内容请求,例如RTSP、SIP(SessionInitial Protocol,会话初始协议)请求;Step S801, the set-top box sends a content request to the media content source, such as RTSP, SIP (SessionInitial Protocol, session initiation protocol) request;

步骤S802、媒体内容源向机顶盒回复应答消息;Step S802, the media content source replies a response message to the STB;

步骤S803、机顶盒打开接收网络媒体流的第一端口和接收所述网络媒体流的前向纠错冗余信息的第二端口;Step S803, the set-top box opens the first port for receiving the network media stream and the second port for receiving the forward error correction redundancy information of the network media stream;

在本实施例中,第二端口通过机顶盒与媒体内容源动态协商约定而得出或由机顶盒与媒体内容源预先配置而确定。在本实施例中,第一端口和第二端口为用户数据报协议(UDP)端口。In this embodiment, the second port is obtained through dynamic negotiation between the set-top box and the media content source or determined by pre-configuration between the set-top box and the media content source. In this embodiment, the first port and the second port are User Datagram Protocol (UDP) ports.

步骤S804、媒体内容源将网络媒体流发送给机顶盒的第一端口,将网络媒体流的前向纠错冗余信息发送给机顶盒的第二端口;Step S804, the media content source sends the network media stream to the first port of the set-top box, and sends the forward error correction redundancy information of the network media stream to the second port of the set-top box;

步骤S805、机顶盒接收网络媒体流和网络媒体流的前向纠错冗余信息,并利用前向纠错冗余信息进行解码以还原丢失的报文,展示流畅画质。Step S805, the set-top box receives the network media stream and the FEC redundant information of the network media stream, and uses the FEC redundant information to decode to restore the lost message and display smooth image quality.

可选地,步骤S805也可以为步骤S805’:Optionally, step S805 can also be step S805':

步骤S805’、如机顶盒没有集成相应的解码算法或功能,则放弃解码,直接播放网络媒体流,以展示普通画质,实现兼容播放。Step S805', if the set-top box does not integrate the corresponding decoding algorithm or function, then abandon the decoding, and directly play the network media stream to display common image quality and realize compatible playback.

在本实施例中,媒体内容源将网络媒体流发送到机顶盒的第一端口,将网络媒体流的前向纠错冗余信息发送到机顶盒的第二端口,这样,该机顶盒将从第一端口接收网络媒体流,并从第二端口接收网络媒体流的前向纠错冗余信息,当机顶盒的解码器的软硬件版本支持对该前向纠错冗余信息解码时,解码播放该网络媒体流,还原丢失的报文,并呈现高品质的流畅画质;反之,机顶盒放弃解码,直接播放网络媒体流并呈现普通画质。这样,本发明实施例的媒体内容源实现了对本发明实施例的不同软硬件版本的机顶盒的兼容。In this embodiment, the media content source sends the network media stream to the first port of the set-top box, and sends the forward error correction redundancy information of the network media stream to the second port of the set-top box. Receive the network media stream, and receive the forward error correction redundant information of the network media stream from the second port, when the software and hardware version of the decoder of the set-top box supports decoding the forward error correction redundant information, decode and play the network media Stream, restore the lost message, and present a high-quality smooth image; on the contrary, the set-top box gives up decoding, and directly plays the network media stream and presents a normal image quality. In this way, the media content source in the embodiment of the present invention realizes compatibility with set-top boxes of different software and hardware versions in the embodiment of the present invention.

本发明实施例的网络媒体流播放方法及装置,引入了和媒体数据端口不同的前向纠错冗余信息接收端口,从而可以主动监听发送至该端口的前向纠错冗余信息,并根据前向纠错冗余信息播放所述网络媒体流播放,有效地实现了对各种媒体数据源提供的网络媒体流的兼容播放。本发明实施例的方法可以广泛应用于使于UDP进行媒体传送的场合,例如IPTV、DTV互动电视等。The method and device for playing network media streams in the embodiments of the present invention introduce a forward error correction redundant information receiving port different from the media data port, so that the forward error correction redundant information sent to the port can be actively monitored, and according to The FEC redundant information playing of the network media stream effectively realizes the compatible playing of network media streams provided by various media data sources. The method of the embodiment of the present invention can be widely applied to occasions where UDP is used for media transmission, such as IPTV, DTV interactive television, and the like.

图9为本发明实施例的媒体播放信令流程图之二,该流程图揭示了本发明实施例的网络媒体流播放装置与现有技术中不具有前向纠错编码能力的媒体内容源或服务器之间的兼容播放方法。该方法通过在网络媒体流播放装置的第二端口建立超时处理机制以实现兼容播放。图9的兼容播放方法包括如下步骤:Fig. 9 is the second flow chart of the media playing signaling in the embodiment of the present invention, the flow chart reveals that the network media stream playing device in the embodiment of the present invention and the media content source or media content source without forward error correction coding capability in the prior art Compatible playback methods between servers. In the method, a timeout processing mechanism is established on the second port of the network media stream playing device to realize compatible playing. The compatible playing method of Fig. 9 comprises the steps:

步骤S901、机顶盒向媒体内容源发起媒体内容请求,例如RTSP、SIP请求;Step S901, the set-top box initiates a media content request to a media content source, such as an RTSP or SIP request;

步骤S902、媒体内容源向机顶盒回复应答消息;Step S902, the media content source replies a response message to the STB;

步骤S903、机顶盒打开用于接收网络媒体流的第一端口和用于接收网络媒体流的前向纠错冗余信息的第二端口;Step S903, the set-top box opens the first port for receiving the network media stream and the second port for receiving the forward error correction redundancy information of the network media stream;

步骤S904、媒体内容源只向第一端口发送网络媒体流;因为媒体内容源不具有前向纠错编码功能,所以无法生成网络媒体流的前向纠错冗余信息,故只发送网络媒体流;Step S904, the media content source only sends the network media stream to the first port; because the media content source does not have a forward error correction coding function, it cannot generate forward error correction redundant information of the network media stream, so only the network media stream is sent ;

步骤S905、机顶盒从第一端口接收网络媒体流,并且当机顶盒在预设的超时时间内没有在第二端口接收到前向纠错冗余信息就放弃接收,同时放弃前向纠错解码,机顶盒直接播放网络媒体流以实现普通画质的兼容播放。Step S905, the set-top box receives the network media stream from the first port, and when the set-top box does not receive the forward error correction redundant information at the second port within the preset timeout period, it gives up receiving and forward error correction decoding at the same time, the set-top box Play network media streams directly for compatible playback with normal picture quality.

可选地,预设的超时时间可以是例如100毫秒。Optionally, the preset timeout time may be, for example, 100 milliseconds.

在本实施例中,当机顶盒与不具有前向纠错编码功能的服务器进行通信时,也能通过超时等待机制来放弃从机顶盒的第二端口接收前向纠错冗余信息,从而也能对上述服务器提供的媒体内容实现普通画质的兼容播放。In this embodiment, when the set-top box communicates with a server that does not have a forward error correction coding function, the timeout waiting mechanism can also be used to give up receiving forward error correction redundant information from the second port of the set-top box, thereby also being able to The media content provided by the above server realizes the compatible playback of normal image quality.

图10为本发明实施例的媒体播放信令方法流程图之三。该流程图揭示了本实施例的一种网络媒体流发送装置兼容老式机顶盒的播放方法流程。该老式机顶盒并不具有专用于接收网络媒体流的前向纠错冗余信息的第二端口。图10的方法包括如下步骤:FIG. 10 is the third flowchart of the media playing signaling method according to the embodiment of the present invention. The flow chart discloses the flow of a playback method of a network media stream sending device compatible with old-fashioned set-top boxes in this embodiment. The old set-top box does not have a second port dedicated to receiving forward error correction redundancy information of network media streams. The method of Fig. 10 comprises the steps:

步骤S1001、机顶盒向媒体内容源发起媒体内容请求,例如RTSP、SIP请求;Step S1001, the set-top box initiates a media content request to a media content source, such as an RTSP or SIP request;

步骤S1002、媒体内容源向机顶盒回复应答消息;Step S1002, the media content source replies a response message to the STB;

步骤S1003、机顶盒打开网络媒体流接收端口;Step S1003, the set-top box opens the network media stream receiving port;

步骤S1004、媒体内容源采用不同端口向终端分别发送网络媒体流和网络媒体流的前向纠错冗余信息;Step S1004, the media content source uses different ports to send the network media stream and the forward error correction redundancy information of the network media stream to the terminal respectively;

步骤S1005、由于机顶盒只监听一个端口,因此机顶盒只感知到网络媒体流,而对未监听端口的前向纠错冗余信息自然丢弃,机顶盒直接播放网络媒体流。Step S1005 , since the set-top box only monitors one port, the set-top box only senses the network media stream, and naturally discards the FEC redundant information of the unmonitored port, and the set-top box directly plays the network media stream.

在本实施例中,媒体内容源将网络媒体流和该网络媒体流的前向纠错冗余信息分别发送给终端机顶盒的第一端口和第二端口;但是,老式机顶盒只对第一端口进行监听,并接收到网络媒体流,而对于未监听的第二端口的前向纠错冗余信息,机顶盒的应用程序完全不感知,因此该前向纠错冗余信息被自然丢弃,从而实现了老式机顶盒对本发明实施例的媒体数据源发送的网络媒体流的普通画质的兼容播放。In this embodiment, the media content source sends the network media stream and the forward error correction redundancy information of the network media stream to the first port and the second port of the terminal set-top box respectively; Monitor and receive the network media stream, but the application program of the set-top box is completely unaware of the forward error correction redundant information of the unmonitored second port, so the forward error correction redundant information is naturally discarded, thus realizing The old-fashioned set-top box is compatible with the normal image quality of the network media stream sent by the media data source in the embodiment of the present invention.

综上所述,本发明实施例的方法与装置以最小的复杂性实现了最大的终端兼容性。本发明实施例的媒体内容源能够兼容不同解码功能的机顶盒;同时,本发明实施例的机顶盒既兼容了本发明实施例的媒体内容源,也兼容了其它不具有前向纠错编码功能的媒体内容源。To sum up, the method and device of the embodiments of the present invention achieve maximum terminal compatibility with minimum complexity. The media content source of the embodiment of the present invention can be compatible with set-top boxes with different decoding functions; at the same time, the set-top box of the embodiment of the present invention has not only been compatible with the media content source of the embodiment of the present invention, but also compatible with other media without forward error correction coding function content source.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的硬件平台的方式来实现,当然也可以全部通过硬件来实施。基于这样的理解,本发明的技术方案对背景技术做出贡献的全部或者部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementation manners, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary hardware platform, and of course can also be implemented entirely by hardware. Based on this understanding, all or part of the contribution made by the technical solution of the present invention to the background technology can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM/RAM, magnetic disks, optical disks, etc. , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in various embodiments or some parts of the embodiments of the present invention.

以上实施例仅用以说明本发明实施例的技术方案,而非对其限制;尽管参照前述实施例对本发明实施例进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明实施例各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, and are not intended to limit them; although the embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. network media method of putting of spreading is characterized in that described method comprises:
The network media stream that sends from the first port receiving media data source;
Receive the forward error correction redundant information of the described network media stream of described media data source transmission from the second port;
Whether the software and hardware version of judging the forward error correction decoder of self has corresponding forward error correction redundant information decoding function;
In this way, the described forward error correction redundant information of then decoding is play described network media stream according to described forward error correction redundant information;
As no, the described forward error correction redundant information of then abandoning decoding is play-overed the network media stream that receives.
2. method according to claim 1 is characterized in that, described method also comprises:
When in a preset period of time, not receiving described forward error correction redundant information, play-over described network media stream.
3. method according to claim 1 is characterized in that, described method also comprises:
By arranging described the second port with the dynamic negotiation of described media data source; Or
Determine described the second port according to configuration information.
4. a network media spreads and puts device, it is characterized in that, described device comprises:
The first receiving element is used for the network media stream that sends from the first port receiving media data source;
The second receiving element is for the forward error correction redundant information of the described network media stream that receives described media data source transmission from the second port;
Judge whether the software and hardware version of the forward error correction decoder of self has the unit of corresponding forward error correction redundant information decoding function;
Broadcast unit is yes if be used for judged result, and the described forward error correction redundant information of then decoding is play described network media stream according to described forward error correction redundant information; If the determination result is NO, the described forward error correction redundant information of then abandoning decoding is play-overed the network media stream that receives.
5. device according to claim 4 is characterized in that,
Described broadcast unit also is used for when not receiving described forward error correction redundant information in a preset period of time, play-overs described network media stream.
6. device according to claim 4 is characterized in that, described device also comprises:
The port setting unit is used for by arranging described the second port with the dynamic negotiation of described media data source; Or determine described the second port according to configuration information.
7. a network media flows sending method, it is characterized in that described method comprises:
Network media stream is sent to the first port of terminal equipment;
The forward error correction redundant information of described network media stream is sent to the second port of described terminal equipment;
Wherein, described terminal equipment judges whether the software and hardware version of the forward error correction decoder of self has corresponding forward error correction redundant information decoding function; In this way, the described forward error correction redundant information of then decoding is play described network media stream according to described forward error correction redundant information; As no, the described forward error correction redundant information of then abandoning decoding is play-overed the network media stream that receives.
8. method according to claim 7 is characterized in that, described method also comprises:
By determining described the second port with the dynamic negotiation of described terminal equipment; Or according to self disposing to determine described the second port.
9. a network media flow transmitting device is characterized in that, described device comprises:
The first transmitting element is for the first port that network media stream is sent to terminal equipment;
The second transmitting element is used for the forward error correction redundant information of described network media stream is sent to the second port of described terminal equipment;
Wherein, whether described terminal equipment has corresponding forward error correction redundant information decoding function for the software and hardware version of the forward error correction decoder of judging self; In this way, the described forward error correction redundant information of then decoding is play described network media stream according to described forward error correction redundant information; As no, the described forward error correction redundant information of then abandoning decoding is play-overed the network media stream that receives.
10. device according to claim 9 is characterized in that, described device also comprises:
The port setting unit is used for by arranging described the second port with the dynamic negotiation of described terminal equipment; Or determine described the second port according to configuration information.
CN 200910150674 2009-06-29 2009-06-29 Network media stream playing method and device Expired - Fee Related CN101938324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910150674 CN101938324B (en) 2009-06-29 2009-06-29 Network media stream playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910150674 CN101938324B (en) 2009-06-29 2009-06-29 Network media stream playing method and device

Publications (2)

Publication Number Publication Date
CN101938324A CN101938324A (en) 2011-01-05
CN101938324B true CN101938324B (en) 2013-01-02

Family

ID=43391477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910150674 Expired - Fee Related CN101938324B (en) 2009-06-29 2009-06-29 Network media stream playing method and device

Country Status (1)

Country Link
CN (1) CN101938324B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015172274A1 (en) * 2014-05-10 2015-11-19 苏州阔地网络科技有限公司 Load balancing processing method and system
CN110875795B (en) * 2018-08-29 2022-05-24 阿里巴巴集团控股有限公司 Data transmission method, device, equipment and storage medium
CN113037751B (en) * 2021-03-09 2023-10-31 北京字节跳动网络技术有限公司 Method and system for creating audio/video receiving stream

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1871814A (en) * 2003-08-29 2006-11-29 Rgb网络有限公司 Advanced Adaptive Video Multiplexer System
CN101030838A (en) * 2007-04-02 2007-09-05 Ut斯达康通讯有限公司 System and method for controlling self-adaptive forward error dynamically in IPTV network
WO2009076096A2 (en) * 2007-12-06 2009-06-18 Cisco Technology, Inc. Delivery of streams to repair errored media streams in periods of unrecoverable errors

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1871814A (en) * 2003-08-29 2006-11-29 Rgb网络有限公司 Advanced Adaptive Video Multiplexer System
CN101030838A (en) * 2007-04-02 2007-09-05 Ut斯达康通讯有限公司 System and method for controlling self-adaptive forward error dynamically in IPTV network
WO2009076096A2 (en) * 2007-12-06 2009-06-18 Cisco Technology, Inc. Delivery of streams to repair errored media streams in periods of unrecoverable errors

Also Published As

Publication number Publication date
CN101938324A (en) 2011-01-05

Similar Documents

Publication Publication Date Title
US11374681B2 (en) Video quality assessment method and device
CN107743703B (en) Method, apparatus and computer-readable storage medium for media data transmission
CA2511914C (en) System for secure decryption of streaming media using selective decryption of header information
CN111837403B (en) Handling interactivity events for streaming media data
JP6054305B2 (en) Multimedia frame transmission apparatus and method in broadcasting system
US20160337424A1 (en) Transferring media data using a websocket subprotocol
WO2020006912A1 (en) Method and device for analyzing network transmission quality, computer equipment and storage medium
CN102334308B (en) An exception handling method for channel switching, terminal equipment, and channel switching server
JP2007536859A (en) Improved quality feedback in streaming services
US10944973B2 (en) Estimation of video quality of experience on media servers
KR20130040090A (en) Apparatus and method for delivering multimedia data in hybrid network
US20180176278A1 (en) Detecting and signaling new initialization segments during manifest-file-free media streaming
WO2007128194A1 (en) Method, apparatus and system for playing audio/video data
CN102119519A (en) Fast content switching in a communication system
CN101924944A (en) Scalable video coding operation point selection method, information providing method and device
US20170331666A1 (en) Real-time control interface for broadcast object streaming
CN100568956C (en) A method for fast playback of streaming media
CN105191324A (en) Communication apparatus, communication data generation method, and communication data processing method
CN112771876A (en) Initialization set for network streaming of media data
CN101938324B (en) Network media stream playing method and device
JP2009296164A (en) Data transmitting device, control method therefor, and program
JP2010161550A (en) Image content reception device and image content reception method
JP4283186B2 (en) Bidirectional video communication quality control system, user terminal, quality management server and program
CN101989977B (en) Method, device, server and system for implementing rich media real-time services
KR101757459B1 (en) Method and apparatus for processing packet

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130102

Termination date: 20160629