CN102546191B - The charging method of streaming media service, Apparatus and system - Google Patents
The charging method of streaming media service, Apparatus and system Download PDFInfo
- Publication number
- CN102546191B CN102546191B CN201210021090.3A CN201210021090A CN102546191B CN 102546191 B CN102546191 B CN 102546191B CN 201210021090 A CN201210021090 A CN 201210021090A CN 102546191 B CN102546191 B CN 102546191B
- Authority
- CN
- China
- Prior art keywords
- quality
- code stream
- price
- streaming media
- media content
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
- H04M15/80—Rating or billing plans; Tariff determination aspects
- H04M15/8016—Rating or billing plans; Tariff determination aspects based on quality of service [QoS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5029—Service quality level-based billing, e.g. dependent on measured service level customer is charged more or less
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/80—Responding to QoS
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明实施例提供一种流媒体服务的计费方法、装置及系统,该方法包括:获取同一流媒体内容的不同质量的媒体数据码流设定的质量价格率,每个质量的码流的质量价格率是参考该质量的数据码流的实际价格与标准价格的关系确定的,所述标准价格为所述流媒体内容的一个特定质量的数据码流的实际价格;根据在播放流媒体内容过程中针对各个时间片段内所下载的码流片段的质量,根据所述质量价格率确定播放该流媒体内容的付费率;根据所述得到的付费率和所述标准价格得到终端播放所述流媒体内容的实际费用;依据该实际费用对用户进行计费。本发明实施例的计费方式更为灵活。
The embodiment of the present invention provides a streaming media service billing method, device and system, the method comprising: acquiring the quality price rate set for different quality media data streams of the same streaming media content, and the quality price rate set for each quality stream The quality price rate is determined with reference to the relationship between the actual price of the data code stream of this quality and the standard price, and the standard price is the actual price of a specific quality data code stream of the streaming media content; In the process, for the quality of the code stream segments downloaded in each time segment, determine the payment rate for playing the streaming media content according to the quality price rate; obtain the terminal to play the stream according to the obtained payment rate and the standard price. The actual cost of the media content; the user is billed according to the actual cost. The billing method in the embodiment of the present invention is more flexible.
Description
技术领域 technical field
本发明属于流媒体技术领域,尤其涉及一种流媒体服务的计费方法、装置及系统。The invention belongs to the technical field of streaming media, and in particular relates to a charging method, device and system for streaming media services.
背景技术 Background technique
目前,流媒体服务越来越多,如在线音乐、在线视频、数字电视等。目前流媒体服务的计费方式主要为:针对特定质量的流媒体服务进行定价,用户在使用流媒体服务之前首先需要付费,例如用户在通过在线视频网站观看付费高清电影之前,首先需要在线支付5元左右的费用,然后就可以获得观看特定高清电影的许可,进而观看该电影。Currently, there are more and more streaming media services, such as online music, online video, digital TV, etc. The current billing methods for streaming media services are mainly: pricing for streaming media services of a specific quality, and users need to pay before using streaming media services. For example, users need to pay online for 5 For a fee of around RMB, you can then obtain a license to watch a specific high-definition movie, and then watch that movie.
但是,受限于终端对媒体数据的处理能力以及网络带宽状况,流媒体的服务质量在实际观看中往往得不到保证,尤其是在开放的互联网环境下,可能经常有延迟、丢包、传输误码等现象出现。而现有技术中在对流媒体服务进行计费时仅仅考虑用户最初的选择,该计费方法不够灵活。However, limited by the terminal's ability to process media data and network bandwidth conditions, the quality of service of streaming media is often not guaranteed in actual viewing, especially in an open Internet environment, there may often be delays, packet loss, transmission Phenomena such as bit errors occur. However, in the prior art, only the user's initial choice is considered when charging the streaming media service, and this charging method is not flexible enough.
发明内容 Contents of the invention
本发明实施例提供一种流媒体服务的自适应计费方法、装置及系统,能够使得计费方法更灵活。Embodiments of the present invention provide an adaptive charging method, device and system for streaming media services, which can make the charging method more flexible.
本发明的一个实施例提供一种流媒体服务的计费方法,包括:An embodiment of the present invention provides a charging method for streaming media services, including:
获取同一流媒体内容的不同质量的媒体数据码流设定的质量价格率,每个质量的码流的质量价格率是参考该质量的数据码流的实际价格与标准价格的关系确定的,所述标准价格为所述流媒体内容的一个特定质量的数据码流的实际价格;The quality-price rate set for media data streams of different qualities to obtain the same streaming media content. The quality-price rate of each quality stream is determined by referring to the relationship between the actual price and the standard price of the data stream of this quality. The above-mentioned standard price is the actual price of a specific quality data stream of the streaming media content;
根据在播放流媒体内容过程中针对各个时间片段内所下载的码流片段的质量,根据所述质量价格率确定播放该流媒体内容的付费率;According to the quality of the code stream segment downloaded in each time segment during playing the streaming media content, determine the payment rate for playing the streaming media content according to the quality price rate;
根据所述得到的付费率和所述标准价格得到终端播放所述流媒体内容的实际费用;Obtain the actual cost of playing the streaming media content by the terminal according to the obtained payment rate and the standard price;
依据该实际费用对用户进行计费。The user is billed according to the actual cost.
另一方面,本发明实施例还提供一种流媒体服务的计费装置,包括:On the other hand, the embodiment of the present invention also provides a billing device for streaming media services, including:
质量价格率获取单元,用于获取同一流媒体内容的不同质量的媒体数据流设定的质量价格率,每个质量的码流的质量价格率是参考该质量的数据码流的实际价格与标准价格的关系确定的,所述标准价格为所述流媒体内容的一个特定质量的数据码流的实际价格;The quality price rate acquisition unit is used to obtain the quality price rate set by media data streams of different qualities of the same streaming media content, and the quality price rate of each quality code stream refers to the actual price and standard of the data code stream of this quality Determined by the relationship between prices, the standard price is the actual price of a specific quality data stream of the streaming media content;
付费率统计单元,用于根据在播放流媒体内容过程中针对各个时间片段内所下载的码流片段的质量,根据所述质量价格率确定播放该流媒体内容的付费率;A payment rate statistical unit is used to determine the payment rate for playing the streaming media content according to the quality price rate according to the quality of the code stream segments downloaded in each time segment during the playback of the streaming media content;
计费单元,用于计算所述得到的付费率和所述标准价格得到终端播放所述流媒体内容的实际费用,并依据该实际费用对用户进行计费。The billing unit is configured to calculate the obtained payment rate and the standard price to obtain the actual cost for the terminal to play the streaming media content, and charge the user according to the actual cost.
再一方面,本发明实施例还提供一种网络系统,包括服务器、流媒体服务的计费装置和终端,其中,In yet another aspect, an embodiment of the present invention also provides a network system, including a server, a billing device for streaming media services, and a terminal, wherein,
所述服务器,用于产生不同质量的媒体数据码流片段供终端下载播放;The server is used to generate media data stream segments of different qualities for the terminal to download and play;
所述流媒体服务的计费装置,用于获取同一流媒体内容的不同质量的媒体数据码流设定的质量价格率,每个质量的码流的质量价格率是参考该质量的数据码流的实际价格与标准价格的关系确定的,所述标准价格为所述流媒体内容的一个特定质量的数据码流的实际价格;根据在播放流媒体内容过程中针对各个时间片段内所下载的码流片段的质量,根据所述质量价格率确定播放该流媒体内容的付费率;根据所述得到的付费率和所述标准价格得到终端播放所述流媒体内容的实际费用;依据该实际费用对用户进行计费;The billing device of the streaming media service is used to obtain the quality price rate set by the media data code streams of different qualities of the same streaming media content, and the quality price rate of the code streams of each quality refers to the data code streams of the quality determined by the relationship between the actual price and the standard price, the standard price being the actual price of a specific quality data code stream of the streaming media content; The quality of the stream segment, determine the payment rate for playing the streaming media content according to the quality price rate; obtain the actual cost of the terminal playing the streaming media content according to the obtained payment rate and the standard price; User billing;
所述终端,用于在播放流媒体内容过程中,针对各个时间片段下载码流片段。The terminal is configured to download code stream segments for each time segment during the playback of streaming media content.
由此可见,本发明实施例提供的方法根据在播放流媒体内容过程中针对各个时间片段内所下载的码流片段的质量来统计播放流媒体内容的实际费用,这就使得计费方式更为灵活。It can be seen that the method provided by the embodiment of the present invention counts the actual cost of playing the streaming media content according to the quality of the code stream segments downloaded in each time segment during the playing of the streaming media content, which makes the billing method more efficient. flexible.
附图说明 Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.
图1是本发明实施例提供的流媒体服务的自适应计费方法的示意图;FIG. 1 is a schematic diagram of an adaptive charging method for a streaming media service provided by an embodiment of the present invention;
图2是本发明实施例一提供的流媒体服务的自适应计费方法的示意图;FIG. 2 is a schematic diagram of an adaptive charging method for streaming media services provided by Embodiment 1 of the present invention;
图3是AHS流媒体数据码流的示意图;Fig. 3 is the schematic diagram of AHS streaming media data stream;
图4是一种MPD文件的示意图;Fig. 4 is a schematic diagram of an MPD file;
图5是在图4中的MPD文件的基础上加入质量价格率形成的PMPD文件的示意图;Fig. 5 is the schematic diagram that adds the PMPD file that quality price rate is formed on the basis of the MPD file in Fig. 4;
图6是整个流媒体内容完成所经历的码流片段的选择过程示意图;Fig. 6 is a schematic diagram of the selection process of the code stream segments experienced by the completion of the entire streaming media content;
图7是本发明实施例提供的流媒体服务器的自适应计费装置的示意图;7 is a schematic diagram of an adaptive billing device for a streaming media server provided by an embodiment of the present invention;
图8是图7中付费率统计单元的一种具体实施方式示意图;Fig. 8 is a schematic diagram of a specific embodiment of the payment rate statistics unit in Fig. 7;
图9是图7中付费率统计单元的另一种具体实施方式示意图;Fig. 9 is a schematic diagram of another specific embodiment of the payment rate statistics unit in Fig. 7;
图10是图7中付费率统计单元的再一种具体实施方式示意图;Fig. 10 is a schematic diagram of another specific embodiment of the payment rate statistics unit in Fig. 7;
图11是本发明系统实施例的一种具体实施例示意图。Fig. 11 is a schematic diagram of a specific embodiment of the system embodiment of the present invention.
具体实施方式 Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例提供的流媒体服务的计费方法是在自适应流媒体技术的基础上实现的。自适应流媒体技术包括自适应Http流媒体(AHS)技术。AHS技术的基本思想是:在服务器产生多种码率的媒体数据码流,例如对应m种质量,分别记为Q0、Q1、Q2……、Qm-1;每种码流切分成n个片段,分别对应的时间长度为T0、T1、T2、……、Tn-1。自适应码流下载可以通过两种模式实现:服务器推送和终端驱动,其中在服务器推送的模式下,服务器根据终端的特点和网络状况为终端选择相应质量的码流;在终端驱动的模式下,终端根据自身的处理能力和网络状况选择下载相应质量的码流片段。这种自适应过程是随着时间变化的。服务器会产生一个媒体呈现描述(MediaPresentation Description,MPD)文件发送给终端,在该文件中指示每个码流片段的码率、Http地址等信息。终端可以根据该MPD文件和网络环境以及终端处理能做相应的码流选择和切换。如果该媒体内容是受到版权保护的,那么用户端在播放该媒体内容时还需要提供用户权限数据文件,该用户权限数据文件用于在用户端解密该媒体内容。一般地,用户权限数据文件包含如下参数:内容密钥、有效期开始时间、有效期结束时间、观看权限(浏览、下载、转发等)等。在本发明实施例中,可以将质量价格率信息加入到上述媒体呈现描述MPD文件或用户权限数据文件中。The billing method for the streaming media service provided by the embodiment of the present invention is realized on the basis of the adaptive streaming media technology. Adaptive streaming technology includes Adaptive Http Streaming (AHS) technology. The basic idea of AHS technology is: generate media data streams with multiple code rates on the server, for example, corresponding to m kinds of quality, which are respectively recorded as Q0, Q1, Q2..., Qm-1; each code stream is divided into n pieces , respectively corresponding to the length of time T0, T1, T2, ..., Tn-1. Adaptive code stream download can be realized through two modes: server push and terminal drive. The terminal chooses to download code stream segments of corresponding quality according to its own processing capability and network conditions. This adaptive process is time-varying. The server will generate a Media Presentation Description (MediaPresentation Description, MPD) file and send it to the terminal, in which information such as the code rate and Http address of each code stream segment is indicated. The terminal can select and switch the corresponding code stream according to the MPD file, network environment and terminal processing. If the media content is protected by copyright, the user terminal also needs to provide a user rights data file when playing the media content, and the user rights data file is used to decrypt the media content at the user end. Generally, the user rights data file includes the following parameters: content key, valid period start time, valid period end time, viewing authority (browsing, downloading, forwarding, etc.) and so on. In the embodiment of the present invention, the quality price rate information may be added to the above-mentioned media presentation description MPD file or user rights data file.
参见图1,本发明实施例提供的流媒体服务的计费方法,包括:Referring to Fig. 1, the billing method of the streaming media service that the embodiment of the present invention provides, comprises:
步骤S101:获取同一流媒体内容的不同质量的媒体数据码流的质量价格率,每个质量的码流的质量价格率是参考该质量的数据码流的实际价格与标准价格的关系确定的,所述标准价格为流媒体内容的一个特定质量的数据码流的实际价格;Step S101: Obtain the quality-price ratios of different qualities of media data streams of the same streaming media content, the quality-price ratio of each quality code stream is determined by referring to the relationship between the actual price and the standard price of the data streams of this quality, The standard price is the actual price of a specific quality data stream of the streaming media content;
其中,每个质量的码流的质量价格率等于该质量的数据码流的实际价格与所述标准价格之间的比例。Wherein, the quality-price rate of a code stream of each quality is equal to the ratio between the actual price of the data code stream of this quality and the standard price.
步骤S102:根据在播放流媒体内容过程中针对各个时间片段内所下载的码流片段的质量,根据上述质量价格率确定播放该流媒体内容的付费率;Step S102: According to the quality of the code stream segment downloaded in each time segment during the playback of the streaming media content, the payment rate for playing the streaming media content is determined according to the above-mentioned quality price rate;
步骤S103:根据步骤S102中得到的付费率和上述标准价格,得到终端播放上述流媒体内容的实际费用。Step S103: According to the payment rate obtained in step S102 and the above-mentioned standard price, the actual fee for the terminal to play the above-mentioned streaming media content is obtained.
步骤S104:依照步骤S103中得到的实际费用,对用户进行计费。Step S104: Charge the user according to the actual fee obtained in step S103.
上述步骤S101至步骤S104中的执行主体可以是计费装置,该计费装置可以设置在每个终端中,此时该计费装置只负责其所在终端的流媒体计费功能;另外,计费装置也可以设置在中心控制设备中,而中心控制设备中的计费装置负责该中心控制设备所管辖的网络范围内的所有终端的流媒体服务计费功能。The execution subject in the above-mentioned steps S101 to S104 may be a billing device, which can be set in each terminal. At this time, the billing device is only responsible for the streaming media billing function of the terminal where it is located; in addition, the billing device The device can also be set in the central control device, and the charging device in the central control device is responsible for the streaming media service charging function of all terminals within the network range under the jurisdiction of the central control device.
由此可见,本发明提供的方法根据终端在播放流媒体内容过程中针对各个时间片段内所下载的码流片段的质量来统计播放流媒体内容的实际费用,这就使得最终的实际费用考虑了在观看过程中因为码流质量的切换导致的费用变化,使得最终得到实际费用更公平合理。It can be seen that the method provided by the present invention calculates the actual cost of playing the streaming media content according to the quality of the code stream segments downloaded by the terminal in each time segment in the process of playing the streaming media content, which makes the final actual cost take into account The cost changes caused by the switching of the stream quality during the viewing process make the final actual cost more fair and reasonable.
以下以几个具体的例子详细说明本发明的具体实现。The specific implementation of the present invention will be described in detail below with several specific examples.
实施例一Embodiment one
本实施例中以AHS流媒体,并且自适应流媒体数据码流的下载采用终端驱动的方式为例进行说明,该方法包括如下步骤:In this embodiment, the AHS streaming media and the downloading of the adaptive streaming media data code stream adopt the terminal-driven mode as an example for illustration. The method includes the following steps:
步骤S201:服务器产生AHS流媒体数据码流,以及MPD文件。这一步骤的具体实现是目前3GPP标准中关于AHS技术的描述已有的,这里仅仅简单说明。Step S201: the server generates an AHS stream media data stream and an MPD file. The specific implementation of this step is already described in the current 3GPP standard about the AHS technology, and it is only briefly described here.
假设服务器产生m种质量的媒体数据码流,m是大于等于1的自然数,这些码流的质量可以分别记为Q0、Q1、Q2、...、Qm-1。其中,Q0>Q1>Q2>...>Qm-1。每种质量的媒体数据码流分成n个片段,n是大于等于1的自然数,这些片段的时间长度分别为T0,T1,T2,...,Tn-1。产生的码流结构可以参见图3。Assuming that the server generates media data streams of m qualities, m is a natural number greater than or equal to 1, and the qualities of these streams can be recorded as Q0, Q1, Q2, ..., Qm-1 respectively. Among them, Q0>Q1>Q2>...>Qm-1. The media data code stream of each quality is divided into n segments, where n is a natural number greater than or equal to 1, and the time lengths of these segments are T0, T1, T2, . . . , Tn-1. Refer to Figure 3 for the generated code stream structure.
产生的MPD文件可以包含媒体数据码流的质量、时间长度和地址等信息。如图4所示的MPD文件中,“Representation”表示某一种质量的码流,“Quality”表示码流对应的质量,“segmentLength”表示码流片段的时间长度。在实际中,数据码流的质量可以通过各种能够反映码流质量的参数进行衡量,例如码流中每帧画面的分辨率、码流的采样率和码流的码率(PSNR)。需要说明的是,图4中仅仅展开示出了第m-1个码流的各个片段在MPD文件中的信息,实际上在MPD文件中当然也具有其他码流的各个片段的信息。The generated MPD file may contain information such as the quality, time length and address of the media data stream. In the MPD file shown in Figure 4, "Representation" indicates a code stream of a certain quality, "Quality" indicates the quality corresponding to the code stream, and "segmentLength" indicates the time length of a code stream segment. In practice, the quality of the data stream can be measured by various parameters that can reflect the quality of the stream, such as the resolution of each frame in the stream, the sampling rate of the stream, and the code rate (PSNR) of the stream. It should be noted that, in FIG. 4 , only the information of each segment of the m-1th code stream in the MPD file is expanded, and in fact, the MPD file certainly also has information of each segment of other code streams.
步骤S202:服务器定义同一流媒体内容的某一特定质量的流媒体数据码流的实际价格,作为标准价格。在实际中,可以定义对同一流媒体内容生成的多种不同质量中的媒体数据码流中最高质量的媒体数据码流的价格,当然也可以定义当中最低质量的多媒体数据码流的价格。Step S202: The server defines the actual price of a streaming media data stream of a certain quality of the same streaming media content as a standard price. In practice, the price of the media data stream of the highest quality among the multiple media data streams of different qualities generated for the same streaming media content can be defined, and of course the price of the multimedia data stream of the lowest quality among them can also be defined.
步骤S203:服务器基于自适应流媒体数据码流的质量高低,对同一流媒体内容的不同质量的媒体数据码流定义质量价格率,该质量价格率反映了该质量的数据码流的价格与步骤S202中定义的标准价格之间的比例,并且质量越高,该比例越大;质量越低,该比例越小。Step S203: Based on the quality of the adaptive streaming media data stream, the server defines a quality-price rate for media data streams of different qualities in the same streaming media content, and the quality-price rate reflects the price and steps of the data stream of this quality The ratio between the standard prices defined in S202, and the higher the quality, the larger the ratio; the lower the quality, the smaller the ratio.
例如,如果定义质量最高的媒体数据码流的价格作为标准价格,即定义了质量为Q0的媒体数据码流为标准价格,不妨记为C。那么各个质量的媒体数据的质量价格率将满足:For example, if the price of the media data stream with the highest quality is defined as the standard price, that is, the media data stream with quality Q0 is defined as the standard price, it may be recorded as C. Then the quality-price rate of media data of each quality will satisfy:
1=R0>=R1>=...>=Rm-1>=01=R 0 >=R 1 >=...>=R m-1 >=0
在实际中,可以设定质量阈值QT1,对于只有观看的数据码流质量不低于这个阈值时才进行相应的计费,那么对于质量价格率就有如下的约束条件:In practice, the quality threshold Q T1 can be set, and only when the quality of the watched data stream is not lower than this threshold, the corresponding billing will be performed. Then the quality price rate has the following constraints:
Ri=0,如果Qi<QT1 R i =0, if Qi<Q T1
其中i∈{0,1,2,...,m-1}。where i ∈ {0, 1, 2, ..., m−1}.
当然,也可以设定质量阈值QT2,对于观看的数据码流质量高于这个阈值时采用相同的费率计算,那么对于质量价格率就有如下的约束条件:Of course, you can also set the quality threshold Q T2 , and use the same rate calculation when the quality of the watched data stream is higher than this threshold, then there are the following constraints on the quality price rate:
Ri=1,如果Qi>QT2 R i =1, if Qi>Q T2
其中i∈{0,1,2,...,m-1}where i ∈ {0, 1, 2, ..., m-1}
步骤S204:服务器将上述定义的质量价格率传递给终端,在本实施例中,服务器可以将质量价格率加入到生成的MPD文件中发送给终端。Step S204: The server transmits the quality-price rate defined above to the terminal. In this embodiment, the server may add the quality-price rate into the generated MPD file and send it to the terminal.
由此,服务器将质量价格率加入到MPD文件中所生成的新的文件可以称为PMPD文件。Thus, the new file generated by the server adding the quality price rate to the MPD file may be called a PMPD file.
图5示出了在图4中的MPD文件的基础上加入质量价格率形成的PMPD文件的内容,其中QualityPriceRatei表示第i个码流对应的质量价格率,i∈{0,1,2,...,m-1},。Fig. 5 shows the content of the PMPD file formed by adding the quality-price rate on the basis of the MPD file in Fig. 4, wherein QualityPriceRate i represents the quality-price rate corresponding to the i-th code stream, i∈{0,1,2, ..., m-1}, .
需要说明的是,质量价格率并不仅仅局限于上述通过PMPD文件传递的方式;还可以放在用户终端的权限数据文件中传递至终端,一般地,用户权限数据文件包含如下参数:内容密钥、有效期开始时间、有效期结束时间、观看权限(浏览、下载、转发等)等;质量价格率也可以以其他的方式单独传递至终端。It should be noted that the quality price rate is not limited to the above-mentioned method of passing through the PMPD file; it can also be transferred to the terminal in the permission data file of the user terminal. Generally, the user permission data file contains the following parameters: content key , validity period start time, validity period end time, viewing rights (browsing, downloading, forwarding, etc.), etc.; the quality price rate can also be transmitted to the terminal separately in other ways.
步骤S205:终端解析PMPD文件中的信息,获得MPD文件中本身具有的有关码流的质量、时间长度和地址等信息,还可以获得加入其中的各个码流的质量价格率信息。Step S205: The terminal parses the information in the PMPD file to obtain the information about the quality, time length and address of the code stream contained in the MPD file itself, and can also obtain the quality and price information of each code stream added to it.
在实际中,可以通过参数标识来解析上述各个参数以及参数的数值。In practice, the above parameters and their values can be parsed through parameter identifiers.
当然,如果质量价格率信息不是加入到MPD文件中,那么终端需要通过传递质量价格率的文件进行解析得到质量价格率信息,如果质量价格率信息是通过其他形式单独传递给终端的,那么终端只需要解析该单独传递的信息即可得到质量价格率信息。Of course, if the quality price rate information is not added to the MPD file, then the terminal needs to parse the quality price rate file to obtain the quality price rate information. If the quality price rate information is passed to the terminal separately through other forms, then the terminal only It is necessary to analyze the information transmitted separately to obtain the quality price rate information.
不论如何,只要质量价格率不是加入到MPD文件传递给终端的,那么服务器向终端发送的是原始的MPD文件,终端解析的也是该MPD文件。In any case, as long as the quality price rate is not added to the MPD file and passed to the terminal, the server sends the original MPD file to the terminal, and the terminal parses the MPD file.
步骤S206:终端对每个时间片段自适应选择码流,该自适应码流的过程包括:根据自身对媒体数据的处理能力以及当前的网络状况(例如带宽)确定当前应请求的码流的质量。Step S206: The terminal adaptively selects a code stream for each time segment. The process of adaptive code stream includes: determining the quality of the currently requested code stream according to its own processing capability for media data and current network conditions (such as bandwidth) .
终端自身对媒体数据的处理能力可以通过读取终端的硬件设置信息获取;而当前的网络状况可以通过读取网络设置信息获取。在综合上面两个因素进行确定应请求的码流的质量时,可以以两个因素中较低的为标准确定应请求的码流的质量。The processing capability of the terminal itself for media data can be obtained by reading the hardware setting information of the terminal; and the current network status can be obtained by reading the network setting information. When determining the quality of the requested code stream based on the above two factors, the quality of the requested code stream can be determined based on the lower of the two factors.
确定的当前应请求的码流的质量应当属于服务器所定义的码流质量,例如通过PMPD文件或者其他文件携带的码流质量,但是在实际中,在考虑媒体数据的处理能力以及当前的网络带宽所直接确定的码流质量往往与服务器预先定义的码流质量之间不能完全匹配,因此这就存在到底将PMPD文件中的哪个码流的质量作为确定的当前应请求的码流的质量。在本实施例中,采用比较的方法来确定,具体地,当通过考虑媒体数据的处理能力以及当前的网络带宽所直接确定的码流质量为q,则比较寻找PMPD文件中m种码流质量中最接近该q并且不大于q的那个码流质量就是最终确定的当前应请求的码流的质量。以码流质量的参数包括码流为例,假如通过媒体数据的处理能力以及当前的网络带宽确定当前能够处理的最大码率为B的媒体码流,那么通过比较PMPD文件中的众多码流的质量中的码率参数,发现质量为QB的码流的码率是小于B中的最大的,因此确定当前应该请求质量为QB的码流片段。The determined quality of the currently requested code stream should belong to the code stream quality defined by the server, such as the code stream quality carried by the PMPD file or other files, but in practice, considering the processing capability of media data and the current network bandwidth The directly determined code stream quality often cannot fully match the code stream quality predefined by the server, so there is a question of which code stream quality in the PMPD file is used as the determined currently requested code stream quality. In this embodiment, the method of comparison is used to determine, specifically, when the quality of the code stream directly determined by considering the processing capability of the media data and the current network bandwidth is q, then compare and find m kinds of code stream quality in the PMPD file The quality of the code stream that is closest to the q and not greater than q is the finally determined quality of the currently requested code stream. Taking the parameters of code stream quality including code stream as an example, if the media code stream with the maximum code rate B that can be processed is determined by the processing capability of media data and the current network bandwidth, then by comparing the multiple code streams in the PMPD file The code rate parameter in the quality finds that the code rate of the code stream with the quality Q B is less than the maximum among B, so it is determined that the code stream segment with the quality Q B should be requested at present.
由此可见,在本发明实施例中,终端需要根据当前的实际情况自适应地选择接下来接收的码流的质量。假设最终终端接收整个流媒体内容完成所经历的码流片段的选择过程如图6所示,其中Si,j表示质量为Qi的码流的第j+1个码流片段,在各个质量的码流之间划过的实线表示在各个时间片段的所选择的码流片段的选择轨迹,最终由终端完全接收完成的媒体数据码流是由S0,0、S0,1、S1,2…Sm-1,n-2、S1,n-1n个码流片段组成的。It can be seen that, in the embodiment of the present invention, the terminal needs to adaptively select the quality of the code stream to be received next according to the current actual situation. Assuming that the final terminal receives the entire streaming media content and completes the code stream segment selection process as shown in Figure 6, where S i, j represents the j+1th code stream segment of the code stream with quality Q i , in each quality The solid line drawn between the code streams indicates the selection trajectory of the selected code stream segments in each time segment, and the media data code stream completely received by the terminal is composed of S 0,0 , S 0,1 , S 1, 2 ... S m-1, n-2 and S 1, n-1 are composed of n code stream segments.
步骤S207:终端在针对每个时间片段自适应选择码流片段后,会根据PMPD文件中解析出的该码流片段的地址下载内容,并播放该片段的内容。Step S207: After adaptively selecting a code stream segment for each time segment, the terminal will download the content according to the address of the code stream segment parsed from the PMPD file, and play the content of the segment.
当然,如果服务器不是通过MPD文件加入质量价格率,则步骤S207中,终端所解析的就是MPD原始文件。Of course, if the server does not add the quality price rate through the MPD file, then in step S207, what the terminal parses is the original MPD file.
步骤S208:终端根据在同一流媒体内容播放的各个时间片段内所选择的码流片段的质量,统计该流媒体内容的付费率p。Step S208: The terminal calculates the payment rate p of the streaming media content according to the quality of the code stream segments selected in each time segment of playing the same streaming media content.
在本实施例中可以采用三种具体的统计付费率的方式,分别为:In this embodiment, three specific ways of counting the payment rate can be adopted, which are:
方式1:统计不同码流质量的媒体数据码流的观看长度,其具体过程为:Method 1: Count the viewing length of media data streams with different stream qualities. The specific process is:
在终端针对每个时间片段选择码流片段时,记录码流片段所在码流的质量和码流片段的时间长度,最后将流媒体内容播放过程中的选择的所有码流片段的质量价格率按照该质量价格率的权重因子进行加权求和,得到付费率p。在计算加权求和时,每个码流片段的权重因子为该码流片段的时间长度占整个流媒体内容的码流的总时间长度的比例。When the terminal selects a code stream segment for each time segment, record the quality of the code stream where the code stream segment is located and the time length of the code stream segment, and finally calculate the quality and price ratio of all selected code stream segments during streaming media content playback according to The weighting factors of the quality-price rate are weighted and summed to obtain the payment rate p. When calculating the weighted sum, the weight factor of each code stream segment is the ratio of the time length of the code stream segment to the total time length of the code stream of the entire streaming media content.
例如,假如Ti为第i+1个被选择的码流片段的时间长度,其中i∈{0,1,2,...,n-1}。而整个流媒体内容的码流的总时间长度为T=T0+T1+...+Tn-1。For example, suppose T i is the time length of the i+1th selected code stream segment, where i∈{0, 1, 2, . . . , n-1}. The total time length of the code stream of the entire streaming media content is T=T 0 +T 1 +...+T n-1 .
则上述加权求和计算付费率的过程可以表述为:Then the above weighted sum calculation process of payment rate can be expressed as:
其中,R’i∈{R0,R1,R2,...,Rn-1}是第i+1个被选择的媒体码流片段所在码流的质量价格率。例如,假如码流片段Sj,i被选中,则上述加权求和的计算公式中,R’i=Rj。Wherein, R' i ∈ {R 0 , R 1 , R 2 , ..., R n-1 } is the quality-price ratio of the code stream where the i+1th selected media code stream segment is located. For example, if the code stream segment S j,i is selected, then in the above formula for calculating the weighted sum, R' i =R j .
方式2:统计不同码流质量的媒体码流片段的切换频率,其具体过程如下:Method 2: Count the switching frequency of media stream segments with different stream qualities. The specific process is as follows:
首先,当相邻的两个时间片段所选择的码流片段的质量不同时,判定发生码流切换,例如图6中示出的码流片段选择过程中,在选择第3个时间片段时,由于第2个时间片段选择的为码流片段S0,1,而接下来第3个时间片段选择的为码流片段S1,2这两个相邻的码流片段所在的码流的质量不同,因此发生码流切换。First, when the quality of the code stream segments selected by two adjacent time segments is different, it is determined that code stream switching occurs. For example, in the code stream segment selection process shown in Figure 6, when the third time segment is selected, Since the second time segment selects the code stream segment S 0,1 , and the next third time segment selects the code stream segment S 1,2, the quality of the code stream where the two adjacent code stream segments are located different, so stream switching occurs.
接着,统计整个流媒体内容播放所发生的码流切换的次数,记为L。Next, count the number of stream switching times that occur during the entire streaming media content playback, and denote it as L.
统计码流切换的次数可以有很多种具体实现方式,例如可以针对每相邻两个选中的码流片段之间设置切换标志位,在发生码流切换时,将对应的切换标志位置为1,否则置为0。最后计算所有标志位的和,就得到了码流切换的次数。当然也可以设置一个寄存器,初始置零,每当发生码流切换时累加1,流媒体内容的所有码流片段选择完后,该寄存器中的结果就是码流切换的次数。There are many specific implementation methods for counting the number of code stream switching. For example, a switching flag can be set between every two adjacent selected code stream segments. When code stream switching occurs, the corresponding switching flag position is set to 1. Otherwise set to 0. Finally, the sum of all flag bits is calculated to obtain the number of stream switching times. Of course, it is also possible to set a register, which is initially set to zero, and accumulates 1 whenever a code stream switch occurs. After all the code stream segments of the streaming media content are selected, the result in the register is the number of code stream switching times.
然后计算付费率p,付费率为流媒体内容播放过程中预设的码流切换次数最大值中实际未发生码流切换的次数占上述预设的码流切换次数最大值的比例。Then calculate the payment rate p, the payment rate is the ratio of the number of times that no code stream switching actually occurs in the preset maximum number of code stream switching times in the streaming media content playback process to the above preset maximum number of code stream switching times.
上述预设的码流切换次数最大值等于流媒体内容播放过程中最多可以发生码流切换次数。The above preset maximum number of code stream switching times is equal to the maximum number of code stream switching times that can occur during streaming media content playback.
仍以图6为例,当流媒体内容的码流片段的个数为n时,那么最多不难得出最多可以发生码流切换的次数为n-1,即,预设的码流切换次数的最大值为n-1,则实际未发生码流切换的次数为n-1-L。因此计算付费率可以通过如下公式实现:Still taking Figure 6 as an example, when the number of code stream segments of the streaming media content is n, it is not difficult to conclude that the maximum number of code stream switching that can occur is n-1, that is, the preset number of code stream switching times If the maximum value is n-1, then the number of times that no code stream switching actually occurs is n-1-L. Therefore, the calculation of the payment rate can be achieved by the following formula:
p=(n-1-L)/(n-1)p=(n-1-L)/(n-1)
方式3:统计不同码率质量的媒体码流片段的切换频率,同时考量切换的码流质量差距,具体过程如下:Method 3: Count the switching frequency of media stream segments with different bit rates and qualities, and consider the quality gap between the switched bit streams. The specific process is as follows:
首先参照上述方式2中的实现方案统计整个流媒体内容播放所发生的码流切换的次数。Firstly, referring to the implementation scheme in the above-mentioned mode 2, the number of stream switching times that occur during the entire streaming media content playback is counted.
同时计算每次码流切换的距离Dk,k∈{0,1,2,...,L-1},1≤Dk<m。码流切换的距离可以定义为发生码流切换处的前一码流片段的质量序号和后一码流片段的质量序号之间的差的绝对值,这里的码流片段的质量序号是根据该码流片段所在码流的质量在同一流媒体内容的所有码流的质量中的排名确定的。根据每次码流切换的距离Dk统计播放流媒体内容过程中实际码流切换的距离和。At the same time, calculate the distance D k of each stream switching, k∈{0, 1, 2, ..., L-1}, 1≤D k <m. The distance of code stream switching can be defined as the absolute value of the difference between the quality sequence number of the previous code stream segment and the quality sequence number of the next code stream segment where the code stream switching occurs, where the quality sequence number of the code stream segment is based on the The quality of the code stream where the code stream segment is located is determined by the ranking among the quality of all code streams of the same streaming media content. According to the distance Dk of each code stream switching, the sum of the actual code stream switching distances in the process of playing streaming media content is counted.
例如,如果前一码流片段的码流质量为Qi,后一码流片段的码流质量为Qj,则在这两个码流片段之间切换的距离为|i-j|,其中| |是取绝对值的操作。For example, if the code stream quality of the previous code stream segment is Q i , and the code stream quality of the subsequent code stream segment is Q j , then the switching distance between these two code stream segments is |ij|, where | | is the operation of taking the absolute value.
接着计算付费率p,付费率为上述流媒体内容播放过程中能够产生的切换码流的距离和的最大值减实际码流切换的距离和所得的差与上述能够产生的切换码流的距离和的最大值的商。Then calculate the payment rate p, the payment rate is the maximum value of the distance sum of the switching code stream that can be generated during the playback of the above-mentioned streaming media content minus the distance of the actual code stream switching and the resulting difference and the above-mentioned distance sum of the switching code stream that can be generated The quotient of the maximum value of .
当同一流媒体内容具有m种不同质量的媒体数据码流,每个媒体数据码流分成n段码流片段时,则上述播放该流媒体内容中能够产生的切换码流距离之和的最大值的情况,就是相邻两个时间片段之间都发生码流切换(即实际的码流切换次数为n-1),并且码流切换始终在质量最低的码流和质量最高的码流之间进行(每次的切换距离都是m-1),所以能够产生的切换码流距离之和的最大值就等于(n-1)□(m-1)。When the same streaming media content has m media data streams of different qualities, and each media data stream is divided into n sections of code stream segments, then the maximum value of the sum of the switching code stream distances that can be generated in the above-mentioned playback of the streaming media content In the case of , the code stream switching occurs between two adjacent time segments (that is, the actual number of code stream switching is n-1), and the code stream switching is always between the code stream with the lowest quality and the code stream with the highest quality (each switching distance is m-1), so the maximum value of the sum of the switching code stream distances that can be generated is equal to (n-1)□(m-1).
具体地,付费率p可以通过如下公式进行计算:Specifically, the payment rate p can be calculated by the following formula:
或or
步骤S209:根据步骤S208中获得的付费率p和之前定义的该流媒体内容的特定质量的媒体数据码流的实际价格,即标准价格C,计算得到用户观看流媒体内容的实际费用。Step S209: According to the payment rate p obtained in step S208 and the previously defined actual price of the media data stream of a specific quality of the streaming media content, that is, the standard price C, calculate the actual cost for the user to watch the streaming media content.
对于后付费的方式,系统会在用户观看完毕后扣除用户观看流媒体内容的实际费用;For the post-paid method, the system will deduct the user's actual cost of watching the streaming media content after the user finishes watching;
对于预付费的方式,系统开始会按照标准价格先收取费用,之后按照实际费用多退少补。例如如果系统按照最高质量的多媒体数据码流的价格定义标准价格,则用户在预付费时支出的将是最高可能支付的费用,而当用户观看完毕后,系统计算出的实际费用往往低于这个标注价格,因此系统还会将二者的差额补偿给用户,进行返还。For the prepaid method, the system will initially charge the standard price first, and then refund the excess and make up for the excess according to the actual cost. For example, if the system defines the standard price according to the price of the highest-quality multimedia data stream, the user will pay the highest possible fee when pre-paying, and when the user finishes watching, the actual fee calculated by the system is often lower than this mark. Price, so the system will also compensate the difference between the two to the user and return it.
需要说明的是,上述步骤S208和步骤S209可以由终端执行,也可以由中心控制设备执行,例如在家庭网络中,该执行步骤S208和步骤S209的中心控制设备可以为家庭网络中的家庭网关设备、控制中心或者STB,这样可以通过中心控制设备可以实现对家庭中多个媒体终端的观看质量的统计和计费。It should be noted that the above step S208 and step S209 can be executed by the terminal or by the central control device. For example, in a home network, the central control device that executes step S208 and step S209 can be a home gateway device in the home network , control center or STB, so that the statistics and billing of viewing quality of multiple media terminals in the home can be realized through the central control device.
此外,由于上述实施例中是采用终端驱动,步骤S206中是由终端驱动的方式来选择码流片段的质量,而在另替代的实施例中,也可以采用服务器驱动的方式来选择码流片段的质量,此时步骤S206中将被替换为终端在播放流媒体内容时,针对各个时间片段,服务器根据终端的处理能力和当前网络状况选择终端下载的码流片段的质量,并指示终端下载该质量的码流片段。In addition, since the above-mentioned embodiment is driven by a terminal, in step S206 the quality of the code stream segment is selected in a terminal-driven manner, and in another alternative embodiment, the code stream segment can also be selected in a server-driven manner At this time, in step S206, it will be replaced by the terminal when playing streaming media content. For each time segment, the server selects the quality of the code stream segment downloaded by the terminal according to the terminal's processing capability and current network conditions, and instructs the terminal to download the stream. Quality codestream fragments.
本发明实施例还相应提供一种流媒体服务的计费装置,如图7所示,该装置包括:质量价格率获取单元701、付费率统计单元702和计费单元703。The embodiment of the present invention also provides a billing device for streaming media services. As shown in FIG.
其中,质量价格率获取单元701用于获取服务器对同一流媒体内容那个的不同质量的媒体数据流设定的质量价格率,每个质量的码流的质量价格率是参考该质量的数据码流的实际价格与标准价格的关系确定的,所述标准价格为所述流媒体内容的一个特定质量的数据码流的实际价格。Wherein, the quality-price rate acquisition unit 701 is used to obtain the quality-price rate set by the server for the media data streams of different qualities of the same streaming media content, and the quality-price rate of each quality code stream refers to the data code stream of the quality The relationship between the actual price and the standard price is determined, and the standard price is the actual price of a data code stream of a specific quality of the streaming media content.
上述每个质量的码流的质量价格率可以等于该质量的数据码流的质量价格率等于该质量的数据码流的实际价格与标准价格之间的比例。The quality-price rate of the above-mentioned code stream of each quality may be equal to the quality-price rate of the data code stream of the quality equal to the ratio between the actual price and the standard price of the data code stream of the quality.
质量价格率设定的具体过程以及标准价格的定义与上述方法实施例中的相关内容相同,这里不再赘述,The specific process of setting the quality-price rate and the definition of the standard price are the same as those in the above-mentioned method embodiment, and will not be repeated here.
付费率统计单元702用于根据终端在播放流媒体内容过程中针对各个时间片段内所下载的码流片段的质量的,,根据所述质量价格率确定播放该流媒体内容的付费率。确定付费率的具体方式同样可以采用上述实施例中所列举的三种方式,根据这三种方式,付费率统计单元702可以有如图8-10三种具体的结构。The payment rate statistics unit 702 is used to determine the payment rate for playing the streaming media content according to the quality price rate according to the quality of the code stream segments downloaded by the terminal in each time segment during the playback of the streaming media content. The specific method of determining the payment rate can also adopt the three methods listed in the above-mentioned embodiments. According to these three methods, the payment rate statistics unit 702 can have three specific structures as shown in Fig. 8-10.
计费单元703用于根据得到的付费率和所述标准价格得到终端播放所述流媒体内容的实际费用,并依据该实际费用对用户进行计费。The charging unit 703 is configured to obtain the actual fee for the terminal to play the streaming media content according to the obtained payment rate and the standard price, and charge the user according to the actual fee.
计费单元703可以计算所述得到的付费率和所述标准价格之间的乘积,从而得到终端播放流媒体内容的实际费用。The charging unit 703 may calculate the product of the obtained payment rate and the standard price, so as to obtain the actual fee for the terminal to play the streaming media content.
以下结合图8-10,详细说明付费率统计单元702的具体实现方式。The specific implementation of the payment rate statistics unit 702 will be described in detail below with reference to FIGS. 8-10 .
如图8所示,在一种具体的实施例中,付费率统计单元702具体包括:As shown in Figure 8, in a specific embodiment, the payment rate statistics unit 702 specifically includes:
码流片段信息记录单元70211,用于在终端针对每个时间片段下载码流片段时,记录码流片段的质量和码流片段的时间长度;A code stream segment information recording unit 70211, configured to record the quality of the code stream segment and the time length of the code stream segment when the terminal downloads the code stream segment for each time segment;
加权求和单元70221,用于对媒体播放内容过程中下载的所有码流片段所在的码流的质量价格率进行加权求和,得到付费率;所述加权求和过程中,每个码流片段的码流的质量价格率的权重因子为该码流片段的时间长度占所有码流片段的时间长度总和的比例。The weighted sum unit 70221 is used to carry out weighted summation of the quality and price rates of the code streams where all code stream segments are downloaded during the media playback process to obtain the payment rate; in the weighted summation process, each code stream segment The weighting factor of the quality price rate of the code stream is the ratio of the time length of the code stream segment to the sum of the time lengths of all code stream segments.
如图9所示,在另一种具体的实施例中,付费率统计单元702具体包括:As shown in Figure 9, in another specific embodiment, the payment rate statistics unit 702 specifically includes:
码流切换检测单元70212,用于终端所下载的相邻两个时间片段的码流片段的质量不同时,判定发生码流切换;The code stream switching detection unit 70212 is used to determine that code stream switching occurs when the quality of the code stream segments of two adjacent time segments downloaded by the terminal is different;
码流切换次数统计单元70222,用于统计整个流媒体内容播放过程中所发生的码流切换的次数;Code stream switching counting unit 70222, used to count the number of code stream switching that occurs during the entire streaming media content playback process;
比例计算单元70232,用于计算流媒体内容播放过程中最多可以发生的码流切换次数中实际未发生码流切换的次数占所述最多可以发生码流切换次数的比例,得到付费率。The ratio calculation unit 70232 is used to calculate the ratio of the maximum number of code stream switching times that can occur during the streaming media content playback that does not actually occur to the maximum number of code stream switching times that can occur, and obtain the payment rate.
如图10所示,在另一种具体的实施例中,付费率统计单元702具体包括:As shown in Figure 10, in another specific embodiment, the payment rate statistics unit 702 specifically includes:
码流切换检测单元70213,用于终端所下载的相邻两个时间片段的码流片段的质量不同时,判定发生码流切换;The code stream switching detection unit 70213 is used to determine that code stream switching occurs when the quality of the code stream segments of two adjacent time segments downloaded by the terminal is different;
单次距离计算单元70223,用于记录每次码流切换的距离,所述码流切换的距离为发生码流切换处的前一码流片段的质量序号和后一码流片段的质量序号之间的差的绝对值;The single distance calculation unit 70223 is used to record the distance of each code stream switch, and the distance of the code stream switch is between the quality sequence number of the previous code stream segment and the quality sequence number of the next code stream segment where the code stream switch occurs The absolute value of the difference between;
切换距离求和统计单元70233,用于统计整个流媒体内容播放过程中实际码流切换的距离和;The switching distance summing statistics unit 70233 is used for counting the distance sum of the actual code stream switching during the whole streaming media content playing process;
码流切换次数统计单元70243,用于统计整个流媒体内容播放过程中所发生的码流切换的次数;Code stream switching counting unit 70243, used to count the number of code stream switching that occurs during the entire streaming media content playback process;
第二比例计算单元70253,用于计算流媒体内容播放过程中能够产生的切换码流的距离和的最大值减去实际码流切换的距离和所得的差与上述能够产生的切换码流的距离和的最大值的商,得到付费率。The second ratio calculation unit 70253 is used to calculate the distance between the maximum value of the distance sum of the switching code stream that can be generated during the playback of streaming media content minus the distance sum of the actual code stream switching and the above-mentioned distance between the switching code stream that can be generated The quotient of the maximum value of and to get the payment rate.
此外,对于服务器是通过将质量价格率信息加入到特定的文件中发送的情况,上述计费装置中的质量价格率获取单元具体包括:解析单元和结果获取单元。其中解析单元用于解析服务器发送的包含对同一流媒体内容的不同质量的媒体数据码流设定的质量价格率信息的文件,所述文件中,每个质量的码流的质量价格率是参考该质量的数据码流的实际价格与标准价格的关系确定的,所述标准价格为所述流媒体内容的一个特定质量的数据码流的实际价格;结果获取单元用于根据解析单元的解析结果获取获得所述质量价格率。这里的文件可以是PMPD文件,也可以是用户权限数据文件。In addition, for the case where the server sends the information by adding the quality price rate information into a specific file, the quality price rate acquisition unit in the above charging device specifically includes: an analysis unit and a result acquisition unit. Wherein the parsing unit is used for parsing the file sent by the server that contains the quality-price rate information set to the media data streams of different qualities of the same streaming media content, in the file, the quality-price rate of the code stream of each quality is a reference The relationship between the actual price of the data code stream of this quality and the standard price is determined, and the standard price is the actual price of a specific quality data code stream of the streaming media content; the result acquisition unit is used to analyze the result according to the analysis unit Get Get the Quality Price Rate. The file here can be a PMPD file or a user authority data file.
本发明实施例还相应提供一种网络系统,该网络系统包括上述实施例中的流媒体服务的计费装置、服务器和终端。该终端包括下载单元,该下载单元用于在播放流媒体内容过程中,针对各个时间片段下载码流片段。The embodiment of the present invention also provides a network system correspondingly, and the network system includes the billing device for the streaming media service in the above embodiment, a server and a terminal. The terminal includes a downloading unit, and the downloading unit is used for downloading code stream segments for each time segment during playing the streaming media content.
正如上文所述,终端下载码流片段的质量可以终端驱动的方式,也可以采用服务器驱动的方式。As mentioned above, the quality of the code stream segment downloaded by the terminal may be driven by the terminal or driven by the server.
当采用终端驱动的方式时,上述终端还包括:码流片段选择单元,用于针对各个时间片段,根据终端自身的处理能力和当前网络状况选择下载的码流片段的质量,并通知所述下载单元下载该质量的码流片段。When the terminal-driven method is adopted, the above-mentioned terminal also includes: a code stream segment selection unit for selecting the quality of the downloaded code stream segment for each time segment according to the processing capability of the terminal itself and the current network condition, and notifying the downloaded The unit downloads bitstream segments of that quality.
当采用终端驱动的方式时,上述终端还包括:码流片段选择结果接收单元,用于接收服务器针对各个时间片段,根据终端的处理能力和当前网络状况选择终端下载的码流片段的质量,并通知所述下载单元下载该质量的码流片段。When the terminal-driven method is adopted, the above-mentioned terminal also includes: a code stream segment selection result receiving unit, which is used to receive the quality of the code stream segment selected by the server for each time segment according to the terminal's processing capability and current network conditions, and The downloading unit is notified to download the code stream segment of the quality.
在实际中,上述网络系统中的流媒体服务的计费装置可以设置在每个终端中,此时流媒体服务的计费装置仅仅负责其所在的终端的流媒体服务计费功能。当然在实际中,也可能在一个特定的网络范围内,由一个中心控制设备负责统一管理其所管辖的网络范围内的所有终端,此时上述流媒体服务的计费装置可以设置在每个中心控制设备中,用于负责该中心控制设备所管辖的网络范围内的所有终端的流媒体服务计费功能。In practice, the streaming media service billing device in the above network system can be set in each terminal, and at this time, the streaming media service billing device is only responsible for the streaming media service billing function of the terminal where it is located. Of course, in practice, it is also possible that within a specific network range, a central control device is responsible for unified management of all terminals within the network range under its jurisdiction. At this time, the billing device for the above-mentioned streaming media service can be set in each center In the control device, it is used to be responsible for the streaming media service charging function of all terminals within the network range under the jurisdiction of the central control device.
上述中心控制设备所管辖的网络可以为家庭网络。The network under the jurisdiction of the above-mentioned central control device may be a home network.
具体的,如附图11所示,上述网络系统包括:Specifically, as shown in Figure 11, the above-mentioned network system includes:
服务器1101:用于产生不同质量的媒体数据码流片段供终端下载播放。Server 1101: used to generate media data code stream segments of different qualities for the terminal to download and play.
流媒体服务的计费装置1103:用于获取同一流媒体内容的不同质量的媒体数据码流设定的质量价格率,每个质量的码流的质量价格率是参考该质量的数据码流的实际价格与标准价格的关系确定的,所述标准价格为所述流媒体内容的一个特定质量的数据码流的实际价格;根据在播放流媒体内容过程中针对各个时间片段内所下载的码流片段的质量,根据所述质量价格率确定播放该流媒体内容的付费率;根据所述得到的付费率和所述标准价格得到终端播放所述流媒体内容的实际费用;依据该实际费用对用户进行计费。Billing device 1103 for streaming media services: used to obtain the quality price rate set for different quality media data streams of the same streaming media content, and the quality price rate of each quality code stream refers to the data stream of the quality Determined by the relationship between the actual price and the standard price, the standard price is the actual price of a specific quality data code stream of the streaming media content; according to the code stream downloaded in each time segment during the playback of the streaming media content According to the quality price rate of the segment, the payment rate for playing the streaming media content is determined according to the quality price rate; the actual cost for the terminal to play the streaming media content is obtained according to the obtained payment rate and the standard price; for billing.
台式电脑1105:用于在播放流媒体内容过程中,针对各个时间片段下载码流片段。Desktop computer 1105: used for downloading code stream segments for each time segment during the playback of streaming media content.
掌上电脑1107:用于在播放流媒体内容过程中,针对各个时间片段下载码流片段。Handheld computer 1107: used for downloading code stream segments for each time segment during the process of playing streaming media content.
笔记本电脑1109:用于在播放流媒体内容过程中,针对各个时间片段下载码流片段。Notebook computer 1109: used for downloading code stream segments for each time segment during the playback of streaming media content.
上述列举的终端类型只是一种示意,不构成对适用终端类型的限制,其他具有同等功能的终端仍应包括于本发明实施例的范围之内。The terminal types listed above are only illustrative, and do not constitute a limitation on applicable terminal types, and other terminals with equivalent functions should still be included in the scope of the embodiments of the present invention.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,通用硬件包括通用集成电路、通用CPU、通用存储器、通用元器件等,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be realized by means of software plus necessary general-purpose hardware. The general-purpose hardware includes general-purpose integrated circuits, general-purpose CPUs, general-purpose memories, general-purpose components, etc. , Of course, it can also be realized by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc., but in many cases the former is a better implementation. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , a hard disk or an optical disk, etc., including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods of various embodiments of the present invention.
以上方法实施例中的各个步骤的顺序可以根据实际应用需要进行调整,各个步骤可以根据实际应用需要进行组合形成新的方案。以上装置实施例中的各个单元、模块可以根据实际应用需要进行划分,或者重新组合。The sequence of the steps in the above method embodiments can be adjusted according to actual application needs, and each step can be combined according to actual application needs to form a new solution. Each unit and module in the above device embodiments can be divided or recombined according to actual application needs.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.
Claims (11)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210021090.3A CN102546191B (en) | 2012-01-30 | 2012-01-30 | The charging method of streaming media service, Apparatus and system |
PCT/CN2012/078692 WO2013113207A1 (en) | 2012-01-30 | 2012-07-16 | Method, device and system for charging for streaming media service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210021090.3A CN102546191B (en) | 2012-01-30 | 2012-01-30 | The charging method of streaming media service, Apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102546191A CN102546191A (en) | 2012-07-04 |
CN102546191B true CN102546191B (en) | 2015-08-05 |
Family
ID=46352205
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210021090.3A Active CN102546191B (en) | 2012-01-30 | 2012-01-30 | The charging method of streaming media service, Apparatus and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102546191B (en) |
WO (1) | WO2013113207A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546191B (en) * | 2012-01-30 | 2015-08-05 | 华为技术有限公司 | The charging method of streaming media service, Apparatus and system |
US9125073B2 (en) * | 2012-08-03 | 2015-09-01 | Intel Corporation | Quality-aware adaptive streaming over hypertext transfer protocol using quality attributes in manifest file |
CN104105012B (en) * | 2013-04-03 | 2018-04-20 | 华为技术有限公司 | The fragment preparation method and device of Streaming Media |
CN106570720B (en) * | 2016-09-20 | 2021-05-04 | 中央电视台 | Multimedia data pricing processing method and device |
CN112884507A (en) * | 2021-02-05 | 2021-06-01 | 世纪蜗牛通信科技有限公司 | Advertisement marketing recommendation system based on user preference |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859237A (en) * | 2006-03-15 | 2006-11-08 | 华为技术有限公司 | Method, system, device for detecting service quality, and charging and fault detecting system |
CN101540688A (en) * | 2008-03-20 | 2009-09-23 | 中国移动通信集团公司 | Method and system for charging streaming media service, charging server and terminal |
WO2011025776A1 (en) * | 2009-08-25 | 2011-03-03 | American International Group, Inc. | Method and system for retaining customers with interrupted payment streams |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546191B (en) * | 2012-01-30 | 2015-08-05 | 华为技术有限公司 | The charging method of streaming media service, Apparatus and system |
-
2012
- 2012-01-30 CN CN201210021090.3A patent/CN102546191B/en active Active
- 2012-07-16 WO PCT/CN2012/078692 patent/WO2013113207A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859237A (en) * | 2006-03-15 | 2006-11-08 | 华为技术有限公司 | Method, system, device for detecting service quality, and charging and fault detecting system |
CN101540688A (en) * | 2008-03-20 | 2009-09-23 | 中国移动通信集团公司 | Method and system for charging streaming media service, charging server and terminal |
WO2011025776A1 (en) * | 2009-08-25 | 2011-03-03 | American International Group, Inc. | Method and system for retaining customers with interrupted payment streams |
Also Published As
Publication number | Publication date |
---|---|
CN102546191A (en) | 2012-07-04 |
WO2013113207A1 (en) | 2013-08-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11336624B2 (en) | Methods and apparatus to distribute media content | |
US20080077950A1 (en) | System and method for billing for video content | |
KR101709802B1 (en) | Implicit rating of advertisements | |
CN102546191B (en) | The charging method of streaming media service, Apparatus and system | |
JP5143871B2 (en) | Optimized content-based and royalty-based encoding and distribution of media data | |
US9521469B2 (en) | Carriage of quality information of content in media formats | |
US9325597B1 (en) | Bandwidth upgrade recommendation | |
US9426500B2 (en) | Optimal quality adaptive video delivery | |
US20110145115A1 (en) | Customized content billing management server and method | |
CN106604137B (en) | Method and device for predicting video watching duration | |
WO2017152792A1 (en) | Method and device for acquiring network file resource and electronic device | |
CN108769754B (en) | Video playback method and system based on video playback terminal | |
US20130074105A1 (en) | Usage based billing for video programs | |
KR101145877B1 (en) | Broadcasting contents preference calculation system and method | |
WO2007043989A1 (en) | Pay-per-view payment system and method | |
US20130080180A1 (en) | Method and apparatus for sender paid data delivery | |
CN112561522B (en) | Video payment method, video node, device and medium based on blockchain | |
KR20120057594A (en) | Broadcasting contents preference calculation system and method | |
US20210365908A1 (en) | Tracking use of metered content from a content delivery system | |
US20240340478A1 (en) | System and method for detecting and reporting concurrent viewership of online audio-video content | |
JPWO2017018072A1 (en) | Delivery rate selection device, delivery rate selection method, and program | |
KR20040070886A (en) | Method for time restriction contents service and apparatus thereof | |
JP2004343238A (en) | Content distribution method and content distribution system | |
JP5343026B2 (en) | Information mediating apparatus, method and program | |
US20240296070A1 (en) | Optimizing media transcoding based on licensing models |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210118 Address after: Room 400, building 5, No.11 Deshengmenwai street, Xicheng District, Beijing 100032 (Desheng Park) Patentee after: Migu cultural technology Co., Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |