WO2013113207A1 - Method, device and system for charging for streaming media service - Google Patents

Method, device and system for charging for streaming media service Download PDF

Info

Publication number
WO2013113207A1
WO2013113207A1 PCT/CN2012/078692 CN2012078692W WO2013113207A1 WO 2013113207 A1 WO2013113207 A1 WO 2013113207A1 CN 2012078692 W CN2012078692 W CN 2012078692W WO 2013113207 A1 WO2013113207 A1 WO 2013113207A1
Authority
WO
WIPO (PCT)
Prior art keywords
quality
price
code stream
streaming media
rate
Prior art date
Application number
PCT/CN2012/078692
Other languages
French (fr)
Chinese (zh)
Inventor
廉士国
王新
刘永亮
张少波
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013113207A1 publication Critical patent/WO2013113207A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/80Rating or billing plans; Tariff determination aspects
    • H04M15/8016Rating or billing plans; Tariff determination aspects based on quality of service [QoS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5029Service quality level-based billing, e.g. dependent on measured service level customer is charged more or less
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS

Definitions

  • the present invention belongs to the field of streaming media technologies, and in particular, to a charging method, device and system for streaming media services. Background technique
  • streaming media services such as online music, online video, digital TV and so on.
  • the charging methods of streaming media services are mainly: pricing for a certain quality streaming service, users need to pay first before using streaming media services, for example, users need to pay online first before watching paid high-definition movies through online video sites. Approximately the cost of the yuan, then you can get permission to watch a specific HD movie, and then watch the movie.
  • the embodiments of the present invention provide an adaptive charging method, device, and system for a streaming media service, which can make the charging method more flexible.
  • An embodiment of the present invention provides a charging method for a streaming media service, including:
  • the quality price rate of each quality code stream is determined by referring to a relationship between the actual price of the quality data stream and the standard price, Said standard price is the actual price of a particular quality data stream of said streaming media content;
  • the stream stream segment downloaded in each time segment in the process of playing the streaming media content Quality determining a payment rate for playing the streaming media content according to the quality price rate
  • the user is charged based on the actual cost.
  • the embodiment of the present invention further provides a charging device for a streaming media service, including: a quality price rate obtaining unit, configured to acquire a quality price rate set for a media data stream of different quality of the same streaming media content, The quality price rate of each quality stream is determined by reference to the relationship between the actual price of the quality data stream and the standard price, the standard price being the actual price of a particular quality data stream of the streaming content ;
  • a payment rate statistics unit configured to determine, according to the quality price rate, a payment rate for playing the streaming media content according to a quality of the code stream segment downloaded in each time segment during the playing of the streaming media content;
  • a charging unit configured to calculate the obtained charging rate and the standard price, obtain an actual fee for the terminal to play the streaming media content, and charge the user according to the actual fee.
  • the embodiment of the present invention further provides a network system, including a server, a charging device and a terminal for a streaming media service, where
  • the server is configured to generate media data stream segments of different quality for downloading and playing by the terminal;
  • the charging device of the streaming media service is configured to acquire media data streams of different qualities of the same streaming media content by the server.
  • a quality price rate the quality price rate of each quality code stream is determined by reference to a relationship between an actual price of the quality data stream and a standard price, the standard price being a specific quality of the streaming media content
  • the actual price of the data stream stream is determined according to the quality of the stream stream segment downloaded in each time segment during the playing of the streaming media content, and the charging rate for playing the streaming media content is determined according to the quality price rate;
  • the payment rate and the standard price are obtained by the terminal to play the actual content of the streaming media content; the user is charged according to the actual fee;
  • the terminal is configured to download a code stream segment for each time segment during the process of playing the streaming media content.
  • the method provided by the embodiment of the present invention counts the actual fee for playing the streaming media content according to the quality of the stream segment downloaded in each time segment during the process of playing the streaming media content. Use, this makes the billing method more flexible.
  • FIG. 1 is a schematic diagram of an adaptive charging method of a streaming media service according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an adaptive charging method of a streaming media service according to Embodiment 1 of the present invention
  • FIG. 3 is an AHS streaming media data. Schematic diagram of the code stream
  • Figure 4 is a schematic diagram of an MPD file
  • Figure 5 is a schematic diagram of a PMPD file formed by adding a quality price rate based on the MPD file in Figure 4;
  • FIG. 6 is a schematic diagram of a process of selecting a code stream segment that is completed by the entire streaming media content;
  • FIG. 7 is a schematic diagram of an adaptive charging device of the streaming media server according to an embodiment of the present invention;
  • FIG. 8 is a charging rate statistical unit of FIG. Schematic diagram of a specific embodiment;
  • FIG. 9 is a schematic diagram of another specific implementation manner of the payment rate statistical unit in FIG. 7;
  • FIG. 10 is a schematic diagram of still another specific implementation manner of the payment rate statistical unit in FIG. 7;
  • FIG. 11 is a schematic diagram of a specific embodiment of an embodiment of the system of the present invention. detailed description
  • Adaptive streaming technology includes Adaptive Http Streaming (AHS) technology.
  • AHS Adaptive Http Streaming
  • the basic idea of AHS technology is: Generate a media data stream with multiple code rates on the server, for example, corresponding to m kinds of quality, which are respectively recorded as Q0, Ql, Q2 ⁇ , Qm-1; It is divided into n segments, and the corresponding time lengths are T0, Tl, ⁇ 2, I, ⁇ -1.
  • Adaptive stream download can be implemented in two modes: server push and terminal driver, where the server In the push mode, the server selects the code stream of the corresponding quality according to the characteristics of the terminal and the network condition; in the terminal-driven mode, the terminal selects and downloads the code stream segment of the corresponding quality according to its processing capability and network condition.
  • This adaptive process changes over time.
  • the server generates a Media Presentation Description (MPD) file to be sent to the terminal, in which information such as the code rate and Http address of each stream segment is indicated.
  • MPD Media Presentation Description
  • the terminal can select and switch the corresponding stream according to the MPD file and the network environment and the terminal processing.
  • the terminal also needs to provide a user rights data file for playing the media content, and the user rights data file is used to decrypt the media content at the terminal.
  • the user rights data file includes the following parameters: content key, expiration date start time, expiration date end time, viewing rights (browsing, downloading, forwarding, etc.).
  • the quality price rate information may be added to the media presentation description MPD file or the user authority data file.
  • a charging method of a streaming media service includes: Step S101: Acquire a quality price rate of a media stream of different quality of the same streaming media content, and a quality price of each quality stream.
  • the rate is determined by reference to the relationship between the actual price of the data stream of the quality and the standard price, the standard price being the actual price of the data stream of a particular quality of the streaming media content;
  • the quality price rate of each quality stream is equal to the ratio between the actual price of the quality data stream and the standard price.
  • Step S102 determining, according to the quality price rate, a charging rate for playing the streaming media content according to the quality of the code stream segment downloaded in each time segment during the playing of the streaming media content; Step S103: according to the payment obtained in step S102 The rate and the above standard price, the actual cost of playing the above streaming media content by the terminal.
  • Step S104 The user is charged according to the actual fee obtained in step S103.
  • the execution body in the above steps S101 to S104 may be a charging device, and the charging device may be disposed in each terminal. At this time, the charging device is only responsible for the streaming media charging function of the terminal where it is located; The device may also be disposed in the central control device, and the charging device in the central control device is responsible for the streaming media service meter of all terminals within the network area governed by the central control device. Fee function.
  • the method provided by the present invention counts the actual cost of playing the streaming media content according to the quality of the stream segment downloaded by the terminal in the process of playing the streaming media content, which makes the final actual cost considered.
  • the cost changes caused by the switching of the code stream quality during the viewing process make the actual cost more fair and reasonable.
  • the AHS streaming media is used, and the downloading of the adaptive streaming media data stream is performed by using a terminal driving method.
  • the method includes the following steps:
  • Step S201 The server generates an AHS streaming media data stream, and an MPD file.
  • the specific implementation of this step is currently described in the 3GPP standard on AHS technology, and is only briefly described here.
  • m is a natural number greater than or equal to 1, and the quality of these streams can be recorded as Q0, Ql, Q2 Qm-1, respectively.
  • Each quality media data stream is divided into n segments, n is a natural number greater than or equal to 1, and the lengths of these segments are T0, T1, T2, ..., Tn-l, respectively.
  • the generated code stream structure can be seen in the figure.
  • the generated MPD file can contain information such as the quality of the media data stream, the length of time, and the Http address.
  • "Representation” represents a certain quality stream
  • “Quality” represents the quality of the stream
  • “segmentLength” represents the length of the stream segment.
  • the quality of the data stream can be measured by various parameters that reflect the quality of the stream, such as the resolution of each frame in the stream, the sample rate of the stream, and the code rate (PSNR) of the stream.
  • PSNR code rate
  • Step S202 The server defines an actual price of a specific quality streaming media data stream of the same streaming media content as a standard price.
  • the price of the highest quality media data stream in the media data streams of the plurality of different qualities generated for the same streaming content can be defined, of course It is also possible to define the price of the lowest quality multimedia data stream.
  • Step S203 The server defines a quality price rate for the media data stream of different quality of the same streaming media content based on the quality of the adaptive streaming media data stream, and the quality price rate reflects the price and the step of the quality data stream.
  • the price of the highest quality media data stream is defined as the standard price, that is, the media data stream with the quality Q0 is defined as the standard price, it may be recorded as C. Then the quality price rate of each quality media data will satisfy:
  • the quality threshold Q T1 can be set, and the corresponding charging is performed when the quality of the data stream only viewed is not lower than the threshold. Then, for the quality price rate, the following constraints are imposed:
  • the quality threshold Q T2 can also be set.
  • the quality of the viewed data stream is higher than the threshold, the same rate calculation is used. Then, for the quality price rate, the following constraints are imposed:
  • Step S204 The server transmits the quality price rate defined above to the terminal.
  • the server may add the quality price rate to the generated MPD file for sending. Give the terminal.
  • the new file generated by the J server adding the quality price rate to the MPD file can be called a PMPD file.
  • FIG. 5 shows the content of the PMPD file formed by adding the quality price rate based on the MPD file in FIG. 4, where QualityPriceRatei represents the quality price rate corresponding to the i-th code stream, ⁇ 0, 1, 2, ... , ml ⁇ . Mode; can also be transferred to the terminal in the permission data file of the user terminal, generally, the user right
  • the limit data file contains the following parameters: content key, expiration date start time, expiration date end time, viewing rights (browsing, downloading, forwarding, etc.); the quality price rate can also be separately transmitted to the terminal in other ways.
  • Step S205 The terminal parses the information in the PMPD file, obtains information about the quality, time length, and Http address of the code stream in the MPD file, and obtains the quality price rate information of each code stream added thereto.
  • the above parameters and the values of the parameters can be resolved by parameter identification.
  • the terminal needs to parse the quality price rate information to obtain the quality price rate information. If the quality price rate information is separately transmitted to the terminal through other forms, then the terminal only The quality price rate information can be obtained by parsing the separately transmitted information.
  • the server sends the original MPD file to the terminal, and the terminal parses the MPD file.
  • Step S206 The terminal adaptively selects a code stream for each time segment, and the process of the adaptive code stream includes: determining, according to its own processing capability of the media data and the current network condition (for example, bandwidth), the quality of the currently requested code stream. .
  • the terminal's own processing capability for the 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.
  • the quality of the code stream that should be requested can be determined by the lower of the two factors.
  • the quality of the currently requested code stream determined should belong to the code stream quality defined by the server, such as the quality of the code stream carried by the PMPD file or other files, but in practice, the processing power of the media data and the current network bandwidth are considered.
  • the directly determined code stream quality often does not exactly match the server's predefined code stream quality, so there is a question of which code stream in the PMPD file is used as the quality of the currently requested code stream. .
  • a comparison method is used to determine, specifically, if the quality of the code stream directly determined by considering the processing capability of the media data and the current network bandwidth is q, the m types in the PMPD file are compared.
  • the code stream quality that is closest to the q and not greater than q in the code stream quality is the quality of the currently determined code stream that should be requested.
  • the code stream quality parameter includes a code rate example. If the media code stream with the maximum code rate B that can be currently processed is determined by the processing capability of the media data and the current network bandwidth, then by comparing the plurality of code streams in the PMPD file. The code rate parameter in the quality finds that the code rate of the code stream of quality Q B is smaller than the maximum of B, so it is determined that the code stream segment of quality Q B should be requested at present.
  • the terminal needs to adaptively select the quality of the next received code stream according to the current actual situation. It is assumed that the selection process of the code stream segment experienced by the final terminal receiving the entire streaming media content is as shown in FIG. 6, where S represents the j+1th code stream segment of the code stream of quality, between the streams of each quality. The crossed solid line indicates the selected trajectory of the selected code stream segment at each time segment, and finally the media data code stream completely received by the terminal is
  • Step S207 After the terminal adaptively selects the code stream segment for each time segment, the terminal downloads the content according to the address of the code stream segment parsed in the PMPD file, and plays the content of the segment.
  • step S207 the terminal parses the MPD original file.
  • Step S208 The terminal counts the payment rate p of the streaming media content according to the quality of the selected stream segment in each time segment played by the same streaming media content.
  • three specific statistical payment rates may be adopted, which are: Mode 1: Statistics of the viewing length of the media data stream of different code streams, the specific process is: selecting for each time segment in the terminal When the code stream segment is recorded, the quality of the code stream in which the code stream segment is located and the time length of the code stream segment are recorded, and finally the quality price rate of all selected code stream segments in the streaming media content playing process is performed according to the weighting factor of the quality price rate. Weighted summation, and the payment rate p is obtained. In calculating the weighted summation, the weighting factor of each stream segment is the ratio of the length of time of the stream segment to the total length of time of the stream of the entire streaming media content.
  • T is the length of time of the i+1th selected codestream segment, where ie ⁇ 0, 1, 2, ..., ⁇ -1 ⁇ .
  • the process of calculating the payment rate by the above weighted summation can be expressed as:
  • R' ⁇ R. is the quality price rate of the code stream where the i+1th selected media stream segment is located. For example, if the stream segment is selected, then the above weighted summation formula, R' R
  • Manner 2 The frequency of switching the media stream segments of different code streams is calculated. The specific process is as follows:
  • the code stream switching occurs, for example, in the code stream segment selection process shown in FIG. 6, when the third time segment is selected, Since the second time segment selects the code stream segment So and the third time segment selects the code stream segment S ⁇ , the quality of the code streams in which the two adjacent code stream segments are located is different, so the code occurs. Stream switching.
  • the number of times the code stream switching occurring in the entire streaming media content playback is counted is denoted as L.
  • the switching flag is set between the two selected stream segments. When the code stream is switched, the corresponding switching flag is set to 1, otherwise it is set to 0. Finally, the sum of all the flag bits is calculated, and the number of code stream switching is obtained.
  • the result in this register is the number of times the stream is switched.
  • the charging rate p is the ratio of the number of times the code stream switching does not occur in the maximum number of times of the stream switching in the playback of the streaming media content, and the ratio of the maximum number of times of the preset stream switching.
  • the preset maximum number of code stream switching times is equal to the maximum number of stream switching times that can occur during streaming media content playback.
  • n-1 the number of times the code stream switching can occur at most.
  • nlL the number of times the code stream switching does not actually occur. Therefore, calculating the payment rate can be achieved by the following formula:
  • Mode 3 Calculate the switching frequency of media stream segments with different code stream quality, and consider the quality gap of the switched code streams. The specific process is as follows:
  • the distance D k of each code stream switching is calculated, ⁇ 0, 1, 2, ..., L-1 ⁇ , l ⁇ D k ⁇ m.
  • the distance of the code stream switching may be defined as the absolute value of the difference between the quality sequence number of the previous code stream segment where the code stream switching occurs and the quality sequence number of the latter code stream segment, where the quality sequence number of the code stream segment is based on
  • the quality of the code stream in which the code stream segment is located is determined by the ranking of the quality of all code streams of the same streaming media content.
  • the distance sum of the actual code stream switching during the playback of the streaming media content is counted according to the distance D k of each code stream switching.
  • the code stream quality of the previous code stream segment is the code stream quality of the latter code stream segment is Qj
  • the distance between the two code stream segments is
  • the charging rate p is calculated, and the charging rate is the maximum distance and the maximum value of the switching code stream that can be generated during the playback of the streaming media content, the distance of the actual code stream switching, and the distance between the obtained difference and the switch code stream that can be generated. The quotient of the maximum.
  • each media data stream is divided into n segments
  • the maximum value of the sum of the switching streams that can be generated in the streaming media content is played.
  • code stream switching occurs between two adjacent time segments (ie, the actual number of code stream switching times is n-1), and the code stream switching is always between the lowest quality code stream and the highest quality code stream. This is done (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).
  • the payout rate p can be calculated by the following formula: Or ⁇ _ ⁇ D 0 + D 1 + - + D L _ 1
  • Step S209 Calculated according to the pay rate p obtained in step S208 and the actual price of the media data stream of the specific quality of the previously defined media content, that is, the standard price C. The actual cost of the user watching the streaming content.
  • the system will deduct the actual cost of the user watching the streaming media content after the user has finished watching;
  • the system will start to charge the fee according to the standard price, and then pay more and less 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 spend the highest possible payment when prepaid, and when the user finishes watching, the actual cost calculated by the system is often lower than this label. The price, so the system will also compensate the difference between the two to the user for return.
  • steps S208 and S209 may be performed by the terminal, or may be performed by the central control device.
  • the central control device performing step S208 and step S209 may be a home gateway device in the home network.
  • the control center or the STB can realize the statistics and charging of the viewing quality of multiple media terminals in the home through the central control device.
  • the quality of the code stream segment is selected by the terminal driving manner in step S206, and in another alternative embodiment, the server stream driving method may also be used to select the code stream segment.
  • the quality of the stream segment downloaded by the terminal is selected in step S206.
  • the server selects the quality of the stream segment downloaded by the terminal according to the processing capability of the terminal and the current network condition for each time segment, and instructs the terminal to download the quality.
  • the embodiment of the present invention further provides a charging device for a streaming media service. As shown in FIG. 7, the device includes: a quality price rate obtaining unit 701, a charging rate statistical unit 702, and a charging unit 703.
  • the quality price rate obtaining unit 701 is configured to acquire the server for the same streaming media content. a quality price rate set by different quality media data streams, the quality price rate of each quality code stream being determined by reference to a relationship between an actual price of the quality data stream and a standard price, the standard price being the stream The actual price of a particular quality data stream for media content.
  • the quality price rate of each of the above-described code streams may be equal to the ratio of the quality price rate of the data stream of the quality equal to the actual price of the data stream of the quality to the standard price.
  • the payment rate statistics unit 702 is configured to determine a payment rate for playing the streaming media content according to the quality price rate according to the quality of the code stream segment downloaded by the terminal in each of the time segments during the playing of the streaming media content.
  • the specific manner of determining the payment rate can also adopt the three modes listed in the above embodiments. According to these three modes, the payment rate statistical unit 702 can have three specific structures as shown in FIG. 8-10.
  • the charging unit 703 is configured to obtain, according to the obtained charging rate and the standard price, an actual fee for the terminal to play the streaming media content, and charge the user according to the actual fee.
  • the billing unit 703 can calculate a product between the obtained pay rate and the standard price, thereby obtaining an actual fee for the terminal to play the streaming media content.
  • the charging rate statistics unit 702 specifically includes: a stream segment information recording unit 70211, configured to record a stream segment when the terminal downloads a stream segment for each time segment. Quality and length of the stream segment;
  • a weighting and summing unit 70221 configured to perform weighted summation on a quality price rate of a code stream in which all the stream segments downloaded in the media playing content process are obtained, to obtain a charging rate; in the weighted summation process, each code stream segment
  • the weighting factor of the quality rate of the code stream is the ratio of the length of time of the stream segment to the sum of the lengths of time of all stream segments.
  • the charging rate statistics unit 702 specifically includes: a code stream switching detecting unit 70212, and a quality of a stream segment of the adjacent two time segments downloaded by the terminal. At the same time, it is determined that the code stream switching occurs;
  • the code stream switching number statistics unit 70222 is configured to count the number of times the code stream switching occurs during the entire streaming media content playing process;
  • the ratio calculation unit 70232 is configured to calculate a ratio of the number of times the code stream switching does not occur in the number of code stream switching times that can occur at the time of playing the streaming media content, and the ratio of the number of times the code stream is switched may be generated, and obtain a payment rate.
  • the charging rate statistics unit 702 specifically includes: a code stream switching detecting unit 70213, and a quality of a stream segment of the adjacent two time segments downloaded by the terminal. At the same time, it is determined that the code stream switching occurs;
  • the single distance calculation unit 70223 is configured to record the distance of each code stream switching, where the distance of the code stream switching is the quality serial number of the previous code stream segment where the code stream switching occurs and the quality serial number of the latter code stream segment. The absolute value of the difference between;
  • the switch distance summation statistics unit 70233 is configured to calculate a distance between the actual code stream switching during the entire streaming media content playing process
  • the code stream switching number statistics unit 70243 is configured to count the number of times the code stream switching occurs during the entire streaming media content playing process
  • the second ratio calculating unit 70253 is configured to calculate a distance and a maximum value of the switching code stream that can be generated during the playing of the streaming media content, subtract the distance of the actual code stream switching, and the distance between the obtained difference and the generated switching code stream. And the quotient of the maximum value, get the payment rate.
  • the quality price rate obtaining unit in the charging device specifically includes: a parsing unit and a result obtaining unit.
  • the parsing unit is configured to parse a file sent by the server that includes quality price rate information set for different quality media data streams of the same streaming media content, where the quality price rate of each quality stream is a reference. Determining the relationship between the actual price of the quality data stream and the standard price, the standard price being the actual price of the data stream of a particular quality of the streaming media content; the result obtaining unit is configured to analyze the result according to the parsing unit Obtain the quality price rate.
  • the file here can be a PMPD file or a user rights data file.
  • the embodiment of the present invention further provides a network system, where the network system includes the charging device, the server, and the terminal of the streaming media service in the foregoing embodiment.
  • the terminal includes a downloading unit, and the downloading unit is configured to download a stream segment for each time segment during the playing of the streaming media content.
  • the quality of the terminal download stream segment can be either terminal driven or server driven.
  • the terminal further includes: a code stream segment selecting unit, configured to select, according to the processing capability of the terminal and the current network condition, the quality of the downloaded code stream segment for each time segment, and notify the downloading The unit downloads the stream segment of the quality.
  • a code stream segment selecting unit configured to select, according to the processing capability of the terminal and the current network condition, the quality of the downloaded code stream segment for each time segment, and notify the downloading The unit downloads the stream segment of the quality.
  • the terminal further includes: a code stream segment selection result receiving unit, configured to receive, by the server, the quality of the code stream segment downloaded by the terminal according to the processing capability of the terminal and the current network condition for each time segment, and The download unit is notified to download the code stream segment of the quality.
  • a code stream segment selection result receiving unit configured to receive, by the server, the quality of the code stream segment downloaded by the terminal according to the processing capability of the terminal and the current network condition for each time segment, and The download unit is notified to download the code stream segment of the quality.
  • the charging device of the streaming media service in the network system may be set in each terminal, and the charging device of the streaming media service is only responsible for the streaming media service charging function of the terminal where the terminal is located.
  • a central control device is responsible for uniformly managing all terminals within the network under its jurisdiction within a specific network range.
  • the charging device of the above streaming media service can be set in each center. In the control device, it is responsible for the streaming service charging function of all terminals in the network area under the jurisdiction of the central control device.
  • the network under the control of the above central control device may be a home network.
  • the foregoing network system includes:
  • the server 1101 is configured to generate media data stream segments of different quality for downloading and playing by the terminal.
  • the charging device 1103 of the streaming media service is configured to obtain a quality price rate set by different media data streams of the same streaming media content, and the quality price rate of each quality code stream is referenced to the quality data stream of the quality Determining the relationship between the actual price and the standard price, the standard price being the actual price of the data stream of a specific quality of the streaming media content; according to the code stream downloaded for each time segment in the process of playing the streaming media content a quality of the segment, determining a payment rate for playing the streaming media content according to the quality price rate; obtaining the final payment rate according to the obtained payment rate and the standard price Ending the actual cost of the streaming media content; charging the user based on the actual cost.
  • Desktop 1105 Used to download stream segments for each time segment during streaming content.
  • Handheld 1107 Used to download stream segments for each time segment during streaming content.
  • Laptop 1109 Used to download stream segments for each time segment during streaming content.
  • the present invention can be implemented by means of software plus necessary general hardware including general-purpose integrated circuits, general-purpose CPUs, general-purpose memories, general-purpose components, and the like.
  • dedicated hardware including an application specific integrated circuit, a dedicated CPU, a dedicated memory, a dedicated component, etc., but in many cases, the former is a better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • a hard disk or optical disk, etc. includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods of various embodiments of the present invention.
  • the sequence of the steps in the foregoing method embodiments may be adjusted according to actual application requirements, and each step may be combined to form a new solution according to actual application requirements.
  • the units and modules in the above device embodiments may be divided according to actual application requirements, or may be recombined.

Abstract

Provided are a method, device and system for charging for a streaming media service. The method comprises: obtaining the quality price rates set for media data code streams of different qualities in the same streaming media content, the quality price rate of the code stream of each quality being determined by referring to the relationship between an actual price and a standard price of the data code stream of that quality, and the standard price being an actual price of a data code stream of a specific quality in the streaming media content; according to the quality of a downloaded code stream segment in each time segment in the process for broadcasting the streaming media content, and according to the quality price rate, determining a pay rate of broadcasting the streaming media content; according to the obtained pay rate and the standard price, obtaining an actual cost of a terminal to broadcast the streaming media content; and charging a user according to the actual cost. The charging method in the embodiments of the present invention is more flexible.

Description

流媒体服务的计费方法、 装置及系统  Charging method, device and system for streaming media service
本申请要求于 2012 年 01 月 30 日提交中国专利局、 申请号为 201210021090.3、发明名称为"流媒体服务的计费方法、装置及系统,,的中国专 利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  This application claims the priority of the Chinese patent application filed on January 30, 2012 by the Chinese Patent Office, Application No. 201210021090.3, and the invention titled "Billing Method, Device and System for Streaming Media Services", the entire contents of which are incorporated by reference. Combined in the present application.
本发明属于流媒体技术领域, 尤其涉及一种流媒体服务的计费方法、 装 置及系统。 背景技术  The present invention belongs to the field of streaming media technologies, and in particular, to a charging method, device and system for streaming media services. Background technique
目前, 流媒体服务越来越多, 如在线音乐、 在线视频、 数字电视等。 目 前流媒体服务的计费方式主要为: 针对特定质量的流媒体服务进行定价, 用 户在使用流媒体服务之前首先需要付费, 例如用户在通过在线视频网站观看 付费高清电影之前, 首先需要在线支付 5元左右的费用, 然后就可以获得观 看特定高清电影的许可, 进而观看该电影。  Currently, there are more and more streaming services, such as online music, online video, digital TV and so on. At present, the charging methods of streaming media services are mainly: pricing for a certain quality streaming service, users need to pay first before using streaming media services, for example, users need to pay online first before watching paid high-definition movies through online video sites. Approximately the cost of the yuan, then you can get permission to watch a specific HD movie, and then watch the movie.
但是, 受限于终端对媒体数据的处理能力以及网络带宽状况, 流媒体的 服务质量在实际观看中往往得不到保证, 尤其是在开放的互联网环境下, 可 能经常有延迟、 丟包、 传输误码等现象出现。 而现有技术中在对流媒体服务 进行计费时仅仅考虑用户最初的选择, 该计费方法不够灵活。 发明内容  However, due to the terminal's ability to process media data and network bandwidth, the quality of streaming media is often not guaranteed in actual viewing. Especially in an open Internet environment, there may be delays, packet loss, and transmission. Errors and other phenomena appear. In the prior art, only the initial selection of the user is considered when charging the streaming media service, and the charging method is not flexible enough. Summary of the invention
本发明实施例提供一种流媒体服务的自适应计费方法、 装置及系统, 能 够使得计费方法更灵活。  The embodiments of the present invention provide an adaptive charging method, device, and system for a streaming media service, which can make the charging method more flexible.
本发明的一个实施例提供一种流媒体服务的计费方法, 包括:  An embodiment of the present invention provides a charging method for a streaming media service, including:
获取同一流媒体内容的不同质量的媒体数据码流设定的质量价格率, 每 个质量的码流的质量价格率是参考该质量的数据码流的实际价格与标准价格 的关系确定的, 所述标准价格为所述流媒体内容的一个特定质量的数据码流 的实际价格;  Obtaining a quality price rate set by a different quality media data stream of the same streaming media content, the quality price rate of each quality code stream is determined by referring to a relationship between the actual price of the quality data stream and the standard price, Said standard price is the actual price of a particular quality data stream of said streaming media content;
根据在播放流媒体内容过程中针对各个时间片段内所下载的码流片段的 质量 , 根据所述质量价格率确定播放该流媒体内容的付费率; According to the stream stream segment downloaded in each time segment in the process of playing the streaming media content Quality, determining a payment rate for playing the streaming media content according to the quality price rate;
根据所述得到的付费率和所述标准价格得到终端播放所述流媒体内容的 实际费用;  Obtaining an actual fee for the terminal to play the streaming media content according to the obtained payment rate and the standard price;
依据该实际费用对用户进行计费。  The user is charged based on the actual cost.
另一方面, 本发明实施例还提供一种流媒体服务的计费装置, 包括: 质量价格率获取单元, 用于获取对同一流媒体内容的不同质量的媒体数 据流设定的质量价格率, 每个质量的码流的质量价格率是参考该质量的数据 码流的实际价格与标准价格的关系确定的, 所述标准价格为所述流媒体内容 的一个特定质量的数据码流的实际价格;  In another aspect, the embodiment of the present invention further provides a charging device for a streaming media service, including: a quality price rate obtaining unit, configured to acquire a quality price rate set for a media data stream of different quality of the same streaming media content, The quality price rate of each quality stream is determined by reference to the relationship between the actual price of the quality data stream and the standard price, the standard price being the actual price of a particular quality data stream of the streaming content ;
付费率统计单元, 用于根据在播放流媒体内容过程中针对各个时间片段 内所下载的码流片段的质量, 根据所述质量价格率确定播放该流媒体内容的 付费率;  a payment rate statistics unit, configured to determine, according to the quality price rate, a payment rate for playing the streaming media content according to a quality of the code stream segment downloaded in each time segment during the playing of the streaming media content;
计费单元, 用于计算所述得到的付费率和所述标准价格得到终端播放所 述流媒体内容的实际费用, 并依据该实际费用对用户进行计费。  And a charging unit, configured to calculate the obtained charging rate and the standard price, obtain an actual fee for the terminal to play the streaming media content, and charge the user according to the actual fee.
再一方面, 本发明实施例还提供一种网络系统, 包括服务器、 流媒体服 务的计费装置和终端, 其中,  In a further aspect, the embodiment of the present invention further provides a network system, including a server, a charging device and a terminal for a streaming media service, where
所述服务器, 用于产生不同质量的媒体数据码流片段供终端下载播放; 所述流媒体服务的计费装置, 用于获取所述服务器对同一流媒体内容的 不同质量的媒体数据码流设定的质量价格率 , 每个质量的码流的质量价格率 是参考该质量的数据码流的实际价格与标准价格的关系确定的, 所述标准价 格为所述流媒体内容的一个特定质量的数据码流的实际价格; 根据在播放流 媒体内容过程中针对各个时间片段内所下载的码流片段的质量, 根据所述质 量价格率确定播放该流媒体内容的付费率; 根据所述得到的付费率和所述标 准价格得到终端播放所述流媒体内容的实际费用; 依据该实际费用对用户进 行计费;  The server is configured to generate media data stream segments of different quality for downloading and playing by the terminal; the charging device of the streaming media service is configured to acquire media data streams of different qualities of the same streaming media content by the server. a quality price rate, the quality price rate of each quality code stream is determined by reference to a relationship between an actual price of the quality data stream and a standard price, the standard price being a specific quality of the streaming media content The actual price of the data stream stream is determined according to the quality of the stream stream segment downloaded in each time segment during the playing of the streaming media content, and the charging rate for playing the streaming media content is determined according to the quality price rate; The payment rate and the standard price are obtained by the terminal to play the actual content of the streaming media content; the user is charged according to the actual fee;
所述终端, 用于在播放流媒体内容过程中, 针对各个时间片段下载码流 片段。  The terminal is configured to download a code stream segment for each time segment during the process of playing the streaming media content.
由此可见, 本发明实施例提供的方法根据在播放流媒体内容过程中针对 各个时间片段内所下载的码流片段的质量来统计播放流媒体内容的实际费 用, 这就使得计费方式更为灵活。 附图说明 It can be seen that the method provided by the embodiment of the present invention counts the actual fee for playing the streaming media content according to the quality of the stream segment downloaded in each time segment during the process of playing the streaming media content. Use, this makes the billing method more flexible. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1是本发明实施例提供的流媒体服务的自适应计费方法的示意图; 图 2是本发明实施例一提供的流媒体服务的自适应计费方法的示意图; 图 3是 AHS流媒体数据码流的示意图;  1 is a schematic diagram of an adaptive charging method of a streaming media service according to an embodiment of the present invention; FIG. 2 is a schematic diagram of an adaptive charging method of a streaming media service according to Embodiment 1 of the present invention; FIG. 3 is an AHS streaming media data. Schematic diagram of the code stream;
图 4是一种 MPD文件的示意图;  Figure 4 is a schematic diagram of an MPD file;
图 5是在图 4中的 MPD文件的基础上加入质量价格率形成的 PMPD文 件的示意图;  Figure 5 is a schematic diagram of a PMPD file formed by adding a quality price rate based on the MPD file in Figure 4;
图 6是整个流媒体内容完成所经历的码流片段的选择过程示意图; 图 7是本发明实施例提供的流媒体服务器的自适应计费装置的示意图; 图 8是图 7中付费率统计单元的一种具体实施方式示意图;  6 is a schematic diagram of a process of selecting a code stream segment that is completed by the entire streaming media content; FIG. 7 is a schematic diagram of an adaptive charging device of the streaming media server according to an embodiment of the present invention; FIG. 8 is a charging rate statistical unit of FIG. Schematic diagram of a specific embodiment;
图 9是图 7中付费率统计单元的另一种具体实施方式示意图;  9 is a schematic diagram of another specific implementation manner of the payment rate statistical unit in FIG. 7;
图 10是图 7中付费率统计单元的再一种具体实施方式示意图;  10 is a schematic diagram of still another specific implementation manner of the payment rate statistical unit in FIG. 7;
图 11是本发明系统实施例的一种具体实施例示意图。 具体实施方式  11 is a schematic diagram of a specific embodiment of an embodiment of the system of the present invention. detailed description
为了使本技术领域的人员更好地理解本发明实施例的方案, 下面结合附 图和实施方式对本发明实施例作进一步的详细说明。  The embodiments of the present invention are further described in detail below in conjunction with the drawings and embodiments.
本发明实施例提供的流媒体服务的计费方法是在自适应流媒体技术的基 础上实现的。 自适应流媒体技术包括自适应 Http 流媒体 (Adaptive Http Streaming, AHS )技术。 AHS技术的基本思想是: 在服务器产生多种码率的 媒体数据码流, 例如对应 m种质量, 分别记为 Q0、 Ql、 Q2 ······、 Qm-1 ; 每种 码流切分成 n个片段, 分别对应的时间长度为 T0、 Tl、 Τ2、 一、 Τη-1。 自适 应码流下载可以通过两种模式实现: 服务器推送和终端驱动, 其中在服务器 推送的模式下, 服务器根据终端的特点和网络状况为终端选择相应质量的码 流; 在终端驱动的模式下, 终端根据自身的处理能力和网络状况选择下载相 应质量的码流片段。 这种自适应过程是随着时间变化的。 服务器会产生一个 媒体呈现描述 ( Media Presentation Description, MPD )文件发送给终端, 在 该文件中指示每个码流片段的码率、 Http地址等信息。 终端可以根据该 MPD 文件和网络环境以及终端处理能做相应的码流选择和切换。 如果该媒体内容 是受到版权保护的, 那么终端在播放该媒体内容时还需要提供用户权限数据 文件, 该用户权限数据文件用于在终端解密该媒体内容。 一般地, 用户权限 数据文件包含如下参数: 内容密钥、 有效期开始时间、 有效期结束时间、 观 看权限(浏览、 下载、 转发等)等。 在本发明实施例中, 可以将质量价格率 信息加入到上述媒体呈现描述 MPD文件或用户权限数据文件中。 The charging method of the streaming media service provided by the embodiment of the present invention is implemented 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 a media data stream with multiple code rates on the server, for example, corresponding to m kinds of quality, which are respectively recorded as Q0, Ql, Q2 ······, Qm-1; It is divided into n segments, and the corresponding time lengths are T0, Tl, Τ2, I, Τη-1. Adaptive stream download can be implemented in two modes: server push and terminal driver, where the server In the push mode, the server selects the code stream of the corresponding quality according to the characteristics of the terminal and the network condition; in the terminal-driven mode, the terminal selects and downloads the code stream segment of the corresponding quality according to its processing capability and network condition. This adaptive process changes over time. The server generates a Media Presentation Description (MPD) file to be sent to the terminal, in which information such as the code rate and Http address of each stream segment is indicated. The terminal can select and switch the corresponding stream according to the MPD file and the network environment and the terminal processing. If the media content is copyright protected, the terminal also needs to provide a user rights data file for playing the media content, and the user rights data file is used to decrypt the media content at the terminal. Generally, the user rights data file includes the following parameters: content key, expiration date start time, expiration date end time, viewing rights (browsing, downloading, forwarding, etc.). In the embodiment of the present invention, the quality price rate information may be added to the media presentation description MPD file or the user authority data file.
参见图 1 , 本发明实施例提供的流媒体服务的计费方法, 包括: 步骤 S101 : 获取同一流媒体内容的不同质量的媒体数据码流的质量价格 率, 每个质量的码流的质量价格率是参考该质量的数据码流的实际价格与标 准价格的关系确定的, 所述标准价格为流媒体内容的一个特定质量的数据码 流的实际价格;  Referring to FIG. 1, a charging method of a streaming media service according to an embodiment of the present invention includes: Step S101: Acquire a quality price rate of a media stream of different quality of the same streaming media content, and a quality price of each quality stream. The rate is determined by reference to the relationship between the actual price of the data stream of the quality and the standard price, the standard price being the actual price of the data stream of a particular quality of the streaming media content;
其中, 每个质量的码流的质量价格率等于该质量的数据码流的实际价格 与所述标准价格之间的比例。  Wherein, the quality price rate of each quality stream is equal to the ratio between the actual price of the quality data stream and the standard price.
步骤 S102: 根据在播放流媒体内容过程中针对各个时间片段内所下载的 码流片段的质量, 根据上述质量价格率确定播放该流媒体内容的付费率; 步骤 S103: 根据步骤 S102中得到的付费率和上述标准价格, 得到终端 播放上述流媒体内容的实际费用。  Step S102: determining, according to the quality price rate, a charging rate for playing the streaming media content according to the quality of the code stream segment downloaded in each time segment during the playing of the streaming media content; Step S103: according to the payment obtained in step S102 The rate and the above standard price, the actual cost of playing the above streaming media content by the terminal.
步骤 S104: 依照步骤 S103中得到的实际费用, 对用户进行计费。  Step S104: The user is charged according to the actual fee obtained in step S103.
上述步骤 S101至步骤 S104中的执行主体可以是计费装置, 该计费装置 可以设置在每个终端中, 此时该计费装置只负责其所在终端的流媒体计费功 能; 另外, 计费装置也可以设置在中心控制设备中, 而中心控制设备中的计 费装置负责该中心控制设备所管辖的网络范围内的所有终端的流媒体服务计 费功能。 The execution body in the above steps S101 to S104 may be a charging device, and the charging device may be disposed in each terminal. At this time, the charging device is only responsible for the streaming media charging function of the terminal where it is located; The device may also be disposed in the central control device, and the charging device in the central control device is responsible for the streaming media service meter of all terminals within the network area governed by the central control device. Fee function.
由此可见, 本发明提供的方法根据终端在播放流媒体内容过程中针对各 个时间片段内所下载的码流片段的质量来统计播放流媒体内容的实际费用, 这就使得最终的实际费用考虑了在观看过程中因为码流质量的切换导致的费 用变化, 使得最终得到实际费用更公平合理。  It can be seen that the method provided by the present invention counts the actual cost of playing the streaming media content according to the quality of the stream segment downloaded by the terminal in the process of playing the streaming media content, which makes the final actual cost considered. The cost changes caused by the switching of the code stream quality during the viewing process make the actual cost more fair and reasonable.
以下以几个具体的例子详细说明本发明的具体实现。  Specific implementations of the invention are described in detail below with a few specific examples.
实施例一  Embodiment 1
本实施例中以 AHS流媒体,并且自适应流媒体数据码流的下载采用终端 驱动的方式为例进行说明, 该方法包括如下步骤:  In this embodiment, the AHS streaming media is used, and the downloading of the adaptive streaming media data stream is performed by using a terminal driving method. The method includes the following steps:
步骤 S201 : 服务器产生 AHS流媒体数据码流, 以及 MPD文件。 这一步 骤的具体实现是目前 3GPP标准中关于 AHS技术的描述已有的, 这里仅仅简 单说明。  Step S201: The server generates an AHS streaming media data stream, and an MPD file. The specific implementation of this step is currently described in the 3GPP standard on AHS technology, and is only briefly described here.
假设服务器产生 m种质量的媒体数据码流, m是大于等于 1的自然数, 这些码流的质量可以分别记为 Q0、 Ql、 Q2 Qm-1。其中, Q0>Q1>Q2>... > Qm-l。 每种质量的媒体数据码流分成 n个片段, n是大于等于 1的自然数, 这些片段的时间长度分别为 T0, T1, T2, ..., Tn-l。 产生的码流结构可以参见图 Suppose the server generates m quality media data streams, m is a natural number greater than or equal to 1, and the quality of these streams can be recorded as Q0, Ql, Q2 Qm-1, respectively. Among them, Q0>Q1>Q2>... > Qm-l. Each quality media data stream is divided into n segments, n is a natural number greater than or equal to 1, and the lengths of these segments are T0, T1, T2, ..., Tn-l, respectively. The generated code stream structure can be seen in the figure.
3。 3.
产生的 MPD文件可以包含媒体数据码流的质量、 时间长度和 Http地址 等信息。 如图 4所示的 MPD文件中, "Representation" 表示某一种质量的码 流, "Quality" 表示码流对应的质量, "segmentLength" 表示码流片段的时间 长度。 在实际中, 数据码流的质量可以通过各种能够反映码流质量的参数进 行衡量,例如码流中每帧画面的分辨率、码流的采样率和码流的码率( PSNR )。 需要说明的是, 图 4中仅仅展开示出了第 m-1个码流的各个片段在 MPD文 件中的信息, 实际上在 MPD文件中当然也具有其他码流的各个片段的信息。  The generated MPD file can contain information such as the quality of the media data stream, the length of time, and the Http address. In the MPD file shown in Figure 4, "Representation" represents a certain quality stream, "Quality" represents the quality of the stream, and "segmentLength" represents the length of the stream segment. In practice, the quality of the data stream can be measured by various parameters that reflect the quality of the stream, such as the resolution of each frame in the stream, the sample rate of the stream, and the code rate (PSNR) of the stream. It should be noted that only the information of each segment of the m-1th code stream in the MPD file is expanded in Fig. 4, and in fact, the information of each segment of the other code stream is of course also present in the MPD file.
步骤 S202: 服务器定义同一流媒体内容的某一特定质量的流媒体数据码 流的实际价格, 作为标准价格。 在实际中, 可以定义对同一流媒体内容生成 的多种不同质量中的媒体数据码流中最高质量的媒体数据码流的价格, 当然 也可以定义当中最低质量的多媒体数据码流的价格。 Step S202: The server defines an actual price of a specific quality streaming media data stream of the same streaming media content as a standard price. In practice, the price of the highest quality media data stream in the media data streams of the plurality of different qualities generated for the same streaming content can be defined, of course It is also possible to define the price of the lowest quality multimedia data stream.
步骤 S203 :服务器基于自适应流媒体数据码流的质量高低, 对同一流媒 体内容的不同质量的媒体数据码流定义质量价格率, 该质量价格率反映了该 质量的数据码流的价格与步骤 S202中定义的标准价格之间的比例,并且质量 越高, 该比例越大; 质量越氏, 该比例越小。  Step S203: The server defines a quality price rate for the media data stream of different quality of the same streaming media content based on the quality of the adaptive streaming media data stream, and the quality price rate reflects the price and the step of the quality data stream. The ratio between the standard prices defined in S202, and the higher the quality, the larger the ratio; the higher the mass, the smaller the ratio.
例如, 如果定义质量最高的媒体数据码流的价格作为标准价格, 即定义 了质量为 Q0的媒体数据码流为标准价格, 不妨记为 C。那么各个质量的媒体 数据的质量价格率将满足: For example, if the price of the highest quality media data stream is defined as the standard price, that is, the media data stream with the quality Q0 is defined as the standard price, it may be recorded as C. Then the quality price rate of each quality media data will satisfy:
Figure imgf000008_0001
Figure imgf000008_0001
在实际中,可以设定质量阈值 QT1 ,对于只有观看的数据码流质量不低于 这个阈值时才进行相应的计费, 那么对于质量价格率就有如下的约束条件: In practice, the quality threshold Q T1 can be set, and the corresponding charging is performed when the quality of the data stream only viewed is not lower than the threshold. Then, for the quality price rate, the following constraints are imposed:
Ri=0,如果 Qi<QT1 Ri=0, if Qi<Q T1
其中 i e {0,1,2,...,m-l}。  Where i e {0,1,2,...,m-l}.
当然,也可以设定质量阈值 QT2,对于观看的数据码流质量高于这个阈值 时采用相同的费率计算, 那么对于质量价格率就有如下的约束条件: Of course, the quality threshold Q T2 can also be set. When the quality of the viewed data stream is higher than the threshold, the same rate calculation is used. Then, for the quality price rate, the following constraints are imposed:
Ri=l,如果 Qi>QT2 Ri=l if Qi>Q T2
其中 i e {0,1,2,...,m-l} 步骤 S204:服务器将上述定义的质量价格率传递给终端,在本实施例中, 服务器可以将质量价格率加入到生成的 MPD文件中发送给终端。  Wherein IE {0, 1, 2, ..., ml} 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 to the generated MPD file for sending. Give the terminal.
由此 J良务器将质量价格率加入到 MPD文件中所生成的新的文件可以称 为 PMPD文件。  The new file generated by the J server adding the quality price rate to the MPD file can be called a PMPD file.
图 5示出了在图 4中的 MPD文件的基础上加入质量价格率形成的 PMPD 文件的内容, 其中 QualityPriceRatei表示第 i个码流对应的质量价格率, {0,1,2, ...,m-l}。 方式; 还可以放在用户终端的权限数据文件中传递至终端, 一般地, 用户权 限数据文件包含如下参数: 内容密钥、 有效期开始时间、 有效期结束时间、 观看权限(浏览、 下载、 转发等)等; 质量价格率也可以以其他的方式单独 传递至终端。 FIG. 5 shows the content of the PMPD file formed by adding the quality price rate based on the MPD file in FIG. 4, where QualityPriceRatei represents the quality price rate corresponding to the i-th code stream, {0, 1, 2, ... , ml}. Mode; can also be transferred to the terminal in the permission data file of the user terminal, generally, the user right The limit data file contains the following parameters: content key, expiration date start time, expiration date end time, viewing rights (browsing, downloading, forwarding, etc.); the quality price rate can also be separately transmitted to the terminal in other ways.
步骤 S205: 终端解析 PMPD文件中的信息, 获得 MPD文件中本身具有 的有关码流的质量、 时间长度和 Http地址等信息, 还可以获得加入其中的各 个码流的质量价格率信息。  Step S205: The terminal parses the information in the PMPD file, obtains information about the quality, time length, and Http address of the code stream in the MPD file, and obtains the quality price rate information of each code stream added thereto.
在实际中, 可以通过参数标识来解析上述各个参数以及参数的数值。 当然,如果质量价格率信息不是加入到 MPD文件中,那么终端需要通过 传递质量价格率的文件进行解析得到质量价格率信息 , 如果质量价格率信息 是通过其他形式单独传递给终端的, 那么终端只需要解析该单独传递的信息 即可得到质量价格率信息。  In practice, the above parameters and the values of the parameters can be resolved by parameter identification. Of course, if the quality price rate information is not added to the MPD file, the terminal needs to parse the quality price rate information to obtain the quality price rate information. If the quality price rate information is separately transmitted to the terminal through other forms, then the terminal only The quality price rate information can be obtained by parsing the separately transmitted 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, and the process of the adaptive code stream includes: determining, according to its own processing capability of the media data and the current network condition (for example, bandwidth), the quality of the currently requested code stream. .
终端自身对媒体数据的处理能力可以通过读取终端的硬件设置信息获 取; 而当前的网络状况可以通过读取网络设置信息获取。 在综合上面两个因 素进行确定应请求的码流的质量时, 可以以两个因素中较低的为标准确定应 请求的码流的质量。  The terminal's own processing capability for the 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 combining the above two factors to determine the quality of the code stream that should be requested, the quality of the code stream that should be requested can be determined by the lower of the two factors.
确定的当前应请求的码流的质量应当属于服务器所定义的码流质量, 例 如通过 PMPD文件或者其他文件携带的码流质量, 但是在实际中, 在考虑媒 体数据的处理能力以及当前的网络带宽所直接确定的码流质量往往与服务器 预先定义的码流质量之间不能完全匹配, 因此这就存在到底将 PMPD文件中 的哪个码流的质量作为确定的当前应请求的码流的质量的问题。 在本实施例 中, 采用比较的方法来确定, 具体地, 若通过考虑媒体数据的处理能力以及 当前的网络带宽所直接确定的码流质量为 q, 则比较寻找 PMPD文件中 m种 码流质量中最接近该 q并且不大于 q的那个码流质量就是最终确定的当前应 请求的码流的质量。 以码流质量的参数包括码率为例, 假如通过媒体数据的 处理能力以及当前的网络带宽确定当前能够处理的最大码率为 B 的媒体码 流, 那么通过比较 PMPD文件中的众多码流的质量中的码率参数, 发现质量 为 QB的码流的码率是小于 B中的最大的, 因此确定当前应该请求质量为 QB 的码流片段。 The quality of the currently requested code stream determined should belong to the code stream quality defined by the server, such as the quality of the code stream carried by the PMPD file or other files, but in practice, the processing power of the media data and the current network bandwidth are considered. The directly determined code stream quality often does not exactly match the server's predefined code stream quality, so there is a question of which code stream in the PMPD file is used as the quality of the currently requested code stream. . In this embodiment, a comparison method is used to determine, specifically, if the quality of the code stream directly determined by considering the processing capability of the media data and the current network bandwidth is q, the m types in the PMPD file are compared. The code stream quality that is closest to the q and not greater than q in the code stream quality is the quality of the currently determined code stream that should be requested. The code stream quality parameter includes a code rate example. If the media code stream with the maximum code rate B that can be currently processed is determined by the processing capability of the media data and the current network bandwidth, then by comparing the plurality of code streams in the PMPD file. The code rate parameter in the quality finds that the code rate of the code stream of quality Q B is smaller than the maximum of B, so it is determined that the code stream segment of quality Q B should be requested at present.
由此可见, 在本发明实施例中, 终端需要根据当前的实际情况自适应地 选择接下来接收的码流的质量。 假设最终终端接收整个流媒体内容完成所经 历的码流片段的选择过程如图 6所示, 其中 S 表示质量为 的码流的第 j+1 个码流片段, 在各个质量的码流之间划过的实线表示在各个时间片段的所选 择的码流片段的选择轨迹, 最终由终端完全接收完成的媒体数据码流是由 Therefore, in the embodiment of the present invention, the terminal needs to adaptively select the quality of the next received code stream according to the current actual situation. It is assumed that the selection process of the code stream segment experienced by the final terminal receiving the entire streaming media content is as shown in FIG. 6, where S represents the j+1th code stream segment of the code stream of quality, between the streams of each quality. The crossed solid line indicates the selected trajectory of the selected code stream segment at each time segment, and finally the media data code stream completely received by the terminal is
S0,0、 S0,i ,
Figure imgf000010_0001
n个码流片段组成的。
S 0 , 0 , S 0 , i ,
Figure imgf000010_0001
Composed of n code stream segments.
步骤 S207: 终端在针对每个时间片段自适应选择码流片段后, 会根据 PMPD文件中解析出的该码流片段的地址下载内容, 并播放该片段的内容。  Step S207: After the terminal adaptively selects the code stream segment for each time segment, the terminal downloads the content according to the address of the code stream segment parsed in the PMPD file, and plays 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, the terminal parses the MPD original file.
步骤 S208: 终端根据在同一流媒体内容播放的各个时间片段内所选择的 码流片段的质量, 统计该流媒体内容的付费率 p。  Step S208: The terminal counts the payment rate p of the streaming media content according to the quality of the selected stream segment in each time segment played by the same streaming media content.
在本实施例中可以采用三种具体的统计付费率的方式, 分别为: 方式 1 : 统计不同码流质量的媒体数据码流的观看长度, 其具体过程为: 在终端针对每个时间片段选择码流片段时 , 记录码流片段所在码流的质 量和码流片段的时间长度, 最后将流媒体内容播放过程中的选择的所有码流 片段的质量价格率按照该质量价格率的权重因子进行加权求和, 得到付费率 p。 在计算加权求和时, 每个码流片段的权重因子为该码流片段的时间长度占 整个流媒体内容的码流的总时间长度的比例。  In this embodiment, three specific statistical payment rates may be adopted, which are: Mode 1: Statistics of the viewing length of the media data stream of different code streams, the specific process is: selecting for each time segment in the terminal When the code stream segment is recorded, the quality of the code stream in which the code stream segment is located and the time length of the code stream segment are recorded, and finally the quality price rate of all selected code stream segments in the streaming media content playing process is performed according to the weighting factor of the quality price rate. Weighted summation, and the payment rate p is obtained. In calculating the weighted summation, the weighting factor of each stream segment is the ratio of the length of time of the stream segment to the total length of time of the stream of the entire streaming media content.
例如, 假如 T 为第 i+1 个被选择的码流片段的时间长度, 其中 i e {0,1,2,...,η-1 }。 而整个流媒体内容的码流的总时间长度为 T= To+T^.-.+Tn.^ 则上述加权求和计算付费率的过程可以表述为: For example, if T is the length of time of the i+1th selected codestream segment, where ie {0, 1, 2, ..., η-1 }. The total length of the code stream of the entire streaming media content is T= To+T^.-.+Tn.^ Then the process of calculating the payment rate by the above weighted summation can be expressed as:
0Ι + + T2R2' +... + H 0 Ι + + T 2 R 2 ' +... + H
Ρ '  Ρ '
Τ 其中, R' {R。, 是第 i+1个被选择的媒体码流片段所在码流 的质量价格率。 例如, 假如码流片段 被选中, 则上述加权求和的计算公式 中, R' R  Τ where R' {R. , is the quality price rate of the code stream where the i+1th selected media stream segment is located. For example, if the stream segment is selected, then the above weighted summation formula, R' R
方式 2: 统计不同码流质量的媒体码流片段的切换频率, 其具体过程如 下:  Manner 2: The frequency of switching the media stream segments of different code streams is calculated. The specific process is as follows:
首先, 当相邻的两个时间片段所选择的码流片段的质量不同时, 判定发 生码流切换, 例如图 6中示出的码流片段选择过程中, 在选择第 3个时间片 段时, 由于第 2个时间片段选择的为码流片段 So 而接下来第 3个时间片段 选择的为码流片段 S^, 这两个相邻的码流片段所在的码流的质量不同, 因此 发生码流切换。  First, when the quality of the selected code stream segments of the two adjacent time segments are different, it is determined that the code stream switching occurs, for example, in the code stream segment selection process shown in FIG. 6, when the third time segment is selected, Since the second time segment selects the code stream segment So and the third time segment selects the code stream segment S^, the quality of the code streams in which the two adjacent code stream segments are located is different, so the code occurs. Stream switching.
接着, 统计整个流媒体内容播放所发生的码流切换的次数, 记为 L。 两个选中的码流片段之间设置切换标志位, 在发生码流切换时, 将对应的切 换标志位置为 1 , 否则置为 0。 最后计算所有标志位的和, 就得到了码流切换 的次数。 当然也可以设置一个寄存器, 初始置零, 每当发生码流切换时累加 Next, the number of times the code stream switching occurring in the entire streaming media content playback is counted is denoted as L. The switching flag is set between the two selected stream segments. When the code stream is switched, the corresponding switching flag is set to 1, otherwise it is set to 0. Finally, the sum of all the flag bits is calculated, and the number of code stream switching is obtained. Of course, you can also set a register, initially set to zero, accumulate each time a code stream switch occurs.
1 , 流媒体内容的所有码流片段选择完后, 该寄存器中的结果就是码流切换的 次数。 1. After all the stream segments of the streaming media content are selected, the result in this register is the number of times the stream is switched.
然后计算付费率 p, 付费率为流媒体内容播放过程中预设的码流切换次 数最大值中实际未发生码流切换的次数占上述预设的码流切换次数最大值的 比例。  Then, the charging rate p is calculated. The charging rate is the ratio of the number of times the code stream switching does not occur in the maximum number of times of the stream switching in the playback of the streaming media content, and the ratio of the maximum number of times of the preset stream switching.
上述预设的码流切换次数最大值等于流媒体内容播放过程中最多可以发 生码流切换次数。  The preset maximum number of code stream switching times is equal to the maximum number of stream switching times that can occur during streaming media content playback.
仍以图 6为例, 当流媒体内容的码流片段的个数为 n时, 那么不难得出 最多可以发生码流切换的次数为 n-1 , 即, 预设的码流切换次数的最大值为 n-1 , 则实际未发生码流切换的次数为 n-l-L。 因此计算付费率可以通过如下 公式实现: Still taking FIG. 6 as an example, when the number of stream segments of the streaming media content is n, it is not difficult to find that the number of times the code stream switching can occur at most is n-1, that is, the preset number of code stream switching times is the largest. Value For n-1, the number of times the code stream switching does not actually occur is nlL. Therefore, calculating the payment rate can be achieved by the following formula:
p=(n-l-L)/(n-l)  p=(n-l-L)/(n-l)
方式 3 : 统计不同码流质量的媒体码流片段的切换频率, 同时考量切换 的码流质量差距, 具体过程如下:  Mode 3: Calculate the switching frequency of media stream segments with different code stream quality, and consider the quality gap of the switched code streams. The specific process is as follows:
首先参照上述方式 2中的实现方案统计整个流媒体内容播放所发生的码 流切换的次数。  First, referring to the implementation scheme in the above manner 2, the number of times of code stream switching that occurs in the entire streaming media content playback is counted.
同时计算每次码流切换的距离 Dk, {0,1,2,... ,L-1 }, l≤Dk<m。 码流切 换的距离可以定义为发生码流切换处的前一码流片段的质量序号和后一码流 片段的质量序号之间的差的绝对值, 这里的码流片段的质量序号是根据该码 流片段所在码流的质量在同一流媒体内容的所有码流的质量中的排名确定 的。根据每次码流切换的距离 Dk统计播放流媒体内容过程中实际码流切换的 距离和。 At the same time, the distance D k of each code stream switching is calculated, {0, 1, 2, ..., L-1 }, l ≤ D k < m. The distance of the code stream switching may be defined as the absolute value of the difference between the quality sequence number of the previous code stream segment where the code stream switching occurs and the quality sequence number of the latter code stream segment, where the quality sequence number of the code stream segment is based on The quality of the code stream in which the code stream segment is located is determined by the ranking of the quality of all code streams of the same streaming media content. The distance sum of the actual code stream switching during the playback of the streaming media content is counted according to the distance D k of each code stream switching.
例如, 如果前一码流片段的码流质量为 , 后一码流片段的码流质量为 Qj , 则在这两个码流片段之间切换的距离为 |i-j| , 其中 I I是取绝对值的操作。  For example, if the code stream quality of the previous code stream segment is the code stream quality of the latter code stream segment is Qj, the distance between the two code stream segments is |ij|, where II is the absolute value. Operation.
接着计算付费率 p, 付费率为上述流媒体内容播放过程中能够产生的切 换码流的距离和的最大值减实际码流切换的距离和所得的差与上述能够产生 的切换码流的距离和的最大值的商。  Then, the charging rate p is calculated, and the charging rate is the maximum distance and the maximum value of the switching code stream that can be generated during the playback of the streaming media content, the distance of the actual code stream switching, and the distance between the obtained difference and the switch code stream that can be generated. The quotient of the maximum.
当同一流媒体内容具有 m种不同质量的媒体数据码流, 每个媒体数据码 流分成 n段码流片段时, 则上述播放该流媒体内容中能够产生的切换码流距 离之和的最大值的情况, 就是相邻两个时间片段之间都发生码流切换(即实 际的码流切换次数为 n-1 ), 并且码流切换始终在质量最低的码流和质量最高 的码流之间进行(每次的切换距离都是 m-1 ), 所以能够产生的切换码流距离 之和的最大值就等于 (n - 1) * (m - 1)。  When the same streaming media content has m different quality media data streams, and each media data stream is divided into n segments, the maximum value of the sum of the switching streams that can be generated in the streaming media content is played. The case is that code stream switching occurs between two adjacent time segments (ie, the actual number of code stream switching times is n-1), and the code stream switching is always between the lowest quality code stream and the highest quality code stream. This is done (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可以通过如下公式进行计算:
Figure imgf000012_0001
或 ν _ λ D0 + D1 + - + DL_1
Specifically, the payout rate p can be calculated by the following formula:
Figure imgf000012_0001
Or ν _ λ D 0 + D 1 + - + D L _ 1
(η - 1) * (m - 1) 步骤 S209: 根据步骤 S208中获得的付费率 p和之前定义的该流媒体内 容的特定质量的媒体数据码流的实际价格, 即标准价格 C, 计算得到用户观 看流媒体内容的实际费用。  (η - 1) * (m - 1) Step S209: Calculated according to the pay rate p obtained in step S208 and the actual price of the media data stream of the specific quality of the previously defined media content, that is, the standard price C. The actual cost of the user watching the streaming content.
对于后付费的方式, 系统会在用户观看完毕后扣除用户观看流媒体内容 的实际费用;  For the post-paid method, the system will deduct the actual cost of the user watching the streaming media content after the user has finished watching;
对于预付费的方式, 系统开始会按照标准价格先收取费用, 之后按照实 际费用多退少补。 例如如果系统按照最高质量的多媒体数据码流的价格定义 标准价格, 则用户在预付费时支出的将是最高可能支付的费用, 而当用户观 看完毕后, 系统计算出的实际费用往往低于这个标注价格, 因此系统还会将 二者的差额补偿给用户, 进行返还。  For the pre-paid method, the system will start to charge the fee according to the standard price, and then pay more and less 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 spend the highest possible payment when prepaid, and when the user finishes watching, the actual cost calculated by the system is often lower than this label. The price, so the system will also compensate the difference between the two to the user for return.
需要说明的是, 上述步骤 S208和步骤 S209可以由终端执行, 也可以由 中心控制设备执行, 例如在家庭网络中, 该执行步骤 S208和步骤 S209的中 心控制设备可以为家庭网络中的家庭网关设备、 控制中心或者 STB, 这样可 以通过中心控制设备可以实现对家庭中多个媒体终端的观看质量的统计和计 费。  It should be noted that the foregoing steps S208 and S209 may be performed by the terminal, or may be performed by the central control device. For example, in the home network, the central control device performing step S208 and step S209 may be a home gateway device in the home network. The control center or the STB can realize the statistics and charging of the viewing quality of multiple media terminals in the home through the central control device.
此外, 由于上述实施例中是采用终端驱动, 步骤 S206中是由终端驱动的 方式来选择码流片段的质量, 而在另替代的实施例中, 也可以采用服务器驱 动的方式来选择码流片段的质量,此时步骤 S206中将被替换为终端在播放流 媒体内容时, 针对各个时间片段, 服务器根据终端的处理能力和当前网络状 况选择终端下载的码流片段的质量, 并指示终端下载该质量的码流片段。 本发明实施例还相应提供一种流媒体服务的计费装置, 如图 7所示, 该 装置包括: 质量价格率获取单元 701、 付费率统计单元 702和计费单元 703。  In addition, since the terminal driving is adopted in the foregoing embodiment, the quality of the code stream segment is selected by the terminal driving manner in step S206, and in another alternative embodiment, the server stream driving method may also be used to select the code stream segment. The quality of the stream segment downloaded by the terminal is selected in step S206. The server selects the quality of the stream segment downloaded by the terminal according to the processing capability of the terminal and the current network condition for each time segment, and instructs the terminal to download the quality. A stream of quality streams. The embodiment of the present invention further provides a charging device for a streaming media service. As shown in FIG. 7, the device includes: a quality price rate obtaining unit 701, a charging rate statistical unit 702, and a charging unit 703.
其中, 质量价格率获取单元 701 , 用于获取服务器对同一流媒体内容的 不同质量的媒体数据流设定的质量价格率 , 每个质量的码流的质量价格率是 参考该质量的数据码流的实际价格与标准价格的关系确定的, 所述标准价格 为所述流媒体内容的一个特定质量的数据码流的实际价格。 The quality price rate obtaining unit 701 is configured to acquire the server for the same streaming media content. a quality price rate set by different quality media data streams, the quality price rate of each quality code stream being determined by reference to a relationship between an actual price of the quality data stream and a standard price, the standard price being the stream The actual price of a particular quality data stream for media content.
上述每个质量的码流的质量价格率可以等于该质量的数据码流的质量价 格率等于该质量的数据码流的实际价格与标准价格之间的比例。  The quality price rate of each of the above-described code streams may be equal to the ratio of the quality price rate of the data stream of the quality equal to the actual price of the data stream of the quality to the standard price.
质量价格率设定的具体过程以及标准价格的定义与上述方法实施例中的 相关内容相同, 这里不再贅述,  The specific process of setting the quality price rate and the definition of the standard price are the same as those in the above method embodiment, and will not be described here.
付费率统计单元 702, 用于根据终端在播放流媒体内容过程中针对各个 时间片段内所下载的码流片段的质量, 根据所述质量价格率确定播放该流媒 体内容的付费率。 确定付费率的具体方式同样可以采用上述实施例中所列举 的三种方式, 根据这三种方式, 付费率统计单元 702可以有如图 8-10三种具 体的结构。  The payment rate statistics unit 702 is configured to determine a payment rate for playing the streaming media content according to the quality price rate according to the quality of the code stream segment downloaded by the terminal in each of the time segments during the playing of the streaming media content. The specific manner of determining the payment rate can also adopt the three modes listed in the above embodiments. According to these three modes, the payment rate statistical unit 702 can have three specific structures as shown in FIG. 8-10.
计费单元 703 , 用于根据得到的付费率和所述标准价格得到终端播放所 述流媒体内容的实际费用, 并依据该实际费用对用户进行计费。  The charging unit 703 is configured to obtain, according to the obtained charging rate and the standard price, an actual fee for the terminal to play the streaming media content, and charge the user according to the actual fee.
计费单元 703可以计算所述得到的付费率和所述标准价格之间的乘积, 从而得到终端播放流媒体内容的实际费用。  The billing unit 703 can calculate a product between the obtained pay rate and the standard price, thereby obtaining an 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具体包括: 码流片段信息记录单元 70211 , 用于在终端针对每个时间片段下载码流 片段时, 记录码流片段的质量和码流片段的时间长度;  As shown in FIG. 8, in a specific embodiment, the charging rate statistics unit 702 specifically includes: a stream segment information recording unit 70211, configured to record a stream segment when the terminal downloads a stream segment for each time segment. Quality and length of the stream segment;
加权求和单元 70221 , 用于对媒体播放内容过程中下载的所有码流片段 所在的码流的质量价格率进行加权求和, 得到付费率; 所述加权求和过程中, 每个码流片段的码流的质量价格率的权重因子为该码流片段的时间长度占所 有码流片段的时间长度总和的比例。  a weighting and summing unit 70221, configured to perform weighted summation on a quality price rate of a code stream in which all the stream segments downloaded in the media playing content process are obtained, to obtain a charging rate; in the weighted summation process, each code stream segment The weighting factor of the quality rate of the code stream is the ratio of the length of time of the stream segment to the sum of the lengths of time of all stream segments.
如图 9所示, 在另一种具体的实施例中, 付费率统计单元 702具体包括: 码流切换检测单元 70212, 用于在终端所下载的相邻两个时间片段的码 流片段的质量不同时, 判定发生码流切换; 码流切换次数统计单元 70222, 用于统计整个流媒体内容播放过程中所 发生的码流切换的次数; As shown in FIG. 9, in another specific embodiment, the charging rate statistics unit 702 specifically includes: a code stream switching detecting unit 70212, and a quality of a stream segment of the adjacent two time segments downloaded by the terminal. At the same time, it is determined that the code stream switching occurs; The code stream switching number statistics unit 70222 is configured to count the number of times the code stream switching occurs during the entire streaming media content playing process;
比例计算单元 70232, 用于计算流媒体内容播放过程中最多可以发生的 码流切换次数中实际未发生码流切换的次数占所述最多可以发生码流切换次 数的比例, 得到付费率。  The ratio calculation unit 70232 is configured to calculate a ratio of the number of times the code stream switching does not occur in the number of code stream switching times that can occur at the time of playing the streaming media content, and the ratio of the number of times the code stream is switched may be generated, and obtain a payment rate.
如图 10所示,在另一种具体的实施例中,付费率统计单元 702具体包括: 码流切换检测单元 70213 , 用于在终端所下载的相邻两个时间片段的码 流片段的质量不同时, 判定发生码流切换;  As shown in FIG. 10, in another specific embodiment, the charging rate statistics unit 702 specifically includes: a code stream switching detecting unit 70213, and a quality of a stream segment of the adjacent two time segments downloaded by the terminal. At the same time, it is determined that the code stream switching occurs;
单次距离计算单元 70223 , 用于记录每次码流切换的距离, 所述码流切 换的距离为发生码流切换处的前一码流片段的质量序号和后一码流片段的质 量序号之间的差的绝对值;  The single distance calculation unit 70223 is configured to record the distance of each code stream switching, where the distance of the code stream switching is the quality serial number of the previous code stream segment where the code stream switching occurs and the quality serial number of the latter code stream segment. The absolute value of the difference between;
切换距离求和统计单元 70233 , 用于统计整个流媒体内容播放过程中实 际码流切换的距离和;  The switch distance summation statistics unit 70233 is configured to calculate a distance between the actual code stream switching during the entire streaming media content playing process;
码流切换次数统计单元 70243 , 用于统计整个流媒体内容播放过程中所 发生的码流切换的次数;  The code stream switching number statistics unit 70243 is configured to count the number of times the code stream switching occurs during the entire streaming media content playing process;
第二比例计算单元 70253 , 用于计算流媒体内容播放过程中能够产生的 切换码流的距离和的最大值减去实际码流切换的距离和所得的差与上述能够 产生的切换码流的距离和的最大值的商, 得到付费率。  The second ratio calculating unit 70253 is configured to calculate a distance and a maximum value of the switching code stream that can be generated during the playing of the streaming media content, subtract the distance of the actual code stream switching, and the distance between the obtained difference and the generated switching code stream. And the quotient of the maximum value, get the payment rate.
此外, 对于服务器是通过将质量价格率信息加入到特定的文件中发送的 情况, 上述计费装置中的质量价格率获取单元具体包括: 解析单元和结果获 取单元。 其中解析单元用于解析服务器发送的包含对同一流媒体内容的不同 质量的媒体数据码流设定的质量价格率信息的文件, 所述文件中, 每个质量 的码流的质量价格率是参考该质量的数据码流的实际价格与标准价格的关系 确定的, 所述标准价格为所述流媒体内容的一个特定质量的数据码流的实际 价格; 结果获取单元用于根据解析单元的解析结果获取所述质量价格率。 这 里的文件可以是 PMPD文件, 也可以是用户权限数据文件。 本发明实施例还相应提供一种网络系统, 该网络系统包括上述实施例中 的流媒体服务的计费装置、 服务器和终端。 该终端包括下载单元, 该下载单 元用于在播放流媒体内容过程中, 针对各个时间片段下载码流片段。 In addition, for the case where the server is sent by adding the quality price rate information to the specific file, the quality price rate obtaining unit in the charging device specifically includes: a parsing unit and a result obtaining unit. The parsing unit is configured to parse a file sent by the server that includes quality price rate information set for different quality media data streams of the same streaming media content, where the quality price rate of each quality stream is a reference. Determining the relationship between the actual price of the quality data stream and the standard price, the standard price being the actual price of the data stream of a particular quality of the streaming media content; the result obtaining unit is configured to analyze the result according to the parsing unit Obtain the quality price rate. The file here can be a PMPD file or a user rights data file. The embodiment of the present invention further provides a network system, where the network system includes the charging device, the server, and the terminal of the streaming media service in the foregoing embodiment. The terminal includes a downloading unit, and the downloading unit is configured to download a stream segment for each time segment during the playing of the streaming media content.
正如上文所述, 终端下载码流片段的质量可以终端驱动的方式, 也可以 采用服务器驱动的方式。  As mentioned above, the quality of the terminal download stream segment can be either terminal driven or server driven.
当采用终端驱动的方式时, 上述终端还包括: 码流片段选择单元, 用于 针对各个时间片段, 根据终端自身的处理能力和当前网络状况选择下载的码 流片段的质量, 并通知所述下载单元下载该质量的码流片段。  When the terminal is used, the terminal further includes: a code stream segment selecting unit, configured to select, according to the processing capability of the terminal and the current network condition, the quality of the downloaded code stream segment for each time segment, and notify the downloading The unit downloads the stream segment of the quality.
当采用终端驱动的方式时, 上述终端还包括: 码流片段选择结果接收单 元, 用于接收服务器针对各个时间片段, 根据终端的处理能力和当前网络状 况选择终端下载的码流片段的质量, 并通知所述下载单元下载该质量的码流 片段。  When the terminal driving mode is adopted, the terminal further includes: a code stream segment selection result receiving unit, configured to receive, by the server, the quality of the code stream segment downloaded by the terminal according to the processing capability of the terminal and the current network condition for each time segment, and The download unit is notified to download the code stream segment of the quality.
在实际中, 上述网络系统中的流媒体服务的计费装置可以设置在每个终 端中, 此时流媒体服务的计费装置仅仅负责其所在的终端的流媒体服务计费 功能。 当然在实际中, 也可能在一个特定的网络范围内, 由一个中心控制设 备负责统一管理其所管辖的网络范围内的所有终端 , 此时上述流媒体服务的 计费装置可以设置在每个中心控制设备中, 用于负责该中心控制设备所管辖 的网络范围内的所有终端的流媒体服务计费功能。  In practice, the charging device of the streaming media service in the network system may be set in each terminal, and the charging device of the streaming media service is only responsible for the streaming media service charging function of the terminal where the terminal is located. Of course, in practice, it is also possible that a central control device is responsible for uniformly managing all terminals within the network under its jurisdiction within a specific network range. At this time, the charging device of the above streaming media service can be set in each center. In the control device, it is responsible for the streaming service charging function of all terminals in the network area under the jurisdiction of the central control device.
上述中心控制设备所管辖的网络可以为家庭网络。  The network under the control of the above central control device may be a home network.
具体的, 如附图 11所示, 上述网络系统包括:  Specifically, as shown in FIG. 11, the foregoing network system includes:
服务器 1101 : 用于产生不同质量的媒体数据码流片段供终端下载播放。 流媒体服务的计费装置 1103: 用于获取同一流媒体内容的不同质量的媒 体数据码流设定的质量价格率 , 每个质量的码流的质量价格率是参考该质量 的数据码流的实际价格与标准价格的关系确定的, 所述标准价格为所述流媒 体内容的一个特定质量的数据码流的实际价格; 根据在播放流媒体内容过程 中针对各个时间片段内所下载的码流片段的质量, 根据所述质量价格率确定 播放该流媒体内容的付费率; 根据所述得到的付费率和所述标准价格得到终 端播放所述流媒体内容的实际费用; 依据该实际费用对用户进行计费。 The server 1101 is configured to generate media data stream segments of different quality for downloading and playing by the terminal. The charging device 1103 of the streaming media service is configured to obtain a quality price rate set by different media data streams of the same streaming media content, and the quality price rate of each quality code stream is referenced to the quality data stream of the quality Determining the relationship between the actual price and the standard price, the standard price being the actual price of the data stream of a specific quality of the streaming media content; according to the code stream downloaded for each time segment in the process of playing the streaming media content a quality of the segment, determining a payment rate for playing the streaming media content according to the quality price rate; obtaining the final payment rate according to the obtained payment rate and the standard price Ending the actual cost of the streaming media content; charging the user based on the actual cost.
台式电脑 1105: 用于在播放流媒体内容过程中, 针对各个时间片段下载 码流片段。  Desktop 1105: Used to download stream segments for each time segment during streaming content.
掌上电脑 1107: 用于在播放流媒体内容过程中, 针对各个时间片段下载 码流片段。  Handheld 1107: Used to download stream segments for each time segment during streaming content.
笔记本电脑 1109: 用于在播放流媒体内容过程中, 针对各个时间片段下 载码流片段。  Laptop 1109: Used to download stream segments for each time segment during streaming content.
上述列举的终端类型只是一种示意, 不构成对适用终端类型的限制, 其 他具有同等功能的终端仍应包括于本发明实施例的范围之内。  The types of terminals listed above are merely illustrative and do not constitute a limitation on the type of terminal to be applied. Other terminals having equivalent functions are still 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 implemented by means of software plus necessary general hardware including general-purpose integrated circuits, general-purpose CPUs, general-purpose memories, general-purpose components, and the like. Of course, it can also be realized by dedicated hardware including an application specific integrated circuit, a dedicated CPU, a dedicated memory, a dedicated component, etc., but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer. A hard disk or optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods of various embodiments of the present invention.
以上方法实施例中的各个步骤的顺序可以根据实际应用需要进行调整, 各个步骤可以根据实际应用需要进行组合形成新的方案。 以上装置实施例中 的各个单元、 模块可以根据实际应用需要进行划分, 或者重新组合。  The sequence of the steps in the foregoing method embodiments may be adjusted according to actual application requirements, and each step may be combined to form a new solution according to actual application requirements. The units and modules in the above device embodiments may be divided according to actual application requirements, or may be recombined.
以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的普 通技术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润 饰, 这些改进和润饰也应视为本发明的保护范围。  The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.

Claims

权利要求书 Claim
1、 一种流媒体服务的计费方法, 其特征在于, 包括: A charging method for a streaming media service, characterized in that:
获取对同一流媒体内容的不同质量的媒体数据码流设定的质量价格率, 每个质量的码流的质量价格率是参考该质量的数据码流的实际价格与标准价 格的关系确定的, 所述标准价格为所述流媒体内容的一个特定质量的数据码 流的实际价格;  Obtaining a quality price rate set for a different quality media data stream of the same streaming media content, the quality price rate of each quality code stream being determined by referring to a relationship between an actual price of the quality data stream and a standard price, The standard price is an actual price of a particular quality data stream of the streaming media content;
根据在播放流媒体内容过程中针对各个时间片段内所下载的码流片段的 质量 , 根据所述质量价格率确定播放该流媒体内容的付费率;  Determining a pay rate for playing the streaming media content according to the quality price rate according to the quality of the stream segment downloaded in each time segment during the playing of the streaming media content;
根据所述得到的付费率和所述标准价格得到终端播放所述流媒体内容的 实际费用;  Obtaining an actual fee for the terminal to play the streaming media content according to the obtained payment rate and the standard price;
依据该实际费用对用户进行计费。  The user is charged based on the actual cost.
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述质量价格率 确定播放该流媒体内容的付费率包括:  2. The method according to claim 1, wherein the determining a charging rate for playing the streaming media content according to the quality price rate comprises:
针对每个时间片段下载码流片段时, 记录码流片段的质量和码流片段的 时间长度;  When downloading a stream segment for each time segment, recording the quality of the stream segment and the length of time of the stream segment;
对媒体播放内容过程中下载的所有码流片段所在的码流的质量价格率按 照该质量价格率的权重因子进行加权求和, 得到付费率;  The quality price rate of the code stream in which all the stream segments downloaded during the media playing content are weighted and summed according to the weighting factor of the quality price rate, and the payment rate is obtained;
所述对媒体播放内容过程中下载的所有码流片段所在的码流的质量价格 率进行加权求和过程中, 每个码流片段的码流的质量价格率的权重因子为该 码流片段的时间长度占所有码流片段的时间长度总和的比例。  In the process of weighting and summing the quality price rate of the code stream in which all the stream segments downloaded during the media playing content process, the weighting factor of the quality price rate of the code stream of each stream segment is the stream segment The ratio of the length of time to the sum of the lengths of time of all stream segments.
3、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述质量价格率 确定播放该流媒体内容的付费率包括:  The method according to claim 1, wherein the determining, according to the quality price rate, the charging rate for playing the streaming media content comprises:
统计整个流媒体内容播放过程中所发生的码流切换次数, 其中所发生的 码流切换是指终端所下载的相邻两个时间片段的码流片段的质量不同;  Counting the number of code stream switchings that occur during the playback of the entire streaming media content, wherein the code stream switching that occurs is that the quality of the code stream segments of the adjacent two time segments downloaded by the terminal is different;
计算流媒体内容播放过程中预设的码流切换次数最大值中实际未发生码 流切换的次数占所述码流切换次数最大值的比例, 得到付费率。  The ratio of the number of times the code stream switching does not occur in the maximum number of code stream switching times preset in the playback of the streaming media content is calculated as the ratio of the maximum number of switching times of the code stream, and the charging rate is obtained.
4、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述质量价格率 确定播放该流媒体内容的付费率包括: 记录每次发生码流切换的距离, 其中, 发生码流切换是指终端所下载的 相邻两个时间片段的码流片段的质量不同, 所述码流切换的距离为发生码流 切换处的前一码流片段的质量序号和后一码流片段的质量序号之间的差的绝 对值; The method according to claim 1, wherein the determining, according to the quality price rate, the charging rate for playing the streaming media content comprises: Recording the distance of the code stream switching every time, wherein the code stream switching refers to the quality of the code stream segments of the two adjacent time segments downloaded by the terminal, and the distance of the code stream switching is where the code stream switching occurs. The absolute value of the difference between the quality serial number of the previous stream segment and the quality sequence number of the latter stream segment;
统计整个流媒体内容播放过程中所发生的码流切换次数、 以及统计实际 码流切换的距离和;  Counting the number of code stream switchings that occur during the playback of the entire streaming media content, and counting the distance between the actual code stream switching;
计算流媒体内容播放过程中能够产生的切换码流的距离和的最大值减去 实际码流切换的距离和所得的差与上述能够产生的切换码流的距离和的最大 值的商, 得到付费率。  Calculating the quotient of the distance and the maximum value of the switching code stream that can be generated during the playback of the streaming media content minus the distance of the actual code stream switching and the obtained difference between the distance and the maximum value of the distance and the above-mentioned switchable code stream can be generated. rate.
5、 根据权利要求 1所述的方法, 其特征在于, 所述获取对同一流媒体内 容的不同质量的媒体数据码流设定的质量价格率包括:  The method according to claim 1, wherein the obtaining a quality price rate set for a different quality media data stream of the same streaming media content comprises:
通过解析服务器发送的包含对同一流媒体内容的不同质量的媒体数据码 流设定的质量价格率信息的文件获得所述质量价格率。  The quality price rate is obtained by parsing a file sent by the server containing quality price rate information set for a different quality media data stream of the same streaming media content.
6、 根据权利要求 5所述的方法, 其特征在于, 所述包含对同一流媒体内 容的不同质量的媒体数据码流设定的质量价格率信息的文件包括:  The method according to claim 5, wherein the file containing quality price rate information set for different quality media data streams of the same streaming media content comprises:
加入所述质量价格率信息的媒体呈现描述 MPD 文件或加入所述质量价 格率信息的用户权限数据文件。  The media joining the quality rate information presents a user rights data file describing the MPD file or joining the quality rate information.
7、 根据权利要求 1至 6中任一项所述的方法, 其特征在于, 所述方法还 包括:  The method according to any one of claims 1 to 6, wherein the method further comprises:
终端在播放流媒体内容时, 针对各个时间片段, 根据所述终端自身的处 理能力和当前网络状况选择下载的码流片段的质量, 并下载该质量的码流片 段。  When playing the streaming media content, the terminal selects the quality of the downloaded code stream segment according to the processing capability of the terminal itself and the current network condition for each time segment, and downloads the code stream segment of the quality.
8、 根据权利要求 1至 6中任一项所述的方法, 其特征在于, 所述每个质 量的码流的质量价格率等于该质量的数据码流的实际价格与所述标准价格之 间的比例。  The method according to any one of claims 1 to 6, wherein the quality price rate of the code stream of each quality is equal to the actual price of the data stream of the quality and the standard price proportion.
9、 一种流媒体服务的计费装置, 其特征在于, 包括:  A charging device for a streaming media service, comprising:
质量价格率获取单元, 用于获取对同一流媒体内容的不同质量的媒体数 据流设定的质量价格率, 每个质量的码流的质量价格率是参考该质量的数据 码流的实际价格与标准价格的关系确定的, 所述标准价格为所述流媒体内容 的一个特定质量的数据码流的实际价格; a quality price rate obtaining unit, configured to obtain a quality price rate set for different quality media data streams of the same streaming media content, and a quality price rate of each quality code stream is an actual price and a reference to the quality data stream of the quality Determined by the relationship of the standard price, the standard price is the streaming media content The actual price of a particular quality data stream;
付费率统计单元, 用于根据在播放流媒体内容过程中针对各个时间片段 内所下载的码流片段的质量, 根据所述质量价格率确定播放该流媒体内容的 付费率;  a payment rate statistics unit, configured to determine, according to the quality price rate, a payment rate for playing the streaming media content according to a quality of the code stream segment downloaded in each time segment during the playing of the streaming media content;
计费单元, 用于根据所述得到的付费率和所述标准价格得到终端播放所 述流媒体内容的实际费用, 并依据该实际费用对用户进行计费。  And a charging unit, configured to obtain, according to the obtained charging rate and the standard price, an actual fee for the terminal to play the streaming media content, and charge the user according to the actual fee.
10、 根据权利要求 9所述的装置, 其特征在于, 所述付费率统计单元包 括:  10. The apparatus according to claim 9, wherein the payment rate statistics unit comprises:
码流片段信息记录单元, 用于针对每个时间片段下载码流片段时, 记录 码流片段的质量和码流片段的时间长度;  a stream segment information recording unit, configured to record a quality of the stream segment and a length of the stream segment when the stream segment is downloaded for each time segment;
加权求和单元, 用于对媒体播放内容过程中下载的所有码流片段所在的 码流的质量价格率按照该质量价格率的权重因子进行加权求和,得到付费率; 所述对媒体播放内容过程中下载的所有码流片段所在的码流的质量价格率进 行加权求和过程中, 每个码流片段的码流的质量价格率的权重因子为该码流 片段的时间长度占所有码流片段的时间长度总和的比例。  a weighted summation unit, configured to perform weighting and summing the quality price rate of the code stream in which all the stream segments downloaded in the process of playing the media content are weighted according to the weighting factor of the quality price rate, to obtain a charging rate; In the process of weighted summation of the quality price rate of the code stream in which all the stream segments downloaded in the process are performed, the weighting factor of the quality price rate of the code stream of each code stream segment is the time length of the code stream segment occupies all the code streams. The ratio of the sum of the lengths of the fragments.
11、 根据权利要求 9所述的装置, 其特征在于, 所述付费率统计单元包 括:  11. The apparatus according to claim 9, wherein the payment rate statistics unit comprises:
码流切换检测单元, 用于在终端所下载的相邻两个时间片段的码流片段 的质量不同时, 判定发生码流切换;  a code stream switching detecting unit, configured to determine that a code stream switching occurs when the quality of the code stream segments of the two adjacent time segments downloaded by the terminal are different;
码流切换次数统计单元, 用于统计整个流媒体内容播放过程中所发生的 码流切换的次数;  The code stream switching number statistics unit is configured to count the number of times the code stream switching occurs during the entire streaming media content playing process;
第一比例计算单元, 用于计算流媒体内容播放过程中预设的码流切换次 数最大值中实际未发生码流切换的次数占所述码流切换次数最大值的比例, 得到付费率。  The first ratio calculating unit is configured to calculate a ratio of the number of times the code stream switching does not occur in the maximum number of times of the preset stream switching in the playback of the streaming media content, and the ratio of the maximum number of times of the stream switching, to obtain a charging rate.
12、 根据权利要求 9所述的装置, 其特征在于, 所述付费率统计单元包 括:  12. The apparatus according to claim 9, wherein the payment rate statistics unit comprises:
码流切换检测单元, 用于在终端所下载的相邻两个时间片段的码流片段 的质量不同时, 判定发生码流切换;  a code stream switching detecting unit, configured to determine that a code stream switching occurs when the quality of the code stream segments of the two adjacent time segments downloaded by the terminal are different;
单次距离计算单元, 用于记录每次发生码流切换的距离, 所述码流切换 的距离为发生码流切换处的前一码流片段的质量序号和后一码流片段的质量 序号之间的差的绝对值; a single distance calculation unit, configured to record a distance at which a code stream switching occurs each time, the code stream switching The distance is the absolute value of the difference between the quality sequence number of the previous stream segment at which the code stream switch occurs and the quality sequence number of the latter stream segment;
切换距离求和统计单元, 用于统计整个流媒体内容播放过程中实际码流 切换的距离和;  The switching distance summation statistics unit is configured to count the distance between the actual code stream switching during the entire streaming media content playing process;
码流切换次数统计单元, 用于统计整个流媒体内容播放过程中所发生的 码流切换的次数;  The code stream switching number statistics unit is configured to count the number of times the code stream switching occurs during the entire streaming media content playing process;
第二比例计算单元, 用于计算流媒体内容播放过程中能够产生的切换码 流的距离和的最大值减去实际码流切换的距离和所得的差与上述能够产生的 切换码流的距离和的最大值的商, 得到付费率。  a second ratio calculating unit, configured to calculate a distance and a maximum value of the switching code stream that can be generated during the playing of the streaming media content, subtract the distance of the actual code stream switching, and obtain a distance difference between the generated difference and the generated switching code stream. The maximum value of the quotient, get the pay rate.
13、 根据权利要求 9所述的装置, 其特征在于, 所述质量价格率获取单 元包括:  13. The apparatus according to claim 9, wherein the quality price rate obtaining unit comprises:
解析单元, 用于解析服务器发送的包含对同一流媒体内容的不同质量的 媒体数据码流设定的质量价格率信息的文件; 所述文件中, 每个质量的码流 的质量价格率是参考该质量的数据码流的实际价格与标准价格的关系确定 的,所述标准价格为所述流媒体内容的一个特定质量的数据码流的实际价格; 结果获取单元, 用于根据解析单元的解析结果获取所述质量价格率。  a parsing unit, configured to parse a file sent by the server and containing quality price rate information set by different quality media data streams of the same streaming media content; in the file, a quality price rate of each quality code stream is a reference Determining the relationship between the actual price of the quality data stream and the standard price, the standard price being the actual price of the data stream of a particular quality of the streaming media content; the result obtaining unit, for parsing according to the parsing unit As a result, the quality price rate is obtained.
14、 一种网络系统, 其特征在于, 包括服务器、 流媒体服务的计费装置 和终端, 其中, A network system, comprising: a server, a charging device and a terminal of a streaming media service, wherein
所述服务器, 用于产生不同质量的媒体数据码流片段供终端下载播放; 所述流媒体服务的计费装置, 用于获取所述服务器对同一流媒体内容的 不同质量的媒体数据码流设定的质量价格率, 每个质量的码流的质量价格率 是参考该质量的数据码流的实际价格与标准价格的关系确定的, 所述标准价 格为所述流媒体内容的一个特定质量的数据码流的实际价格; 根据在播放流 媒体内容过程中针对各个时间片段内所下载的码流片段的质量, 根据所述质 量价格率确定播放该流媒体内容的付费率; 根据所述得到的付费率和所述标 准价格得到终端播放所述流媒体内容的实际费用; 依据该实际费用对用户进 行计费;  The server is configured to generate media data stream segments of different quality for downloading and playing by the terminal; the charging device of the streaming media service is configured to acquire media data streams of different qualities of the same streaming media content by the server. a quality price rate, the quality price rate of each quality code stream is determined by reference to a relationship between an actual price of the quality data stream and a standard price, the standard price being a specific quality of the streaming media content The actual price of the data stream stream is determined according to the quality of the stream stream segment downloaded in each time segment during the playing of the streaming media content, and the charging rate for playing the streaming media content is determined according to the quality price rate; The payment rate and the standard price are obtained by the terminal to play the actual content of the streaming media content; the user is charged according to the actual fee;
所述终端, 用于在播放流媒体内容过程中, 针对各个时间片段下载码流 片段。 The terminal is configured to download a code stream segment for each time segment during the process of playing the streaming media content.
15、 如权利要求 14所述的网络系统, 其特征在于, 所述流媒体服务的计 费装置包括: The network system according to claim 14, wherein the charging device of the streaming media service comprises:
质量价格率获取单元, 用于获取对同一流媒体内容的不同质量的媒体数 据流设定的质量价格率, 每个质量的码流的质量价格率是参考该质量的数据 码流的实际价格与标准价格的关系确定的, 所述标准价格为所述流媒体内容 的一个特定质量的数据码流的实际价格;  a quality price rate obtaining unit, configured to obtain a quality price rate set for different quality media data streams of the same streaming media content, and a quality price rate of each quality code stream is an actual price and a reference to the quality data stream of the quality Determining the relationship of the standard price, the standard price being the actual price of a particular quality data stream of the streaming media content;
付费率统计单元, 用于根据在播放流媒体内容过程中针对各个时间片段 内所下载的码流片段的质量, 根据所述质量价格率确定播放该流媒体内容的 付费率;  a payment rate statistics unit, configured to determine, according to the quality price rate, a payment rate for playing the streaming media content according to a quality of the code stream segment downloaded in each time segment during the playing of the streaming media content;
计费单元, 用于根据所述得到的付费率和所述标准价格得到终端播放所 述流媒体内容的实际费用, 并依据该实际费用对用户进行计费。  And a charging unit, configured to obtain, according to the obtained charging rate and the standard price, an actual fee for the terminal to play the streaming media content, and charge the user according to the actual fee.
PCT/CN2012/078692 2012-01-30 2012-07-16 Method, device and system for charging for streaming media service WO2013113207A1 (en)

Applications Claiming Priority (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
CN201210021090.3 2012-01-30

Publications (1)

Publication Number Publication Date
WO2013113207A1 true WO2013113207A1 (en) 2013-08-08

Family

ID=46352205

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078692 WO2013113207A1 (en) 2012-01-30 2012-07-16 Method, device and system for charging for streaming media service

Country Status (2)

Country Link
CN (1) CN102546191B (en)
WO (1) WO2013113207A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN102546191A (en) * 2012-01-30 2012-07-04 华为技术有限公司 Stream media service billing method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100466560C (en) * 2006-03-15 2009-03-04 华为技术有限公司 Method, system, device for detecting service quality, and charging and fault detecting system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN102546191A (en) * 2012-01-30 2012-07-04 华为技术有限公司 Stream media service billing method, device and system

Also Published As

Publication number Publication date
CN102546191A (en) 2012-07-04
CN102546191B (en) 2015-08-05

Similar Documents

Publication Publication Date Title
US20220278964A1 (en) Method and apparatus to distribute media content
US20210203706A1 (en) Systems, Methods, and Media for Delivery of Content
CN101203827B (en) Flow control for media streaming
CN107071511B (en) Method and computer system for providing rewinding of broadcast video stream received by client
US9521469B2 (en) Carriage of quality information of content in media formats
KR101611383B1 (en) Content-specific identification and timing behavior in dynamic adaptive streaming over hypertext transfer protocol
US20060288112A1 (en) System and methods for storing music selections in network storage and for streaming the selections to a wireless device for playback on the wireless device
WO2013113207A1 (en) Method, device and system for charging for streaming media service
JP5257367B2 (en) Video distribution apparatus, video distribution system, and video distribution method
US8799968B2 (en) Method and apparatus for tracking user location within video or audio content streamed to a mobile handset
US11356493B2 (en) Systems and methods for cloud storage direct streaming
US9426500B2 (en) Optimal quality adaptive video delivery
WO2008027113A2 (en) System and method for billing for video content
CN109348251A (en) For the method, apparatus of video playing, computer-readable medium and electronic equipment
US20090157480A1 (en) Intelligent broadcast techniques to optimize wireless device bandwidth usage
WO2014039127A1 (en) Dynamic bit rate encoding
CN108259998B (en) Player, play control method and device, electronic equipment and play system
US9438942B2 (en) Configurable digital content storage
TW201935935A (en) Signaling and reporting interactivity usage in streaming services
US20150350736A1 (en) Source agnostic content model
WO2005081528A1 (en) Information distributing system and method, information distributing apparatus therefor, receiver terminal, and information relaying apparatus
JP2008153800A (en) Content distribution system
JP2009055126A (en) Content distribution system, distribution server, receiving terminal and computer program
Simm Performance Measurement of Video Streaming in UMTS Networks: Development of a quality assurance tool for most efficent video encoding parameters, adaptive... underlying third generation radio network
Schmidt An Overview of IPTV and Video Services

Legal Events

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

Ref document number: 12867584

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12867584

Country of ref document: EP

Kind code of ref document: A1