CN107734362B - Video source determination method and device and computer readable storage medium - Google Patents

Video source determination method and device and computer readable storage medium Download PDF

Info

Publication number
CN107734362B
CN107734362B CN201710944512.7A CN201710944512A CN107734362B CN 107734362 B CN107734362 B CN 107734362B CN 201710944512 A CN201710944512 A CN 201710944512A CN 107734362 B CN107734362 B CN 107734362B
Authority
CN
China
Prior art keywords
video
video source
determining
playing
transmission quality
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
CN201710944512.7A
Other languages
Chinese (zh)
Other versions
CN107734362A (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.)
MIGU Video Technology Co Ltd
Original Assignee
MIGU Video Technology 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 MIGU Video Technology Co Ltd filed Critical MIGU Video Technology Co Ltd
Priority to CN201710944512.7A priority Critical patent/CN107734362B/en
Publication of CN107734362A publication Critical patent/CN107734362A/en
Application granted granted Critical
Publication of CN107734362B publication Critical patent/CN107734362B/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/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/2407Monitoring of transmitted content, e.g. distribution time, number of downloads
    • 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/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • 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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64784Data processing by the network
    • H04N21/64792Controlling the complexity of the content stream, e.g. by dropping packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server

Landscapes

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

Abstract

The invention discloses a method for determining a video source, which comprises the following steps: when a first video source of a currently played video is monitored to be in an abnormal state, recording the time length of the first video source in the abnormal state, and determining a first time length; judging whether the time length of the first video source in the abnormal state is greater than the first time length; when the duration of the abnormal state is longer than the first duration, determining a second video source based on a preset switching strategy; and playing the currently played video based on the second video source. The embodiment of the invention provides a video source determining device and a computer readable storage medium.

Description

Video source determination method and device and computer readable storage medium
Technical Field
The present invention relates to multimedia communication technologies, and in particular, to a method and an apparatus for determining a video source, and a computer-readable storage medium.
Background
At present, in the current streaming media service operation process, a general operator can access an internet television license plate party to provide live broadcast service for a user, and when the operator only accesses an internet television license plate party, if a problem occurs in a live broadcast source of the license plate party, the prior art cannot effectively process the situation, only the current live broadcast can be interrupted, and the watching experience and the watching quality of the user cannot be guaranteed.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide a method and an apparatus for determining a video source, and a computer-readable storage medium, which can switch to another video source that can continue to provide live video when the live video source is abnormal, so that a user can continue to watch the live content, thereby improving the watching quality and watching experience of the user.
To achieve the above object, an embodiment of the present invention provides a method for determining a video source, including:
when a first video source of a currently played video is monitored to be in an abnormal state, recording the time length of the first video source in the abnormal state, and determining a first time length;
judging whether the time length of the first video source in the abnormal state is greater than the first time length;
when the duration of the abnormal state is longer than the first duration, determining a second video source based on a preset switching strategy;
and playing the currently played video based on the second video source.
Wherein, the determining the first duration comprises:
determining the transmission quality of the first video source in a normal state according to the history record of the first video source;
and determining the first time length according to the determined transmission quality.
Wherein, the determining the transmission quality of the first video source in the normal state includes:
determining the video type of the currently played video;
and determining the transmission quality of the first video source in a normal state aiming at the determined video type according to the history record of the first video source.
Wherein the determining the second video source based on the preset switching policy includes:
determining all video sources in a normal state corresponding to a currently played video;
determining the transmission quality of all video sources according to the history records of all video sources;
and determining the video source with the highest transmission quality as a second video source.
Wherein, the method further comprises:
respectively determining the transmission quality of a first video source and a second video source when the second video source and the first video source are in a normal state according to the history records of the first video source and the second video source;
determining a second time length according to the difference value of the transmission quality of the second video source and the transmission quality of the first video source; wherein, the larger the difference of the transmission quality, the smaller the second time length;
monitoring the transmission quality of the first video source according to the second time length;
and if the transmission quality of the first video source is recovered to be normal in the second duration, playing the currently played video based on the first video source.
The transmission quality is determined based on transmission data, wherein the transmission data comprises at least one of packet loss rate, network delay data, video code rate, jitter and abnormal warning when a video source transmits a video item.
Wherein, the method further comprises:
recording the starting time of the first video source in an abnormal state;
the playing the currently played video based on the second video source comprises:
and playing the currently played video from the starting time based on the second video source.
Wherein, the playing the currently played video from the start time based on the second video source includes:
playing the currently played video from the start time at a first playing speed based on the second video source;
and if the playing time of the currently played video is consistent with the current time, playing the currently played video at a second playing speed, wherein the second playing speed is less than the first playing speed.
The embodiment of the invention provides a switching device of a video source, which comprises:
the first monitoring module is used for recording the time length of a first video source in an abnormal state when the first video source of a currently played video is monitored to be in the abnormal state, and determining the first time length;
the judging module is used for judging whether the time length of the first video source in the abnormal state is greater than the first time length;
the first determining module is used for determining a second video source based on a preset switching strategy when the duration of the abnormal state is longer than the first duration;
and the first playing module is used for playing the currently played video based on the second video source.
The first monitoring module is configured to determine, according to the history of the first video source, transmission quality of the first video source in a normal state;
and determining the first time length according to the determined transmission quality.
The first monitoring module is configured to determine a video type to which the currently played video belongs;
and determining the transmission quality of the first video source in a normal state aiming at the determined video type according to the history record of the first video source.
The first determining module is configured to determine all video sources in a normal state corresponding to a currently played video;
determining the transmission quality of all video sources according to the history records of all video sources;
and determining the video source with the highest transmission quality as a second video source.
Wherein, above-mentioned device still includes:
the second determining module is used for respectively determining the transmission quality of the second video source and the transmission quality of the first video source in a normal state according to the history records of the first video source and the second video source; determining a second time length according to the difference value of the transmission quality of the second video source and the transmission quality of the first video source; wherein, the larger the difference of the transmission quality, the smaller the second time length;
the second monitoring module is used for monitoring the transmission quality of the first video source according to the second time length;
and the second playing module is used for playing the currently played video based on the first video source if the transmission quality of the first video source is recovered to be normal within the second duration.
Wherein, above-mentioned device still includes:
the recording module is used for recording the starting time of the first video source in the abnormal state;
and the playing module is used for playing the currently played video from the starting time based on the second video source.
The first playing module is configured to play a currently played video from the start time at a first playing speed based on the second video source;
and if the playing time of the currently played video is consistent with the current time, playing the currently played video at a second playing speed, wherein the second playing speed is less than the first playing speed.
The embodiment of the invention provides a switching device of a video source, which comprises: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to execute, when running the computer program:
when a first video source of a currently played video is monitored to be in an abnormal state, recording the time length of the first video source in the abnormal state, and determining a first time length; judging whether the time length of the first video source in the abnormal state is greater than the first time length; when the duration of the abnormal state is longer than the first duration, determining a second video source based on a preset switching strategy; and playing the currently played video based on the second video source.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor and includes:
when a first video source of a currently played video is monitored to be in an abnormal state, recording the time length of the first video source in the abnormal state, and determining a first time length; judging whether the time length of the first video source in the abnormal state is greater than the first time length; when the duration of the abnormal state is longer than the first duration, determining a second video source based on a preset switching strategy; and playing the currently played video based on the second video source.
According to the method and the device for determining the video source and the computer-readable storage medium provided by the embodiment of the invention, when the first video source of the currently played video is monitored to be in an abnormal state, the time length of the first video source in the abnormal state is recorded, and the first time length is determined; judging whether the time length of the first video source in the abnormal state is greater than the first time length; when the duration of the abnormal state is longer than the first duration, determining a second video source based on a preset switching strategy; and playing the currently played video based on the second video source. So, when the video source of certain license plate side goes wrong, can switch over the video source that current video source corresponds to the license plate side that other do not go wrong, ensured user's watching experience and watching quality.
Drawings
FIG. 1 is a flowchart illustrating a method for determining a video source according to a first embodiment of the present invention;
fig. 2 is a schematic view of a flow chart of a license plate video source according to a first embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a video source determining apparatus according to a second embodiment of the present invention;
FIG. 4 is a flow chart illustrating a third embodiment of the present invention.
Detailed Description
In order to understand the features and technical contents of the embodiments of the present invention in more detail, the following describes the implementation of the embodiments of the present invention in detail.
Example one
Fig. 1 is a schematic flow chart of a method according to an embodiment of the present invention, and as shown in fig. 1, the method according to the embodiment of the present invention includes the following steps:
step 101: when a first video source of a currently played video is monitored to be in an abnormal state, recording the time length of the first video source in the abnormal state, and determining a first time length;
wherein the determining the first duration comprises:
determining the transmission quality of the first video source in a normal state according to the history record of the first video source;
determining the first time length according to the determined transmission quality;
wherein the determining the transmission quality of the first video source in the normal state includes:
determining the video type of the currently played video;
and determining the transmission quality of the first video source in a normal state aiming at the determined video type according to the history record of the first video source.
In practical applications, the video source may be a network attached storage device and a cache device of a license plate side providing video services, where the network attached storage device and the cache device store video data provided by the license plate side, as shown in fig. 2(a), the license plate side includes china, blackjack, future, mango, and the like; taking the chinese number as an example, as shown in fig. 2(b), the chinese number licence has the authority to record television programs, ball games, and the like within the authority range, and stores the recorded content in a Network Attached Storage (NAS) corresponding to the chinese number, and then the chinese number can send live data on the NAS to a Cache corresponding to the chinese number; when an operator introduces the internet television license plate, hua number, to provide live broadcast service, live broadcast data may be obtained from the hua number Cache, and the obtained live broadcast data is accessed to a server, and a terminal device of the operator may obtain video data from the server and provide video service for a user according to the obtained data, for example: television programs, live videos of sporting events, and the like.
Step 102: and judging whether the time length of the first video source in the abnormal state is greater than the first time length.
In practical applications, the first duration may be a time or a number of times of tolerance to an anomaly, which is determined according to a history of video transmission of each video source, for example: if the transmission quality of the video transmitted by the first video source is determined to be far greater than the video transmission quality of other video sources according to the history record, the time or times of tolerating the first video to be abnormal can be longer, and in the same way, the first duration corresponding to each video source, namely the time or times of tolerating the abnormal is determined according to the transmission quality of each video source;
in the embodiment of the present invention, the first duration may be determined according to the transmission quality of the video source by a relevant person, or a corresponding relationship between the live broadcast quality of the video source and the first duration may be preset, and the server may determine the length or the number of times of the first duration according to the live broadcast quality of the video source according to the preset corresponding relationship.
Step 103: when the duration of the abnormal state is longer than the first duration, determining a second video source based on a preset switching strategy;
determining all video sources in a normal state corresponding to a currently played video;
determining the transmission quality of all video sources according to the history records of all video sources;
and determining the video source with the highest transmission quality as a second video source.
The preset switching strategy may be that when the video source is abnormal, all the video sources in the normal state corresponding to the currently played video are determined, the video source with the good transmission quality among all the determined video sources in the normal state is switched to and the video is continuously played, or the video source with the best video transmission quality counted in the previous period may be switched to at intervals, which is not limited in the embodiment of the present invention.
Wherein, the method further comprises:
respectively determining the transmission quality of a first video source and a second video source when the second video source and the first video source are in a normal state according to the history records of the first video source and the second video source;
determining a second time length according to the difference value of the transmission quality of the second video source and the transmission quality of the first video source; wherein, the larger the difference of the transmission quality, the smaller the second time length;
monitoring the transmission quality of the first video source according to the second time length;
and if the transmission quality of the first video source is recovered to be normal in the second duration, playing the currently played video based on the first video source.
Wherein the transmission quality is determined based on transmission data, wherein the transmission data comprises at least one of packet loss rate, network delay data, video code rate, jitter and anomaly warning when a video source transmits a video item.
Step 104: and playing the currently played video based on the second video source.
Wherein, the starting time of the first video source in the abnormal state is recorded;
the playing the currently played video based on the second video source comprises:
and playing the currently played video from the starting time based on the second video source.
Wherein, the playing the currently played video from the start time based on the second video source includes:
playing the currently played video from the start time at a first playing speed based on the second video source;
and if the playing time of the currently played video is consistent with the current time, playing the currently played video at a second playing speed, wherein the second playing speed is less than the first playing speed.
By the method, under the condition that a plurality of video sources are introduced, after the video transmitted by the current video source is abnormal, the current video source is automatically switched to other video sources capable of normally transmitting the video, and the video is continuously transmitted based on the switched video sources.
Example two
Fig. 3 is a schematic structural diagram of a video source determining apparatus according to an embodiment of the present invention, and as shown in fig. 3, the apparatus according to the embodiment of the present invention includes:
the first monitoring module 301 is configured to record a duration that a first video source currently playing a video is in an abnormal state when monitoring that the first video source is in the abnormal state, and determine a first duration;
a determining module 302, configured to determine whether a duration of the first video source in the abnormal state is greater than the first duration;
a first determining module 303, configured to determine a second video source based on a preset switching policy when the duration of the abnormal state is greater than the first duration;
a first playing module 304, configured to play the currently played video based on the second video source.
The first monitoring module 301 is configured to determine, according to the history of the first video source, the transmission quality of the first video source in a normal state;
and determining the first time length according to the determined transmission quality.
The first monitoring module 301 is configured to determine a video type to which the currently playing video belongs;
and determining the transmission quality of the first video source in a normal state aiming at the determined video type according to the history record of the first video source.
The first determining module 303 is configured to determine all video sources in a normal state corresponding to a currently played video;
determining the transmission quality of all video sources according to the history records of all video sources;
and determining the video source with the highest transmission quality as a second video source.
The device for determining a video source provided by the embodiment of the invention further comprises:
a second determining module 305, configured to determine, according to history records of a first video source and a second video source, transmission quality of the second video source and transmission quality of the first video source when the first video source is in a normal state respectively; determining a second time length according to the difference value of the transmission quality of the second video source and the transmission quality of the first video source; wherein, the larger the difference of the transmission quality, the smaller the second time length;
a second monitoring module 306, configured to monitor the transmission quality of the first video source according to the second duration;
a second playing module 307, configured to play the currently played video based on the first video source if the transmission quality of the first video source is recovered to be normal within the second duration.
Wherein, above-mentioned device still includes:
a recording module 308, configured to record a start time of the first video source in an abnormal state;
the first playing module 304 is configured to play the currently played video from the start time based on the second video source.
The first playing module 304 is configured to play a currently played video from the start time at a first playing speed based on the second video source;
and if the playing time of the currently played video is consistent with the current time, playing the currently played video at a second playing speed, wherein the second playing speed is less than the first playing speed.
In practical applications, the apparatus for determining the video source may be applied to a server side providing a service, or may be installed on a mobile terminal side or a broadcast application program installed on the mobile terminal, or the like
The first monitoring module 301, the first determining module 303, the second monitoring module 306, and the second determining module 205 may be implemented by any type of volatile or non-volatile Memory device, or a combination thereof, wherein the non-volatile Memory may be a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an erasable Programmable Read-Only Memory (EPROM), an electrically erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a magnetic Random Access Memory (Flash), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM, a Compact Disc-Read-Only Memory (Flash Memory), a Dynamic Random Access Memory (SDRAM), or a Dynamic Random Access Memory (SDRAM) may be used as an external Dynamic Access Memory, or a Dynamic Access Memory (SDRAM), or a Dynamic Access Memory (SDRAM) may be used as an Access Memory, or a Dynamic Access Memory (SDRAM, or a Dynamic Access Memory, or a Dynamic Access Memory, which is used as an Access Memory, but is not limited by any other example, and is applicable to be used as an Access Memory, such as an Access Memory, a Dynamic Access system, a Dynamic Access Memory, a.
In an exemplary embodiment, the determining means of the video source may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable logic devices (P L D, Programmable L) Complex Programmable logic devices (CP L D, Complex Programmable L) logic devices, Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components, for performing the aforementioned methods.
EXAMPLE III
The following describes the embodiment of the present invention in further detail with reference to a practical application scenario, as shown in fig. 4, an operator introduces four license plate parties, including huan number, bai wei tong, future and mango, to acquire a video, and the embodiment of the present invention includes the following steps:
step 401: determining the transmission quality of the live broadcast source in a normal state according to the historical record of the live broadcast source;
wherein, the determining the transmission quality when the live broadcast source is in a normal state includes:
determining a video type to which the currently playing video belongs, where the video type may include: movie channels, drama channels, music channels, news channels, sporting event live channels, and live/repeat/recorded video channels, etc.;
and determining the transmission quality of the determined video type when the video transmitted by the license plate party is in a normal state according to the history.
The server corresponding to the operator may determine, in advance, live broadcast quality of each live broadcast source corresponding to each program type and/or each television channel according to the introduced history records of all license plate parties, and sort all live broadcast sources according to the live broadcast quality to obtain a sorting result corresponding to each program type and/or each television channel.
In step 301, the history record may include data such as packet loss rate during live broadcasting, network delay during live broadcasting, live broadcasting definition, live broadcasting jitter, and abnormal live broadcasting alarm times.
In practical application, when a television channel/program type is created, a corresponding ID can be generated in a database, the ID has uniqueness and cannot be changed at will subsequently, and the ID corresponds to the network address information and the network port information of the transceiver, so that historical live broadcast data such as the live broadcast source packet loss rate, the network delay, jitter, the live broadcast abnormal alarm and the like corresponding to the television channel/program type can be obtained by detecting the corresponding transceiver network address under the ID entry and the network condition on the network port passage, and thus, the historical live broadcast data corresponding to each television channel/program type can be obtained.
For example: the television channel CCTV5, which can be used to identify the television channel CCTV5, can generate IDchannel00000001 in the database corresponding to CCTV5, which ID is not easily modified. After obtaining the ID corresponding to the television channel CCTV5, the transceiving end IP information and port information corresponding to the ID may be set, for example: the transceiving end IP information corresponding to the ID may be set as: x.x.x, the corresponding port information may be set to: 10000. with the above arrangement, it can be determined that from 10. x.x.x.x port: the stream received by 10000 is the stream of the television channel CCTV5 with the ID of channel 00000001. Therefore, by monitoring the IP and port, historical live broadcast data corresponding to the television channel CCTV5 is obtained.
After the historical live broadcast data of each live broadcast source corresponding to each television channel/program type is obtained, the live broadcast quality of each live broadcast source corresponding to each television channel/program type can be determined according to the obtained historical live broadcast data, wherein the live broadcast quality can be represented by specific numbers or quality grades.
In practical applications, a statistical period is determined, which may be a last period of time, for example, a last hour; in the live broadcast data, live stream cut-off is an important index, and therefore, once the live stream cut-off occurs, the live broadcast quality of the live source corresponding to the channel is poor. When the multiple live broadcast sources have over-cutoff in the latest hour for the same channel, respectively counting the cutoff duration, wherein the cutoff duration is longer and the quality is poorer; the short interruption time and the good quality. If no abnormal condition occurs in the live broadcast source within the last hour, the live broadcast source is determined to be 1 in quality level; or the like, or, alternatively,
a judgment criterion may be set, for example, at most: in the last hour, the jitter rate is less than 5%, or the packet loss rate is less than 5%, and when the single condition occurs, the quality level of the live broadcast source is 2; in the last hour, the jitter rate is more than 5% and less than 10%, or the packet loss rate in the last hour of the live broadcast process is more than 5% and less than 10%; or two situations that the jitter rate is less than 5% and the packet loss rate is less than 5% in the last hour occur simultaneously, the quality level of the live broadcast source is considered to be 3; in the last hour, the jitter rate is more than 10% and less than 20%, or the packet loss rate in the last hour of the live broadcast process is more than 10% and less than 20%, or the jitter rate in the last hour is more than 5% and less than 10% and the packet loss rate in the last hour is more than 5% and less than 10%, the quality of the live broadcast source is considered to be 4; when the packet loss rate is greater than 20% and less than 50% or the jitter rate is greater than 20% and less than 50% in the last hour, or the jitter rate is greater than 10% and less than 20% and the packet loss rate is greater than 10% and less than 20% in the last hour, the quality level of the live broadcast source is considered to be 5; when the packet loss rate is greater than 50% or the jitter rate is greater than 20% and less than 50% and the packet loss rate is greater than 20% and less than 50% in the last hour, the quality of the live broadcast source is considered to be 6; when the flow interruption situation occurs in the last hour, sorting is carried out according to the flow interruption time length in the last hour from 7 backwards, or,
after obtaining the packet loss rate, the jitter rate, the cut-off data and the like of the corresponding video source, performing weighting processing on the data, wherein the packet loss rate, the jitter rate, the cut-off data and the like can be set with different weight proportions to obtain weighted values, and determining the corresponding live broadcast quality according to the weighted values.
Step 402: determining a first time length according to the live broadcast quality of a live broadcast source;
in this embodiment, the first duration may be a time that is tolerant to abnormality thereof, for example, if the live broadcast quality of the live broadcast source currently used is far greater than that of other live broadcast sources, the time that is tolerant to abnormality thereof may be longer.
The time tolerance of the live broadcast source can be determined according to the live broadcast quality of the live broadcast source when the first time duration corresponding to the live broadcast source is determined, specifically, the time tolerance of the live broadcast source corresponding to the live broadcast source can be determined according to the live broadcast quality of the live broadcast source by related personnel, or the corresponding relation between the live broadcast quality of the live broadcast source and the time tolerance of the live broadcast source can be preset, and the server can determine the time tolerance of the live broadcast source corresponding to the time tolerance of the live broadcast source according to the preset corresponding relation.
For example, when the live broadcast quality level is 2, the user does not perceive intensely and can wait for 30 minutes, and if the user still cannot recover within 30 minutes, the user can switch to a live broadcast source with the live broadcast quality level of 1, that is, any abnormal live broadcast source does not exist; when the live broadcast quality level is 3, slight influence is generated on user experience, the setting is waited for 10 minutes, if the user still cannot recover within 10 minutes, at the moment, if the live broadcast source quality level is 1, the live broadcast source with the quality level of 1 is switched to. If the quality level of the live broadcast is not 1, checking whether the quality level of the live broadcast source is 2, and if so, switching to the live broadcast source with the quality level of 2; when the live broadcast quality is 4, setting the waiting time to be 1 minute; when the live broadcast quality is at a quality level of 5 and 5 or more, the waiting time is set to 5 seconds. By analogy, when the live broadcast source has abnormal conditions and needs to be switched, the quality grade state of the live broadcast source in the latest hour of other live broadcast sources is searched, and the live broadcast source with the highest quality grade is switched to.
Under one condition, when all live broadcast sources are abnormal and the current cut-off condition occurs within the last hour, at the moment, the cut-off occurs in a certain live broadcast source, and as long as the live broadcast source without the cut-off condition is searched and switched, emergency treatment is carried out.
It should be noted that the first time period or the tolerance of the abnormality may be determined according to the historical live broadcast quality of the live broadcast source, which is not limited in the embodiment of the present invention.
Step 403: when a live broadcast source currently playing a video is monitored to be in an abnormal state, recording the time length of the live broadcast source in the abnormal state, and when the time length of the abnormal state is longer than the first time length, determining other live broadcast sources based on a preset switching strategy;
the server corresponding to the operator can monitor the current live broadcast source, if the current live broadcast source is abnormal, the time for starting the abnormal live broadcast source to start is recorded, and if the current live broadcast source is not normal within the corresponding time (or times) for tolerating the abnormal live broadcast source, the server is automatically switched to other live broadcast sources with the best live broadcast quality;
for example, when it is monitored that the live broadcast quality corresponding to the current live broadcast source is not level 1, it may be determined that an abnormality occurs.
It should be noted that, when switching live broadcast sources, switching other live broadcast sources that have the highest quality level at this time and are not in a cut-off state at this time is performed.
Step 404: after determining and switching to other live broadcast sources with high transmission quality, continuing to play the live broadcast from the abnormal starting time;
wherein, the playing can be accelerated during playing, for example: 1.3 times, wherein the specific acceleration multiple can be set according to actual requirements, and when the playing time reaches the current time, the playing is carried out at a normal speed;
specifically, when a certain live source is abnormal, the server records the time point of the abnormal occurrence, and when the abnormal occurrence is not recovered after waiting for a certain time, the live source is switched according to the precondition. When the live broadcast source is switched to the normal live broadcast source, the terminal can jump out of the prompt box, so that a user can select to play from the current time point or to play when the live broadcast source is switched to the abnormal time. And if the broadcasting is carried out from the current time point, directly accessing the switched live broadcast source for broadcasting. If the user wants to play from the abnormal time point, the server reads the content stored before the live broadcast source, reads the content from the abnormal time point and sends the content to the user, and the user can select normal speed play or quick play for the content. If the user selects the fast playing, when the fast playing is carried out for a period of time and the live broadcasting time is caught up, the normal speed playing is carried out.
Step 405: after switching to other live broadcast sources, detecting the transmission quality of the live broadcast source before switching;
specifically, after switching to other live broadcast sources, if the live broadcast quality of the live broadcast source before switching is far greater than the historical live broadcast quality of the live broadcast source after switching, the live broadcast source before switching can be monitored, if the live broadcast source before switching is recovered to be normal, and the live broadcast source before switching is automatically switched back, and the length of the second time period can be in an inverse relation with the live broadcast quality difference value of the live broadcast source before switching and the live broadcast source after switching.
For example, if the original live broadcast source before switching is recovered to be normal for 10 minutes, and the quality level of the live broadcast source within 10 minutes is 1, switching back to the original live broadcast source; if the quality grade of the original direct broadcasting source is 2 and the quality grade of the switched direct broadcasting source is 3 after the original direct broadcasting source is recovered, switching the direct broadcasting source to the original direct broadcasting source 10 minutes after the original direct broadcasting source is recovered to be normal and the quality of the original direct broadcasting source is not deteriorated; and if the quality grade of the original live broadcast source is still lower than that of the switched live broadcast source after the original live broadcast source is recovered, the operation of switching back to the original live broadcast source is not implemented for the moment.
Step 406: and when no other live broadcast source is switched, playing the video or live broadcast which is interested by the user.
Specifically, the server corresponding to the operator may view data according to the history of the user, for example: the watching time, the watching place, the watching type and the like form the watching habit of the user, if the current live broadcast source is abnormal and other live broadcast sources which do not meet the conditions can be switched, for example, the live broadcast source has the exclusive broadcast right of a certain football match, and the live broadcast quality is poor due to more people watching the live broadcast content of the current live broadcast source; the method can switch to the live broadcast source playing other contents favorite by the user according to the watching habits of the user, at the moment, the user can be inquired whether to continuously watch the contents of the live broadcast source before switching, if the user wants to continuously watch the contents, the live broadcast source before switching can be monitored, and if the live broadcast source before switching is recovered to be normal and is kept stable in a period of time, the live broadcast source before switching is automatically switched back; and if the user does not want to continue watching, the current live broadcast source can be continuously used, and switching is not performed any more.
In practical application, in the process of watching the live broadcast service, the watching data of the user can be collected through the terminal. Such as a set-top box, a cell phone, etc. When a user watches the live broadcast service through the set top box, the live broadcast channel time lengths watched by the user are sequenced. The first 10 were taken and the viewing time was longest. For example, if the CCTV-5 time length is longest, the user is considered to prefer the sports channel and the program.
It should be noted that, in the embodiment of the present invention, in addition to the method for switching the live broadcast source when the live broadcast source is abnormal, optimized switching may also be performed, that is, every other time period, for example, every hour, a live broadcast source with the highest statistical quality in the previous period may be switched to, so as to improve user experience.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (15)

1. A method for determining a video source, the method comprising:
when a first video source of a currently played video is monitored to be in an abnormal state, recording the time length of the first video source in the abnormal state, and determining the first time length according to the transmission quality of the first video source in a normal state;
judging whether the time length of the first video source in the abnormal state is greater than the first time length;
when the duration of the abnormal state is longer than the first duration, determining a second video source based on a preset switching strategy;
playing the currently played video based on the second video source;
wherein the determining a first time period according to the transmission quality of the first video source in the normal state comprises:
determining the transmission quality of the first video source in a normal state according to the history record of the first video source;
and determining the first time length according to the determined transmission quality.
2. The method of claim 1, wherein determining the transmission quality of the first video source in a normal state comprises:
determining the video type of the currently played video;
and determining the transmission quality of the first video source in a normal state aiming at the determined video type according to the history record of the first video source.
3. The method of claim 1, wherein determining the second video source based on the preset switching strategy comprises:
determining all video sources in a normal state corresponding to a currently played video;
determining the transmission quality of all video sources according to the history records of all video sources;
and determining the video source with the highest transmission quality as a second video source.
4. The method of claim 1, further comprising:
respectively determining the transmission quality of a first video source and a second video source when the second video source and the first video source are in a normal state according to the history records of the first video source and the second video source;
determining a second time length according to the difference value of the transmission quality of the second video source and the transmission quality of the first video source; wherein, the larger the difference of the transmission quality, the smaller the second time length;
monitoring the transmission quality of the first video source according to the second time length;
and if the transmission quality of the first video source is recovered to be normal in the second duration, playing the currently played video based on the first video source.
5. The method according to any of claims 1 to 4, wherein the transmission quality is determined based on transmission data, wherein the transmission data comprises at least one of packet loss rate, network delay data, video bitrate, jitter, and anomaly warning when video source transmits video items.
6. The method of claim 1, further comprising:
recording the starting time of the first video source in an abnormal state;
the playing the currently played video based on the second video source comprises:
and playing the currently played video from the starting time based on the second video source.
7. The method of claim 6, wherein playing the currently played video from the start time based on the second video source comprises:
playing the currently played video from the start time at a first playing speed based on the second video source;
and if the playing time of the currently played video is consistent with the current time, playing the currently played video at a second playing speed, wherein the second playing speed is less than the first playing speed.
8. An apparatus for determining a video source, the apparatus comprising:
the first monitoring module is used for recording the time length of a first video source in an abnormal state when the first video source playing the video at present is monitored to be in the abnormal state, and determining the first time length according to the transmission quality of the first video source in a normal state;
the first monitoring module is further configured to determine, according to the history of the first video source, the transmission quality of the first video source in a normal state; determining the first time length according to the determined transmission quality;
the judging module is used for judging whether the time length of the first video source in the abnormal state is greater than the first time length;
the first determining module is used for determining a second video source based on a preset switching strategy when the duration of the abnormal state is longer than the first duration;
and the first playing module is used for playing the currently played video based on the second video source.
9. The apparatus of claim 8, wherein the first monitoring module is configured to determine a video type to which the currently playing video belongs;
and determining the transmission quality of the first video source in a normal state aiming at the determined video type according to the history record of the first video source.
10. The apparatus of claim 8, wherein the first determining module is configured to determine all video sources in a normal state corresponding to a currently playing video;
determining the transmission quality of all video sources according to the history records of all video sources;
and determining the video source with the highest transmission quality as a second video source.
11. The apparatus of claim 8, further comprising:
the second determining module is used for respectively determining the transmission quality of the second video source and the transmission quality of the first video source in a normal state according to the history records of the first video source and the second video source; determining a second time length according to the difference value of the transmission quality of the second video source and the transmission quality of the first video source; wherein, the larger the difference of the transmission quality, the smaller the second time length;
the second monitoring module is used for monitoring the transmission quality of the first video source according to the second time length;
and the second playing module is used for playing the currently played video based on the first video source if the transmission quality of the first video source is recovered to be normal within the second duration.
12. The apparatus of claim 8, further comprising:
the recording module is used for recording the starting time of the first video source in the abnormal state;
the first playing module is configured to play the currently played video from the start time based on the second video source.
13. The apparatus of claim 12, wherein the first playing module is configured to play a currently played video from the start time at a first playing speed based on the second video source;
and if the playing time of the currently played video is consistent with the current time, playing the currently played video at a second playing speed, wherein the second playing speed is less than the first playing speed.
14. An apparatus for determining a video source, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 7 when running the computer program.
15. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201710944512.7A 2017-10-11 2017-10-11 Video source determination method and device and computer readable storage medium Active CN107734362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710944512.7A CN107734362B (en) 2017-10-11 2017-10-11 Video source determination method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710944512.7A CN107734362B (en) 2017-10-11 2017-10-11 Video source determination method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107734362A CN107734362A (en) 2018-02-23
CN107734362B true CN107734362B (en) 2020-07-28

Family

ID=61210920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710944512.7A Active CN107734362B (en) 2017-10-11 2017-10-11 Video source determination method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107734362B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213596B (en) * 2018-03-28 2021-08-24 腾讯科技(深圳)有限公司 Live broadcast switching method and device, computer equipment and storage medium
CN109600637B (en) * 2018-04-14 2019-07-09 上海九吾尊易信息科技有限公司 Live content recommended priority selection method
CN108900877B (en) * 2018-07-16 2021-05-25 广州辉群智能科技有限公司 Method for controlling audio and video playing equipment to play audio and video files and service equipment
CN108881938B (en) * 2018-08-02 2021-05-28 广东龙眼数字科技有限公司 Live broadcast video intelligent cutting method and device
CN110149362A (en) * 2019-04-04 2019-08-20 上海鑫森淼网络技术有限公司 A kind of Video security management system
CN112135176B (en) * 2019-06-25 2022-09-13 西安诺瓦星云科技股份有限公司 Video processing method, device and system and computer readable storage medium
CN110708564B (en) * 2019-10-21 2021-12-07 上海网达软件股份有限公司 Live transcoding method and system for dynamically switching video streams
CN113014946A (en) * 2021-03-05 2021-06-22 广州市网星信息技术有限公司 Emergency processing method and emergency processing device for live broadcast drop of live broadcast platform
CN113784193B (en) * 2021-09-23 2024-02-13 广州长嘉电子有限公司 High-definition imaging method and device based on wireless signal and commercial display multimedia interaction

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997150A (en) * 2006-12-27 2007-07-11 北京大学 Switching method and system for fixed and mobile integrated network stream media and source video stream
CN103458305A (en) * 2013-08-28 2013-12-18 小米科技有限责任公司 Video playing method and device, terminal device and server
CN104092960A (en) * 2014-07-26 2014-10-08 福州大学 Video source switching method based visual subjective feeling
CN105100830A (en) * 2015-07-23 2015-11-25 中国科学院声学研究所 Rapid switching video source apparatus based on video aggregation service and method thereof
CN105472443A (en) * 2016-01-13 2016-04-06 杭州当贝网络科技有限公司 Direct broadcast source control method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997150A (en) * 2006-12-27 2007-07-11 北京大学 Switching method and system for fixed and mobile integrated network stream media and source video stream
CN103458305A (en) * 2013-08-28 2013-12-18 小米科技有限责任公司 Video playing method and device, terminal device and server
CN104092960A (en) * 2014-07-26 2014-10-08 福州大学 Video source switching method based visual subjective feeling
CN105100830A (en) * 2015-07-23 2015-11-25 中国科学院声学研究所 Rapid switching video source apparatus based on video aggregation service and method thereof
CN105472443A (en) * 2016-01-13 2016-04-06 杭州当贝网络科技有限公司 Direct broadcast source control method and system

Also Published As

Publication number Publication date
CN107734362A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN107734362B (en) Video source determination method and device and computer readable storage medium
US9967514B2 (en) Recording system
US9800927B2 (en) Smart media selection based on viewer user presence
CN105872773B (en) The monitoring method and monitoring device of net cast
US9191422B2 (en) Processing of social media for selected time-shifted multimedia content
US8510317B2 (en) Providing search results based on keyword detection in media content
EP2954693B1 (en) Processing of social media for selected time-shifted multimedia content
CN111641866B (en) Method, system, and medium for inserting auxiliary media items into a primary media stream
US20160021164A1 (en) Live media stream validation
US11212332B2 (en) Dynamic archiving of streaming content
CN108449308B (en) Method and device for identifying malicious resource access
US8041716B2 (en) Apparatus, methods and computer products for selection of content based on transcript searches
WO2012162693A1 (en) Highly scalable audience measurement system with client event pre-processing
WO2017107464A1 (en) Video tracking and playing method and apparatus
GB2474074A (en) Electronic voting
NL2015755B1 (en) Over-the-top digital media distribution of automated time-zone shifted content to client devices.
CN106303585B (en) Program review method, media server, set top box and program review system
CN111327964B (en) Method and device for positioning video playing pause
CN111147944B (en) On-demand infringement risk discovery method based on big data log analysis
US9491510B2 (en) Methods and systems for stream management for a digital video recording device
CN117640970A (en) Live video playing method, client and medium
CN117596438A (en) Video stream processing system and method
AU2020213954A1 (en) Video signal receiving apparatus, transmitting apparatus and methods
CN106534353A (en) Method and device for pushing news

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