WO2014173110A1 - 获取流媒体数据的方法、设备及系统 - Google Patents

获取流媒体数据的方法、设备及系统 Download PDF

Info

Publication number
WO2014173110A1
WO2014173110A1 PCT/CN2013/087063 CN2013087063W WO2014173110A1 WO 2014173110 A1 WO2014173110 A1 WO 2014173110A1 CN 2013087063 W CN2013087063 W CN 2013087063W WO 2014173110 A1 WO2014173110 A1 WO 2014173110A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
streaming media
code rate
network
type
Prior art date
Application number
PCT/CN2013/087063
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to JP2015560524A priority Critical patent/JP6308442B2/ja
Priority to EP13882821.5A priority patent/EP2942970A4/en
Publication of WO2014173110A1 publication Critical patent/WO2014173110A1/zh
Priority to US14/830,519 priority patent/US10116572B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/22Traffic shaping
    • H04L47/225Determination of shaping rate, e.g. using a moving window
    • 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/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2402Monitoring of the downstream path of the transmission network, e.g. bandwidth available
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44209Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4621Controlling the complexity of the content stream or additional data, e.g. lowering the resolution or bit-rate of the video stream for a mobile client with a small screen

Definitions

  • the present invention relates to streaming media technologies, and in particular, to a method, device and system for acquiring streaming media data.
  • streaming media technology In recent years, Internet video services have developed rapidly, and video content traffic has accounted for half of the entire Internet traffic. When it comes to Internet video services, I have to mention streaming media technology. It is precisely because of the continuous development of streaming media technology that the rapid development of Internet video services has been promoted.
  • RTSP/RTP Real Time Streaming Protocol
  • connection-oriented streaming media technology The class is a streaming media technology that uses the connectionless HTTP (Hyper Text Transfer Protocol) progressive download of the current mainstream video website.
  • RTSP/RTP streaming media technology is an end-to-end download technology based on multicast application layer protocol, in which RTP is used for streaming media data transmission, RTSP is used for statistics, management and control of RTP transmission, and the two work together to be significant. Improve the transmission efficiency of real-time data on the network.
  • RTSP/RTP streaming technology has the following drawbacks:
  • the logic implementation of the RTSP/RTP protocol stack is more complex, compared to HTTP technology, support
  • RTSP/RTP terminal software and hardware implementation is difficult, especially for embedded terminals; in addition, the network port number (554) used by the RTSP protocol may be blocked by firewalls and NATs in some user networks. This makes it unusable. Although some streaming servers can tunnel the RTSP on HTTP port 80, it is not particularly convenient to deploy.
  • HTTP streaming software for progressive downloads means: HTTP endpoints can be used throughout the streaming file.
  • the streaming media data can be played before being downloaded. If both the HTTP terminal and the streaming server support HTTP 1.1, the HTTP terminal can also select a time point from the part that has not been downloaded to start the media playback.
  • mainstream video sites use HTTP progressive download to distribute streaming media.
  • HTTP progressive download streaming technology uses stateless
  • the HTTP protocol when the HTTP terminal requests streaming media data from the streaming media server, the streaming media server delivers the requested streaming media data to the terminal.
  • the streaming media server does not record the status of the terminal, and each request of the HTTP terminal is once. Sexually independent conversation.
  • the significant advantage of the HTTP progressive download solution is that it only needs to maintain a standard web server, and the workload and complexity of its installation and maintenance is better than that of a dedicated streaming server. It’s much easier to order.
  • the bandwidth is easy to waste.
  • HTTP-based progressive downloads are only available for on-demand content, not for live content.
  • HTTP Adaptive Streaming hereinafter referred to as ''HAS'
  • HAS technology can greatly enhance the user's media playback experience.
  • the technical complexity of the streaming media server is reduced.
  • the HTTP-based transmission method improves the penetration capability of streaming media data in network devices.
  • HAS technology has become a trend in the streaming video industry.
  • each block has the same length of time, usually about 10 seconds.
  • Each block can be coded according to different code rates to obtain multiple block rate blocks. That is, the streaming media server locally stores streaming media files encoded at different bit rates, and the same content is streamed.
  • the volume file is respectively encoded to obtain a streaming media file of a code rate of 128 kbps, a streaming media file of a code rate of 256 kbps, a streaming media file of a code rate of 512 kbps, and the like.
  • the streaming media server also provides an index file in which information about streaming media files of different code rates is recorded. After downloading the index file from the streaming media server, the terminal requests to download and play the streaming media file with the lowest bit rate according to the information recorded therein.
  • the current The terminal capability and network state can support the lowest bit rate, and the terminal attempts to request a streaming file with a higher bit rate. If a block of the higher rate rate streaming file can be successfully downloaded and played, continue to try to download again. A streaming media file with a higher bit rate. If a block of a higher-rate streaming media file cannot be successfully downloaded and played, the streaming file with the lowest bit rate will continue to be downloaded and played, and so on, until it is stable. Download and play streaming files at a suitable bit rate.
  • the complete streaming media file is divided into multiple HTTP-based partitions.
  • the terminal When starting a streaming media session, the terminal first flows from the stream.
  • the media server downloads an extended M3U playlist file containing metadata (ie, an index file, followed by a playlist file).
  • metadata ie, an index file, followed by a playlist file.
  • the description of the playlist file is as follows:
  • a playlist file is a text file composed of a plurality of independent lines, each line is distinguished by a carriage return or a line feed flag, and each line records a URI of a block at a certain code rate and corresponding attribute information, the attribute information.
  • BANDWIDTH Bandwidth, mandatory parameter, indicating the bandwidth required for the block transfer at this bit rate
  • PROGRAM-ID This value is a decimal integer that uniquely identifies a specific description within the scope of the Playlist file
  • CODECS decoder information, optional parameters
  • RESOLUTION which indicates the resolution of the AUDIO required for the block at this bit rate during playback of the terminal: Audio information, which must be in the "EXT-X-MEDIA" tab of the AUDIO category.
  • the "GROUP-ID” attribute value matches, indicating the audio information required for the block at the code rate to be played by the terminal;
  • VIDEO The video information must match the value of the "GROUP-ID" attribute in the "EXT-X-MEDIA" tab of the VIDEO category, indicating the video information required for the block at that bit rate to be played in the terminal.
  • the terminal After downloading the playlist file from the streaming media server, the terminal downloads and plays the streaming media file according to the URI (Uniform Resource Identifier) of each different code rate recorded in the playlist file according to the code rate from low to high.
  • the block is stabilized at a suitable code rate, and then the streaming media file of the appropriate code rate is continuously downloaded and played.
  • each fragmentation duration is about 10 seconds.
  • the tens of seconds of streaming media files that are just beginning to be downloaded are low-coded. Rate of streaming media data, because the higher the bit rate, the richer the picture details of the streaming media data, that is, the better the image quality. Therefore, the quality of the first few tens of seconds of streaming media data downloaded and played by the above streaming media acquisition scheme is poor.
  • the embodiment of the invention provides a method, a device and a system for acquiring streaming media data, which are used to solve the problem that the quality of the first few tens of seconds of streaming media data downloaded and played in the prior art is poor.
  • a method for obtaining streaming media data including:
  • the terminal of each device type downloads streaming media when each type of network that it accesses
  • the code rate of the file is determined according to the record information of the streaming media service that is reported by each terminal, and the record information includes the device type of the terminal, the network type of the network accessed by the terminal, and the code rate of the downloaded streaming media file.
  • the method further includes: if determining, according to the record information, that a terminal of the same device type accesses a network of the same type, the code rate of the downloaded streaming media file is different, Then choose the smallest bit rate.
  • the record information further includes user account information
  • Determining, according to the record information reported by each terminal, the code rate of downloading the streaming media file when the terminal of each device type accesses the various types of networks accessed by the terminal including:
  • the code rate of the downloaded streaming media file when the user account information is applied is determined.
  • the method further includes:
  • the code rate of the downloaded streaming media file is different, and the minimum code rate is selected.
  • the record information further includes source information of the downloaded streaming media file
  • Determining, according to the record information reported by each terminal, the code rate of downloading the streaming media file when the terminal of each device type accesses the various types of networks accessed by the terminal including:
  • the code rate of downloading the streaming media file from the source corresponding to each source information is determined.
  • the method further includes:
  • the record information further includes a start time and an end time of downloading the streaming media file
  • Determining, according to the record information reported by each terminal, the code rate of downloading the streaming media file when the terminal of each device type accesses the various types of networks accessed by the terminal including:
  • the code rate of the downloaded streaming media file is determined during the time period indicated by each start time and end time.
  • the method further includes:
  • the smallest code rate is selected.
  • the record information further includes configuration information of the terminal
  • Determining, according to the record information reported by each terminal, the code rate of downloading the streaming media file when the terminal of each device type accesses the various types of networks accessed by the terminal including:
  • the code rate of the streaming media file is determined when the terminal of each device type downloads each type of network to which it is connected.
  • the record information further includes a download duration of the downloaded streaming media file
  • the method After receiving the record information reported by the terminal, and determining the code rate of the streaming media file when the terminal of each device type downloads the network type of the network to which the device is connected, the method further includes:
  • the method further includes: the history information includes a device type of a terminal that performs a streaming media service, a network type of the network that the terminal accesses the network, and a code rate of the terminal downloading the streaming media file;
  • the terminal of each device type is separately determined to download the code rate of the streaming media file when it is connected to each type of network.
  • the historical information further includes user account information
  • the code rate of the downloaded streaming media file when the user account information is applied is determined.
  • the historical information further includes source information of the downloaded streaming media file
  • the code rate of downloading the streaming media file from the source corresponding to each source information is determined.
  • the historical information further includes: a start time and an end time of downloading the streaming media file;
  • the code rate of the downloaded streaming media file is determined during the time period indicated by each start time and end time.
  • the historical information further includes configuration information of the terminal
  • the code rate of the streaming media file is determined when the terminal of each device type downloads each type of network to which it is connected.
  • the historical information further includes downloading a downloading time of the streaming media file
  • the method After receiving the historical information reported by the content distribution device, and determining the code rate of the streaming media file when the terminal of each device type downloads the streaming media file for each type of network to which the device is connected, the method further includes:
  • the transmission request further carries user account information
  • the seventeenth possible implementation manner if the determined terminal for each device type and the terminal are in each type of network to which the terminal is connected, When the network rate of the downloaded streaming media file is used in the application of the user account information, the user account information in the transmission request is applied when the network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request is not recorded. , then
  • the network rate corresponds to the code rate of the network.
  • the transmission request further carries source information of the streaming media file
  • Determining the code rate of the streaming media file when the network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request is determined, specifically:
  • the terminal accesses the network corresponding to the network type in the transmission request, and when the streaming media file is obtained from the source corresponding to the source information in the transmission request, the code rate of the streaming media file is downloaded.
  • the transmission request further carries a current time
  • Determining the code rate of the streaming media file when the network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request is determined, specifically:
  • the terminal corresponding to the device type in the request accesses the network corresponding to the network type in the transmission request, and downloads the code rate of the streaming media file in the time period in which the current time is located.
  • the transmission request further carries configuration information of the terminal
  • Determining the code rate of the streaming media file when the network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request is determined, specifically:
  • the code rate of the streaming media file for each type of network that the terminal of each device type downloads under each configuration information it is determined that the terminal corresponding to the device type in the transmission request is transmitting.
  • the configuration corresponding to the configuration information in the request when the network corresponding to the network type in the transmission request is accessed, the code rate of the streaming media file is downloaded.
  • a method for obtaining streaming media data including:
  • the rate of downloading the streaming media file of the terminal of each type of the device is determined according to the history information of the streaming media service reported by the media content distribution device, where the history is determined.
  • the information includes the device type of the terminal that performs the streaming media service, the network type of the network that the terminal accesses, and the code rate of the terminal downloading the streaming media file.
  • the historical information further includes user account information
  • the code rate of the downloaded streaming media file when the user account information is applied is determined.
  • the historical information further includes source information of the downloaded streaming media file;
  • the code rate of downloading the streaming media file from the source corresponding to each source information is determined.
  • the historical information further includes: a start time and an end time of downloading the streaming media file;
  • the code rate of the downloaded streaming media file is determined during the time period indicated by each start time and end time.
  • the historical information further includes configuration information of the terminal
  • the code rate of the streaming media file is determined when the terminal of each device type downloads each type of network to which it is connected.
  • the historical information further includes a download duration of the downloaded streaming media file
  • the method After receiving the historical information reported by the content distribution device, and determining the code rate of the streaming media file when the terminal of each device type downloads the streaming media file for each type of network that the device is connected to, the method further includes: Delete the history information that contains the download duration less than the threshold.
  • the transmission request further carries user account information
  • a seventh possible implementation if the determined terminal for each device type and the terminal are in each type of network to which the terminal is connected, When the user account information is downloaded, the user's account information in the transmission request is not recorded in the network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request.
  • the network rate corresponds to the code rate of the network.
  • the transmission request further carries source information of the streaming media file
  • Determining the code rate of the streaming media file when the network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request is determined, specifically:
  • the transmission request further carries a current time
  • Determining the code rate of the streaming media file when the network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request is determined, specifically:
  • the terminal corresponding to the device type in the request accesses the network corresponding to the network type in the transmission request, and downloads the code rate of the streaming media file in the time period in which the current time is located.
  • the transmission request further carries configuration information of the terminal
  • Determining the code rate of the streaming media file when the network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request is determined, specifically:
  • the code rate of the streaming media file for each type of network that the terminal of each device type downloads under each configuration information it is determined that the terminal corresponding to the device type in the transmission request is transmitting.
  • the configuration corresponding to the configuration information in the request when the network corresponding to the network type in the transmission request is accessed, the code rate of the streaming media file is downloaded.
  • a method for obtaining streaming media data including:
  • the terminal determines the network type of the currently accessed network
  • the terminal determines the code rate of the downloaded streaming media file under the currently accessed network according to the code rate of the downloaded streaming media file that is determined by the terminal when accessing each type of network;
  • the terminal determines, from the index file, an address of the streaming media data encoded by the code rate of the downloaded streaming media file under the currently accessed network;
  • the terminal acquires streaming media data according to the determined address
  • the terminal determines, according to the record information when the streaming media service is executed, the code rate of the downloaded streaming media file when accessing each type of network, where the record information includes the network type of the network accessed by the terminal and The bit rate at which the terminal downloads the streaming media file.
  • the record information further includes user account information
  • the terminal determines the code rate of the downloaded streaming media file when accessing each type of network according to the record information when the streaming media service is performed, and specifically includes:
  • the terminal determines the code rate of the downloaded streaming media file when applying each user account information for each type of network that is accessed.
  • the record information further includes source information of the downloaded streaming media file
  • the terminal determines the code rate of the downloaded streaming media file when accessing each type of network according to the record information when the streaming media service is performed, and specifically includes:
  • the terminal determines the code rate of the downloaded streaming media file from the source corresponding to each source information for each type of network accessed.
  • the record information further includes a start time and an end time of downloading the streaming media file
  • the terminal determines the code rate of the downloaded streaming media file when accessing each type of network according to the record information when the streaming media service is performed, and specifically includes:
  • the terminal determines the code rate of downloading the streaming media file for each time period indicated by the start time and the end time for each type of network accessed.
  • the record information further includes configuration information of the terminal
  • the terminal determines the code rate of the downloaded streaming media file when accessing each type of network according to the record information when the streaming media service is performed, and specifically includes:
  • the terminal respectively determines the code rate of the streaming media file when the terminal of each device type downloads the streaming media file for each type of network that it accesses under each configuration information.
  • the record information further includes a download duration of downloading the streaming media file;
  • the method further determines, according to the record information when the streaming media service is performed, the code rate of the downloaded streaming media file when accessing each type of network, the method further includes:
  • a fourth aspect provides a device for determining a code rate, including an information receiving module, a code rate storage module, a request receiving module, a code rate determining module, and a code rate sending module, where:
  • the information receiving module is configured to receive the record information of the streaming media service that is reported by each terminal, where the record information includes the device type of the terminal, the network type of the network accessed by the terminal, and the code rate of the downloaded streaming media file by the terminal;
  • the code rate storage module is configured to download, according to the record information received by the information receiving module, a code rate of a streaming media file when a terminal of each device type accesses each type of network accessed by the terminal, and Storage
  • the request receiving module is configured to receive a streaming media data transmission request from the terminal, where the transmission request carries a device type of the terminal and a network type of the terminal accessing the network;
  • the code rate determining module is configured to determine, according to the code rate stored in the code rate storage module, when the terminal corresponding to the device type in the transmission request accesses the network corresponding to the network type in the transmission request , download the code rate of the streaming media file;
  • the code rate sending module is configured to send the code rate determined by the code rate determining module to the terminal, and instruct the terminal to determine, according to the index file, an address of the streaming media data encoded by the received code rate. And get streaming data.
  • the code rate storage module is specifically configured to: when determining, according to the record information, that the terminal of the same device type accesses the same type of network, downloading the flow If the code rate of the media file is different, the smallest bit rate is selected for storage.
  • the information receiving module 11 is specifically configured to: when the download information further includes downloading the download duration of the streaming media file, deleting the included download duration is less than a threshold Record information.
  • the information receiving module is specifically configured to: the user record information is further included in the received record information;
  • the code rate storage module is specifically configured to determine, according to the record information received by the information receiving module, a terminal for each device type, and the terminal, under each type of network that the terminal accesses, determine application user account information.
  • the code rate of the downloaded streaming media file is stored and stored.
  • the code rate storage module is configured to determine, according to the record information, that the terminal of the same device type is accessing the same type of network. When the same user account information is applied, the code rate of the downloaded streaming media file is different, and the smallest bit rate is selected and stored.
  • the information receiving module is specifically configured to: the source information of the downloaded streaming media file is further included in the received record information;
  • the code rate storage module is specifically configured to determine, according to the record information received by the information receiving module, a terminal corresponding to each device type and each type of network that the terminal accesses, corresponding to each source information.
  • the source of the downloaded streaming file is the code rate and is stored.
  • the code rate storage module is specifically configured to: when determining, according to the record information, the terminal of the same device type is accessing the same type of network. And if the code rate of downloading streaming media files from the same source is different, the smallest bit rate is selected and stored.
  • the receiving, by the information receiving module, the received information further includes: a start time and an end time of downloading the streaming media file;
  • the code rate storage module is specifically configured to: according to the record letter received by the information receiving module For each type of device, and for each type of network to which the terminal is connected, it is determined that the code rate of the streaming media file is downloaded and stored during the time period indicated by each start time and end time.
  • the code rate storage module is specifically configured to: when determining that the terminal of the same device type is accessing the same type of network according to the record information And in the same time period, the code rate of the downloaded streaming media file is different, then the smallest code rate is selected and stored.
  • the information receiving module is specifically configured to: the received record information further includes configuration information of the terminal;
  • the code rate storage module is specifically configured to: according to the record information received by the information receiving module, determine, under each configuration information, a download stream of each type of device when the terminal accesses each type of network The code rate of the media file, and stored.
  • the information receiving module is further configured to receive, by the media content distribution device, the historical information of the streaming media service that is executed within the set duration, where the historical information includes the device type of the terminal that performs the streaming media service, and the terminal accesses the device.
  • the code rate storage module is further configured to download, according to the historical information, the code rate of the streaming media file when the terminal of each device type accesses each type of network accessed by the terminal, and store the code rate.
  • the information receiving module is specifically configured to include user account information in the received historical information;
  • the storage module is specifically configured to determine, according to the historical information received by the information receiving module, a terminal for each device type and each type of network that the terminal accesses The code rate of the streaming media file downloaded when using each user account information, and stored.
  • the information receiving module is configured to receive, in the history information, a source information of the downloaded streaming media file.
  • the code rate storage module is specifically configured to determine, according to the record information received by the information receiving module, a terminal corresponding to each device type and each type of network that the terminal accesses, corresponding to each source information.
  • the source of the downloaded streaming file is the code rate and is stored.
  • the information receiving module is specifically configured to receive, in the record information, a start time of downloading the streaming media file, and End Time;
  • the code rate storage module is specifically configured to determine, according to the record information received by the information receiving module, a terminal for each device type and each type of network that the terminal accesses, at each start time.
  • the code rate of the streaming media file is downloaded and stored during the time period indicated by the end time.
  • the information receiving module is specifically configured to include, by the received history information, configuration information of the terminal;
  • the rate storage module is specifically configured to: according to the record information received by the information receiving module, determine, under each configuration information, that the terminal of each device type downloads the streaming media file when each type of network accessed by the terminal Rate, and store.
  • a fifth aspect provides a device for determining a code rate, including an information receiving module, a code rate storage module, a request receiving module, a code rate determining module, and a code rate sending module, where:
  • the information receiving module is configured to receive, by the media content distribution device, the historical information of the streaming media service that is executed within the set duration, where the historical information includes the device type of the terminal that performs the streaming media service, and the terminal accesses the network.
  • the network type and the bit rate of the terminal to download the streaming media file;
  • the code rate storage module is configured to download, according to the historical information, the code rate of the streaming media file when the terminal of each device type accesses each type of network accessed by the terminal, and store the code rate;
  • the request receiving module is configured to receive a streaming media data transmission request from the terminal, where the transmission request carries a device type of the terminal and a network type of the terminal accessing the network;
  • the code rate determining module is configured to determine, according to the code rate stored in the code rate storage module, when the terminal corresponding to the device type in the transmission request accesses the network corresponding to the network type in the transmission request , download the code rate of the streaming media file;
  • the code rate sending module is configured to send the code rate determined by the code rate determining module to the terminal, and instruct the terminal to determine, according to the index file, an address of the streaming media data encoded by the received code rate. And get streaming data.
  • the information receiving module is further configured to delete the included downloading duration that is less than a threshold. history information.
  • the information receiving module is specifically configured to include user account information in the received historical information
  • the code rate storage module is specifically configured to determine, according to the historical information received by the information receiving module, a terminal for each device type, and the terminal, under each type of network that the terminal accesses, determine application user account information.
  • the code rate of the downloaded streaming media file is stored and stored.
  • the information receiving module is specifically configured to: the received history information further includes source information of the downloaded streaming media file;
  • the code rate storage module is specifically configured to determine, according to the record information received by the information receiving module, a terminal corresponding to each device type and each type of network that the terminal accesses, corresponding to each source information.
  • the source of the downloaded streaming file is the code rate and is stored.
  • the information receiving module is specifically configured to receive, in the received record information, a start time and an end time of downloading the streaming media file, where the code rate storage module is Specifically, the method is used to determine, according to the record information received by the information receiving module, a terminal for each device type and each type of network that the terminal accesses. The code rate of the streaming media file is downloaded and stored during the time period indicated by each start time and end time.
  • the information receiving module is specifically configured to:
  • the code rate storage module is specifically configured to: according to the record information received by the information receiving module, determine, under each configuration information, a download stream of each type of device when the terminal accesses each type of network The code rate of the media file, and stored.
  • a terminal including a code rate storage module, an information determining module, a code rate determining module, and a streaming media data acquiring module, where:
  • the code rate storage module is configured to determine, according to the record information when the streaming media service is executed, the code rate of the downloaded streaming media file when accessing each type of network, and store the network information, where the record information includes the network accessed by the terminal.
  • the information determining module is configured to determine a network type of the currently accessed network
  • the code rate determining module is configured to determine, according to the code rate stored in the code rate storage module, the code rate of the downloaded streaming media file under the currently accessed network;
  • the streaming media data obtaining module is configured to determine, from an index file, an address of the streaming media data encoded by the code rate determined by the code rate determining module in the currently accessed network, and obtain a flow according to the determined address.
  • Media data is configured to determine, from an index file, an address of the streaming media data encoded by the code rate determined by the code rate determining module in the currently accessed network, and obtain a flow according to the determined address.
  • the code rate storage module is specifically configured to: when the user information is included in the record information, determine, respectively, the application user for each type of network that is accessed. When downloading account information, the code rate of the streaming media file is downloaded and stored.
  • the code rate storage module is specifically configured to: when the source information of the downloaded streaming media file is further included in the record information, respectively, for each type of network that is accessed , determining the code rate of downloading the streaming media file from the source corresponding to each source information.
  • the code rate storage module is specifically configured to: when the start time and the end time of downloading the streaming media file are further included in the record information, respectively For each type of network, it is determined that the code rate of the streaming media file is downloaded and stored during the time period indicated by each start time and end time.
  • the code rate storage module is specifically configured to: when the configuration information of the terminal is further included in the record information, determine, in each configuration information, that the terminal of each device type is The code rate of the streaming media file is downloaded and stored when each type of network is accessed.
  • a system for obtaining streaming media data comprising: a device for determining a code rate and at least one terminal, wherein:
  • the terminal configured to report the record information of the streaming media service reported to the device that determines the code rate, and after receiving the streaming media data transmission request to the device that determines the code rate, receive the received code rate from the determined code rate.
  • the device for determining a code rate configured to determine, according to the record information, a code rate of a streaming media file when a terminal of each device type downloads a network file of each type accessed by the terminal, and receives the terminal that carries the terminal
  • the code rate of the streaming media file is downloaded according to the determined type of the device of each device type when the terminal accesses each type of network
  • determining when the terminal corresponding to the device type in the transmission request accesses the network corresponding to the network type in the transmission request, downloading a code rate of the streaming media file, and sending the code rate to the terminal.
  • the system further includes a media content distribution device:
  • the media content distribution device is configured to report the history information of the streaming media service in the set duration, to the device that determines the code rate, where the history information includes the device type of the terminal that performs the streaming media service, and the terminal device The network type of the access network and the code rate of the terminal downloading the streaming media file;
  • the device for determining the code rate is further configured to receive the historical information reported by the media content distribution device, and determine, according to the historical information, the types of terminals that each device type accesses When downloading a network, download the code rate of the streaming file.
  • the eighth aspect provides a system for acquiring streaming media data, including a device for determining a code rate, a media content distribution device, and at least one terminal, where:
  • the media content distribution device is configured to report the history information of the streaming media service in the set duration, to the device that determines the code rate, where the history information includes the device type of the terminal that performs the streaming media service, and the terminal device The network type of the access network and the code rate of the terminal downloading the streaming media file;
  • the device for determining a code rate configured to determine, according to the historical information, a code rate of a streaming media file when a terminal of each device type downloads each type of network that is accessed by the terminal, and receives the device type of the portable terminal And when the terminal accesses the network type streaming media data transmission request of the network, determining, according to the determined code rate of the streaming media file when the terminal of each device type downloads the network file of each type accessed by the terminal, determining the transmission When the terminal corresponding to the device type in the request accesses the network corresponding to the network type in the transmission request, downloading the code rate of the streaming media file, and sending the code rate to the terminal;
  • the terminal is configured to: after sending the streaming media data transmission request to the device that determines the code rate, receive a code rate sent by the device that determines the code rate, and determine, according to the index file, the received code Rate the address of the encoded streaming media data and obtain streaming media data.
  • an apparatus for determining a code rate including: a first air interface, a memory, a second air interface, a processor, and a distributor, wherein:
  • the first air interface is configured to receive the record information of the streaming media service that is reported by each terminal, where the record information includes the device type of the terminal, the network type of the network that the terminal accesses, and the code rate of the terminal downloading the streaming media file.
  • the memory is configured to download, according to the record information received by the first air interface, a code rate of a streaming media file when a terminal of each device type accesses each type of network accessed by the terminal, and store the data rate; a second air interface, configured to receive a streaming media data transmission request from the terminal, where the transmission request carries a device type of the terminal and a network type of the terminal accessing the network;
  • the processor configured to determine, according to a code rate stored in the memory, the transmission request Downloading the code rate of the streaming media file when the terminal corresponding to the device type in the network accesses the network corresponding to the network type in the transmission request;
  • the distributor is configured to send the code rate determined by the processor to the terminal, and instruct the terminal to determine, according to the index file, an address of the streaming media data encoded by the received code rate, and obtain the stream. Media data.
  • an apparatus for determining a code rate includes a first air interface, a memory, a second air interface, a processor, and a distributor, wherein:
  • the first air interface is configured to receive, by the media content distribution device, history information of performing a streaming media service within a set duration, where the history information includes a device type of a terminal that performs a streaming media service, and the terminal accesses the network.
  • the network type and the bit rate of the terminal to download the streaming media file;
  • the memory used by the terminal of each device type determined according to the historical information to download a code rate of a streaming media file when it is connected to each type of network, and stored;
  • the second air interface is configured to receive a streaming media data transmission request from the terminal, where the transmission request carries a device type of the terminal and a network type of the terminal accessing the network;
  • the processor is configured to: when the terminal corresponding to the device type in the transmission request accesses the network corresponding to the network type in the transmission request, according to the code rate stored in the code rate storage module, downloading The code rate of the streaming media file;
  • the distributor is configured to send the code rate determined by the code rate determining module to the terminal, and instruct the terminal to determine, according to the index file, an address of the streaming media data encoded by the received code rate, and Get streaming media data.
  • a terminal including a memory, a first processor, a second processor, and a loader, wherein:
  • the memory is configured to determine, according to the record information when the streaming media service is performed, the code rate of the downloaded streaming media file when accessing each type of network, and store the network information type of the network accessed by the terminal. And the bit rate of the terminal downloading the streaming media file;
  • the first processor is configured to determine a network type of a currently accessed network;
  • the second processor is configured to determine, according to the code rate stored in the memory, a code rate of the downloaded streaming media file under the currently accessed network;
  • the downloader is configured to determine, from the index file, an address of the streaming media data encoded by the code rate determined by the code rate determining module in the currently accessed network, and obtain the streaming media data according to the determined address.
  • An embodiment of the present invention provides a statistical rate-based adaptive rate scheme, which summarizes different types of historical streaming media service related information recorded by at least one device in a terminal and a media content distribution device.
  • the terminal accesses various types of networks, it is suitable for the code rate of the downloaded streaming media file, so that when the terminal performs the streaming media service, the terminal can directly request to obtain the streaming media file suitable for the code rate without starting from the lowest bit rate.
  • Trying to download avoids the problem of poor quality of streaming media data acquired in the first few tens of seconds in the existing streaming media acquisition scheme, so that the quality of all streaming media data downloaded and played is better.
  • FIG. 1 is a schematic diagram of steps of a method for acquiring streaming media data according to Embodiment 1;
  • FIG. 2 is a schematic diagram of steps of a method for obtaining streaming media data according to Embodiment 8;
  • FIG. 3 is a schematic structural diagram of an apparatus for determining a code rate according to Embodiment 9;
  • FIG. 4 is a schematic structural diagram of a terminal in the eleventh embodiment
  • FIG. 5 is a schematic structural diagram of a system for acquiring streaming media data according to Embodiment 12;
  • FIG. 6 is a schematic structural diagram of a device for determining a code rate in the fourteenth embodiment
  • FIG. 7 is a schematic structural diagram of a terminal in the sixteenth embodiment.
  • An embodiment of the present invention provides a statistical rate-based adaptive rate scheme, which summarizes different types of historical streaming media service related information recorded by at least one device in a terminal and a media content distribution device.
  • the terminal accesses various types of networks, it is suitable for the code rate of the downloaded streaming media file, so that the terminal can directly request the suitable code when performing the streaming media service (such as when the terminal requests to obtain the HLS-based streaming media data).
  • Rate streaming media files without attempting to download from the lowest bit rate, avoiding the problem of poor quality of streaming media data acquired in the first few tens of seconds in the existing streaming media acquisition scheme, so that all streaming media data downloaded and played is The quality is good.
  • the embodiment of the present invention includes a process of determining a code rate by the network side, a process of transmitting the determined code rate by the network side as a recommended value to the terminal, and requesting the streaming media file by the terminal according to an appropriate code rate. The process is explained below.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 1 it is a schematic diagram of a method for obtaining streaming media data in the first embodiment, where the method mainly includes the following steps:
  • Step 101 Receive recording information reported by each terminal when performing a streaming media service within a set duration.
  • the record information includes a device type of the terminal, a network type of the network accessed by the terminal, and a code rate of the downloaded streaming media file by the terminal.
  • the terminal belonging to the same EPG can periodically upload the locally generated record information to the EPG, and the terminal can also perform the streaming service every time. If the record information is reported, the executor of this step can be an EPG, or other network elements in the network side.
  • the terminal can automatically generate a record information when the streaming media service is executed each time (for example, the terminal downloads and plays the service of the HLS-based streaming media data), and records the terminal when the streaming media service is executed.
  • the terminal can also add its own device type to the recorded information.
  • the network type may be a WLAN (Wireless LAN) type network or a cellular network (Cellular); the device type of the terminal may be Android (Android) type or Symbian type; terminal downloaded
  • the code rate of the streaming media file can be 128Kbps, 256Kbps or 512Kbps.
  • the five records received by the three terminals are as follows:
  • the code rate of the downloaded streaming media file is 256 Kbps
  • the code rate of the downloaded streaming media file is 512 Kbps
  • the download rate of the streaming media file is 256Kbps.
  • the download duration of the downloaded streaming media file may also be included. Since the conventional streaming media service sequentially attempts to download and play the streaming media data according to the code rate from low to high, For the case where the download duration is less than the threshold (for example, the download duration is less than 20 seconds), it can be seen that the download process of the streaming media file is an attempt to download, and if the download is not stable, the record information generated for the download process may be ignored. For example, for the record information including the download duration of less than 20 seconds, the terminal may not delete the record information of the download duration of less than 20 seconds included in the terminal on the EPG or the EPG.
  • the threshold for example, the download duration is less than 20 seconds
  • Step 102 Determine, according to the record information, that each terminal of the device type is connected to the terminal The code rate of the downloaded streaming media file under each type of network.
  • the execution body of this step 102 may be an EPG, or other network elements capable of reading the record information from the EPG and performing the step 102.
  • the five record information in step 101 is taken as an example.
  • the corresponding code rate when accessing the WLAN is 512 Kbps and 256 Kbps;
  • the code rate of the downloaded streaming media file is different.
  • a smaller code rate may be selected, that is,
  • the corresponding code rate when accessing the WLAN is 256Kbps.
  • the purpose of this is: when the terminal does not follow the code rate from low to high, but directly requests the streaming media file of the appropriate bit rate, if the requested bit rate is too high, the terminal cannot correctly download and play the streaming media file. Selecting a smaller bit rate can avoid the problem that the terminal cannot download and play the streaming media file correctly, and the downloaded streaming media data is superior to the attempted downloading scheme according to the code rate from low to high.
  • the corresponding code rate when accessing Cellular is 256Kbps
  • a Symbian-type terminal has a code rate of 512 Kbps when accessing the WLAN.
  • a Symbian-type terminal has a code rate of 256 Kbps when accessing Cellular.
  • the network side collects the appropriate code rate of the streaming media file when the terminal accesses various types of networks, and then the terminal requests the streaming media service from the network side.
  • the network side may send the code rate matching the type of the terminal and the access network to the terminal as a recommended value.
  • Step 103 Receive a streaming media data transmission request from the terminal.
  • the transmission request carries the device type of the terminal and the network type of the network accessed by the terminal.
  • the execution body of this step 103 may be an EPG.
  • a streaming media data transmission request may be initiated to the network side, where the transmission request may be based on an HTTP transmission data packet, where the corresponding field carries the device type of the terminal. And the type of network in which the current terminal is connected to the network.
  • Step 104 Determine, according to the content determined in step 102, the code rate of the streaming media file when the network corresponding to the network type in the terminal access transmission request corresponding to the device type carried in the transmission request is determined.
  • the terminal that initiates the streaming media data transmission request is the terminal D of the Android type, and the network that the terminal D currently accesses is the WLAN.
  • the terminal D can directly try to download the code rate of 256 Kbps.
  • the streaming media file, the 256Kbps code rate is the recommended bit rate.
  • Step 105 Send the recommended code rate determined in step 104 to the terminal.
  • the network side recommends an appropriate code rate for the terminal according to the previous statistical result, and the terminal can directly perform the streaming media file according to the received code rate. Downloads without having to try downloading in order from lowest to highest.
  • Step 106 The terminal receives the recommended code rate.
  • the recommended code rate is 256 Kbps.
  • Step 107 The terminal requests to obtain an index file from the streaming server.
  • the terminal can request a playlist file from the streaming server.
  • the implementation sequence of the step 107 is not limited.
  • the terminal may request the index file from the streaming media server after receiving the recommended code rate, or may first obtain the index file from the streaming media server. After requesting the index file, the recommended code rate is received, and the step of acquiring the file I and the step of receiving the recommended code rate may be performed in parallel.
  • Step 108 The terminal determines, from the index file, the number of streams that are encoded according to the received code rate. According to the address.
  • each code rate block is recorded in the index file, that is, the address of the streaming media data encoded according to each code rate, when the code rate received by the terminal is 256 Kbps, the code can be searched for 256 Kbps.
  • the URI of the streaming data Since the URI of each code rate block is recorded in the index file, that is, the address of the streaming media data encoded according to each code rate, when the code rate received by the terminal is 256 Kbps, the code can be searched for 256 Kbps.
  • the URI of the streaming data Since the URI of each code rate block is recorded in the index file, that is, the address of the streaming media data encoded according to each code rate, when the code rate received by the terminal is 256 Kbps, the code can be searched for 256 Kbps.
  • the URI of the streaming data Since the URI of each code rate block is recorded in the index file, that is, the address of the streaming media data encoded according to each code rate, when the code rate received by the terminal is 256 Kbps, the code can be searched for
  • Step 109 The terminal acquires streaming media data according to the determined address, and plays the same, so as to execute the streaming media service.
  • the terminal no longer attempts to download in sequence according to the code rate in the file from the lowest to the highest, but the different types of terminals are statistically analyzed according to the device type of the terminal and the type of the access network.
  • the recommended bit rate when accessing each network, and when the terminal requests to obtain the streaming media data, the code rate matching the device type of the terminal and the current access network type is recommended to the terminal, and the terminal directly flows according to the recommended code rate.
  • the download of the media file avoids obtaining low-quality streaming media data when attempting to download at a low code rate, and can obtain and play high-quality streaming media data from the beginning of streaming data downloading.
  • the solution of the first embodiment is based on the device type of the terminal and the network type of the access network, and the statistical analysis of the code rate is performed.
  • the embodiment of the present invention is not limited to the use of the user account information.
  • the source information of the downloaded streaming media file, the start time and end time of downloading the streaming media file, and the configuration information of the terminal are used for statistical analysis, which are described below.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the second embodiment of the present invention performs statistical analysis of the code rate based on the device type of the terminal, the network type of the access network, and the user account information, where the user account information is registered in the streaming media server for execution.
  • the account information of the streaming media service, the solution of the second embodiment is as follows:
  • the first step is: receiving the record information when the streaming media service is executed within the set duration, and the device type of the terminal, the network type of the network accessed by the terminal, the user account information, and the code rate of the terminal downloading the streaming media file. .
  • the difference from the first embodiment is that in the solution of the second embodiment, the record information is additionally added.
  • the user account information is used to indicate the user account registered when the user logs in to the streaming media server by using the terminal as a carrier.
  • the five pieces of record information in step 101 are taken as an example.
  • the contents of the five pieces of record information are as follows:
  • the code rate of the downloaded streaming media file is 512 Kbps
  • the terminal type A of the Android type is used to access the Cellular, the code rate of the downloaded streaming media file is 256 Kbps;
  • the code rate of the downloaded streaming media file is 256 Kbps;
  • the download stream file has a code rate of 512 Kbps;
  • the download stream file has a code rate of 256Kbps.
  • the downloading time length of the downloaded streaming media file may also be included in the record information, and the record information included in the downloading duration is less than the threshold value may be ignored.
  • the second step is to determine the code rate of the downloaded streaming media file when the user account information is applied to the terminal of each device type and the type of network that the terminal accesses.
  • the relationship between the terminal, the network, and the user account and the code rate is counted by using the received record information.
  • the record information received in the previous step is taken as an example.
  • the statistical result is:
  • the application user's Subscriber code rate is 512Kbps and 256Kbps;
  • the code rate of the downloaded streaming media file is different, in this embodiment.
  • the scheme may also select a smaller code rate, that is, when the terminal of the Android type accesses the WLAN, the code rate of the application user Subscriberl is 256 Kbps;
  • the application user's Subscriber has a code rate of 256Kbps.
  • the application user's code rate is 256Kbps.
  • the network side separately counts different types of terminals accessing different types of networks, and when applying different user accounts, downloads the appropriate code rate of the streaming media file, and then, the solution of the second embodiment
  • the method of the step 103 to the step 109 of the first embodiment is similar to the solution.
  • the difference is that, in the solution of the embodiment, the transmission request reported by the terminal further carries the user account information, so as to perform the code by using the statistical result of the second step. Rate of recommendation.
  • the user Subscriberl initiates a streaming media data transmission request by using an Android type terminal accessing Cellular, and may recommend 256 Kbps to the terminal, after which the terminal directly determines the address of the streaming media data encoded by 256 Kbps from the index file, and further from the address. Get streaming media data.
  • the device type of the terminal that initiates the streaming media data transmission request and the applied user account are not counted, refer to the code rate that is counted by the user account in other types of terminal applications as the recommended code rate, or The code rate counted by other users when applying the terminal type is used as the recommended value.
  • the recommended code rates obtained by the above two methods are different, the smaller one is selected.
  • the subscriber subscribes to the Cellular Android-type terminal to initiate a streaming data transmission request
  • the previous statistical result does not appear.
  • the user subscribes to the rate of 256Kbps when using the Cellular-type Symbian terminal.
  • the reference user Subscriber uses a code rate of 256Kbps when accessing Cellular's Android type terminal.
  • the main body of each step in the second embodiment of the present invention is the same as that in the first embodiment. According to the solution of the second embodiment of the present invention, based on the effect of the first embodiment, the statistical result is further refined. In the same case, the recommended code rate obtained by the terminal applying the high priority user account is higher than the application low priority user account. The terminal makes the recommended bit rate for the terminal more suitable for the currently requested streaming media service.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the third embodiment of the present invention performs statistical analysis of the code rate based on the device type of the terminal, the network type of the access network, and the source information of the downloaded streaming media file, and the source of the streaming media file downloaded by the source information. , such as video sites.
  • the first step is: receiving the record information that is reported by each terminal when the streaming media service is executed within the set duration, including the device type of the terminal, the network type of the network accessed by the terminal, the source information, and the code rate of the terminal downloading the streaming media file.
  • the difference from the first embodiment is that in the solution of the second embodiment, the source information is additionally added to the record information.
  • the five pieces of record information in step 101 are taken as an example.
  • the contents of the five pieces of record information are as follows:
  • the code rate of downloading the streaming media file from the video website 1 is 256 Kbps;
  • Symbian type terminal C downloads streaming media from video website 2 when accessing Cellular
  • the file rate of the volume file is 256Kbps.
  • the downloading time length of the downloaded streaming media file may also be included in the record information, and the record information included in the downloading duration is less than the threshold value may be ignored.
  • the second step is to determine the code rate of downloading the streaming media file from the source corresponding to each source information for the terminal of each device type and the terminal under each type of network to which the terminal accesses.
  • the relationship between the terminal, the network, and the information source and the code rate is counted by using the received record information.
  • the record information received in the previous step is taken as an example, and the statistical result is:
  • Android type terminal access WLAN downloads streaming media files from video website 1 at a rate of 512 Kbps and 256 Kbps;
  • step 102 when the same type of terminal accesses the same type of network and downloads the streaming media file from the same source, a case where the code rate is different may be selected, and in the solution of the embodiment, the terminal may also be selected.
  • the smaller code rate that is, the code rate of downloading the streaming media file from the video website 1 by the terminal connected to the WLAN of the Android type is 256 Kbps;
  • Android type terminal access Cellular downloads streaming media files from video website 1 at a code rate of 256Kbps;
  • Symbian-type terminal access WLAN downloads streaming media files from video site 2 at a code rate of 512 Kbps;
  • Symbian-type terminal access Cellular downloads streaming media files from video site 2 at a rate of 256Kbps.
  • the network side separately counts different types of terminals accessing different types of networks, and downloads the appropriate code rate of the streaming media files from different sources, and then the solution of the third embodiment can be
  • the scheme of the step 103 to the step 109 of the first embodiment is similar.
  • the source information is further carried in the transmission request reported by the terminal, so as to use the statistical result of the second step to perform the code rate recommendation.
  • an Android type terminal accessing Cellular requests to download a streaming media file from the video website 1, and may recommend 256 Kbps to the terminal, after which the terminal directly determines the address of the streaming media data encoded by 256 Kbps from the index file, and then This address gets streaming media data.
  • the main body of each step in the third embodiment of the present invention is the same as that in the first embodiment.
  • the statistical result is further refined, and the recommended code rate obtained by the terminal that downloads the streaming media file from the video website supporting the high bandwidth under the same conditions is further refined.
  • the recommended code rate obtained by the terminal that downloads the streaming media file from the video site supporting the low bandwidth makes the code rate recommended for the terminal more suitable for the currently requested streaming media service.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • the solutions of the second embodiment and the third embodiment are combined to calculate the relationship between the terminal, the network user account, and the source and the code rate, that is,
  • the record information reported by the terminal includes the device type of the terminal, the network type of the network accessed by the terminal, the user account information, the source information of the downloaded streaming media file, and the bit rate of the downloaded streaming media file, and then for each device type.
  • the terminal and the terminal determine the code rate of the streaming media file from different sources when determining the application of each user account information under each type of network that the terminal accesses.
  • the contents of the five pieces of record information are as follows:
  • the code rate of downloading the streaming media file from the video website 1 is 512 Kbps;
  • the code rate of downloading the streaming media file from the video website 1 is 256 Kbps;
  • the code rate of downloading the streaming media file from the video website 1 is 256 Kbps;
  • the code rate of downloading the streaming media file from the video website 2 is 512 Kbps; 5)
  • the code rate of downloading the streaming media file from the video website 2 is 256 Kbps.
  • the application user Subscriber 1 downloads the streaming media file from the video website 1 at a code rate of 512 Kbps and 256 Kbps;
  • the code rate of downloading the streaming media file from the same source is different, and the smaller one may be selected.
  • the code rate that is, when the Android type terminal accesses the WLAN, the application user Subscriberl downloads the streaming media file from the video website 1 at a code rate of 256 Kbps;
  • the application user Subscriberl downloads the streaming media file from the video website 1 at a code rate of 256 Kbps;
  • the application user Subscribes to download the streaming file from the video site 2 at a rate of 256Kbps.
  • the scheme of the fourth embodiment is similar to the scheme of the step 103 to the step 109 of the first embodiment. The difference is that, in the solution of the embodiment, the user request information and the source information are further carried in the transmission request reported by the terminal. In order to use the statistical results for the recommendation of the code rate.
  • the terminal of the Android type accessing Cellular requests to download the streaming media file from the video website 1 to recommend 256 Kbps to the terminal, and then the terminal directly determines the streaming media data encoded by 256 Kbps from the index file. Address, and then get streaming data from this address.
  • the solution of the fourth embodiment of the present invention has the effects of the second embodiment and the third embodiment.
  • Embodiment 5 The fifth embodiment of the present invention performs statistical analysis of the code rate based on the device type of the terminal, the network type of the access network, and the start time and end time of the downloaded streaming media file, where the start time and the end time are performed.
  • the streaming file is downloaded during the time period between.
  • the first step is: receiving the record information that is reported by each terminal when the streaming media service is executed within the set duration, including the device type of the terminal, the network type of the network accessed by the terminal, the start time and the end time of the downloaded streaming media file, and The bit rate at which the terminal downloads the streaming media file.
  • the difference from the first embodiment is that in the solution of the fifth embodiment, the start time and the end time of the downloaded streaming media file are additionally added to the record information.
  • the five pieces of record information in step 101 are taken as an example.
  • the contents of the five pieces of record information are as follows:
  • the code rate of downloading the streaming media file at 20:00 ⁇ 20:30 is 256Kbps;
  • the time period between the start time and the end time of downloading the streaming media file in the record information is the download duration of the streaming media file, and the record information including the download duration less than the threshold value is negligible.
  • Step 2 For each type of device and the type of network that the terminal is connected to, The code rate of the streaming media file is downloaded during the time period indicated by each start time and end time. In this step, the relationship between the terminal, the network, and the download time period and the code rate is counted by using the received record information.
  • the record information received in the previous step is taken as an example, and the statistical result is:
  • the code rate of downloading the streaming media file in the period from 20:00 to 20:30 is 512 Kbps and 256 Kbps;
  • step 102 when the same type of terminal accesses the same type of network and downloads the streaming media file in the same time period, the code rate is different.
  • Select a smaller bit rate that is, when the terminal of the Android type accesses the WLAN, the code rate of downloading the streaming media file in the time period of 20:00-20:30 is 256 Kbps;
  • the code rate of downloading streaming media files in the period from 20:00 to 20:30 is 256 Kbps;
  • the Symbian-type terminal accesses the WLAN, and the code rate of downloading the streaming media file in the period of 07:00 ⁇ 08:00 is 512 Kbps;
  • the Symbian-type terminal accesses Cellular, and the code rate for downloading streaming media files during the period from 07:00 to 08:00 is 256 Kbps.
  • the network side separately counts different types of terminals accessing different types of networks, and downloads the appropriate code rate of the streaming media files in different time periods, and then the solution of the fifth embodiment can be
  • the solution of the step 103 to the step 109 of the first embodiment is similar.
  • the difference is that, in the solution of the embodiment, the current request for downloading the streaming media file is further carried in the transmission request reported by the terminal, so as to determine the time period in which the current time is located.
  • the statistical results of the second step can be used to recommend the code rate.
  • an Android type terminal accessing Cellular requests to download a streaming media file from 20:10. Since 20:10 belongs to the 20:00 ⁇ 20:30 time period, 256Kbps can be recommended to the terminal, after which the terminal directly Determining the address of the streaming media data encoded by 256Kbps in the index file, and further Get streaming media data from this address.
  • the statistical result is further refined, and under the same conditions, the streaming media is downloaded during the idle period of the service (for example, 07:00 ⁇ 08:00).
  • the recommended code rate obtained by the terminal of the file is higher than the recommended code rate obtained by the terminal that downloads the streaming media file during the busy period (such as 20:00 ⁇ 20:30), so that the recommended bit rate for the terminal is more suitable for the current request.
  • Streaming business based on the effect of the first embodiment, the statistical result is further refined, and under the same conditions, the streaming media is downloaded during the idle period of the service (for example, 07:00 ⁇ 08:00).
  • the recommended code rate obtained by the terminal of the file is higher than the recommended code rate obtained by the terminal that downloads the streaming media file during the busy period (such as 20:00 ⁇ 20:30), so that the recommended bit rate for the terminal is more suitable for the current request.
  • the solution of the fifth embodiment is combined with the solution of the second embodiment to calculate the relationship between the terminal, the network, the user account, and the start and end time of downloading the streaming media file, and the code rate, that is, the recorded information reported by the terminal.
  • the type of the device including the terminal, the network type of the network accessed by the terminal, the user account information, the start time of downloading the streaming media file, the end time, and the code rate of the downloaded streaming media file, and then the terminal for each device type and the terminal Under each type of network that is accessed, when determining the application of each user account information, the code rate of the streaming media file is downloaded in different time periods.
  • the solution of the fifth embodiment is combined with the solution of the third embodiment to calculate the relationship between the terminal, the network, the source, and the start and end time of downloading the streaming media file, and the code rate, that is, the record information reported by the terminal includes The device type of the terminal, the network type of the network to which the terminal is connected, the source information, the start time of downloading the streaming media file, the end time, and the bit rate of the downloaded streaming media file, and then the terminal for each device type and the terminal in it Under each type of network that is accessed, the code rate of the streaming media file is downloaded from different sources in different time periods.
  • the solution of the fifth embodiment is combined with the solution of the fourth embodiment to calculate the relationship between the terminal, the network, the user account information, the source, the start and end time of downloading the streaming media file, and the code rate, that is, the record reported by the terminal.
  • the information includes the device type of the terminal, the network type of the network accessed by the terminal, the user account information, the source information, the start time of downloading the streaming media file, the end time, and the code rate of the downloaded streaming media file, and then for each device.
  • Type of terminal and the terminal to which the terminal is connected Under the type network, different user accounts are applied, and the code rate of the streaming media files is downloaded from different sources in different time periods.
  • the main body of each step in the fifth embodiment of the present invention is the same as that in the first embodiment.
  • the sixth embodiment of the present invention performs statistical analysis of the code rate based on the device type of the terminal, the network type of the access network, and the configuration information of the terminal.
  • the configuration information may be software and hardware configuration information of the terminal, such as a software version number, a hardware capability value, and the like.
  • the first step is: receiving the record information when the streaming media service is executed within the set duration, and includes the device type of the terminal, the network type of the network accessed by the terminal, the configuration information of the terminal, and the code of the terminal downloading the streaming media file. rate.
  • the difference from the first embodiment is that, in the solution of the stream in this embodiment, the configuration information of the terminal is additionally added to the record information.
  • the five pieces of record information in step 101 are taken as an example.
  • the contents of the five pieces of record information are as follows:
  • the code rate of the downloaded streaming media file is 512 Kbps
  • the software version number of the terminal A is 4.0 version
  • the screen size of the terminal A is 4 inches
  • Android type terminal A access to Cellular, download streaming media file rate is 256Kbps, terminal A software version number is 3.0 version, terminal A screen size is 4 inches;
  • the software version number of terminal B is 3.0, and the screen size of terminal B is 5 inches;
  • the code rate of the downloaded streaming media file is 512 Kbps
  • the software version number of the terminal C is 4.0 version
  • the screen size of the terminal C is 4 inches
  • the code rate of the downloaded streaming media file is 256 Kbps
  • the software version number of the terminal C is 4.0 version
  • the screen size of the terminal C is 4 inches.
  • the time period between the start time and the end time of downloading the streaming media file in the record information is the download duration of the streaming media file, and the record information including the download duration less than the threshold value is negligible.
  • Step 2 Under various configuration information, the code rate of the streaming media file is downloaded for each device type terminal and the terminal under each type of network to which the terminal is connected.
  • the relationship between the terminal, the network, and the configuration information and the code rate is counted by using the received record information.
  • the record information received in the previous step is taken as an example, and the statistical result is:
  • the code rate of the downloaded streaming media file is 512 Kbps
  • the code rate of the downloaded streaming media file is 256 Kbps;
  • the code rate of the downloaded streaming media file is 256 Kbps
  • the code rate of the downloaded streaming media file is 512 Kbps
  • the download stream file has a code rate of 256Kbps.
  • the network side separately calculates the appropriate code rate for downloading the streaming media file when different types of terminals access different types of networks under different configurations, and then the solution of the sixth embodiment can be
  • the solution of the step 103 to the step 109 of the first embodiment is similar.
  • the configuration information reported by the terminal further carries configuration information of the terminal, so as to be available after determining the current configuration of the terminal.
  • the statistical results of the second step are recommended for the code rate.
  • the statistical result is further refined.
  • the higher the recommended code rate obtained by the terminal with higher configuration the higher the recommended code rate is.
  • the recommended bit rate is more suitable for the currently requested streaming service.
  • the main body of each step in the sixth embodiment of the present invention is the same as that in the first embodiment.
  • the solution of the first embodiment to the sixth embodiment of the present invention is a scheme for the network side to perform statistics on the recorded information reported by the terminal in the jurisdiction, and the embodiment of the present invention is not limited to the media content distribution device (such as the MDN (wide area media content distribution device). ))
  • the seventh embodiment of the present invention uses the MDN as an example to describe that the network side uses the history information reported by the MDN to count the code rate of the downloaded streaming media file of each type of network that the terminal of each device type accesses.
  • content include:
  • the first step is to receive the historical information generated by the MDN and executed each time the streaming media service is executed within the set duration.
  • the history information includes a device type of a terminal that performs a streaming media service, a network type of the network that the terminal accesses, and a code rate of the terminal downloading the streaming media file.
  • the MDN can interact with multiple terminals to perform streaming media services within a set time period, and the MDN can generate a history information for each streaming media service.
  • the MDN can also include a terminal in each history information. The download duration of the downloaded streaming file can be ignored if the download duration is less than the threshold.
  • Step 2 According to the historical information, determine the code rate of the downloaded streaming media file under each type of network that the terminal of each device type accesses.
  • the solution of the seventh embodiment is similar to the solution of the first embodiment.
  • the difference is that the MDN sends the history information to the EPG in this embodiment.
  • the historical information in this embodiment may further include user account information, source information of the downloaded streaming media file, and download streaming media files.
  • the combination of the start time and the end time, the configuration information of the terminal, or the combination of the multiple types of information, and the newly included information is combined with the device type and the network type in the seventh embodiment, and details are not described herein.
  • the seventh embodiment records the history of the MDN on the MDN. Since the history of the MDN is not easily changed by the tomb, the statistical result obtained by the solution of the seventh embodiment is highly reliable.
  • the embodiment of the present invention can also combine the first embodiment to the sixth embodiment and the seventh embodiment, and the network side combines the record information reported by the terminal with the historical information reported by the MDN to perform statistics to recommend a suitable bit rate for the terminal.
  • the recorded information reported by the terminal can supplement this situation; on the other hand, due to the mobility of the terminal, the terminal may not be able to go to the network side in time. 4 ⁇ Record information. At this time, the historical information of 4 ⁇ on the MDN can supplement this kind of situation and improve the statistical results.
  • the code rate obtained from the statistical information of the recorded information and the historical information is different, the code rate obtained based on the recorded information is used as the standard, and the statistical result of the historical information is used as a supplement to the code rate scheme obtained by recording the information. .
  • the solution of the first embodiment to the seventh embodiment of the present invention is to perform statistical analysis on the information reported by the terminal and the at least one device in the MDN by the network side (such as the EPG), and then recommend the appropriate code rate to the initiated streaming media data transmission request.
  • the terminal because there are many resource information for statistics, can obtain statistical results including a combination of various situations, and for the case of no statistics, other similar results can also be referred to.
  • the network side may generate a statistics list according to the obtained statistical result, where it is described that different types of terminals are suitable for downloading streaming media files when accessing various types of networks.
  • the code rate if the user account information, the source information of the downloaded streaming media file, the start time and end time of the downloaded streaming media file, and the configuration information of the terminal are used for statistical analysis, then statistics are performed. Add the corresponding item to the list), and send the statistics list to the initiative
  • the terminal sent to the current service when the terminal needs to request to download the streaming media file, reads the received statistical list and selects an appropriate code rate according to its actual situation.
  • the solution of the embodiment of the present invention is not limited to the statistical analysis of the locally generated record information by the terminal, and the specific description is as follows:
  • the solution of the eighth embodiment of the present invention is to use a terminal to perform statistics on the code rate and select a suitable code rate to download the streaming media file. As shown in FIG. 2, the method includes the following steps:
  • Step 201 The terminal determines the record information generated by the terminal each time the streaming media service is executed within the set duration.
  • the record information includes a network type of the network accessed by the terminal and a code rate of the downloaded streaming media file by the terminal.
  • the three pieces of record information generated by the terminal within the set duration are as follows:
  • the code rate of the downloaded streaming media file is 512 Kbps
  • the download stream file has a code rate of 128Kbps.
  • Step 202 The terminal determines, according to the record information, a code rate of the downloaded streaming media file when accessing each type of network.
  • the statistics result of the terminal to the three pieces of record information in step 201 is:
  • the download stream file When accessing the WLAN, the download stream file has a code rate of 512 Kbps;
  • the download stream file When accessing Cellular, the download stream file has a code rate of 128Kbps.
  • the downloaded streaming media text appears.
  • a smaller code rate may be selected to avoid the problem that the terminal selects an excessive code rate and cannot correctly download and play the streaming media file.
  • Step 203 When the terminal wants to download the streaming media file, determine the network type of the currently accessed network.
  • Step 204 The terminal determines, according to the statistics result of step 202, the code rate of the downloaded streaming media file under the currently accessed network.
  • Step 205 The terminal determines, from the index file, the address of the streaming media data encoded by the code rate determined in step 204.
  • Step 206 The terminal acquires streaming media data according to the determined address.
  • the record information of the terminal may further include user account information, source information of the downloaded streaming media file, start time and end time of downloading the streaming media file, and terminal.
  • One type of information or a combination of multiple types of information, and the newly included information is combined with the network type in the eighth embodiment, and is not described here.
  • the terminal when the terminal requests to download the streaming media file, the terminal may directly determine an appropriate code rate according to the self-statistic result. In this case, the terminal does not need to pass through the network.
  • the side recommendation can obtain a suitable code rate, and the appropriate code rate can be determined by itself, and the process of obtaining the recommended code rate from the network side by the terminal is simplified, and the efficiency of the terminal for streaming media service is improved.
  • the ninth embodiment of the present invention further provides a device for determining a code rate according to the same invention as the first embodiment.
  • the method includes: an information receiving module 11, a code rate storage module 12, a request receiving module 13, and a code.
  • the information receiving module 11 is configured to receive the record information of the streaming media service that is reported by each terminal, where the record information includes the device type of the terminal, the network type of the network accessed by the terminal, and the code rate of the downloaded streaming media file.
  • the code rate storage module 12 is configured to download, according to the record information received by the information receiving module, a code rate of a streaming media file when a terminal of each device type accesses each type of network accessed by the terminal, and storage;
  • the request receiving module 13 is configured to receive a streaming media data transmission request from the terminal, where the transmission request carries a device type of the terminal and a network type of the terminal accessing the network;
  • the code rate determining module 14 is configured to determine, according to the code rate stored in the code rate storage module 12, a network corresponding to a network type in which the terminal corresponding to the device type in the transmission request accesses the transmission request When downloading the code rate of the streaming media file;
  • the code rate sending module 15 is configured to send the code rate determined by the code rate determining module to the terminal, and instruct the terminal to determine, according to the index file, an address of the streaming media data encoded by the received code rate. And get streaming data.
  • the code rate storage module 12 is specifically configured to: if the terminal of the same device type is determined to access the same type of network according to the record information, when the code rate of the downloaded streaming media file is different, the minimum bit rate is selected. To store.
  • the record information further includes a download duration of the downloaded streaming media file.
  • the information receiving module 11 is specifically configured to: after receiving the record information reported by the terminal, delete the record information that includes the download duration that is less than the threshold. .
  • the ninth embodiment of the present invention performs statistical analysis of the code rate based on the device type of the terminal and the network type of the access network, and the ninth embodiment can further utilize the user account information and the downloaded streaming media.
  • the source information of the file, the start time and the end time of downloading the streaming media file, and the configuration information of the terminal are used for statistical analysis, and the code rate recommended to the terminal is determined according to the schemes in the second embodiment to the sixth embodiment. Description:
  • the record information that is specifically used by the information receiving module 11 further includes user account information;
  • the code rate storage module 12 is specifically configured to determine, according to the record information received by the information receiving module, a terminal for each device type and each type of network that the terminal accesses under each type of network that the terminal accesses. The information is downloaded at the bit rate of the streaming media file and stored.
  • the code rate storage module 12 is configured to determine, according to the record information, that when the terminal of the same device type accesses the same type of network and applies the same user account information, the code rate of the downloaded streaming media file is different, and then the selection is performed. The smallest bit rate is stored.
  • the information receiving module 11 is specifically configured to receive the source information of the downloaded streaming media file in the received record information.
  • the code rate storage module 12 is specifically configured to determine information from each source according to the record information received by the information receiving module, for each device type terminal, and the terminal under each type of network that the terminal accesses.
  • the corresponding source downloads the code rate of the streaming media file and stores it.
  • the code rate storage module 12 is specifically configured to: if the terminal of the same device type is determined to access the same type of network according to the record information, and the code rate of downloading the streaming media file from the same source is different, select the minimum The code rate is stored.
  • the record information also includes the case of downloading the start time and end time of the streaming media file.
  • the information receiving module 11 is specifically configured to receive, in the record information, a start time and an end time of downloading the streaming media file;
  • the code rate storage module 12 is specifically configured to determine, according to the record information received by the information receiving module, for each device type terminal and the terminal under each type of network that the terminal accesses, determine at each start The code rate of the streaming media file is downloaded and stored during the time period indicated by the time and end time.
  • the code rate storage module 12 is specifically configured to: if the terminal of the same device type is determined to access the same type of network according to the record information, and the code rate of the downloaded streaming media file is different within the same time period, Select the smallest bit rate and store it.
  • the information received by the information receiving module 11 for receiving the configuration information further includes configuration information of the terminal;
  • the code rate storage module 12 is specifically configured to: according to the record information received by the information receiving module, determine, under each configuration information, that each type of device is downloaded when each type of network accessed by the terminal Stream the file rate and store it.
  • the schemes in the above (1) to (4) can be arbitrarily combined, and the code rate storage module 12 can statistically analyze the code rate of the terminal in various cases according to various information, and store it.
  • the device that determines the code rate is the record information reported by the terminal to statistically analyze the code rate of the terminal in each case.
  • the device that determines the code rate may also report the device according to the media content distribution device.
  • the historical information is used to statistically analyze the code rate of the terminal in various situations.
  • the information is as follows:
  • the information receiving module 11 is further configured to receive historical information that is performed by the media content distribution device and that performs a streaming media service within a set duration.
  • the history information includes the device type of the terminal that performs the streaming media service, the network type of the network that the terminal accesses, and the code rate of the terminal downloading the streaming media file;
  • the code rate storage module 12 is further configured to download, according to the historical information, the code rate of the streaming media file when the terminal of each device type accesses each type of network that it accesses, and store the code rate.
  • the information receiving module 11 is further configured to delete the historical information including the downloading duration that is less than the threshold when the downloading of the streaming media file is downloaded.
  • the history information may further include user account information, source information of the downloaded streaming media file, start time and end time of downloading the streaming media file, and configuration information of the terminal, Explain separately.
  • the historical information also includes the user account information.
  • the information receiving module 11 specifically includes the user account information included in the historical information received
  • the code rate storage module 12 is specifically configured to determine, according to the historical information received by the information receiving module, for each device type terminal and the terminal under each type network that the terminal accesses. The code rate of the downloaded streaming media file when each user account information is applied, and stored.
  • the code rate storage module 12 is configured to determine, according to the historical information, that when the terminal of the same device type accesses the same type of network and applies the same user account information, the code rate of the downloaded streaming media file is different, and then the selection is performed. The smallest bit rate is stored.
  • the historical information also includes the source information of the downloaded streaming media file.
  • the information receiving module 11 is specifically configured to receive the source information of the downloaded streaming media file in the historical information received;
  • the code rate storage module 12 is specifically configured to determine information from each source according to the record information received by the information receiving module, for each device type terminal, and the terminal under each type of network that the terminal accesses.
  • the corresponding source downloads the code rate of the streaming media file and stores it.
  • the code rate storage module 12 is specifically configured to: if the terminal of the same device type is determined to access the same type of network according to the historical information, and the code rate of downloading the streaming media file from the same source is different, select the minimum The code rate is stored.
  • the historical information also includes the case of downloading the start time and end time of the streaming media file.
  • the information receiving module 11 is specifically configured to receive, in the record information, a start time and an end time of downloading the streaming media file;
  • the code rate storage module 12 is specifically configured to determine, according to the record information received by the information receiving module, for each device type terminal and the terminal under each type of network that the terminal accesses, determine at each start The code rate of the streaming media file is downloaded and stored during the time period indicated by the time and end time.
  • the code rate storage module 12 is specifically configured to: if the terminal of the same device type is determined to access the same type of network according to the historical information, and the code rate of the downloaded streaming media file is different within the same time period, Select the smallest bit rate and store it.
  • the history information also includes the configuration information of the terminal.
  • the information received by the information receiving module 11 for receiving the historical information further includes configuration information of the terminal;
  • the code rate storage module 12 is specifically configured to: according to the record information received by the information receiving module, determine, under each configuration information, that each type of device is downloaded when each type of network accessed by the terminal Stream the file rate and store it.
  • the schemes in the above (5) to (8) can be arbitrarily combined, and the code rate storage module 12 can statistically analyze the code rate of the terminal in various cases according to various information, and store it.
  • the code rate storage module 12 statistically analyzes the code rate of the terminal in various situations according to various information, and stores the code rate determination module 14 according to the content of the request received by the request receiving module 13 as a terminal. Recommended code rate, as described below:
  • the streaming media data transmission request received by the request receiving module 13 further includes user account information
  • the code rate determining module 14 is specifically configured to: according to the determined terminal for each device type and the code rate of the downloaded streaming media file when the terminal applies the user account information under each type of network that the terminal accesses, Determining, when the terminal corresponding to the device type in the transmission request accesses the network corresponding to the network type in the transmission request, and applying the user account information in the transmission request, downloading the code rate of the streaming media file.
  • the code rate determining module 14 is further configured to: if the determined terminal for each device type and the terminal under each type of network to which the terminal accesses, download the streaming media file when applying the user account information.
  • the code rate when the network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request is not recorded, when the user account information in the transmission request is applied,
  • the network rate corresponds to the code rate of the network.
  • the streaming media data transmission request received by the request receiving module 13 further includes a streaming medium.
  • the code rate determining module 14 is specifically configured to download a code rate of a streaming media file from a source corresponding to each source information according to the determined terminal for each device type and the type network that the terminal accesses. And determining, according to the network type corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request, and acquiring the streaming media file from the source corresponding to the source information in the transmission request, downloading the code rate of the streaming media file.
  • the streaming media data transmission request received by the request receiving module 13 further includes a current time
  • the code rate determining module 14 is specifically configured to download according to the determined terminal for each device type and the time period indicated by each terminal under each type of network that the terminal accesses, at each start time and end time.
  • the code rate of the streaming media file determines the network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request, and downloads the code rate of the streaming media file in the time period in which the current time is located.
  • the streaming media data transmission request received by the request receiving module 13 further includes configuration information of the terminal;
  • the code rate determining module 14 is specifically configured to determine, according to the determined, the code rate of the streaming media file when the terminal of each device type downloads the streaming media file for each type of network that is accessed by the terminal under each configuration information.
  • the terminal corresponding to the device type in the request in the configuration corresponding to the configuration information in the transmission request, downloads the code rate of the streaming media file when accessing the network corresponding to the network type in the transmission request.
  • the schemes in the above (1) to (d) can be arbitrarily combined, and the code rate determining module 14 can recommend the code rate for the terminal in multiple states according to the statistically analyzed content.
  • the tenth embodiment of the present invention further provides a certain code rate under the same inventive concept as that of the seventh embodiment.
  • the device includes an information receiving module, a code rate storage module, a request receiving module, a code rate determining module, and a code rate sending module, where:
  • the information receiving module is configured to receive, by the media content distribution device, the historical information of the streaming media service that is executed within the set duration, where the historical information includes the device type of the terminal that performs the streaming media service, and the terminal accesses the network.
  • the code rate storage module is configured to download, according to the historical information, the code rate of the streaming media file when the terminal of each device type accesses each type of network accessed by the terminal, and store the code rate;
  • the request receiving module is configured to receive a streaming media data transmission request from the terminal, where the transmission request carries a device type of the terminal and a network type of the terminal accessing the network;
  • the code rate determining module is configured to determine, according to the code rate stored in the code rate storage module, when the terminal corresponding to the device type in the transmission request accesses the network corresponding to the network type in the transmission request, Download the code rate of the streaming media file;
  • the code rate sending module is configured to send the code rate determined by the code rate determining module to the terminal, and instruct the terminal to determine, according to the index file, an address of the streaming media data encoded by the received code rate. And get streaming media data.
  • the information receiving module is further configured to delete the historical information including the downloading duration that is less than the threshold when the downloading of the streaming media file is downloaded.
  • the device that determines the code rate is the historical information reported by the media content distribution device to statistically analyze the code rate of the terminal in each case, except for the device type of the terminal and the network type of the network accessed by the terminal.
  • the historical information may also include user account information, source information of the downloaded streaming media file, start time and end time of downloading the streaming media file, and configuration information of the terminal, which are respectively described below.
  • the history information also includes the user account information.
  • the information receiving module is specifically configured to include user account information in the historical information received;
  • the code rate storage module is specifically configured to determine, according to the historical information received by the information receiving module, a terminal for each device type, and the terminal, under each type of network that the terminal accesses, determine application user account information.
  • the code rate of the downloaded streaming media file is stored and stored.
  • the code rate storage module is configured to determine, according to the historical information, that when the terminal of the same device type accesses the same type of network and applies the same user account information, the code rate of the downloaded streaming media file is different, and then the selection is performed.
  • the minimum bit rate is stored.
  • the history information also includes the source information of the downloaded streaming media file.
  • the information receiving module is specifically configured to receive the source information of the downloaded streaming media file in the historical information received;
  • the code rate storage module is specifically configured to determine, according to the record information received by the information receiving module, a terminal corresponding to each device type and each type of network that the terminal accesses, corresponding to each source information.
  • the source of the downloaded streaming file is the code rate and is stored.
  • the code rate storage module is specifically configured to: if the terminal of the same device type is determined to access the same type of network according to the historical information, and the code rate of downloading the streaming media file from the same source is different, select the smallest one. Rate and store.
  • the history information also includes the case of downloading the start time and end time of the streaming media file.
  • the information receiving module is specifically configured to receive, by the received information, a start time and an end time of downloading the streaming media file.
  • the code rate storage module is specifically configured to determine, according to the record information received by the information receiving module, a terminal for each device type and each type of network that the terminal accesses, at each start time.
  • the code rate of the streaming media file is downloaded and stored during the time period indicated by the end time.
  • the code rate storage module is specifically configured to: if the terminal of the same device type is determined to access the same type of network according to the historical information, and the code rate of the downloaded streaming media file is different within the same time period, then selecting The smallest bit rate is stored.
  • the history information also includes the configuration information of the terminal.
  • the information received by the information receiving module is further configured to include configuration information of the terminal.
  • the code rate storage module is specifically configured to: according to the record information received by the information receiving module, determine, under each configuration information, a download stream of each type of device when the terminal accesses each type of network The code rate of the media file, and stored.
  • the schemes in the above (1) to (4) can be arbitrarily combined, and the code rate storage module can statistically analyze the code rate of the terminal in various situations according to various information, and store it.
  • the code rate storage module periodically analyzes and analyzes the code rate of the terminal in various situations according to various information, and the code rate determining module may recommend the code rate for the terminal according to different content in the request received by the request receiving module.
  • the specific description is as follows:
  • the streaming media data transmission request received by the request receiving module further includes user account information
  • the code rate determining module is specifically configured to determine, according to the determined terminal for each device type, and the code rate of the downloaded streaming media file when the user applies the user account information under each type of network that the terminal accesses.
  • the code of the downloaded streaming media file is preferentially determined, and the code rate is determined.
  • the module is further configured to: if the terminal for each device type has been determined, and the code rate of the downloaded streaming media file when the user account information is applied under each type of network to which the terminal is connected, there is no record transmission request.
  • the network rate corresponds to the code rate of the network.
  • the streaming media data transmission request received by the request receiving module further includes source information of the streaming media file
  • the code rate determining module is specifically configured to download a code rate of a streaming media file from a source corresponding to each source information according to the determined terminal for each device type and the type network that the terminal accesses. Determining the network rate corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request, and downloading the streaming media file from the source corresponding to the source information in the transmission request, and downloading the code rate of the streaming media file.
  • the streaming media data transmission request received by the request receiving module further includes a current time
  • the code rate determining module is specifically configured to download a stream according to the determined terminal for each device type and the time period indicated by each terminal under each type of network that the terminal accesses, at each start time and end time.
  • the code rate of the media file is determined by the network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request, and the code rate of the streaming media file is downloaded during the current time period.
  • the streaming media data transmission request received by the request receiving module further includes configuration information of the terminal;
  • the code rate determining module is specifically configured to determine, according to the determined, the code rate of the streaming media file when the terminal of each device type downloads the streaming media file for each type of network accessed by the terminal of each device type, and determines the transmission request.
  • the terminal corresponding to the device type in the configuration corresponding to the configuration information in the transmission request downloads the code rate of the streaming media file when accessing the network corresponding to the network type in the transmission request.
  • the codes in the above) to U) can be arbitrarily combined, and the code rate determining module can recommend the code rate for the terminal in multiple states according to the statistically analyzed content.
  • the network side such as the EPG
  • MDN media content distribution device
  • Embodiment 11 of the present invention provides a terminal, as shown in FIG. 4, in the case that the terminal actively performs statistics on the code rate and selects a suitable code rate to download the streaming media file, and includes a code rate storage module 21 and an information determining module. 22.
  • the code rate storage module 21 is configured to determine, according to the record information when the streaming media service is executed, the code rate of the downloaded streaming media file when accessing each type of network, and store the network information, where the record information includes the network accessed by the terminal.
  • the information determining module 22 is configured to determine a network type of the currently accessed network
  • the code rate determining module 23 is configured to determine, according to the code rate stored in the code rate storage module, the code rate of the downloaded streaming media file under the currently accessed network;
  • the streaming media data obtaining module 24 is configured to determine, from an index file, an address of the streaming media data encoded by the code rate determined by the code rate determining module in the currently accessed network, and obtain a flow according to the determined address.
  • Media data is configured to determine, from an index file, an address of the streaming media data encoded by the code rate determined by the code rate determining module in the currently accessed network, and obtain a flow according to the determined address.
  • the code rate storage module 21 is configured to: when the record information further includes downloading the download duration of the streaming media file, delete the record information that includes the download duration less than the threshold.
  • the terminal performs statistical analysis according to the type of the device and the network type of the accessed network.
  • the terminal may also download the streaming media according to the user account information, the source information of the downloaded streaming media file, Statistical analysis is performed on the start time and end time of the file and the configuration information of the terminal, which are described below.
  • the code rate storage module 21 is specifically configured to determine, for each type of network that is accessed, the code rate of the downloaded streaming media file when the user account information is applied, and store the code rate.
  • the code rate storage module 21 is specifically configured to: according to the record information, when the same type of network is accessed and the same user account information is applied, the code rate of the downloaded streaming media file is different, and then the minimum bit rate is selected. And store it.
  • the code rate storage module 21 is specifically configured to determine a code rate of downloading a streaming media file from a source corresponding to each source information for each type of network accessed.
  • the code rate storage module 21 is specifically configured to: if it is determined according to the record information that a code rate is different when accessing the same type of network and downloading the streaming media file from the same source, select the minimum code rate and store the code rate. .
  • the record information also includes the case of downloading the start time and end time of the streaming media file.
  • the code rate storage module 21 is specifically configured to determine, for each type of network accessed, a code rate of the downloaded streaming media file in a time period indicated by each start time and end time, and store the code rate.
  • the code rate storage module 21 is specifically configured to: if it is determined according to the record information that the code rate of the downloaded streaming media file is different when accessing the same type of network and within the same time period, select the smallest code. Rate and store.
  • the code rate storage module 21 is specifically configured to separately determine, at each configuration information, a code rate of a streaming media file downloaded by a terminal of each device type when it is connected to each type of network, and stored.
  • the schemes in the above (1) to (4) can be arbitrarily combined, and the code rate storage module 12 can statistically analyze the code rates in various cases according to various information and store them.
  • the information determining module 22 is further configured to determine user account information currently used, source information of the downloaded streaming media file, start time and end time of downloading the streaming media file, and At least one of the configuration information of the terminal, the information actually determined by the information determining module 22 herein matches the information contained in the recorded information in the above (1) to (4).
  • the code rate determining module 23 is further configured to store, according to the (1) to (4) The determined code rate determines the code rate of the downloaded streaming media file under the currently added network and the additional information in (1) to (4).
  • FIG. 5 it is a schematic structural diagram of a system for acquiring streaming media data according to Embodiment 12 of the present invention, which includes a device 31 for determining a code rate and at least one terminal 32, where:
  • the terminal 32 is configured to report the record information of the streaming media service reported to the device 31 that determines the code rate, and after receiving the streaming media data transmission request to the device 31 that determines the code rate, receive the determined code from the determining code.
  • the network type of the incoming network and the code rate of the terminal downloading the streaming media file; the device 31 for determining the code rate is configured to determine, according to the recorded information, the download stream of each type of terminal when the terminal accesses each type of network a code rate of the media file, and when receiving the streaming media data transmission request of the device type carrying the terminal and the network type of the terminal access network, according to the determined terminal of each device type Downloading a code rate of the streaming media file when accessing each type of network, determining that the terminal corresponding to the device type in the transmission request accesses
  • the record information reported by the terminal 32 to the device 31 for determining the code rate may further include user account information, source information of the downloaded streaming media file, start time and end time of downloading the streaming media file, and configuration information of the terminal. At least one piece of information, the device 31 that determines the bit rate statistically analyzes the bit rate of the terminal in different states according to the record information including the above information, and details are not described herein again.
  • the system also includes a media content distribution device 33:
  • the media content distribution device 33 is configured to report the history information of the streaming media service within the set duration, to the device 31 that determines the code rate, where the history information includes the device type of the terminal that performs the streaming media service, and the terminal The network type of the accessed network and the code rate of the downloaded streaming media file by the terminal;
  • the device 31 for determining the code rate is further configured to receive the report reported by the media content distribution device 33.
  • the historical information and according to the historical information, respectively determine the code rate of the streaming media file when the terminal of each device type downloads each type of network that it accesses.
  • the history information reported by the media content distribution device 33 to the device 31 for determining the code rate may further include user account information, source information of the downloaded streaming media file, start time and end time of downloading the streaming media file, and terminal information.
  • the at least one information in the configuration information, the device 31 that determines the code rate is statistically analyzed according to the historical information including the above information, and the code rate of the terminal in different states is not described herein.
  • the thirteenth embodiment of the present invention further provides a system for acquiring streaming media data, including a device for determining a code rate, a media content distribution device, and at least one terminal, where:
  • the media content distribution device is configured to report the history information of the streaming media service in the set duration, to the device that determines the code rate, where the history information includes the device type of the terminal that performs the streaming media service, and the device is connected to the terminal.
  • the device for determining a code rate is configured to determine, according to the historical information, a code rate of a streaming media file when a terminal of each device type downloads each type of network accessed by the terminal, and receives the device type of the portable terminal and When the terminal accesses the network type streaming media data transmission request of the network, the downloading of the streaming media file is determined according to the determined code rate of the terminal of each device type for each type of network that the terminal accesses. When the terminal corresponding to the device type in the network accesses the network corresponding to the network type in the transmission request, downloading the code rate of the streaming media file, and sending the code rate to the terminal;
  • the terminal is configured to: after sending the streaming media data transmission request to the device that determines the code rate, receive a code rate sent by the device that determines the code rate, and determine, according to the index file, the received code rate.
  • the address of the encoded streaming media data is obtained, and the streaming media data is acquired.
  • the history information reported by the media content distribution device to the device that determines the bit rate may further include user account information, source information of the downloaded streaming media file, start time and end time of downloading the streaming media file, and configuration information of the terminal. At least one of the information, the device determining the bit rate according to the inclusion
  • the historical information of the above information is statistically analyzed as the bit rate of the terminal in different states, and details are not described herein again.
  • the embodiment 14 of the present invention further provides a device for determining a code rate.
  • the method includes: a first air interface 41, a memory 42, a second air interface 43, a processor 44, and a distributor 45, wherein:
  • the first air interface 41 is configured to receive the record information of the streaming media service that is reported by each terminal, where the record information includes the device type of the terminal, the network type of the network that the terminal accesses, and the code rate of the terminal downloading the streaming media file.
  • the memory 42 is configured to download, according to the record information received by the first air interface 41, the code rate of the streaming media file when the terminal of each device type accesses each type of network accessed by the terminal, and store the code rate;
  • the second air interface 43 is configured to receive a streaming media data transmission request from the terminal, where the transmission request carries a device type of the terminal and a network type of the terminal accessing the network;
  • the processor 44 is configured to: according to the code rate stored in the memory 42, determine that when the terminal corresponding to the device type in the transmission request accesses the network corresponding to the network type in the transmission request, downloading the streaming media The code rate of the file;
  • the distributor 45 is configured to send the code rate determined by the processor 44 to the terminal, and instruct the terminal to determine an address of the streaming media data encoded by the received code rate according to the index file, and obtain the Streaming data.
  • the memory 42 is specifically configured to: if the terminal of the same device type is determined to access the same type of network according to the record information, the code rate of the downloaded streaming media file is different, and then the minimum code rate is selected for storage. .
  • the record information further includes a download duration of the downloaded streaming media file.
  • the first air interface 41 is specifically configured to: after receiving the record information reported by the terminal, delete the record information that includes the download duration that is less than the threshold. .
  • Embodiment 14 of the present invention is based on the device type of the terminal and the network type of the access network.
  • the fourteenth embodiment may further utilize the user account information, the source information of the downloaded streaming media file, the start time and end time of downloading the streaming media file, and the configuration information of the terminal.
  • the parameters are used for statistical analysis, which are explained below:
  • the first air interface 41 is specifically configured to receive user account information in the received record information.
  • the memory 42 is specifically configured to use the record information received by the information receiving module, for each device type.
  • the terminal and the terminal determine the code rate of the downloaded streaming media file when each user account information is applied, and store it under each type of network that the terminal accesses.
  • the memory 42 is specifically configured to determine, according to the record information, that the terminal of the same device type selects the same type of network and applies the same user account information, and the code rate of the downloaded streaming media file is different, and then selects the smallest one. Rate and store.
  • the first air interface 41 is specifically configured to receive the source information of the downloaded streaming media file in the received record information
  • the memory 42 is specifically configured to determine, according to the record information received by the information receiving module, a source corresponding to each source information for each type of device terminal and each type of network that the terminal accesses. Download the streaming rate of the streaming file and store it.
  • the memory 42 is specifically configured to: if the terminal of the same device type is determined to access the same type of network according to the record information, and the code rate of downloading the streaming media file from the same source is different, select the minimum bit rate. And store it.
  • the record information also includes the case of downloading the start time and end time of the streaming media file.
  • the first air interface 41 is specifically configured to receive, in the record information, a start time and an end time of downloading the streaming media file.
  • the memory 42 is specifically configured to determine, according to the record information received by the information receiving module, a terminal for each device type and each type of network that the terminal accesses, The code rate of the streaming media file is downloaded and stored during the time period indicated by the start time and the end time.
  • the memory 42 is specifically configured to: if the terminal of the same device type is determined to access the same type of network according to the record information, and the code rate of the downloaded streaming media file is different within the same time period, select the minimum The code rate is stored.
  • the first air interface 41 is specifically configured to receive the configuration information of the terminal in the received record information
  • the memory 42 is specifically configured to: according to the record information received by the information receiving module, determine, under each configuration information, a terminal of each device type to download a streaming media file when each type of network accessed by the terminal The code rate, and the storage.
  • the schemes in the above (1) to (4) can be arbitrarily combined, and the memory 42 can statistically analyze the code rate of the terminal in various cases according to various kinds of information, and store it.
  • the device that determines the code rate is the record information reported by the terminal to statistically analyze the code rate of the terminal in each case.
  • the device that determines the code rate may also report the device according to the media content distribution device.
  • the historical information is used to statistically analyze the code rate of the terminal in each case.
  • the specific description is as follows:
  • the first air interface 41 is further configured to receive historical information that is reported by the media content distribution device and that performs a streaming media service within a set duration.
  • the information includes the device type of the terminal that performs the streaming media service, the network type of the network that the terminal accesses, and the code rate of the terminal downloading the streaming media file.
  • the memory 42 is further configured to download, according to the historical information, the code rate of the streaming media file when the terminal of each device type accesses each type of network accessed by the terminal, and store.
  • the first air interface 41 is further configured to delete the history information that includes the download duration less than the threshold when the downloading duration of the downloaded streaming media file is included in the history information.
  • the history information may further include user account information, source information of the downloaded streaming media file, start time and end time of downloading the streaming media file, and configuration information of the terminal, Explain separately.
  • the historical information also includes the user account information.
  • the first air interface 41 is specifically configured to receive the user account information in the historical information
  • the memory 42 is specifically configured to use, according to the history information received by the information receiving module, for each device type.
  • the terminal and the terminal determine the code rate of the downloaded streaming media file when each user account information is applied, and store it under each type of network that the terminal accesses.
  • the memory 42 is specifically configured to determine, according to the historical information, that when the terminal of the same device type accesses the same type of network and applies the same user account information, the code rate of the downloaded streaming media file is different, and then the smallest one is selected. Rate and store.
  • the historical information also includes the source information of the downloaded streaming media file.
  • the first air interface 41 is specifically configured to receive the source information of the downloaded streaming media file in the historical information received;
  • the memory 42 is specifically configured to determine, according to the record information received by the information receiving module, a source corresponding to each source information for each type of device terminal and each type of network that the terminal accesses. Download the streaming rate of the streaming file and store it.
  • the memory 42 is specifically configured to: if the terminal of the same device type is determined to access the same type of network according to the historical information, and the code rate of downloading the streaming media file from the same source is different, select the minimum bit rate. And store it.
  • the historical information also includes the case of downloading the start time and end time of the streaming media file.
  • the first air interface 41 is specifically configured to receive, in the record information, a start time and an end time of downloading the streaming media file.
  • the memory 42 is specifically configured to determine, according to the record information received by the information receiving module, a terminal for each device type and each type of network that the terminal accesses, at each start time and end.
  • the code rate of the streaming media file is downloaded during the time period indicated by the time and stored.
  • the memory 42 is specifically configured to: if the terminal of the same device type is determined to access the same type of network according to the historical information, and the code rate of the downloaded streaming media file is different within the same time period, Then select the smallest bit rate and store it.
  • the history information also includes the configuration information of the terminal.
  • the first air interface 41 is specifically configured to receive the configuration information of the terminal in the historical information received;
  • the memory 42 is specifically configured to: according to the record information received by the information receiving module, determine, under each configuration information, a terminal of each device type to download a streaming media file when each type of network accessed by the terminal The code rate, and the storage.
  • the schemes in the above (5) to (8) can be arbitrarily combined, and the memory 42 can statistically analyze the code rate of the terminal in various cases according to various kinds of information, and store it.
  • the memory 42 can statistically analyze the code rate of the terminal in various situations according to various information, and the processor 44 can recommend the code rate for the terminal according to the content of the request received by the second air interface 43. Described as follows:
  • the streaming media data transmission request received by the second air interface 43 further includes user account information
  • the processor 44 is specifically configured to determine, according to the determined terminal rate for each device type and the code rate of the downloaded streaming media file when the user applies each user account information under each type of network that the terminal accesses.
  • the terminal corresponding to the device type in the transmission request accesses the network corresponding to the network type in the transmission request, and the user account information in the transmission request is applied, the code rate of the streaming media file is downloaded.
  • the processor 44 is further configured to: if the determined terminal for each device type and the terminal are used in each type of network that the terminal accesses, the code of the downloaded streaming media file when the user account information is applied. In the case where the network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request is not recorded, when the user account information in the transmission request is applied,
  • Determining the code rate of the network account corresponding to the network type in the terminal access transmission request of the other device type, or the device class of the other user account information in the transmission request The code rate when the type corresponding terminal accesses the network corresponding to the network type in the transmission request.
  • the streaming media data transmission request received by the second air interface 43 further includes source information of the streaming media file
  • the processor 44 is specifically configured to: according to the determined terminal for each device type, and the code rate of the streaming media file downloaded from the source corresponding to each source information, and determined by the terminal under each type of network that the terminal accesses
  • the code rate of the streaming media file is downloaded when the network file corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request is obtained, and the streaming media file is obtained from the source corresponding to the source information in the transmission request.
  • the streaming media data transmission request received by the second air interface 43 further includes a current time; the processor 44 is specifically configured to: according to the determined terminal for each device type and the terminal that the terminal accesses In each type of network, the code rate of the streaming media file is downloaded in the time period indicated by each start time and end time, and the network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request is determined. And download the code rate of the streaming media file during the current time period.
  • the streaming media data transmission request used by the second air interface 43 further includes configuration information of the terminal;
  • the processor 44 is specifically configured to determine, according to the determined configuration information, the code rate of the streaming media file when the terminal of each device type downloads the streaming media file for each type of network that the device accesses, in the transmission request.
  • the device corresponding to the device type downloads the code rate of the streaming media file when accessing the network corresponding to the network type in the transmission request under the configuration corresponding to the configuration information in the transmission request.
  • the fifteenth embodiment of the present invention further provides an apparatus for determining a code rate, including a first air interface, a memory, a second air interface, a processor, and a distributor, where: a history information of a volume service, where the history information includes performing streaming media The device type of the terminal of the service, the network type of the network accessed by the terminal, and the code rate of the downloaded streaming media file by the terminal;
  • the memory is configured to download, according to the historical information, the code rate of the streaming media file when the terminal of each device type is connected to each type of network, and store the data rate;
  • the second air interface is configured to receive a streaming media data transmission request from the terminal, where the transmission request carries a device type of the terminal and a network type of the terminal accessing the network;
  • the processor is configured to: when the terminal corresponding to the device type in the transmission request accesses the network corresponding to the network type in the transmission request, downloading the streaming media according to the code rate stored in the code rate storage module.
  • the code rate of the file
  • the distributor is configured to send the code rate determined by the code rate determining module to the terminal, and instruct the terminal to determine an address of the streaming media data encoded by the received code rate according to the index file, and obtain the stream. Media data.
  • the first air interface is further configured to delete the history information that includes the download duration that is less than the threshold.
  • the device that determines the code rate is the historical information reported by the media content distribution device to statistically analyze the code rate of the terminal in each case, except for the device type of the terminal and the network type of the network accessed by the terminal.
  • the history information may also include user account information, source information of the downloaded streaming media file, start time and end time of downloading the streaming media file, and configuration information of the terminal, which are respectively described below.
  • the history information also includes the user account information.
  • the first air interface is specifically used to receive the historical information, and further includes user account information;
  • the memory is specifically configured to download, according to the historical information received by the information receiving module, a terminal for each device type and a terminal under which each terminal accesses the user account information. Stream the file rate and store it.
  • the memory is specifically configured to determine, according to the historical information, that the terminal of the same device type selects the smallest code when the code rate of the downloaded streaming media file is different when accessing the same type of network and applying the same user account information. Rate and store.
  • the history information also includes the source information of the downloaded streaming media file.
  • the first air interface is specifically configured to receive the source information of the downloaded streaming media file in the historical information received;
  • the memory is specifically configured to determine, according to the record information received by the information receiving module, a source corresponding to each source information for each device type terminal and the terminal under each type of network to which the terminal accesses Download the streaming file's bitrate and store it.
  • the memory is specifically configured to: if the terminal of the same device type is determined to access the same type of network according to the historical information, and the code rate of downloading the streaming media file from the same source is different, select the minimum code rate and storage.
  • the history information also includes the case of downloading the start time and end time of the streaming media file.
  • the first air interface is specifically configured to receive, by the received record information, a start time and an end time of downloading the streaming media file;
  • the memory is specifically configured to determine, according to the record information received by the information receiving module, a terminal for each device type and each type of network to which the terminal accesses, at each start time and end time.
  • the code rate of the streaming media file is downloaded during the indicated time period and stored.
  • the memory is specifically configured to: if the terminal of the same device type is determined to access the same type of network according to the historical information, and the code rate of the downloaded streaming media file is different within the same time period, select the smallest one. Rate and store.
  • the history information also includes the configuration information of the terminal.
  • the first air interface is specifically configured to receive the configuration information of the terminal, where the received information is specifically used to: according to the record information received by the information receiving module, under each configuration information, The bit rate of the streaming media file is determined and stored by the terminal of each device type when it is connected to each type of network.
  • the schemes in the above (1) to (4) can be arbitrarily combined, and the memory can statistically analyze the code rate of the terminal in various cases according to various information, and store it.
  • the processor may recommend the code rate for the terminal according to the content of the request received by the second air interface.
  • the specific description is as follows:
  • the streaming media data transmission request for receiving the second air interface further includes user account information
  • the processor is specifically configured to determine, according to the determined terminal rate for each device type, and the code rate of the downloaded streaming media file when the user applies the user account information under each type of network that the terminal accesses.
  • the code rate of the streaming media file is downloaded.
  • the processor is further configured to: if the determined terminal for each device type and the terminal, the code rate of the downloaded streaming media file when the user account information is applied under each type of network that the terminal accesses In the case where the network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request is not recorded, when the user account information in the transmission request is applied,
  • the network rate corresponds to the code rate of the network.
  • the streaming media data transmission request received by the second air interface further includes a streaming media file.
  • Source information
  • the processor is specifically configured to download, according to the determined terminal for each device type, the code rate of the streaming media file from the source corresponding to each source information, and determine the When the terminal corresponding to the device type in the transmission request accesses the network corresponding to the network type in the transmission request, and the streaming media file is obtained from the source corresponding to the source information in the transmission request, the code rate of the streaming media file is downloaded.
  • the second air interface for receiving the streaming media data transmission request further includes a current time; the processor is specifically configured to: according to the determined terminal for each device type and each of the terminals to which the terminal is connected In the type network, downloading the code rate of the streaming media file in a time period indicated by each start time and end time, and determining a network corresponding to the network type in the terminal access transmission request corresponding to the device type in the transmission request, and Download the code rate of the streaming media file during the current time period.
  • the streaming media data transmission request received by the second air interface further includes configuration information of the terminal
  • the processor is specifically configured to determine, according to each determined configuration information, a code rate of a streaming media file when a terminal of each device type downloads a streaming media file for each type of network that the device accesses, and determines the content of the streaming media file in the transmission request.
  • the terminal corresponding to the device type downloads the code rate of the streaming media file when accessing the network corresponding to the network type in the transmission request under the configuration corresponding to the configuration information in the transmission request.
  • the schemes in the above) to U) can be arbitrarily combined, and the processor can recommend the code rate for the terminal in multiple states according to the statistically analyzed content.
  • a sixteenth embodiment of the present invention provides a terminal, as shown in FIG. 7, including a memory 51, a first processor 52, a second processor 53, and a downloader 54, wherein:
  • the memory 51 is configured to determine, according to the record information when the streaming media service is performed, the code rate of the downloaded streaming media file when accessing each type of network, and store the network information of the network accessed by the terminal. And the bit rate of the terminal downloading the streaming media file;
  • the first processor 52 is configured to determine a network type of a currently accessed network
  • the second processor 53 is configured to determine, according to the code rate stored in the memory 51, the code rate of the downloaded streaming media file under the currently accessed network;
  • the downloader 54 is configured to determine, from the index file, an address of the streaming media data encoded by the code rate determined by the code rate determining module in the currently accessed network, and obtain the streaming media data according to the determined address.
  • the memory 51 is specifically configured to: when the download information further includes downloading the download duration of the streaming media file, delete the recorded information that includes the download duration less than the threshold.
  • the terminal performs statistical analysis according to the type of the device and the network type of the accessed network.
  • the terminal may also download the streaming media according to the user account information, the source information of the downloaded streaming media file, Statistical analysis is performed on the start time and end time of the file and the configuration information of the terminal, which are described below.
  • the memory 51 is specifically configured to determine, for each type of network that is accessed, the code rate of the downloaded streaming media file when the user account information is applied, and store the code rate.
  • the memory 51 is specifically configured to determine, according to the record information, that the code rate of the downloaded streaming media file is different when accessing the same type of network and applying the same user account information, and then selecting the smallest code rate and storing.
  • the memory 51 is specifically configured to determine a code rate of downloading a streaming media file from a source corresponding to each source information for each type of network accessed.
  • the memory 51 is specifically configured to determine to access the same class according to the record information.
  • Type network and download streaming media files from the same source have different code rates, then select the smallest bit rate and store them.
  • the record information also includes the case of downloading the start time and end time of the streaming media file.
  • the memory 51 is specifically configured to determine, for each type of network accessed, a code rate of the downloaded streaming media file within a time period indicated by each start time and end time, and store the code rate.
  • the memory 51 is specifically configured to: if it is determined according to the record information that the code rate of the downloaded streaming media file is different when accessing the same type of network and within the same time period, select the smallest bit rate and store the code rate. .
  • the memory 51 is specifically configured to separately determine, at each configuration information, a code rate of a streaming media file downloaded by a terminal of each device type when it is connected to each type of network, and stored.
  • the schemes in the above (1) to (4) can be arbitrarily combined, and the memory 51 can statistically analyze the code rates in various cases according to various kinds of information and store them.
  • the first processor 52 can determine the user account information, the source information of the downloaded streaming media file, the start time and end time of downloading the streaming media file, and the configuration information of the terminal, in addition to determining the network type of the network currently accessed by the terminal. At least one of the information, and further, the second processor 53 determines an appropriate code rate for itself based on the code rate in the various states stored in the memory 51.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the application can take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) in which computer usable program code is embodied.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明公开了一种获取流媒体数据的方法、设备及系统,通过对终端和媒体内容分发设备中的至少一种设备所记录的历史流媒体业务相关信息的统计分析,归纳出不同类型的终端在接入各种类型的网络时,适合下载的流媒体文件的码率,以便于终端在进行流媒体业务时,可直接请求获取适合码率的流媒体文件,而无需从最低码率开始尝试下载,避免了现有的流媒体获取方案中前数十秒获取的流媒体数据质量差的问题,使得下载并播放的所有流媒体数据的质量都较好。

Description

获取流媒体数据的方法、 设备及系统 本申请要求于 2013 年 04 月 23 日提交中国专利局、 申请号为 201310143304. 9 , 发明名称为 "获取流媒体数据的方法、 设备及系统" 的中国 专利申请的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及流媒体技术, 尤其涉及一种获取流媒体数据的方法、设备及系 统。
背景技术
近年来, 互联网视频业务迅猛发展,视频内容的流量已占到了整个互联网 流量的一半。谈到互联网视频业务就不得不提到流媒体技术,正是由于流媒体 技术的不断发展才促进了目前互联网视频业务的迅猛发展。目前的流媒体技术 主要有两大类,一类是以 RTSP/RTP(Real Time Streaming Protocol, 实时流传输 协议 /Real Time Transfer Protocol,实时传送协议)为代表的面向连接的流媒体技 术, 另一类是目前主流视频网站采用的无连接的 HTTP ( Hyper Text Transfer Protocol, 超文本传输协议)渐进式下载的流媒体技术。
RTSP/RTP流媒体技术是基于组播的应用层协议的端对端下载技术,其中, RTP用于流媒体数据的传输, RTSP用于统计、 管理和控制 RTP传输, 两者协 同工作, 能够显著提高网络实时数据的传输效率。 但是, RTSP/RTP流媒体技 术还存在以下弊端:
RTSP/RTP 协议栈的逻辑实现较为复杂, 与 HTTP 技术相比, 支持
RTSP/RTP的终端软硬件实现难度较大, 特别是对于嵌入式终端来说尤其难以 实现; 另外, RTSP协议使用的网络端口号 (554)可能被部分用户网络中的防火 墙和 NAT等封堵, 导致无法使用, 虽然有些流媒体服务器可通过隧道方式将 RTSP配置在 HTTP的 80端口上承载, 但实际部署起来并不是特别方便。
HTTP渐进式下载的流媒体技术是指: HTTP终端可以在整个流媒体文件 被下载完成之前可开始流媒体数据的播放, HTTP终端和流媒体服务器如果均 支持 HTTP1.1 , HTTP终端还可从没下载完成的部分任意选取一个时间点开始 媒体的播放。 目前, 主流的视频网站均采用了 HTTP渐进式下载的方式来实现 流媒体的分发。
与 RTSP/RTP技术相比, HTTP渐进式下载的流媒体技术采用了无状态的
HTTP协议, 当 HTTP终端向流媒体服务器请求流媒体数据时, 流媒体服务器 将请求的流媒体数据下发给终端, 但是, 流媒体服务器不记录终端的状态, HTTP终端的每次请求都是一次性独立的会话。
作为最筒单和原始的流媒体解决方案, HTTP渐进式下载方案的显著优点 在于其仅需要维护一个标准的 Web服务器, 其安装和维护的工作量和复杂性 比起专门的流媒体服务器来说要筒单和容易得多。 然而, 其缺点和不足也很明 显, 首先是带宽容易浪费, 当一个 HTTP终端一边从流媒体服务器上下载流媒 体数据, 一边观看内容时, 若没有观看完毕就选择停止观看, 则已经下载完成 的流媒体数据则是对带宽资源的一种浪费。其次,基于 HTTP的渐进式下载仅 仅适用于点播内容, 而不支持直播内容。
有鉴于此, 一种结合了 RTSP/RTP和 HTTP渐进式下载的流媒体技术的 HTTP Adaptive Streaming (以下筒称' 'HAS" )技术应运而生, HAS技术可以大 大提升用户的媒体播放体验, 同时降低了流媒体服务器的技术复杂度; 另夕卜, 基于 HTTP的传送方式提升了流媒体数据在网络设备中的穿透能力, HAS技 术目前已成为流媒体视频行业发展的趋势。
HAS技术的关键是对流媒体文件的切割分块, 每个分块的时间长度相同, 一般为 10秒左右。 在视频编码层, 这意味着每个分块都由若干个完整的视频 GOP组成, 每个分块都有一个关键 I帧, 以此保证每个分块的独立性。
每个分块可分别按照不同的码率进行编码,得到多种码率的分块, 也就是 说, 流媒体服务器在本地存储以不同码率编码的流媒体文件, 同样内容的流媒 体文件, 分别编码得到 128kbps码率的流媒体文件、 256kbps码率的流媒体文 件、 512kbps码率的流媒体文件等。 流媒体服务器还提供索引文件, 所述索引 文件中记录了不同码率的流媒体文件的相关信息。终端从流媒体服务器处下载 索引文件后, 根据其中记录的信息, 请求下载并播放最低码率的流媒体文件, 若该最低码率的流媒体文件的一个分块能够成功下载并播放,表示当前的终端 能力和网络状态能够支持最低码率, 则终端尝试请求更高码率的流媒体文件, 若更高码率的流媒体文件的一个分块也能够成功下载并播放,则继续尝试下载 再高一些码率的流媒体文件,若更高码率的流媒体文件的一个分块不能成功下 载并播放, 则仍继续下载并播放最低码率的流媒体文件, 以此类推, 直至稳定 至某一个合适的码率进行流媒体文件的下载和播放。
以一种基于 HTTP的流媒体传输协议(HTTP Live Streaming, HLS ) 的 HAS技术为例, 将完整的流媒体文件分成多个基于 HTTP的分块, 在开始一 次流媒体会话时,终端首先从流媒体服务器中下载一个包含元数据的 extended M3U playlist文件(即索引文件, 后续筒称 playlist文件 ), 在 HLS规范中, 对 playlist文件的描述如下:
一个 playlist文件是由多个独立行组成的文本文件, 每行由回车或换行标 志区分,每一行中记录了在某一码率下一个分块的 URI以及相应的属性信息, 所述属性信息包括:
BANDWIDTH: 带宽, 必选参数,表示该码率下的分块传输所需的带宽; PROGRAM-ID: 该值是一个十进制整数, 唯一地标识一个在 Playlist文 件范围内的特定的描述;
CODECS: 解码器信息, 可选参数;
RESOLUTION: 分辨率, 表示该码率下的分块在终端播放时所需的分辨 AUDIO: 音频信息, 须与 AUDIO 类别的 " EXT-X-MEDIA"标签中 "GROUP-ID"属性值相匹配, 表示该码率下的分块在终端播放时所需的音频 信息;
VIDEO: 视频信息, 须与 VIDEO 类别的 " EXT-X-MEDIA"标签中 "GROUP-ID"属性值相匹配, 表示该码率下的分块在终端播放时所需的视频 信息。
终端从流媒体服务器下载 playlist文件后, 按照码率从低至高的顺序, 根 据 playlist文件中记载的各不同码率分块的 URI ( Uniform Resource Identifier, 通用资源标识符), 下载并播放流媒体文件的分块, 直至稳定在一个合适的码 率上, 之后持续下载并播放该合适码率的流媒体文件。 在上述的流媒体数据获取方案中, HLS规范中建议每个分片时长约为 10 秒,在按照码率从低至高下载流媒体文件时, 刚开始下载的数十秒流媒体文件 是低码率的流媒体数据, 由于码率越高的流媒体数据的画面细节越丰富, 即图 像质量越好, 因此, 以上述流媒体获取方案下载并播放的前数十秒流媒体数据 的质量较差。 发明内容
本发明实施例提供一种获取流媒体数据的方法、设备及系统, 用以解决现 有技术中存在的下载并播放的前数十秒流媒体数据的质量较差的问题。
第一方面, 提供一种获取流媒体数据的方法, 包括:
接收来自终端的流媒体数据传输请求,所述传输请求中携带所述终端的设 备类型和所述终端接入网络的网络类型;
根据已确定的每种设备类型的终端在其所接入的各类型的网络时下载流 媒体文件的码率,确定在所述传输请求中的设备类型对应的终端接入所述传输 请求中的网络类型对应的网络时, 下载流媒体文件的码率;
将确定出的码率发送给所述终端,指示所述终端根据索引文件确定出由接 收到的码率进行编码的流媒体数据的地址, 并获取流媒体数据;
其中,所述每种设备类型的终端在其所接入的各类型的网络时下载流媒体 文件的码率,是根据各终端上报的执行流媒体业务的记录信息确定的, 所述记 录信息中包括终端的设备类型、终端所接入网络的网络类型和终端下载流媒体 文件的码率。
结合第一方面, 在第一种可能的实现方式中, 所述方法还包括: 若根据所述记录信息确定相同设备类型的终端在接入相同类型网络时,下 载流媒体文件的码率不同, 则选择其中最小的码率。
结合第一方面,在第二种可能的实现方式中, 所述记录信息中还包括用户 账号信息;
根据各终端上报的记录信息确定每种设备类型的终端在其所接入的各类 型的网络时下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下 ,确定应 用各用户账号信息时所下载流媒体文件的码率。
结合第一方面的第一种可能的实现方式,在第三种可能的实现方式中, 所 述方法还包括:
若根据所述记录信息确定相同设备类型的终端在接入相同类型网络且应 用相同用户账号信息时,下载流媒体文件的码率不同,则选择其中最小的码率。
结合第一方面,在第四种可能的实现方式中, 所述记录信息中还包括所下 载的流媒体文件的来源信息;
根据各终端上报的记录信息确定每种设备类型的终端在其所接入的各类 型的网络时下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定从 各来源信息对应的来源处下载流媒体文件的码率。
结合第一方面的第四种可能的实现方式,在第五种可能的实现方式中, 所 述方法还包括:
若根据所述记录信息确定相同设备类型的终端在接入相同类型网络且从 相同来源处下载流媒体文件的码率不同, 则选择其中最小的码率。
结合第一方面,在第六种可能的实现方式中, 所述记录信息中还包括下载 流媒体文件的开始时间和结束时间;
根据各终端上报的记录信息确定每种设备类型的终端在其所接入的各类 型的网络时下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定在 每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率。
结合第一方面的第六种可能的实现方式,在第七种可能的实现方式中, 所 述方法还包括:
若根据所述记录信息确定相同设备类型的终端在接入相同类型网络且在 相同时间段内, 所下载流媒体文件的码率不同, 则选择其中最小的码率。
结合第一方面,在第八种可能的实现方式中, 所述记录信息中还包括终端 的配置信息;
根据各终端上报的记录信息确定每种设备类型的终端在其所接入的各类 型的网络时下载流媒体文件的码率, 具体包括:
在每种配置信息下,确定每种设备类型的终端在其所接入的各类型的网络 时下载流媒体文件的码率。
结合第一方面的第一种可能的实现方式、第二方面的第二种可能的实现方 式、 第一方面的第三种可能的实现方式、 第一方面的第四种可能的实现方式、 第一方面的第五种可能的实现方式、 第一方面的第六种可能的实现方式、 第一 方面的第七种可能的实现方式或第一方面的第八种可能的实现方式,在第九种 可能的实现方式中, 所述记录信息中还包括下载流媒体文件的下载时长;
在接收终端上报的记录信息后,且确定每种设备类型的终端在其所接入的 各类型的网络时下载流媒体文件的码率之前, 所述方法还包括:
删除包含的下载时长小于门限值的记录信息。 结合第一方面的第一种可能的实现方式、第二方面的第二种可能的实现方 式、 第一方面的第三种可能的实现方式、 第一方面的第四种可能的实现方式、 第一方面的第五种可能的实现方式、 第一方面的第六种可能的实现方式、 第一 方面的第七种可能的实现方式或第一方面的第八种可能的实现方式,在第十种 可能的实现方式中, 还包括: 所述历史信息中包括执行流媒体业务的终端的设备类型、该终端所接入网络的 网络类型和终端下载流媒体文件的码率;
根据所述历史信息,分别确定每种设备类型的终端在其所接入的各类型的 网络时, 下载流媒体文件的码率。
结合第一方面的第十种可能的实现方式, 在第十一种可能的实现方式中, 所述历史信息中还包括用户账号信息;
根据媒体内容分发设备上报的历史信息,确定每种设备类型的终端在其所 接入的各类型的网络时, 下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定应 用各用户账号信息时所下载流媒体文件的码率。
结合第一方面的第十种可能的实现方式, 在第十二种可能的实现方式中, 所述历史信息中还包括所下载的流媒体文件的来源信息;
根据媒体内容分发设备上报的历史信息,确定每种设备类型的终端在其所 接入的各类型的网络时, 下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定从 各来源信息对应的来源处下载流媒体文件的码率。
结合第一方面的第十种可能的实现方式, 在第十三种可能的实现方式中, 所述历史信息中还包括下载流媒体文件的开始时间和结束时间;
根据媒体内容分发设备上报的历史信息,确定每种设备类型的终端在其所 接入的各类型的网络时, 下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定在 每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率。
结合第一方面的第十种可能的实现方式, 在第十四种可能的实现方式中, 所述历史信息中还包括终端的配置信息;
根据媒体内容分发设备上报的历史信息,确定每种设备类型的终端在其所 接入的各类型的网络时, 下载流媒体文件的码率, 具体包括:
在每种配置信息下,确定每种设备类型的终端在其所接入的各类型的网络 时下载流媒体文件的码率。
结合第一方面的第十种可能的实现方式、第一方面的第十一种可能的实现 方式、第一方面的第十二种可能的实现方式、 第一方面的第十三种可能的实现 方式或第一方面的第十四种可能的实现方式, 在第十五种可能的实现方式中, 所述历史信息中还包括下载流媒体文件的下载时长;
在接收内容分发设备上报的历史信息后,且根据历史信息确定每种设备类 型的终端在其所接入的各类型的网络时下载流媒体文件的码率之前,所述方法 还包括:
删除包含的下载时长小于门限值的历史信息。
结合第一方面的第二种可能的实现方式, 在第十六种可能的实现方式中, 所述传输请求中还携带用户账号信息;
确定在所述传输请求中的设备类型对应的终端接入所述传输请求中的网 络类型对应的网络时, 下载流媒体文件的码率, 具体包括:
根据已确定的针对每种设备类型的终端以及该终端在其所接入的各类型 网络下,应用各用户账号信息时所下载流媒体文件的码率,确定在传输请求中 的设备类型对应的终端接入所述传输请求中的网络类型对应的网络,且应用传 输请求中的用户账号信息时, 下载流媒体文件的码率。 结合第一方面的第十六种可能的实现方式,在第十七种可能的实现方式中, 若已确定的针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 应用各用户账号信息时所下载流媒体文件的码率中,没有记录传输请求中的设 备类型对应的终端接入传输请求中的网络类型对应的网络时,应用传输请求中 的用户账号信息的情况, 则
确定该传输请求中用户账号信息在其他设备类型的终端接入传输请求中 的网络类型对应的网络时的码率,或其他用户账号信息在传输请求中的设备类 型对应的终端接入传输请求中的网络类型对应的网络时的码率。
结合第一方面的第四种可能的实现方式, 在第十八种可能的实现方式中, 所述传输请求中还携带流媒体文件的来源信息;
确定在传输请求中的设备类型对应的终端接入传输请求中的网络类型对 应的网络时, 下载流媒体文件的码率, 具体包括:
根据已确定的针对每种设备类型的终端以及该终端在其所接入的各类型 网络下,从各来源信息对应的来源处下载流媒体文件的码率,确定在传输请求 中的设备类型对应的终端接入传输请求中的网络类型对应的网络,且从传输请 求中的来源信息对应的来源处获取流媒体文件时, 下载流媒体文件的码率。
结合第一方面的第六种可能的实现方式, 在第十九种可能的实现方式中, 所述传输请求中还携带当前时间;
确定在传输请求中的设备类型对应的终端接入传输请求中的网络类型对 应的网络时, 下载流媒体文件的码率, 具体包括:
根据已确定的针对每种设备类型的终端以及该终端在其所接入的各类型 网络下 ,在每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率 , 确定在传输请求中的设备类型对应的终端接入传输请求中的网络类型对应的 网络, 且在当前时间所在的时间段内, 下载流媒体文件的码率。
结合第一方面的第八种可能的实现方式, 在第二十种可能的实现方式中, 所述传输请求中还携带终端的配置信息;
确定在传输请求中的设备类型对应的终端接入传输请求中的网络类型对 应的网络时, 下载流媒体文件的码率, 具体包括:
根据已确定的在每种配置信息下,针对每种设备类型的终端在其所接入的 各类型的网络时下载流媒体文件的码率,确定在传输请求中的设备类型对应的 终端在传输请求中的配置信息对应的配置下,接入传输请求中的网络类型对应 的网络时, 下载流媒体文件的码率。
第二方面, 提供一种获取流媒体数据的方法, 包括:
接收来自终端的流媒体数据传输请求,所述传输请求中携带所述终端的设 备类型和所述终端接入网络的网络类型;
根据已确定的每种设备类型的终端在其所接入的各类型的网络时,下载流 媒体文件的码率,确定在所述传输请求中的设备类型对应的终端接入所述传输 请求中的网络类型所对应的网络时, 下载流媒体文件的码率;
将确定出的码率发送给所述终端,指示所述终端根据索引文件中确定出由 接收到的码率进行编码的流媒体数据的地址, 获取流媒体数据;
其中,所述每种设备类型的终端在其所接入的各类型的网络时下载流媒体 文件的码率,是根据媒体内容分发设备上报的执行流媒体业务的历史信息确定 的, 所述历史信息中包括执行流媒体业务的终端的设备类型、该终端所接入网 络的网络类型和终端下载流媒体文件的码率。
结合第二方面,在第一种可能的实现方式中, 所述历史信息中还包括用户 账号信息;
根据媒体内容分发设备上报的历史信息,确定每种设备类型的终端在其所 接入的各类型的网络时, 下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下 ,确定应 用各用户账号信息时所下载流媒体文件的码率。 结合第二方面,在第二种可能的实现方式中, 所述历史信息中还包括所下 载的流媒体文件的来源信息;
根据媒体内容分发设备上报的历史信息,确定每种设备类型的终端在其所 接入的各类型的网络时, 下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定从 各来源信息对应的来源处下载流媒体文件的码率。
结合第二方面,在第三种可能的实现方式中, 所述历史信息中还包括下载 流媒体文件的开始时间和结束时间;
根据媒体内容分发设备上报的历史信息,确定每种设备类型的终端在其所 接入的各类型的网络时, 下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定在 每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率。
结合第二方面,在第四种可能的实现方式中, 所述历史信息中还包括终端 的配置信息;
根据媒体内容分发设备上报的历史信息,确定每种设备类型的终端在其所 接入的各类型的网络时, 下载流媒体文件的码率, 具体包括:
在每种配置信息下,确定每种设备类型的终端在其所接入的各类型的网络 时下载流媒体文件的码率。
结合第二方面的第一种可能的实现方式、第二方面的第二种可能的实现方 式、 第二方面的第三种可能的实现方式或第二方面的第四种可能的实现方式, 在第五种可能的实现方式中,所述历史信息中还包括下载流媒体文件的下载时 长;
在接收内容分发设备上报的历史信息后,且根据历史信息确定每种设备类 型的终端在其所接入的各类型的网络时下载流媒体文件的码率之前,所述方法 还包括: 删除包含的下载时长小于门限值的历史信息。
结合第二方面的第一种可能的实现方式, 在第六种可能的实现方式中, 所 述传输请求中还携带用户账号信息;
确定在所述传输请求中的设备类型对应的终端接入所述传输请求中的网 络类型对应的网络时, 下载流媒体文件的码率, 具体包括:
根据已确定的针对每种设备类型的终端以及该终端在其所接入的各类型 网络下,应用各用户账号信息时所下载流媒体文件的码率,确定在传输请求中 的设备类型对应的终端接入所述传输请求中的网络类型对应的网络,且应用传 输请求中的用户账号信息时, 下载流媒体文件的码率。
结合第二方面的第六种可能的实现方式, 在第七种可能的实现方式中, 若 已确定的针对每种设备类型的终端以及该终端在其所接入的各类型网络下,应 用各用户账号信息时所下载流媒体文件的码率中,没有记录传输请求中的设备 类型对应的终端接入传输请求中的网络类型对应的网络时,应用传输请求中的 用户账号信息的情况, 则
确定该传输请求中用户账号信息在其他设备类型的终端接入传输请求中 的网络类型对应的网络时的码率,或其他用户账号信息在传输请求中的设备类 型对应的终端接入传输请求中的网络类型对应的网络时的码率。
结合第二方面的第二种可能的实现方式, 在第八种可能的实现方式中, 所 述传输请求中还携带流媒体文件的来源信息;
确定在传输请求中的设备类型对应的终端接入传输请求中的网络类型对 应的网络时, 下载流媒体文件的码率, 具体包括:
根据已确定的针对每种设备类型的终端以及该终端在其所接入的各类型 网络下,从各来源信息对应的来源处下载流媒体文件的码率,确定在传输请求 中的设备类型对应的终端接入传输请求中的网络类型对应的网络,且从传输请 求中的来源信息对应的来源处获取流媒体文件时, 下载流媒体文件的码率。 结合第二方面的第三种可能的实现方式, 在第九种可能的实现方式中, 所 述传输请求中还携带当前时间;
确定在传输请求中的设备类型对应的终端接入传输请求中的网络类型对 应的网络时, 下载流媒体文件的码率, 具体包括:
根据已确定的针对每种设备类型的终端以及该终端在其所接入的各类型 网络下,在每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率 , 确定在传输请求中的设备类型对应的终端接入传输请求中的网络类型对应的 网络, 且在当前时间所在的时间段内, 下载流媒体文件的码率。
结合第二方面的第四种可能的实现方式, 在第十种可能的实现方式中, 所 述传输请求中还携带终端的配置信息;
确定在传输请求中的设备类型对应的终端接入传输请求中的网络类型对 应的网络时, 下载流媒体文件的码率, 具体包括:
根据已确定的在每种配置信息下,针对每种设备类型的终端在其所接入的 各类型的网络时下载流媒体文件的码率,确定在传输请求中的设备类型对应的 终端在传输请求中的配置信息对应的配置下,接入传输请求中的网络类型对应 的网络时, 下载流媒体文件的码率。
第三方面, 提供一种获取流媒体数据的方法, 包括:
终端确定当前所接入网络的网络类型;
终端根据自身已确定的在接入每种类型的网络时下载流媒体文件的码率, 确定在当前所接入网络下, 下载流媒体文件的码率;
终端从索引文件中确定由当前所接入网络下,下载流媒体文件的码率进行 编码的流媒体数据的地址;
终端根据确定的地址获取流媒体数据;
其中,终端根据执行流媒体业务时的记录信息确定在接入每种类型的网络 时下载流媒体文件的码率,所述记录信息中包括终端所接入网络的网络类型和 终端下载流媒体文件的码率。
结合第三方面,在第一种可能的实现方式中, 所述记录信息中还包括用户 账号信息;
终端根据执行流媒体业务时的记录信息确定在接入每种类型的网络时下 载流媒体文件的码率, 具体包括:
终端分别针对所接入的每种类型的网络,确定应用各用户账号信息时下载 流媒体文件的码率。
结合第三方面,在第二种可能的实现方式中, 所述记录信息中还包括所下 载的流媒体文件的来源信息;
终端根据执行流媒体业务时的记录信息确定在接入每种类型的网络时下 载流媒体文件的码率, 具体包括:
终端分别针对接入的每种类型的网络,确定从各来源信息对应的来源处下 载流媒体文件的码率。
结合第三方面,在第三种可能的实现方式中, 所述记录信息中还包括下载 流媒体文件的开始时间和结束时间;
终端根据执行流媒体业务时的记录信息确定在接入每种类型的网络时下 载流媒体文件的码率, 具体包括:
终端分别针对接入的每种类型的网络,确定在每个开始时间和结束时间所 表示的时间段内下载流媒体文件的码率。
结合第三方面,在第四种可能的实现方式中, 所述记录信息中还包括终端 的配置信息;
终端根据执行流媒体业务时的记录信息确定在接入每种类型的网络时下 载流媒体文件的码率, 具体包括:
终端分别确定在每种配置信息下,各设备类型的终端在其所接入的各类型 的网络时下载流媒体文件的码率。 结合第三方面的第一种可能的实现方式、第三方面的第二种可能的实现方 式、 第三方面的第三种可能的实现方式或第三方面的第四种可能的实现方式, 在第五种可能的实现方式中,所述记录信息中还包括下载流媒体文件的下载时 长;
终端根据执行流媒体业务时的记录信息确定在接入每种类型的网络时下 载流媒体文件的码率之前, 所述方法还包括:
删除包含的下载时长小于门限值的记录信息。
第四方面,提供一种确定码率的设备,包括信息接收模块、码率存储模块、 请求接收模块、 码率确定模块和码率发送模块, 其中:
所述信息接收模块, 用于接收各终端上报的执行流媒体业务的记录信息, 所述记录信息中包括终端的设备类型、终端所接入网络的网络类型和终端下载 流媒体文件的码率;
所述码率存储模块,用于根据所述信息接收模块接收到的所述记录信息确 定的每种设备类型的终端在其所接入的各类型的网络时下载流媒体文件的码 率, 并存储;
所述请求接收模块, 用于接收来自终端的流媒体数据传输请求, 所述传输 请求中携带所述终端的设备类型和所述终端接入网络的网络类型;
所述码率确定模块, 用于根据所述码率存储模块中已存储的码率,确定在 所述传输请求中的设备类型对应的终端接入所述传输请求中的网络类型对应 的网络时, 下载流媒体文件的码率;
所述码率发送模块,用于将所述码率确定模块确定出的码率发送给所述终 端,指示所述终端根据索引文件确定出由接收到的码率进行编码的流媒体数据 的地址, 并获取流媒体数据。
结合第四方面,在第一种可能的实现方式中, 所述码率存储模块具体用于 若根据所述记录信息确定相同设备类型的终端在接入相同类型网络时,下载流 媒体文件的码率不同, 则选择其中最小的码率来进行存储。
结合第四方面, 在第二种可能的实现方式中, 所述信息接收模块 11具体 用于在所述记录信息中还包括下载流媒体文件的下载时长时,删除包含的下载 时长小于门限值的记录信息。
结合第四方面,在第三种可能的实现方式中, 所述信息接收模块具体用于 接收到的所述记录信息中还包括用户账号信息;
所述码率存储模块具体用于根据所述信息接收模块接收到的所述记录信 息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定应 用各用户账号信息时所下载流媒体文件的码率, 并存储。
结合第四方面的第三种可能的实现方式, 在第四种可能的实现方式中, 所述码率存储模块具体用于根据所述记录信息确定相同设备类型的终端 在接入相同类型网络且应用相同用户账号信息时,下载流媒体文件的码率不同, 则选择其中最小的码率并存储。
结合第四方面,在第五种可能的实现方式中, 所述信息接收模块具体用于 接收到的所述记录信息中还包括所下载的流媒体文件的来源信息;
所述码率存储模块具体用于根据所述信息接收模块接收到的所述记录信 息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定从 各来源信息对应的来源处下载流媒体文件的码率, 并存储。
结合第四方面的第五种可能的实现方式,在第六种可能的实现方式中, 所 述码率存储模块具体用于若根据所述记录信息确定相同设备类型的终端在接 入相同类型网络且从相同来源处下载流媒体文件的码率不同,则选择其中最小 的码率并存储。
结合第四方面,在第七种可能的实现方式中, 所述信息接收模块具体用于 接收到的所述记录信息中还包括下载流媒体文件的开始时间和结束时间;
所述码率存储模块具体用于根据所述信息接收模块接收到的所述记录信 息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定在 每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率, 并存储。
结合第四方面的第七种可能的实现方式,在第八种可能的实现方式中, 所 述码率存储模块具体用于若根据所述记录信息确定相同设备类型的终端在接 入相同类型网络且在相同时间段内, 所下载流媒体文件的码率不同, 则选择其 中最小的码率并存储。
结合第四方面,在第九种可能的实现方式中, 所述信息接收模块具体用于 接收到的所述记录信息中还包括终端的配置信息;
所述码率存储模块具体用于根据所述信息接收模块接收到的所述记录信 息,在每种配置信息下,确定每种设备类型的终端在其所接入的各类型的网络 时下载流媒体文件的码率, 并存储。
结合第四方面的第一种可能的实现方式、第四方面的第二种可能的实现方 式、 第四方面的第三种可能的实现方式、 第四方面的第四种可能的实现方式、 第四方面的第五种可能的实现方式、第四方面的第六种可能的实现方式、第四 方面的第七种可能的实现方式、第四方面的第八种可能的实现方式或第四方面 的第九种可能的实现方式, 在第十种可能的实现方式中,
所述信息接收模块,还用于接收媒体内容分发设备上报的在设定时长内执 行流媒体业务的历史信息,所述历史信息中包括执行流媒体业务的终端的设备 类型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述码率存储模块,还用于根据所述历史信息确定的每种设备类型的终端 在其所接入的各类型的网络时下载流媒体文件的码率, 并存储。
结合第四方面的第十种可能的实现方式, 在第十一种可能的实现方式中, 所述信息接收模块具体用于接收到的所述历史信息中还包括用户账号信息; 所述码率存储模块具体用于根据所述信息接收模块接收到的所述历史信 息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定应 用各用户账号信息时所下载流媒体文件的码率, 并存储。
结合第四方面的第十种可能的实现方式, 在第十二种可能的实现方式中, 所述信息接收模块具体用于接收到的所述历史信息中还包括下载的流媒体文 件的来源信息;
所述码率存储模块具体用于根据所述信息接收模块接收到的所述记录信 息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定从 各来源信息对应的来源处下载流媒体文件的码率, 并存储。
结合第四方面的第十种可能的实现方式, 在第十三种可能的实现方式中, 所述信息接收模块具体用于接收到的所述记录信息中还包括下载流媒体文件 的开始时间和结束时间;
所述码率存储模块具体用于根据所述信息接收模块接收到的所述记录信 息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定在 每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率, 并存储。
结合第四方面的第十种可能的实现方式, 在第十四种可能的实现方式中, 所述信息接收模块具体用于接收到的所述历史信息中还包括终端的配置信息; 所述码率存储模块具体用于根据所述信息接收模块接收到的所述记录信 息,在每种配置信息下,确定每种设备类型的终端在其所接入的各类型的网络 时下载流媒体文件的码率, 并存储。
第五方面,提供一种确定码率的设备,包括信息接收模块、码率存储模块、 请求接收模块、 码率确定模块和码率发送模块, 其中:
所述信息接收模块,用于接收媒体内容分发设备上报的在设定时长内执行 流媒体业务的历史信息,所述历史信息中包括执行流媒体业务的终端的设备类 型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述码率存储模块,用于根据所述历史信息确定的每种设备类型的终端在 其所接入的各类型的网络时下载流媒体文件的码率, 并存储; 所述请求接收模块, 用于接收来自终端的流媒体数据传输请求, 所述传输 请求中携带所述终端的设备类型和所述终端接入网络的网络类型;
所述码率确定模块, 用于根据所述码率存储模块中已存储的码率,确定在 所述传输请求中的设备类型对应的终端接入所述传输请求中的网络类型对应 的网络时, 下载流媒体文件的码率;
所述码率发送模块,用于将所述码率确定模块确定出的码率发送给所述终 端,指示所述终端根据索引文件确定出由接收到的码率进行编码的流媒体数据 的地址, 并获取流媒体数据。
结合第五方面,在第一种可能的实现方式中, 在所述历史信息中还包括下 载流媒体文件的下载时长时,所述信息接收模块还用于删除包含的下载时长小 于门限值的历史信息。
结合第五方面,在第二种可能的实现方式中, 所述信息接收模块具体用于 接收到的所述历史信息中还包括用户账号信息;
所述码率存储模块具体用于根据所述信息接收模块接收到的所述历史信 息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定应 用各用户账号信息时所下载流媒体文件的码率, 并存储。
结合第五方面,在第三种可能的实现方式中, 所述信息接收模块具体用于 接收到的所述历史信息中还包括下载的流媒体文件的来源信息;
所述码率存储模块具体用于根据所述信息接收模块接收到的所述记录信 息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定从 各来源信息对应的来源处下载流媒体文件的码率, 并存储。
结合第五方面,在第四种可能的实现方式中, 所述信息接收模块具体用于 接收到的所述记录信息中还包括下载流媒体文件的开始时间和结束时间; 所述码率存储模块具体用于根据所述信息接收模块接收到的所述记录信 息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定在 每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率, 并存储。 结合第五方面,在第五种可能的实现方式中, 所述信息接收模块具体用于 接收到的所述历史信息中还包括终端的配置信息;
所述码率存储模块具体用于根据所述信息接收模块接收到的所述记录信 息,在每种配置信息下,确定每种设备类型的终端在其所接入的各类型的网络 时下载流媒体文件的码率, 并存储。
第六方面, 提供一种终端, 包括码率存储模块、 信息确定模块、 码率确定 模块和流媒体数据获取模块, 其中:
所述码率存储模块,用于根据执行流媒体业务时的记录信息确定在接入每 种类型的网络时下载流媒体文件的码率, 并存储, 所述记录信息中包括终端所 接入网络的网络类型和终端下载流媒体文件的码率;
所述信息确定模块, 用于确定当前所接入网络的网络类型;
所述码率确定模块, 用于根据所述码率存储模块中已存储的码率,确定在 当前所接入网络下, 下载流媒体文件的码率;
所述流媒体数据获取模块, 用于从索引文件中确定由当前所接入网络下, 所述码率确定模块确定出的码率进行编码的流媒体数据的地址,并根据确定的 地址获取流媒体数据。
结合第六方面,在第一种可能的实现方式中, 所述码率存储模块具体用于 记录信息中还包括用户账号信息时, 分别针对所接入的每种类型的网络,确定 应用各用户账号信息时下载流媒体文件的码率, 并存储。
结合第六方面,在第二种可能的实现方式中, 所述码率存储模块具体用于 记录信息中还包括所下载的流媒体文件的来源信息时,分别针对接入的每种类 型的网络, 确定从各来源信息对应的来源处下载流媒体文件的码率。
结合第六方面,在第三种可能的实现方式中, 所述码率存储模块具体用于 记录信息中还包括下载流媒体文件的开始时间和结束时间时,分别针对接入的 每种类型的网络,确定在每个开始时间和结束时间所表示的时间段内下载流媒 体文件的码率, 并存储。
结合第六方面,在第四种可能的实现方式中, 所述码率存储模块具体用于 记录信息中还包括终端的配置信息时, 分别确定在每种配置信息下,各设备类 型的终端在其所接入的各类型的网络时下载流媒体文件的码率, 并存储。
第七方面,提供获取流媒体数据的系统, 包括确定码率的设备和至少一个 终端, 其中:
所述终端,用于向所述确定码率的设备上报的执行流媒体业务的记录信息, 以及在向所述确定码率的设备发起流媒体数据传输请求后,接收来自所述确定 码率的设备发送的码率,以及根据索引文件确定出由接收到的码率进行编码的 流媒体数据的地址,并获取流媒体数据,所述记录信息中包括终端的设备类型、 终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述确定码率的设备,用于根据所述记录信息确定每种设备类型的终端在 其所接入的各类型的网络时下载流媒体文件的码率,并在接收到携带所述终端 的设备类型和所述终端接入网络的网络类型的所述流媒体数据传输请求时,根 据已确定的每种设备类型的终端在其所接入的各类型的网络时下载流媒体文 件的码率,确定在所述传输请求中的设备类型对应的终端接入所述传输请求中 的网络类型对应的网络时, 下载流媒体文件的码率, 并发送给所述终端。
结合第七方面,在第一种可能的实现方式中, 所述系统还包括媒体内容分 发设备:
所述媒体内容分发设备,用于向所述确定码率的设备上报在设定时长内执 行流媒体业务的历史信息,所述历史信息中包括执行流媒体业务的终端的设备 类型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述确定码率的设备还用于接收所述媒体内容分发设备上报的所述历史 信息, 并根据所述历史信息, 分别确定每种设备类型的终端在其所接入的各类 型的网络时, 下载流媒体文件的码率。
第八方面, 提供一种获取流媒体数据的系统, 包括确定码率的设备、 媒体 内容分发设备和至少一个终端, 其中:
所述媒体内容分发设备,用于向所述确定码率的设备上报在设定时长内执 行流媒体业务的历史信息,所述历史信息中包括执行流媒体业务的终端的设备 类型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述确定码率的设备,用于根据所述历史信息确定每种设备类型的终端在 其所接入的各类型的网络时下载流媒体文件的码率,并在接收到携带终端的设 备类型和终端接入网络的网络类型的流媒体数据传输请求时,根据已确定的每 种设备类型的终端在其所接入的各类型的网络时下载流媒体文件的码率,确定 在所述传输请求中的设备类型对应的终端接入所述传输请求中的网络类型对 应的网络时, 下载流媒体文件的码率, 并发送给所述终端;
所述终端,用于在向所述确定码率的设备发起所述流媒体数据传输请求后, 接收来自所述确定码率的设备发送的码率,以及根据索引文件确定出由接收到 的码率进行编码的流媒体数据的地址, 并获取流媒体数据。
第九方面, 提供一种确定码率的设备, 包括: 第一空口、 存储器、 第二空 口、 处理器和分发器, 其中:
所述第一空口, 用于接收各终端上报的执行流媒体业务的记录信息, 所述 记录信息中包括终端的设备类型、终端所接入网络的网络类型和终端下载流媒 体文件的码率;
所述存储器,用于根据所述第一空口接收到的所述记录信息确定的每种设 备类型的终端在其所接入的各类型的网络时下载流媒体文件的码率, 并存储; 所述第二空口, 用于接收来自终端的流媒体数据传输请求, 所述传输请求 中携带所述终端的设备类型和所述终端接入网络的网络类型;
所述处理器, 用于根据所述存储器中已存储的码率,确定在所述传输请求 中的设备类型对应的终端接入所述传输请求中的网络类型对应的网络时 ,下载 流媒体文件的码率;
所述分发器, 用于将所述处理器确定出的码率发送给所述终端, 指示所述 终端根据索引文件确定出由接收到的码率进行编码的流媒体数据的地址,并获 取流媒体数据。
第十方面,提供一种确定码率的设备,包括第一空口、存储器、第二空口、 处理器和分发器, 其中:
所述第一空口,用于接收媒体内容分发设备上报的在设定时长内执行流媒 体业务的历史信息, 所述历史信息中包括执行流媒体业务的终端的设备类型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述存储器,用于根据所述历史信息确定的每种设备类型的终端在其所接 入的各类型的网络时下载流媒体文件的码率, 并存储;
所述第二空口, 用于接收来自终端的流媒体数据传输请求, 所述传输请求 中携带所述终端的设备类型和所述终端接入网络的网络类型;
所述处理器, 用于根据所述码率存储模块中已存储的码率,确定在所述传 输请求中的设备类型对应的终端接入所述传输请求中的网络类型对应的网络 时, 下载流媒体文件的码率;
所述分发器, 用于将所述码率确定模块确定出的码率发送给所述终端, 指 示所述终端根据索引文件确定出由接收到的码率进行编码的流媒体数据的地 址, 并获取流媒体数据。
第十一方面, 提供一种终端, 包括存储器、 第一处理器、 第二处理器和下 载器, 其中:
所述存储器,用于根据执行流媒体业务时的记录信息确定在接入每种类型 的网络时下载流媒体文件的码率, 并存储, 所述记录信息中包括终端所接入网 络的网络类型和终端下载流媒体文件的码率; 所述第一处理器, 用于确定当前所接入网络的网络类型;
所述第二处理器, 用于根据所述存储器中已存储的码率, 确定在当前所接 入网络下, 下载流媒体文件的码率;
所述下载器, 用于从索引文件中确定由当前所接入网络下, 所述码率确定 模块确定出的码率进行编码的流媒体数据的地址,并根据确定的地址获取流媒 体数据。 本发明实施例提出了一种基于统计的码率自适应的方案,通过对终端和媒 体内容分发设备中的至少一种设备所记录的历史流媒体业务相关信息的统计 分析, 归纳出不同类型的终端在接入各种类型的网络时, 适合下载的流媒体文 件的码率, 以便于终端在进行流媒体业务时, 可直接请求获取适合码率的流媒 体文件, 而无需从最低码率开始尝试下载,避免了现有的流媒体获取方案中前 数十秒获取的流媒体数据质量差的问题,使得下载并播放的所有流媒体数据的 质量都较好。 附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所 需要使用的附图作筒单地介绍, 显而易见地, 下面所描述的附图仅仅是本发明 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本实施例一中获取流媒体数据的方法步骤示意图;
图 2为本实施例八中获取流媒体数据的方法步骤示意图;
图 3为本实施例九中确定码率的设备结构示意图;
图 4为本实施例十一中终端的结构示意图;
图 5为本实施例十二中获取流媒体数据的系统结构示意图;
图 6为本实施例十四中确定码率的设备结构示意图; 图 7为本实施例十六中终端的结构示意图。
具体实施方式 本发明实施例提出了一种基于统计的码率自适应的方案,通过对终端和媒 体内容分发设备中的至少一种设备所记录的历史流媒体业务相关信息的统计 分析, 归纳出不同类型的终端在接入各种类型的网络时, 适合下载的流媒体文 件的码率, 以便于终端在进行流媒体业务时 (如终端请求获取基于 HLS的流 媒体数据时), 可直接请求获取适合码率的流媒体文件, 而无需从最低码率开 始尝试下载,避免了现有的流媒体获取方案中前数十秒获取的流媒体数据质量 差的问题, 使得下载并播放的所有流媒体数据的质量都较好。
下面结合说明书附图, 对本发明实施例的方案进行详细说明。
在本发明实施例的方案中,需先统计分析出不同类型的终端在接入各种类 型的网络时,适合下载的流媒体文件的码率,使得终端可根据该合适的码率请 求相应码率的流媒体文件, 因此, 本发明实施例包括网络侧确定码率的过程、 网络侧将确定的合适码率作为推荐值发送给终端的过程,以及终端根据合适的 码率请求流媒体文件的过程, 下面分别加以说明。
实施例一:
如图 1所示, 为本实施例一中获取流媒体数据的方法步骤示意图, 所述方 法主要包括以下步骤:
步骤 101 : 接收各终端上报的在设定时长内执行流媒体业务时的记录信息。 所述记录信息中包括终端的设备类型、终端所接入网络的网络类型和终端 下载流媒体文件的码率。
在本步骤 101的方案中, 归属于同一 EPG ( Electrnic Program Guide, 电 子节目指南) 的终端可定时将本地生成的记录信息上 ^艮给 EPG, 终端也可在 每执行完一次流媒体业务时就上报一次记录信息, 本步骤的执行主体可以是 EPG, 当然也可以是网络侧中其他网元。
终端可在每次执行流媒体业务时 (如终端下载并播放基于 HLS的流媒体 数据的业务), 自动生成一条记录信息, 在其中记录执行该流媒体业务时终端 接入网络的网络类型以及下载的流媒体文件的码率, 同时, 终端还可在记录信 息中添加自身的设备类型。
所述网络类型可以是 WLAN ( Wireless LAN , 无线局域网)类型的网络, 或是蜂窝网 (Cellular ); 终端的设备类型可以是安卓( Android )类型, 或是塞 班(Symbian )类型; 终端下载的流媒体文件的码率可以是 128Kbps、 256Kbps 或是 512Kbps等。
例如, 接收到三个终端上报的五条记录信息如下:
1 )、 Android类型的终端 A在接入 WLAN时, 下载流媒体文件的码率为 512Kbps;
2 )、 Android类型的终端 A在接入 Cellular时, 下载流媒体文件的码率为
256Kbps;
3 )、 Android类型的终端 B在接入 WLAN时, 下载流媒体文件的码率为 256Kbps;
4 )、 Symbian类型的终端 C在接入 WLAN时, 下载流媒体文件的码率为 512Kbps;
5 )、 Symbian类型的终端 C在接入 Cellular时, 下载流媒体文件的码率为 256Kbps
需要说明的是, 在每条记录信息中还可包括下载流媒体文件的下载时长, 由于常规的流媒体业务中,是按照码率由低至高的顺序依次尝试下载并播放流 媒体数据, 因此, 对于下载时长小于门限值的情况(如下载时长小于 20秒), 可视为本次流媒体文件的下载过程是尝试下载, 并不是稳定下载, 则可忽略为 本次下载过程生成的记录信息, 例如, 对于包含的下载时长小于 20秒的记录 信息, 终端可不向 EPG上 或是 EPG删除终端上 ·^艮的包含的下载时长小于 20秒的记录信息。
步骤 102: 根据所述记录信息, 分别确定每种设备类型的终端在其所接入 的各类型的网络下, 所下载流媒体文件的码率。
本步骤 102的执行主体可以是 EPG, 也可以其他能够从 EPG上读取记录 信息并执行本步骤 102的网元。
由于在步骤 101中接收到的各条记录信息中已分别记载了设备类型、网络 类型、 下载流媒体文件的码率之间的关系, 因此, 在本步骤 102中对各条记录 信息进行统计分析,可确定出设备类型和网络类型的组合分别与下载流媒体文 件的码率之间的对应关系。
仍以步骤 101中的五条记录信息为例, 对于 Android类型的终端, 在接入 WLAN时对应的码率为 512Kbps和 256Kbps;
特殊地, 同种类型的终端在接入相同类型网络时, 出现了下载流媒体文件 的码率不同的情况, 在本实施例的方案中, 可选择其中较小的码率, 即对于
Android类型的终端, 在接入 WLAN时对应的码率为 256Kbps。 这样做的目的 是:终端不按照码率由低至高的顺序,而是直接请求合适码率的流媒体文件时, 若请求的码率过高, 终端是无法正确下载并播放该流媒体文件的,选择较小的 码率可以避免终端无法正确下载并播放流媒体文件的问题,同时相对于按照码 率由低至高的尝试下载方案, 下载的流媒体数据更优。
Android类型的终端, 在接入 Cellular时对应的码率为 256Kbps;
Symbian类型的终端, 在接入 WLAN时对应的码率为 512Kbps;
Symbian类型的终端, 在接入 Cellular时对应的码率为 256Kbps。
通过以上步骤 101和步骤 102的方案,网络侧统计出了不同类型的终端在 接入各种类型的网络时, 下载流媒体文件的合适码率, 之后, 当终端向网络侧 请求进行流媒体业务时,网络侧可将与终端的类型以及接入网络匹配的码率作 为推荐值发送给终端。
步骤 103: 接收来自终端的流媒体数据传输请求。
所述传输请求中携带终端的设备类型和终端所接入网络的网络类型。 本步骤 103的执行主体可以是 EPG。
在本步骤 103中, 当某一终端希望执行流媒体业务时, 可向网络侧发起流 媒体数据传输请求, 该传输请求可以是基于 HTTP传输数据包, 在其中相应的 字段中携带终端的设备类型以及当前终端所接入网络的网络类型。
步骤 104: 根据步骤 102确定的内容, 确定在传输请求中携带的设备类型 对应的终端接入传输请求中的网络类型对应的网络时,下载流媒体文件的码率。
例如, 发起流媒体数据传输请求的终端是 Android类型的终端 D , 终端 D 当前接入的网络是 WLAN, 在此情况下, 通过查询步骤 102确定的内容, 终 端 D可直接尝试下载码率为 256Kbps的流媒体文件, 256Kbps的码率为推荐 码率。
步骤 105: 将步骤 104确定的推荐码率发送给终端。
通过以上步骤 103至步骤 105的方案,在终端请求进行流媒体数据的传输 时, 网络侧根据之前的统计结果, 为终端推荐合适的码率, 终端可直接按照接 收到的码率进行流媒体文件的下载,而无需再按照码率由低至高的顺序依次尝 试下载。
步骤 106: 终端接收推荐的码率。
仍以步骤 104的例子来说, Android类型的终端 D在接入 WLAN时, 接 收到推荐的码率为 256Kbps。
步骤 107: 终端从流媒体服务器处请求获取索引文件。
以 HLS为例, 终端可从流媒体服务器中请求获取 playlist文件。
需要说明的是, 本实施例并不对步骤 107 的实现顺序作出限定, 本步骤 107可以是终端在接收到推荐的码率后再从流媒体服务器处请求索引文件, 也 可以先从流媒体服务器处请求获取索引文件后,再接收推荐的码率,还可以并 行执行获取索 I文件的步骤和接收推荐码率的步骤。
步骤 108: 终端从索引文件中确定根据接收到的码率进行编码的流媒体数 据的地址。
由于索引文件中记录了各码率分块的 URI,即按照各码率编码的流媒体数 据的地址, 因此, 当终端接收到的码率为 256Kbps时, 可从索引文件中查找出 以 256Kbps编码的流媒体数据的 URI。
步骤 109: 终端根据确定的地址获取流媒体数据, 并播放, 以此执行流媒 体业务。
通过以上实施例一的方案,终端不再是按照索 I文件中码率由低至高的顺 序依次尝试下载, 而是根据终端的设备类型和接入网络的类型, 统计分析出的 不同类型的终端在接入各网络时推荐的码率,进而在终端请求获取流媒体数据 时,将与该终端的设备类型和当前接入网络类型匹配的码率推荐给终端, 终端 直接按照推荐码率进行流媒体文件的下载,避免了在按照低码率尝试下载时获 取质量较差的流媒体数据,可以从流媒体数据下载的起始就一直获取并播放高 质量的流媒体数据。
实施例一的方案是以终端的设备类型和接入网络的网络类型为基础来进 行码率的统计分析的, 较优地, 本发明实施例也不限于在此基础上, 进一步利 用用户账号信息、 下载的流媒体文件的来源信息、 下载流媒体文件的开始时间 和结束时间、 终端的配置信息等参数来进行统计分析, 下面分别加以说明。
实施例二:
本发明实施例二是以终端的设备类型、接入网络的网络类型和用户账号信 息为基础来进行码率的统计分析的,所述用户账号信息是指注册在流媒体服务 器中, 用于执行流媒体业务的账号信息, 本实施例二的方案如下:
第一步: 接收各终端上报的在设定时长内执行流媒体业务时的记录信息, 包括终端的设备类型、终端所接入网络的网络类型、用户账号信息和终端下载 流媒体文件的码率。
与实施例一的区别在于, 在本实施例二的方案中, 记录信息中额外增加了 用户账号信息,用于表示用户以终端为载体登陆流媒体服务器时注册的用户账 号。
仍以步骤 101中的五条记录信息为例, 在本实施例中, 这五条记录信息内 容如下:
1 )、对于用户 Subscriber 1 ,使用 Android类型的终端 A在接入 WLAN时, 下载流媒体文件的码率为 512Kbps;
2 )、对于用户 Subscriber 1 ,使用 Android类型的终端 A在接入 Cellular时, 下载流媒体文件的码率为 256Kbps;
3 )、对于用户 Subscriberl ,使用 Android类型的终端 B在接入 WLAN时, 下载流媒体文件的码率为 256Kbps;
4 )、对于用户 Subscribed使用 Symbian类型的终端 C在接入 WLAN时, 下载流媒体文件的码率为 512Kbps;
5 )、 对于用户 Subscribed, 使用 Symbian类型的终端 C在接入 Cellular 时, 下载流媒体文件的码率为 256Kbps。
与实施例一类似的, 在记录信息中还可包括下载流媒体文件的下载时长, 对于包含的下载时长小于门限值的记录信息可忽略。
第二步:针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定应用各用户账号信息时所下载流媒体文件的码率。
在本步骤中, 利用接收到的记录信息统计出终端、 网络、 用户账号三者与 码率之间的关系。
仍以上一步骤中接收到的记录信息为例, 统计出的结杲为:
Android 类型的终端接入 WLAN 时, 应用用户 Subscriberl 的码率为 512Kbps和 256Kbps;
与步骤 102中的特殊情况类似地,同种类型的终端在接入相同类型网络且 应用同一用户账号时, 出现了下载流媒体文件的码率不同的情况, 在本实施例 的方案中,也可选择其中较小的码率,即 Android类型的终端接入 WLAN时, 应用用户 Subscriberl的码率为 256Kbps;
Android 类型的终端接入 Cellular 时, 应用用户 Subscriberl 的码率为 256Kbps;
Symbian 类型的终端接入 WLAN 时, 应用用户 Subscribe 的码率为
512Kbps;
Symbian类型的终端接入 Cellular 时, 应用用户 Subscribe 的码率为 256Kbps
通过以上两个步骤的方案,网络侧分别统计出了不同类型的终端接入不同 类型的网络, 且应用不同的用户账号时, 下载流媒体文件的合适码率, 之后, 本实施例二的方案可与实施例一的步骤 103至步骤 109的方案类似,区别在于, 在本实施例的方案中, 终端上报的传输请求中还进一步携带用户账号信息, 以 便于利用第二步的统计结果进行码率的推荐。
例如,用户 Subscriberl使用接入 Cellular的 Android类型的终端发起流媒 体数据传输请求, 可向该终端推荐 256Kbps, 之后, 终端直接从索引文件中确 定由 256Kbps编码的流媒体数据的地址, 进而从该地址获取流媒体数据。
特殊地,对于发起流媒体数据传输请求的终端的设备类型和所应用的用户 账号没有统计过的情况,可参考该用户账号在其他类型的终端应用时统计的码 率作为推荐码率, 或是其他用户应用在该类型终端时统计的码率作为推荐值, 较优地, 当以上两种方式得到的推荐码率不同时, 选择其中较小者。
例如,用户 Subscribe 使用接入 Cellular的 Android类型的终端发起流媒 体数据传输请求时, 之前统计结果中没有出现过, 则可参考用户 Subscribe 使用接入 Cellular 的 Symbian类型终端时的码率 256Kbps , 或是参考用户 Subscriberl使用接入 Cellular的 Android类型终端时的码率 256Kbps。
本发明实施例二中各步骤的执行主体与实施例一中相同。 通过本发明实施例二的方案,在实施例一效果的基础上, 进一步细化统计 结果,在同等情况下,应用高优先级用户账号的终端得到的推荐码率高于应用 低优先级用户账号的终端,使得为终端推荐的码率更加适合当前请求的流媒体 业务。
实施例三:
本发明实施例三是以终端的设备类型、接入网络的网络类型和下载的流媒 体文件的来源信息为基础来进行码率的统计分析的,所述来源信息所下载的流 媒体文件的来源, 如视频网站。
本实施例三的方案如下:
第一步: 接收各终端上报的在设定时长内执行流媒体业务时的记录信息, 包括终端的设备类型、终端所接入网络的网络类型、来源信息和终端下载流媒 体文件的码率。
与实施例一的区别在于, 在本实施例二的方案中, 记录信息中额外增加了 来源信息。
仍以步骤 101中的五条记录信息为例, 在本实施例中, 这五条记录信息内 容如下:
1 )、 Android类型的终端 A在接入 WLAN时, 从视频网站 1处下载流媒 体文件的码率为 512Kbps;
2 )、 Android类型的终端 A在接入 Cellular时, 从视频网站 1处下载流媒 体文件的码率为 256Kbps;
3 )、 Android类型的终端 B在接入 WLAN时, 从视频网站 1处下载流媒 体文件的码率为 256Kbps;
4 )、 Symbian类型的终端 C在接入 WLAN时, 从视频网站 2处下载流媒 体文件的码率为 512Kbps;
5 )、 Symbian类型的终端 C在接入 Cellular时, 从视频网站 2处下载流媒 体文件的码率为 256Kbps。
与实施例一类似的, 在记录信息中还可包括下载流媒体文件的下载时长, 对于包含的下载时长小于门限值的记录信息可忽略。
第二步:针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定从各来源信息对应的来源处下载流媒体文件的码率。
在本步骤中, 利用接收到的记录信息统计出终端、 网络、 信息来源三者与 码率之间的关系。
仍以上一步骤中接收到的记录信息为例, 统计出的结果为:
Android类型的终端接入 WLAN从视频网站 1处下载流媒体文件的码率为 512Kbps和 256Kbps;
与步骤 102中的特殊情况类似地,同种类型的终端在接入相同类型网络且 从同一来源下载流媒体文件时,出现了码率不同的情况,在本实施例的方案中, 也可选择其中较小的码率, 即 Android类型的终端接入 WLAN从视频网站 1 处下载流媒体文件的码率为 256Kbps;
Android类型的终端接入 Cellular从视频网站 1处下载流媒体文件的码率 为 256Kbps;
Symbian类型的终端接入 WLAN从视频网站 2处下载流媒体文件的码率 为 512Kbps;
Symbian类型的终端接入 Cellular从视频网站 2处下载流媒体文件的码率 为 256Kbps。
通过以上两个步骤的方案,网络侧分别统计出了不同类型的终端接入不同 类型的网络, 且从不同的来源处下载流媒体文件的合适码率, 之后, 本实施例 三的方案可与实施例一的步骤 103至步骤 109的方案类似, 区别在于,在本实 施例的方案中, 终端上报的传输请求中还进一步携带来源信息, 以便于利用第 二步的统计结果进行码率的推荐。 例如, 接入 Cellular的 Android类型的终端请求从视频网站 1处请求下载 流媒体文件, 可向该终端推荐 256Kbps , 之后, 终端直接从索引文件中确定由 256Kbps编码的流媒体数据的地址, 进而从该地址获取流媒体数据。
本发明实施例三中各步骤的执行主体与实施例一中相同。
通过本发明实施例三的方案,也是在实施例一效果的基础上, 进一步细化 了统计结果,在同等条件下,从支持高带宽的视频网站处下载流媒体文件的终 端获得的推荐码率高于从支持低带宽的视频网站处下载流媒体文件的终端获 得的推荐码率, 使得为终端推荐的码率更加适合当前请求的流媒体业务。
实施例四:
本实施例四是将实施例二和实施例三的方案结合在一起, 统计出终端、 网 络用户账号、 来源四者与码率之间的关系, 即:
终端上报的记录信息中同时包含终端的设备类型、终端所接入网络的网络 类型、用户账号信息、 下载的流媒体文件的来源信息和终端下载流媒体文件的 码率, 然后针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定应用各用户账号信息时, 从不同的来源处下载流媒体文件的码率。
仍以实施例二和实施例三中涉及的五条记录信息为例,这五条记录信息内 容如下:
1 )、对于用户 Subscriber 1 ,使用 Android类型的终端 A在接入 WLAN时, 从视频网站 1处下载流媒体文件的码率为 512Kbps;
2 )、对于用户 Subscriber 1 ,使用 Android类型的终端 A在接入 Cellular时, 从视频网站 1处下载流媒体文件的码率为 256Kbps;
3 )、对于用户 Subscriberl ,使用 Android类型的终端 B在接入 WLAN时, 从视频网站 1处下载流媒体文件的码率为 256Kbps;
4 )、对于用户 Subscribed ,使用 Symbian类型的终端 C在接入 WLAN时, 从视频网站 2处下载流媒体文件的码率为 512Kbps; 5 )、 对于用户 Subscribed, 使用 Symbian类型的终端 C在接入 Cellular 时, 从视频网站 2处下载流媒体文件的码率为 256Kbps。
对这五条记录信息统计分析后, 得到的结果为:
Android类型的终端接入 WLAN时, 应用用户 Subscriber 1从视频网站 1 处下载流媒体文件的码率为 512Kbps和 256Kbps;
与步骤 102中的特殊情况类似地,同种类型的终端在接入相同类型网络且 应用同一用户账号时,出现了从同一来源处下载流媒体文件的码率不同的情况 , 可选择其中较小的码率, 即 Android 类型的终端接入 WLAN 时, 应用用户 Subscriberl从视频网站 1处下载流媒体文件的码率为 256Kbps;
Android类型的终端接入 Cellular时, 应用用户 Subscriberl从视频网站 1 处下载流媒体文件的码率为 256Kbps;
Symbian类型的终端接入 WLAN时, 应用用户 Subscribed从视频网站 2 处下载流媒体文件的码率为 512Kbps;
Symbian类型的终端接入 Cellular时, 应用用户 Subscribe 从视频网站 2 处下载流媒体文件的码率为 256Kbps。
之后,本实施例四的方案可与实施例一的步骤 103至步骤 109的方案类似, 区别在于, 在本实施例的方案中, 终端上报的传输请求中还进一步携带用户账 号信息和来源信息, 以便于利用统计结果进行码率的推荐。
例如, 对于用户 Subscriberl , 使用接入 Cellular的 Android类型的终端请 求从视频网站 1处请求下载流媒体文件, 可向该终端推荐 256Kbps, 之后, 终 端直接从索引文件中确定由 256Kbps编码的流媒体数据的地址,进而从该地址 获取流媒体数据。
本发明实施例四中各步骤的执行主体与实施例一中相同。
本发明实施例四的方案同时具有实施例二和实施例三的效果。
实施例五: 本发明实施例五是以终端的设备类型、接入网络的网络类型和下载的流媒 体文件的开始时间、结束时间为基础来进行码率的统计分析的, 在所述开始时 间、 结束时间之间的时间段内进行流媒体文件的下载。
本实施例五的方案如下:
第一步: 接收各终端上报的在设定时长内执行流媒体业务时的记录信息, 包括终端的设备类型、终端所接入网络的网络类型、 下载的流媒体文件的开始 时间、 结束时间和终端下载流媒体文件的码率。
与实施例一的区别在于, 在本实施例五的方案中, 记录信息中额外增加了 下载的流媒体文件的开始时间、 结束时间。
仍以步骤 101中的五条记录信息为例, 在本实施例中, 这五条记录信息内 容如下:
1 )、 Android类型的终端 A在接入 WLAN时, 在 20:00~20:30下载流媒体 文件的码率为 512Kbps;
2 )、 Android类型的终端 A在接入 Cellular时, 在 20:00~20:30下载流媒 体文件的码率为 256Kbps;
3 )、 Android类型的终端 B在接入 WLAN时, 在 20:00~20:30下载流媒体 文件的码率为 256Kbps;
4 )、 Symbian类型的终端 C在接入 WLAN时,在 07:00~08:00下载流媒体 文件的码率为 512Kbps;
5 )、 Symbian类型的终端 C在接入 Cellular时, 在 07:00~08:00下载流媒 体文件的码率为 256Kbps。
与实施例一类似的,记录信息中下载流媒体文件的开始时间和结束时间之 间的时间段为流媒体文件的下载时长,对于包含的下载时长小于门限值的记录 信息可忽略。
第二步:针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 在各开始时间和结束时间所表示的时间段内下载流媒体文件的码率。 在本步骤中, 利用接收到的记录信息统计出终端、 网络、 下载时间段三者 与码率之间的关系。
仍以上一步骤中接收到的记录信息为例, 统计出的结果为:
Android类型的终端接入 WLAN时, 在 20:00~20:30时间段下载流媒体文 件的码率为 512Kbps和 256Kbps;
与步骤 102中的特殊情况类似地,同种类型的终端在接入相同类型网络且 同一时间段内下载流媒体文件时, 出现了码率不同的情况, 在本实施例的方案 中, 也可选择其中较小的码率, 即 Android 类型的终端接入 WLAN 时, 在 20:00-20:30时间段内下载流媒体文件的码率为 256Kbps;
Android类型的终端接入 Cellular时,在 20:00~20:30时间段内下载流媒体 文件的码率为 256Kbps;
Symbian类型的终端接入 WLAN, 在 07:00~08:00时间段内下载流媒体文 件的码率为 512Kbps;
Symbian类型的终端接入 Cellular,在 07:00~08:00时间段内下载流媒体文 件的码率为 256Kbps。
通过以上两个步骤的方案,网络侧分别统计出了不同类型的终端接入不同 类型的网络, 且在不同时间段内下载流媒体文件的合适码率, 之后, 本实施例 五的方案可与实施例一的步骤 103至步骤 109的方案类似, 区别在于,在本实 施例的方案中,终端上报的传输请求中还进一步携带下载流媒体文件的当前时 间, 以便于确定当前时间所在的时间段后, 可利用第二步的统计结果进行码率 的推荐。
例如, 接入 Cellular的 Android类型的终端请求从 20: 10开始下载流媒体 文件, 由于 20: 10属于 20:00~20:30时间段, 因此, 可向该终端推荐 256Kbps, 之后,终端直接从索引文件中确定由 256Kbps编码的流媒体数据的地址,进而 从该地址获取流媒体数据。
通过本发明实施例五的方案,在实施例一效果的基础上, 进一步细化了统 计结果, 在同等条件下, 在业务空闲的时间段(如 07:00~08:00 ) 内下载流媒 体文件的终端获得的推荐码率高于在业务繁忙的时间段(如 20:00~20:30 ) 内 下载流媒体文件的终端获得的推荐码率,使得为终端推荐的码率更加适合当前 请求的流媒体业务。
需要说明的是: 本实施例五的方案可以分别与实施例二、 实施例三和实施 例四的方案结合, 具体说明如下:
实施例五的方案与实施例二的方案结合, 统计出终端、 网络、 用户账号、 下载流媒体文件的开始、 结束时间四者与码率之间的关系, 即, 终端上报的记 录信息中同时包含终端的设备类型、终端所接入网络的网络类型、用户账号信 息、 下载流媒体文件的开始时间、 结束时间和终端下载流媒体文件的码率, 然 后针对每种设备类型的终端以及该终端在其所接入的各类型网络下 ,确定应用 各用户账号信息时, 在不同的时间段内下载流媒体文件的码率。
实施例五的方案与实施例三的方案结合, 统计出终端、 网络、 来源、 下载 流媒体文件的开始、 结束时间四者与码率之间的关系, 即, 终端上报的记录信 息中同时包含终端的设备类型、 终端所接入网络的网络类型、 来源信息、 下载 流媒体文件的开始时间、 结束时间和终端下载流媒体文件的码率, 然后针对每 种设备类型的终端以及该终端在其所接入的各类型网络下,从不同的来源,在 不同的时间段内下载流媒体文件的码率。
实施例五的方案与实施例四的方案结合, 统计出终端、 网络、 用户账号信 息、 来源、 下载流媒体文件的开始、 结束时间五者与码率之间的关系, 即, 终 端上报的记录信息中同时包含终端的设备类型、 终端所接入网络的网络类型、 用户账号信息、 来源信息、 下载流媒体文件的开始时间、 结束时间和终端下载 流媒体文件的码率,然后针对每种设备类型的终端以及该终端在其所接入的各 类型网络下, 应用不同的用户账号, 从不同的来源, 在不同的时间段内下载流 媒体文件的码率。
本发明实施例五中各步骤的执行主体与实施例一中相同。
实施例六:
本发明实施例六是以终端的设备类型、接入网络的网络类型和终端的配置 信息为基础来进行码率的统计分析的。所述配置信息可以是终端的软硬件配置 信息, 如软件版本号、 硬件能力值等。
本实施例六的方案如下:
第一步: 接收各终端上报的在设定时长内执行流媒体业务时的记录信息, 包括终端的设备类型、终端所接入网络的网络类型、终端的配置信息和终端下 载流媒体文件的码率。
与实施例一的区别在于, 在本实施例流的方案中, 记录信息中额外增加了 终端的配置信息。
仍以步骤 101中的五条记录信息为例, 在本实施例中, 这五条记录信息内 容如下:
1 )、 Android类型的终端 A在接入 WLAN时, 下载流媒体文件的码率为 512Kbps, 终端 A的软件版本号为 4.0版本, 终端 A的屏幕大小为 4寸;
2 )、 Android类型的终端 A在接入 Cellular时, 下载流媒体文件的码率为 256Kbps, 终端 A的软件版本号为 3.0版本, 终端 A的屏幕大小为 4寸;
3 )、 Android类型的终端 B在接入 WLAN时, 下载流媒体文件的码率为
256Kbps, 终端 B的软件版本号为 3.0版本, 终端 B的屏幕大小为 5寸;
4 )、 Symbian类型的终端 C在接入 WLAN时, 下载流媒体文件的码率为 512Kbps, 终端 C的软件版本号为 4.0版本, 终端 C的屏幕大小为 4寸;
5 )、 Symbian类型的终端 C在接入 Cellular时, 下载流媒体文件的码率为 256Kbps, 终端 C的软件版本号为 4.0版本, 终端 C的屏幕大小为 4寸。 与实施例一类似的,记录信息中下载流媒体文件的开始时间和结束时间之 间的时间段为流媒体文件的下载时长,对于包含的下载时长小于门限值的记录 信息可忽略。
第二步: 在各种配置信息下,针对每种设备类型的终端以及该终端在其所 接入的各类型网络下, 下载流媒体文件的码率。
在本步骤中, 利用接收到的记录信息统计出终端、 网络、 配置信息三者与 码率之间的关系。
仍以上一步骤中接收到的记录信息为例, 统计出的结果为:
版本号为 4.0、 屏幕大小为 4寸的 Android类型的终端接入 WLAN时, 下 载流媒体文件的码率为 512Kbps;
版本号为 3.0、屏幕大小为 4寸的 Android类型的终端接入 Cellular时, 下 载流媒体文件的码率为 256Kbps;
版本号为 3.0、 屏幕大小为 5寸的 Android类型的终端接入 WLAN时, 下 载流媒体文件的码率为 256Kbps;
版本号为 4.0、屏幕大小为 4寸的 Symbian类型的终端接入 WLAN时, 下 载流媒体文件的码率为 512Kbps;
版本号为 4.0、 屏幕大小为 4寸的 Symbian类型的终端接入 Cellular时, 下载流媒体文件的码率为 256Kbps。
通过以上两个步骤的方案, 网络侧分别统计出了在不同的配置下, 不同类 型的终端接入不同类型的网络时下载流媒体文件的合适码率,之后, 本实施例 六的方案可与实施例一的步骤 103至步骤 109的方案类似, 区别在于,在本实 施例的方案中, 终端上报的传输请求中还进一步携带终端的配置信息, 以便于 确定终端当前的配置情况后, 可利用第二步的统计结果进行码率的推荐。
通过本发明实施例六的方案,在实施例一效果的基础上, 进一步细化了统 计结果, 在同等条件下, 配置越高的终端获得的推荐码率越高, 使得为终端推 荐的码率更加适合当前请求的流媒体业务。
需要说明的是: 本实施例六的方案可以分别与实施例二、 实施例三、 实施 例四和实施例五的方案结合
本发明实施例六中各步骤的执行主体与实施例一中相同。
本发明实施例一至实施例六的方案是网络侧对所管辖内的终端上报的记 录信息进行统计的方案,本发明实施例也不限于由媒体内容分发设备(如 MDN (广域媒体内容分发设备)) 向网络侧上报的在设定时长内每次执行流媒体业 务时生成的历史信息,再由网络对接收到的历史信息进行统计后, 为发起流媒 体数据传输请求的终端推荐合适的码率, 下面对此进行说明。
实施例七:
本发明实施例七是以 MDN为例, 说明网络侧利用 MDN上报的历史信息 来统计每种设备类型的终端在其所接入的各类型的网络下,所下载流媒体文件 的码率, 主要内容包括:
第一步:接收 MDN上报的在设定时长内每次执行流媒体业务时生成的历 史信息。
所述历史信息中包括执行流媒体业务的终端的设备类型、该终端所接入网 络的网络类型和终端下载流媒体文件的码率。
需要说明的是, MDN在设定时长内可与多个终端交互进行过流媒体业务, MDN可为每次流媒体业务生成一条历史信息, 较优地, 在每条历史信息中还 可包括终端下载流媒体文件的下载时长,对于下载时长小于门限值的情况, 可 忽略。
第二步: 根据所述历史信息, 分别确定每种设备类型的终端在其所接入的 各类型的网络下, 所下载流媒体文件的码率。
本实施例七的方案与实施例一的方案类似, 所不同的是本实施例中由 MDN向 EPG发送历史信息。 与实施例二、 实施例三、 实施例四、 实施例五和实施例六类似地, 本实施 例中历史信息还可包含用户账号信息、所下载的流媒体文件的来源信息、 下载 流媒体文件的开始时间和结束时间、终端的配置信息中的一种信息或多种信息 的组合, 并将新包含的信息结合实施例七中的设备类型和网络类型进行统计, 此处不再赘述。
本实施例七统计的是 MDN上 4艮的历史记录, 由于 MDN上 4艮的历史记录 不容易被墓改, 因此, 利用本实施例七的方案得到的统计结果的可靠性高。
优选地,本发明实施例还可将实施例一至实施例六与实施例七结合在一起, 由网络侧结合终端上报的记录信息和 MDN上报的历史信息进行统计,来为终 端推荐合适的码率, 一方面, 对于 youtube之类的视频网站不是由 MDN提供 服务的, 以终端上报的记录信息可对这一类情况进行补充; 另一方, 由于终端 的移动性, 终端可能无法及时向网络侧上 4艮记录信息, 此时, MDN上 4艮的历 史信息可对这一类情况进行补充, 完善统计结果。
特殊地,在同等条件下,根据记录信息和历史信息统计得到的码率不同时, 以才艮据记录信息得到的码率为准,历史信息统计结果作为对以记录信息得到码 率方案的补充。
本发明实施例一至实施例七的方案都是由网络侧(如 EPG )对终端和 MDN 中的至少一种设备上报的信息进行统计分析,再将合适的码率推荐给发起流媒 体数据传输请求的终端, 由于用于统计的资源信息多, 可得到包含多种情况组 合的统计结果, 且对于没有统计到的情况, 也可参考其他相近的结果。
优选地,在本实施例一至实施例七的方案中, 网络侧可根据得到的统计结 果生成统计列表, 在其中记载不同类型的终端在接入各种类型的网络时, 下载 流媒体文件的合适码率(若还以用户账号信息、所下载的流媒体文件的来源信 息、下载流媒体文件的开始时间和结束时间和终端的配置信息中的一种信息或 多种信息进行统计分析, 则统计列表中增加相应项), 并将该统计列表主动发 送给当前服务的终端, 由终端在需要请求下载流媒体文件时,读取接收到的统 计列表, 根据自身的实际情况选择合适的码率。
本发明实施例的方案也不限于由终端对本地生成的记录信息进行统计分 析, 具体说明如下:
实施例八:
本发明实施例八的方案是以终端对码率进行统计进而选择合适码率下载 流媒体文件的方案, 如图 2所示, 包括如下步骤:
步骤 201 : 终端确定自身在设定时长内每次执行流媒体业务时生成的记录 信息。
所述记录信息中包括终端所接入网络的网络类型和终端下载流媒体文件 的码率。
终端可在每次执行流媒体业务时生成的记录信息,并将设定时长内生成的 所有记录信息用于统计。 与实施例一中步骤 101的方案类似的, 在每条记录信 息中还可包括下载流媒体文件的下载时长, 对于下载时长小于门限值的情况, 可忽略。
例如, 终端在设定时长内生成的三条记录信息如下:
1 )、 接入 WLAN时, 下载流媒体文件的码率为 512Kbps;
2 )、 接入 Cellular时, 下载流媒体文件的码率为 256Kbps;
3 )、 接入 Cellular时, 下载流媒体文件的码率为 128Kbps。
步骤 202: 终端根据所述记录信息, 分别确定在接入每种类型的网络时, 所下载流媒体文件的码率。
终端对步骤 201中的 3条记录信息的统计结果为:
接入 WLAN时, 下载流媒体文件的码率为 512Kbps;
接入 Cellular时, 下载流媒体文件的码率为 128Kbps。
与实施例一的方案类似的,在接入相同类型网络时, 出现了下载流媒体文 件的码率不同的情况, 可选择其中较小的码率, 以避免终端选择过大的码率而 无法正确下载并播放流媒体文件的问题。
步骤 203: 当终端希望下载流媒体文件时, 确定当前所接入网络的网络类 型。
步骤 204: 终端根据步骤 202的统计结果, 确定在当前所接入网络下, 下 载流媒体文件的码率。
步骤 205: 终端从索引文件中确定由步骤 204确定的码率进行编码的流媒 体数据的地址。
步骤 206: 终端根据确定的地址获取流媒体数据。
与实施例二至实施例六类似的, 本实施例八中, 终端的记录信息还可包含 用户账号信息、所下载的流媒体文件的来源信息、 下载流媒体文件的开始时间 和结束时间和终端的配置信息中的一种信息或多种信息的组合,并将新包含的 信息结合实施例八中的网络类型进行统计, 此处不再赘述。
通过本实施例八的方案, 相对于实施例一得到的效果, 进一步地, 当终端 请求下载流媒体文件时, 可直接根据自身统计结果确定合适的码率,在此情况 下, 终端无需通过网络侧推荐才能获得合适的码率, 可由自身来确定合适的码 率, 筒化了终端从网络侧获取推荐码率的过程,提高了终端进行流媒体业务的 效率。
实施例九:
本发明实施例九还提供一种与实施例一属于同一发明构思下的确定码率 的设备, 如图 3所示, 包括: 信息接收模块 11、 码率存储模块 12、 请求接收 模块 13、 码率确定模块 14和码率发送模块 15 , 其中:
所述信息接收模块 11用于接收各终端上报的执行流媒体业务的记录信息, 所述记录信息中包括终端的设备类型、终端所接入网络的网络类型和终端下载 流媒体文件的码率; 所述码率存储模块 12用于根据所述信息接收模块接收到的所述记录信息 确定的每种设备类型的终端在其所接入的各类型的网络时下载流媒体文件的 码率, 并存储;
所述请求接收模块 13用于接收来自终端的流媒体数据传输请求, 所述传 输请求中携带所述终端的设备类型和所述终端接入网络的网络类型;
所述码率确定模块 14用于根据所述码率存储模块 12中已存储的码率,确 定在所述传输请求中的设备类型对应的终端接入所述传输请求中的网络类型 对应的网络时, 下载流媒体文件的码率;
所述码率发送模块 15用于将所述码率确定模块确定出的码率发送给所述 终端,指示所述终端根据索引文件确定出由接收到的码率进行编码的流媒体数 据的地址, 并获取流媒体数据。
较优地, 所述码率存储模块 12具体用于若根据所述记录信息确定相同设 备类型的终端在接入相同类型网络时, 下载流媒体文件的码率不同, 则选择其 中最小的码率来进行存储。
所述记录信息中还包括下载流媒体文件的下载时长,在此情况下, 所述信 息接收模块 11具体用于在接收终端上报的记录信息后, 删除包含的下载时长 小于门限值的记录信息。
本发明实施例九是以终端的设备类型和接入网络的网络类型为基础来进 行码率的统计分析的,本实施例九也可在此基础上,进一步利用用户账号信息、 下载的流媒体文件的来源信息、 下载流媒体文件的开始时间和结束时间、终端 的配置信息等参数来进行统计分析,按照实施例二至实施例六中的方案,确定 向终端推荐的码率, 下面分别加以说明:
( 1 )、 记录信息中还包括用户账号信息的情况。
所述信息接收模块 11具体用于接收到的所述记录信息中还包括用户账号 信息; 所述码率存储模块 12具体用于根据所述信息接收模块接收到的所述记录 信息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定 应用各用户账号信息时所下载流媒体文件的码率, 并存储。
较优地, 所述码率存储模块 12具体用于根据所述记录信息确定相同设备 类型的终端在接入相同类型网络且应用相同用户账号信息时,下载流媒体文件 的码率不同, 则选择其中最小的码率并存储。
( 2 )、 记录信息中还包括所下载的流媒体文件的来源信息的情况。
所述信息接收模块 11具体用于接收到的所述记录信息中还包括所下载的 流媒体文件的来源信息;
所述码率存储模块 12具体用于根据所述信息接收模块接收到的所述记录 信息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定 从各来源信息对应的来源处下载流媒体文件的码率, 并存储。
较优地, 所述码率存储模块 12具体用于若根据所述记录信息确定相同设 备类型的终端在接入相同类型网络且从相同来源处下载流媒体文件的码率不 同, 则选择其中最小的码率并存储。
( 3 )、 记录信息中还包括下载流媒体文件的开始时间和结束时间的情况。 所述信息接收模块 11具体用于接收到的所述记录信息中还包括下载流媒 体文件的开始时间和结束时间;
所述码率存储模块 12具体用于根据所述信息接收模块接收到的所述记录 信息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定 在每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率,并存储。
较优地, 所述码率存储模块 12具体用于若根据所述记录信息确定相同设 备类型的终端在接入相同类型网络且在相同时间段内,所下载流媒体文件的码 率不同, 则选择其中最小的码率并存储。
( 4 )、 记录信息中还包括终端的配置信息的情况。 所述信息接收模块 11具体用于接收到的所述记录信息中还包括终端的配 置信息;
所述码率存储模块 12具体用于根据所述信息接收模块接收到的所述记录 信息,在每种配置信息下, 确定每种设备类型的终端在其所接入的各类型的网 络时下载流媒体文件的码率, 并存储。
以上 ( 1 ) 至(4 ) 中的方案可任意结合在一起, 所述码率存储模块 12可 按照多种信息来统计分析各种情况下终端的码率, 并存储。
在上述方案中,确定码率的设备是对终端上报的记录信息来统计分析各种 情况下终端的码率, 本实施例的方案中,确定码率的设备还可以根据媒体内容 分发设备上报的历史信息来统计分析各种情况下终端的码率, 具体描述如下: 所述信息接收模块 11 , 还用于接收媒体内容分发设备上报的在设定时长 内执行流媒体业务的历史信息,所述历史信息中包括执行流媒体业务的终端的 设备类型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述码率存储模块 12还用于根据所述历史信息确定的每种设备类型的终 端在其所接入的各类型的网络时下载流媒体文件的码率, 并存储。
较优地,在所述历史信息中还包括下载流媒体文件的下载时长时, 所述信 息接收模块 11 , 还用于删除包含的下载时长小于门限值的历史信息。
与以上(1 ) 至(4 ) 的方案类似的, 历史信息中还可包括用户账号信息、 下载的流媒体文件的来源信息、下载流媒体文件的开始时间和结束时间和终端 的配置信息, 下面分别加以说明。
( 5 )、 历史信息中还包括用户账号信息的情况。
所述信息接收模块 11具体用于接收到的所述历史信息中还包括用户账号 信息;
所述码率存储模块 12具体用于根据所述信息接收模块接收到的所述历史 信息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定 应用各用户账号信息时所下载流媒体文件的码率, 并存储。
较优地, 所述码率存储模块 12具体用于根据所述历史信息确定相同设备 类型的终端在接入相同类型网络且应用相同用户账号信息时,下载流媒体文件 的码率不同, 则选择其中最小的码率并存储。
( 6 )、 历史信息中还包括所下载的流媒体文件的来源信息的情况。
所述信息接收模块 11具体用于接收到的所述历史信息中还包括下载的流 媒体文件的来源信息;
所述码率存储模块 12具体用于根据所述信息接收模块接收到的所述记录 信息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定 从各来源信息对应的来源处下载流媒体文件的码率, 并存储。
较优地, 所述码率存储模块 12具体用于若根据所述历史信息确定相同设 备类型的终端在接入相同类型网络且从相同来源处下载流媒体文件的码率不 同, 则选择其中最小的码率并存储。
( 7 )、 历史信息中还包括下载流媒体文件的开始时间和结束时间的情况。 所述信息接收模块 11具体用于接收到的所述记录信息中还包括下载流媒 体文件的开始时间和结束时间;
所述码率存储模块 12具体用于根据所述信息接收模块接收到的所述记录 信息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定 在每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率,并存储。
较优地, 所述码率存储模块 12具体用于若根据所述历史信息确定相同设 备类型的终端在接入相同类型网络且在相同时间段内,所下载流媒体文件的码 率不同, 则选择其中最小的码率并存储。
( 8 )、 历史信息中还包括终端的配置信息的情况。
所述信息接收模块 11具体用于接收到的所述历史信息中还包括终端的配 置信息; 所述码率存储模块 12具体用于根据所述信息接收模块接收到的所述记录 信息,在每种配置信息下, 确定每种设备类型的终端在其所接入的各类型的网 络时下载流媒体文件的码率, 并存储。
以上(5 ) 至(8 ) 中的方案可任意结合在一起, 所述码率存储模块 12可 按照多种信息来统计分析各种情况下终端的码率, 并存储。
所述码率存储模块 12按照多种信息来统计分析各种情况下终端的码率并 存储后,所述码率确定模块 14可根据请求接收模块 13接收到的请求中的内容 不同, 为终端推荐码率, 具体描述如下:
( a )、 传输请求中还携带用户账号信息的情况。
所述请求接收模块 13用于接收到的所述流媒体数据传输请求还包括用户 账号信息;
所述码率确定模块 14具体用于根据已确定的针对每种设备类型的终端以 及该终端在其所接入的各类型网络下,应用各用户账号信息时所下载流媒体文 件的码率,确定在传输请求中的设备类型对应的终端接入所述传输请求中的网 络类型对应的网络,且应用传输请求中的用户账号信息时, 下载流媒体文件的 码率。
较优地, 所述码率确定模块 14还用于若已确定的针对每种设备类型的终 端以及该终端在其所接入的各类型网络下,应用各用户账号信息时所下载流媒 体文件的码率中,没有记录传输请求中的设备类型对应的终端接入传输请求中 的网络类型对应的网络时, 应用传输请求中的用户账号信息的情况, 则
确定该传输请求中用户账号信息在其他设备类型的终端接入传输请求中 的网络类型对应的网络时的码率,或其他用户账号信息在传输请求中的设备类 型对应的终端接入传输请求中的网络类型对应的网络时的码率。
( b )、 传输请求中还携带流媒体文件的来源信息的情况。
所述请求接收模块 13用于接收到的所述流媒体数据传输请求还包括流媒 体文件的来源信息;
所述码率确定模块 14具体用于根据已确定的针对每种设备类型的终端以 及该终端在其所接入的各类型网络下,从各来源信息对应的来源处下载流媒体 文件的码率,确定在传输请求中的设备类型对应的终端接入传输请求中的网络 类型对应的网络,且从传输请求中的来源信息对应的来源处获取流媒体文件时 , 下载流媒体文件的码率。
( c )、 传输请求中还携带当前时间的情况。
所述请求接收模块 13用于接收到的所述流媒体数据传输请求还包括当前 时间;
所述码率确定模块 14具体用于根据已确定的针对每种设备类型的终端以 及该终端在其所接入的各类型网络下,在每个开始时间和结束时间所表示的时 间段内下载流媒体文件的码率,确定在传输请求中的设备类型对应的终端接入 传输请求中的网络类型对应的网络,且在当前时间所在的时间段内, 下载流媒 体文件的码率。
( d )、 传输请求中还携带终端的配置信息的情况。
所述请求接收模块 13用于接收到的所述流媒体数据传输请求还包括终端 的配置信息;
所述码率确定模块 14具体用于根据已确定的在每种配置信息下, 针对每 种设备类型的终端在其所接入的各类型的网络时下载流媒体文件的码率,确定 在传输请求中的设备类型对应的终端在传输请求中的配置信息对应的配置下, 接入传输请求中的网络类型对应的网络时, 下载流媒体文件的码率。
以上 ) 至(d ) 中的方案可任意结合在一起, 所述码率确定模块 14可 才艮据已统计分析出的内容, 为多种状态下的终端推荐码率。
实施例十:
本发明实施例十还提供一种与实施例七属于同一发明构思下的确定码率 的设备, 包括信息接收模块、 码率存储模块、 请求接收模块、 码率确定模块和 码率发送模块, 其中:
所述信息接收模块用于接收媒体内容分发设备上报的在设定时长内执行 流媒体业务的历史信息,所述历史信息中包括执行流媒体业务的终端的设备类 型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述码率存储模块用于根据所述历史信息确定的每种设备类型的终端在 其所接入的各类型的网络时下载流媒体文件的码率, 并存储;
所述请求接收模块用于接收来自终端的流媒体数据传输请求,所述传输请 求中携带所述终端的设备类型和所述终端接入网络的网络类型;
所述码率确定模块用于根据所述码率存储模块中已存储的码率,确定在所 述传输请求中的设备类型对应的终端接入所述传输请求中的网络类型对应的 网络时, 下载流媒体文件的码率;
所述码率发送模块用于将所述码率确定模块确定出的码率发送给所述终 端,指示所述终端根据索引文件确定出由接收到的码率进行编码的流媒体数据 的地址, 并获取流媒体数据。
较优地,在所述历史信息中还包括下载流媒体文件的下载时长时, 所述信 息接收模块还用于删除包含的下载时长小于门限值的历史信息。
在上述方案中,确定码率的设备是对媒体内容分发设备上报的历史信息来 统计分析各种情况下终端的码率, 除了以上描述对终端的设备类型、该终端所 接入网络的网络类型来进行统计分析外, 历史信息中还可包括用户账号信息、 下载的流媒体文件的来源信息、下载流媒体文件的开始时间和结束时间和终端 的配置信息, 下面分别加以说明。
( 1 )、 历史信息中还包括用户账号信息的情况。
所述信息接收模块具体用于接收到的所述历史信息中还包括用户账号信 息; 所述码率存储模块具体用于根据所述信息接收模块接收到的所述历史信 息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定应 用各用户账号信息时所下载流媒体文件的码率, 并存储。
较优地,所述码率存储模块具体用于根据所述历史信息确定相同设备类型 的终端在接入相同类型网络且应用相同用户账号信息时,下载流媒体文件的码 率不同, 则选择其中最小的码率并存储。
( 2 )、 历史信息中还包括所下载的流媒体文件的来源信息的情况。
所述信息接收模块具体用于接收到的所述历史信息中还包括下载的流媒 体文件的来源信息;
所述码率存储模块具体用于根据所述信息接收模块接收到的所述记录信 息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定从 各来源信息对应的来源处下载流媒体文件的码率, 并存储。
较优地,所述码率存储模块具体用于若根据所述历史信息确定相同设备类 型的终端在接入相同类型网络且从相同来源处下载流媒体文件的码率不同,则 选择其中最小的码率并存储。
( 3 )、 历史信息中还包括下载流媒体文件的开始时间和结束时间的情况。 所述信息接收模块具体用于接收到的所述记录信息中还包括下载流媒体 文件的开始时间和结束时间;
所述码率存储模块具体用于根据所述信息接收模块接收到的所述记录信 息,针对每种设备类型的终端以及该终端在其所接入的各类型网络下, 确定在 每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率, 并存储。
较优地,所述码率存储模块具体用于若根据所述历史信息确定相同设备类 型的终端在接入相同类型网络且在相同时间段内,所下载流媒体文件的码率不 同, 则选择其中最小的码率并存储。
( 4 )、 历史信息中还包括终端的配置信息的情况。 所述信息接收模块具体用于接收到的所述历史信息中还包括终端的配置 信息;
所述码率存储模块具体用于根据所述信息接收模块接收到的所述记录信 息,在每种配置信息下,确定每种设备类型的终端在其所接入的各类型的网络 时下载流媒体文件的码率, 并存储。
以上( 1 )至(4 )中的方案可任意结合在一起, 所述码率存储模块可按照 多种信息来统计分析各种情况下终端的码率, 并存储。
所述码率存储模块按照多种信息来统计分析各种情况下终端的码率并存 储后, 所述码率确定模块可根据请求接收模块接收到的请求中的内容不同, 为 终端推荐码率, 具体描述如下:
( a )、 传输请求中还携带用户账号信息的情况。
所述请求接收模块用于接收到的所述流媒体数据传输请求还包括用户账 号信息;
所述码率确定模块具体用于根据已确定的针对每种设备类型的终端以及 该终端在其所接入的各类型网络下,应用各用户账号信息时所下载流媒体文件 的码率,确定在传输请求中的设备类型对应的终端接入所述传输请求中的网络 类型对应的网络, 且应用传输请求中的用户账号信息时, 下载流媒体文件的码 较优地,所述码率确定模块还用于若已确定的针对每种设备类型的终端以 及该终端在其所接入的各类型网络下,应用各用户账号信息时所下载流媒体文 件的码率中,没有记录传输请求中的设备类型对应的终端接入传输请求中的网 络类型对应的网络时, 应用传输请求中的用户账号信息的情况, 则
确定该传输请求中用户账号信息在其他设备类型的终端接入传输请求中 的网络类型对应的网络时的码率,或其他用户账号信息在传输请求中的设备类 型对应的终端接入传输请求中的网络类型对应的网络时的码率。 ( b )、 传输请求中还携带流媒体文件的来源信息的情况。
所述请求接收模块用于接收到的所述流媒体数据传输请求还包括流媒体 文件的来源信息;
所述码率确定模块具体用于根据已确定的针对每种设备类型的终端以及 该终端在其所接入的各类型网络下,从各来源信息对应的来源处下载流媒体文 件的码率,确定在传输请求中的设备类型对应的终端接入传输请求中的网络类 型对应的网络, 且从传输请求中的来源信息对应的来源处获取流媒体文件时, 下载流媒体文件的码率。
( c )、 传输请求中还携带当前时间的情况。
所述请求接收模块用于接收到的所述流媒体数据传输请求还包括当前时 间;
所述码率确定模块具体用于根据已确定的针对每种设备类型的终端以及 该终端在其所接入的各类型网络下,在每个开始时间和结束时间所表示的时间 段内下载流媒体文件的码率,确定在传输请求中的设备类型对应的终端接入传 输请求中的网络类型对应的网络,且在当前时间所在的时间段内, 下载流媒体 文件的码率。
( d )、 传输请求中还携带终端的配置信息的情况。
所述请求接收模块用于接收到的所述流媒体数据传输请求还包括终端的 配置信息;
所述码率确定模块具体用于根据已确定的在每种配置信息下,针对每种设 备类型的终端在其所接入的各类型的网络时下载流媒体文件的码率,确定在传 输请求中的设备类型对应的终端在传输请求中的配置信息对应的配置下,接入 传输请求中的网络类型对应的网络时, 下载流媒体文件的码率。
以上 )至 U )中的方案可任意结合在一起, 所述码率确定模块可根据 已统计分析出的内容, 为多种状态下的终端推荐码率。 本发明实施例十和实施例十一是网络侧 (如 EPG )根据终端和媒体内容 分发设备(MDN ) 中的至少一个设备上报的信息来进行统计分析, 进而确定 可不同状态下的终端推荐码率的方案。
实施例十一:
本发明实施例十一是以终端主动对码率进行统计进而选择合适码率下载 流媒体文件的情况下,提供的一种终端,如图 4所示, 包括码率存储模块 21、 信息确定模块 22、 码率确定模块 23和流媒体数据获取模块 24, 其中:
所述码率存储模块 21用于根据执行流媒体业务时的记录信息确定在接入 每种类型的网络时下载流媒体文件的码率, 并存储, 所述记录信息中包括终端 所接入网络的网络类型和终端下载流媒体文件的码率;
所述信息确定模块 22用于确定当前所接入网络的网络类型;
所述码率确定模块 23用于根据所述码率存储模块中已存储的码率, 确定 在当前所接入网络下, 下载流媒体文件的码率;
所述流媒体数据获取模块 24用于从索引文件中确定由当前所接入网络下, 所述码率确定模块确定出的码率进行编码的流媒体数据的地址,并根据确定的 地址获取流媒体数据。
较优地, 所述码率存储模块 21具体用于在所述记录信息中还包括下载流 媒体文件的下载时长时, 删除包含的下载时长小于门限值的记录信息。
在上述方案中, 终端根据自身的设备类型、所接入网络的网络类型来进行 统计分析的, 除此之外, 终端还可根据用户账号信息、 下载的流媒体文件的来 源信息、下载流媒体文件的开始时间和结束时间和终端的配置信息来进行统计 分析, 下面分别加以说明。
( 1 )、 记录信息中还包括用户账号信息的情况。
所述码率存储模块 21具体用于分别针对所接入的每种类型的网络, 确定 应用各用户账号信息时下载流媒体文件的码率, 并存储。 较优地, 所述码率存储模块 21具体用于根据所述记录信息确在接入相同 类型网络且应用相同用户账号信息时, 下载流媒体文件的码率不同, 则选择其 中最小的码率并存储。
( 2 )、 记录信息中还包括所下载的流媒体文件的来源信息的情况。
所述码率存储模块 21具体用于分别针对接入的每种类型的网络, 确定从 各来源信息对应的来源处下载流媒体文件的码率。
较优地, 所述码率存储模块 21具体用于若根据所述记录信息确定在接入 相同类型网络且从相同来源处下载流媒体文件的码率不同,则选择其中最小的 码率并存储。
( 3 )、 记录信息中还包括下载流媒体文件的开始时间和结束时间的情况。 所述码率存储模块 21具体用于分别针对接入的每种类型的网络, 确定在 每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率, 并存储。
较优地, 所述码率存储模块 21具体用于若根据所述记录信息确定在接入 相同类型网络且在相同时间段内, 所下载流媒体文件的码率不同, 则选择其中 最小的码率并存储。
( 4 )、 记录信息中还包括终端的配置信息的情况。
所述码率存储模块 21具体用于分别确定在每种配置信息下, 各设备类型 的终端在其所接入的各类型的网络时下载流媒体文件的码率, 并存储。
以上 ( 1 ) 至(4 ) 中的方案可任意结合在一起, 所述码率存储模块 12可 按照多种信息来统计分析各种情况下的码率, 并存储。
在本实施例十一的方案中, 所述信息确定模块 22还用于确定出当前所使 用的用户账号信息、所下载的流媒体文件的来源信息、 下载流媒体文件的开始 时间和结束时间和终端的配置信息中的至少一种信息,这里所述信息确定模块 22 实际确定的信息与上述(1 ) 至(4 ) 中记录信息内包含的信息匹配。 所述 码率确定模块 23还用于根据所述码率存储模块中已存储的按照上述( 1 )至( 4 ) 中确定的码率,确定在当前所接入网络以及( 1 )至( 4 )中额外增加的信息下, 下载流媒体文件的码率。
实施例十二:
如图 5所示, 为本发明实施例十二中获取流媒体数据的系统结构示意图, 包括确定码率的设备 31和至少一个终端 32 , 其中:
所述终端 32用于向所述确定码率的设备 31上报的执行流媒体业务的记录 信息, 以及在向所述确定码率的设备 31发起流媒体数据传输请求后, 接收来 自所述确定码率的设备 31发送的码率, 以及根据索引文件确定出由接收到的 码率进行编码的流媒体数据的地址, 并获取流媒体数据, 所述记录信息中包括 终端的设备类型、 终端所接入网络的网络类型和终端下载流媒体文件的码率; 所述确定码率的设备 31用于根据所述记录信息确定每种设备类型的终端 在其所接入的各类型的网络时下载流媒体文件的码率,并在接收到携带所述终 端的设备类型和所述终端接入网络的网络类型的所述流媒体数据传输请求时, 根据已确定的每种设备类型的终端在其所接入的各类型的网络时下载流媒体 文件的码率,确定在所述传输请求中的设备类型对应的终端接入所述传输请求 中的网络类型对应的网络时,下载流媒体文件的码率,并发送给所述终端 32。
所述终端 32向所述确定码率的设备 31上报的记录信息中还可以包含用户 账号信息、 下载的流媒体文件的来源信息、 下载流媒体文件的开始时间和结束 时间、 终端的配置信息中的至少一个信息, 确定码率的设备 31根据包含以上 信息的记录信息来统计分析为终端在不同状态下的码率, 此处不再赘述。
所述系统还包括媒体内容分发设备 33:
所述媒体内容分发设备 33用于向所述确定码率的设备 31上报在设定时长 内执行流媒体业务的历史信息,所述历史信息中包括执行流媒体业务的终端的 设备类型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述确定码率的设备 31还用于接收所述媒体内容分发设备 33上报的所述 历史信息, 并根据所述历史信息, 分别确定每种设备类型的终端在其所接入的 各类型的网络时, 下载流媒体文件的码率。
所述媒体内容分发设备 33向所述确定码率的设备 31上报的历史信息中还 可以包含用户账号信息、 下载的流媒体文件的来源信息、 下载流媒体文件的开 始时间和结束时间、 终端的配置信息中的至少一个信息, 确定码率的设备 31 根据包含以上信息的历史信息来统计分析为终端在不同状态下的码率,此处不 再赘述。
实施例十三:
本发明实施例十三还提供一种获取流媒体数据的系统,包括确定码率的设 备、 媒体内容分发设备和至少一个终端, 其中:
所述媒体内容分发设备用于向所述确定码率的设备上报在设定时长内执 行流媒体业务的历史信息,所述历史信息中包括执行流媒体业务的终端的设备 类型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述确定码率的设备用于根据所述历史信息确定每种设备类型的终端在 其所接入的各类型的网络时下载流媒体文件的码率,并在接收到携带终端的设 备类型和终端接入网络的网络类型的流媒体数据传输请求时,根据已确定的每 种设备类型的终端在其所接入的各类型的网络时下载流媒体文件的码率,确定 在所述传输请求中的设备类型对应的终端接入所述传输请求中的网络类型对 应的网络时, 下载流媒体文件的码率, 并发送给所述终端;
所述终端用于在向所述确定码率的设备发起所述流媒体数据传输请求后, 接收来自所述确定码率的设备发送的码率,以及根据索引文件确定出由接收到 的码率进行编码的流媒体数据的地址, 并获取流媒体数据。
所述媒体内容分发设备向所述确定码率的设备上报的历史信息中还可以 包含用户账号信息、 下载的流媒体文件的来源信息、 下载流媒体文件的开始时 间和结束时间、终端的配置信息中的至少一个信息,确定码率的设备根据包含 以上信息的历史信息来统计分析为终端在不同状态下的码率, 此处不再赘述。 实施例十四:
本发明实施例十四还提供一种确定码率的设备, 如图 6所示, 包括: 第一 空口 41、 存储器 42、 第二空口 43、 处理器 44和分发器 45 , 其中:
所述第一空口 41用于接收各终端上报的执行流媒体业务的记录信息, 所 述记录信息中包括终端的设备类型、终端所接入网络的网络类型和终端下载流 媒体文件的码率;
所述存储器 42用于根据所述第一空口 41接收到的所述记录信息确定的每 种设备类型的终端在其所接入的各类型的网络时下载流媒体文件的码率,并存 储;
所述第二空口 43用于接收来自终端的流媒体数据传输请求, 所述传输请 求中携带所述终端的设备类型和所述终端接入网络的网络类型;
所述处理器 44用于根据所述存储器 42中已存储的码率,确定在所述传输 请求中的设备类型对应的终端接入所述传输请求中的网络类型对应的网络时 , 下载流媒体文件的码率;
所述分发器 45用于将所述处理器 44确定出的码率发送给所述终端,指示 所述终端根据索引文件确定出由接收到的码率进行编码的流媒体数据的地址, 并获取流媒体数据。
较优地, 所述存储器 42具体用于若根据所述记录信息确定相同设备类型 的终端在接入相同类型网络时, 下载流媒体文件的码率不同, 则选择其中最小 的码率来进行存储。
所述记录信息中还包括下载流媒体文件的下载时长,在此情况下, 所述第 一空口 41具体用于在接收终端上报的记录信息后, 删除包含的下载时长小于 门限值的记录信息。
本发明实施例十四是以终端的设备类型和接入网络的网络类型为基础来 进行码率的统计分析的, 本实施例十四也可在此基础上, 进一步利用用户账号 信息、下载的流媒体文件的来源信息、下载流媒体文件的开始时间和结束时间、 终端的配置信息等参数来进行统计分析, 下面分别加以说明:
( 1 )、 记录信息中还包括用户账号信息的情况。
所述第一空口 41具体用于接收到的所述记录信息中还包括用户账号信息; 所述存储器 42具体用于根据所述信息接收模块接收到的所述记录信息, 针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定应用各 用户账号信息时所下载流媒体文件的码率, 并存储。
较优地, 所述存储器 42具体用于根据所述记录信息确定相同设备类型的 终端在接入相同类型网络且应用相同用户账号信息时,下载流媒体文件的码率 不同, 则选择其中最小的码率并存储。
( 2 )、 记录信息中还包括所下载的流媒体文件的来源信息的情况。
所述第一空口 41具体用于接收到的所述记录信息中还包括所下载的流媒 体文件的来源信息;
所述存储器 42具体用于根据所述信息接收模块接收到的所述记录信息, 针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定从各来 源信息对应的来源处下载流媒体文件的码率, 并存储。
较优地, 所述存储器 42具体用于若根据所述记录信息确定相同设备类型 的终端在接入相同类型网络且从相同来源处下载流媒体文件的码率不同,则选 择其中最小的码率并存储。
( 3 )、 记录信息中还包括下载流媒体文件的开始时间和结束时间的情况。 所述第一空口 41具体用于接收到的所述记录信息中还包括下载流媒体文 件的开始时间和结束时间;
所述存储器 42具体用于根据所述信息接收模块接收到的所述记录信息, 针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定在每个 开始时间和结束时间所表示的时间段内下载流媒体文件的码率, 并存储。
较优地, 所述存储器 42具体用于若根据所述记录信息确定相同设备类型 的终端在接入相同类型网络且在相同时间段内,所下载流媒体文件的码率不同, 则选择其中最小的码率并存储。
( 4 )、 记录信息中还包括终端的配置信息的情况。
所述第一空口 41具体用于接收到的所述记录信息中还包括终端的配置信 息;
所述存储器 42具体用于根据所述信息接收模块接收到的所述记录信息, 在每种配置信息下,确定每种设备类型的终端在其所接入的各类型的网络时下 载流媒体文件的码率, 并存储。
以上(1 ) 至(4 ) 中的方案可任意结合在一起, 所述存储器 42可按照多 种信息来统计分析各种情况下终端的码率, 并存储。
在上述方案中,确定码率的设备是对终端上报的记录信息来统计分析各种 情况下终端的码率, 本实施例的方案中,确定码率的设备还可以根据媒体内容 分发设备上报的历史信息来统计分析各种情况下终端的码率, 具体描述如下: 所述第一空口 41还用于接收媒体内容分发设备上报的在设定时长内执行 流媒体业务的历史信息,所述历史信息中包括执行流媒体业务的终端的设备类 型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述存储器 42还用于根据所述历史信息确定的每种设备类型的终端在其 所接入的各类型的网络时下载流媒体文件的码率, 并存储。
较优地,在所述历史信息中还包括下载流媒体文件的下载时长时, 所述第 一空口 41还用于删除包含的下载时长小于门限值的历史信息。
与以上(1 ) 至(4 ) 的方案类似的, 历史信息中还可包括用户账号信息、 下载的流媒体文件的来源信息、下载流媒体文件的开始时间和结束时间和终端 的配置信息, 下面分别加以说明。 ( 5 )、 历史信息中还包括用户账号信息的情况。
所述第一空口 41具体用于接收到的所述历史信息中还包括用户账号信息; 所述存储器 42具体用于根据所述信息接收模块接收到的所述历史信息, 针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定应用各 用户账号信息时所下载流媒体文件的码率, 并存储。
较优地, 所述存储器 42具体用于根据所述历史信息确定相同设备类型的 终端在接入相同类型网络且应用相同用户账号信息时,下载流媒体文件的码率 不同, 则选择其中最小的码率并存储。
( 6 )、 历史信息中还包括所下载的流媒体文件的来源信息的情况。
所述第一空口 41具体用于接收到的所述历史信息中还包括下载的流媒体 文件的来源信息;
所述存储器 42具体用于根据所述信息接收模块接收到的所述记录信息, 针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定从各来 源信息对应的来源处下载流媒体文件的码率, 并存储。
较优地, 所述存储器 42具体用于若根据所述历史信息确定相同设备类型 的终端在接入相同类型网络且从相同来源处下载流媒体文件的码率不同,则选 择其中最小的码率并存储。
( 7 )、 历史信息中还包括下载流媒体文件的开始时间和结束时间的情况。 所述第一空口 41具体用于接收到的所述记录信息中还包括下载流媒体文 件的开始时间和结束时间;
所述存储器 42具体用于根据所述信息接收模块接收到的所述记录信息, 针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定在每个 开始时间和结束时间所表示的时间段内下载流媒体文件的码率, 并存储。
较优地, 所述存储器 42具体用于若根据所述历史信息确定相同设备类型 的终端在接入相同类型网络且在相同时间段内,所下载流媒体文件的码率不同, 则选择其中最小的码率并存储。
( 8 )、 历史信息中还包括终端的配置信息的情况。
所述第一空口 41具体用于接收到的所述历史信息中还包括终端的配置信 息;
所述存储器 42具体用于根据所述信息接收模块接收到的所述记录信息, 在每种配置信息下,确定每种设备类型的终端在其所接入的各类型的网络时下 载流媒体文件的码率, 并存储。
以上 (5 ) 至(8 ) 中的方案可任意结合在一起, 所述存储器 42可按照多 种信息来统计分析各种情况下终端的码率, 并存储。
所述存储器 42按照多种信息来统计分析各种情况下终端的码率并存储后, 所述处理器 44可根据第二空口 43接收到的请求中的内容不同,为终端推荐码 率, 具体描述如下:
( a )、 传输请求中还携带用户账号信息的情况。
所述第二空口 43用于接收到的所述流媒体数据传输请求还包括用户账号 信息;
所述处理器 44具体用于根据已确定的针对每种设备类型的终端以及该终 端在其所接入的各类型网络下,应用各用户账号信息时所下载流媒体文件的码 率,确定在传输请求中的设备类型对应的终端接入所述传输请求中的网络类型 对应的网络, 且应用传输请求中的用户账号信息时, 下载流媒体文件的码率。
较优地, 所述处理器 44还用于若已确定的针对每种设备类型的终端以及 该终端在其所接入的各类型网络下,应用各用户账号信息时所下载流媒体文件 的码率中,没有记录传输请求中的设备类型对应的终端接入传输请求中的网络 类型对应的网络时, 应用传输请求中的用户账号信息的情况, 则
确定该传输请求中用户账号信息在其他设备类型的终端接入传输请求中 的网络类型对应的网络时的码率,或其他用户账号信息在传输请求中的设备类 型对应的终端接入传输请求中的网络类型对应的网络时的码率。
( b )、 传输请求中还携带流媒体文件的来源信息的情况。
所述第二空口 43用于接收到的所述流媒体数据传输请求还包括流媒体文 件的来源信息;
所述处理器 44具体用于根据已确定的针对每种设备类型的终端以及该终 端在其所接入的各类型网络下,从各来源信息对应的来源处下载流媒体文件的 码率,确定在传输请求中的设备类型对应的终端接入传输请求中的网络类型对 应的网络, 且从传输请求中的来源信息对应的来源处获取流媒体文件时, 下载 流媒体文件的码率。
( c )、 传输请求中还携带当前时间的情况。
所述第二空口 43用于接收到的所述流媒体数据传输请求还包括当前时间; 所述处理器 44具体用于根据已确定的针对每种设备类型的终端以及该终 端在其所接入的各类型网络下,在每个开始时间和结束时间所表示的时间段内 下载流媒体文件的码率,确定在传输请求中的设备类型对应的终端接入传输请 求中的网络类型对应的网络,且在当前时间所在的时间段内, 下载流媒体文件 的码率。
( d )、 传输请求中还携带终端的配置信息的情况。
所述第二空口 43用于接收到的所述流媒体数据传输请求还包括终端的配 置信息;
所述处理器 44具体用于根据已确定的在每种配置信息下, 针对每种设备 类型的终端在其所接入的各类型的网络时下载流媒体文件的码率,确定在传输 请求中的设备类型对应的终端在传输请求中的配置信息对应的配置下,接入传 输请求中的网络类型对应的网络时, 下载流媒体文件的码率。
以上 ) 至(d ) 中的方案可任意结合在一起, 所述处理器 44可根据已 统计分析出的内容, 为多种状态下的终端推荐码率。 实施例十五:
本发明实施例十五还提供一种确定码率的设备, 包括第一空口、 存储器、 第二空口、 处理器和分发器, 其中: 体业务的历史信息, 所述历史信息中包括执行流媒体业务的终端的设备类型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述存储器用于根据所述历史信息确定的每种设备类型的终端在其所接 入的各类型的网络时下载流媒体文件的码率, 并存储;
所述第二空口用于接收来自终端的流媒体数据传输请求,所述传输请求中 携带所述终端的设备类型和所述终端接入网络的网络类型;
所述处理器用于根据所述码率存储模块中已存储的码率,确定在所述传输 请求中的设备类型对应的终端接入所述传输请求中的网络类型对应的网络时 , 下载流媒体文件的码率;
所述分发器用于将所述码率确定模块确定出的码率发送给所述终端,指示 所述终端根据索引文件确定出由接收到的码率进行编码的流媒体数据的地址, 并获取流媒体数据。
较优地,在所述历史信息中还包括下载流媒体文件的下载时长时, 所述第 一空口还用于删除包含的下载时长小于门限值的历史信息。
在上述方案中,确定码率的设备是对媒体内容分发设备上报的历史信息来 统计分析各种情况下终端的码率, 除了以上对终端的设备类型、该终端所接入 网络的网络类型来进行统计分析外, 历史信息中还可包括用户账号信息、 下载 的流媒体文件的来源信息、下载流媒体文件的开始时间和结束时间和终端的配 置信息, 下面分别加以说明。
( 1 )、 历史信息中还包括用户账号信息的情况。
所述第一空口具体用于接收到的所述历史信息中还包括用户账号信息; 所述存储器具体用于根据所述信息接收模块接收到的所述历史信息,针对 每种设备类型的终端以及该终端在其所接入的各类型网络下,确定应用各用户 账号信息时所下载流媒体文件的码率, 并存储。
较优地,所述存储器具体用于根据所述历史信息确定相同设备类型的终端 在接入相同类型网络且应用相同用户账号信息时,下载流媒体文件的码率不同, 则选择其中最小的码率并存储。
( 2 )、 历史信息中还包括所下载的流媒体文件的来源信息的情况。
所述第一空口具体用于接收到的所述历史信息中还包括下载的流媒体文 件的来源信息;
所述存储器具体用于根据所述信息接收模块接收到的所述记录信息,针对 每种设备类型的终端以及该终端在其所接入的各类型网络下,确定从各来源信 息对应的来源处下载流媒体文件的码率, 并存储。
较优地,所述存储器具体用于若根据所述历史信息确定相同设备类型的终 端在接入相同类型网络且从相同来源处下载流媒体文件的码率不同,则选择其 中最小的码率并存储。
( 3 )、 历史信息中还包括下载流媒体文件的开始时间和结束时间的情况。 所述第一空口具体用于接收到的所述记录信息中还包括下载流媒体文件 的开始时间和结束时间;
所述存储器具体用于根据所述信息接收模块接收到的所述记录信息,针对 每种设备类型的终端以及该终端在其所接入的各类型网络下,确定在每个开始 时间和结束时间所表示的时间段内下载流媒体文件的码率, 并存储。
较优地,所述存储器具体用于若根据所述历史信息确定相同设备类型的终 端在接入相同类型网络且在相同时间段内, 所下载流媒体文件的码率不同, 则 选择其中最小的码率并存储。
( 4 )、 历史信息中还包括终端的配置信息的情况。 所述第一空口具体用于接收到的所述历史信息中还包括终端的配置信息; 所述存储器具体用于根据所述信息接收模块接收到的所述记录信息,在每 种配置信息下,确定每种设备类型的终端在其所接入的各类型的网络时下载流 媒体文件的码率, 并存储。
以上( 1 )至(4 )中的方案可任意结合在一起, 所述存储器可按照多种信 息来统计分析各种情况下终端的码率, 并存储。
所述存储器按照多种信息来统计分析各种情况下终端的码率并存储后,所 述处理器可根据第二空口接收到的请求中的内容不同, 为终端推荐码率, 具体 描述如下:
( a )、 传输请求中还携带用户账号信息的情况。
所述第二空口用于接收到的所述流媒体数据传输请求还包括用户账号信 息;
所述处理器具体用于根据已确定的针对每种设备类型的终端以及该终端 在其所接入的各类型网络下,应用各用户账号信息时所下载流媒体文件的码率, 确定在传输请求中的设备类型对应的终端接入所述传输请求中的网络类型对 应的网络, 且应用传输请求中的用户账号信息时, 下载流媒体文件的码率。
较优地,所述处理器还用于若已确定的针对每种设备类型的终端以及该终 端在其所接入的各类型网络下,应用各用户账号信息时所下载流媒体文件的码 率中,没有记录传输请求中的设备类型对应的终端接入传输请求中的网络类型 对应的网络时, 应用传输请求中的用户账号信息的情况, 则
确定该传输请求中用户账号信息在其他设备类型的终端接入传输请求中 的网络类型对应的网络时的码率,或其他用户账号信息在传输请求中的设备类 型对应的终端接入传输请求中的网络类型对应的网络时的码率。
( b )、 传输请求中还携带流媒体文件的来源信息的情况。
所述第二空口用于接收到的所述流媒体数据传输请求还包括流媒体文件 的来源信息;
所述处理器具体用于根据已确定的针对每种设备类型的终端以及该终端 在其所接入的各类型网络下,从各来源信息对应的来源处下载流媒体文件的码 率,确定在传输请求中的设备类型对应的终端接入传输请求中的网络类型对应 的网络,且从传输请求中的来源信息对应的来源处获取流媒体文件时, 下载流 媒体文件的码率。
( c )、 传输请求中还携带当前时间的情况。
所述第二空口用于接收到的所述流媒体数据传输请求还包括当前时间; 所述处理器具体用于根据已确定的针对每种设备类型的终端以及该终端 在其所接入的各类型网络下,在每个开始时间和结束时间所表示的时间段内下 载流媒体文件的码率,确定在传输请求中的设备类型对应的终端接入传输请求 中的网络类型对应的网络,且在当前时间所在的时间段内, 下载流媒体文件的 码率。
( d )、 传输请求中还携带终端的配置信息的情况。
所述第二空口用于接收到的所述流媒体数据传输请求还包括终端的配置 信息;
所述处理器具体用于根据已确定的在每种配置信息下,针对每种设备类型 的终端在其所接入的各类型的网络时下载流媒体文件的码率,确定在传输请求 中的设备类型对应的终端在传输请求中的配置信息对应的配置下,接入传输请 求中的网络类型对应的网络时, 下载流媒体文件的码率。
以上 )至 U )中的方案可任意结合在一起, 所述处理器可根据已统计 分析出的内容, 为多种状态下的终端推荐码率。
实施例十六:
本发明实施例十六提供了一种终端, 如图 7所示, 包括存储器 51、 第一 处理器 52、 第二处理器 53和下载器 54 , 其中: 所述存储器 51用于根据执行流媒体业务时的记录信息确定在接入每种类 型的网络时下载流媒体文件的码率, 并存储, 所述记录信息中包括终端所接入 网络的网络类型和终端下载流媒体文件的码率;
所述第一处理器 52用于确定当前所接入网络的网络类型;
所述第二处理器 53用于根据所述存储器 51中已存储的码率,确定在当前 所接入网络下, 下载流媒体文件的码率;
所述下载器 54用于从索引文件中确定由当前所接入网络下, 所述码率确 定模块确定出的码率进行编码的流媒体数据的地址,并根据确定的地址获取流 媒体数据。
较优地, 所述存储器 51具体用于在所述记录信息中还包括下载流媒体文 件的下载时长时, 删除包含的下载时长小于门限值的记录信息。
在上述方案中, 终端根据自身的设备类型、所接入网络的网络类型来进行 统计分析的, 除此之外, 终端还可根据用户账号信息、 下载的流媒体文件的来 源信息、下载流媒体文件的开始时间和结束时间和终端的配置信息来进行统计 分析, 下面分别加以说明。
( 1 )、 记录信息中还包括用户账号信息的情况。
所述存储器 51具体用于分别针对所接入的每种类型的网络, 确定应用各 用户账号信息时下载流媒体文件的码率, 并存储。
较优地, 所述存储器 51具体用于根据所述记录信息确在接入相同类型网 络且应用相同用户账号信息时, 下载流媒体文件的码率不同, 则选择其中最小 的码率并存储。
( 2 )、 记录信息中还包括所下载的流媒体文件的来源信息的情况。
所述存储器 51具体用于分别针对接入的每种类型的网络, 确定从各来源 信息对应的来源处下载流媒体文件的码率。
较优地, 所述存储器 51具体用于若根据所述记录信息确定在接入相同类 型网络且从相同来源处下载流媒体文件的码率不同,则选择其中最小的码率并 存储。
( 3 )、 记录信息中还包括下载流媒体文件的开始时间和结束时间的情况。 所述存储器 51具体用于分别针对接入的每种类型的网络, 确定在每个开 始时间和结束时间所表示的时间段内下载流媒体文件的码率, 并存储。
较优地, 所述存储器 51具体用于若根据所述记录信息确定在接入相同类 型网络且在相同时间段内, 所下载流媒体文件的码率不同, 则选择其中最小的 码率并存储。
( 4 )、 记录信息中还包括终端的配置信息的情况。
所述存储器 51具体用于分别确定在每种配置信息下, 各设备类型的终端 在其所接入的各类型的网络时下载流媒体文件的码率, 并存储。
以上( 1 ) 至(4 ) 中的方案可任意结合在一起, 所述存储器 51可按照多 种信息来统计分析各种情况下的码率, 并存储。
所述第一处理器 52除了确定终端当前所接入网络的网络类型, 还可以确 定用户账号信息、 下载的流媒体文件的来源信息、 下载流媒体文件的开始时间 和结束时间和终端的配置信息中的至少一种信息, 进而, 第二处理器 53才艮据 存储器 51中已存储的各种状态下的码率, 为自身确定合适的码率。
本领域内的技术人员应明白, 本申请的实施例可提供为方法、 系统、 或计 算机程序产品。 因此, 本申请可采用完全硬件实施例、 完全软件实施例、 或结 合软件和硬件方面的实施例的形式。 而且, 本申请可采用在一个或多个其中包 含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘存储器、 CD-ROM, 光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请实施例的方法、 设备(系统)、 和计算机程序产 品的流程图和 /或方框图来描述的。应理解可由计算机程序指令实现流程图和 /或方框图中的每一流程和 /或方框、以及流程图和 /或方框图中的流程和 / 或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入 式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算 机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一 个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设 备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中 的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个 流程和 /或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使 得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处 理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基 本创造性概念, 则可对这些实施例做出另外的变更和修改。 所以, 所附权利要 求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。
明的精神和范围。 这样,倘若本发明的这些修改和变型属于本发明权利要求及 其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。

Claims

权 利 要 求
1、 一种获取流媒体数据的方法, 其特征在于, 包括:
接收来自终端的流媒体数据传输请求,所述传输请求中携带所述终端的设 备类型和所述终端接入网络的网络类型;
根据已确定的每种设备类型的终端在其所接入的各类型的网络时下载流 媒体文件的码率,确定在所述传输请求中的设备类型对应的终端接入所述传输 请求中的网络类型对应的网络时, 下载流媒体文件的码率;
将确定出的码率发送给所述终端,指示所述终端根据索引文件确定出由接 收到的码率进行编码的流媒体数据的地址, 并获取流媒体数据;
其中,所述每种设备类型的终端在其所接入的各类型的网络时下载流媒体 文件的码率,是根据各终端上报的执行流媒体业务的记录信息确定的, 所述记 录信息中包括终端的设备类型、终端所接入网络的网络类型和终端下载流媒体 文件的码率。
2、 如权利要求 1所述的方法, 其特征在于, 所述方法还包括:
若根据所述记录信息确定相同设备类型的终端在接入相同类型网络时,下 载流媒体文件的码率不同, 则选择其中最小的码率。
3、 如权利要求 1所述的方法, 其特征在于, 所述记录信息中还包括用户 账号信息;
根据各终端上报的记录信息确定每种设备类型的终端在其所接入的各类 型的网络时下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下 ,确定应 用各用户账号信息时所下载流媒体文件的码率。
4、 如权利要求 3所述的方法, 其特征在于, 所述方法还包括:
若根据所述记录信息确定相同设备类型的终端在接入相同类型网络且应 用相同用户账号信息时,下载流媒体文件的码率不同,则选择其中最小的码率。
5、 如权利要求 1所述的方法, 其特征在于, 所述记录信息中还包括所下 载的流媒体文件的来源信息;
根据各终端上报的记录信息确定每种设备类型的终端在其所接入的各类 型的网络时下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定从 各来源信息对应的来源处下载流媒体文件的码率。
6、 如权利要求 5所述的方法, 其特征在于, 所述方法还包括:
若根据所述记录信息确定相同设备类型的终端在接入相同类型网络且从 相同来源处下载流媒体文件的码率不同, 则选择其中最小的码率。
7、 如权利要求 1所述的方法, 其特征在于, 所述记录信息中还包括下载 流媒体文件的开始时间和结束时间;
根据各终端上报的记录信息确定每种设备类型的终端在其所接入的各类 型的网络时下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定在 每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率。
8、 如权利要求 7所述的方法, 其特征在于, 所述方法还包括:
若根据所述记录信息确定相同设备类型的终端在接入相同类型网络且在 相同时间段内, 所下载流媒体文件的码率不同, 则选择其中最小的码率。
9、 如权利要求 1所述的方法, 其特征在于, 所述记录信息中还包括终端 的配置信息;
根据各终端上报的记录信息确定每种设备类型的终端在其所接入的各类 型的网络时下载流媒体文件的码率, 具体包括:
在每种配置信息下,确定每种设备类型的终端在其所接入的各类型的网络 时下载流媒体文件的码率。
10、 如权利要求 1~9任一所述的方法, 其特征在于, 所述记录信息中还包 括下载流媒体文件的下载时长;
在接收终端上报的记录信息后,且确定每种设备类型的终端在其所接入的 各类型的网络时下载流媒体文件的码率之前, 所述方法还包括:
删除包含的下载时长小于门限值的记录信息。
11、 如权利要求 1~9任一所述的方法, 其特征在于, 还包括: 所述历史信息中包括执行流媒体业务的终端的设备类型、该终端所接入网络的 网络类型和终端下载流媒体文件的码率;
根据所述历史信息,分别确定每种设备类型的终端在其所接入的各类型的 网络时, 下载流媒体文件的码率。
12、 如权利要求 11所述的方法, 其特征在于, 所述历史信息中还包括用 户账号信息;
根据媒体内容分发设备上报的历史信息,确定每种设备类型的终端在其所 接入的各类型的网络时, 下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定应 用各用户账号信息时所下载流媒体文件的码率。
13、 如权利要求 11所述的方法, 其特征在于, 所述历史信息中还包括所 下载的流媒体文件的来源信息;
根据媒体内容分发设备上报的历史信息,确定每种设备类型的终端在其所 接入的各类型的网络时, 下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定从 各来源信息对应的来源处下载流媒体文件的码率。
14、 如权利要求 11所述的方法, 其特征在于, 所述历史信息中还包括下 载流媒体文件的开始时间和结束时间;
根据媒体内容分发设备上报的历史信息,确定每种设备类型的终端在其所 接入的各类型的网络时, 下载流媒体文件的码率, 具体包括:
针对每种设备类型的终端以及该终端在其所接入的各类型网络下,确定在 每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率。
15、 如权利要求 11所述的方法, 其特征在于, 所述历史信息中还包括终 端的配置信息;
根据媒体内容分发设备上报的历史信息,确定每种设备类型的终端在其所 接入的各类型的网络时, 下载流媒体文件的码率, 具体包括:
在每种配置信息下,确定每种设备类型的终端在其所接入的各类型的网络 时下载流媒体文件的码率。
16、 如权利要求 11~15任一所述的方法, 其特征在于, 所述历史信息中还 包括下载流媒体文件的下载时长;
在接收内容分发设备上报的历史信息后,且根据历史信息确定每种设备类 型的终端在其所接入的各类型的网络时下载流媒体文件的码率之前,所述方法 还包括:
删除包含的下载时长小于门限值的历史信息。
17、 如权利要求 3所述的方法, 其特征在于, 所述传输请求中还携带用户 账号信息;
确定在所述传输请求中的设备类型对应的终端接入所述传输请求中的网 络类型对应的网络时, 下载流媒体文件的码率, 具体包括:
根据已确定的针对每种设备类型的终端以及该终端在其所接入的各类型 网络下,应用各用户账号信息时所下载流媒体文件的码率,确定在传输请求中 的设备类型对应的终端接入所述传输请求中的网络类型对应的网络,且应用传 输请求中的用户账号信息时, 下载流媒体文件的码率。
18、 如权利要求 17所述的方法, 其特征在于, 若已确定的针对每种设备 类型的终端以及该终端在其所接入的各类型网络下,应用各用户账号信息时所 下载流媒体文件的码率中,没有记录传输请求中的设备类型对应的终端接入传 输请求中的网络类型对应的网络时, 应用传输请求中的用户账号信息的情况, 则
确定该传输请求中用户账号信息在其他设备类型的终端接入传输请求中 的网络类型对应的网络时的码率,或其他用户账号信息在传输请求中的设备类 型对应的终端接入传输请求中的网络类型对应的网络时的码率。
19、 如权利要求 5所述的方法, 其特征在于, 所述传输请求中还携带流媒 体文件的来源信息;
确定在传输请求中的设备类型对应的终端接入传输请求中的网络类型对 应的网络时, 下载流媒体文件的码率, 具体包括:
根据已确定的针对每种设备类型的终端以及该终端在其所接入的各类型 网络下,从各来源信息对应的来源处下载流媒体文件的码率,确定在传输请求 中的设备类型对应的终端接入传输请求中的网络类型对应的网络,且从传输请 求中的来源信息对应的来源处获取流媒体文件时, 下载流媒体文件的码率。
20、 如权利要求 7所述的方法, 其特征在于, 所述传输请求中还携带当前 时间;
确定在传输请求中的设备类型对应的终端接入传输请求中的网络类型对 应的网络时, 下载流媒体文件的码率, 具体包括:
根据已确定的针对每种设备类型的终端以及该终端在其所接入的各类型 网络下,在每个开始时间和结束时间所表示的时间段内下载流媒体文件的码率 , 确定在传输请求中的设备类型对应的终端接入传输请求中的网络类型对应的 网络, 且在当前时间所在的时间段内, 下载流媒体文件的码率。
21、 如权利要求 9所述的方法, 其特征在于, 所述传输请求中还携带终端 的配置信息;
确定在传输请求中的设备类型对应的终端接入传输请求中的网络类型对 应的网络时, 下载流媒体文件的码率, 具体包括:
根据已确定的在每种配置信息下,针对每种设备类型的终端在其所接入的 各类型的网络时下载流媒体文件的码率,确定在传输请求中的设备类型对应的 终端在传输请求中的配置信息对应的配置下,接入传输请求中的网络类型对应 的网络时, 下载流媒体文件的码率。
22、 一种获取流媒体数据的方法, 其特征在于, 包括:
接收来自终端的流媒体数据传输请求,所述传输请求中携带所述终端的设 备类型和所述终端接入网络的网络类型;
根据已确定的每种设备类型的终端在其所接入的各类型的网络时,下载流 媒体文件的码率,确定在所述传输请求中的设备类型对应的终端接入所述传输 请求中的网络类型所对应的网络时, 下载流媒体文件的码率;
将确定出的码率发送给所述终端,指示所述终端根据索引文件中确定出由 接收到的码率进行编码的流媒体数据的地址, 获取流媒体数据;
其中,所述每种设备类型的终端在其所接入的各类型的网络时下载流媒体 文件的码率,是根据媒体内容分发设备上报的执行流媒体业务的历史信息确定 的, 所述历史信息中包括执行流媒体业务的终端的设备类型、该终端所接入网 络的网络类型和终端下载流媒体文件的码率。
23、 一种获取流媒体数据的方法, 其特征在于, 包括:
终端确定当前所接入网络的网络类型;
终端根据自身已确定的在接入每种类型的网络时下载流媒体文件的码率, 确定在当前所接入网络下, 下载流媒体文件的码率;
终端从索引文件中确定由当前所接入网络下,下载流媒体文件的码率进行 编码的流媒体数据的地址;
终端根据确定的地址获取流媒体数据;
其中,终端根据执行流媒体业务时的记录信息确定在接入每种类型的网络 时下载流媒体文件的码率,所述记录信息中包括终端所接入网络的网络类型和 终端下载流媒体文件的码率。
24、 如权利要求 23所述的方法, 其特征在于, 所述记录信息中还包括用 户账号信息;
终端根据执行流媒体业务时的记录信息确定在接入每种类型的网络时下 载流媒体文件的码率, 具体包括:
终端分别针对所接入的每种类型的网络,确定应用各用户账号信息时下载 流媒体文件的码率。
25、 如权利要求 23所述的方法, 其特征在于, 所述记录信息中还包括所 下载的流媒体文件的来源信息;
终端根据执行流媒体业务时的记录信息确定在接入每种类型的网络时下 载流媒体文件的码率, 具体包括:
终端分别针对接入的每种类型的网络,确定从各来源信息对应的来源处下 载流媒体文件的码率。
26、 如权利要求 23所述的方法, 其特征在于, 所述记录信息中还包括下 载流媒体文件的开始时间和结束时间;
终端根据执行流媒体业务时的记录信息确定在接入每种类型的网络时下 载流媒体文件的码率, 具体包括:
终端分别针对接入的每种类型的网络,确定在每个开始时间和结束时间所 表示的时间段内下载流媒体文件的码率。
27、 如权利要求 23所述的方法, 其特征在于, 所述记录信息中还包括终 端的配置信息;
终端根据执行流媒体业务时的记录信息确定在接入每种类型的网络时下 载流媒体文件的码率, 具体包括:
终端分别确定在每种配置信息下,各设备类型的终端在其所接入的各类型 的网络时下载流媒体文件的码率。
28、 如权利要求 23~27任一所述的方法, 其特征在于, 所述记录信息中还 包括下载流媒体文件的下载时长;
终端根据执行流媒体业务时的记录信息确定在接入每种类型的网络时下 载流媒体文件的码率之前, 所述方法还包括:
删除包含的下载时长小于门限值的记录信息。
29、 一种确定码率的设备, 其特征在于, 包括信息接收模块、 码率存储模 块、 请求接收模块、 码率确定模块和码率发送模块, 其中:
所述信息接收模块, 用于接收各终端上报的执行流媒体业务的记录信息, 所述记录信息中包括终端的设备类型、终端所接入网络的网络类型和终端下载 流媒体文件的码率;
所述码率存储模块,用于根据所述信息接收模块接收到的所述记录信息确 定的每种设备类型的终端在其所接入的各类型的网络时下载流媒体文件的码 率, 并存储;
所述请求接收模块, 用于接收来自终端的流媒体数据传输请求, 所述传输 请求中携带所述终端的设备类型和所述终端接入网络的网络类型;
所述码率确定模块, 用于根据所述码率存储模块中已存储的码率,确定在 所述传输请求中的设备类型对应的终端接入所述传输请求中的网络类型对应 的网络时, 下载流媒体文件的码率;
所述码率发送模块,用于将所述码率确定模块确定出的码率发送给所述终 端,指示所述终端根据索引文件确定出由接收到的码率进行编码的流媒体数据 的地址, 并获取流媒体数据。
30、 如权利要求 29所述的设备, 其特征在于,
所述信息接收模块,还用于接收媒体内容分发设备上报的在设定时长内执 行流媒体业务的历史信息,所述历史信息中包括执行流媒体业务的终端的设备 类型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率; 所述码率存储模块,还用于根据所述历史信息确定的每种设备类型的终端 在其所接入的各类型的网络时下载流媒体文件的码率, 并存储。
31、 一种确定码率的设备, 其特征在于, 包括信息接收模块、 码率存储模 块、 请求接收模块、 码率确定模块和码率发送模块, 其中:
所述信息接收模块,用于接收媒体内容分发设备上报的在设定时长内执行 流媒体业务的历史信息,所述历史信息中包括执行流媒体业务的终端的设备类 型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述码率存储模块,用于根据所述历史信息确定的每种设备类型的终端在 其所接入的各类型的网络时下载流媒体文件的码率, 并存储;
所述请求接收模块, 用于接收来自终端的流媒体数据传输请求, 所述传输 请求中携带所述终端的设备类型和所述终端接入网络的网络类型;
所述码率确定模块, 用于根据所述码率存储模块中已存储的码率,确定在 所述传输请求中的设备类型对应的终端接入所述传输请求中的网络类型对应 的网络时, 下载流媒体文件的码率;
所述码率发送模块,用于将所述码率确定模块确定出的码率发送给所述终 端,指示所述终端根据索引文件确定出由接收到的码率进行编码的流媒体数据 的地址, 并获取流媒体数据。
32、 一种终端, 其特征在于, 包括码率存储模块、 信息确定模块、 码率确 定模块和流媒体数据获取模块, 其中:
所述码率存储模块,用于根据执行流媒体业务时的记录信息确定在接入每 种类型的网络时下载流媒体文件的码率, 并存储, 所述记录信息中包括终端所 接入网络的网络类型和终端下载流媒体文件的码率;
所述信息确定模块, 用于确定当前所接入网络的网络类型;
所述码率确定模块, 用于根据所述码率存储模块中已存储的码率,确定在 当前所接入网络下, 下载流媒体文件的码率;
所述流媒体数据获取模块, 用于从索引文件中确定由当前所接入网络下, 所述码率确定模块确定出的码率进行编码的流媒体数据的地址,并根据确定的 地址获取流媒体数据。
33、 一种获取流媒体数据的系统, 其特征在于, 包括确定码率的设备和至 少一个终端, 其中:
所述终端,用于向所述确定码率的设备上报的执行流媒体业务的记录信息, 以及在向所述确定码率的设备发起流媒体数据传输请求后,接收来自所述确定 码率的设备发送的码率,以及根据索引文件确定出由接收到的码率进行编码的 流媒体数据的地址,并获取流媒体数据,所述记录信息中包括终端的设备类型、 终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述确定码率的设备,用于根据所述记录信息确定每种设备类型的终端在 其所接入的各类型的网络时下载流媒体文件的码率,并在接收到携带所述终端 的设备类型和所述终端接入网络的网络类型的所述流媒体数据传输请求时,根 据已确定的每种设备类型的终端在其所接入的各类型的网络时下载流媒体文 件的码率,确定在所述传输请求中的设备类型对应的终端接入所述传输请求中 的网络类型对应的网络时, 下载流媒体文件的码率, 并发送给所述终端。
34、 如权利要求 33所述的系统, 其特征在于, 所述系统还包括:
媒体内容分发设备,用于向所述确定码率的设备上报在设定时长内执行流 媒体业务的历史信息,所述历史信息中包括执行流媒体业务的终端的设备类型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述确定码率的设备,还用于接收所述媒体内容分发设备上报的所述历史 信息, 并根据所述历史信息, 分别确定每种设备类型的终端在其所接入的各类 型的网络时, 下载流媒体文件的码率。
35、 一种获取流媒体数据的系统, 其特征在于, 包括确定码率的设备、 媒 体内容分发设备和至少一个终端, 其中:
所述媒体内容分发设备,用于向所述确定码率的设备上报在设定时长内执 行流媒体业务的历史信息,所述历史信息中包括执行流媒体业务的终端的设备 类型、 该终端所接入网络的网络类型和终端下载流媒体文件的码率;
所述确定码率的设备,用于根据所述历史信息确定每种设备类型的终端在 其所接入的各类型的网络时下载流媒体文件的码率,并在接收到携带终端的设 备类型和终端接入网络的网络类型的流媒体数据传输请求时,根据已确定的每 种设备类型的终端在其所接入的各类型的网络时下载流媒体文件的码率,确定 在所述传输请求中的设备类型对应的终端接入所述传输请求中的网络类型对 应的网络时, 下载流媒体文件的码率, 并发送给所述终端; 所述终端,用于在向所述确定码率的设备发起所述流媒体数据传输请求后, 接收来自所述确定码率的设备发送的码率,以及根据索引文件确定出由接收到 的码率进行编码的流媒体数据的地址, 并获取流媒体数据。
PCT/CN2013/087063 2013-04-23 2013-11-13 获取流媒体数据的方法、设备及系统 WO2014173110A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2015560524A JP6308442B2 (ja) 2013-04-23 2013-11-13 ストリーミングメディアデータを取得するための方法、デバイス、およびシステム
EP13882821.5A EP2942970A4 (en) 2013-04-23 2013-11-13 METHOD, DEVICE AND SYSTEM FOR OBTAINING MULTIMEDIA BROADCAST DIFFUSION DATA
US14/830,519 US10116572B2 (en) 2013-04-23 2015-08-19 Method, device, and system for acquiring streaming media data

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310143304.9 2013-04-23
CN201310143304.9A CN103248962B (zh) 2013-04-23 2013-04-23 获取流媒体数据的方法、设备及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/830,519 Continuation US10116572B2 (en) 2013-04-23 2015-08-19 Method, device, and system for acquiring streaming media data

Publications (1)

Publication Number Publication Date
WO2014173110A1 true WO2014173110A1 (zh) 2014-10-30

Family

ID=48928143

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/087063 WO2014173110A1 (zh) 2013-04-23 2013-11-13 获取流媒体数据的方法、设备及系统

Country Status (5)

Country Link
US (1) US10116572B2 (zh)
EP (1) EP2942970A4 (zh)
JP (1) JP6308442B2 (zh)
CN (1) CN103248962B (zh)
WO (1) WO2014173110A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071604A1 (zh) * 2015-10-28 2017-05-04 中兴通讯股份有限公司 一种播放方法、装置及存储介质
CN111526153A (zh) * 2020-04-29 2020-08-11 高新兴科技集团股份有限公司 流媒体调度方法、计算机存储介质及电子设备

Families Citing this family (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248962B (zh) 2013-04-23 2016-12-28 华为技术有限公司 获取流媒体数据的方法、设备及系统
CN103428528A (zh) * 2013-08-19 2013-12-04 江苏金智教育信息技术有限公司 一种云流媒体自适应播放装置及方法
CN103533452B (zh) * 2013-10-24 2017-08-25 中国联合网络通信集团有限公司 一种流媒体的传输控制方法及装置
CN103731415A (zh) * 2013-12-09 2014-04-16 乐视网信息技术(北京)股份有限公司 一种高码流数据传输方法及装置
CN104717555B (zh) 2013-12-11 2018-01-02 华为技术有限公司 视频码流的获取方法及装置
FR3016263A1 (fr) * 2014-01-07 2015-07-10 Orange Procede de traitement d'erreur de restitution d'un contenu numerique
CN104869474A (zh) * 2014-02-24 2015-08-26 风网科技(北京)有限公司 一种可扩展的移动流媒体系统及其应用方法
CN105025351B (zh) * 2014-04-30 2018-06-29 深圳Tcl新技术有限公司 流媒体播放器缓冲的方法及装置
CN104202618B (zh) * 2014-09-26 2019-02-15 三星电子(中国)研发中心 获取播放资源的方法、代理客户端、代理服务器和系统
CN105744308A (zh) * 2014-12-08 2016-07-06 深圳Tcl数字技术有限公司 流媒体数据的下载方法及装置
US20160191584A1 (en) * 2014-12-30 2016-06-30 Myine Electronics, Inc. Synchronized vehicle media content sharing moderation
CN104581229B (zh) 2015-01-16 2018-08-03 京东方科技集团股份有限公司 一种流媒体数据传输装置、方法和系统
CN104853224B (zh) * 2015-05-05 2018-02-06 无锡天脉聚源传媒科技有限公司 一种视频数据处理方法及装置
CN109005435A (zh) * 2015-06-29 2018-12-14 杭州虹晟信息科技有限公司 可预加载数据的机顶盒
CN105049452B (zh) * 2015-08-25 2018-04-20 广东欧珀移动通信有限公司 资源下载方式的切换方法、装置及智能终端
CN106604078B (zh) * 2015-10-14 2019-07-19 北京国双科技有限公司 一种网络视频推荐方法及装置
CN105681838A (zh) * 2015-12-30 2016-06-15 深圳市云宙多媒体技术有限公司 一种hls直播在线用户统计方法和系统
CN106973302A (zh) * 2016-01-14 2017-07-21 腾讯科技(深圳)有限公司 一种下载视频数据的方法、装置及系统
CN106993014B (zh) * 2016-01-20 2020-12-18 中兴通讯股份有限公司 缓存内容的调整方法、装置及系统
PL3629623T3 (pl) * 2016-05-13 2021-10-18 Telefonaktiebolaget Lm Ericsson (Publ) Systemy i sposoby zalecania szybkości transmisji danych w systemie komunikacji bezprzewodowej
CN106484811A (zh) * 2016-09-23 2017-03-08 北京赢点科技有限公司 一种基于互联网的媒体数据管理方法及装置
US11317127B2 (en) 2017-08-17 2022-04-26 Roku, Inc. Intelligent download of content
WO2019084716A1 (zh) * 2017-10-30 2019-05-09 北京小米移动软件有限公司 网络连接方法及装置
CN109788324A (zh) * 2017-11-14 2019-05-21 华为技术有限公司 视频播放方法及设备
US10652589B2 (en) * 2017-12-08 2020-05-12 Sling Media Pvt Ltd Systems and methods for selecting an initial streaming bitrate
CN110312150B (zh) * 2019-04-24 2022-04-05 网宿科技股份有限公司 一种视频帧传输方法、系统及服务器
CN110662093A (zh) * 2019-10-17 2020-01-07 北京达佳互联信息技术有限公司 一种初始码率确定方法、装置、电子设备及存储介质
CN111432246B (zh) * 2020-03-23 2022-11-15 广州市百果园信息技术有限公司 推送视频数据的方法、装置及存储介质
CN113873578A (zh) * 2020-06-30 2021-12-31 华为技术有限公司 信息确定方法及设备
CN112367564A (zh) * 2020-10-30 2021-02-12 北京达佳互联信息技术有限公司 视频播放参数确定方法及其设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848205A (zh) * 2010-03-16 2010-09-29 深圳市同洲电子股份有限公司 一种基于rtsp的移动终端播放流媒体的方法及系统
CN102088620A (zh) * 2010-12-01 2011-06-08 中兴通讯股份有限公司 一种内容分发网络中媒体文件下载方法及客户端
WO2011071913A1 (en) * 2009-12-07 2011-06-16 Interdigital Patent Holdings, Inc. Method and apparatus for enabling coder selection and rate adaptation for 3gpp for media stremas between a media server and a mobile terminal
CN102710586A (zh) * 2011-03-28 2012-10-03 华为技术有限公司 流媒体传输控制方法、媒体传输控制方法、相关设备
CN103248962A (zh) * 2013-04-23 2013-08-14 华为技术有限公司 获取流媒体数据的方法、设备及系统

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7555006B2 (en) * 2003-09-15 2009-06-30 The Directv Group, Inc. Method and system for adaptive transcoding and transrating in a video network
JPWO2008108379A1 (ja) * 2007-02-28 2010-06-17 日本電気株式会社 メディア配信システム、配信サーバ装置及びそれらに用いるメディア配信方法並びにそのプログラム
CN101420670A (zh) * 2008-05-30 2009-04-29 北京天腾时空信息科技有限公司 一种终端内容适配的方法和装置
WO2011068784A1 (en) * 2009-12-01 2011-06-09 Azuki Systems, Inc. Method and system for secure and reliable video streaming with rate adaptation
CN103069406B (zh) * 2010-04-08 2016-11-23 瓦索那网络公司 对于多个客户机管理流媒体带宽
US20130080267A1 (en) * 2011-09-26 2013-03-28 Unicorn Media, Inc. Single-url content delivery
JP2011045134A (ja) * 2010-11-01 2011-03-03 Hitachi Kokusai Electric Inc 映像配信システム、映像配信方法
US8516144B2 (en) * 2011-04-29 2013-08-20 Cbs Interactive Inc. Startup bitrate in adaptive bitrate streaming
US8812662B2 (en) * 2011-06-29 2014-08-19 Sonic Ip, Inc. Systems and methods for estimating available bandwidth and performing initial stream selection when streaming content
CN102984557A (zh) * 2012-12-06 2013-03-20 深圳市佳创视讯技术股份有限公司 基于drm的流媒体播放系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011071913A1 (en) * 2009-12-07 2011-06-16 Interdigital Patent Holdings, Inc. Method and apparatus for enabling coder selection and rate adaptation for 3gpp for media stremas between a media server and a mobile terminal
CN101848205A (zh) * 2010-03-16 2010-09-29 深圳市同洲电子股份有限公司 一种基于rtsp的移动终端播放流媒体的方法及系统
CN102088620A (zh) * 2010-12-01 2011-06-08 中兴通讯股份有限公司 一种内容分发网络中媒体文件下载方法及客户端
CN102710586A (zh) * 2011-03-28 2012-10-03 华为技术有限公司 流媒体传输控制方法、媒体传输控制方法、相关设备
CN103248962A (zh) * 2013-04-23 2013-08-14 华为技术有限公司 获取流媒体数据的方法、设备及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2942970A4 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071604A1 (zh) * 2015-10-28 2017-05-04 中兴通讯股份有限公司 一种播放方法、装置及存储介质
CN106658226A (zh) * 2015-10-28 2017-05-10 中兴通讯股份有限公司 一种播放方法及装置
CN111526153A (zh) * 2020-04-29 2020-08-11 高新兴科技集团股份有限公司 流媒体调度方法、计算机存储介质及电子设备
CN111526153B (zh) * 2020-04-29 2023-03-07 高新兴科技集团股份有限公司 流媒体调度方法、计算机存储介质及电子设备

Also Published As

Publication number Publication date
CN103248962B (zh) 2016-12-28
US10116572B2 (en) 2018-10-30
EP2942970A4 (en) 2016-04-20
JP2016516323A (ja) 2016-06-02
CN103248962A (zh) 2013-08-14
US20150372927A1 (en) 2015-12-24
EP2942970A1 (en) 2015-11-11
JP6308442B2 (ja) 2018-04-11

Similar Documents

Publication Publication Date Title
WO2014173110A1 (zh) 获取流媒体数据的方法、设备及系统
JP6337350B2 (ja) ビデオ品質向上
US9979771B2 (en) Adaptive variable fidelity media distribution system and method
US9332051B2 (en) Media manifest file generation for adaptive streaming cost management
US9485526B2 (en) Multi-stream shared communication channels
EP2880548B1 (en) Methods for quality-aware adaptive streaming over hypertext transfer protocol
US20120246335A1 (en) Method, terminal, and server for implementing fast playout
US10958972B2 (en) Channel change method and apparatus
US20150088965A1 (en) Systems and methods for selective retrieval of adaptive bitrate streaming media
JP2016519895A (ja) メディアファイル受信およびメディアファイル送信方法、装置、およびシステム
US20120089740A1 (en) Method and device for selecting an svc operation point, and method and device for providing information of svc operation points
WO2018090978A1 (zh) 自适应播放、控制方法、机顶盒及电子节目服务器
KR20120114016A (ko) 사용자 컨텐츠를 외부 단말기에서 네트워크 적응적으로 스트리밍하는 방법 및 장치
US9338204B2 (en) Prioritized side channel delivery for download and store media
WO2014026590A1 (zh) Iptv系统实现边放边下的方法、终端及cdn服务器
CN106791860A (zh) 一种自适应视频编码控制系统及方法
JP2015136059A (ja) 通信装置、通信データ生成方法、および通信データ処理方法
WO2020135562A1 (zh) 一种组播方法、装置、设备和计算机存储介质
JP2015136057A (ja) 通信装置、通信データ生成方法、および通信データ処理方法
CN105430510A (zh) 一种视频点播方法、网关、智能终端及视频点播系统
WO2010025675A1 (zh) 一种业务内容的播放方法、系统和装置
WO2010057391A1 (zh) 一种流媒体播放控制方法、设备及系统
WO2013071517A1 (zh) 媒体流的发送方法及服务器
WO2015109842A1 (zh) 一种处理分段节目的方法、服务器及客户端设备
CN114173145A (zh) 一种基于hls协议动态码率低延迟直播方法

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: 13882821

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2013882821

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2015560524

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE