CN103533386A - Live broadcasting control method and anchor equipment - Google Patents

Live broadcasting control method and anchor equipment Download PDF

Info

Publication number
CN103533386A
CN103533386A CN 201310495764 CN201310495764A CN103533386A CN 103533386 A CN103533386 A CN 103533386A CN 201310495764 CN201310495764 CN 201310495764 CN 201310495764 A CN201310495764 A CN 201310495764A CN 103533386 A CN103533386 A CN 103533386A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
rate
data
transmission
live
available
Prior art date
Application number
CN 201310495764
Other languages
Chinese (zh)
Inventor
胡兴华
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television, VOD [Video On Demand]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2408Monitoring of the upstream path of the transmission network, e.g. client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television, VOD [Video On Demand]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television, VOD [Video On Demand]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2402Monitoring of the downstream path of the transmission network, e.g. bandwidth available
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television, VOD [Video On Demand]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities

Abstract

The embodiment of the invention discloses a live broadcasting control method and anchor equipment. The method needing to be realized comprises the steps of collecting live broadcasting data, coding and sending to a server; in the process of sending the coded live broadcasting data, acquiring the transmission condition of the live broadcasting data and determining the current usable code rate according to the transmission condition of the live broadcasting data; coding the live broadcasting data depending on the usable code rate and sending to the server. The transmission condition of the live broadcasting data is acquired in the process that the live broadcasting data is coded and sent to the server, the current usable code rate is determined, and then the live broadcasting data is coded by using the current usable code rate, so the transmission smoothness of the live broadcasting data can be ensured, the code rate adaptive to the possibly consistently changed network environment can be obtained in the live broadcasting process, the live broadcasting can be realized by better code rates and a better live broadcasting effect can be obtained.

Description

一种直播控制方法,及主播设备 One kind of broadcast control method, and anchor equipment

技术领域 FIELD

[0001] 本发明涉及计算机技术领域,特别涉及一种直播控制方法,及主播设备。 [0001] The present invention relates to computer technologies, and more particularly to a method for controlling broadcast and anchor the device.

背景技术 Background technique

[0002] 本说明书所称的直播是指广义上的各种实时性的数据传输,传输的数据可以是音频数据、视频流等。 [0002] Live present specification refers to various referred to real-time data transfer in a broad sense, the data transmission may be audio data, video streaming. 以视频直播为例,视频直播方案如下:主播设备采集本地视频并完成编码后,将编码后的视频流上传到视频服务器;视频服务器将视频流下发给用户设备;用户设备对接收到的视频流进行解码,然后显示视频画面。 With live video, for example, live video programs are as follows: anchor device to capture local video encoding and after the completion of the encoded video stream is uploaded to the video server; video server video stream to the user equipment; the user equipment received video stream decoding and displaying video.

[0003] 在直播过程中,直播效果会受到很多因素的影响,例如直播上下行带宽、网络抖动 [0003] During a live event, live results will be affected by many factors, such as live uplink and downlink bandwidth, network jitter

坐寸ο Sit inch ο

[0004] 网络抖动是Q0S(Quality of Service,服务质量)控制常用的一个概念,其意思是指分组延迟的变化程度。 [0004] The network jitter is Q0S (Quality of Service, Quality of Service) control of a common concept, it is meant the degree of change in packet delay. 如果网络发生拥塞,排队延迟将影响端到端的延迟,并导致通过同一连接传输的分组延迟各不相同,而抖动,就是用来描述这样一延迟变化的程度。 If the network is congested, queuing delay will affect the end of the delay, and resulting in packet transmission delay through the same connection are different, and the jitter is used to describe the degree of such a delay variations. 因此,抖动对于实时性的传输将会是一个重要参数,比如:VOIP (Voice over Internet Protocol,互联网协议电话),视频等。 Therefore, jitter for real-time transmission will be an important parameter, such as: VOIP (Voice over Internet Protocol, Internet Protocol), video and so on. 目前为了解决网络抖动的问题,通常可以采用如下方案: In order to solve the current problem of network jitter, it can usually be regarded as follows:

[0005] 1、数据包接收端的抖动缓存指针队列的入队线程接收数据包,对接收到的数据包进行排序后将接收到的数据包插入抖动缓存指针队列的相应位置。 [0005] 1, packet reception side jitter buffer queue enqueue pointer thread to receive packets, the received packets after sorting the received data packets corresponding to the insertion position of the jitter buffer queue pointer.

[0006] 2、抖动缓存指针队列的出队线程定时器以一定时间间隔触发出队线程,出队线程判断抖动缓存指针队列队头的数据包是否应该在当前触发时刻出队,如果是,则将该数据包出队。 [0006] 2, the jitter buffer pointer queue dequeue thread timer to a time interval trigger dequeue thread, the thread determines whether the jitter buffer dequeue pointer queue HOL packet should be dequeued in the current trigger time, if so, the packet from the team.

[0007] 3、根据抖动缓存指针队列中的队尾数据包和队头数据包时戳值之差与当前抖动缓存深度的大小关系,以及根据数据包在抖动缓存指针队列中的缓存时间与该抖动缓存指针队列缓存数据包的最小延时量之间的关系,增大或缩小当前抖动缓存深度的操作。 [0007] 3, the jitter buffer pointer queue when the team end of the packet and the head of line packet the difference between time stamp values ​​with the current jitter according to the magnitude relation cache depth, and according to a packet buffer time in the jitter buffer pointer queue in the relationship between the minimum amount of delay jitter buffer pointer queue the packet buffer, increase or decrease the operating current jitter buffer depth.

[0008] 为了保证网络发生抖动导致带宽很低时,不会出现丢包,从而保证直播的流畅性。 [0008] In order to ensure that the network bandwidth is low resulting in the occurrence of jitter, packet loss does not occur, so as to ensure fluency live. 目前采用的方案是将主播上传码率设置为一个较低的水平。 The program is currently used to anchor upload rate is set to a low level. 较低的码率会导致直播效果较差,例如视频画面模糊,语音不清等情况。 The lower rate will result in poor live effects such as blurry video, voice clear and so on.

发明内容 SUMMARY

[0009] 本发明实施例提供了一种直播控制方法,及主播设备,用于在保证直播的流畅性的前提下,提高直播效果。 Embodiment [0009] The present invention provides a method of controlling a live, and anchor means for the premise to ensure smooth live, live improving effect.

[0010] 一种直播控制方法,包括: [0010] A broadcast control method comprising:

[0011] 采集直播数据并编码发送给服务器; [0011] Live collected and coded data to the server;

[0012] 在发送编码后的直播数据的过程中,获取直播数据的传输状况,并依据所述直播数据的传输状况确定当前的可用码率; [0012] In the process of transmitting the encoded broadcast data, the broadcast data acquired transmission condition, and determines the current transmission status based on the available bit rate of the broadcast data;

[0013] 依据所述可用码率对直播数据进行编码并发送给服务器。 [0013] The server sends the encoded broadcast data according to the available bit rate.

[0014] 一种主播设备,包括:[0015] 采集单元,用于采集直播数据; [0014] An anchor device, comprising: [0015] acquiring unit for acquiring broadcast data;

[0016] 编码单元,用于对所述采集单元采集的直播数据编码;依据码率确定单元确定的可用码率对直播数据进行编码; [0016] encoding unit for encoding the data collection unit to collect the broadcast; encoding based on the live data rate determination unit determines the available bit rate;

[0017] 发送单元,用于将所述编码单元编码得到的直播数据发送给服务器; [0017] The transmitting unit for transmitting the live data obtained by encoding unit to a server;

[0018] 传输获取单元,用于在所述发送单元发送编码后的直播数据的过程中,获取直播数据的传输状况; [0018] obtaining a transmission unit for transmitting said broadcast data during the coding unit sends the acquired transmission condition of live data;

[0019] 码率确定单元,用于依据所述传输获取单元获取的直播数据的传输状况确定当前的可用码率。 [0019] The rate determining means for acquiring transmission according to the transmission status obtaining unit broadcast data to determine the current rate available.

[0020] 从以上技术方案可以看出,本发明实施例具有以下优点:将直播数据编码发送给服务器过程中,获取直播数据的传输状况,并确定当前的可用码率,再使用当前的可用码率对直播数据进行编码,这样可以保证直播数据传输的流畅,还能够在直播过程中获得与可能不断变化的网络环境相适应的码率,从而能够以较高的码率实现直播,获得较好的直播效果。 [0020] As can be seen from the foregoing technical solutions, embodiments of the present invention has the following advantages: transmitting broadcast data to the server during the encoding, transmission condition acquired live data, and determines the current rate available, the code reuse currently available live data is encoded rate, which can ensure the smooth live data transmission rate can also be obtained with changing network environment may be adapted during a broadcast, the broadcast can be realized at a higher rate, to obtain better live effect.

附图说明 BRIEF DESCRIPTION

[0021] 为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。 [0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings briefly described as required for use in the embodiments. Apparently, the drawings in the following description are only some embodiments of the present invention. embodiment, those of ordinary skill in the art is concerned, without any creative effort, and may also obtain other drawings based on these drawings.

[0022] 图1为本发明实施例方法流程示意图; [0022] FIG. 1 is a schematic process according to an embodiment of the present invention;

[0023] 图2为本发明实施例方法流程示意图; [0023] FIG. 2 is a schematic process according to an embodiment of the present invention;

[0024] 图3为本发明实施例主播设备结构示意图; [0024] FIG. 3 is a schematic structural embodiment of anchor apparatus embodiment of the invention;

[0025] 图4为本发明实施例主播设备结构示意图; [0025] FIG. 4 is a schematic structural embodiment of anchor apparatus embodiment of the invention;

[0026] 图5为本发明实施例终端结构示意图。 [0026] FIG. 5 is a schematic configuration example of the terminal embodiment of the present invention.

具体实施方式 detailed description

[0027] 为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。 [0027] To make the objectives, technical solutions, and advantages of the present invention will become apparent in conjunction with the accompanying drawings below of the present invention will be further described in detail, obviously, the described embodiments are merely part of embodiments of the invention, rather than all embodiment. 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0028] 本发明实施例提供了一种直播控制方法,如图1所示,包括: [0028] The embodiments of the present invention provides a method of controlling a live, shown in Figure 1, comprising:

[0029] 101:采集直播数据并编码发送给服务器; [0029] 101: broadcast data collected and transmitted to the encoding server;

[0030] 以上采集直播数据并编码发送给服务器中,在主播终端首次开机的时候采用何种码率进行编码本发明实施例可以不予限制,这是由于本发明实施例所采用的技术方案会对码率进行调整,而不是采用固定码率。 [0030] Live or more collected data is sent to the server and encoding, using the code rate which can not be encoded with an embodiment of the present invention in a terminal first anchor boot time, due to the technical solutions of embodiments of the present invention will be employed for rate adjustments, rather than a fixed rate. 不过,在此处如果采用与当前较为适配的码率相差很大的码率进行编码则效果会差于首次采用与当前较为适配的码率相差较小的码率进行编码,因此本发明实施例提供了如下的优选实现方案,但是需要说明的是以下方案并不是本发明实施例的唯一实现方式,其仅是优选实现方式的举例,不应理解为对本发明实施例的唯一性限定,具体如下:可选地,上述采集直播数据并编码发送给服务器包括:采集直播数据,使用默认码率或者前次使用的码率对上述直播数据进行编码,然后将编码后的直播数据发送给服务器。 However, where if more adapted to the current bit rate encoding rate largely different, the effect will be the first time difference to a current difference between the relatively small rate adaptation bit rate encoding, the present invention is therefore provides the following preferred embodiments of implementations, it should be noted that the following embodiment is not the only implementation of this embodiment of the present invention, which are merely illustrative of the preferred implementation, and should not be construed as the only embodiment of the exemplary embodiment define the invention, as follows: optionally, the collected data and encoded broadcast sent to the server comprising: a broadcast data collection, the default rate or code rate used for the above last live data is encoded and the encoded broadcast data to the server .

[0031] 102:在发送编码后的直播数据的过程中,获取直播数据的传输状况,并依据上述直播数据的传输状况确定当前的可用码率; [0031] 102: The sending process after the encoded broadcast data, broadcast data acquired transmission condition, and determines the current transmission status based on the available bit rate the live data;

[0032] 本实施例中,获取的是发送编码后的直播数据的传输状况,因此该传输状况是主播设备的上行数据传输状况,本步骤可以确定可用的码率来指导后续直播数据的编码。 [0032] In this embodiment, the acquired transmission condition of the transmission broadcast data encoded, so that the transmission condition is a condition of the anchor uplink data transmission device, the present step may be used to determine the rate directs the encoded data of the subsequent broadcast. 由于主播设备的上行数据传输状况是可能变化的,因此当前确定的可用码率可能并不与后续一段时间的上行数据传输状况所匹配,可能当前确定的可用码率太高,也可能太低,针对这种情况本发明实施例给出了如下解决方案,具体如下:以预定时间为周期执行:上述依据上述直播数据的传输状况确定当前的可用码率。 Since the uplink data transmission are condition anchor device may vary, and therefore the currently determined available rate may not match the uplink data transmission condition subsequent period of time, may be used to determine the current rate is too high, it may be too low, for this embodiment of the present invention shows the following solutions, as follows: for the predetermined time period to perform: determining a current above said transmission condition based on the available bit rate of the live data.

[0033] 以上实施例中每个周期的时间间隔,可用预先设定采用配置的方式配置到设备的执行逻辑中,具体时间间隔采用的值,本领域技术人员可以依据具体的需要和网络状况进行自由设定,该时间间隔设置得越短可以确定更为准确的可用码率与当前网络状态所适配,该时间间隔设置得越长则会占用越少的资源用于进行可用码率的确定,本领域技术人员可以依据需要进行平衡性设定,因此本发明实施例可以不予限定。 Examples of each cycle time interval of [0033] the above embodiment, the configuration using the available preset arranged to perform a logical device, the value of the specific time interval employed, the skilled artisan can be made according to specific needs and network conditions set free, the shorter the time interval may be determined more accurately with the available bit rate adaptation of the current network state, the longer the time interval will be provided fewer resources for determining the occupancy rate of the available skilled in the art can balance settings according to the needs, therefore embodiments of the invention can not be defined.

[0034] 本发明实施例中的传输状态可以是表示当前直播数据传输的质量好坏的任意技术指标,本领域技术人员可以理解的是表示当前直播数据传输的质量好坏的技术指标有很多,在本发明实施例中,可以由传输状态直接确定可用码率,也可以依据传输状态获得其它中间量并依据中间量来确定可用码率,以下给出了其中的一个实现方式的举例,具体如下:可选地,上述依据上述直播数据的传输状况确定当前的可用码率包括: [0034] The transmission state in the embodiment of the present invention is a good or bad quality of the current live data transmission indicators any technique, those skilled in the art will be appreciated is a good or bad quality specifications have many live current data transmission, in an embodiment of the present invention may be determined by the transmission state directly available bit rate, may also be obtained based on the amount of other intermediate transmission state and determine the amount of available code rate based on the intermediate are given below in which examples of one implementation, as follows : optionally, the available bit rate includes determining a current transmission status based on the live data:

[0035] 依据上述直播数据的传输状况确定当前可用带宽,依据当前可用带宽确定可用码率。 [0035] determined based on the currently available bandwidth of said transmission condition of the live data, based on the currently available bandwidth to determine the available bit rate.

[0036] 在以上实施例中,采用的是由传输状态确定可用带宽作为中间量的方式,实际上对应不同的传输状态采用不同的中间量也是可以实现的,因此先确定可用带宽再依据可用带宽来确定可用码率的实现方案不应理解为对本发明实施例的唯一性限定。 [0036] In the above embodiments, use was made of the available bandwidth of the transmission status determination mode as an intermediate amount, in fact, correspond to different intermediate transmission state using different amounts also can be achieved, thus first determine the available bandwidth and then based on the available bandwidth to determine the available bit rate should not be construed as the only implementation of limiting embodiment of the present invention.

[0037] 在本发明实施例中,会调整可用码率,本发明实施例还给出了具体调整的步骤,如下:可选地,上述依据上述直播数据的传输状况确定当前的可用码率包括:若上述直播数据的传输状况差于第一预定标准,则调整可用码率到当前使用码率以下;若上述直播数据的传输状况好于第二预定标准,则调整可用码率到当前使用码率之上。 [0037] In an embodiment of the present invention, may be used to adjust the code rate, the step also gives specific embodiment of the embodiment of the present invention to adjust, as follows: Optionally, the available bit rate includes determining a current transmission status based on the live data : If the condition of the transmission data is inferior to a first predetermined broadcast criterion, adjusting the available bit rate to the bit rate currently being used; if the transmission condition of data is better than the second predetermined broadcast criterion, adjusting to the current use of the available bit rate code rate above.

[0038] 若在本发明实施例中,以预定时间为周期执行:上述依据上述直播数据的传输状况确定当前的可用码率。 [0038] If the embodiment according to the present invention, is performed in a predetermined period of time: the above-identified available bit rate according to the above current situation of the live transmission of data. 那么,以上调整的步骤将也是以预定的周期执行的。 Then, the above step is adjusted to a predetermined cycle execution. 因此,直播数据发送的过程中,主播设备编码所使用的码率将会动态的变化,并与当前上行直播数据传输的状态进行匹配,既能保证直播数据能够流畅传输,又能获得较高的码率达到较好的直播效果。 Thus, the process of transmitting broadcast data, the dynamic rate changes will be used to encode anchor devices, and matched to the current state of the uplink transmission data broadcast, the data broadcast can ensure smooth transfer is possible, but also to obtain higher rate to achieve better results live.

[0039] 在本发明实施例中,无论是周期性执行获取可用码率还是通过集中式的一次性执行获得可用码率,均可用有一定的标准来确定当前码率是否较优,本发明实施例给出了如下方案如下:可选地,上述调整可用码率到当前使用码率之上包括: [0039] In an embodiment of the present invention, whether it is performed periodically for available bit rate or available bit rate obtained by the centralized performed once, there are available certain criteria to determine whether the current code rate is excellent, embodiments of the present invention Example gives the following scheme is as follows: Alternatively, the adjustment to the current use of the available bit rate on the code rate comprises:

[0040] 提高当前可用码率,使可用码率达到发生网络抖动前的最高码率。 [0040] The increase rate currently available, so that the available bit rate to the highest rate before occurrence of the network jitter.

[0041] 以上实施例给出的是以网络抖动的临界为标准,在这个标准下获得最高的码率作为优选方案,实际上既可用设定与这个最高码率低预定值作为标准,也可以采用其他标准来确定优选的可用码率,对于采用何种标准来确定优选的可用码率,以上举例仅是一个优选的方案,不应理解为对本发明实施例的唯一性限定。 [0041] The examples given above are critical to the standard network jitter, highest code rate as a standard in this preferred embodiment, in fact, can be set with the highest code rate and the predetermined value as a standard, may be use other criteria to determine the preferred rate available, as to what criteria used to determine a preferred rate available, the above example is merely one preferred embodiment, it should not be construed as the only embodiment of the exemplary embodiment define the invention.

[0042] 本发明实施例中的传输状态可以是表示当前直播数据传输的质量好坏的任意技术指标,本领域技术人员可以理解的是表示当前直播数据传输的质量好坏的技术指标有很多,以下本发明实施例给出了其中一个优选的实现方案如下:可选地,上述获取上述直播数据的传输状况包括:获取上述直播数据在传输过程中的丢包率。 [0042] The transmission state in the embodiment of the present invention is a good or bad quality of the current live data transmission indicators any technique, those skilled in the art will be appreciated is a good or bad quality specifications have many live current data transmission, examples are given in which a preferred implementation of the present invention is the following: Alternatively, the above-described transmission condition acquires the broadcast data comprises: obtaining a packet loss rate of the broadcast data transmission process.

[0043] 在以上实施例中,采用丢包率来表示当前直播数据传输的质量好坏,丢包率可以是服务器主动发送的,由主播设备被动接收;丢包率也可以是由主播设备主动进行统计的对此本发明实施例不予限定。 [0043] In the above embodiment, the use of the packet loss rate indicates the current live data transmission quality is good or bad, packet loss rate may be actively sent by the server, is received by the passive anchor apparatus; packet loss rate by the anchor device may be active the statistics of this embodiment of the present invention is not limited thereto.

[0044] 103:依据上述可用码率对直播数据进行编码并发送给服务器。 [0044] 103: encoding server sends broadcast data rate based on said available.

[0045] 本发明实施例,将直播数据编码发送给服务器过程中,获取直播数据的传输状况,并确定当前的可用码率,再使用当前的可用码率对直播数据进行编码,这样可以保证直播数据传输的流畅,还能够在直播过程中获得与可能不断变化的网络环境相适应的码率,从而能够以较高的码率实现直播,获得较好的直播效果。 [0045] The embodiments of the present invention, the server transmits broadcast data to the encoding process, the broadcast data acquired transmission condition, and determines the current rate available, then use the available bit rate of the current live data is encoded, it can guarantee Air smooth data transfer, can also be obtained during the live and possibly changing rate for the network environment, and can be realized at a higher rate live, live obtain better results.

[0046] 以下实施例将以视频直播对本发明实施例的方案进行更详细的说明。 [0046] The following embodiments will be live video Example embodiments of the present invention will be described in more detail. 本发明实施例提供了基于主播设备的上行带宽调整码率的方案,可以依据主播设备上行带宽的变化自动调整视频码率的方法。 Embodiment of the present invention provides a method of rate based on the uplink bandwidth adjustment scheme anchor device can be automatically adjusted according to the change of the video bit rate anchor device upstream bandwidth. 当视频服务器发现主播上传视频出现丢包时,将该丢包信息反馈给主播设备的客户端,主播设备的客户端根据丢包的情况来计算当前上行网络带宽,然后通知客户端编码模块按照与当前上行网络带宽匹配的码率进行编码,当一段时间没有出现丢包后,再慢慢切换回高码率的视频流。 When the video server finds anchor upload a video packet loss, packet loss information is fed back to the anchor client device, the client device calculates the current anchor uplink bandwidth according to the network packet loss, and then notifies the client in accordance with the coding module network bandwidth in the current uplink rate matching encoded, a period of time when no packet loss occurs, and then switch back slowly high rate video stream.

[0047] 由于本发明实施例所称的直播是指广义上的各种实时性的数据传输,传输的数据可以是音频数据、视频流等。 [0047] Since the embodiment of the present invention refers to live data is referred embodiment the various real-time data transmission, the transmission can be broadly is audio data, video streaming. 实时性的数据传输可用是VOIP (Voice over InternetProtocol,互联网协议电话),视频等各种应用环境。 Real-time data transmission available is a variety of applications VOIP (Voice over InternetProtocol, Internet protocol telephony), video environment. 本实施例以视频传输作为举例不应理解为对本发明实施例所称的直播数据的唯一性限定。 In this embodiment, the video transmission by way of example should not be construed as the only embodiment of the data defining broadcast referred embodiment of the present invention.

[0048] 201:主播设备采集直播数据,编码并发送给视频服务器,视频服务器转发直播数据给用户设备。 [0048] 201: anchor device to capture live data, and sends the encoded video server, a video server forwards the broadcast data to the user equipment.

[0049] 202:视频服务器发现主播设备上传视频出现丢包时,对丢包数据进行分析得到丢包率,然后整理后将丢包率发送给主播设备的客户端。 [0049] 202: the video server upload video equipment found anchor packet loss, packet loss data obtained by analyzing the packet loss rate and packet loss rate after finishing equipment sent to the anchor client.

[0050] 203:主播设备的客户端对视频服务器上报的丢包数据进行计算分析,确定当前上行可用的带宽。 [0050] 203: anchor client device to the video server data packet loss reported by the calculation and analysis, to determine the current uplink bandwidth is available.

[0051] 204:主播设备的客户端通知其编码模块,调整视频编码的码率到步骤203所计算到的可用带宽。 [0051] 204: The client apparatus notifies the anchor encoding module, to adjust the video encoding rate calculated in step 203 to the available bandwidth.

[0052] 205:若确定当前码率传输效果较好,例如:主播设备的客户端一段时间后没有收到视频服务器反馈有丢包数据或者丢包率低于预定值。 [0052] 205: anchor client device does not receive the rear end of a period of the video data server feedback packet loss or packet loss rate is below a predetermined value: if the current transmission rate is better, for example, is determined.

[0053] 206:主播设备的客户端通知其编码模块,调高视频编码的码率。 [0053] 206: The client apparatus notifies the anchor block encoding, the video encoding bit rate increase.

[0054] 上述步骤205和206将会重复执行,甚至周期性重复执行,直到将视频码率调整到网络抖动前的最高码率。 [0054] The above-described steps 205 and 206 will be repeatedly performed, even repeated periodically until the video bit rate is adjusted to the maximum bit rate before the network jitter.

[0055] 本发明实施例基于主播设备的上行带宽调整码率具有如下效果:1,抗网络抖动,即使网络状况很差的状况下,仍然能让用户体验到流畅的视频。 [0055] Example embodiments of the present invention has an effect based on the uplink bandwidth adjustment apparatus anchor rate: 1, anti-network jitter, even under conditions of poor network conditions, still allows users to experience smooth video. 2,动态调整码率,保证在网络质量较好的状况下,能让用户体验到高质量的视频。 2, the dynamic bit rate adjustment, to ensure the quality of the network in good condition, allowing users to experience high-quality video.

[0056] 本发明实施例还提供了一种主播设备,如图3所示,包括: [0056] Embodiments of the present invention further provides an anchor device shown in Figure 3, comprising:

[0057] 采集单元301,用于采集直播数据; [0057] The acquisition unit 301 for acquiring the live data;

[0058] 编码单元302,用于对上述采集单元301采集的直播数据编码;依据码率确定单元305确定的可用码率对直播数据进行编码; [0058] 302, encoding for the above-described broadcast data acquisition unit 301 collecting coding units; encoding based on the live data rate determination unit 305 determines the available bit rate;

[0059] 发送单元303,用于将上述编码单元302编码得到的直播数据发送给服务器; [0059] The sending unit 303, configured to broadcast the encoded data obtained by encoding unit 302 to the server;

[0060] 传输获取单元304,用于在上述发送单元303发送编码后的直播数据的过程中,获取直播数据的传输状况; [0060] obtaining a transmission unit 304 for the encoding process after the transmission unit 303 transmits broadcast data, the broadcast data acquired transmission conditions;

[0061] 码率确定单元305,用于依据上述传输获取单元304获取的直播数据的传输状况确定当前的可用码率。 [0061] The rate determining unit 305 for determining the current status of the transmission based on the available transmission rate acquiring unit 304 acquires the broadcast data.

[0062] 本发明实施例,将直播数据编码发送给服务器过程中,获取直播数据的传输状况,并确定当前的可用码率,再使用当前的可用码率对直播数据进行编码,这样可以保证直播数据传输的流畅,还能够在直播过程中获得与可能不断变化的网络环境相适应的码率,从而能够以较高的码率实现直播,获得较好的直播效果。 [0062] Example embodiments of the present invention, the server transmits broadcast data to the encoding process, the broadcast data acquired transmission condition, and determines the current rate available, then use the available bit rate of the current live data is encoded, it can guarantee Air smooth data transfer, can also be obtained during the live and possibly changing rate for the network environment, and can be realized at a higher rate live, live obtain better results.

[0063] 本实施例中,获取的是发送编码后的直播数据的传输状况,因此该传输状况是主播设备的上行数据传输状况,本步骤可以确定可用的码率来指导后续直播数据的编码。 [0063] In this embodiment, the acquired transmission condition of live data transmitted encoded, so that the transmission condition is a condition of the anchor uplink data transmission device, the present step may be used to determine the rate directs the encoded data of the subsequent broadcast. 由于主播设备的上行数据传输状况是可能变化的,因此当前确定的可用码率可能并不与后续一段时间的上行数据传输状况所匹配,可能当前确定的可用码率太高,也可能太低,针对这种情况本发明实施例给出了如下解决方案,具体如下:可选地,上述码率确定单元305,用于以预定时间为周期执行依据上述直播数据的传输状况确定当前的可用码率。 Since the uplink data transmission are condition anchor device may vary, and therefore the currently determined available rate may not match the uplink data transmission condition subsequent period of time, may be used to determine the current rate is too high, it may be too low, for this embodiment of the present invention shows the following solutions, as follows: optionally, the coding rate determination unit 305, for a predetermined period of time is performed to determine the current status of the available bit rate based on the broadcast data transmission .

[0064] 以上实施例中每个周期的时间间隔,可用预先设定采用配置的方式配置到设备的执行逻辑中,具体时间间隔采用的值,本领域技术人员可以依据具体的需要和网络状况进行自由设定,该时间间隔设置得越短可以确定更为准确的可用码率与当前网络状态所适配,该时间间隔设置得越长则会占用越少的资源用于进行可用码率的确定,本领域技术人员可以依据需要进行平衡性设定,因此本发明实施例可以不予限定。 Examples of each cycle time interval of [0064] the above embodiment, the configuration using the available preset arranged to perform a logical device, the value of the specific time interval employed, the skilled artisan can be made according to specific needs and network conditions set free, the shorter the time interval may be determined more accurately with the available bit rate adaptation of the current network state, the longer the time interval will be provided fewer resources for determining the occupancy rate of the available skilled in the art can balance settings according to the needs, therefore embodiments of the invention can not be defined.

[0065] 以上采集直播数据并编码发送给服务器中,在主播终端首次开机的时候采用何种码率进行编码本发明实施例可以不予限制,这是由于本发明实施例所采用的技术方案会对码率进行调整,而不是采用固定码率。 [0065] Live or more collected data is sent to the server and encoding, using the code rate which can not be encoded with an embodiment of the present invention in a terminal first anchor boot time, due to the technical solutions of embodiments of the present invention will be employed for rate adjustments, rather than a fixed rate. 不过,在此处如果采用与当前较为适配的码率相差很大的码率进行编码则效果会差于首次采用与当前较为适配的码率相差较小的码率进行编码,因此本发明实施例提供了如下的优选实现方案,但是需要说明的是以下方案并不是本发明实施例的唯一实现方式,其仅是优选实现方式的举例,不应理解为对本发明实施例的唯一性限定,具体如下:可选地,上述编码单元302,用于对上述采集单元301采集的直播数据编码包括:使用默认码率或者前次使用的码率对上述直播数据进行编码。 However, where if more adapted to the current bit rate encoding rate largely different, the effect will be the first time difference to a current difference between the relatively small rate adaptation bit rate encoding, the present invention is therefore provides the following preferred embodiments of implementations, it should be noted that the following embodiment is not the only implementation of this embodiment of the present invention, which are merely illustrative of the preferred implementation, and should not be construed as the only embodiment of the exemplary embodiment define the invention, as follows: Alternatively, the encoding unit 302 for encoding the live data collected by the above-described acquisition unit 301 comprises: the default rate or code rate used for the previous coding the broadcast data.

[0066] 本发明实施例中的传输状态可以是表示当前直播数据传输的质量好坏的任意技术指标,本领域技术人员可以理解的是表示当前直播数据传输的质量好坏的技术指标有很多,在本发明实施例中,可以由传输状态直接确定可用码率,也可以依据传输状态获得其它中间量并依据中间量来确定可用码率,以下给出了其中的一个实现方式的举例,具体如下:可选地,上述码率确定单元305,用于依据上述直播数据的传输状况确定当前可用带宽,依据当前可用带宽确定可用码率。 Transmission state in the embodiment of the invention is a good or bad quality may be the current live transmission of any data specifications, those skilled in the art will be appreciated is a good or bad quality of the broadcast data transmission specifications, there are many [0066] This current, in an embodiment of the present invention may be determined by the transmission state directly available bit rate, may also be obtained based on the amount of other intermediate transmission state and determine the amount of available code rate based on the intermediate are given below in which examples of one implementation, as follows : optionally, the coding rate determination unit 305, for determining the currently available bandwidth based on said transmission condition data broadcast, based on the currently available bandwidth to determine the available bit rate.

[0067] 在以上实施例中,采用的是由传输状态确定可用带宽作为中间量的方式,实际上对应不同的传输状态采用不同的中间量也是可以实现的,因此先确定可用带宽再依据可用带宽来确定可用码率的实现方案不应理解为对本发明实施例的唯一性限定。 [0067] In the above embodiments, use was made of the available bandwidth of the transmission status determination mode as an intermediate amount, in fact, correspond to different intermediate transmission state using different amounts also can be achieved, thus first determine the available bandwidth and then based on the available bandwidth to determine the available bit rate should not be construed as the only implementation of limiting embodiment of the present invention.

[0068] 在本发明实施例中,会调整可用码率,本发明实施例还给出了具体调整的步骤,如下:可选地,上述码率确定单元305,用于若上述直播数据的传输状况差于第一预定标准,则调整可用码率到当前使用码率以下;若上述直播数据的传输状况好于第二预定标准,则调整可用码率到当前使用码率之上。 [0068] In an embodiment of the present invention, may be used to adjust the code rate, embodiments of the present invention also gives specific adjustment steps, as follows: Optionally, the rate determining unit 305, if the above-described transmission for live data a first predetermined criterion in poor condition, adjusting the available bit rate to the bit rate currently being used; if good transmission condition of the above-described broadcast data to a second predetermined criterion, adjusting the available bit rate to the current rate used above.

[0069] 若在本发明实施例中,以预定时间为周期执行:上述依据上述直播数据的传输状况确定当前的可用码率。 [0069] If the embodiment according to the present invention, is performed in a predetermined period of time: the above-identified available bit rate according to the above current situation of the live transmission of data. 那么,以上调整的步骤将也是以预定的周期执行的。 Then, the above step is adjusted to a predetermined cycle execution. 因此,直播数据发送的过程中,主播设备编码所使用的码率将会动态的变化,并与当前上行直播数据传输的状态进行匹配,既能保证直播数据能够流畅传输,又能获得较高的码率达到较好的直播效果。 Thus, the process of transmitting broadcast data, the dynamic rate changes will be used to encode anchor devices, and matched to the current state of the uplink transmission data broadcast, the data broadcast can ensure smooth transfer is possible, but also to obtain higher rate to achieve better results live.

[0070] 在本发明实施例中,无论是周期性执行获取可用码率还是通过集中式的一次性执行获得可用码率,均可用有一定的标准来确定当前码率是否较优,本发明实施例给出了如下方案如下:可选地,上述码率确定单元305,用于调整可用码率到当前使用码率之上包括:提高当前可用码率,使可用码率达到发生网络抖动前的最高码率。 [0070] In an embodiment of the present invention, whether it is performed periodically for available bit rate or available bit rate obtained by the centralized performed once, there are available certain criteria to determine whether the current code rate is excellent, embodiments of the present invention the following examples are given program are as follows: optionally, the rate determining unit 305, for adjusting the rate to the available bit rate over the currently used include: increase rate currently available, so that the available bit rate network jitter occurs before reaching the highest rate.

[0071] 以上实施例给出的是以网络抖动的临界为标准,在这个标准下获得最高的码率作为优选方案,实际上既可用设定与这个最高码率低预定值作为标准,也可以采用其他标准来确定优选的可用码率,对于采用何种标准来确定优选的可用码率,以上举例仅是一个优选的方案,不应理解为对本发明实施例的唯一性限定。 [0071] The examples given above are critical to the standard network jitter, highest code rate as a standard in this preferred embodiment, in fact, can be set with the highest code rate and the predetermined value as a standard, may be use other criteria to determine the preferred rate available, as to what criteria used to determine a preferred rate available, the above example is merely one preferred embodiment, it should not be construed as the only embodiment of the exemplary embodiment define the invention.

[0072] 本发明实施例中的传输状态可以是表示当前直播数据传输的质量好坏的任意技术指标,本领域技术人员可以理解的是表示当前直播数据传输的质量好坏的技术指标有很多,以下本发明实施例给出了其中一个优选的实现方案如下:可选地,上述传输获取单元304,用于获取上述直播数据在传输过程中的丢包率。 [0072] The transmission state in the embodiment of the present invention is a good or bad quality of the current live data transmission indicators any technique, those skilled in the art will be appreciated is a good or bad quality specifications have many live current data transmission, examples are given in which a preferred implementation of the present invention is the following: optionally, said transmission acquiring unit 304, configured to obtain the packet loss rate of the broadcast data transmission process.

[0073] 在以上实施例中,采用丢包率来表示当前直播数据传输的质量好坏,丢包率可以是服务器主动发送的,由主播设备被动接收;丢包率也可以是由主播设备主动进行统计的对此本发明实施例不予限定。 [0073] In the above embodiment, the use of the packet loss rate indicates the current live data transmission quality is good or bad, packet loss rate may be actively sent by the server, is received by the passive anchor apparatus; packet loss rate by the anchor device may be active the statistics of this embodiment of the present invention is not limited thereto.

[0074] 本发明实施例还提供了另一种主播设备,如图4所示,包括:接收器401、发射器402、处理器403以及存储器404 ; [0074] Embodiments of the present invention also provides another anchor device shown in Figure 4, comprising: a receiver 401, a transmitter 402, a processor 403 and a memory 404;

[0075] 其中,上述处理器403,用于控制采集直播数据并编码发送给服务器;在发送编码后的直播数据的过程中,获取直播数据的传输状况,并依据上述直播数据的传输状况确定当前的可用码率;依据上述可用码率对直播数据进行编码并发送给服务器。 [0075] wherein the processor 403 for controlling data capture and encoding broadcast transmitted to the server; the process after transmitting the encoded broadcast data, the broadcast data acquired transmission condition, and determines the current transmission status based on the live data available bit rate; encoding server sends broadcast data based on said available bit rate.

[0076] 本发明实施例,将直播数据编码发送给服务器过程中,获取直播数据的传输状况,并确定当前的可用码率,再使用当前的可用码率对直播数据进行编码,这样可以保证直播数据传输的流畅,还能够在直播过程中获得与可能不断变化的网络环境相适应的码率,从而能够以较高的码率实现直播,获得较好的直播效果。 [0076] Example embodiments of the present invention, the server transmits broadcast data to the encoding process, the broadcast data acquired transmission condition, and determines the current rate available, then use the available bit rate of the current live data is encoded, it can guarantee Air smooth data transfer, can also be obtained during the live and possibly changing rate for the network environment, and can be realized at a higher rate live, live obtain better results.

[0077] 本实施例中,获取的是发送编码后的直播数据的传输状况,因此该传输状况是主播设备的上行数据传输状况,本步骤可以确定可用的码率来指导后续直播数据的编码。 [0077] In this embodiment, the acquired transmission condition of the transmission broadcast data encoded, so that the transmission condition is a condition of the anchor uplink data transmission device, the present step may be used to determine the rate directs the encoded data of the subsequent broadcast. 由于主播设备的上行数据传输状况是可能变化的,因此当前确定的可用码率可能并不与后续一段时间的上行数据传输状况所匹配,可能当前确定的可用码率太高,也可能太低,针对这种情况本发明实施例给出了如下解决方案,具体如下:可选地,上述处理器403,用于以预定时间为周期执行:上述依据上述直播数据的传输状况确定当前的可用码率。 Since the uplink data transmission are condition anchor device may vary, and therefore the currently determined available rate may not match the uplink data transmission condition subsequent period of time, may be used to determine the current rate is too high, it may be too low, Example embodiments of the present invention for this solution are given below, as follows: optionally, the processor 403, for a predetermined time period to perform: the above-identified available bit rate based on the current status of the broadcast data transmission .

[0078] 以上实施例中每个周期的时间间隔,可用预先设定采用配置的方式配置到设备的执行逻辑中,具体时间间隔采用的值,本领域技术人员可以依据具体的需要和网络状况进行自由设定,该时间间隔设置得越短可以确定更为准确的可用码率与当前网络状态所适配,该时间间隔设置得越长则会占用越少的资源用于进行可用码率的确定,本领域技术人员可以依据需要进行平衡性设定,因此本发明实施例可以不予限定。 Examples of each cycle time interval of [0078] the above embodiment, can be configured using a preset arranged to perform a logical device, the value of the specific time interval employed, the skilled artisan can be made according to specific needs and network conditions set free, the shorter the time interval may be determined more accurately with the available bit rate adaptation of the current network state, the longer the time interval will be provided fewer resources for determining the occupancy rate of the available skilled in the art can balance settings according to the needs, therefore embodiments of the invention can not be defined.

[0079] 以上采集直播数据并编码发送给服务器中,在主播终端首次开机的时候采用何种码率进行编码本发明实施例可以不予限制,这是由于本发明实施例所采用的技术方案会对码率进行调整,而不是采用固定码率。 [0079] Live or more collected data is sent to the server and encoding, using the code rate which can not be encoded with an embodiment of the present invention in a terminal first anchor boot time, due to the technical solutions of embodiments of the present invention will be employed for rate adjustments, rather than a fixed rate. 不过,在此处如果采用与当前较为适配的码率相差很大的码率进行编码则效果会差于首次采用与当前较为适配的码率相差较小的码率进行编码,因此本发明实施例提供了如下的优选实现方案,但是需要说明的是以下方案并不是本发明实施例的唯一实现方式,其仅是优选实现方式的举例,不应理解为对本发明实施例的唯一性限定,具体如下:可选地,上述处理器403,用于控制采集直播数据并编码发送给服务器包括:控制采集直播数据,使用默认码率或者前次使用的码率对上述直播数据进行编码,然后将编码后的直播数据发送给服务器。 However, where if more adapted to the current bit rate encoding rate largely different, the effect will be the first time difference to a current difference between the relatively small rate adaptation bit rate encoding, the present invention is therefore provides the following preferred embodiments of implementations, it should be noted that the following embodiment is not the only implementation of this embodiment of the present invention, which are merely illustrative of the preferred implementation, and should not be construed as the only embodiment of the exemplary embodiment define the invention, as follows: optionally, the processor 403, for controlling data capture and encode live sent to the server comprising: a broadcast data acquisition control, the default rate or code rate used for the above last live data is encoded, then live encoded data sent to the server.

[0080] 本发明实施例中的传输状态可以是表示当前直播数据传输的质量好坏的任意技术指标,本领域技术人员可以理解的是表示当前直播数据传输的质量好坏的技术指标有很多,在本发明实施例中,可以由传输状态直接确定可用码率,也可以依据传输状态获得其它中间量并依据中间量来确定可用码率,以下给出了其中的一个实现方式的举例,具体如下:可选地,上述处理器403,用于依据上述直播数据的传输状况确定当前的可用码率包括:依据上述直播数据的传输状况确定当前可用带宽,依据当前可用带宽确定可用码率。 [0080] The transmission state in the embodiment of the present invention is a good or bad quality of the current live data transmission indicators any technique, those skilled in the art will be appreciated is a good or bad quality specifications have many live current data transmission, in an embodiment of the present invention may be determined by the transmission state directly available bit rate, may also be obtained based on the amount of other intermediate transmission state and determine the amount of available code rate based on the intermediate are given below in which examples of one implementation, as follows : optionally, the processor 403, for determining transmission status based on the above-described broadcast data rate available current comprises: determining the currently available bandwidth based on the broadcast data transmission condition, based on the currently available bandwidth to determine the available bit rate.

[0081] 在以上实施例中,采用的是由传输状态确定可用带宽作为中间量的方式,实际上对应不同的传输状态采用不同的中间量也是可以实现的,因此先确定可用带宽再依据可用带宽来确定可用码率的实现方案不应理解为对本发明实施例的唯一性限定。 [0081] In the above embodiments, use was made of the available bandwidth of the transmission status determination mode as an intermediate amount, in fact, correspond to different intermediate transmission state using different amounts also can be achieved, thus first determine the available bandwidth and then based on the available bandwidth to determine the available bit rate should not be construed as the only implementation of limiting embodiment of the present invention.

[0082] 在本发明实施例中,会调整可用码率,本发明实施例还给出了具体调整的步骤,如下:可选地,上述处理器403,用于依据上述直播数据的传输状况确定当前的可用码率包括:若上述直播数据的传输状况差于第一预定标准,则调整可用码率到当前使用码率以下;若上述直播数据的传输状况好于第二预定标准,则调整可用码率到当前使用码率之上。 [0082] In an embodiment of the present invention, may be used to adjust the code rate, the step also gives specific embodiment of the embodiment of the present invention to adjust, as follows: Optionally, the processor 403, for determining transmission status based on the live data current available bit rate comprising: a transmission condition if the difference data is broadcast to a first predetermined criterion, adjusting the available bit rate to the bit rate currently being used; if the transmission condition of data is better than the second predetermined broadcast criterion, adjusting the available use rate above the current rate.

[0083] 若在本发明实施例中,以预定时间为周期执行:上述依据上述直播数据的传输状况确定当前的可用码率。 [0083] If the embodiment according to the present invention, is performed in a predetermined period of time: the above-identified available bit rate according to the above current situation of the live transmission of data. 那么,以上调整的步骤将也是以预定的周期执行的。 Then, the above step is adjusted to a predetermined cycle execution. 因此,直播数据发送的过程中,主播设备编码所使用的码率将会动态的变化,并与当前上行直播数据传输的状态进行匹配,既能保证直播数据能够流畅传输,又能获得较高的码率达到较好的直播效果。 Thus, the process of transmitting broadcast data, the dynamic rate changes will be used to encode anchor devices, and matched to the current state of the uplink transmission data broadcast, the data broadcast can ensure smooth transfer is possible, but also to obtain higher rate to achieve better results live.

[0084] 在本发明实施例中,无论是周期性执行获取可用码率还是通过集中式的一次性执行获得可用码率,均可用有一定的标准来确定当前码率是否较优,本发明实施例给出了如下方案如下:可选地,上述处理器403,用于调整可用码率到当前使用码率之上包括:提高当前可用码率,使可用码率达到发生网络抖动前的最高码率。 [0084] In an embodiment of the present invention, whether it is performed periodically for available bit rate or available bit rate obtained by the centralized performed once, there are available certain criteria to determine whether the current code rate is excellent, embodiments of the present invention the following examples are given program are as follows: optionally, the processor 403, for adjusting the rate to the available bit rate over the currently used include: increase rate currently available, so that the highest available rate code occurs before the network jitter rate.

[0085] 以上实施例给出的是以网络抖动的临界为标准,在这个标准下获得最高的码率作为优选方案,实际上既可用设定与这个最高码率低预定值作为标准,也可以采用其他标准来确定优选的可用码率,对于采用何种标准来确定优选的可用码率,以上举例仅是一个优选的方案,不应理解为对本发明实施例的唯一性限定。 [0085] The examples given above are critical to the standard network jitter, highest code rate as a standard in this preferred embodiment, in fact, can be set with the highest code rate and the predetermined value as a standard, may be use other criteria to determine the preferred rate available, as to what criteria used to determine a preferred rate available, the above example is merely one preferred embodiment, it should not be construed as the only embodiment of the exemplary embodiment define the invention.

[0086] 本发明实施例中的传输状态可以是表示当前直播数据传输的质量好坏的任意技术指标,本领域技术人员可以理解的是表示当前直播数据传输的质量好坏的技术指标有很多,以下本发明实施例给出了其中一个优选的实现方案如下:可选地,上述处理器403,用于获取上述直播数据的传输状况包括:获取上述直播数据在传输过程中的丢包率。 Transmission state in the embodiment of the invention is a good or bad quality may be the current live transmission of any data specifications, those skilled in the art will be appreciated is a good or bad quality of the broadcast data transmission specifications, there are many [0086] This current, examples are given in which a preferred implementation of the present invention is the following: optionally, the processor 403, configured to obtain the above-described transmission condition of broadcast data comprises: obtaining a packet loss rate of the broadcast data transmission process.

[0087] 在以上实施例中,采用丢包率来表示当前直播数据传输的质量好坏,丢包率可以是服务器主动发送的,由主播设备被动接收;丢包率也可以是由主播设备主动进行统计的对此本发明实施例不予限定。 [0087] In the above embodiment, the use of the packet loss rate indicates the current live data transmission quality is good or bad, packet loss rate may be actively sent by the server, is received by the passive anchor apparatus; packet loss rate by the anchor device may be active the statistics of this embodiment of the present invention is not limited thereto.

[0088] 本发明实施例还提供了一种终端,作为主播设备使用,如图5所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。 [0088] Embodiments of the present invention further provides a terminal device used as the anchor, shown in Figure 5, for convenience of description, only the parts related to the embodiment of the present invention, the technical details are not disclosed, please methods of the present invention with reference to embodiments. 该终端可以为包括手机、平板电脑、PDA (Personal Digital Assistant,个人数字助理)、P0S (Point of Sales,销售终端)、车载电脑等任意终端设备,以终端为手机为例: The terminal may include mobile phones, tablet PC, PDA (Personal Digital Assistant, personal digital assistants), P0S (Point of Sales, sales terminals), on-board computers and other equipment to any terminal to terminal is a mobile phone for example:

[0089] 图5示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。 [0089] FIG. 5 shows a block diagram of a partial structure of the mobile terminal provided by the embodiment of the present invention is related. 参考图5,手机包括:射频(Radio Frequency,RF)电路510、存储器520、输入单元530、显示单元540、传感器550、音频电路560、无线保真(wireless fidelity,WiFi)模块570、处理器580、以及电源590等部件。 Referring to FIG 5, the mobile phone comprising: a radio frequency (Radio Frequency, RF) circuit 510, a memory 520, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, wireless fidelity (wireless fidelity, WiFi) module 570, a processor 580 , and a power supply 590 and other components. 本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。 Those skilled in the art will appreciate, FIG. 5 shows the structure of a mobile phone do not limit the phone, may include more or fewer components than shown, or a combination of some of the components, or a different arrangement of components.

[0090] 下面结合图5对手机的各个构成部件进行具体的介绍: [0090] below with reference to FIG. 5 of the respective components of the mobile phone will be specifically described:

[0091] RF电路510可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器580处理;另外,将设计上行的数据发送给基站。 [0091] RF circuitry 510 may be used during a call or send and receive information, the receive and transmit signals, in particular, the base station receives the downstream information, to a processor 580 processing; Further, the design of uplink data to the base station. 通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier, LNA)、双工器等。 Typically, RF circuitry, including but not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low NoiseAmplifier, LNA), a duplexer. 此外,RF电路50还可以通过无线通信与网络和其他设备通信。 In addition, RF circuitry 50 may also communicate with the network and other devices by wireless communication. 上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication, GSM)、通用分组无线服务(General PacketRadio Service, GPRS)、码分多址(Code Division Multiple Access, CDMA)、宽带码分多址(Wideband Code Division Multiple Access, WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service, SMS)等。 The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication system (Global System of Mobile communication, GSM), general packet radio service (General PacketRadio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (wideband Code Division Multiple Access, WCDMA), long Term Evolution (long Term Evolution, LTE), e-mail, short message service (short messaging service, SMS) and so on.

[0092] 存储器520可用于存储软件程序以及模块,处理器580通过运行存储在存储器520的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。 [0092] The memory 520 may be used to store software programs and modules, by processor 580 running software programs and modules stored in the memory 520, to perform various functions of the mobile phone and data processing applications. 存储器520可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。 The memory 520 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one function of the desired application (such as a sound playback function, an image playback function, etc.); data storage area may store use the phone's data created (such as audio data, phone book, etc.) and so on. 此外,存储器520可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。 In addition, memory 520 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage devices, flash memory devices, or other volatile solid-state memory device.

[0093] 输入单元530可用于接收输入的数字或字符信息,以及产生与手机500的用户设置以及功能控制有关的键信号输入。 [0093] The input unit 530 may input for receiving number or character information, and generate the handset 500 user setting and function control key signal input related. 具体地,输入单元530可包括触控面板531以及其他输入设备532。 Specifically, the input unit 530 may include a touch panel 531 and other input devices 532. 触控面板531,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板531上或在触控面板531附近的操作),并根据预先设定的程式驱动相应的连接装置。 The touch panel 531, also referred to as a touch screen, the user may collect on or near the touch operation (such as a user finger, a pen or any other suitable object or accessory on the touch panel 531 or the touch panel 531 in the vicinity of operation), and drive the corresponding connection device in accordance with a preset program. 可选的,触控面板531可包括触摸检测装置和触摸控制器两个部分。 Alternatively, the touch panel 531 may include a touch detection device and a touch controller. 其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器580,并能接收处理器580发来的命令并加以执行。 The touch detecting means detects a user touch position, and the detection signal caused by the touch operation, the touch signal to the controller; a touch controller receives touch information from the touch detecting device, and converts it into contact coordinates, sending to processor 580, and can receive commands sent by the processor 580 and execute. 此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板531。 Further, using a variety of types of resistive, capacitive, infrared and surface acoustic wave touch panel 531 and the like to achieve. 除了触控面板531,输入单元530还可以包括其他输入设备532。 In addition to the touch panel 531, the input unit 530 may further include other input devices 532. 具体地,其他输入设备532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。 In particular, other input devices 532 may include, but is not limited to physical keyboard, function keys (such as volume control keys, key switches, etc.), a trackball, a mouse, a joystick, one or more.

[0094] 显示单元540可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。 [0094] The display unit 540 can display information input by the user or the various menus provided to the user information and the phone. 显示单元540可包括显示面板541,可选的,可以采用液晶显示器(Liquid CrystalDisplay, IXD)、有机发光二极管(Organic Light-Emitting Diode, 0LED)等形式来配置显示面板541。 The display unit 540 may include a display panel 541, optionally, may be a liquid crystal display (Liquid CrystalDisplay, IXD), an organic light emitting diode (Organic Light-Emitting Diode, 0LED) and the like to form a display panel 541. 进一步的,触控面板531可覆盖显示面板541,当触控面板531检测到在其上或附近的触摸操作后,传送给处理器580以确定触摸事件的类型,随后处理器580根据触摸事件的类型在显示面板541上提供相应的视觉输出。 Further, the touch panel 531 may cover the display panel 541, the touch panel 531 when the detected on or near the touch operation, to the processor 580 to determine the type of touch event, then processor 580 according to a touch event provide a corresponding type of visual output on the display panel 541. 虽然在图5中,触控面板531与显示面板541是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板531与显示面板541集成而实现手机的输入和输出功能。 Although in FIG. 5, the touch panel 531 and the display panel 541 as two separate components to achieve the input and output functions of a mobile phone, in some embodiments, may be a touch panel 531 and the display panel 541 and integrated achieve mobile input and output functions.

[0095] 手机500还可包括至少一种传感器550,比如光传感器、运动传感器以及其他传感器。 [0095] Mobile phone 500 may further include at least one sensor 550, such as an optical sensor, a motion sensor, and other sensors. 具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板541的亮度,接近传感器可在手机移动到耳边时,关闭显示面板541和/或背光。 Specifically, the optical sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of ambient light, the proximity sensor may be a mobile phone to the ear, close the display panel 541 and / or backlighting. 作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。 As a motion sensor, accelerometer sensor can detect magnitude in all directions (typically three axes) acceleration stationary can detect the magnitude and direction of gravity, it is used for identifying of a cell phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), related to vibration identification features (such as a pedometer, percussion) and the like; As for the other sensor may also be configured phone gyroscope, barometer, hygrometer, a thermometer, an infrared sensor, which is not repeat.

[0096] 音频电路560、扬声器561,传声器562可提供用户与手机之间的音频接口。 [0096] The audio circuitry 560, speaker 561, a microphone 562 provide an audio interface between a user and the phone. 音频电路560可将接收到的音频数据转换后的电信号,传输到扬声器561,由扬声器561转换为声音信号输出;另一方面,传声器562将收集的声音信号转换为电信号,由音频电路560接收后转换为音频数据,再将音频数据输出处理器580处理后,经RF电路510以发送给比如另一手机,或者将音频数据输出至存储器520以便进一步处理。 Electrical signal circuit 560 converts the audio data may be audio received, transmitted to a speaker 561, is converted by the speaker 561 outputs a sound signal; on the other hand, the microphone 562 converts the sound signals into electrical signals collected by the audio circuit 560 after receiving the data into audio, then the audio processor 580 process the data output via the RF circuit 510 to output the audio data to another such as mobile phones, or to the memory 520 for further processing.

[0097] WiFi属于短距离无线传输技术,手机通过WiFi模块570可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。 [0097] WiFi is a short-range wireless transmission technology, the mobile phone via WiFi module 570 can help users send and receive email, browse the web and access streaming media and so on, which provides wireless broadband Internet access for users. 虽然图5示出了WiFi模块570,但是可以理解的是,其并不属于手机500的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。 While FIG. 5 illustrates a WiFi module 570, it will be appreciated that it is not configured to be part of a mobile phone 500, and can be omitted without changing the essence of the invention in the ranges as needed.

[0098] 处理器580是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器520内的软件程序和/或模块,以及调用存储在存储器520内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。 [0098] processor 580 is the control center of a mobile phone, using various interfaces and circuits connecting the various portions of the entire mobile phone, by running or executing software programs stored in the memory 520 and / or modules and invoking stored in the memory 520 data, perform various phone functions and data processing, in order to monitor the overall mobile phone. 可选的,处理器580可包括一个或多个处理单元;优选的,处理器580可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。 Optionally, the processor 580 may include one or more processing units; Preferably, the processor 580 may integrate an application processor and a modem processor, wherein the application processor main processing operating system, user interface and applications , the modem processor mainly processes wireless communication. 可以理解的是,上述调制解调处理器也可以不集成到处理器580中。 It will be appreciated that the modem processor may not be integrated into the processor 580.

[0099] 手机500还包括给各个部件供电的电源590 (比如电池),优选的,电源可以通过电源管理系统与处理器580逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。 [0099] Mobile phone 500 further includes various components to the power supply 590 (such as a battery), preferably, the power source through the power management system 580 and the processor logically connected to the charging management implemented by the power management system, discharging, and power management and other functions.

[0100] 尽管未示出,手机500还可以包括摄像头、蓝牙模块等,在此不再赘述。 [0100] Although not shown, the mobile phone 500 may further include a camera, a Bluetooth module, etc., which are not repeated herein.

[0101] 在本发明实施例中,该终端所包括的处理器580还具有以下功能: [0101] In an embodiment of the present invention, the terminal includes a processor 580 also has the following features:

[0102] 其中,上述处理器580,用于控制采集直播数据并编码发送给服务器;在发送编码后的直播数据的过程中,获取直播数据的传输状况,并依据上述直播数据的传输状况确定当前的可用码率;依据上述可用码率对直播数据进行编码并发送给服务器。 [0102] wherein the processor 580 for controlling data capture and encoding broadcast transmitted to the server; the process after transmitting the encoded broadcast data, the broadcast data acquired transmission condition, and determines the current transmission status based on the above-described broadcast data available bit rate; encoding server sends broadcast data based on said available bit rate.

[0103] 本发明实施例,将直播数据编码发送给服务器过程中,获取直播数据的传输状况,并确定当前的可用码率,再使用当前的可用码率对直播数据进行编码,这样可以保证直播数据传输的流畅,还能够在直播过程中获得与可能不断变化的网络环境相适应的码率,从而能够以较高的码率实现直播,获得较好的直播效果。 [0103] Example embodiments of the present invention, the server transmits broadcast data to the encoding process, the broadcast data acquired transmission condition, and determines the current rate available, then use the available bit rate of the current live data is encoded, it can guarantee Air smooth data transfer, can also be obtained during the live and possibly changing rate for the network environment, and can be realized at a higher rate live, live obtain better results.

[0104] 本实施例中,获取的是发送编码后的直播数据的传输状况,因此该传输状况是主播设备的上行数据传输状况,本步骤可以确定可用的码率来指导后续直播数据的编码。 [0104] In this embodiment, the acquired transmission condition of the transmission broadcast data encoded, so that the transmission condition is a condition of the anchor uplink data transmission device, the present step may be used to determine the rate directs the encoded data of the subsequent broadcast. 由于主播设备的上行数据传输状况是可能变化的,因此当前确定的可用码率可能并不与后续一段时间的上行数据传输状况所匹配,可能当前确定的可用码率太高,也可能太低,针对这种情况本发明实施例给出了如下解决方案,具体如下:可选地,上述处理器580,用于以预定时间为周期执行:上述依据上述直播数据的传输状况确定当前的可用码率。 Since the uplink data transmission are condition anchor device may vary, and therefore the currently determined available rate may not match the uplink data transmission condition subsequent period of time, may be used to determine the current rate is too high, it may be too low, for this embodiment of the present invention shows the following solutions, as follows: optionally, the processor 580, for performing a predetermined period of time: the above-identified available bit rate based on the current status of the broadcast data transmission .

[0105] 以上实施例中每个周期的时间间隔,可用预先设定采用配置的方式配置到设备的执行逻辑中,具体时间间隔采用的值,本领域技术人员可以依据具体的需要和网络状况进行自由设定,该时间间隔设置得越短可以确定更为准确的可用码率与当前网络状态所适配,该时间间隔设置得越长则会占用越少的资源用于进行可用码率的确定,本领域技术人员可以依据需要进行平衡性设定,因此本发明实施例可以不予限定。 Examples of each cycle time interval of [0105] the above embodiment, can be configured using a preset arranged to perform a logical device, the value of the specific time interval employed, the skilled artisan can be made according to specific needs and network conditions set free, the shorter the time interval may be determined more accurately with the available bit rate adaptation of the current network state, the longer the time interval will be provided fewer resources for determining the occupancy rate of the available skilled in the art can balance settings according to the needs, therefore embodiments of the invention can not be defined.

[0106] 以上采集直播数据并编码发送给服务器中,在主播终端首次开机的时候采用何种码率进行编码本发明实施例可以不予限制,这是由于本发明实施例所采用的技术方案会对码率进行调整,而不是采用固定码率。 [0106] Live or more collected data is sent to the server and encoding, using the code rate which can not be encoded with an embodiment of the present invention in a terminal first anchor boot time, due to the technical solutions of embodiments of the present invention will be employed for rate adjustments, rather than a fixed rate. 不过,在此处如果采用与当前较为适配的码率相差很大的码率进行编码则效果会差于首次采用与当前较为适配的码率相差较小的码率进行编码,因此本发明实施例提供了如下的优选实现方案,但是需要说明的是以下方案并不是本发明实施例的唯一实现方式,其仅是优选实现方式的举例,不应理解为对本发明实施例的唯一性限定,具体如下:可选地,上述处理器580,用于控制采集直播数据并编码发送给服务器包括:控制采集直播数据,使用默认码率或者前次使用的码率对上述直播数据进行编码,然后将编码后的直播数据发送给服务器。 However, where if more adapted to the current bit rate encoding rate largely different, the effect will be the first time difference to a current difference between the relatively small rate adaptation bit rate encoding, the present invention is therefore provides the following preferred embodiments of implementations, it should be noted that the following embodiment is not the only implementation of this embodiment of the present invention, which are merely illustrative of the preferred implementation, and should not be construed as the only embodiment of the exemplary embodiment define the invention, as follows: optionally, the processor 580, for controlling data capture and encode live sent to the server comprising: a broadcast data acquisition control, the default rate or code rate used for the above last live data is encoded, then live encoded data sent to the server.

[0107] 本发明实施例中的传输状态可以是表示当前直播数据传输的质量好坏的任意技术指标,本领域技术人员可以理解的是表示当前直播数据传输的质量好坏的技术指标有很多,在本发明实施例中,可以由传输状态直接确定可用码率,也可以依据传输状态获得其它中间量并依据中间量来确定可用码率,以下给出了其中的一个实现方式的举例,具体如下:可选地,上述处理器580,用于依据上述直播数据的传输状况确定当前的可用码率包括:依据上述直播数据的传输状况确定当前可用带宽,依据当前可用带宽确定可用码率。 Transmission state in the embodiment of the invention is a good or bad quality may be the current live transmission of any data specifications, those skilled in the art will be appreciated is a good or bad quality of the broadcast data transmission specifications, there are many [0107] This current, in an embodiment of the present invention may be determined by the transmission state directly available bit rate, may also be obtained based on the amount of other intermediate transmission state and determine the amount of available code rate based on the intermediate are given below in which examples of one implementation, as follows : optionally, the processor 580, may be used for determining a current rate based on said transmission condition comprises a broadcast data: determining a currently available bandwidth based on the broadcast data transmission condition, based on the currently available bandwidth to determine the available bit rate.

[0108] 在以上实施例中,采用的是由传输状态确定可用带宽作为中间量的方式,实际上对应不同的传输状态采用不同的中间量也是可以实现的,因此先确定可用带宽再依据可用带宽来确定可用码率的实现方案不应理解为对本发明实施例的唯一性限定。 [0108] In the above embodiments, use was made of the available bandwidth of the transmission status determination mode as an intermediate amount, in fact, correspond to different intermediate transmission state using different amounts also can be achieved, thus first determine the available bandwidth and then based on the available bandwidth to determine the available bit rate should not be construed as the only implementation of limiting embodiment of the present invention.

[0109] 在本发明实施例中,会调整可用码率,本发明实施例还给出了具体调整的步骤,如下:可选地,上述处理器580,用于依据上述直播数据的传输状况确定当前的可用码率包括:若上述直播数据的传输状况差于第一预定标准,则调整可用码率到当前使用码率以下;若上述直播数据的传输状况好于第二预定标准,则调整可用码率到当前使用码率之上。 [0109] In an embodiment of the present invention, may be used to adjust the code rate, the step also gives specific embodiment of the embodiment of the present invention to adjust, as follows: Optionally, the processor 580, for determining transmission status based on the live data current available bit rate comprising: a transmission condition if the difference data is broadcast to a first predetermined criterion, adjusting the available bit rate to the bit rate currently being used; if the transmission condition of data is better than the second predetermined broadcast criterion, adjusting the available use rate above the current rate.

[0110] 若在本发明实施例中,以预定时间为周期执行:上述依据上述直播数据的传输状况确定当前的可用码率。 [0110] If the embodiment according to the present invention, is performed in a predetermined period of time: the above-identified available bit rate according to the above current situation of the live transmission of data. 那么,以上调整的步骤将也是以预定的周期执行的。 Then, the above step is adjusted to a predetermined cycle execution. 因此,直播数据发送的过程中,主播设备编码所使用的码率将会动态的变化,并与当前上行直播数据传输的状态进行匹配,既能保证直播数据能够流畅传输,又能获得较高的码率达到较好的直播效果。 Thus, the process of transmitting broadcast data, the dynamic rate changes will be used to encode anchor devices, and matched to the current state of the uplink transmission data broadcast, the data broadcast can ensure smooth transfer is possible, but also to obtain higher rate to achieve better results live.

[0111] 在本发明实施例中,无论是周期性执行获取可用码率还是通过集中式的一次性执行获得可用码率,均可用有一定的标准来确定当前码率是否较优,本发明实施例给出了如下方案如下:可选地,上述处理器580,用于调整可用码率到当前使用码率之上包括:提高当前可用码率,使可用码率达到发生网络抖动前的最高码率。 [0111] In an embodiment of the present invention, whether it is performed periodically for available bit rate or available bit rate obtained by the centralized performed once, there are available certain criteria to determine whether the current code rate is excellent, embodiments of the present invention the following examples are given program are as follows: optionally, the processor 580, for adjusting the rate to the available bit rate over the currently used include: increase rate currently available, so that the highest available rate code occurs before the network jitter rate.

[0112] 以上实施例给出的是以网络抖动的临界为标准,在这个标准下获得最高的码率作为优选方案,实际上既可用设定与这个最高码率低预定值作为标准,也可以采用其他标准来确定优选的可用码率,对于采用何种标准来确定优选的可用码率,以上举例仅是一个优选的方案,不应理解为对本发明实施例的唯一性限定。 [0112] The examples given above are critical to the standard network jitter, highest code rate as a standard in this preferred embodiment, in fact, can be set with the highest code rate and the predetermined value as a standard, may be use other criteria to determine the preferred rate available, as to what criteria used to determine a preferred rate available, the above example is merely one preferred embodiment, it should not be construed as the only embodiment of the exemplary embodiment define the invention.

[0113] 本发明实施例中的传输状态可以是表示当前直播数据传输的质量好坏的任意技术指标,本领域技术人员可以理解的是表示当前直播数据传输的质量好坏的技术指标有很多,以下本发明实施例给出了其中一个优选的实现方案如下:可选地,上述处理器580,用于获取上述直播数据的传输状况包括:获取上述直播数据在传输过程中的丢包率。 [0113] Examples of the transmission state may be represented embodiment of the present invention is good or bad quality of the current live data transmission indicators any technique, those skilled in the art will be appreciated is a good or bad quality specifications have many live current data transmission, the following examples are given of the present invention, in one preferred implementation as follows: optionally, the processor 580, configured to obtain the above-described transmission condition of broadcast data comprises: obtaining a packet loss rate of the broadcast data transmission process.

[0114] 在以上实施例中,采用丢包率来表示当前直播数据传输的质量好坏,丢包率可以是服务器主动发送的,由主播设备被动接收;丢包率也可以是由主播设备主动进行统计的对此本发明实施例不予限定。 [0114] In the above embodiment, the use of the packet loss rate indicates the current live data transmission quality is good or bad, packet loss rate may be actively sent by the server, is received by the passive anchor apparatus; packet loss rate by the anchor device may be active the statistics of this embodiment of the present invention is not limited thereto.

[0115] 值得注意的是,上述主播设备实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。 [0115] Notably, the aforementioned anchor apparatus embodiment, the included units divided only in accordance with the logic function, but are not limited to the division, as long as the corresponding functions can be achieved; In addition, functional cell specific names for convenience only distinguished from each other, are not intended to limit the scope of the present invention.

[0116] 另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。 [0116] Further, those of ordinary skill in the art may understand that the above-described method embodiments, all or part of the steps may be by a program instructing relevant hardware, the corresponding program may be stored in a computer-readable storage medium, the storage medium may be a read-only memory, magnetic or optical disk.

[0117] 以上仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。 [0117] Although the present invention is more preferred specific embodiments, but the scope of the present invention is not limited thereto, within the technical scope of any skilled in the art in the art disclosed in the embodiment of the present invention can be easily thought of changes or replacements shall fall within the protection scope of the present invention. 因此,本发明的保护范围应该以权利要求的保护范围为准。 Accordingly, the scope of the present invention should be defined by the scope of the claims.

Claims (14)

  1. 1.一种直播控制方法,其特征在于,包括: 采集直播数据并编码发送给服务器; 在发送编码后的直播数据的过程中,获取直播数据的传输状况,并依据所述直播数据的传输状况确定当前的可用码率; 依据所述可用码率对直播数据进行编码并发送给服务器。 A broadcast control method comprising: collecting a live data encoding and transmitted to the server; the process after transmitting the encoded broadcast data, the broadcast data acquired transmission condition, and transmission condition data according to the live determining a current rate available; server sends the encoded broadcast data according to the available bit rate.
  2. 2.根据权利要求1所述方法,其特征在于, 以预定时间为周期执行:所述依据所述直播数据的传输状况确定当前的可用码率。 2. The method according to claim 1, characterized in that, for the execution of a predetermined time period: the live transmission condition according to the determined data rate currently available.
  3. 3.根据权利要求1所述方法,其特征在于,所述采集直播数据并编码发送给服务器包括: 采集直播数据,使用默认码率或者前次使用的码率对所述直播数据进行编码,然后将编码后的直播数据发送给服务器。 3. The method according to claim 1, wherein said collecting data and encoded broadcast sent to the server comprising: a broadcast data collection, the default rate or the bit rate used in the previous broadcast data is encoded, then transmitting the coded data to the broadcast server.
  4. 4.根据权利要求1至3任意一项所述方法,其特征在于,所述依据所述直播数据的传输状况确定当前的可用码率包括: 依据所述直播数据的传输状况确定当前可用带宽,依据当前可用带宽确定可用码率。 1 a method according to the any of claim 3, wherein said determining the current transmission status based on available bit rate includes the broadcast data: determining transmission status based on the currently available bandwidth of the broadcast data, based on the currently available bandwidth to determine the available bit rate.
  5. 5.根据权利要求1至3任意一项所述方法,其特征在于,所述依据所述直播数据的传输状况确定当前的可用码率包括: 若所述直播数据的传输状况差于第一预定标准,则调整可用码率到当前使用码率以下; 若所述直播数据的传输状况好于第二预定标准,则调整可用码率到当前使用码率之上。 1 a method according to the any of claims 1-3, wherein said determining the current transmission status based on available bit rate includes the live data: if the transmission condition of the live data is worse than a first predetermined standard, the bit rate can be used to adjust the bit rate currently being used; and if the transmission condition of the live data is better than the second predetermined criterion, adjusting the available bit rate to the current rate used above.
  6. 6.根据权利要求5所述方法,其特征在于,所述调整可用码率到当前使用码率之上包括: 提高当前可用码率,使可用码率达到发生网络抖动前的最高码率。 6.5 The method according to claim, characterized in that, the adjustment to the current use of the available bit rate over the rate comprising: increase rate currently available, so that the available bit rate to the highest rate before occurrence of the network jitter.
  7. 7.根据权利要求1至3任意一项所述方法,所述获取所述直播数据的传输状况包括: 获取所述直播数据在传输过程中的丢包率。 1 to 3 according to any one of the method, the acquisition of the live transmission condition data comprises: acquiring said broadcast data packet loss rate in the transmission process.
  8. 8.—种主播设备,其特征在于,包括: 采集单元,用于采集直播数据; 编码单元,用于对所述采集单元采集的直播数据编码;依据码率确定单元确定的可用码率对直播数据进行编码; 发送单元,用于将所述编码单元编码得到的直播数据发送给服务器; 传输获取单元,用于在所述发送单元发送编码后的直播数据的过程中,获取直播数据的传输状况; 码率确定单元,用于依据所述传输获取单元获取的直播数据的传输状况确定当前的可用码率。 8.- species anchor apparatus, characterized by comprising: an acquisition unit for acquiring broadcast data; encoding means for encoding the live data collected by the acquisition unit; determining unit determines the rate based on the available rate on live encoding data; broadcast data transmission unit for encoding the encoding unit obtained to the server; obtaining a transmission unit for transmitting the encoding process after the broadcast data transmission unit, the transmission status obtaining live data ; rate determining means for acquiring transmission according to the transmission status obtaining unit broadcast data to determine the current rate available.
  9. 9.根据权利要求8所述主播设备,其特征在于, 所述码率确定单元,用于以预定时间为周期执行依据所述直播数据的传输状况确定当前的可用码率。 9. The anchor apparatus of claim 8, wherein the rate determination unit for performing a predetermined time period based on the live transmission of data to determine the current status of the available bit rate.
  10. 10.根据权利要求8所述主播设备,其特征在于, 所述编码单元,用于对所述采集单元采集的直播数据编码包括:使用默认码率或者前次使用的码率对所述直播数据进行编码。 10. The anchor device of claim 8, wherein said encoding means for encoding the data comprises a live acquisition unit to: use the default or last rate used by the broadcast data rate encoded.
  11. 11.根据权利要求8至10任意一项所述主播设备,其特征在于, 所述码率确定单元,用于依据所述直播数据的传输状况确定当前可用带宽,依据当前可用带宽确定可用码率。 According to claim any one of claims 8 to 10, anchor apparatus, characterized in that, the rate determination unit for live transmission according to the condition data to determine the current available bandwidth, the available bandwidth is determined depending on the current rate available .
  12. 12.根据权利要求8至10任意一项所述主播设备,其特征在于, 所述码率确定单元,用于若所述直播数据的传输状况差于第一预定标准,则调整可用码率到当前使用码率以下;若所述直播数据的传输状况好于第二预定标准,则调整可用码率到当前使用码率之上。 According to claim any one of claims 8 to 10, anchor apparatus, characterized in that the rate determining unit for transmitting broadcast data if the condition is worse than a first predetermined criterion, adjusting to the available bit rate the rate currently used; and if the transmission condition of the live data is better than the second predetermined criterion, adjusting the available bit rate to the current rate used above.
  13. 13.根据权利要求12所述主播设备,其特征在于, 所述码率确定单元,用于调整可用码率到当前使用码率之上包括:提高当前可用码率,使可用码率达到发生网络抖动前的最高码率。 13.12 The anchor apparatus according to claim, wherein said rate determination means for adjusting the rate to the available bit rate over the currently used include: improving currently available bit rate, available bit rate so that the achieving of a network the highest rate of jitter before.
  14. 14.根据权利要求8至10任意一项所述主播设备, 所述传输获取单元,用于获取所述直播数据在传输过程中的丢包率。 According to claim 8 to 10, the anchor device of any one of the transmission acquiring unit configured to acquire the broadcast packet loss during transmission of data.
CN 201310495764 2013-10-21 2013-10-21 Live broadcasting control method and anchor equipment CN103533386A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310495764 CN103533386A (en) 2013-10-21 2013-10-21 Live broadcasting control method and anchor equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 201310495764 CN103533386A (en) 2013-10-21 2013-10-21 Live broadcasting control method and anchor equipment
PCT/CN2014/088884 WO2015058656A1 (en) 2013-10-21 2014-10-20 Live broadcast control method and main broadcast device

Publications (1)

Publication Number Publication Date
CN103533386A true true CN103533386A (en) 2014-01-22

Family

ID=49934995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310495764 CN103533386A (en) 2013-10-21 2013-10-21 Live broadcasting control method and anchor equipment

Country Status (2)

Country Link
CN (1) CN103533386A (en)
WO (1) WO2015058656A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363519A (en) * 2014-11-21 2015-02-18 广州华多网络科技有限公司 Online-live-broadcast-based information display method, device and system
WO2015058656A1 (en) * 2013-10-21 2015-04-30 腾讯科技(深圳)有限公司 Live broadcast control method and main broadcast device
CN105516733A (en) * 2015-12-04 2016-04-20 珠海多玩信息技术有限公司 Interaction system and interaction method
CN105791905A (en) * 2016-02-26 2016-07-20 福建鼎心网络科技有限公司 Code stream self-adaptation system and method for improving real-time viewing fluency
CN106385627A (en) * 2016-09-14 2017-02-08 腾讯科技(深圳)有限公司 Video coding method and device
WO2017166500A1 (en) * 2016-03-30 2017-10-05 乐视控股(北京)有限公司 System and method for regulating audio volume in real-time during live streaming
WO2017219741A1 (en) * 2016-06-24 2017-12-28 武汉斗鱼网络科技有限公司 Method and system for switching between landscape live broadcasting and portrait live broadcasting for live broadcasting website

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9497498B2 (en) * 2015-01-23 2016-11-15 Robert Hain System and method for live streaming of content

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001362A (en) * 2006-01-11 2007-07-18 腾讯科技(深圳)有限公司 Method and terminal of on-line playing flow media
CN101047845A (en) * 2006-03-29 2007-10-03 腾讯科技(深圳)有限公司 Device and method for regulating vedio communication data code ratio
CN101584157A (en) * 2006-09-26 2009-11-18 利弗有限公司 Remote transmission system
US20130216990A1 (en) * 2012-02-16 2013-08-22 Powhow Inc. Method and system for interactive live webcam physical activity classes

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533386A (en) * 2013-10-21 2014-01-22 腾讯科技(深圳)有限公司 Live broadcasting control method and anchor equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001362A (en) * 2006-01-11 2007-07-18 腾讯科技(深圳)有限公司 Method and terminal of on-line playing flow media
CN101047845A (en) * 2006-03-29 2007-10-03 腾讯科技(深圳)有限公司 Device and method for regulating vedio communication data code ratio
CN101584157A (en) * 2006-09-26 2009-11-18 利弗有限公司 Remote transmission system
US20130216990A1 (en) * 2012-02-16 2013-08-22 Powhow Inc. Method and system for interactive live webcam physical activity classes

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015058656A1 (en) * 2013-10-21 2015-04-30 腾讯科技(深圳)有限公司 Live broadcast control method and main broadcast device
CN104363519A (en) * 2014-11-21 2015-02-18 广州华多网络科技有限公司 Online-live-broadcast-based information display method, device and system
CN104363519B (en) * 2014-11-21 2017-12-15 广州华多网络科技有限公司 A display method, apparatus and system related information based on live online
CN105516733A (en) * 2015-12-04 2016-04-20 珠海多玩信息技术有限公司 Interaction system and interaction method
CN105791905A (en) * 2016-02-26 2016-07-20 福建鼎心网络科技有限公司 Code stream self-adaptation system and method for improving real-time viewing fluency
WO2017166500A1 (en) * 2016-03-30 2017-10-05 乐视控股(北京)有限公司 System and method for regulating audio volume in real-time during live streaming
WO2017219741A1 (en) * 2016-06-24 2017-12-28 武汉斗鱼网络科技有限公司 Method and system for switching between landscape live broadcasting and portrait live broadcasting for live broadcasting website
CN106385627A (en) * 2016-09-14 2017-02-08 腾讯科技(深圳)有限公司 Video coding method and device

Also Published As

Publication number Publication date Type
WO2015058656A1 (en) 2015-04-30 application

Similar Documents

Publication Publication Date Title
US20120084343A1 (en) System and method of performing domain name server pre-fetching
US20150019694A1 (en) Method for Screen Sharing, Related Device, and Communications System
US20100172335A1 (en) Data transmission method and apparatus based on Wi-Fi multimedia
CN103458305A (en) Video playing method and device, terminal device and server
CN103617797A (en) Voice processing method and device
CN104967896A (en) Method for displaying bulletscreen comment information, and apparatus thereof
CN103294515A (en) Method, device and system for acquiring application programs
CN103473092A (en) Method and device for processing downloaded applications and terminal equipment
CN103905885A (en) Video live broadcast method and device
CN104383681A (en) Game process control method and device as well as mobile terminal
CN103179026A (en) Communication method and system in user interactive system, server and client
CN102833419A (en) Method and terminal for controlling screen state
US20150256988A1 (en) Method, terminal, server, and system for audio signal transmission
US20140244805A1 (en) Bandwidth estimation-based streaming content processing method and apparatus of terminal
US20170206697A1 (en) Techniques for animating stickers with sound
CN104460934A (en) Scheduling method and device for multi central processing units (CPU)
CN103489303A (en) Remote control method and device
CN103746975A (en) Method of data transmission, device and mobile terminal
CN103312705A (en) Data transmission method, device and system
CN103312907A (en) Voice channel distribution management method, related device and communication system
WO2015074567A1 (en) Clicking control method and terminal
CN104657105A (en) Method and device for starting voice input function of terminal
US20150022405A1 (en) Method, device and storage medium for controlling antenna
CN103414488A (en) Mobile device antenna control method, mobile device antenna control device and equipment
CN103068016A (en) Mobile terminal and method thereof to reduce power dissipation

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
RJ01