CN102065339B - Method and system for playing audio and video media stream - Google Patents

Method and system for playing audio and video media stream Download PDF

Info

Publication number
CN102065339B
CN102065339B CN 201010536555 CN201010536555A CN102065339B CN 102065339 B CN102065339 B CN 102065339B CN 201010536555 CN201010536555 CN 201010536555 CN 201010536555 A CN201010536555 A CN 201010536555A CN 102065339 B CN102065339 B CN 102065339B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
audio
parameters
media stream
video
terminal
Prior art date
Application number
CN 201010536555
Other languages
Chinese (zh)
Other versions
CN102065339A (en )
Inventor
包盛
Original Assignee
中国电信股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Grant date

Links

Abstract

本发明公开了一种音视频媒体流的播放方法与系统,其中,方法包括:流媒体终端比较音视频媒体流的播放参数与流媒体终端支持的播放参数是否匹配,以及判断传送网络的网络参数是否支持音视频媒体流的下载参数;在音视频媒体流的播放参数与流媒体终端支持的播放参数不匹配时,请求转码服务器根据流媒体终端支持的播放参数对音视频媒体流的播放参数进行转码;在传送网络的网络参数不支持音视频媒体流的下载参数时,请求转码服务器根据传送网络的网络参数对音视频媒体流的播放参数进行转码;然后对转码后的音视频媒体流进行解码与播放。 The present invention discloses a method and a system for playing audio and video media stream, wherein the method comprising: streaming audio player terminal compares the streaming media playing parameters and parameters supported by the terminal matches the video media stream, and the transport network is determined network parameters support download parameters audiovisual media stream; in the playback parameters audiovisual media stream streaming media terminal supports playback parameters do not match, the request transcoding server player parameter audio and video media stream according to the play parameter stream media terminal support transcoding; when the network parameter transfer network does not support the download parameters audiovisual media stream, a request transcoding server transcodes the playback parameters network parameter transfer network for audio and video media stream; and the sound of the transcoded video media stream decoding and playback. 本发明实施例可以避免通过网络播放音视频媒体流时音视频媒体流无法播放、画面停顿的情况。 Embodiments of the invention can be avoided when the network can not be played by audio-video media playing streaming audio and video media stream, the picture freeze situation.

Description

音视频媒体流的播放方法与系统技术领域[0001] 本发明涉及音视频技术,尤其是一种音视频媒体流的播放方法与系统。 Method and System Field playback of audio and video media streams [0001] The present invention relates to audio and video technology, in particular a method and a system for playing audio and video media stream. 背景技术[0002] 流媒体技术,就是对连续的影像与声音信息经过压缩处理后得到音视频数据,将该音视频数据放置在流媒体服务器上,用户通过客户端可以从流媒体服务器边下载播放该音视频数据的网络传输技术。 [0002] streaming technology is the continuous video and audio information obtained after the compression processing audio and video data, the audio and video data is placed on the streaming media server, the user can download and play the client from the streaming server side the network transmission technology of audio and video data. 随着网络技术与数字媒体压缩技术的不断创新,基于流媒体技术的流媒体业务在移动网络与互联网络上都得到了高速发展,通过网络上观看音视频数据已经成为一种趋势。 With the network technology and digital media compression technology innovation, based on streaming media technology, streaming media services over mobile networks and the Internet have been rapid development, watch video and audio data through the network has become a trend. [0003] 在实现本发明的过程中,发明人发现,在传统的流媒体业务系统中,由于终端种类繁多,各种终端在屏幕大小、解码能力等方面的参数参差不齐,使得流媒体服务器下发的音视频媒体流无法与终端准确适配;网络对音视频媒体流观看的影响较大,尤其在无线手持设备上,无法实时调整流媒体服务器下发的音视频媒体流的码率,使之与网络带宽适配。 [0003] During the implementation of the present invention, the inventors have found that, in the conventional streaming service system, since a wide range of terminals, the various parameters of the terminal in the screen size, the decoding capability uneven, so that the streaming server issued audio and video media streams can not be accurately adapted to the terminal; a greater impact on the network audio and video streaming media viewing, especially in wireless handheld devices, can not adjust the bit rate delivered by the audio and video streaming media server real-time media stream, so that the network bandwidth adaptation. 因此,在现有技术多种网络融合的大背景下,用户通过终端观看流媒体业务时,在音视频媒体流播放过程中经常会出现无法播放、播放不流畅、画面停顿等播放问题,使用户对流媒体业务的体验较差。 Therefore, in the context of prior art, a variety of network integration, business users watch streaming through the terminal, often appear unable to play audio and video streaming media playback, playback is not smooth, the screen pauses playback issues, allowing users experience poor streaming media business. 发明内容[0004] 本发明实施例所要解决的技术问题是:提供一种音视频媒体流的播放方法与系统,避免通过网络播放音视频媒体流时出现音视频媒体流无法播放、播放不流畅、画面停顿等播放问题。 [0004] Technical Problem embodiments to be solved by the present invention are: to provide an audio and video media stream playing method and system to avoid audio and video media stream can not be played when the stream through the network broadcast audio and video media, does not play smoothly, screen pauses playback issues. [0005] 为解决上述技术问题,本发明实施例提供的一种音视频媒体流的播放方法,包括:[0006] 流媒体终端获取当前访问的流媒体服务器上的音视频媒体流的播放参数与下载参数,并比较所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数是否匹配, 以及判断传送网络的网络参数是否支持所述音视频媒体流的下载参数;[0007] 在所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数不匹配时,所述流媒体终端向转码服务器发送第一转码请求,所述第一转码请求中包括所述音视频媒体流的全球资源定位符URL与所述流媒体终端支持的播放参数;所述转码服务器根据所述URL访问所述音视频媒体流,并根据所述流媒体终端支持的播放参数对所述音视频媒体流的播放参数进行转码;[0008] 在传送网络的网络参数不支持所述音视频媒体流的下载 [0005] To solve the above problems, a method of playing audio and video media stream is provided by the embodiment of the present invention, comprising: [0006] streaming media terminal acquires the playing parameters audiovisual media currently accessing streaming media server and stream download parameters, and comparing the audio and video media stream playing parameters and playing parameters of the media flow supported by the terminal of the matches, and determining whether the network supports the transmission network parameters download parameters of the audio-video media stream; [0007] in the audio-video media stream playback parameters when the terminal supports streaming media parameters do not match, the terminal sends a streaming request to the first transcoder transcoding server, and the first transfer request comprises the code audio and video media stream global resource locator (URL) and playing the media parameters supported by the terminal of said flow; the transcoding of the audio and video media stream server according to the URL access, according to the streaming media parameters supported by the terminal of the audio and video playback parameters transcoded media stream; [0008] does not support downloading the audio-video media stream in a network parameter transmission network 数时,所述流媒体终端向转码服务器发送第二转码请求,所述第二转码请求中包括所述音视频媒体流的URL与传送网络的网络参数;所述转码服务器根据所述URL访问所述音视频媒体流,并根据传送网络的网络参数对所述音视频媒体流的播放参数进行转码;[0009] 所述转码服务器将转码后的音视频媒体流发送给所述流媒体终端;[0010] 所述流媒体终端接收转码后的音视频媒体流,并对所述转码后的音视频媒体流进行解码与播放。 The number, the terminal sends a second media stream transcoding request to transcoding server, said second request comprises a network transcoding parameters of the audio and video media stream URL and a transport network; server according to the transcoding said URL access to the audio and video media stream, and transcoding parameters of the network parameters according to the playing of the transport network audio and video media stream; [0009] the transcoding server transcodes the media stream to audio and video the streaming media terminal; [0010] the terminal receives the media stream transcoding audio and video media stream, and after the transcoding audio and video media stream decoding and playback. [0011] 本发明实施例提供的一种音视频媒体流的播放系统,包括:[0012] 流媒体服务器,用于存储音视频数据,并在接收到流媒体终端基于URL发送的访问请求时,将存储的音视频数据解析为音视频媒体流发送给所述流媒体终端,所述音视频数据由唯一的URL定位;[0013] 流媒体终端,用于获取当前访问的音视频媒体流的播放参数与下载参数,并比较所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数是否匹配,以及判断传送网络的网络参数是否支持所述音视频媒体流的下载参数;在所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数不匹配时,向转码服务器发送第一转码请求,所述第一转码请求中包括所述音视频媒体流的URL与所述流媒体终端支持的播放参数;在传送网络的网络参数不支持所述音视频媒体流的下载参数时,向转码服 [0011] The embodiment of a system for playing audio and video media stream is provided by the present invention, comprising: [0012] The streaming media server, for storing audio and video data, and a terminal receiving the streaming access based on URL request sent, the stored audio and video data transmitted to the analysis of streaming audio and video media stream terminal, the audio-video data by a unique URL locate; [0013] streaming media terminal, configured to obtain access to the audio and video playback of the current media stream parameters and parameter download and playback parameters match comparing the audio-video media stream and playing the streaming media parameters supported by the terminal and network parameters determined transfer network supports downloading audio and video parameters of the media stream; in the when the playback parameters of said audio and video media stream and playing the streaming media parameters supported by the terminal does not match, transmitting a first request to a transcoding transcoding server, said first request includes a URL transcoding the audio-video media stream the streaming media parameters supported by the terminal; and when the parameter does not support downloading audio and video media stream in a network transmission network parameters, the transcoding server 器发送第二转码请求,所述第二转码请求中包括所述音视频媒体流的URL与传送网络的网络参数;以及接收所述转码服务器转码后的音视频媒体流,并对所述转码后的音视频媒体流进行解码与播放;以及在所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数匹配、传送网络的网络参数支持所述音视频媒体流的下载参数时,对当前访问的音视频媒体流进行解码与播放;[0014] 转码服务器,用于在接收到所述第一转码请求和/或所述第二转码请求时,根据所述第一转码请求和/或所述第二转码请求中的URL访问所述音视频媒体流,并根据所述第一转码请求中所述流媒体终端支持的播放参数对所述音视频媒体流的播放参数进行转码,以及根据所述第二转码请求中所述传送网络的网络参数对所述音视频媒体流的播放参数进行转码,并将转码后的音视频 Transmits second transcoder request, said second request comprises a network transcoding parameters URL of the transport network of the audio and video media stream; audio and video media stream after receiving the transcoding transcoding server, and after the transcoding audio and video media stream decoding and playback; and a matching parameter of the audio and video playing streaming media player with the media parameters supported by the terminal of the stream, the transport network support the network parameters of audio and video media stream when the download parameters, for the currently accessed media audio and video stream decoding and playback; [0014] transcoding server for, upon receiving the first and second transcoding request and / or the transcoding request, in accordance with said first transcoding request URL access and / or the second request in the transcoded audio and video media stream, and said first transcoded media stream according to the request of the terminal supports the playback parameters audio and video playback parameters transcoded media stream, and the transport network parameters based on the second network transcoding request transcoding parameters of the audio and video playback media streams, and the audio and video transcoded 体流发送给所述流媒体终端。 Body stream to stream the media terminal. [0015] 基于本发明上述实施例提供的音视频媒体流的播放方法与系统,流媒体终端可以比较当前访问音视频媒体流的播放参数与流媒体终端支持的播放参数是否匹配,以及判断传送网络的网络参数是否支持该音视频媒体流的下载参数,在音视频媒体流的播放参数与流媒体终端支持的播放参数不匹配时,请求转码服务器根据根据流媒体终端支持的播放参数对该音视频媒体流的播放参数进行转码,使音视频媒体流的播放参数与流媒体终端支持的播放参数匹配;以及在传送网络的网络参数不支持该音视频媒体流的下载参数时,请求转码服务器根据传送网络的网络参数对该音视频媒体流的下载参数进行转码,使传送网络的网络参数支持音视频媒体流的下载参数,然后流媒体终端播放转码后的音视频媒体流, 与现有技术相比,解决了流媒体终端与传送网络对 [0015] Audio and video media based on the above-described embodiments of the present invention provides a method for playing the stream can be compared with the system, streaming media terminal displays the parameters and the streaming media supported by the terminal displays the parameters of the current access audio and video media stream matches, and determining transmission network network parameters support parameter of the download audio and video media stream, when playing streaming audio and video parameters and media streams supported by the terminal displays the parameters do not match, according to the request in accordance with the transcoding server terminal supports streaming the audio playback parameters play parameters of the video media stream transcoding the playing parameters playing parameters and the streaming media terminal supporting audio and video media stream matches; and network parameter transfer network does not support the download parameters of the audio and video media stream, the request transcoding the parameters of the network server to download the parameter transfer network audio and video media stream transcoding the network parameters parameter downloading audio and video media stream transfer network, and streaming audio and video media stream transcoding a media player terminal, and compared to the prior art, to solve the streaming media network terminal and transmitting 放音视频媒体流的影响,避免了由于播放的音视频媒体流与流媒体终端参数、传送网络的网络参数不一致时导致的无法播放、 播放不流畅、画面停顿等播放问题,提高了用户对流媒体业务的体验。 Affect the playback of video media streams, avoids audio and video media streaming and streaming media terminal parameters, network parameters transmission network broadcast inconsistent due to not play, play is not smooth, the screen pauses playback issues, improving the user of streaming media experience business. [0016] 下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。 [0016] The following drawings and embodiments, detailed description of the further aspect of the present invention. 附图说明[0017] 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。 BRIEF DESCRIPTION [0017] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, the accompanying drawings for describing the embodiments or the prior art described in the introduction required simply Apparently, the following the drawings are merely described some embodiments of the present invention, those of ordinary skill in the art is concerned, without any creative effort, and can obtain other drawings based on these drawings. [0018] 图I为本发明音视频媒体流的播放方法一个实施例的流程图;[0019] 图2为本发明音视频媒体流的播放方法另一个实施例的流程图;[0020]图3为本发明音视频媒体流的播放系统一个实施例的结构示意图。 [0018] Figure I displays the method of the present invention, audio and video media stream of a flow diagram of the embodiment; flowchart of a method for playing [0019] FIG. 2 of the present invention, audio and video media stream according to another embodiment; [0020] FIG 3 schematic structural diagram of the audio playback system of the present invention, a video media stream embodiment. 具体实施方式[0021] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 DETAILED DESCRIPTION [0021] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are merely part of embodiments of the present invention, rather than all embodiments. 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, those of ordinary skill in the art to make all other embodiments without creative work obtained by, it falls within the scope of the present invention. [0022] 图I为本发明音视频媒体流的播放方法一个实施例的流程图。 [0022] Figure I of the present invention method for playing audio and video media stream of a flow diagram of the embodiment. 如图I所示,该实施例的音视频媒体流的播放方法包括以下流程:[0023] 步骤101,流媒体终端获取当前访问的流媒体服务器上的音视频媒体流的播放参数与下载参数,并比较该音视频媒体流的播放参数与流媒体终端支持的播放参数是否匹配,以及判断传送网络的网络参数是否支持该音视频媒体流的下载参数。 FIG I, the method for playing audio and video media stream according to this embodiment includes the following processes: [0023] Step 101, the terminal acquires the streaming media player parameters and parameter download audio and video media stream on the streaming media server currently accessed, and comparing the parameter with a sound playback streaming video media streams supported by the terminal matches the playback parameters, network parameters, and determines whether the network supports the transmission parameters of the download audio and video media stream. 在音视频媒体流的播放参数与流媒体终端支持的播放参数不匹配时,执行步骤102 ;在传送网络的网络参数不支持音视频媒体流的下载参数时,执行步骤104。 Parameters when playing streaming media terminal supporting audio and video media stream playback parameters do not match, step 102 is performed; when the parameter does not support downloading audio and video media streams in the network parameter transmission network, step 104 is performed. [0024] 若音视频媒体流的播放参数与流媒体终端支持的播放参数匹配,且传送网络的网络参数支持该音视频媒体流的下载参数,则流媒体终端可以直接对流媒体服务器发送的音视频流进行解码与播放。 [0024] When playing parameters and streaming audio and video media streams supported by the terminal playback parameters match, and the transport network network parameters support downloading the parameters of the audio and video media stream, the stream media terminal may directly send streaming media server audio and video stream decoding and playback. [0025] 作为本发明的一个具体实施例,其中的传送网络具体可以是:全球移动通信系统(Global System for Mobile Communications,以下简称:GSM)网络、码分多址(Code Division Multiple Access,以下简称:CDMA)网络、第三代(The 3rd Generation,以下简称:3G)移动电话网络、无线局域网络(Wireless Local Area Network,以下简称:WLAN)、下一代网络系统(Next Generation Network,以下简称:NGN)、互联网络或通用分组无线业务(General Packet RadioService,以下简称:GPRS)网络等任何可以传输音视频媒体流的通信网络。 [0025] As a specific embodiment of the present invention, wherein the transport network may specifically be: GSM (Global System for Mobile Communications, hereinafter: the GSM) network, CDMA (Code Division Multiple Access, hereinafter referred to as : CDMA) network, a third generation (the 3rd Generation, hereinafter referred to as: 3G) mobile phone networks, wireless local area network (wireless Local Area network, hereinafter referred to as: WLAN), next-generation networks (next Generation network, hereinafter referred to as: NGN ), the Internet, or general packet radio service (General packet RadioService, hereinafter referred to as: any communication network can transmit audio and video media streams GPRS) network and the like. [0026] 步骤102,流媒体终端向转码服务器发送第一转码请求,该第一转码请求中包括音视频媒体流的全球资源定位符(Uniform ResourceLocator,以下简称:URL)与流媒体终端支持的播放参数。 [0026] Step 102, the terminal transmits a first streaming media transcoding request to transcoding server, the first request including global transcoding resource locator of the audio and video media stream (Uniform ResourceLocator, hereinafter referred to as: URL) streaming media terminal supported playback parameters. [0027] 步骤103,转码服务器根据第一转码请求中的URL访问音视频媒体流,并根据流媒体终端支持的播放参数对音视频媒体流的播放参数进行转码。 [0027] Step 103, the transcoding server according to the first transcoder request URL access audio and video media stream, and the playback parameters to transcode audio and video media stream according to the streaming media playback parameters supported by the terminal. 然后执行步骤106。 Then step 106 is performed. [0028] 步骤104,流媒体终端向转码服务器发送第二转码请求,该第二转码请求中包括音视频媒体流的URL与传送网络的网络参数。 [0028] Step 104, the terminal transmits a second streaming media transcoding request to transcoding server, the second transcoder request comprises a network parameter in the URL the transport network audio and video media streams. [0029] 步骤105,转码服务器根据第二转码请求中的URL访问音视频媒体流,并根据传送网络的网络参数对音视频媒体流的播放参数进行转码。 [0029] Step 105, the transcoding server according to the second transcoder request URL access audio and video media stream, and the playback parameters to transcode audio and video media stream transmission network according to the network parameters. [0030] 步骤106,转码服务器将转码后的音视频媒体流发送给流媒体终端。 [0030] Step 106, the transcoding server transcoded audio and video media stream transmitted to the streaming media terminal. [0031] 步骤107,流媒体终端接收转码后的音视频媒体流,并对转码后的音视频媒体流进行解码与播放。 [0031] Step 107, after the terminal receives streaming audio and video media stream transcoded, and the transcoded audio and video media stream for decoding and playback. [0032] 本发明上述实施例提供的提供的音视频媒体流的播放方法,流媒体终端可以比较当前访问音视频媒体流的播放参数与流媒体终端支持的播放参数是否匹配,以及判断传送网络的网络参数是否支持该音视频媒体流的下载参数,在音视频媒体流的播放参数与流媒体终端支持的播放参数不匹配时,请求转码服务器根据根据流媒体终端支持的播放参数对该音视频媒体流的播放参数进行转码,使音视频媒体流的播放参数与流媒体终端支持的播放参数匹配;以及在传送网络的网络参数不支持该音视频媒体流的下载参数时,请求转码服务器根据传送网络的网络参数对该音视频媒体流的下载参数进行转码,使传送网络的网络参数支持音视频媒体流的下载参数,然后流媒体终端播放转码后的音视频媒体流,解决了流媒体终端与传送网络对播放音视频媒体流的影响 Method for playing audio and video media streams provided in [0032] the present invention, the above-described embodiment provides the streaming media terminal may compare the playback parameters and the streaming media supported by the terminal displays the parameters of the current access audio and video media stream matches, and determining transmission network support network parameter download audio and video parameters of the media stream, when playing streaming media parameters terminal supporting audio and video media stream playback parameters do not match, the server according to the request transcoding audio and video parameters according to play streaming media terminal support playback parameters media stream transcoding the playing parameters playing parameters and the streaming media terminal supporting audio and video media stream matches; and network parameter transfer network does not support the download parameters of the audio and video media stream, the request transcoding server the parameters of the network parameters for downloading the audio and video transmission network transcoding the media stream, so that network parameters parameter downloading audio and video media stream transfer network, and streaming audio and video media stream transcoding a media player terminal, to solve Effect of the streaming media network terminal and transmitting audio and video playback of the media stream ,避免了由于播放的音视频媒体流与流媒体终端参数、传送网络的网络参数不一致时导致的无法播放、播放不流畅、画面停顿等播放问题,提高了用户对流媒体业务的体验。 , Avoids the media stream audio and video streaming media playback terminal parameters, network parameters transmission network caused by inconsistent not play, play is not smooth, the screen pauses playback issues, improve the user experience of streaming media services. [0033] 作为本发明的一个具体实施例,在步骤101中,流媒体终端可以先获取当前访问的流媒体服务器上的音视频媒体流的播放参数,并比较该音视频媒体流的播放参数与流媒体终端支持的播放参数是否匹配;也可以先获取流媒体服务器上的音视频媒体流的下载参数,并比较传送网络的网络参数是否支持该音视频媒体流的下载参数;或者,流媒体终端也可以同时获取当前访问的流媒体服务器上的音视频媒体流的播放参数与下载参数,并同时执行比较该音视频媒体流的播放参数与流媒体终端支持的播放参数是否匹配,与传送网络的网络参数是否支持该音视频媒体流的下载参数的操作。 [0033] As the present invention embodiment, in step 101, the streaming media terminal may first obtain player parameter audiovisual media streaming on the streaming media server is currently accessed, and comparing the playback parameters of the audio and video media stream and streaming terminal supports playback parameters match; also possible to obtain the download parameter audiovisual media on the streaming server streams, and compares the transport network parameters of the network supports download parameters of the audio and video media stream; or streaming media terminal you can also get while playing parameters and parameter download audio and video media on the streaming media server is currently accessed by the stream, and while performing playback parameters playback parameters and streaming media terminal compares the audio and video media streams to support the match, with the transport network download operating parameters of the audio and video streaming media support whether the network parameters. [0034] 作为本发明的另一个具体实施例,步骤101具体可以通过如下方式实现:流媒体终端获取当前访问的流媒体服务器上的音视频媒体流的播放参数,并比较音视频媒体流的播放参数与流媒体终端支持的播放参数是否匹配;在音视频媒体流的播放参数与流媒体终端支持的播放参数匹配时,流媒体终端接收音视频媒体流,获取音视频媒体流的下载参数, 然后开始执行图I所示实施例中判断传送网络的网络参数是否支持音视频媒体流的下载参数的操作;在音视频媒体流的播放参数与流媒体终端支持的播放参数不匹配时,执行步骤102-步骤103的操作,之后开始执行上述流媒体终端接收音视频媒体流的操作。 [0034] As another specific embodiment of the present invention, step 101 may specifically be implemented by the following manner: playing streaming media terminal acquires parameters audiovisual media on the server is currently accessing streaming media flow, and comparing the audio and video media stream playing parameters and the streaming media terminal supports playback parameters match; when playing parameters and the streaming media terminal supports playback parameters match audio and video media stream, and streaming media terminal receiving audio and video media stream, for downloading parameters of audio and video media stream, and then I begin the embodiment shown in FIG network parameter determination operation is supported by the transport network to download audio and video parameters of the media stream; parameter when playing streaming audio and video media streams supported by the terminal displays the parameters do not match, step 102 is performed - operation of the step 103, after receiving the audio and video media streams starts to execute the above-described operation of the streaming media terminal. [0035]另外,作为本发明的又一个具体实施例,音视频媒体流的播放参数包括音视频媒体流的分辨率、帧率与编解码类型。 [0035] Further, as still another embodiment of the present invention, audio and video media stream playback parameters include resolution, frame rate and the codec type of the audio and video media stream. 相应的,图I所示的实施例的步骤101中,流媒体终端可以通过如下方式获取当前访问的音视频媒体流的播放参数:流媒体终端通过URL访问流媒体服务器上的音视频媒体流,该音视频媒体流可以是音视频文件和/或直播流;音视频媒体流是直播流时,流媒体终端通过解析流媒体服务器向流媒体终端发送直播流的流媒体协议,来获得音视频媒体流的播放参数。 The procedure of Example I embodiment corresponding to FIG. 101 shown, the terminal may acquire streaming media player parameters audiovisual media stream currently visited by: streaming audio and video media terminal through the URL to access the streaming media server streams, the audio and video media stream may be audio and video files, and / or live streaming; audio and video media stream is a live stream, streaming media terminal transmits a streaming protocol broadcast stream to the streaming media terminal by parsing the stream media server, to obtain audio-video media playback parameters stream. 具体的,该流媒体协议具体可以是:实时流控协议(Real Time StreamProtocol,以下简称:RTSP)、超文本传输协议(Hyper Text TransportProtocol,以下简称:HTTP)或实时消息协议(Real Time MessageProtocol,以下简称:RTMP)。 Specifically, the streaming protocols may be specifically: real-time flow control protocol (Real Time StreamProtocol, hereinafter referred to as: the RTSP), hypertext transfer protocol (Hyper Text TransportProtocol, hereinafter referred to as: the HTTP) or Real Time Messaging Protocol (Real Time MessageProtocol, the following abbreviation: RTMP). 音视频媒体流是音视频文件时,流媒体终端通过解析音视频文件的文件头或者包头,来获得音视频媒体流的播放参数。 Audio and video media stream is audio and video files, streaming media terminal by parsing the file header or header audio and video files, playing parameters to obtain audio and video media streams. [0036]另外,作为本发明的又一个具体实施例,音视频媒体流的下载参数包括音视频媒体流的下载流量与码率。 [0036] Further, as still another embodiment of the present invention, download audio and video media stream parameter includes a download traffic and the bit rate of audio and video media stream. 相应的,图I所示的实施例的步骤101中,流媒体终端具体可以通过如下方式获取当前访问的音视频媒体流的下载参数包括:流媒体终端获取音视频媒体流的下载流量,并根据音视频媒体流的下载流量与下载时间计算音视频媒体流的码率。 Accordingly, the steps of the embodiment shown in FIG. I 101, a particular terminal may acquire streaming media download audio and video parameters of the current access to the media stream comprises the following manner: the terminal for downloading streaming media flow of audio and video streams, and in accordance with download traffic audio and video media stream and download audio and video media stream time rate calculation. [0037] 进一步的,作为本发明的还一个具体实施例,图I所示实施例的音视频媒体流的播放方法还可以包括:流媒体终端获取流媒体终端支持的播放参数,包括流媒体终端支持的分辨率、帧率与编解码能力参数。 Method for playing audio and video media streams [0037] Further, as still another embodiment of the present invention, the embodiment shown in Figure I may further include: streaming media terminal acquires the streaming media player parameters supported by the terminal, streaming media terminal comprising supported resolutions, frame rates and codec capabilities parameters. 具体的,可以从该流媒体终端中获取预先存储的该流媒体终端支持的播放参数,也可以从预先存储各该流媒体终端支持的播放参数的服务器获取该流媒体终端支持的播放参数,并计算传送网络的网络参数,该网络参数包括传送网络的实际流量比特率。 Specifically, it can obtain player parameter of the streaming media supported by the terminal stored in advance from the stream media terminal may be a server playback parameters of each of the streaming media supported by the terminal from the previously stored obtain player parameter of the streaming media supported by the terminal, and network parameters calculated transport network, the network parameter includes an actual bit rate of the transport network flow. [0038] 图2为本发明音视频媒体流的播放方法另一个实施例的流程图。 [0038] FIG 2 is a flowchart of another embodiment of the method for playing audio and video media stream of the present invention. 如图2所示,该实施例的音视频媒体流的播放方法包括以下流程:[0039] 步骤201,流媒体终端通过唯一定位一个音视频数据的URL访问流媒体服务器上的音视频数据。 As shown, the method for playing audio and video media stream according to the embodiment 2 comprises the following processes: [0039] Step 201, the audio and video data streaming server URL access terminal by a single streaming audio and video data of a positioning. [0040] 具体的,可以通过RTSP向流媒体服务器发送访问请求DESCRIBE消息,其中包括想要访问的音视频数据的URL。 [0040] Specifically, may be transmitted to the streaming server via RTSP DESCRIBE request access message, which includes audio and video data URL want to access. [0041] 步骤202,流媒体服务器将存储的音视频数据解析为直播流,并通过广播会话说明协议(Session Description Protocol,以下简称:SDP)发送给流媒体终端,以及向流媒体终端发送SDP信息,该SDP信息中包括音视频媒体流的播放参数,包括直播流的分辨率、帧率与编解码能力参数。 [0041] Step 202, audio and video streaming server stores the analysis of live streaming, and by broadcast session description protocol (Session Description Protocol, hereinafter referred to as: SDP) transmitted to the streaming media terminal, and transmits SDP information to the streaming media terminal the SDP information includes playing audio and video media stream parameters including resolution, frame rate codec capabilities and parameters of live streams. [0042] 步骤203,流媒体终端获取流媒体终端支持的播放参数,并比较SDP信息中的音视频媒体流的播放参数与流媒体终端支持的播放参数是否匹配。 [0042] Step 203, the terminal acquires the streaming media playing the streaming media parameters supported by the terminal, playing parameters and playing parameters and compare the streaming media in the SDP information of the terminal supporting audio and video media streams match. 若匹配,执行步骤206 ;否则,若不匹配,执行步骤204。 If match, step 206 is executed; otherwise, if not match, step 204 is performed. [0043] 步骤204,流媒体终端断开与流媒体服务器的连接,并向转码服务器发送第一转码请求,该第一转码请求中包括直播流的URL与流媒体终端支持的播放参数。 [0043] Step 204, the terminal disconnects from the streaming media streaming media server, and sends a first request to transcoding server transcoded, the transcoding request including the first URL and the terminal supports streaming of live stream playback parameters . [0044] 步骤205,转码服务器根据第一转码请求中的URL访问流媒体服务器上的直播流, 并根据流媒体终端支持的播放参数对该直播流的播放参数进行转码,使音视频媒体流的播放参数与流媒体终端支持的播放参数匹配,并将转码后的直播流发送给流媒体终端。 [0044] Step 205, the transcoding server based on a first live stream transcoding request URL to access the streaming media server, and play streaming media parameters supported by the terminal transcodes the live streaming playback parameters in accordance with the audio and video playing streaming media terminal parameters to support streaming media playback parameter matching, and transmits the live stream transcoded media stream to the terminal. [0045] 步骤206,流媒体终端接收直拨流,并计算传送网络的实际流量比特率,以及获取直播流的下载流量,并计算该直播流的码率。 [0045] Step 206, the terminal receives streaming dial stream, and calculates the actual flow of the transport network bit rate, and for downloading broadcast traffic stream, and to calculate the flow rate of the broadcast. [0046] 步骤207,媒体终端判断传送网络的网络参数是否支持该音视频媒体流的下载参数。 [0046] Step 207, the terminal determines the media network parameter transfer network supports download parameters of the audio and video media stream. 若支持,执行步骤213 ;否则,若不支持,执行步骤208。 If it is supported, step 213; otherwise, if not support, step 208 is executed. [0047] 步骤208,流媒体终端断开与流媒体服务器的连接,并向转码服务器发送第二转码请求,该第二转码请求中包括直播流的URL与传送网络的实际流量比特率。 [0047] Step 208, the terminal disconnects the streaming media streaming media server, and sends a second request to transcoding server transcoded, the transcoding second request includes the actual bit rate of flow of the transport network and the URL of the live stream . [0048] 步骤209,转码服务器根据第二转码请求中的URL,访问流媒体服务器上的直播流。 [0048] Step 209, according to a second transcoding server transcodes the URL request, the access flow on live streaming media server. [0049] 步骤210,转码服务器根据传送网络的实际流量比特率对直播流的下载参数进行转码,使传送网络的网络参数支持该音视频媒体流的下载参数。 [0049] Step 210, the transcoding server based on actual traffic transport network bit rate of download parameters live stream transcoding parameters make the network transmission network to support download parameters of the audio and video media stream. [0050] 步骤211,转码服务器将转码后的直播流发送给流媒体终端。 [0050] Step 211, the transcoding server transcoded broadcast stream to the streaming media terminal. [0051] 步骤212,流媒体终端接收转码后的直播流,并对转码后的直播流进行解码与播放。 [0051] Step 212, after the terminal receives the streaming media broadcast stream transcoded, and the transcoded live stream for decoding and playback. 之后,不再执行本实施例的后续流程。 Thereafter, the subsequent procedure is not executed in the present embodiment. [0052] 步骤213,流媒体终端直接对流媒体服务器发送的直拨流进行解码与播放。 [0052] Step 213, the terminal direct flow streaming server sends streaming media directly decode and playback. [0053] 图2所示的音视频媒体流的播放方法实施例中,以音视频媒体流为直播流为例进行说明,对于音视频媒体流为音视频文件的情况同样适用,不同的是,音视频媒体流为音视频文件时,步骤202中,流媒体终端通过解析音视频文件的文件头或者包头,来获得音视频媒体流的播放参数。 Method for playing audio and video media stream shown in [0053] FIG. 2 embodiment, to stream live audio-video media stream as an example, for audio and video media stream for the case where the audio and video files are equally applicable, except that, when the audio-video media stream audio and video files, in step 202, the terminal by the streaming media file analyzing audio and video file header or packet header, audio and video playing parameters to obtain the media stream. 步骤203中,流媒体终端直接比较获取的音视频媒体流的播放参数与流媒体终端支持的播放参数是否匹配。 In step 203, the flow parameters play streaming media terminal acquires the terminal direct comparison of audio and video media streams supported playback parameters match. [0054]图3为本发明音视频媒体流的播放系统一个实施例的结构示意图。 Schematic structural diagram of the playback system [0054] FIG. 3 is an audio and a video media stream embodiment. 该实施例的音视频媒体流的播放系统可用于实现本发明上述各音视频媒体流的播放方法实施例的流程。 Streaming audio and video media playing system according to the embodiment of the present invention may be used to implement the flow according to each of the above-described method for playing audio and video media stream. 如图3所示,其包括流媒体服务器I、流媒体终端2与转码服务器3。 3, the streaming server comprising I, the streaming media server terminals 2 and 3 transcoding. [0055] 其中,流媒体服务器I用于存储音视频数据,并在接收到流媒体终端基于URL发送的访问请求时,将存储的音视频数据解析为音视频媒体流发送给流媒体终端2,其中的音视频数据由唯一的URL定位。 [0055] wherein I streaming server for storing audio and video data, and a terminal receiving the media stream-based access to the URL request sent, the stored audio and video data parsed into audio-video media stream to streaming media terminal 2, in which the positioning of audio and video data by a unique URL. [0056] 流媒体终端2用于获取当前访问的音视频媒体流的播放参数与下载参数,并比较音视频媒体流的播放参数与流媒体终端支持的播放参数是否匹配,以及判断传送网络的网络参数是否支持音视频媒体流的下载参数。 [0056] Streaming terminal 2 displays the parameter for obtaining access to download audio and video parameters of the current media stream, and compared with the parameters of the streaming media player terminal supports playback of audio and video media stream parameters match, and determining the network transmission network whether to support the argument parameter download audio and video media streams. 在音视频媒体流的播放参数与流媒体终端支持的播放参数不匹配时,向转码服务器3发送第一转码请求,该第一转码请求中包括音视频媒体流的URL与流媒体终端支持的播放参数。 When playback parameters do not match the audio and video media stream and playing the streaming media parameters supported by the terminal, sending a first request to a transcoding transcoding server 3, the first URL included in the transcoding request and streaming audio and video media streams terminal supported playback parameters. 在传送网络的网络参数不支持音视频媒体流的下载参数时,向转码服务器3发送第二转码请求,该第二转码请求中包括音视频媒体流的URL与传送网络的网络参数。 When the network does not support the transfer network parameters Parameter downloading audio and video media stream and transmits requests to the second transcoder transcoding server 3, the second transcoder request comprises a network parameter in the URL the transport network audio and video media streams. 以及接收转码服务器转码后的音视频媒体流,并对转码后的音视频媒体流进行解码与播放。 And after receiving the transcoding server transcodes audio and video media stream, and the transcoded audio and video media stream decoding and playback. 以及在音视频媒体流的播放参数与流媒体终端支持的播放参数匹配、传送网络的网络参数支持音视频媒体流的下载参数时,对当前访问的音视频媒体流进行解码与播放。 Parameters and playing audio and video media stream and the terminal support streaming playback parameter matching, parameter download network parameter transfer network supports audio and video media streams, audio and video media stream currently accessed to decode and playback. 其中的传送网络具体可以是=GSM网络、CDMA网络、3G移动电话网络、WLAN、NGN、互联网络或GPRS网络或者其它可以传送音视频媒体流的网络。 Wherein the transport network may be a specific = GSM network, CDMA networks network, 3G mobile phone network, WLAN, NGN, Internet or GPRS network, or other media may transmit audio and video streams. [0057] 转码服务器3用于在接收到第一转码请求和/或第二转码请求时,根据第一转码请求和/或第二转码请求中的URL访问音视频媒体流,并根据第一转码请求中流媒体终端支持的播放参数对音视频媒体流的播放参数进行转码,以及根据第二转码请求中传送网络的网络参数对音视频媒体流的播放参数进行转码,并将转码后的音视频媒体流发送给流媒体终端。 [0057] The transcoding server 3 when receiving the first transcoder request and / or a second transcoding request URL access audio stream according to a first transcoding request and / or a second transcoding video media request, and transcoding the media stream playing audio and video parameters according to the parameters of the first play streaming media transcoding request supported by the terminal, and the playback parameters to transcode audio and video media stream according to a second network parameter transmission network in the transcoding request and the transcoded audio-video media stream to streaming media terminal. [0058] 本发明实施例提供的音视频媒体流的播放系统,流媒体终端可以比较当前访问音视频媒体流的播放参数与流媒体终端支持的播放参数是否匹配,以及判断传送网络的网络参数是否支持该音视频媒体流的下载参数,在音视频媒体流的播放参数与流媒体终端支持的播放参数不匹配时,请求转码服务器根据根据流媒体终端支持的播放参数对该音视频媒体流的播放参数进行转码,使音视频媒体流的播放参数与流媒体终端支持的播放参数匹配;以及在传送网络的网络参数不支持该音视频媒体流的下载参数时,请求转码服务器根据传送网络的网络参数对该音视频媒体流的下载参数进行转码,使传送网络的网络参数支持音视频媒体流的下载参数,然后流媒体终端播放转码后的音视频媒体流,解决了流媒体终端与传送网络对播放音视频媒体流的影响,避免了由 [0058] The broadcasting system of audio and video media streams according to an embodiment of the present invention, the streaming media terminal may compare the current access playing parameters and playing parameters of the streaming media terminal supporting audio and video media stream are matched, and network parameters determined transfer network whether support download audio and video parameters of the media stream, when playing streaming audio and video parameters and media streams supported by the terminal displays the parameters do not match, the request to the streaming server according to the transcoding audio and video parameters according to the play streaming media supported by the terminal of playback parameters for transcoding the playing parameters playing parameters and the streaming media terminal supporting audio and video media stream matches; and network parameter transfer network does not support the download parameters of the audio and video media stream, the request transcoding server according to the transmission network the network parameter download parameters audiovisual media stream transcoding the network parameters parameter downloading audio and video media stream transfer network, and streaming audio and video media stream transcoding a media player terminal, the streaming media terminal solves and the impact on the transport network media player audio and video streaming, to avoid the 于播放的音视频媒体流与流媒体终端参数、传送网络的网络参数不一致时导致的无法播放、播放不流畅、画面停顿等播放问题,提高了用户对流媒体业务的体验。 In audio and video streaming media and streaming media playback terminal parameters, network parameters transmission network caused by inconsistent not play, play is not smooth, the screen pauses playback issues, improve the user experience of streaming media services. [0059] 作为本发明音视频媒体流的播放系统的另一个实施例,在图3所示的音视频媒体流的播放系统中,流媒体终端2具体用于获取当前访问的流媒体服务器I上的音视频媒体流的播放参数,并比较音视频媒体流的播放参数与流媒体终端支持的播放参数是否匹配;在音视频媒体流的播放参数与流媒体终端支持的播放参数匹配时,接收音视频媒体流,获取音视频媒体流的下载参数,并判断传送网络的网络参数是否支持音视频媒体流的下载参数,在传送网络的网络参数不支持音视频媒体流的下载参数时,向转码服务器3发送第二转码请求,以及接收转码服务器3转码后的音视频媒体流,并对转码后的音视频媒体流进行解码与播放;在音视频媒体流的播放参数与流媒体终端支持的播放参数不匹配时,向转码服务器3发送第一转码请求,并在根据流媒体终端支持的播 Another [0059] The audio playback system of the present invention, a video media stream in the embodiment, the reproducing system shown in FIG. 3 audio and video media stream, streaming media terminal 2 is configured to acquire streaming media server to access the current I the playback parameters audiovisual media stream, and compares the playback parameters matches the playback parameters streaming media terminal supporting audio and video media streams; during playback parameters audiovisual media stream streaming media terminal supports playback parameters match, receiving tones when the video media stream, for downloading parameters of audio and video media stream, and to determine whether the network parameter transfer network supports download parameters audiovisual media stream is not supported parameter download audio and video media stream in a network parameter transfer network, to the transcoding transcoding server 3 sends a second request, and the server 3 receives transcoded media transcoding audio and video streams, audio and video transcoded media stream decoding and playback; streaming playing parameters and audio and video media stream when the terminal supports the playback parameters do not match, transmitting a first request to transcoding transcoding server 3 and the terminal support multicast streaming media in accordance with 参数对音视频媒体流的播放参数进行转码后,执行接收音视频媒体流的操作。 After the parameters of the audio and video playback parameters transcoded media stream, an operation of receiving audio and video media stream. [0060] 在上述实施例的音视频媒体流的播放系统中,音视频媒体流的播放参数具体可以包括音视频媒体流的分辨率、帧率与编解码能力参。 [0060] In the audio-video media playing system of the above embodiment stream, audio and video media stream playback parameters may include the specific resolutions, frame rates and audio codec capabilities reference video media stream. 相应的,流媒体终端2具体用于通过URL访问流媒体服务器I上的音视频媒体流,该音视频媒体流包括音视频文件和/或直播流,通过解析流媒体服务器I向流媒体终端发送直播流的流媒体协议,来获得音视频媒体流的播放参数,其中的流媒体协议具体是RTSP、HTTP或RTMP ;或者,通过解析音视频文件的文件头或者包头,来获得音视频媒体流的播放参数。 Accordingly, the terminal 2 is configured to stream media through audiovisual media access on the streaming media server URL I flows, the audio and video media stream comprises audio and video files, and / or live streaming, the streaming media transmission to the streaming media server by parsing the terminal I streaming protocol live stream to obtain playback parameters audiovisual media stream, wherein the streaming protocol specifically RTSP, HTTP or the RTMP; Alternatively, the file parsing the audio and video file header or a packet header to obtain audio and video media stream playback parameters. [0061]另外,在上述实施例的音视频媒体流的播放系统中,音视频媒体流的下载参数具体可以包括音视频媒体流的下载流量与码率。 [0061] Further, in the audio-video media playback system of the above embodiment of the flow parameter download specific audio and video media streams may include audio and video media stream download traffic and rate. 相应的,流媒体终端2具体用于获取音视频媒体流的下载流量,并根据音视频媒体流的下载流量与下载时间计算音视频媒体流的码率。 Accordingly, a particular streaming media terminal 2 for downloading audiovisual media flow stream and calculates the flow rate based on audio-video media download traffic and download time audio and video media stream. [0062] 进一步的,在本发明上述实施例的音视频媒体流的播放系统中,流媒体终端还用于获取流媒体终端支持的播放参数,包括流媒体终端支持的分辨率、巾贞率与编解码能力参数,并计算传送网络的网络参数,包括传送网络的实际流量比特率。 [0062] Further, in the audio-video media playback system of the above-described embodiments of the present invention, the stream, the terminal further configured to acquire the streaming media playing the streaming media parameters supported by the terminal, the terminal including a resolution supported streaming media, Chen towel rate codec capabilities parameters, network parameters and calculate the transport network, including the actual transmission bit rate of the network traffic. [0063] 本说明书中各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似的部分相互参见即可。 [0063] In the present specification, various embodiments are described in a progressive way, differences from the embodiment described with other embodiments focus each embodiment, the same or similar parts between the respective embodiments can see each other. 对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。 For the apparatus of the embodiment, since the method of the embodiment which is substantially similar, the description is relatively simple, the relevant part of the embodiment of the method embodiments to be described. [0064] 本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:R0M、RAM、磁碟或者光盘等各种可以存储程序代码的介质。 [0064] Those of ordinary skill in the art can be appreciated: realize all or part of the steps of the method described above may be implemented by a program instructing relevant hardware to complete, the program may be stored in a computer readable storage medium, the program execution when, comprising the step of performing the above-described embodiment of the method; and the storage medium comprising: a variety of medium may store program codes R0M, RAM, magnetic disk, or optical disk. [0065] 本发明实施例可以根据根据流媒体终端支持的播放参数对该音视频媒体流的播放参数进行转码,使音视频媒体流的播放参数与流媒体终端支持的播放参数匹配;以及根据传送网络的网络参数对该音视频媒体流的下载参数进行转码,使传送网络的网络参数支持音视频媒体流的下载参数,然后流媒体终端播放转码后的音视频媒体流,解决了流媒体终端与传送网络对播放音视频媒体流的影响,避免了由于播放的音视频媒体流与流媒体终端参数、传送网络的网络参数不一致时导致的无法播放、播放不流畅、画面停顿等播放问题,提高了用户对流媒体业务的体验。 [0065] Embodiments of the invention may be transcoded according to the playing streaming media parameters supported by the terminal for the audio and video media stream playback parameters of the playing parameters and playing the streaming media parameters terminal supporting audio and video media streams matching; and The Download parameters of the network parameters of the audio and video transport network media stream transcoding, network parameters so that the download parameter transfer network support audio video media stream, and streaming audio and video media stream transcoding the media player terminal, the streaming solution impact of the media terminal and transport network to play audio and video media streams, avoids audio and video media streaming and streaming media terminal parameters broadcast, transmission network network parameters caused by inconsistent not play, play is not smooth, the screen pauses playback problems to improve the user experience of streaming media services. [0066] 本发明的描述是为了示例和描述起见而给出的,而并不是无遗漏的或者将本发明限于所公开的形式。 [0066] The description of the present invention are exemplary and given in order of description, and not to be exhaustive or to limit the invention to the form disclosed. 很多修改和变化对于本领域的普通技术人员而言是显然的。 Many modifications and variations to those of ordinary skill in the art is obvious. 选择和描述实施例是为了更好说明本发明的原理和实际应用,并且使本领域的普通技术人员能够理解本发明从而设计适于特定用途的带有各种修改的各种实施例。 The embodiments were chosen and described in order to best explain the principles and practical applications of the present invention and enable one of ordinary skill in the art to understand the invention for various design suited to the particular use with a variety of modified embodiments.

Claims (14)

  1. 1. 一种音视频媒体流的播放方法,其特征在于,包括: 流媒体终端获取当前访问的流媒体服务器上的音视频媒体流的播放参数与下载参数,并比较所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数是否匹配,以及判断传送网络的网络参数是否支持所述音视频媒体流的下载参数; 在所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数不匹配时,所述流媒体终端向转码服务器发送第一转码请求,所述第一转码请求中包括所述音视频媒体流的全球资源定位符URL与所述流媒体终端支持的播放参数;所述转码服务器根据所述URL访问所述音视频媒体流,并根据所述流媒体终端支持的播放参数对所述音视频媒体流的播放参数进行转码; 在传送网络的网络参数不支持所述音视频媒体流的下载参数时,所述流媒体终端向转码服务器发送第二 CLAIMS 1. A method of playing audio and video media stream, characterized by comprising: a streaming media player terminal obtains parameters and parameter download audiovisual media on the server is currently accessing streaming media flow, and comparing the audio-video media stream playing parameters and playing parameters of the media flow supported by the terminal matches, network parameters and determines whether the network supports the transmission parameter of the download audio-video media stream; playback parameters in the audio-video media stream with the flow media terminal when the supported playback parameters do not match, the terminal sends a streaming request to the first transcoder transcoding server, the first request including global transcoding resource locator (URL) of the audio-video media stream and the media stream the terminal supports playback parameters; the transcoding server according to the URL to access the audio and video media stream, and the playback parameters to the transcoding of audio and video media stream according to the streaming media parameters supported by the terminal; transmitting in when the network does not support network parameter download parameters of the audio-video media stream, the media stream to the terminal sends a second transcoding server 码请求,所述第二转码请求中包括所述音视频媒体流的URL与传送网络的网络参数;所述转码服务器根据所述URL访问所述音视频媒体流,并根据传送网络的网络参数对所述音视频媒体流的播放参数进行转码; 所述转码服务器将转码后的音视频媒体流发送给所述流媒体终端; 所述流媒体终端接收转码后的音视频媒体流,并对所述转码后的音视频媒体流进行解码与播放。 Request code, said second transcoder request comprises a network parameter in the URL and transport network audio and video media stream; the transcoding server according to the URL to access the audio and video media stream, and the transport network according to the network parameters of the audio-video playback parameters is transcoded media stream; the transcoding server transcoded audio and video media stream to the terminal streaming media; the media stream after receiving the terminal audiovisual media transcoding flow, and after the transcoding audio and video media stream decoding and playback.
  2. 2.根据权利要求I所述的方法,其特征在于,流媒体终端获取当前访问的流媒体服务器上的音视频媒体流的播放参数与下载参数,并比较所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数是否匹配,以及判断传送网络的网络参数是否支持所述音视频媒体流的下载参数包括: 流媒体终端获取当前访问的流媒体服务器上的音视频媒体流的播放参数,并比较所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数是否匹配; 在所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数匹配时,所述流媒体终端接收所述音视频媒体流,获取所述音视频媒体流的下载参数,并执行所述判断传送网络的网络参数是否支持所述音视频媒体流的下载参数的操作; 在所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数不匹配时,执 2. The method as claimed in claim I, wherein the terminal acquires the streaming media player parameters and parameter download audio streaming server on the currently accessed video media stream, and comparing the parameters playing audio and video media stream playing the streaming media parameters supported by the terminal matches, and determining whether the network supports the transmission network parameters download parameters of the audio-video media stream comprising: a streaming media terminal obtains audio and video playback on the currently accessing streaming media server streams parameters, and the parameters of the streaming media playback terminal the playback parameters supported by comparing the audio-video media stream matches; when playing the streaming media parameters with the parameters of the terminal supports playback of audio and video media stream matches the said terminal receives the streaming audio and video media stream for downloading the parameters of the audio and video media stream, and executes the determination whether the network supports the transmission network parameters downloaded operating parameters of the audio-video media stream; in the when playing audio and video media stream parameter does not match the parameters of the streaming media players supported by the terminal, performed 所述流媒体终端向转码服务器发送第一转码请求的操作,并在根据所述流媒体终端支持的播放参数对所述音视频媒体流的播放参数进行转码后,执行所述流媒体终端接收所述音视频媒体流的操作。 The operation terminal sends a first media stream transcoding request to transcoding server and the terminal according to the media stream playback parameters supported by the audio-video playback parameters media stream transcoding, performing the streaming media the operating terminal receives audio and video media stream.
  3. 3.根据权利要求I所述的方法,其特征在于,所述流媒体终端获取当前访问的音视频媒体流的播放参数包括: 所述流媒体终端通过所述URL访问所述流媒体服务器上的所述音视频媒体流,所述音视频媒体流包括音视频文件与直播流; 所述流媒体终端通过解析所述流媒体服务器向所述流媒体终端发送所述直播流的流媒体协议,来获得所述音视频媒体流的播放参数;或者,所述流媒体终端通过解析所述音视频文件的文件头或者包头,来获得所述音视频媒体流的播放参数; 所述音视频媒体流的播放参数包括所述音视频媒体流的分辨率、帧率与编解码类型。 3. The method of claim I, wherein the terminal acquires the streaming media player to access audio and video parameters of the current media stream comprising: streaming the media terminal through the URL access on the streaming media server the audio and video media stream, the audio-video media stream comprises audio and video files and live stream; terminal transmits the streaming media streaming protocols of the live stream to the streaming media terminal by parsing the stream media server to obtaining the audio and video media stream playback parameters; or the streaming media terminal by parsing the header file of the audio and video files, or packet header to obtain the playback parameters of the audio-video media stream; the audio-video media stream said sound playback parameters including resolution, frame rate and the codec type of the video media stream.
  4. 4.根据权利要求3所述的方法,其特征在于,所述流媒体协议具体为:实时流控协议RTSP、超文本传输协议HTTP或实时消息协议RTMP。 4. The method according to claim 3, wherein the streaming protocol is specifically: real-time flow control protocol RTSP, the Hypertext Transfer Protocol (HTTP) or Real Time Messaging Protocol RTMP.
  5. 5.根据权利要求3所述的方法,其特征在于,所述音视频媒体流的下载参数包括所述音视频媒体流的下载流量与码率; 所述流媒体终端获取当前访问的音视频媒体流的下载参数包括:所述流媒体终端获取所述音视频媒体流的下载流量,并计算所述音视频媒体流的码率。 5. The method according to claim 3, wherein the download parameters include audio and video media stream with a flow rate of the download audio and video media stream; terminal obtains the streaming audio and video media currently visited download parameter stream comprises: the streaming traffic to the terminal for downloading audio and video media stream, and calculates the audio bit rate video media stream.
  6. 6.根据权利要求I至5任意一项所述的方法,其特征在于,还包括: 所述流媒体终端获取所述流媒体终端支持的播放参数,并计算传送网络的网络参数,所述网络参数包括传送网络的实际流量比特率,所述流媒体终端支持的播放参数包括流媒体终端支持的分辨率、帧率与编解码能力参数。 I according to the method of any one of claims claim 5, characterized in that, further comprising: playing the streaming media terminal obtains the parameter of the media flow supported by the terminal and network parameters calculated transport network, the network flow parameter includes an actual bit rate of the transport network, the streaming media terminal parameters to support streaming of a terminal comprising a supported resolutions, frame rate codec capabilities parameters.
  7. 7.根据权利要求6所述的方法,其特征在于,所述传送网络具体为:全球移动通信系统GSM网络、码分多址CDMA网络、第三代3G移动电话网络、无线局域网络WLAN、下一代网络系统NGN、互联网络或通用分组无线业务GPRS网络。 7. The method according to claim 6, wherein said transport network is specifically: the GSM network GSM, Code Division Multiple Access CDMA network, a third-generation 3G mobile telephone network, a wireless local area network WLAN, the generation networks NGN, Internet, or General packet radio service GPRS network.
  8. 8. 一种音视频媒体流的播放系统,其特征在于,包括: 流媒体服务器,用于存储音视频数据,并在接收到流媒体终端基于URL发送的访问请求时,将存储的音视频数据解析为音视频媒体流发送给所述流媒体终端,所述音视频数据由唯一的URL定位; 流媒体终端,用于获取当前访问的音视频媒体流的播放参数与下载参数,并比较所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数是否匹配,以及判断传送网络的网络参数是否支持所述音视频媒体流的下载参数;在所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数不匹配时,向转码服务器发送第一转码请求,所述第一转码请求中包括所述音视频媒体流的URL与所述流媒体终端支持的播放参数;在传送网络的网络参数不支持所述音视频媒体流的下载参数时,向转码服务器发送第二转码 A system for playing audio and video media stream, characterized by comprising: a streaming server for storing audio and video data, and a terminal receiving the media stream-based access to the URL request sent, the stored audio and video data to resolve streaming audio-video media stream to the media terminal, the audio-video data by a unique URL locate; streaming media terminal, and the playback parameters for obtaining access to download audio and video parameters of the current media stream, and comparing the playback parameters match audio and video media stream and playing the streaming media parameters supported by the terminal and network parameters determined transfer network supports downloading audio and video parameters of the media stream; playback parameters in the audio-video media stream and when the terminal supports streaming media parameters do not match, transmitting a first request to transcoding transcoding server, said URL comprising a first transcoding the audio-video media stream and the terminal supports the streaming media playing request parameter; parameter does not support the downloading of audio and video media stream transfer network parameters in a network, to transmit a second transcoding server transcodes 求,所述第二转码请求中包括所述音视频媒体流的URL与传送网络的网络参数;以及接收所述转码服务器转码后的音视频媒体流,并对所述转码后的音视频媒体流进行解码与播放;以及在所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数匹配、传送网络的网络参数支持所述音视频媒体流的下载参数时,对当前访问的音视频媒体流进行解码与播放; 转码服务器,用于在接收到所述第一转码请求和/或所述第二转码请求时,根据所述第一转码请求和/或所述第二转码请求中的URL访问所述音视频媒体流,并根据所述第一转码请求中所述流媒体终端支持的播放参数对所述音视频媒体流的播放参数进行转码,以及根据所述第二转码请求中所述传送网络的网络参数对所述音视频媒体流的播放参数进行转码,并将转码后的音视频媒体流发送给所述流媒体 Seeking, in the second transcoder request comprises a network parameter in the URL of the transport network and audio-video media stream; and after receiving the transcoding server transcodes audio and video media stream, and the transcoded audio and video media stream decoding and playback; and when playing audio and video parameters of the media stream playback parameters match the media flow supported by the terminal, the network parameters of the transmission network to support downloading audio and video media stream parameters, current access audio and video media stream decoding and playback; transcoding server for receiving the first transcoder request and / or when the second transcoding request, according to the first and the transcoding request / the URL to access the audio or video media stream transcoding the second request, and transfer parameters of the audio-video playback of the first media stream transcoding request the streaming media supported by the terminal according to the parameter code, and the transmission network parameters based on the second request for transcoding parameters of the audio and video playback media stream transcoded, and the transcoded audio and video media stream to the media stream 终端。 terminal.
  9. 9.根据权利要求8所述的系统,其特征在于,所述流媒体终端具体用于获取当前访问的流媒体服务器上的音视频媒体流的播放参数,并比较所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数是否匹配;在所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数匹配时,接收所述音视频媒体流,获取所述音视频媒体流的下载参数,并判断传送网络的网络参数是否支持所述音视频媒体流的下载参数,在传送网络的网络参数不支持所述音视频媒体流的下载参数时,向转码服务器发送第二转码请求,以及接收所述转码服务器转码后的音视频媒体流,并对所述转码后的音视频媒体流进行解码与播放;在所述音视频媒体流的播放参数与所述流媒体终端支持的播放参数不匹配时,向转码服务器发送第一转码请求,并在根据所述流媒体终端支持的 9. The playback system of claim 8, wherein the terminal is configured to acquire streaming audio and video media playing parameters on the streaming server to access the current flow, and comparing the audio-video media stream parameter with the terminal supports streaming playback parameters match; when playing audio and video parameters of the media stream and playing the streaming media parameters supported by the terminal match, receiving the audio-video media stream, acquires the audio-video download media stream parameters, network parameters and determines whether the network supports the transmission parameters of the audio-video media download stream, the parameter does not support downloading audio and video media stream in a network parameter transfer network, transmits to the second transcoding server two transcoding request, and after receiving the transcoding server transcodes audio and video media stream, and after the transcoding audio and video media stream decoding and playback; playback parameters of the audio and video media streams in the when said terminal supports streaming media parameters do not match, transmitting a first request to a transcoding server transcoding and streaming media support according to the terminal 放参数对所述音视频媒体流的播放参数进行转码后,执行接收所述音视频媒体流的操作。 After allowing the parameters of the audio-video playback parameters media stream transcoding, perform an operation to receive the audio and video media stream.
  10. 10.根据权利要求9所述的系统,其特征在于,所述音视频媒体流的播放参数包括所述音视频媒体流的分辨率、帧率与编解码能力参数;所述流媒体终端具体用于通过所述URL访问所述流媒体服务器上的所述音视频媒体流,所述音视频媒体流包括音视频文件与直播流,通过解析所述流媒体服务器向所述流媒体终端发送所述直播流的流媒体协议,来获得所述音视频媒体流的播放参数;或者,通过解析所述音视频文件的文件头或者包头,来获得所述音视频媒体流的播放参数。 10. The system according to claim 9, characterized in that the audio-video playback parameters include the resolution of the media stream of audio and video media stream, and frame rate parameter codec capabilities; specific terminal with the streaming media the URL to access the stream by the audio-video media stream media server, the media stream comprises audio and video files and live audio and video stream, sending the stream to the media terminal by parsing the stream media server live stream streaming protocol, to obtain the parameters of the video media stream playing audio; or by analyzing the audio-video file header or packet header to obtain the playback parameters of the audio and video media stream.
  11. 11.根据权利要求10所述的系统,其特征在于,所述流媒体协议具体为:实时流控协议RTSP、超文本传输协议HTTP或实时消息协议RTMP。 11. The system of claim 10, wherein the streaming protocol is specifically: real-time flow control protocol RTSP, the Hypertext Transfer Protocol (HTTP) or Real Time Messaging Protocol RTMP.
  12. 12.根据权利要求9所述的系统,其特征在于,所述音视频媒体流的下载参数包括所述音视频媒体流的下载流量与码率; 所述流媒体终端具体用于获取所述音视频媒体流的下载流量,并计算所述音视频媒体流的码率。 12. The system according to claim 9, wherein the download parameters include audio and video media stream with a flow rate of the download audio and video media stream; the streaming audio to the terminal is configured to obtain download traffic video media stream, and calculates the audio bit rate video media stream.
  13. 13.根据权利要求8至12任意一项所述的系统,其特征在于,所述流媒体终端还用于获取所述流媒体终端支持的播放参数,并计算传送网络的网络参数,所述网络参数包括传送网络的实际流量比特率,所述流媒体终端支持的播放参数包括流媒体终端支持的分辨率、帧率与编解码能力参数。 13. The system according to any one of claims 8 to 12, wherein said streaming media network parameters further configured to acquire the terminal displays the parameter of the media flow supported by the terminal, and the calculation of the transport network, the network flow parameter includes an actual bit rate of the transport network, the streaming media terminal parameters to support streaming of a terminal comprising a supported resolutions, frame rate codec capabilities parameters.
  14. 14.根据权利要求13所述的系统,其特征在于,所述传送网络具体为:GSM网络、⑶MA网络、3G移动电话网络、WLAN、NGN、互联网络或GPRS网络。 14. The system according to claim 13, wherein said transport network is particularly: GSM network, ⑶MA networks, 3G mobile phone network, WLAN, NGN, Internet or GPRS network.
