CN107105317B - Video playing method and device - Google Patents

Video playing method and device Download PDF

Info

Publication number
CN107105317B
CN107105317B CN201710364429.2A CN201710364429A CN107105317B CN 107105317 B CN107105317 B CN 107105317B CN 201710364429 A CN201710364429 A CN 201710364429A CN 107105317 B CN107105317 B CN 107105317B
Authority
CN
China
Prior art keywords
channel
mosaic
code rate
strategy
scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710364429.2A
Other languages
Chinese (zh)
Other versions
CN107105317A (en
Inventor
罗盛波
夏霜艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710364429.2A priority Critical patent/CN107105317B/en
Publication of CN107105317A publication Critical patent/CN107105317A/en
Application granted granted Critical
Publication of CN107105317B publication Critical patent/CN107105317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • 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/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Abstract

The embodiment of the invention discloses a video playing method and a video playing device, wherein the video playing method can be used for acquiring a mosaic code rate set of each channel aiming at each channel in a mosaic channel scene, the mosaic code rate set comprises a plurality of code rates which can be selected by the channel, and the mosaic channel scene refers to a scene which simultaneously comprises playing windows of at least two channels on the same display screen; determining the current available bandwidth and the performance coefficient of the set-top box; and respectively selecting the code rate to be allocated for each channel from the mosaic code rate set of each channel according to the available bandwidth and the performance coefficient, and further acquiring the content or the file of the code rate to be allocated from the media server for playing, thereby improving the playing success rate of the mosaic channel.

Description

Video playing method and device
Technical Field
The invention relates to the technical field of computers, in particular to a video playing method and device.
Background
An Internet Protocol Television (IPTV) is a new technology for providing a variety of interactive services including digital tv to home users by using a broadband network, and can provide services, such as live tv and multimedia video, to the users by fully using network resources. The personalized mosaic channel is also a service with more applications in the IPTV, the personalized mosaic channel refers to the fact that a user can select a plurality of live broadcast channels through an interactive interface to play simultaneously on the same picture, and the layout of playing windows of the live broadcast channels in the picture can also be set by the user in a self-defined mode. However, in practice, when multiple live videos included in a mosaic channel are played simultaneously, the mosaic channel cannot be played due to limited bandwidth.
Disclosure of Invention
The embodiment of the invention provides a video playing method and device, which can improve the playing success rate of mosaic channels.
In a first aspect, an embodiment of the present invention provides a video playing method, where in the video playing method, a terminal may obtain, for each channel in a mosaic channel scene, a mosaic code rate set of each channel, determine a current available bandwidth and a performance coefficient of a set top box, and select, according to the available bandwidth and the performance coefficient, a code rate to be allocated for each channel from the mosaic code rate set of each channel.
The mosaic code rate set may include a plurality of code rates selectable by the channel, that is, each channel has a corresponding mosaic code rate set; the mosaic channel scene refers to a scene that simultaneously includes at least two playing windows of channels on the same display screen, and may also be referred to as a service scene of a mosaic channel or a mosaic channel. In the mosaic channel scene, a user can select a plurality of live channels to be played on the same television picture at the same time by using the electronic program guide EPG, and can also change the page layout modes of the channels by himself.
The performance coefficient can be obtained by converting according to the computing power, the available memory space and the load condition of the equipment.
Therefore, the embodiment can respectively select the appropriate code rate for each channel by combining the current available bandwidth and the performance coefficient of the set top box, and improve the playing success rate of the mosaic channel.
Optionally, in the video playing method, the sum of the code rates to be allocated selected for each channel is not greater than the product of the available bandwidth and the performance coefficient, so that simultaneous playing of multiple pictures can be ensured, and a stuck phenomenon does not occur.
Optionally, selecting, from the mosaic rate set, a code rate to be allocated for each channel according to the available bandwidth and the performance coefficient, includes: determining a target overall strategy grade of the mosaic channel scene according to the number and the size of the playing windows in the mosaic channel scene, wherein the target overall strategy grade comprises a window strategy grade of the playing windows; and selecting a code rate to be distributed for each channel from the mosaic code rate set of each channel according to the target overall strategy grade.
The video playing can also set various window strategy grades for playing windows of various sizes respectively, and code rate ranges corresponding to different window strategy grades of playing windows of the same size are different; and determining various overall strategy levels of the mosaic scene according to the various code rate strategy levels corresponding to the playing windows of various sizes.
For example, the window policy level may include a preferred bitrate policy, a suboptimal bitrate policy, a bitrate policy again, a function realizable bitrate policy, and the like, and optionally, the window policy level may be further divided into multiple levels in more detail, but the overall trend is that the lower the level is, the smaller the corresponding bitrate is, and the minimum level is the function realizable bitrate policy. In addition, the code rates of the same window strategy level corresponding to the windows with different sizes may be different, for example, the code rates of the function realizable code rate strategies corresponding to the windows with different sizes may be different.
Optionally, determining the target overall policy level of the mosaic channel scene according to the number and size of the playing windows in the mosaic channel scene may be: calculating the sum of the selectable code rates of all channels of the mosaic scene under various overall strategy levels; determining a maximum sum value of the sum values that is less than a product between the available bandwidth and the coefficient of performance; and taking the overall strategy grade corresponding to the maximum sum value as a target overall strategy grade of the mosaic scene.
For example, the overall policy hierarchy may include an overall optimal policy, an overall suboptimal policy, an overall re-policy, an overall policy n, and a function implementable policy. The window strategy grade of each playing window in the overall optimal strategy can be an optimal code rate strategy; the window strategy grade of a part of playing windows in the whole suboptimal strategy can be a priority bit rate strategy, the window strategy grade of a part of playing windows can be a suboptimal bit rate strategy, the ratio of the window strategy grade to the suboptimal bit rate strategy can be various, so that various whole suboptimal strategies are formed, the ratio of the window strategy grade to the suboptimal bit rate strategy can also be a preset fixed value, and an integral suboptimal strategy is formed; the window strategy grade of each playing window in the overall strategy is a suboptimal bit rate strategy, and the overall strategy n can be the combination of the window strategy grades corresponding to the playing windows, so that n is an integer greater than or equal to 1; the window strategy grade of each playing window in the function realizable strategy is a function realizable code rate strategy.
Optionally, after determining the code rate to be allocated for each channel, a file of the code rate to be allocated for each channel may be requested from the media server.
In a second aspect, an embodiment of the present invention further provides a video playing apparatus, where the video playing apparatus has a function of implementing the video playing method according to the first aspect. The above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above. For example, the video playing apparatus may include an acquisition module, a determination module, and a selection module. The acquisition module is used for acquiring a mosaic rate set of each channel aiming at each channel in a mosaic channel scene; the mosaic code rate set comprises a plurality of code rates which can be selected by the channel, and the mosaic channel scene is a scene which simultaneously comprises at least two channels of playing windows on the same display screen; the determining module is used for determining the current available bandwidth and the performance coefficient of the set-top box; and the selection module is used for selecting code rates to be distributed for the channels from the mosaic code rate set of the channels according to the available bandwidth and the performance coefficient.
In a third aspect, an embodiment of the present invention further provides a video playing device, where the video playing device may include a processor, a memory, and a communication interface, and the processor is connected to the communication interface and the memory respectively; the memory is to store program instructions; the processor is configured to call the program instructions in the memory, so that the apparatus implements the video playing method according to any one of the above aspects of the embodiment of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored, and when the computer-readable storage medium runs on a computer, the video playing method in any one of the above aspects can be implemented.
In a sixth aspect, an embodiment of the present invention further provides a computer program product, where instructions in the computer program product, when executed by a processor, may implement the video playing method of the first aspect or the second aspect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present invention, the drawings required to be used in the embodiments or the background art of the present invention will be described below.
Fig. 1 is a schematic structural diagram of a video playing system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a video playing method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another video playing method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus provided in an embodiment of the present application.
Detailed Description
The embodiments of the present invention will be described below with reference to the drawings.
An interactive network Television (IPTV) is a brand-new technology that provides a variety of interactive services including digital tv to home users by using a broadband network, and a user can select a broadcast channel through an Electronic Program Guide (EPG), wherein a mosaic channel is a service with more applications on the EPG. In a service scene of a mosaic channel, a user can select a plurality of live channels to be played on the same television picture simultaneously through the EPG, and can also change the page layout mode of each channel by himself, for example, the center of the television picture is a channel with the highest favorite degree of the user, and the periphery is a channel with a relatively low favorite degree of the user.
However, in the service scenario of the mosaic channel, the network bandwidth of the user is limited, and the limited network bandwidth is simultaneously allocated to the service scenarios of the user such as internet surfing, television watching, content downloading, and the like, which often results in that the mosaic channel cannot be watched.
Because each channel adopts the default code rate in the service scene of the mosaic channel at present, the failure rate of playing the mosaic channel under the condition of limited network bandwidth is higher, therefore, the embodiment of the invention provides a video playing method, which can select the proper code rate for each channel in the mosaic channel by combining the network bandwidth.
It should be understood that, in the embodiment of the present invention, in the mosaic channel playing scene, each channel in the mosaic channel scene may also be referred to as a mosaic channel; the playing window corresponding to the channel can also be called a mosaic window or a window; the multiple code rates corresponding to each channel may also be referred to as mosaic code rates; the mosaic channel scene may be a scene in which the same display screen simultaneously includes the play windows of at least two channels, may also be a scene in which the same picture simultaneously includes the play windows of at least two channels, and may also be a scene in which the plurality of display screens include the play windows of a plurality of channels.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a video playing system according to an embodiment of the present invention, as shown in fig. 1, the video playing system includes a set top box 101, an EPG server 102, and a media server 103, where the set top box 101 may obtain, from the EPG server 102, a mosaic code rate set of each channel for each channel in a mosaic channel scene, where the mosaic code rate set includes multiple code rates selectable by the channel, and the mosaic channel scene refers to a scene that includes playing windows of at least two channels on the same display screen at the same time; the set top box 101 may determine the current available bandwidth and the set top box coefficient of performance; the set top box 101 selects a code rate to be allocated for each channel from the mosaic code rate set of each channel according to the available bandwidth and the performance coefficient, and then the set top box 101 can acquire content or files of the code rate to be allocated from the media server 103 to play.
The set top box 101 may also be a television terminal, and the television terminal may integrate related functions of the set top box to execute the video playing method according to the embodiment of the present invention, and optionally, the set top box 101 may also be other playing devices, which is not limited in the embodiment of the present invention.
The sum of the code rates to be allocated selected by the set-top box 101 for each channel in the mosaic channel is not greater than the product between the available bandwidth and the performance coefficient.
It can be seen that, in the video playing system shown in fig. 1, a user may select multiple channels to enter a mosaic channel scene, and the set-top box 101 first obtains the code rate of the multiple channels selected by the user from the EPG server, and obtains the current available bandwidth and performance coefficient at the same time, and selects the code rate matched with the size of the playing window for the multiple channels, so that the normal playing of the mosaic channel is ensured to the maximum extent under the condition of limited bandwidth.
After the user selects a plurality of channels of the mosaic channel in the process (these channels may be channels supporting the mosaic channel), the set-top box 101 may send an HTTP request to the EPG server 102 to obtain a mosaic rate set of the selected plurality of channels, where a unit of a code rate in the mosaic rate set is kbps.
Wherein, the currently available bandwidth of the set-top box 101 can be obtained by the HTTP interface to the EPG server. The EPG server subtracts the currently used bandwidth from the total bandwidth ordered by the user to obtain the remaining available bandwidth, so that the available bandwidth can be returned to the set-top box 101 as the currently available bandwidth.
The performance coefficient of the set-top box 101 may be converted according to the device performance and the load condition. For example, the device performance may be converted according to the computing power of an available Central Processing Unit (CPU) and the available memory space, as shown in table 1 below, where table 1 is a conversion table of the performance coefficient of the set top box 101 provided in the embodiment of the present invention. The set-top box 101 is preset with the performance coefficient table shown in table 1, so that the set-top box 101 can directly query the current available CPU computing power and the available memory number to determine the performance coefficient. For example, when the available CPU for querying has a strong computing power (e.g., greater than 5000), and the available memory space is large (e.g., greater than 500M), the corresponding coefficient of performance may be 1; when the available CPU computing power of the query is moderate (e.g., greater than 3000 and less than 5000), and the available memory space is small (e.g., greater than 200M and less than 300M), the corresponding coefficient of performance may be 0.5.
In table 1, the coverage of each condition, that is, the calculation capability n and the performance coefficient n corresponding to the available memory space n, may be further expanded according to the empirical value, or the granularity between the available calculation capability, the available memory and the performance coefficient may be further subdivided. Optionally, table 1 may also include other parameter information, such as parameter information that can measure the current performance of the set-top box 101, which is not limited in the embodiment of the present invention.
TABLE 1
Figure BDA0001301200580000041
Figure BDA0001301200580000051
As an optional implementation manner, the selecting, by the set top box 101, code rates to be allocated for the channels from the mosaic rate set according to the available bandwidth and the performance coefficient includes: determining a target overall strategy grade of the mosaic channel scene according to the number and the size of the playing windows in the mosaic channel scene, wherein the target overall strategy grade comprises a window strategy grade of the playing windows; and selecting a code rate to be distributed for each channel from the mosaic code rate set of each channel according to the target overall strategy grade. Because the number of the playing windows is more, the number of the channels played simultaneously is more, and the occupied resources are more; the larger the playing window is, the larger the code rate is required when the playing is clear, and therefore, the set top box 101 selects the code rate to be allocated according to the number and the size of the playing window, so that the mosaic channel can be played while the definition of the picture is ensured as much as possible.
The mosaic code rate set of each channel may include a plurality of code rates corresponding to the channels in a mosaic channel scene, and the plurality of code rates are not commonly used when the channels are played in the whole picture.
The video playing can also set various window strategy grades for playing windows of various sizes respectively, and code rate ranges corresponding to different window strategy grades of playing windows of the same size are different; and determining various overall strategy levels of the mosaic scene according to the various code rate strategy levels corresponding to the playing windows of various sizes. Therefore, the embodiment enables the window strategy levels to correspond to the sizes of the playing windows, that is, the playing effects of the same window strategy levels corresponding to the playing windows with different sizes do not differ too much.
For example, the window policy level may include a preferred bitrate policy, a suboptimal bitrate policy, a bitrate policy again, a function realizable bitrate policy, and the like, and optionally, the window policy level may be further divided into multiple levels in more detail, but the overall trend is that the lower the level is, the smaller the corresponding bitrate is, and the minimum level is the function realizable bitrate policy. In addition, the code rates of the same window strategy level corresponding to the windows with different sizes may be different, for example, the code rates of the function realizable code rate strategies corresponding to the windows with different sizes may be different.
Table 2 shows a window policy class table provided in the embodiment of the present invention, and as shown in table 2 below, four window policy classes, such as a preferred bit rate policy, a suboptimal bit rate policy, a bitrate again policy, and a function-implementable bit rate policy, are configured for each size of play window. Under the same window strategy level, the larger the size of the playing window is, the larger the corresponding code rate is; the playing window with the same size has higher strategy grade and larger corresponding code rate, thereby ensuring the playing clearness and improving the playing clearness as much as possible.
TABLE 2
Figure BDA0001301200580000052
Figure BDA0001301200580000061
Optionally, in the foregoing embodiment, the determining, by the set top box 101 according to the number and size of the playing windows in the mosaic channel scene, the target overall policy level of the mosaic channel scene may be: calculating the sum of the selectable code rates of all channels of the mosaic scene under various overall strategy levels; determining a maximum sum value of the sum values that is less than a product between the available bandwidth and the coefficient of performance; and taking the overall strategy grade corresponding to the maximum sum value as a target overall strategy grade of the mosaic scene.
For example, the overall policy hierarchy may include an overall optimal policy, an overall suboptimal policy, an overall re-policy, an overall policy n, and a function implementable policy. The window strategy grade of each playing window in the overall optimal strategy can be an optimal code rate strategy; the window strategy grade of a part of playing windows in the whole suboptimal strategy can be a priority bit rate strategy, the window strategy grade of a part of playing windows can be a suboptimal bit rate strategy, the ratio of the window strategy grade to the suboptimal bit rate strategy can be various, so that various whole suboptimal strategies are formed, the ratio of the window strategy grade to the suboptimal bit rate strategy can also be a preset fixed value, and an integral suboptimal strategy is formed; the window strategy grade of each playing window in the overall strategy is a suboptimal bit rate strategy, and the overall strategy n can be the combination of the window strategy grades corresponding to the playing windows, so that n is an integer greater than or equal to 1; the window strategy grade of each playing window in the function realizable strategy is a function realizable code rate strategy.
Table 3 shows an overall policy level table according to an embodiment of the present invention, where the overall policy level table includes code rate selection policies when playing windows of various sizes are simultaneously presented, as shown in table 3. Each overall strategy grade is composed of window strategy grades of playing windows of all sizes, for example, the playing windows of all sizes in the overall optimal strategy correspond to the optimal code rate strategy; and in the whole suboptimal strategy, a large-size playing window in playing windows of all sizes corresponds to an optimal code rate strategy, a small-size playing window corresponds to a suboptimal code rate strategy and the like. As shown in table 3, the higher the rank in the overall strategy rank table is, the larger the sum of the corresponding selectable code rates is.
TABLE 3
Figure BDA0001301200580000062
Figure BDA0001301200580000071
Optionally, after determining the code rate to be allocated for each channel, the set top box 101 may request a file of the code rate to be allocated for each channel from the media server, and further play the content of each channel in the mosaic channel.
Optionally, in the video playing system shown in fig. 1, after the set-top box 101 traverses all the overall policy level tables or the window policy level table of each playing window, it is still impossible to make the sum of the code rates selected by each playing window less than or equal to the product between the available bandwidth and the performance coefficient, that is, it is impossible to satisfy the requirement that the code rate of each playing window [ (] the available bandwidth [ (] the performance coefficient of each playing window [ ], the set-top box 101 may output a prompt message that the mosaic channel cannot be viewed, or the set-top box 101 outputs a prompt message that the playing of the mosaic channel cannot be realized by the current bandwidth and/or the current device performance.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a video playing method according to an embodiment of the present invention, and as shown in fig. 2, the video playing method may include the following steps:
s201, a terminal can acquire a mosaic rate set of each channel according to each channel in a mosaic channel scene;
s202, the terminal determines the current available bandwidth and the performance coefficient of the set-top box;
and S203, the terminal selects code rates to be allocated for the channels from the mosaic code rate set of the channels according to the available bandwidth and the performance coefficient.
The mosaic code rate set may include a plurality of code rates selectable by the channel, that is, each channel has a corresponding mosaic code rate set; the mosaic channel scene refers to a scene that simultaneously includes at least two playing windows of channels on the same display screen, and may also be referred to as a service scene of a mosaic channel or a mosaic channel. In the mosaic channel scene, a user can select a plurality of live channels to be played on the same television picture at the same time by using the electronic program guide EPG, and can also change the page layout modes of the channels by himself.
The performance coefficient can be obtained by converting according to the computing power, the available memory space and the load condition of the equipment.
Therefore, the embodiment can respectively select the appropriate code rate for each channel by combining the current available bandwidth and the performance coefficient of the set top box, and improve the playing success rate of the mosaic channel.
Optionally, in the video playing method, the sum of the code rates to be allocated selected for each channel is not greater than the product of the available bandwidth and the performance coefficient, so that simultaneous playing of multiple pictures can be ensured, and a stuck phenomenon does not occur.
Optionally, selecting, from the mosaic rate set, a code rate to be allocated for each channel according to the available bandwidth and the performance coefficient, includes: determining a target overall strategy grade of the mosaic channel scene according to the number and the size of the playing windows in the mosaic channel scene, wherein the target overall strategy grade comprises a window strategy grade of the playing windows; and selecting a code rate to be distributed for each channel from the mosaic code rate set of each channel according to the target overall strategy grade.
The video playing can also set various window strategy grades for playing windows of various sizes respectively, and code rate ranges corresponding to different window strategy grades of playing windows of the same size are different; and determining various overall strategy levels of the mosaic scene according to the various code rate strategy levels corresponding to the playing windows of various sizes.
For example, the window policy level may include a preferred bitrate policy, a suboptimal bitrate policy, a bitrate policy again, a function realizable bitrate policy, and the like, and optionally, the window policy level may be further divided into multiple levels in more detail, but the overall trend is that the lower the level is, the smaller the corresponding bitrate is, and the minimum level is the function realizable bitrate policy. In addition, the code rates of the same window strategy level corresponding to the windows with different sizes may be different, for example, the code rates of the function realizable code rate strategies corresponding to the windows with different sizes may be different.
Optionally, determining the target overall policy level of the mosaic channel scene according to the number and size of the playing windows in the mosaic channel scene may be: calculating the sum of the selectable code rates of all channels of the mosaic scene under various overall strategy levels; determining a maximum sum value of the sum values that is less than a product between the available bandwidth and the coefficient of performance; and taking the overall strategy grade corresponding to the maximum sum value as a target overall strategy grade of the mosaic scene.
For example, the overall policy hierarchy may include an overall optimal policy, an overall suboptimal policy, an overall re-policy, an overall policy n, and a function implementable policy. The window strategy grade of each playing window in the overall optimal strategy can be an optimal code rate strategy; the window strategy grade of a part of playing windows in the whole suboptimal strategy can be a priority bit rate strategy, the window strategy grade of a part of playing windows can be a suboptimal bit rate strategy, the ratio of the window strategy grade to the suboptimal bit rate strategy can be various, so that various whole suboptimal strategies are formed, the ratio of the window strategy grade to the suboptimal bit rate strategy can also be a preset fixed value, and an integral suboptimal strategy is formed; the window strategy grade of each playing window in the overall strategy is a suboptimal bit rate strategy, and the overall strategy n can be the combination of the window strategy grades corresponding to the playing windows, so that n is an integer greater than or equal to 1; the window strategy grade of each playing window in the function realizable strategy is a function realizable code rate strategy.
Optionally, after determining the code rate to be allocated for each channel, a file of the code rate to be allocated for each channel may be requested from the media server.
It can be seen that, in the video playing method shown in fig. 2, a user may select multiple channels to enter a mosaic channel scene, and the terminal obtains the code rate of the multiple channels selected by the user from the EPG server, and obtains the current available bandwidth and performance coefficient at the same time, and selects the code rate matched with the size of the playing window for the multiple channels, so that the normal playing of the mosaic channel is ensured to the maximum extent under the condition of limited bandwidth.
Referring to fig. 3, fig. 3 is a schematic flow chart of another video playing method according to an embodiment of the present invention, and as shown in fig. 3, the video playing method may include the following steps:
s301, selecting a plurality of channels in a service scene of a mosaic channel by a user, and watching the scene of the mosaic channel;
in the embodiment of the present invention, the user may be a user device, such as a remote controller, a mobile phone, and other portable devices, which can perform an input operation on the terminal, for example, select a plurality of channels, and therefore, the user may be a user device capable of selecting a plurality of channels in a broad sense, or a user, i.e., a person, in a narrow sense may select a plurality of channels through the user device.
S302, aiming at each channel in a mosaic channel scene, the terminal acquires a mosaic code rate set of each channel;
the mosaic rate set includes all mosaic rate information or optional rate information of the channels.
S303, the terminal inquires the current available bandwidth of the user from the EPG server;
s304, the terminal acquires the current equipment performance and the conforming condition and converts the current performance coefficient;
s305, the terminal selects code rates to be allocated for the channels from the mosaic code rate set of the channels according to the size of the playing window of each channel in the mosaic channel scene, the number of the playing windows, the current available bandwidth and the performance coefficient;
s306, the terminal requests files of code rates to be allocated of channels 1 to n in each channel from the media server;
s307, the terminal plays the files of the code rates of the channels 1 to n.
The implementation of step S305 may refer to the relevant contents of the above embodiments, and will not be described in detail here.
In the embodiment of the invention, the terminal can ensure that the service scene of the mosaic channel selected by the user can be normally played to the maximum extent under the condition of limited bandwidth through the steps, and meanwhile, the terminal considers the performance coefficient of the terminal when selecting the code rate for each channel in the mosaic channel, namely the performance limit, so that the service scene of the mosaic channel can be further ensured to be normally played to the maximum extent.
Therefore, in the video playing method, the media server also needs to configure a plurality of selectable code rates for each channel, so that the terminal can select a proper code rate from the plurality of code rates returned by the EPG server and select a file corresponding to the code rate from the media server.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present invention, and as shown in fig. 4, the video playing apparatus may include the following units:
an obtaining unit 401, configured to obtain, for each channel in a mosaic channel scene, a mosaic rate set of each channel, where the mosaic rate set includes multiple selectable code rates of the channel, and the mosaic channel scene is a scene that includes at least two playing windows of the channel on a same display screen at the same time;
a determining unit 402, configured to determine a current available bandwidth and a performance coefficient of the set-top box;
a selecting unit 403, configured to select, according to the available bandwidth and the performance coefficient, a code rate to be allocated for each channel from the mosaic code rate set of each channel.
And the sum of the code rates to be distributed of each channel in the mosaic channel is not more than the product of the available bandwidth and the performance coefficient.
In the video playback apparatus shown in fig. 4, the selection unit 403 may include:
a determining subunit, configured to determine, according to the number and size of the playing windows in the mosaic channel scene, a target overall policy level of the mosaic channel scene, where the target overall policy level includes a window policy level of the playing window;
and the selecting subunit is used for selecting the code rate to be allocated for each channel from the mosaic code rate set of each channel according to the target overall strategy grade.
The determining subunit is configured to calculate a sum of selectable code rates of the channels in the mosaic scene under multiple overall policy levels; and determining a maximum sum value of the sum values that is less than the product between the available bandwidth and the coefficient of performance; and taking the overall strategy grade corresponding to the maximum sum value as a target overall strategy grade of the mosaic scene.
In addition, the video playing device according to the embodiment of the present invention may further include:
the setting unit is used for respectively setting a plurality of window strategy grades for the playing windows with various sizes, and the code rate ranges corresponding to different window strategy grades of the playing window with the same size are different;
and the determining unit is used for determining various overall strategy levels of the mosaic scene according to the various code rate strategy levels corresponding to the playing windows with various sizes.
Optionally, the video playing apparatus according to the embodiment of the present invention may further include a request unit, configured to request, from a media server, the file of the code rate to be allocated for each channel.
Optionally, the video playing apparatus according to the embodiment of the present invention may further include a playing unit, configured to play the file of the code rate to be allocated for each channel requested by the requesting unit.
According to the foregoing method and apparatus, fig. 5 is a schematic structural diagram of a device provided in the embodiment of the present application, and as shown in fig. 5, the device may be a terminal device, or may be a chip or a circuit, for example, a chip or a circuit that may be disposed in the terminal device. The terminal device may correspond to the terminal in the above method.
The device may include a processor 501 and a memory 502. The memory 502 is used for storing instructions, and the processor 501 is used for executing the instructions stored in the memory 502 to implement the steps in the video playing method corresponding to fig. 1 to 3.
Further, the apparatus may also include an input port 503 and an output port 504. Further, the apparatus may further comprise a bus system 505, wherein the processor 501, the memory 502, the input 503 and the output 504 may be connected via the bus system 505.
The processor 501 is configured to execute the instructions stored in the memory 502 to control the input port 503 to receive signals and control the output port 504 to send signals, thereby completing the steps of the terminal device in the above-mentioned method. Wherein the input port 503 and the output port 504 may be the same or different physical entities. When the same physical entity, may be collectively referred to as a transceiver. The memory 220 may be integrated in the processor 210 or may be provided separately from the processor 210.
As an implementation manner, the functions of the input port 503 and the output port 504 may be realized by a transceiver circuit or a dedicated chip for transceiving. The processor 501 may be considered to be implemented by a dedicated processing chip, processing circuit, processor, or a general-purpose chip.
As another implementation manner, a manner of using a general-purpose computer to implement the terminal device provided in the embodiment of the present application may be considered. Program code that implements the functions of processor 501, input 503 and output 504 are stored in memory, and a general purpose processor implements the functions of processor 501, input 503 and output 504 by executing the code in memory.
For the concepts, explanations, details and other steps related to the technical solutions provided in the embodiments of the present application related to the apparatus, please refer to the descriptions of the foregoing methods or other embodiments, which are not repeated herein.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of the processes should be determined by their functions and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps (step) described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A video playback method, comprising:
aiming at each channel in a mosaic channel scene, acquiring a mosaic code rate set of each channel, wherein the mosaic code rate set comprises a plurality of code rates which can be selected by the channel, and the mosaic channel scene is a scene which simultaneously comprises at least two playing windows of the channel on the same display screen;
determining the current available bandwidth and the performance coefficient of the set-top box;
selecting code rates to be distributed for the channels from the mosaic code rate set of the channels according to the available bandwidth and the performance coefficient;
and the sum of the code rates to be distributed of each channel is not more than the product of the available bandwidth and the performance coefficient.
2. The method of claim 1, wherein selecting a code rate to be allocated for each channel from the set of mosaic code rates according to the available bandwidth and the performance coefficient comprises:
determining a target overall strategy grade of the mosaic channel scene according to the number and the size of the playing windows in the mosaic channel scene, wherein the target overall strategy grade comprises a window strategy grade of the playing windows;
and selecting a code rate to be distributed for each channel from the mosaic code rate set of each channel according to the target overall strategy grade.
3. The method according to claim 2, wherein said determining the target overall policy level for the mosaic channel scene according to the number and size of the playing windows in the mosaic channel scene comprises:
calculating the sum of selectable code rates of all channels of the mosaic channel scene under various overall strategy levels;
determining a maximum sum value of the sum values that is less than a product between the available bandwidth and the coefficient of performance; and taking the overall strategy grade corresponding to the maximum sum value as a target overall strategy grade of the mosaic channel scene.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
setting a plurality of window strategy grades for the playing windows with various sizes respectively, wherein code rate ranges corresponding to different window strategy grades of the playing window with the same size are different;
and determining various overall strategy levels of the mosaic channel scene according to various code rate strategy levels corresponding to the playing windows of various sizes.
5. The method according to any one of claims 1 to 3, further comprising:
and requesting the file of the code rate to be distributed of each channel from a media server.
6. A video playback apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring a mosaic code rate set of each channel aiming at each channel in a mosaic channel scene, the mosaic code rate set comprises a plurality of code rates which can be selected by the channel, and the mosaic channel scene refers to a scene which simultaneously comprises play windows of at least two channels on the same display screen;
the determining unit is used for determining the current available bandwidth and the performance coefficient of the set-top box;
a selecting unit, configured to select, according to the available bandwidth and the performance coefficient, a code rate to be allocated for each channel from a mosaic code rate set of each channel;
and the sum of the code rates to be distributed of each channel is not more than the product of the available bandwidth and the performance coefficient.
7. The apparatus of claim 6, wherein the selection unit comprises:
a determining subunit, configured to determine, according to the number and size of the playing windows in the mosaic channel scene, a target overall policy level of the mosaic channel scene, where the target overall policy level includes a window policy level of the playing window;
and the selecting subunit is used for selecting the code rate to be allocated for each channel from the mosaic code rate set of each channel according to the target overall strategy grade.
8. The apparatus according to claim 7, wherein the determining subunit is configured to calculate a sum of selectable code rates of the channels for the mosaic channel scene at a plurality of overall policy levels; and determining a maximum sum value of the sum values that is less than the product between the available bandwidth and the coefficient of performance; and taking the overall strategy grade corresponding to the maximum sum value as a target overall strategy grade of the mosaic channel scene.
9. The apparatus of claim 7 or 8, further comprising:
the setting unit is used for respectively setting a plurality of window strategy grades for the playing windows with various sizes, and the code rate ranges corresponding to different window strategy grades of the playing window with the same size are different;
and the determining unit is used for determining various overall strategy levels of the mosaic channel scene according to various code rate strategy levels corresponding to the playing windows of various sizes.
10. The apparatus of any one of claims 6 to 8, further comprising:
a request unit, configured to request, from a media server, the file of the code rate to be allocated for each channel.
CN201710364429.2A 2017-05-22 2017-05-22 Video playing method and device Active CN107105317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710364429.2A CN107105317B (en) 2017-05-22 2017-05-22 Video playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710364429.2A CN107105317B (en) 2017-05-22 2017-05-22 Video playing method and device

Publications (2)

Publication Number Publication Date
CN107105317A CN107105317A (en) 2017-08-29
CN107105317B true CN107105317B (en) 2020-10-23

Family

ID=59669932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710364429.2A Active CN107105317B (en) 2017-05-22 2017-05-22 Video playing method and device

Country Status (1)

Country Link
CN (1) CN107105317B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020317B (en) * 2017-12-25 2021-12-14 北京京东尚科信息技术有限公司 Webpage container bottom supporting file determining method, device, equipment and readable storage medium
CN109195010B (en) * 2018-08-15 2021-08-06 咪咕视讯科技有限公司 Code rate adjusting method and device
CN113891155B (en) * 2021-09-29 2024-04-05 百果园技术(新加坡)有限公司 Video playing gear determining method, video playing method and related devices

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828158A (en) * 2016-03-22 2016-08-03 乐视网信息技术(北京)股份有限公司 Multi-window video playing-based playing quality adjusting method and device
CN106210781A (en) * 2016-08-04 2016-12-07 乐视控股(北京)有限公司 A kind of multichannel control method for playing back and system
CN106572355A (en) * 2016-11-02 2017-04-19 乐视控股(北京)有限公司 Multi-channel video live streaming method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040151394A1 (en) * 2003-01-31 2004-08-05 Mikael Soderberg Symmetrical, highly deterministic, low complexity, temporal transform video codec and vehicle distribution system incorporating same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828158A (en) * 2016-03-22 2016-08-03 乐视网信息技术(北京)股份有限公司 Multi-window video playing-based playing quality adjusting method and device
CN106210781A (en) * 2016-08-04 2016-12-07 乐视控股(北京)有限公司 A kind of multichannel control method for playing back and system
CN106572355A (en) * 2016-11-02 2017-04-19 乐视控股(北京)有限公司 Multi-channel video live streaming method and system

Also Published As

Publication number Publication date
CN107105317A (en) 2017-08-29

Similar Documents

Publication Publication Date Title
US11888914B2 (en) Multiple flinging devices in a media fling system
US10880408B2 (en) Streaming policy management system and method
US8782716B2 (en) Systems and methods for rendering user interface objects in accordance with a variable scaling factor
US20110214061A1 (en) User Interface for Managing Client Devices
US20080205389A1 (en) Selection of transrate and transcode processes by host computer
US9338494B2 (en) Method and apparatus for providing recommended content playback on a display device
CN102802054B (en) Control method during a kind of multi-stream video is live and device
CN107105317B (en) Video playing method and device
CN110557672B (en) Television program sharing method, television and storage medium
CN111031389B (en) Video processing method, electronic device and storage medium
US9912984B2 (en) Devices and methods for obtaining media stream with adaptive resolutions
US9800933B1 (en) Electronic program guide features including IP video with available HD in the clear channels
US10134072B2 (en) Management of an electronic content catalog based on bandwidth or connected display capabilities
US20210099740A1 (en) Method and apparatus for maintaining bandwidth for electronic content display system
CN107771387B (en) System and method for setting time and date in a device
KR101314939B1 (en) Method for provisioning a multimedia service
US20220167027A1 (en) Media Content Enhancement Based on Content Importance
KR20110107486A (en) Method and system for providing contents service using multiple devices
US11190835B2 (en) Intelligent unload of broadcaster application on channel change
KR102633594B1 (en) Display apparatus, method for controlling display apparatus and recording media thereof
US20200401417A1 (en) Optimized User Interface Delivery
US20140089973A1 (en) Network service system and method for providing network service thereof
US20210099741A1 (en) Method and apparatus for maintaining bandwidth for electronic content display system
US20120117483A1 (en) System and method for distributing and managing media content on multiple devices
CN111314765A (en) Method for processing video data information by IPTV set-top box

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200212

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 210012 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Applicant before: Huawei Technologies Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant