CN109618219B - Method, device, equipment and storage medium for quickly changing channel of network television - Google Patents

Method, device, equipment and storage medium for quickly changing channel of network television Download PDF

Info

Publication number
CN109618219B
CN109618219B CN201811627031.4A CN201811627031A CN109618219B CN 109618219 B CN109618219 B CN 109618219B CN 201811627031 A CN201811627031 A CN 201811627031A CN 109618219 B CN109618219 B CN 109618219B
Authority
CN
China
Prior art keywords
channel
mixed
file
current channel
current
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
CN201811627031.4A
Other languages
Chinese (zh)
Other versions
CN109618219A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Jiangsu Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Jiangsu 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 China Mobile Communications Group Co Ltd, China Mobile Group Jiangsu Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811627031.4A priority Critical patent/CN109618219B/en
Publication of CN109618219A publication Critical patent/CN109618219A/en
Application granted granted Critical
Publication of CN109618219B publication Critical patent/CN109618219B/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/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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • H04N21/4383Accessing a communication channel
    • H04N21/4384Accessing a communication channel involving operations to reduce the access time, e.g. fast-tuning for reducing channel switching latency
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

The invention discloses a method, a device, equipment and a storage medium for quickly changing a channel of a network television, wherein the method for quickly changing the channel comprises the following steps: determining that the network television is switched from a current channel to a next channel; judging whether the next channel is a cache hit channel of the current channel, wherein partial TS fragments of the cache hit channel are stored in a mixed cache of the current channel; and if the next channel is the cache hit channel of the current channel, updating the TS fragment serial number of the next channel into the mixed M3U8 file of the current channel, and continuously playing the next channel according to the cached TS fragment of the next channel. By adopting the technical scheme of the embodiment of the invention, the current channel is not closed but continuously played when the channel is switched, so that the time delay between closing and restarting is eliminated, and the watching experience of a user is improved.

Description

Method, device, equipment and storage medium for quickly changing channel of network television
Technical Field
The present invention relates to the field of video technologies, and in particular, to a method, an apparatus, a device, and a storage medium for fast channel change of a network television.
Background
Currently, the internet television channel adopts HLS (http Live streaming) protocol, which includes: the method comprises the steps that TS fragments of direct broadcast stream data are cut and distributed through an M3U8 file, the set top box obtains the latest fragments and starts playing, in order to resist network jitter, the set top box caches a certain number of fragments and then starts playing, and the slicing operation and the caching operation can cause large delay of an internet television channel.
In the prior art, when a network television switches channels (changes channels), a channel being played needs to be closed, a new channel is played again, a delay exists between closing and playing again, and the delay of the video network condition can reach 1 to 5 seconds or longer, so that the user viewing experience is poor.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for quickly changing channels of a network television, which can continuously play without closing a current channel when the channel is switched, and eliminate the time delay between closing and restarting the playing, thereby improving the watching experience of a user.
In a first aspect, an embodiment of the present invention provides a method for quickly changing a channel of an internet protocol television, including:
determining that the network television is switched from a current channel to a next channel;
judging whether the next channel is a cache hit channel of the current channel, wherein partial TS fragments of the cache hit channel are stored in a mixed cache of the current channel;
and if the next channel is the cache hit channel of the current channel, updating the TS fragment serial number of the next channel into the mixed M3U8 file of the current channel, and continuously playing the next channel according to the cached TS fragment of the next channel.
In a possible implementation manner of the first aspect, the current channel is an first broadcast channel, and the fast zapping method further includes: updating the TS file serial number in the M3U8 file of the current channel into an initial mixed M3U8 file to obtain a mixed M3U8 file of the current channel; storing the TS fragments of the current channel in an initial mixed cache according to the mixed M3U8 file of the current channel to obtain the mixed cache of the current channel; and when the number of the cached TS fragments of the current channel reaches a first preset number, starting to play the current channel.
In a possible implementation manner of the first aspect, the fast zapping method further includes: when the number of the cached TS fragments of the current channel reaches a second preset number, calculating the cache hit rate of other channels except the current channel in the network television, and taking the corresponding channel when the cache hit rate is greater than a preset threshold value as a cache hit channel, wherein the second preset number is greater than the first preset number; the cache hit rate is determined by one or more of the following parameters: the correlation coefficient of the affiliated channel and the current channel, the historical hit rate of the affiliated channel, the overall watching heat of the affiliated channel and the personal watching heat of the affiliated channel.
In one possible implementation of the first aspect, the cache hit rate is determined by the following formula:
HitRate[index]=Relevancy[index]×R_Adjust+HitHistory[index]×H_Adjust+
PlatformHeat[index]×Pl_Adjust+PreferHeat[index]×Pr_Adjust
the method comprises the steps of obtaining a broadcast channel, a Relevacy [ index ] and a Pyth [ index ] of the broadcast channel, wherein Relevacy [ index ] is a correlation coefficient of the broadcast channel and the broadcast channel, R _ Adjust is a regulating factor of Relevacy [ index ], HitHistory [ index ] is a history hit rate of the broadcast channel, H _ Adjust is a regulating factor of HitHistory [ index ], PlatformHeat [ index ] is a global viewing heat of the broadcast channel, Pl _ Adjust is a regulating factor of PlatformHeat [ index ], PreferHeat [ index ] is a personal viewing heat of the broadcast channel, and Pr _ Adjust is a regulating factor of Preferat [ index ].
In a possible implementation manner of the first aspect, the fast zapping method further includes: sequentially updating TS file serial numbers in M3U8 files of the first N cache hit channels into a mixed M3U8 file of the current channel according to the sequence of the cache hit rate from top to bottom, and storing a third preset number of TS fragments of each cache hit channel into a mixed cache of the current channel, wherein N is an integer greater than or equal to 1, and the third preset number is smaller than the first preset number.
In a possible implementation manner of the first aspect, the fast zapping method further includes: for each cache hit channel, judging whether the residual TS fragment number of the current channel is less than the first preset number or not when the cached TS fragment number of the cache hit channel reaches a third preset number; if the number of the residual TS fragments of the current channel is less than the first preset number, updating the TS file serial number in the new M3U8 file of the current channel into the mixed M3U8 file of the current channel to obtain a new mixed M3U8 file of the current channel; and storing the new TS fragments of the current channel in the hash cache of the current channel according to the new hash M3U8 file of the current channel so as to continue playing the current channel.
In one possible implementation of the first aspect, the zapping further comprises: if the next channel is not the cache hit channel, interrupting the playing of the first channel, and updating the M3U8 file of the next channel into the mixed M3U8 file of the current channel to obtain the mixed M3U8 file of the next channel; storing the TS fragments of the next channel in the mixed cache of the current channel according to the mixed M3U8 file of the next channel to obtain the mixed cache of the next channel; when the number of buffered TS slices of the next channel reaches a first predetermined number, playing the next channel is started.
In a second aspect, an embodiment of the present invention provides a fast channel switching apparatus for an internet protocol television, including:
the channel switching determining module is used for determining that the network television is switched from the current channel to the next channel;
the cache hit channel judging module is used for judging whether the next channel is the cache hit channel of the current channel or not, and partial TS fragments of the cache hit channel are stored in the mixed cache of the current channel;
and the updating and playing processing module is used for updating the TS fragment serial number of the next channel into the mixed M3U8 file of the current channel if the next channel is the cache hit channel of the current channel, and continuously playing the next channel according to the cached TS fragment of the next channel.
In a third aspect, an embodiment of the present invention provides a fast channel switching device for a network television, including a processor and a memory, where a preset program is stored in the memory, and the processor reads the program in the memory and executes the fast channel switching method for the network television according to the program.
In a fourth aspect, an embodiment of the present invention provides a storage medium, where a computer program is stored in the storage medium, and the computer program is used for being loaded by a processor and then executing the fast channel switching method for the network television according to the computer program.
In the embodiment of the present invention, when the network television channel is switched, it may be determined that the network television channel is switched from the current channel and the next channel after switching (i.e. a new channel), and then it is determined whether the next channel is a cache hit channel of the current channel, and if the next channel is the cache hit channel of the current channel, the TS fragmentation serial number of the next channel is updated into the hash M3U8 file of the current channel, and the next channel is continuously played according to the cached TS fragmentation of the next channel.
Compared with the prior art that a channel being played needs to be closed and a new channel needs to be restarted, the data structures of the mixed cache and the mixed M3U8 file are added, wherein partial TS fragments of a cache hit channel are stored in the mixed cache, and as long as the next channel is the cache hit channel and the serial number of the cached TS fragment of the next channel is recorded in the mixed M3U8 file, continuous playing of the next channel can be realized according to the cached TS fragment of the next channel and the pointing direction of the mixed M3U8 file, so that the current channel is not closed but continuously played during channel switching, the time delay between closing and restarting is eliminated, and the viewing experience of a user is improved
Drawings
The present invention may be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings, in which like or similar reference characters identify like or similar features.
Fig. 1 is a schematic flowchart of a fast channel switching method for a network television according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a fast channel switching method for a network television according to another embodiment of the present invention;
fig. 3 is a flowchart illustrating a fast channel switching method for a network television according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating a fast channel switching method for a network television according to still another embodiment of the present invention;
fig. 5 is a flowchart illustrating a fast channel switching method for a network television according to still another embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present invention.
The embodiment of the invention provides a method, a device, equipment and a storage medium for quickly changing channels of a network television, which are used in the field of network televisions and can continue to play without closing a current channel when a channel is switched, so that the time delay between closing and restarting is eliminated, and the watching experience of a user is improved.
Fig. 1 is a flowchart illustrating a fast channel switching method of a network television according to an embodiment of the present invention, as shown in fig. 1, the fast channel switching method includes steps 101 to 103.
In step 101, it is determined that the network television is switched from a current channel to a next channel.
In step 102, it is determined whether the next channel is a cache hit channel of the current channel, and a partial TS slice of the cache hit channel is stored in the hybrid cache of the current channel.
Compared with the existing cache data structure, the mixed cache uniformly numbers the TS fragments of different channels, and records the corresponding relation between the TS fragment number and a channel URL (Uniform Resource Locator).
In step 103, if the next channel is the cache hit channel of the current channel, the serial number of the TS fragment of the next channel is updated into the hash M3U8 file of the current channel, and the next channel is continuously played according to the cached TS fragment of the next channel.
The mixed M3U8 file is also a newly added data structure for storing the TS fragment serial number of the TS fragment to be played, and the set-top box player plays the TS fragment (actually stored in the mixed cache) pointed by the TS fragment serial number in the mixed M3U8 file.
In the embodiment of the present invention, when the network television channel is switched, it may be determined that the network television channel is switched from the current channel and the next channel after switching (i.e. a new channel), and then it is determined whether the next channel is a cache hit channel of the current channel, and if the next channel is the cache hit channel of the current channel, the TS fragmentation serial number of the next channel is updated into the hash M3U8 file of the current channel, and the next channel is continuously played according to the cached TS fragmentation of the next channel.
Compared with the prior art that a channel being played needs to be closed and a new channel needs to be restarted, the data structures of the mixed cache and the mixed M3U8 file are added, wherein partial TS fragments of a cache hit channel are stored in the mixed cache, and as long as the next channel is the cache hit channel and the serial number of the cached TS fragment of the next channel is recorded in the mixed M3U8 file, continuous playing of the next channel can be realized according to the cached TS fragment of the next channel and the pointing direction of the mixed M3U8 file, so that the current channel can not be closed but continuously played when the channel is switched, the time delay between closing and restarting is eliminated, and the viewing experience of a user is improved.
Otherwise, if the next channel is not the cache hit channel, the playing of the first channel is interrupted, and the M3U8 file of the next channel is updated into the mixed M3U8 file of the current channel, so as to obtain the mixed M3U8 file of the next channel; then, storing the TS fragments of the next channel in the mixed cache of the current channel according to the mixed M3U8 file of the next channel to obtain the mixed cache of the next channel; when the number of buffered TS slices of the next channel reaches a first predetermined number, playing the next channel is started.
Fig. 2 is a flowchart illustrating a fast channel changing method for an internet protocol television according to another embodiment of the present invention, and fig. 2 is different from fig. 1 in that, before step 101 in fig. 1, the fast channel changing method further includes steps 104 to 106 in fig. 2 for describing a playing method when a current channel is a first-broadcast channel.
In step 104, the TS file serial number in the M3U8 file of the current channel is updated into the initial hash M3U8 file, so as to obtain the hash M3U8 file of the current channel.
In step 105, according to the shuffle M3U8 file of the current channel, the TS segments of the current channel are stored in the initial shuffle cache, so as to obtain the shuffle cache of the current channel.
In step 106, when the number of buffered TS slices of the current channel reaches a first predetermined number, the current channel starts to be played.
That is, the first broadcast is started, the URL of the channel may be obtained, the network connection is established, the M3U8 file corresponding to the channel is obtained and the serial number of the TS file recorded therein is updated into the shuffle M3U8 file, the first predetermined number (for example, 3) of TS segments are buffered and stored in the shuffle buffer, and the broadcast is started.
Fig. 3 is a flowchart illustrating a fast zapping method for a network television according to another embodiment of the present invention, and fig. 3 is a flowchart illustrating a difference from fig. 2 in that, after step 106 in fig. 2, the fast zapping method further includes step 107 in fig. 3, which is used to describe a determination timing and a method for a cache hit channel.
In step 107, when the number of the cached TS segments of the current channel reaches a second predetermined number, the cache hit rate of each channel other than the current channel in the network television is calculated, and the corresponding channel when the cache hit rate is greater than a predetermined threshold is taken as the cache hit channel.
And when the number of the cached TS fragments of the current channel reaches 10, the number of the cached TS fragments of the channel can meet the requirement of smooth playing of the video.
Wherein the cache hit rate is determined by one or more of the following parameters: the correlation coefficient of the affiliated channel and the current channel, the historical hit rate of the affiliated channel, the overall watching heat of the affiliated channel and the personal watching heat of the affiliated channel.
Specifically, the cache hit rate HitRATE [ index ] may be expressed as:
HitRate[index]=Relevancy[index]×R_Adjust+HitHistory[index]×H_Adjust+
PlatformHeat[index]×Pl_Adjust+PreferHeat[index]×Pr_Adjust
(1)
the Relevacy [ index ] is a correlation coefficient of a channel and a channel being played, the value of the correlation coefficient is any number between 0 and 1, specifically, the correlation coefficient may include a sequential correlation coefficient and/or a content correlation coefficient, and weight distribution may be performed on the sequential correlation coefficient and the content correlation coefficient according to needs when the sequential correlation coefficient and the content correlation coefficient are simultaneously performed, R _ Adjust is an adjustment factor of the Relevacy [ index ], and the Relevacy [ index ] may be obtained by reducing or amplifying the Relevacy [ index ] according to service needs.
HitHistory [ index ] is the historical hit rate of the channel, the value of the HitHistory [ index ] is any number between 0 and 1, H _ Adjust is the adjustment factor of the HitHistory [ index ], and the HitHistory [ index ] can be obtained by reducing or amplifying according to the service requirement.
platformHeat [ index ] is the whole network watching heat of the channel, the value of the whole network watching heat is any number between 0 and 1, Pl _ Adjust is the adjusting factor of the platformHeat [ index ], and the platformHeat [ index ] can be obtained by reducing or enlarging the platformHeat [ index ] according to the service requirement.
The PreferHeat index is the personal watching heat of the channel, and Pr _ Adjust is the adjusting factor of the PreferHeat index, which can be obtained by reducing or enlarging the PreferHeat index according to the business requirement.
Statistics shows that when four adjusting factors of R _ Adjust, H _ Adjust, Pl _ Adjust and Pr _ Adjust are respectively set to be 0.38, 0.17, 0.23 and 0.22, the average delay of channel change counted by the embedded probe of the set top box is the shortest. Wherein the optimum adjustment factors of the towns are 0.43, 0.24, 0.18 and 0.15; the urban optimum regulating factors are 0.36, 0.18, 0.19 and 0.27.
Fig. 4 is a flowchart illustrating a fast zapping method for a network television according to still another embodiment of the present invention, and fig. 4 is a flowchart illustrating a difference from fig. 3 in that, after step 107 in fig. 3, the fast zapping method further includes step 108 in fig. 4, which is used to describe a sorting updating method for a plurality of cache hit channels.
In step 108, sequentially updating the TS file sequence numbers in the M3U8 files of the first N cache hit channels into the hash M3U8 file of the current channel in the order from top to bottom of the cache hit rate, and for each cache hit channel, storing a third predetermined number of TS fragments of the cache hit channel into the hash cache of the current channel, where N is an integer greater than or equal to 1, and the third predetermined number is smaller than the first predetermined number.
That is, the M3U8 files corresponding to channels not currently being played may be obtained in the order from high to low according to the hit rate, the serial number of the new TS file is updated into the hash M3U8 file, and then the new TS fragments are cached according to the hash M3U8 file, and each channel only caches 1-2 fragments (configurable). In the process, the cache probability of the target channel needs to be ensured, and meanwhile, 1-2 fragments which only cache the multi-target channel are set and recoded, so that the reasonable utilization of the whole platform resource is ensured.
And for each cache hit channel, judging whether the residual TS fragment number of the current channel is less than the first preset number or not when the cached TS fragment number of the cache hit channel reaches a third preset number. If the number of the remaining TS fragments of the current channel is less than the first preset number, updating the TS file serial number in the new M3U8 file of the current channel into the mixed M3U8 file of the current channel to obtain a new mixed M3U8 file of the current channel, and storing the new TS fragments of the current channel in the mixed cache of the current channel according to the new mixed M3U8 file of the current channel so as to continue playing the current channel.
That is to say, after finishing caching one channel, checking whether the number of TS segments of the currently playing channel is less than 10, if so, continuing to acquire the M3U8 file corresponding to the current channel and updating the serial number of the new TS file into the shuffle M3U8 file, and caching the new TS segments according to the shuffle M3U8 file until the number of cached TS segments of the current channel reaches 10 (configurable).
For the understanding of those skilled in the art, the specific operation flow of the fast channel switching method in the embodiment of the present invention is described by the following steps:
the method comprises the following steps:
the method comprises the steps of starting playing for the first time, acquiring a channel URL, establishing network connection, acquiring an M3U8 file corresponding to the channel, updating a TS file serial number recorded in the file into a mixed M3U8 file, buffering 3 fragments, storing the fragments in a mixed cache, and starting playing.
Step two:
and calculating the hit rate of each channel and determining the sequence of the pre-cached channels.
Step three:
and continuously acquiring the M3U8 file corresponding to the current channel, updating the serial number of the new TS file into the mixed M3U8 file, and caching the new TS fragment according to the mixed M3U8 file. When the number of the cached current channel TS fragments reaches 10 (configurable), entering the step four, otherwise, repeating the step three;
step four:
and acquiring M3U8 files corresponding to channels which are not currently played from high to low according to the hit rate, updating the serial number of the new TS file into the mixed M3U8 file, and caching the new TS fragment according to the mixed M3U8 file. Each channel buffers only 1-2 slices (configurable). And after finishing caching one channel, checking whether the number of TS fragments of the current playing channel is less than 10, if so, repeating the step three, otherwise, repeating the step four.
Step five:
when the channel is switched, if the TS fragment of the switching target channel is cached in the mixed editing cache, the serial number of the corresponding TS fragment is updated into the mixed editing M3U8 file, the playing is not interrupted, the playing is continued, and the step two (updating the hit rate of each channel) is repeated.
Step six:
and if the TS fragments of the switching target channel are not cached, the playing is interrupted, the TS fragments of the switching target channel are cached, and the step two (updating the hit rate of each channel) is repeated.
As described above, in the embodiment of the present invention, the purpose of continuous playing can be achieved by utilizing the current cache configuration to the maximum extent under the cache mechanism for the mixed cache and the mixed M3U8 file. The utilization rate of a cache space can be effectively improved by caching only 1-2 slices in each channel, the original video playing mode is changed, the requirement of uninterrupted video playing is met by using the mixed M3U8 file and the working mechanism of the mixed cache, in addition, the cache prediction is realized by considering the comprehensive weight of a plurality of factors, and the success rate of the application of the whole scheme is guaranteed.
Fig. 5 is a schematic structural diagram of a fast channel switching apparatus of a network television according to an embodiment of the present invention, and as shown in fig. 5, the fast channel switching apparatus includes: a channel switch determining module 501, a cache hit channel determining module 502, and an update and play processing module 503.
The channel switching determining module 501 is configured to determine that the network television is switched from a current channel to a next channel.
The cache hit channel determining module 502 is configured to determine whether the next channel is a cache hit channel of the current channel, where a part of TS segments of the cache hit channel are stored in the mixed cache of the current channel;
the update and play processing module 503 is configured to update the serial number of the TS fragment of the next channel into the hash M3U8 file of the current channel if the next channel is the cache hit channel of the current channel, and continuously play the next channel according to the cached TS fragment of the next channel.
The embodiment of the invention also provides a device for quickly changing the channel of the network television, which comprises a processor and a memory, wherein the memory stores a preset program, the processor reads the program in the memory, and the method for quickly changing the channel of the network television is executed according to the program.
The embodiment of the invention also provides a storage medium, wherein the storage medium stores a computer program, and the computer program is used for executing the rapid channel switching method of the network television according to the computer program after being loaded by the processor.
It should be clear that the embodiments in this specification are described in a progressive manner, and the same or similar parts in the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. For the device embodiments, reference may be made to the description of the method embodiments in the relevant part. Embodiments of the invention are not limited to the specific steps and structures described above and shown in the drawings. Those skilled in the art may make various changes, modifications and additions to, or change the order between the steps, after appreciating the spirit of the embodiments of the invention. Also, a detailed description of known process techniques is omitted herein for the sake of brevity.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of an embodiment of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
Embodiments of the present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. For example, the algorithms described in the specific embodiments may be modified without departing from the basic spirit of the embodiments of the present invention. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the embodiments of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

Claims (8)

1. A quick channel switching method for a network television is characterized by comprising the following steps:
determining that the network television is switched from a current channel to a next channel;
judging whether the next channel is a cache hit channel of the current channel, wherein partial TS fragments of the cache hit channel are stored in a mixed cache of the current channel, and the mixed cache is used for uniformly numbering the TS fragments of different channels and recording the corresponding relation between the TS fragment numbers and a channel Uniform Resource Locator (URL);
if the next channel is the cache hit channel of the current channel, updating the TS fragment serial number of the next channel into a mixed editing M3U8 file of the current channel, and continuously playing the next channel according to the cached TS fragments of the next channel, wherein the mixed editing M3U8 file is used for storing the TS fragment serial number of the TS fragments of the cache hit channel;
updating the TS file serial number in the M3U8 file of the current channel into an initial mixed M3U8 file to obtain a mixed M3U8 file of the current channel;
storing the TS fragments of the current channel in an initial mixed cache according to the mixed M3U8 file of the current channel to obtain the mixed cache of the current channel, wherein the TS fragments correspond to the serial numbers of the TS files one to one;
when the number of the cached TS fragments of the current channel reaches a first preset number, starting to play the current channel;
when the number of the cached TS fragments of the current channel reaches a second preset number, calculating the cache hit rate of other channels except the current channel in the network television, and taking the corresponding channel when the cache hit rate is greater than a preset threshold value as the cache hit channel, wherein the second preset number is greater than the first preset number;
the cache hit rate is determined by one or more of the following parameters: the correlation coefficient of the affiliated channel and the current channel, the historical hit rate of the affiliated channel, the whole network watching heat of the affiliated channel and the personal watching heat of the affiliated channel.
2. The method of claim 1, wherein the cache hit rate is determined by the following equation:
HitRate[index]=Relevancy[index]×R_Adjust+HitHistory[index]×H_Adjust+PlatformHeat[index]×Pl_Adjust+PreferHeat[index]×Pr_Adjust
the method comprises the steps of obtaining a broadcast channel, a Relevacy [ index ] and a Pyth [ index ] of the broadcast channel, wherein Relevacy [ index ] is a correlation coefficient of the broadcast channel and the broadcast channel, R _ Adjust is a regulating factor of Relevacy [ index ], HitHistory [ index ] is a history hit rate of the broadcast channel, H _ Adjust is a regulating factor of HitHistory [ index ], PlatformHeat [ index ] is a global viewing heat of the broadcast channel, Pl _ Adjust is a regulating factor of PlatformHeat [ index ], PreferHeat [ index ] is a personal viewing heat of the broadcast channel, and Pr _ Adjust is a regulating factor of Preferat [ index ].
3. The method of claim 1, further comprising:
and sequentially updating TS file serial numbers in M3U8 files of the first N cache hit channels into a mixed M3U8 file of the current channel according to the sequence of the cache hit rate from high to low, and storing a third preset number of TS fragments of the cache hit channels into a mixed cache of the current channel aiming at each cache hit channel, wherein N is an integer greater than or equal to 1, and the third preset number is smaller than the first preset number.
4. The method of claim 3, further comprising:
for each cache hit channel, after the number of cached TS fragments of the cache hit channel reaches the third preset number, judging whether the number of remaining TS fragments of the current channel is smaller than the first preset number;
if the number of the remaining TS fragments of the current channel is less than the first preset number, updating the TS file serial number in the new M3U8 file of the current channel into the mixed M3U8 file of the current channel to obtain a new mixed M3U8 file of the current channel;
and storing the new TS fragments of the current channel in the mixed cache of the current channel according to the new mixed M3U8 file of the current channel so as to continuously play the current channel.
5. The method of claim 1, further comprising:
if the next channel is not the cache hit channel, interrupting the playing of the current channel, and updating the M3U8 file of the next channel into the mixed M3U8 file of the current channel to obtain the mixed M3U8 file of the next channel;
storing the TS fragments of the next channel in the mixed cache of the current channel according to the mixed M3U8 file of the next channel to obtain the mixed cache of the next channel;
and when the number of the cached TS fragments of the next channel reaches a first preset number, starting to play the next channel.
6. A quick channel switching device of a network television is characterized by comprising:
the channel switching determining module is used for determining that the network television is switched from the current channel to the next channel;
a cache hit channel judgment module, configured to judge whether the next channel is a cache hit channel of the current channel, where a partial TS fragment of the cache hit channel is stored in a mixed cache of the current channel, and the mixed cache is used to uniformly number TS fragments of different channels and record a corresponding relationship between the TS fragment number and a channel uniform resource locator URL;
an update and play processing module, configured to update the TS fragmentation serial number of the next channel into a mixed editing M3U8 file of the current channel if the next channel is a cache hit channel of the current channel, and continuously play the next channel according to cached TS fragmentation of the next channel, where the mixed editing M3U8 file is used to store the TS fragmentation serial number of the TS fragmentation of the cache hit channel;
the determining whether the next channel is a cache hit channel of the current channel includes:
when the number of the cached TS fragments of the current channel reaches a first preset number, starting to play the current channel;
when the number of the cached TS fragments of the current channel reaches a second preset number, calculating the cache hit rate of other channels except the current channel in the network television, and taking the corresponding channel when the cache hit rate is greater than a preset threshold value as the cache hit channel, wherein the second preset number is greater than the first preset number;
the cache hit rate is determined by one or more of the following parameters: the correlation coefficient of the channel and the current channel, the historical hit rate of the channel, the whole network watching heat of the channel and the personal watching heat of the channel;
if the next channel is the cache hit channel of the current channel, updating the serial number of the TS segments of the next channel into the mixed M3U8 file of the current channel, and continuously playing the next channel according to the cached TS segments of the next channel, including:
updating the TS file serial number in the M3U8 file of the current channel into an initial mixed M3U8 file to obtain a mixed M3U8 file of the current channel;
and storing the TS fragments of the current channel in an initial mixed cache according to the mixed M3U8 file of the current channel to obtain the mixed cache of the current channel, wherein the TS fragments correspond to the serial numbers of the TS files one to one.
7. A fast channel switching device of a network television, characterized by comprising a processor and a memory, wherein a preset program is stored in the memory, the processor reads the program in the memory, and the fast channel switching method of the network television according to any one of claims 1 to 5 is executed according to the program.
8. A storage medium, wherein the storage medium stores a computer program, and the computer program is used for executing the fast channel changing method of the internet protocol television according to any one of claims 1 to 5 after being loaded by a processor.
CN201811627031.4A 2018-12-28 2018-12-28 Method, device, equipment and storage medium for quickly changing channel of network television Active CN109618219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811627031.4A CN109618219B (en) 2018-12-28 2018-12-28 Method, device, equipment and storage medium for quickly changing channel of network television

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811627031.4A CN109618219B (en) 2018-12-28 2018-12-28 Method, device, equipment and storage medium for quickly changing channel of network television

Publications (2)

Publication Number Publication Date
CN109618219A CN109618219A (en) 2019-04-12
CN109618219B true CN109618219B (en) 2021-11-23

Family

ID=66011896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811627031.4A Active CN109618219B (en) 2018-12-28 2018-12-28 Method, device, equipment and storage medium for quickly changing channel of network television

Country Status (1)

Country Link
CN (1) CN109618219B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011012546A1 (en) * 2009-07-30 2011-02-03 Alcatel Lucent A method of switching media content for a mobile apparatus
CN103546773A (en) * 2013-08-15 2014-01-29 Tcl集团股份有限公司 Television program recommendation method and system
CN103702202A (en) * 2013-12-13 2014-04-02 乐视致新电子科技(天津)有限公司 Method and device for realizing fast playing during channel switching
CN103763609A (en) * 2013-11-22 2014-04-30 乐视致新电子科技(天津)有限公司 HLS protocol-based channel switching method and apparatus
CN105635824A (en) * 2014-08-08 2016-06-01 Tcl美国研究所 Personalized channel recommendation method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1868367B1 (en) * 2006-06-06 2015-12-09 Alcatel Lucent Fast video channel change
CN100471260C (en) * 2006-06-28 2009-03-18 华中科技大学 Network organization method of overlapped multichannels in video on demand system of peer-to-peer network
CN102595236B (en) * 2012-01-31 2016-05-18 深圳创维数字技术股份有限公司 A kind of method of Set Top Box and changing channels of digital television thereof
CN103220587B (en) * 2013-03-22 2016-12-28 深圳市同洲电子股份有限公司 A kind of method and device obtaining time-shifted contents
CN105812847A (en) * 2014-12-31 2016-07-27 中国电信股份有限公司 HLS video live broadcast method, server and system
CN104768033B (en) * 2015-04-15 2017-09-19 广州市汉融软件有限公司 A kind of channels of network TV fast switch over method and system based on preloading
CN105933799A (en) * 2016-05-19 2016-09-07 成都虚拟世界科技有限公司 Method and device for playing video

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011012546A1 (en) * 2009-07-30 2011-02-03 Alcatel Lucent A method of switching media content for a mobile apparatus
CN103546773A (en) * 2013-08-15 2014-01-29 Tcl集团股份有限公司 Television program recommendation method and system
CN103763609A (en) * 2013-11-22 2014-04-30 乐视致新电子科技(天津)有限公司 HLS protocol-based channel switching method and apparatus
CN103702202A (en) * 2013-12-13 2014-04-02 乐视致新电子科技(天津)有限公司 Method and device for realizing fast playing during channel switching
CN105635824A (en) * 2014-08-08 2016-06-01 Tcl美国研究所 Personalized channel recommendation method and system

Also Published As

Publication number Publication date
CN109618219A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN111586480B (en) Low-delay streaming media
US9332051B2 (en) Media manifest file generation for adaptive streaming cost management
JP5320740B2 (en) Adaptive rate shifting apparatus, system and method for streaming content
US9402058B2 (en) Content delivery system, content delivery method and content delivery program
JP2020511811A (en) System and method for adaptive switching between multiple content delivery networks during adaptive bit rate streaming
CN110933517B (en) Code rate switching method, client and computer readable storage medium
CN106658226B (en) Playing method and device
CN110809167B (en) Video playing method and device, electronic equipment and storage medium
US11758203B2 (en) Adaptive bitrate video cache
CN110022498B (en) Method and device for realizing code rate switching
CN108833995B (en) Transmission method of self-adaptive streaming media in wireless network environment
CN105245562A (en) Method for operating a cache arranged along a transmission path between client terminals and at least one server, and corresponding cache
KR102314839B1 (en) System and method for predictive buffering and network shaping
CN109618219B (en) Method, device, equipment and storage medium for quickly changing channel of network television
CN106303563B (en) Streaming media online playing method and device, execution terminal and storage medium
CN112672227B (en) Service processing method, device, node and storage medium based on edge node
KR101966588B1 (en) Method and apparatus for receiving video contents
CN111835697B (en) Media stream sending method, device, equipment and system
EP4013060A1 (en) Multiple protocol prediction and in-session adaptation in video streaming
Riiser Adaptive bitrate video streaming over HTTP in mobile wireless networks
US11743540B2 (en) Method for playing on a player of a client device a content streamed in a network
EP3785425B1 (en) Crowdsourced prediction of cdn performance for zero buffer delivery of content
KR20220078244A (en) Method and edge server for managing cache file for content fragments caching
Othman et al. A user-experience driven ssim-aware adaptation approach for dash video streaming
Licciardello et al. Prepare your video for streaming with segue

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
GR01 Patent grant
GR01 Patent grant