CN 201010536555 2010-11-09 2010-11-09 Method and system for playing audio and video media stream CN102065339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010536555 CN102065339B (en) 2010-11-09 2010-11-09 Method and system for playing audio and video media stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010536555 CN102065339B (en) 2010-11-09 2010-11-09 Method and system for playing audio and video media stream

Publications (2)

Publication Number Publication Date
CN102065339A true CN102065339A (en) 2011-05-18
CN102065339B true CN102065339B (en) 2013-03-20

Family

ID=44000396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010536555 CN102065339B (en) 2010-11-09 2010-11-09 Method and system for playing audio and video media stream

Country Status (1)

Country Link
CN (1) CN102065339B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763577A (en) * 2013-12-31 2014-04-30 华为技术有限公司 Method, device and system for playing media file

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594805A (en) * 2012-01-30 2012-07-18 中兴通讯股份有限公司 Method and system for providing multiple media services through single node
CN103379363B (en) * 2012-04-19 2018-09-11 腾讯科技(深圳)有限公司 The video processing method and apparatus, a mobile terminal and system
CN103036889B (en) * 2012-12-19 2016-08-17 常州中流电子科技有限公司 An adaptive method and streaming media playback system
WO2014192415A1 (en) * 2013-05-31 2014-12-04 ソニー株式会社 Information processing device and information processing method
CN103561279B (en) * 2013-10-10 2017-02-01 中兴通讯股份有限公司 A method of playing multimedia files, system and cloud transcoding service equipment
CN104661113A (en) * 2013-11-25 2015-05-27 乐视网信息技术(北京)股份有限公司 Streaming media live-broadcasting method, server, terminal and communication system
CN103702180B (en) * 2014-01-14 2017-06-20 北京奇艺世纪科技有限公司 Method and apparatus for playing media files
CN103957469B (en) * 2014-05-21 2017-09-15 百视通网络电视技术发展有限责任公司 Internet-based video-on-demand method and system for real-time transfer package
CN106210611A (en) * 2015-04-30 2016-12-07 中国电信股份有限公司 Method, video monitoring platform and system for playing video
CN105187951A (en) * 2015-08-05 2015-12-23 秦永红 Reverse control method and system of RTMP streaming media live broadcast system
CN105847265A (en) * 2016-03-31 2016-08-10 乐视控股(北京)有限公司 Video living streaming transcoding method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1694527A (en) 2004-04-30 2005-11-09 微软公司 Systems and methods for novel real-time audio-visual communication and data collaboration
CN1946086A (en) 2006-10-27 2007-04-11 杭州华为三康技术有限公司 Transmission method and device for supporting non-standard speed rate
CN1981505A (en) 2004-05-04 2007-06-13 高通股份有限公司 Method and apparatus for content delivery to a mobile device
CN101060623A (en) 2006-04-20 2007-10-24 佳能株式会社 Moving image reproducing apparatus and method
CN101727446A (en) 2008-10-27 2010-06-09 国际商业机器公司 Method and system for accessing mobile Web, corresponding server and mobile equipment
CN101849261A (en) 2007-08-17 2010-09-29 菲尼克斯没药树脂科技专营有限公司 Method and system for content delivery

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7624337B2 (en) * 2000-07-24 2009-11-24 Vmark, Inc. System and method for indexing, searching, identifying, and editing portions of electronic multimedia files
US20040049624A1 (en) * 2002-09-06 2004-03-11 Oak Technology, Inc. Network to computer internal interface

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1694527A (en) 2004-04-30 2005-11-09 微软公司 Systems and methods for novel real-time audio-visual communication and data collaboration
CN1981505A (en) 2004-05-04 2007-06-13 高通股份有限公司 Method and apparatus for content delivery to a mobile device
CN101060623A (en) 2006-04-20 2007-10-24 佳能株式会社 Moving image reproducing apparatus and method
CN1946086A (en) 2006-10-27 2007-04-11 杭州华为三康技术有限公司 Transmission method and device for supporting non-standard speed rate
CN101849261A (en) 2007-08-17 2010-09-29 菲尼克斯没药树脂科技专营有限公司 Method and system for content delivery
CN101727446A (en) 2008-10-27 2010-06-09 国际商业机器公司 Method and system for accessing mobile Web, corresponding server and mobile equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763577A (en) * 2013-12-31 2014-04-30 华为技术有限公司 Method, device and system for playing media file

Also Published As

Publication number Publication date Type
CN102065339A (en) 2011-05-18 application

Similar Documents

Publication Publication Date Title
US8375140B2 (en) Adaptive playback rate with look-ahead
US6745364B2 (en) Negotiated/dynamic error correction for streamed media
US20130290493A1 (en) Cross-layer optimized adaptive http streaming
US8843586B2 (en) Playlists for real-time or near real-time streaming
US20120317303A1 (en) System and Method of Media Content Streaming with a Multiplexed Representation
US20060089999A1 (en) Method for providing IMS-based wireless download services
US7720983B2 (en) Fast startup for streaming media
US20140372624A1 (en) Mediating content delivery via one or more services
Lohmar et al. Dynamic adaptive HTTP streaming of live content
US20080151885A1 (en) On-Demand Multi-Channel Streaming Session Over Packet-Switched Networks
US20080162714A1 (en) Method and Apparatus for Reporting Streaming Media Quality
US20080263219A1 (en) Method and System to Minimize the Switching Delay Between Two Rtp Multimedia Streaming Sessions
US20110066703A1 (en) Methods and systems for delivering media to client device
US20120151009A1 (en) Method and Apparatus for Generating and Handling Streaming Media Quality-of-Experience Metrics
US20100223357A1 (en) Media channel management
CN102118428A (en) Method and system for playing streaming media
US20120110120A1 (en) Methods and Devices for Media Description Delivery
Frojdh et al. Adaptive streaming within the 3GPP packet-switched streaming service
CN102811368A (en) Mobile video live broadcasting system
CN102143385A (en) Media play processing method, digital media server and system
KR100765368B1 (en) Method of streaming for continuous contents service and computer-readable medium having thereon program performing function embodying the same
US20130042013A1 (en) Methods, apparatuses and computer program products for enabling live sharing of data
CN1960260A (en) Method for providing IPTV service for different type terminals, and IPTV service system
US20130290555A1 (en) Combined broadcast and unicast delivery
US20130086631A1 (en) Systems and methods for controlling access to a media stream

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted