CN114025204B - Live video switching method, device, equipment and storage medium - Google Patents

Live video switching method, device, equipment and storage medium Download PDF

Info

Publication number
CN114025204B
CN114025204B CN202111311611.4A CN202111311611A CN114025204B CN 114025204 B CN114025204 B CN 114025204B CN 202111311611 A CN202111311611 A CN 202111311611A CN 114025204 B CN114025204 B CN 114025204B
Authority
CN
China
Prior art keywords
live
source
live broadcast
direct
broadcasting
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
CN202111311611.4A
Other languages
Chinese (zh)
Other versions
CN114025204A (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.)
Beijing Quantum Song Technology Co ltd
Original Assignee
Beijing Quantum Song 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 Beijing Quantum Song Technology Co ltd filed Critical Beijing Quantum Song Technology Co ltd
Priority to CN202111311611.4A priority Critical patent/CN114025204B/en
Publication of CN114025204A publication Critical patent/CN114025204A/en
Application granted granted Critical
Publication of CN114025204B publication Critical patent/CN114025204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/242Synchronization processes, e.g. processing of PCR [Program Clock References]
    • 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/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/2405Monitoring of the internal components or processes of the server, e.g. server load
    • 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/64Addressing
    • 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/643Communication protocols
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a video live broadcast switching method, a device, equipment and a storage medium, which are applied to a first live broadcast source and a second live broadcast source of parallel live broadcast, wherein when the first live broadcast source is in a live broadcast state, the second live broadcast source is in a live broadcast activation state, and the method comprises the following steps: acquiring live stream data of a first direct-broadcasting source in real time, wherein the live stream data comprise video stream data and/or audio stream data; judging whether the first live broadcast source is in a live broadcast fluency state according to live broadcast stream data of the first live broadcast source; when the live broadcasting of the first direct broadcasting source is not smooth, the live broadcasting stream data pulling address of the user side is updated according to the address of the pulling server corresponding to the second direct broadcasting source, so that the user side can watch live broadcasting contents through the second direct broadcasting source, smoothness in the live broadcasting process can be improved, and learning experience of the user is further improved.

Description

Live video switching method, device, equipment and storage medium
Technical Field
The present invention belongs to the technical field of multimedia, and in particular relates to a method, a device, equipment and a storage medium for switching live video.
Background
With the development of multimedia technology, network live broadcast becomes a novel platform for information communication and display, not only can bring entertainment and leisure to us, but also provides a hardware base and a mode example for remote education and online education, and network live broadcast education also becomes an education mode which is widely adopted at present.
The online live broadcast education is important to the fluency of live broadcast, and the fluency is not only the embodiment of the education quality, but also influences the experience of user learning, and if special conditions are met in the live broadcast process, for example: network blocking, unstable live broadcasting platform, etc., in the prior art, the anchor can only break the original signal, reconnect to the new signal stream or other live broadcasting platforms reestablish the live broadcasting room. For users, there is a disadvantage in that video and audio are interrupted for a period of time when the anchor switches, or a new live room is re-entered, affecting the user experience.
Disclosure of Invention
Aiming at the problems in the prior art, the aim of the invention is to provide a live video switching method, a live video switching device, live video switching equipment and a storage medium, which can improve the fluency of video in the live video process and improve the user experience.
In order to solve the technical problems, the specific technical scheme is as follows:
in one aspect, the present disclosure provides a video live broadcast switching method, applied to a first live broadcast source and a second live broadcast source of parallel live broadcast, where the first live broadcast source and the second live broadcast source both have a corresponding push server and a pull server, and when the first live broadcast source is in a live broadcast state, the second live broadcast source is in a live broadcast activation state, where the live broadcast activation state includes collecting main broadcast video and audio in real time, and no courseware content in a live broadcast operation area, and pushing live broadcast stream data of the collected second live broadcast source to the push server corresponding to the second live broadcast source, where the method includes:
acquiring live stream data of a first direct-broadcasting source in real time, wherein the live stream data comprise video stream data and/or audio stream data;
judging whether the first live broadcast source is in a live broadcast fluency state according to live broadcast stream data of the first live broadcast source;
when the live broadcasting of the first direct broadcasting source is not smooth, the live broadcasting stream data pulling address of the user side is updated according to the address of the pulling server corresponding to the second direct broadcasting source, so that the user side views live broadcasting contents through the second direct broadcasting source.
Further, when the first direct broadcasting source is not smooth in live broadcasting, a live broadcasting switching signal is sent to the anchor, so that the anchor can conduct live broadcasting teaching through an operation area of the second direct broadcasting source.
Further, when the first direct broadcasting source shows that the direct broadcasting is not smooth, sending a direct broadcasting switching signal to the anchor, so that the anchor performs direct broadcasting teaching through an operation area of the second direct broadcasting source, including:
when the first direct broadcasting source is not smooth in live broadcasting, a direct broadcasting source adjusting signal is sent to the anchor, so that the anchor adjusts the live broadcasting visual angle, and the adjusted visual angle is consistent with the operation visual angle of the second direct broadcasting source.
Further, when the first direct broadcasting source shows that the direct broadcasting is not smooth, sending a direct broadcasting switching signal to the anchor, so that the anchor performs direct broadcasting teaching through an operation area of the second direct broadcasting source further includes:
when the first direct broadcasting source is not smooth in live broadcasting, acquiring current page information of courseware in an operation area of the first direct broadcasting source;
copying courseware in the operation area of the first direct broadcast source to the operation area of the second direct broadcast source;
and updating courseware in the operation area of the second live broadcast source to a corresponding page according to the current page information of the courseware in the operation area of the first live broadcast source, so that a host broadcast carries out live broadcast teaching through the courseware in the operation area of the second live broadcast source.
Further, the determining, according to the live stream data of the first live source, whether the first live source is in a live fluency state includes:
calculating the live broadcast quality of the first direct broadcast source according to the acquisition frame rate and the code rate of the video and/or the audio of the first direct broadcast source in a preset time period;
and judging whether the first live broadcast source is in a live broadcast fluency state according to the live broadcast quality.
Further, the calculating, according to the acquisition frame rate and the code rate of the video and/or the audio of the first direct broadcast source in the preset time period, the direct broadcast quality of the first direct broadcast source includes:
counting the total times that the acquisition frame rate and the code rate of the video and/or the audio of the first direct-broadcasting source in the preset time period are lower than the respective threshold value according to the acquisition frame rate and the code rate of the video and/or the audio of the first direct-broadcasting source in the preset time period;
when the total times are lower than preset times, determining that the first direct-seeding source is in a direct-seeding fluency state in the preset time period;
and when the total times are not lower than the preset times, determining that the first direct broadcast source is in a direct broadcast unsmooth state in the preset time period.
Further, the calculating, according to the acquisition frame rate and the code rate of the video and/or the audio of the first direct broadcast source in the preset time period, the direct broadcast quality of the first direct broadcast source further includes:
According to the video and/or audio acquisition frame rate and the code rate of the first direct broadcast source in a preset time period, calculating and obtaining a stability coefficient of the acquisition frame rate and a stability coefficient of the code rate in the preset time period;
judging whether the stability coefficient of the acquisition frame rate is lower than a first threshold value and whether the stability coefficient of the code rate is lower than a second threshold value;
if the stability coefficient of the acquisition frame rate is lower than a first threshold value and the stability coefficient of the code rate is lower than a second threshold value, determining that the first direct broadcast source is in a direct broadcast fluent state in a preset time period;
if the stability coefficient of the acquisition frame rate is not lower than a first threshold value or the stability coefficient of the code rate is not lower than a second threshold value, determining that the first direct broadcast source is in a direct broadcast non-fluent state in a preset time period.
Further, when the live broadcast of the first direct broadcast source is not smooth, updating the live broadcast stream data pulling address of the user terminal according to the address of the pulling server corresponding to the second direct broadcast source, so that the user terminal views the live broadcast content through the second direct broadcast source, including:
when the first direct broadcast source is not smooth in live broadcast, acquiring address information of a streaming server corresponding to the second direct broadcast source and a content distribution protocol of the first direct broadcast source;
And adjusting the content distribution protocol according to the address information of the streaming server corresponding to the second live broadcast source and the content distribution protocol of the first live broadcast source so as to update the pulling address of the live broadcast stream data of the user side.
Further, according to the address information of the streaming server corresponding to the second live broadcast source and the content distribution protocol of the first live broadcast source, the content distribution protocol is adjusted to update the pulling address of the live broadcast stream data of the user side, including:
acquiring a pulling website position and a pulling website parameter in a content distribution protocol of the first live broadcast source;
and replacing the pulling website parameters according to the address information of the pulling server corresponding to the second live broadcast source and the pulling website position to obtain a content distribution protocol of the second live broadcast source, so that the user side obtains live broadcast stream data of the second live broadcast source according to the content distribution protocol of the second live broadcast source.
Further, the method further comprises:
after the live broadcasting of the main broadcasting is completed, acquiring live stream data of the first live broadcasting source and the second live broadcasting source;
acquiring effective live stream data of the first live broadcast source and the second live broadcast source according to the live stream data of the first live broadcast source and the second live broadcast source and the switching time of the second live broadcast source;
And merging the live stream data of the first live broadcast source and the second live broadcast source, so that the user obtains a complete live file.
In another aspect, there is provided herein a live video switching apparatus, the apparatus including:
the live stream data acquisition module is used for acquiring live stream data of a first direct-broadcasting source in real time, wherein the live stream data comprise video stream data and/or audio stream data;
the judging module is used for judging whether the first live broadcast source is in a live broadcast fluency state according to the live broadcast stream data of the first live broadcast source;
and the switching module is used for updating the live stream data pulling address of the user terminal according to the address of the pulling server corresponding to the second live broadcast source when the first live broadcast source is not smooth in live broadcast, so that the user terminal views live broadcast contents through the second live broadcast source.
In another aspect, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a method as described above when executing the computer program.
Finally, there is also provided a computer readable storage medium storing a computer program which, when executed by a processor, implements a method as described above.
By adopting the technical scheme, the video live broadcast switching method, the video live broadcast switching device, the video live broadcast switching equipment and the video live broadcast switching storage medium are characterized in that a first live broadcast source and a second live broadcast source which are live broadcast in parallel are arranged, the first live broadcast source and the second live broadcast source are provided with independent data stream transmission channels, when the first live broadcast source is in a live broadcast state, the second live broadcast source is in a live broadcast activation state, live broadcast stream data of the first live broadcast source are obtained in real time, whether the first live broadcast source is in a live broadcast fluency state is judged based on the live broadcast stream data, and when the first live broadcast source is not fluent in live broadcast, the first live broadcast source is switched to the second live broadcast source, so that a user side can watch live broadcast contents through the second live broadcast source, fluency in a live broadcast process can be improved, and learning experience of a user is improved.
The foregoing and other objects, features and advantages will be apparent from the following more particular description of preferred embodiments, as illustrated in the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments herein or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments herein and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 illustrates a schematic diagram of an implementation environment for a method provided by embodiments herein;
fig. 2 is a schematic diagram illustrating steps of a live video switching method according to an embodiment of the present disclosure;
FIG. 3 illustrates a schematic diagram of a live source switching process in embodiments herein;
fig. 4 is a schematic diagram illustrating a first live source live fluency status determination step in the embodiment herein;
fig. 5 is a schematic diagram illustrating a process of switching a user terminal to pull a website in the embodiment herein;
FIG. 6 illustrates a schematic diagram of an operating system of the methods provided by embodiments herein;
fig. 7 illustrates a schematic structural diagram of a live video switching apparatus provided in an embodiment herein;
fig. 8 shows a schematic structural diagram of a computer device provided in an embodiment herein.
Description of the drawings:
10. a main broadcasting end;
20. a first direct broadcast source;
30. a second live source;
40. a user terminal;
50. a monitoring end;
21. a first direct broadcast end;
22. a first push server;
23. a first streaming server;
31. a second live broadcast end;
32. a second push server;
33. a second streaming server;
100. a live stream data acquisition module;
200. a judging module;
300. a switching module;
802. a computer device;
804. a processor;
806. A memory;
808. a driving mechanism;
810. an input/output module;
812. an input device;
814. an output device;
816. a presentation device;
818. a graphical user interface;
820. a network interface;
822. a communication link;
824. a communication bus.
Detailed Description
The following description of the embodiments of the present disclosure will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the disclosure. All other embodiments, based on the embodiments herein, which a person of ordinary skill in the art would obtain without undue burden, are within the scope of protection herein.
It should be noted that the terms "first," "second," and the like in the description and claims herein and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or device that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or device.
Along with popularization of network live broadcast, the network live broadcast education also becomes an education mode widely adopted at present, and the network live broadcast education is important to be smooth, so that the fluency is not only the embodiment of education quality, but also the experience of user learning can be influenced, and if special conditions are met in the live broadcast process, for example: network blocking, unstable live broadcasting platform, etc., in the prior art, the anchor can only break the original signal, connect to new signal flow again or other live broadcasting platforms reestablish live broadcasting rooms, can influence user's study experience like this.
In order to solve the above-mentioned problems, the embodiment of the present disclosure provides a live video switching method, as shown in fig. 1, which is an implementation environment schematic diagram of the method, may include a main broadcasting end 10, a first live broadcasting source 20, a second live broadcasting source 30, a user end 40, and a monitoring end 50, where the first live broadcasting source 20 and the second live broadcasting source 30 are in a parallel live broadcasting relationship, and the first live broadcasting source 20 and the second live broadcasting source 30 both have corresponding push servers and pull servers, that is, the first live broadcasting source 20 includes a first live broadcasting end 21, a first push server 22, and a first pull server 23, the second live broadcasting source 30 includes a second live broadcasting end 31, a second push server 32, and a second pull server 33, and when the first live broadcasting source 20 is in a live broadcasting state, the second live broadcasting source 30 is in a live broadcasting activation state, the activation state includes collecting main broadcasting video and audio in real time, and no-class content in an operation area, and pushing the obtained second live broadcasting source 30 to the second live broadcasting source is not in a live broadcasting state, that is in a live broadcasting state, or the live broadcasting state is not being live broadcasting, and the live broadcasting data is being received by the second live broadcasting source 30 is only in a live broadcasting state, or the live broadcasting state is limited, and the live broadcasting data is being watched by the second live broadcasting source 30.
The first live broadcast end 21 and the second live broadcast end 31 may be live broadcast stream data collection devices, such as a microphone joint, a camera, and a host lecture interface, where the host lecture interface includes an operation area and a chat area where a host communicates with a user, where the operation area is used to display courseware content, and the operation area may receive an operation of the host and display corresponding content, such as board content of the host in a lecture process, and display the board content in the operation area, so as to improve teaching efficiency of the host.
The monitoring end 50 acquires live broadcast stream data of the first live broadcast source 20 in real time when the first live broadcast source 20 is in live broadcast, judges whether the first live broadcast source 20 is in a live broadcast fluency state according to the live broadcast stream data of the first live broadcast source 20, updates a live broadcast stream data pulling address of a user end according to an address of a pulling server corresponding to the second live broadcast source 30 when the first live broadcast source 20 is in live broadcast fluency, so that the user end views live broadcast contents through the second live broadcast source 30, and timely switches a live broadcast channel to the second live broadcast source 30 when the first live broadcast source 20 is not fluent, so that the user end realizes noninductive switching of live broadcast signals, and live broadcast experience of a user is ensured.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), basic cloud computing services such as big data and artificial intelligence platforms.
In addition, it should be noted that, fig. 1 is only one application environment provided by the present disclosure, and in practical application, other application environments may also be included, which is not described in detail in the embodiments of the present disclosure.
Specifically, the embodiment of the invention provides a live video switching method, which can improve the viewing experience of a user when live video is unsmooth. Fig. 2 is a schematic step diagram of a live video switching method provided in embodiments herein, where the method steps are as described in the examples or flowcharts, but may include more or fewer steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. When a system or apparatus product in practice is executed, it may be executed sequentially or in parallel according to the method shown in the embodiments or the drawings. As shown in fig. 2, the method may include:
S101: acquiring live stream data of a first direct-broadcasting source in real time, wherein the live stream data comprise video stream data and/or audio stream data;
s102: judging whether the first live broadcast source is in a live broadcast fluency state according to live broadcast stream data of the first live broadcast source;
s103: when the live broadcasting of the first direct broadcasting source is not smooth, the live broadcasting stream data pulling address of the user side is updated according to the address of the pulling server corresponding to the second direct broadcasting source, so that the user side views live broadcasting contents through the second direct broadcasting source.
It may be understood that in the embodiment of the present disclosure, the first direct broadcast source and the second direct broadcast source are used as direct broadcast sources of parallel direct broadcast, and are used for direct broadcast of the same main broadcast, and when the first direct broadcast source is used for direct broadcast, the second direct broadcast source is in a live broadcast active state, which is equivalent to that when the first direct broadcast source is used for direct broadcast (i.e. used as main direct broadcast), the second direct broadcast source is in a live broadcast backup state (i.e. live broadcast active state), and the state of collecting data of the direct broadcast stream is actually processed, except that no user side views the data. Through analyzing the live broadcast stream data of the first direct broadcast source, whether the first direct broadcast source is in a live broadcast fluency state can be judged, when the first direct broadcast source is not in the live broadcast fluency state, for example, live broadcast blocking occurs, when live broadcast pictures are not fluent to play, the second direct broadcast source can be directly turned over, a user watches live broadcast contents by acquiring the live broadcast stream data of the second direct broadcast source, stable data of the live broadcast data can be guaranteed through a double-live-broadcast source mode, and fluency and stability of live broadcast are guaranteed.
The live broadcast activation state comprises the steps of collecting main broadcast video and audio in real time, collecting courseware-free content in a live broadcast operation area, and pushing live broadcast stream data of a second live broadcast source obtained through collection to a push stream server corresponding to the second live broadcast source. That is, at the anchor end, the second live broadcast source collects video and audio information of the anchor in real time and pushes the video and audio information to the push server and the pull server of the background, and the pull server corresponding to the second live broadcast source can set corresponding data stream pull permission, so that when the first live broadcast source is normally live broadcast, the live broadcast content of the second live broadcast source cannot be received by a user end, and the single live broadcast source can be used for live broadcasting the teaching content of the anchor (i.e. a teaching teacher), so that the concentration and cohesiveness of users are improved, and the interaction experience between the anchor (i.e. the teaching teacher) and the users (i.e. the learner) is prevented from being influenced by the users scattered at different live broadcast sources.
When the second live broadcast source is in a live broadcast activation state, no courseware content exists in an operation area in the second live broadcast source, and no main broadcast operation exists in the operation area, namely, no actual main broadcast is performed in the second live broadcast source, and no main broadcast exists in the operation area, so that the second live broadcast source can be ensured to enter a live broadcast state at any moment, and meanwhile, the network resource rate of the second live broadcast source can be reduced before the real switching, thereby reducing the network load and improving the stability and reliability of the first live broadcast source in the live broadcast process.
It should be noted that, the first direct broadcast source and the second direct broadcast source are two independent direct broadcast channels, that is, two direct broadcast sources are configured with two different push channels and pull channels, so that when the first direct broadcast source is not smooth in direct broadcast, data transmission of the second direct broadcast source cannot be affected, and when the main broadcast is switched to the second direct broadcast source, the second direct broadcast source is guaranteed to have a stable data transmission channel, and smoothness and reliability of direct broadcast are guaranteed.
In one embodiment of the present disclosure, the first direct broadcast source and the second direct broadcast source may be two different sets of direct broadcast platforms, so as to implement dual-platform backup.
In this embodiment of the present disclosure, when the first direct broadcast source is not smooth, a direct broadcast switching signal is sent to the anchor, so that the anchor performs direct broadcast lecture through an operation area of the second direct broadcast source.
It can be understood that the two sets of live broadcast sources serving as the parallel live broadcast are equivalent to two sets of live broadcast equipment, so that when the first live broadcast source is live broadcast, the attention of a host and the operation area of courseware are on the first live broadcast source, and when the first live broadcast source is not smooth in live broadcast, the live broadcast needs to be switched to the second live broadcast source, and then the attention of the host needs to be switched to the live broadcast equipment of the second live broadcast source, thereby avoiding the situation that the host broadcast picture and the lecture content are not matched, and improving the quality of network teaching.
In some embodiments of the present disclosure, when the first direct broadcast source is not smooth, sending a direct broadcast switching signal to the anchor, so that the anchor performs direct broadcast teaching through an operation area of the second direct broadcast source, including:
when the first direct broadcasting source is not smooth in live broadcasting, a direct broadcasting source adjusting signal is sent to the anchor, so that the anchor adjusts the live broadcasting visual angle, and the adjusted visual angle is consistent with the operation visual angle of the second direct broadcasting source.
Therefore, the anchor can make the matching degree of the anchor and the second live broadcast source higher by adjusting the visual angle, so that the anchor can broadcast live broadcast through the second live broadcast source higher, smaller changes of the anchor and a live broadcast interface (namely an operation area) before and after switching are ensured, thereby realizing noninductive switching on a learner at a user side and ensuring continuity of a live broadcast teaching process.
Of course, in the live broadcast source switching process, the switching of the main broadcast video acquisition (such as a camera) and the audio acquisition device (such as a microphone) is also involved, in order to ensure the continuity and consistency before and after the switching, the first live broadcast source and the audio acquisition device in the second live broadcast source can be configured with the same parameters, and the installation angle and the installation position (with the corresponding live broadcast device) can be consistent, so that after the main visual angle is switched, the video acquisition device and the audio acquisition device of the second live broadcast source can acquire the data with the same range and tone quality as the corresponding acquisition device of the first live broadcast source, thereby ensuring the continuity and stability of video and audio.
In some other embodiments, the first direct broadcast source and the second direct broadcast source may use the same set of video capturing device and audio capturing device, so that consistency of video quality and audio quality before and after switching can be ensured, but on the basis of adjustment of a main broadcast viewing angle, angles of the corresponding video capturing device and audio capturing device also need to be adjusted accordingly, so that the main broadcast is in a proper video range, and the captured audio is in a better quality range, and other configurations of the video capturing device and the audio capturing device in the first direct broadcast source and the second direct broadcast source are also possible, which are not limited in the embodiments of the present specification.
In this embodiment of the present disclosure, as shown in fig. 3, when the first direct broadcast source has a live broadcast unsmooth, sending a live broadcast switching signal to the anchor, so that the anchor performs live broadcast teaching through an operation area of the second direct broadcast source further includes:
s201: when the first direct broadcasting source is not smooth in live broadcasting, acquiring current page information of courseware in an operation area of the first direct broadcasting source;
s202: copying courseware in the operation area of the first direct broadcast source to the operation area of the second direct broadcast source;
S203: and updating courseware in the operation area of the second live broadcast source to a corresponding page according to the current page information of the courseware in the operation area of the first live broadcast source, so that a host broadcast carries out live broadcast teaching through the courseware in the operation area of the second live broadcast source.
It can be understood that besides the adjustment of the attention of the host, the operating area of the second live broadcast source needs to be consistent with the state (i.e. the page of the courseware, such as the page of the PPT) of the operating area of the first live broadcast source before switching, so that a learner at the user side does not have a mutation picture when pulling the data in the second live broadcast source, and the continuity and quality of network teaching are ensured. Therefore, the progress of the host lesson can be obtained by acquiring the current page information of the courseware in the operation area of the first live broadcast source before switching, then the same courseware is copied in the operation area of the second live broadcast source, and then the page of the courseware is adjusted to the part of the host lesson, so that the automatic synchronization of the page information of the courseware is realized, the efficiency of switching the live broadcast sources is improved, the smoothness and the stability of live broadcast are greatly improved, and higher user learning experience is ensured.
In some other embodiments, the process of synchronizing courseware in the operation area of the second live broadcast source may also be implemented by manually turning pages by the host or by assisting in turning pages by a course assistant, so that interaction between the first live broadcast source and the second live broadcast source data may be reduced, thereby ensuring independence of the first live broadcast source and the second live broadcast source, and further enabling higher live broadcast stability of the first live broadcast source and the second live broadcast source.
In this embodiment of the present disclosure, as shown in fig. 4, the determining, according to the live stream data of the first live source, whether the first live source is in a live smooth state includes:
s301: calculating the live broadcast quality of the first direct broadcast source according to the acquisition frame rate and the code rate of the video and/or the audio of the first direct broadcast source in a preset time period;
s302: and judging whether the first live broadcast source is in a live broadcast fluency state according to the live broadcast quality.
The judging of the direct current fluency of the first direct current source can utilize the acquisition frame rate and the code rate of the video and/or the audio of the first direct current source. The live broadcast quality may be the quality of a live broadcast picture within a preset time period, where the preset time period may be set according to practical situations, for example, 5s, 10s, 30s, etc., and specific numerical values are not limited in the embodiments of the specification.
The frame rate is the number of frames of the collected pictures of the camera in unit time or the number of audio frames (or media frames) of the microphone in unit time, and the larger the frame rate is, the smoother the picture is and the better the quality of the picture is; the smaller the frame rate, the more dynamic the picture is jumped, the worse the picture quality, and in live broadcast scene, the camera acquisition frame rate can be 15 frames, and the audio acquisition frame is usually about 100 frames.
The code rate is the number of pictures or audios which are displayed in unit time and compressed, the higher the code rate is, the higher the definition of pictures and audios is, the higher the quality of video is, the lower the definition of pictures and audios is, the lower the quality of video is, the worse the quality of video is, for example, in a live broadcast scene, the code rate of video can be 900kbps, a test audio link before a live broadcast is performed, the code rate can be reduced to about 200kpbs when the pictures are still, and if the code rate is seriously reduced in the live broadcast process, for example, if about 200kpbs is reduced, the pictures can be stuck and dithered, and the watching quality is affected.
In this embodiment of the present disclosure, the calculating, according to an acquisition frame rate and a code rate of video and/or audio of the first direct broadcast source in a preset time period, a direct broadcast quality of the first direct broadcast source includes:
counting the total times that the acquisition frame rate and the code rate of the video and/or the audio of the first direct-broadcasting source in the preset time period are lower than the respective threshold value according to the acquisition frame rate and the code rate of the video and/or the audio of the first direct-broadcasting source in the preset time period;
when the total times are lower than preset times, determining that the first direct-seeding source is in a direct-seeding fluency state in the preset time period;
And when the total times are not lower than the preset times, determining that the first direct broadcast source is in a direct broadcast unsmooth state in the preset time period.
It may be understood that, in the embodiment of the present disclosure, whether the first direct broadcast source is in a fluent state in a preset time period is determined according to the change condition of the acquisition frame rate and the code rate of the video and/or the audio in the preset time period, where the sum of the number of times that the acquisition frame rate of the video and/or the audio is lower than the corresponding threshold value and the number of times that the code rate of the video and/or the audio is lower than the corresponding threshold value is taken as the total number of times, and the total number of times is compared with the preset number of times, when the total number of times exceeds the preset number of times, it is indicated that the number of times that the change of the live broadcast stream data of the first direct broadcast source in the preset time period is larger, so that the live broadcast stream is not smooth, and therefore the live broadcast quality in the preset time period is poor.
For example, the preset time period is 10s, taking the acquisition frame rate and the code rate of the video as examples, and the acquisition frame rate (unit: frame) obtained in the preset time period is: 12. 15, 13, 18, 20, 7, 10, 15, 13, 14; the acquired code rate (unit: kbps) is: 880. 860, 930, 430, 180, 230, 750, 150, 400, 1020; the threshold value set by the acquisition frame rate is 14, the threshold value set by the code rate is 300, the number of times that the actual acquisition frame rate is lower than the threshold value in a preset time period is 5, the number of times that the actual code rate is lower than the threshold value is 3, the total number of times is 8, the preset number of times is 7, the total number of times exceeds the preset number of times, and the first direct broadcasting source can be determined to be in a direct broadcasting unsmooth state in the preset time period.
The method comprises the steps of comparing specific collected data with corresponding threshold values to determine the times that the collected frame rate or code rate does not meet the requirements in a preset time period, so as to determine the live broadcast quality of a first direct broadcast source, and the fluency of live broadcast can be determined through the true value of the data.
In some other embodiments, the fluency of the live broadcast may also be determined by the degree of change of the data, and optionally, the calculating, according to the acquired frame rate and the code rate of the video and/or the audio of the first direct broadcast source in the preset time period, the live broadcast quality of the first direct broadcast source further includes:
according to the video and/or audio acquisition frame rate and the code rate of the first direct broadcast source in a preset time period, calculating and obtaining a stability coefficient of the acquisition frame rate and a stability coefficient of the code rate in the preset time period;
judging whether the stability coefficient of the acquisition frame rate is lower than a first threshold value and whether the stability coefficient of the code rate is lower than a second threshold value;
if the stability coefficient of the acquisition frame rate is lower than a first threshold value and the stability coefficient of the code rate is lower than a second threshold value, determining that the first direct broadcast source is in a direct broadcast fluent state in a preset time period;
if the stability coefficient of the acquisition frame rate is not lower than a first threshold value or the stability coefficient of the code rate is not lower than a second threshold value, determining that the first direct broadcast source is in a direct broadcast non-fluent state in a preset time period.
It may be understood that the stability factor may be a variation degree of an acquisition frame rate and a code rate of the video and/or audio in the preset time period by the first direct broadcast source, and the greater the stability factor, the greater the variation degree is indicated, which represents that the acquisition frame rate or the code rate of the video and/or audio is unstable in the preset time period, the greater variation degree is presented, and further, the living broadcast quality is indicated, and as an alternative, the stability factor may be a variance or a standard deviation of the acquisition frame rate and the code rate, which is not limited in the embodiment of the present specification.
The frame rate and the code rate are simultaneously judged, when one of the frame rate and the code rate are not met, the first direct-broadcasting source can be determined to be in a direct-broadcasting fluent state in a preset time period, and only when the frame rate and the code rate are met (namely, the stability coefficient of the frame rate is lower than a first threshold value and the stability coefficient of the code rate is lower than a second threshold value), the first direct-broadcasting source can be determined to be in the direct-broadcasting fluent state in the preset time period, wherein the first threshold value and the second threshold value are set according to actual conditions, and the method is not limited in the embodiment of the specification.
The step is to determine whether the data is stable in a preset time period or not through the variation degree of the real-time data, and when the stability coefficient is larger, the fluctuation of the acquired data (the acquired frame rate or the code rate) in the preset time period is larger, so that an unstable live broadcast picture can be watched at the user side, and poor live broadcast quality is caused, and therefore the live broadcast quality is obtained through the relativity of the live broadcast stream data, the accuracy of live broadcast fluency judgment can be improved, and the watching experience of the user side is ensured.
When the live broadcast source is required to be switched, as shown in fig. 5, optionally, when the first live broadcast source is not smooth in live broadcast, the live broadcast stream data pulling address of the user side is updated according to the address of the pulling server corresponding to the second live broadcast source, so that the user side views live broadcast content through the second live broadcast source, including:
s401: when the first direct broadcast source is not smooth in live broadcast, acquiring address information of a streaming server corresponding to the second direct broadcast source and a content distribution protocol of the first direct broadcast source;
s402: and adjusting the content distribution protocol according to the address information of the streaming server corresponding to the second live broadcast source and the content distribution protocol of the first live broadcast source so as to update the pulling address of the live broadcast stream data of the user side.
It may be understood that, in the embodiment of the present disclosure, by adjusting the content distribution protocol of the first live broadcast source, the adjusted content distribution protocol is matched with the second live broadcast source, so that the user side that can be the user side pulls live broadcast stream data in the pull stream server corresponding to the second live broadcast source, thereby implementing the noninductive switching of the pull stream channel at the user side, and guaranteeing the smoothness and stability of live broadcast.
In this embodiment of the present disclosure, according to address information of a streaming server corresponding to the second live broadcast source and a content distribution protocol of the first live broadcast source, adjusting the content distribution protocol to update a pull address of live broadcast stream data of the user side includes:
acquiring a pulling website position and a pulling website parameter in a content distribution protocol of the first live broadcast source;
and replacing the pulling website parameters according to the address information of the pulling server corresponding to the second live broadcast source and the pulling website position to obtain a content distribution protocol of the second live broadcast source, so that the user side obtains live broadcast stream data of the second live broadcast source according to the content distribution protocol of the second live broadcast source.
The change of the pulling channel of the user side can be realized rapidly by replacing the pulling website in the content distribution protocol, and the change of other configuration environments can be included in the actual change, and alternatively, the change can be automatically executed through a preset script, and when the switching of the live broadcast source is required, the corresponding script is directly triggered, so that the automatic change of the content distribution protocol and other configuration environments is realized, and the efficiency of the switching of the live broadcast source is improved.
In an embodiment of the present specification, the method further includes:
after the live broadcasting of the main broadcasting is completed, acquiring live stream data of the first live broadcasting source and the second live broadcasting source;
acquiring effective live stream data of the first live broadcast source and the second live broadcast source according to the live stream data of the first live broadcast source and the second live broadcast source and the switching time of the second live broadcast source;
and merging the effective live stream data of the first live source and the second live source so as to enable the user to obtain a complete live file.
It can be understood that, in order to enable a learner to repeatedly learn live course after live broadcast, the live files before and after switching are combined to obtain a complete live broadcast file, when specific combination is performed, the integrity of the effective data in the first live broadcast source and the integrity of the effective data in the second live broadcast source can be obtained, the integrity can be judged through the size of the live broadcast time or the file, the determination of the live broadcast time or the file with larger size is higher, then the file with higher data integrity is taken as the main, the file with lower data integrity is taken as the auxiliary, and the live broadcast file is combined and repaired, so that the complete live broadcast file is obtained, and the repairing process can include the combination of video pictures and the combination of audio.
According to the video live broadcast switching method provided by the embodiment of the specification, when live broadcast of the first direct broadcast source is not smooth, live broadcast can be taken over through the second direct broadcast source by setting up the double direct broadcast sources, so that the live broadcast smoothness and stability caused by the fault of the first direct broadcast source are avoided, a live broadcast reconstruction room is not needed by a platform for constructing parallel live broadcast in advance, a user does not need to reenter the live broadcast room, and the user experience is improved.
As shown in fig. 6, for the operation system of the video live broadcast switching method provided in the embodiment of the present disclosure, two independent live broadcast sources are set, and each set of live broadcast sources has an independent data transmission channel, so that the mutual influence of the two live broadcast sources is avoided, the two sets of live broadcast sources are ensured to have independent fluency, the two live broadcast sources are in a parallel live broadcast state, when one of the live broadcast sources has a live broadcast unsmooth state, the main broadcasting end is adjusted to the other live broadcast source to perform live broadcast, and the corresponding background data flow channel is also adjusted, so that the switching in the live broadcast process can be effectively realized through the two sets of independent live broadcast sources, and the fluency of live broadcast is ensured.
Based on the same inventive concept, the embodiment of the present disclosure further provides a live video switching device, as shown in fig. 7, where the device includes:
A live stream data acquisition module 100, configured to acquire live stream data of a first direct broadcast source in real time, where the live stream data includes video stream data and/or audio stream data;
the judging module 200 is configured to judge whether the first live broadcast source is in a live broadcast fluency state according to live broadcast stream data of the first live broadcast source;
and the switching module 300 updates the live stream data pulling address of the user terminal according to the address of the pulling server corresponding to the second live broadcast source when the live broadcast of the first live broadcast source is not smooth, so that the user terminal views live broadcast contents through the second live broadcast source.
The beneficial effects obtained by the device are consistent with those obtained by the method, and the embodiments of the present disclosure are not repeated.
As shown in fig. 8, for a computer device provided in this embodiment, an apparatus herein may be a computer device in this embodiment, performing the method described herein, where the computer device 802 may include one or more processors 804, such as one or more Central Processing Units (CPUs), each of which may implement one or more hardware threads. The computer device 802 may also include any memory 806 for storing any kind of information, such as code, settings, data, etc. For example, and without limitation, memory 806 may include any one or more of the following combinations: any type of RAM, any type of ROM, flash memory devices, hard disks, optical disks, etc. More generally, any memory may store information using any technique. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent fixed or removable components of computer device 802. In one case, the computer device 802 may perform any of the operations of the associated instructions when the processor 804 executes the associated instructions stored in any memory or combination of memories. The computer device 802 also includes one or more drive mechanisms 808, such as a hard disk drive mechanism, an optical disk drive mechanism, and the like, for interacting with any memory.
The computer device 802 may also include an input/output module 810 (I/O) for receiving various inputs (via input device 812) and for providing various outputs (via output device 814)). One particular output mechanism may include a presentation device 816 and an associated Graphical User Interface (GUI) 818. In other embodiments, input/output module 810 (I/O), input device 812, and output device 814 may not be included, but merely as a computer device in a network. The computer device 802 may also include one or more network interfaces 820 for exchanging data with other devices via one or more communication links 822. One or more communications buses 824 couple the above-described components together.
The communication link 822 may be implemented in any manner, such as, for example, through a local area network, a wide area network (e.g., the internet), a point-to-point connection, etc., or any combination thereof. Communication link 822 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc., governed by any protocol or combination of protocols.
Corresponding to the method in fig. 2-5, embodiments herein also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above method.
Embodiments herein also provide a computer readable instruction wherein the program therein causes the processor to perform the method as shown in fig. 2 to 5 when the processor executes the instruction.
It should be understood that, in the various embodiments herein, the sequence number of each process described above does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments herein.
It should also be understood that in embodiments herein, the term "and/or" is merely one relationship that describes an associated object, meaning that three relationships may exist. For example, a and/or B may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the elements may be selected according to actual needs to achieve the objectives of the embodiments herein.
In addition, each functional unit in the embodiments herein may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions herein are essentially or portions contributing to the prior art, or all or portions of the technical solutions may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments herein. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Specific examples are set forth herein to illustrate the principles and embodiments herein and are merely illustrative of the methods herein and their core ideas; also, as will be apparent to those of ordinary skill in the art in light of the teachings herein, many variations are possible in the specific embodiments and in the scope of use, and nothing in this specification should be construed as a limitation on the invention.

Claims (11)

1. The live video switching method is characterized by being applied to a first live video source and a second live video source which are live in parallel, wherein the first live video source and the second live video source are respectively provided with a corresponding push server and a corresponding pull server, when the first live video source is in a live video state, the second live video source is in a live video activation state, the live video activation state comprises the steps of collecting main video and audio in real time, and a live video operation area has no courseware content, and the live video stream data of the collected second live video source is pushed to the corresponding push server of the second live video source, and the method comprises the following steps:
acquiring live stream data of a first direct-broadcasting source in real time, wherein the live stream data comprise video stream data and/or audio stream data; judging whether the first live broadcast source is in a live broadcast fluency state according to live broadcast stream data of the first live broadcast source;
When the live broadcasting of the first direct broadcasting source is not smooth, updating the live broadcasting stream data pulling address of the user terminal according to the address of the pulling server corresponding to the second direct broadcasting source so that the user terminal views the live broadcasting content through the second direct broadcasting source;
when the first direct broadcasting source is not smooth in live broadcasting, a live broadcasting switching signal is sent to a host, so that the host can conduct live broadcasting teaching through an operation area of a second direct broadcasting source;
when the first direct broadcasting source is not smooth in live broadcasting, acquiring current page information of courseware in an operation area of the first direct broadcasting source;
copying courseware in the operation area of the first direct broadcast source to the operation area of the second direct broadcast source;
and updating courseware in the operation area of the second live broadcast source to a corresponding page according to the current page information of the courseware in the operation area of the first live broadcast source, so that a host broadcast carries out live broadcast teaching through the courseware in the operation area of the second live broadcast source.
2. The method of claim 1, wherein when the first direct broadcast source is not smooth, sending a direct broadcast switching signal to the anchor, so that the anchor performs direct broadcast lecture through an operation area of a second direct broadcast source, comprising:
When the first direct broadcasting source is not smooth in live broadcasting, a direct broadcasting source adjusting signal is sent to the anchor, so that the anchor adjusts the live broadcasting visual angle, and the adjusted visual angle is consistent with the operation visual angle of the second direct broadcasting source.
3. The method of claim 1, wherein the determining whether the first live source is in a live fluent state according to live stream data of the first live source comprises:
calculating the live broadcast quality of the first direct broadcast source according to the acquisition frame rate and the code rate of the video and/or the audio of the first direct broadcast source in a preset time period;
and judging whether the first live broadcast source is in a live broadcast fluency state according to the live broadcast quality.
4. A method according to claim 3, wherein said calculating the live quality of the first live source from the acquisition frame rate and the code rate of the video and/or audio of the first live source over a preset time period comprises:
counting the total times that the acquisition frame rate and the code rate of the video and/or the audio of the first direct-broadcasting source in the preset time period are lower than the respective threshold value according to the acquisition frame rate and the code rate of the video and/or the audio of the first direct-broadcasting source in the preset time period;
When the total times are lower than preset times, determining that the first direct-seeding source is in a direct-seeding fluency state in the preset time period;
and when the total times are not lower than the preset times, determining that the first direct broadcast source is in a direct broadcast unsmooth state in the preset time period.
5. The method of claim 3, wherein the calculating the live quality of the first live source according to the acquisition frame rate and the code rate of the video and/or audio of the first live source in a preset time period further comprises:
according to the video and/or audio acquisition frame rate and the code rate of the first direct broadcast source in a preset time period, calculating and obtaining a stability coefficient of the acquisition frame rate and a stability coefficient of the code rate in the preset time period;
judging whether the stability coefficient of the acquisition frame rate is lower than a first threshold value and whether the stability coefficient of the code rate is lower than a second threshold value;
if the stability coefficient of the acquisition frame rate is lower than a first threshold value and the stability coefficient of the code rate is lower than a second threshold value, determining that the first direct broadcast source is in a direct broadcast fluent state in a preset time period;
if the stability coefficient of the acquisition frame rate is not lower than a first threshold value or the stability coefficient of the code rate is not lower than a second threshold value, determining that the first direct broadcast source is in a direct broadcast non-fluent state in a preset time period.
6. The method of claim 1, wherein when the first direct broadcast source is not smooth, updating the live broadcast stream data pulling address of the user terminal according to the address of the streaming server corresponding to the second direct broadcast source, so that the user terminal views the live broadcast content through the second direct broadcast source, including:
when the first direct broadcast source is not smooth in live broadcast, acquiring address information of a streaming server corresponding to the second direct broadcast source and a content distribution protocol of the first direct broadcast source;
and adjusting the content distribution protocol according to the address information of the streaming server corresponding to the second live broadcast source and the content distribution protocol of the first live broadcast source so as to update the pulling address of the live broadcast stream data of the user side.
7. The method of claim 6, wherein adjusting the content distribution protocol according to the address information of the pull stream server corresponding to the second live broadcast source and the content distribution protocol of the first live broadcast source to update the pull address of the live stream data of the user terminal includes:
acquiring a pulling website position and a pulling website parameter in a content distribution protocol of the first live broadcast source;
And replacing the pulling website parameters according to the address information of the pulling server corresponding to the second live broadcast source and the pulling website position to obtain a content distribution protocol of the second live broadcast source, so that the user side obtains live broadcast stream data of the second live broadcast source according to the content distribution protocol of the second live broadcast source.
8. The method according to claim 1, wherein the method further comprises:
after the live broadcasting of the main broadcasting is completed, acquiring live stream data of the first live broadcasting source and the second live broadcasting source;
acquiring effective live stream data of the first live broadcast source and the second live broadcast source according to the live stream data of the first live broadcast source and the second live broadcast source and the switching time of the second live broadcast source;
and merging the effective live stream data of the first live source and the second live source so as to enable the user to obtain a complete live file.
9. A live video switching device, the device comprising:
the live stream data acquisition module is used for acquiring live stream data of a first direct-broadcasting source in real time, wherein the live stream data comprise video stream data and/or audio stream data;
the judging module is used for judging whether the first live broadcast source is in a live broadcast fluency state according to the live broadcast stream data of the first live broadcast source;
The switching module is used for updating the live stream data pulling address of the user terminal according to the address of the pulling server corresponding to the second live broadcast source when the first live broadcast source is not smooth in live broadcast, so that the user terminal views live broadcast contents through the second live broadcast source;
when the first direct broadcasting source is not smooth in live broadcasting, a live broadcasting switching signal is sent to a host, so that the host can conduct live broadcasting teaching through an operation area of a second direct broadcasting source;
when the first direct broadcasting source is not smooth in live broadcasting, acquiring current page information of courseware in an operation area of the first direct broadcasting source;
copying courseware in the operation area of the first direct broadcast source to the operation area of the second direct broadcast source;
and updating courseware in the operation area of the second live broadcast source to a corresponding page according to the current page information of the courseware in the operation area of the first live broadcast source, so that a host broadcast carries out live broadcast teaching through the courseware in the operation area of the second live broadcast source.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 8 when the computer program is executed.
11. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.
CN202111311611.4A 2021-11-08 2021-11-08 Live video switching method, device, equipment and storage medium Active CN114025204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111311611.4A CN114025204B (en) 2021-11-08 2021-11-08 Live video switching method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111311611.4A CN114025204B (en) 2021-11-08 2021-11-08 Live video switching method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114025204A CN114025204A (en) 2022-02-08
CN114025204B true CN114025204B (en) 2024-02-13

Family

ID=80062287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111311611.4A Active CN114025204B (en) 2021-11-08 2021-11-08 Live video switching method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114025204B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116419035B (en) * 2023-06-09 2023-08-22 深圳市华曦达科技股份有限公司 Video playing detection method, device, equipment and computer readable storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212673A (en) * 2006-12-29 2008-07-02 盛趣信息技术(上海)有限公司 Device and method for inserting and controlling advertisements in audio/video playing
CN104349178A (en) * 2014-11-21 2015-02-11 赛特斯信息科技股份有限公司 System and method for required real-time transcoding and self-adaptive code rate stream media playing
CN105472443A (en) * 2016-01-13 2016-04-06 杭州当贝网络科技有限公司 Direct broadcast source control method and system
CN108063950A (en) * 2017-12-26 2018-05-22 郑州威科姆科技股份有限公司 A kind of live streaming classroom implementation method
CN108347654A (en) * 2017-01-23 2018-07-31 北京新唐思创教育科技有限公司 Online live-mode switching device and method
CN108810559A (en) * 2018-05-31 2018-11-13 北京达佳互联信息技术有限公司 Field-of-view mode switching method, the transmission method of device and live data, device
CN108810439A (en) * 2018-08-06 2018-11-13 郑艳茹 A kind of intelligence true three-dimensional virtual interaction recording live broadcast system
CN109040830A (en) * 2017-06-08 2018-12-18 武汉斗鱼网络科技有限公司 Prediction technique, switching method and the device of live play Caton
CN109447048A (en) * 2018-12-25 2019-03-08 苏州闪驰数控系统集成有限公司 A kind of artificial intelligence early warning system
CN109640106A (en) * 2018-12-10 2019-04-16 网宿科技股份有限公司 A kind of method and device of the multi-source station switching of live broadcast system
WO2019183235A1 (en) * 2018-03-21 2019-09-26 Second Spectrum, Inc. Methods and systems of spatiotemporal pattern recognition for video content development
CN112804554A (en) * 2021-04-06 2021-05-14 北京百家视联科技有限公司 Live broadcast playback method, live broadcast playback system, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9900362B2 (en) * 2014-02-11 2018-02-20 Kiswe Mobile Inc. Methods and apparatus for reducing latency shift in switching between distinct content streams
US11275949B2 (en) * 2014-02-28 2022-03-15 Second Spectrum, Inc. Methods, systems, and user interface navigation of video content based spatiotemporal pattern recognition

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212673A (en) * 2006-12-29 2008-07-02 盛趣信息技术(上海)有限公司 Device and method for inserting and controlling advertisements in audio/video playing
CN104349178A (en) * 2014-11-21 2015-02-11 赛特斯信息科技股份有限公司 System and method for required real-time transcoding and self-adaptive code rate stream media playing
CN105472443A (en) * 2016-01-13 2016-04-06 杭州当贝网络科技有限公司 Direct broadcast source control method and system
CN108347654A (en) * 2017-01-23 2018-07-31 北京新唐思创教育科技有限公司 Online live-mode switching device and method
CN109040830A (en) * 2017-06-08 2018-12-18 武汉斗鱼网络科技有限公司 Prediction technique, switching method and the device of live play Caton
CN108063950A (en) * 2017-12-26 2018-05-22 郑州威科姆科技股份有限公司 A kind of live streaming classroom implementation method
WO2019183235A1 (en) * 2018-03-21 2019-09-26 Second Spectrum, Inc. Methods and systems of spatiotemporal pattern recognition for video content development
CN108810559A (en) * 2018-05-31 2018-11-13 北京达佳互联信息技术有限公司 Field-of-view mode switching method, the transmission method of device and live data, device
CN108810439A (en) * 2018-08-06 2018-11-13 郑艳茹 A kind of intelligence true three-dimensional virtual interaction recording live broadcast system
CN109640106A (en) * 2018-12-10 2019-04-16 网宿科技股份有限公司 A kind of method and device of the multi-source station switching of live broadcast system
CN109447048A (en) * 2018-12-25 2019-03-08 苏州闪驰数控系统集成有限公司 A kind of artificial intelligence early warning system
CN112804554A (en) * 2021-04-06 2021-05-14 北京百家视联科技有限公司 Live broadcast playback method, live broadcast playback system, electronic equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《Adaptive Source-FEC Coding for Energy-Efficient Surveillance Video Over Wireless Networks》;Jiyan Wu;《 IEEE Transactions on Communications 》;第66卷(第5期);全文 *
《融媒技术创新在"Live南京"城市直播频道的应用》;孙星辰;《中国有线电视》(第6期);全文 *
《高清视频流采集录播系统的研究与实现》;李斌;中国优秀硕士学位论文全文数据库;全文 *

Also Published As

Publication number Publication date
CN114025204A (en) 2022-02-08

Similar Documents

Publication Publication Date Title
WO2020168499A1 (en) Screen-sharing teaching method, apparatus and system, and smart device and storage medium
JP6430653B2 (en) Image synchronous display method and apparatus
EP3055761B1 (en) Framework for screen content sharing system with generalized screen descriptions
US20090265487A1 (en) Method and System For Synchronization Indicator Enabled Sharing
CN111723558A (en) Document display method and device, electronic equipment and storage medium
CN110072133B (en) On-screen display method and system
CN114025204B (en) Live video switching method, device, equipment and storage medium
CN109982134B (en) Video teaching method based on diagnosis equipment, diagnosis equipment and system
CN103561106A (en) System and method for remote teaching and remote meeting
CN112399132A (en) Application method of virtual reality technology in teleconferencing system
CN111262920A (en) Data synchronization method, interactive electronic whiteboard and server
CN111131757A (en) Video conference display method, device and storage medium
US8161113B2 (en) Rich signaling feedback mechanism for group communication
CN111161592B (en) Classroom supervision method and supervising terminal
WO2021115255A1 (en) Method, apparatus, and system for evaluating sensation of vr experience
Baftiu et al. The transformation process from in-campus classes into online classes due to the COVID-19 situation--the case of higher education institutions in Kosovo
CN114040218B (en) Live video switching method, device, equipment and storage medium
CN113870631B (en) Service processing system and method
Locatis et al. A virtual computer lab for distance biomedical technology education
CN111766998B (en) Data interaction method and device, electronic equipment and computer readable storage medium
CN113259314A (en) Split screen display method and device, terminal equipment and storage medium
CN110033660B (en) Interactive teaching system
CN111897657A (en) Remote teaching method, scheduling equipment, server and electronic equipment
CN113345281A (en) Intelligent teaching system
US20120301863A1 (en) Interactive Learning Network

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