CN108055245A - Internet video live broadcasting method, device, electronic equipment and computer storage media - Google Patents
Internet video live broadcasting method, device, electronic equipment and computer storage media Download PDFInfo
- Publication number
- CN108055245A CN108055245A CN201711217862.XA CN201711217862A CN108055245A CN 108055245 A CN108055245 A CN 108055245A CN 201711217862 A CN201711217862 A CN 201711217862A CN 108055245 A CN108055245 A CN 108055245A
- Authority
- CN
- China
- Prior art keywords
- plug
- flow
- video
- current
- video file
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
- H04L65/762—Media network packet handling at the source
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/80—Responding to QoS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/266—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
An embodiment of the present invention provides a kind of internet video live broadcasting method, device, electronic equipment and computer storage medias.Wherein, this method is applied to network main broadcaster end;This method includes:When receive break instruction when, the video file pre-saved is inserted into the position of current plug-flow in plug-flow queue;Wherein, the video file pre-saved includes at least one of video or image, audio, word;The position of current plug-flow from plug-flow queue carries out plug-flow to the video file being inserted into.The embodiment of the present invention solves the technical issues of network direct broadcasting video how to be avoided to stop by taking above-mentioned technical proposal.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of internet video live broadcasting method, device, electronic equipment
And computer storage media.
Background technology
With the development of network technology, internet video live broadcasting becomes more and more popular since it is interactive strong.People can incite somebody to action
The activity such as oneself activity, talk show, electronic game outdoors shooting carries out internet video live broadcasting into video.
During internet video live broadcasting, if network main broadcaster has temporarily, thing is pending, for example, receiving calls, checking
Wechat etc., network main broadcaster needs to temporarily cease carry out video stream pushing, to suspend net cast, wait processing finish feelings and then into
Row video stream pushing recovers internet video live broadcasting.
Therefore, in existing internet video live broadcasting, when network main broadcaster has thing temporarily, due to thrust in needing temporarily
Stream, thus there are the defects of the cutout of network direct broadcasting video.
The content of the invention
The embodiment of the present invention is designed to provide a kind of internet video live broadcasting method, device, electronic equipment and computer
Storage medium, with solve how to avoid network direct broadcasting video stop the technical issues of.
To achieve these goals, in a first aspect, providing following technical scheme:
A kind of internet video live broadcasting method, applied to network main broadcaster end, the described method includes:
When receive break instruction when, the video file pre-saved is inserted into the position of current plug-flow in plug-flow queue;
Wherein, the video file includes at least one of video or image, audio, word;
The position of current plug-flow from the plug-flow queue carries out plug-flow to the video file being inserted into.
Optionally, in the position of the plug-flow current from the plug-flow queue, to the video file that is inserted into
After the step of row plug-flow, the method further includes:
When receiving play instruction, the video gathered by video capture device is inserted into current in the plug-flow queue
The position of plug-flow;
The position of current plug-flow, pushes away the video gathered by video capture device from the plug-flow queue
Stream.
Optionally, the position of the plug-flow current from the plug-flow queue carries out the video file being inserted into
The step of plug-flow, includes:
The position of current plug-flow, encodes the video file being inserted into, is compiled from the plug-flow queue
Code data;
The coded data is packaged;
By Streaming transfer protocol by the data sending after encapsulation to high in the clouds;Wherein, the high in the clouds and the network master
End is broadcast to be connected.
Optionally, described the step of being packaged to the coded data, includes:
The coded data is packaged according to Streaming Media encapsulation format.
To achieve these goals, second aspect additionally provides following technical scheme:
A kind of internet video live broadcasting device, applied to network main broadcaster end, described device includes:
First insertion module, for when receive break instruction when, by the video file pre-saved be inserted into plug-flow queue
In current plug-flow position;Wherein, the video file includes at least one of video or image, audio, word;
First plug-flow module, for the position of the current plug-flow from the plug-flow queue, to the video recording text being inserted into
Part carries out plug-flow.
Optionally, described device further includes:
Second insertion module, for when receiving play instruction, the video gathered by video capture device to be inserted into
The position of current plug-flow in the plug-flow queue;
Second plug-flow module, for the position of the current plug-flow from the plug-flow queue, to described by video capture device
The video gathered carries out plug-flow.
Optionally, the first plug-flow module includes:
Coding unit, for the position of the current plug-flow from the plug-flow queue, to the video file that is inserted into
Row coding, obtains coded data;
Encapsulation unit, for being packaged to the coded data;
Transmitting element, for passing through Streaming transfer protocol by the data sending after encapsulation to high in the clouds;Wherein, the high in the clouds
It is connected with the network main broadcaster end.
Optionally, the encapsulation unit is specifically used for being packaged the coded data according to Streaming Media encapsulation format.
To achieve these goals, the third aspect additionally provides following technical scheme:
A kind of electronic equipment, including processor, communication interface, memory and communication bus, wherein, the processor, institute
It states communication interface and the memory and mutual communication is completed by the communication bus;
The memory, for storing computer program;
The processor during for performing the program stored on memory, realizes the method and step described in first aspect.
To achieve these goals, fourth aspect additionally provides following technical scheme:
A kind of computer readable storage medium, the computer readable storage medium memory contains computer program, described
The method and step described in first aspect is realized when computer program is executed by processor.
The embodiment of the present invention provides a kind of internet video live broadcasting method, device, electronic equipment and computer storage media.Its
In, this method is applied to network main broadcaster end;This method includes:When receive break instruction when, the video file that will pre-save
It is inserted into the position of current plug-flow in plug-flow queue;Wherein, the video file pre-saved includes video or image, audio, word
At least one of;The position of current plug-flow from plug-flow queue carries out plug-flow to the video file being inserted into.The present invention is implemented
Example by taking above-mentioned technical proposal, by current live, the video that is gathered by image capture device is switched to and pre-saves
Video file, it may thereby be ensured that plug-flow content is continuous, so it is interim busy in network main broadcaster and can be with when needing to break
The defects of ensuring the continuous of network direct broadcasting video, overcoming the cutout of existing network live video.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that being emerged from by implementing the present invention.The purpose of the present invention and other advantages can by specification,
Specifically noted structure is realized and obtained in claims and attached drawing.
Certainly, implement any of the products of the present invention or method it is not absolutely required at the same reach all the above excellent
Point.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the implementation environment schematic diagram according to the embodiment of the present invention;
Fig. 2 is the flow diagram according to the internet video live broadcasting method of the embodiment of the present invention;
Fig. 3 for current plug-flow in the slave plug-flow queue according to the embodiment of the present invention position to the video file that is inserted into
The flow diagram of row plug-flow;
Fig. 4 is the flow diagram according to the internet video live broadcasting method of further embodiment of the present invention;
Fig. 5 is the structure diagram according to the internet video live broadcasting device of the embodiment of the present invention;
Fig. 6 is the structure diagram according to the internet video live broadcasting device of another embodiment of the present invention;
Fig. 7 is the structure diagram according to the first plug-flow module of the embodiment of the present invention;
Fig. 8 is the structure diagram according to the electronic equipment of the embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment belongs to the scope of protection of the invention.
Illustratively the realization environment of the present invention is described in detail by specific embodiment with reference to Fig. 1.
As shown in Figure 1, the realization environment includes network main broadcaster end 11, communication link 12, high in the clouds 13 and client 14.Its
In, network main broadcaster end 11 is using RTMP (Real Time Messaging Protocol, real-time messages transport protocol), by logical
Letter link 12 is connected with high in the clouds 13;Client 14 is drawn from high in the clouds to flow, and obtains Internet video.
Network main broadcaster end 11 includes image capture device and RTMP encoders.Network main broadcaster end 11 can include but unlimited
In mobile phone, tablet computer, desktop computer etc..Image capture device includes but not limited to video camera, camera etc..Network main broadcaster
End 11 is for will be by video stream pushing that image capture device obtains to high in the clouds 13, by the content push being broadcast live to high in the clouds.
High in the clouds 13 includes streaming media server, signaling scheduling server and mixed flow server etc..High in the clouds 13 is according to resolution ratio
With bandwidth required during code check setting internet video live broadcasting.For example, it is 1000kbps that if resolution ratio, which is 1280 ╳ 720, code check,
Then bandwidth at least needs 1.2Mbps.
Client 14 obtains the Internet video of live streaming by way of drawing and flowing from high in the clouds.The client 14 can be mobile phone,
Tablet computer, desktop computer, wearable device etc., but it is not limited to this.
In order to realize network direct broadcasting, live streaming output address can be configured at network main broadcaster end 11, which uses
In live data plug-flow that input source gets will be broadcast live to high in the clouds 13;The high in the clouds 13 is configured with direct broadcast band and live streaming input ground
Location.
Here, plug-flow refers to the process of push or be transmitted to high in the clouds 13 from network main broadcaster end 11 by video.
At present, during internet video live broadcasting, if network main broadcaster has temporarily, thing is pending, for example, receive calls,
Check wechat etc., then network main broadcaster needs to temporarily cease carry out video stream pushing, and it is complete that event handling is done in wait, then recovers video and push away
Stream.Therefore, it is temporary due to needing when network main broadcaster has thing to need to handle temporarily during existing internet video live broadcasting
When stop plug-flow and there are the defects of the cutout of network direct broadcasting video.In consideration of it, a kind of Internet video of offer of the embodiment of the present invention is straight
Broadcasting method.This method is applied to network main broadcaster end.As shown in Fig. 2, the method comprising the steps of S200 and step S210.
S200:When receive break instruction when, the video file pre-saved is inserted into current plug-flow in plug-flow queue
Position;Wherein, video file includes at least one of video or image, audio, word.
In this step, breaking instruction can be triggered by network main broadcaster.Triggering mode includes but not limited to:Network main broadcaster touches
HOME keys on hair smart mobile phone send a telegram here, receive wechat, receiving short message, network main broadcaster and switch on network main broadcaster end times
Meaning application program starts arbitrary new application program etc..For example, carried out when network main broadcaster rectifies in the video to collecting
During plug-flow, phone is received suddenly, for this purpose, network main broadcaster needs to receive calls temporarily, is stopped at this point, network main broadcaster can trigger
Instruction is broadcast, with the Internet video of pause live streaming.
It, can be by treat the content assignment of plug-flow unique ID (Identification, sequence in the embodiment of the present invention
Number), to identify the position of the content for treating plug-flow in plug-flow queue.Insertion operation in the present embodiment can be by with lower section
Formula is realized:When receive break instruction when, distribute an ID for the video file that pre-saves, which represents video file to work as
Before treat plug-flow content, i.e., it is previous treat plug-flow content be pushed after and need the content being pushed.
Above-mentioned video can be video in film, animation, game or the predetermined scene that is gathered etc..The video can match somebody with somebody
To break prompting audio and/or break prompt text etc., prompting video is broken in formation, for prompting network main broadcaster to spectators
It is away from keyboard or of short duration break.
Above-mentioned image can be with the arbitrary image for breaking prompt message.The image can be equipped with specific break and prompt letter
The word and/or audio of breath, for prompting network main broadcaster away from keyboard to spectators or of short duration breaking.
Above-mentioned audio can have to break voice, music of prompt message etc..
S210:The position of current plug-flow from plug-flow queue carries out plug-flow to the video file being inserted into.
In practical applications, this step can by the ID distributed for video file come transfer the video file and to its into
Row plug-flow is realized.Wherein, plug-flow can be by RTMP by the content transmission in plug-flow queue to high in the clouds.Specifically, high in the clouds has
There is plug-flow address;Network main broadcaster end sets the plug-flow address, and configures the plug-flows parameters such as I frame per second, resolution ratio, then network
Main broadcaster end obtains the plug-flow address in high in the clouds by dynamic domain name resolution method, sends plug-flow request to high in the clouds, and is receiving cloud
After the plug-flow response message for holding feedback, be inserted into video file is pushed to the plug-flow address, so as to fulfill plug-flow.Wherein, cloud
End can be server cluster, which can include streaming media server.
The present embodiment is through the above technical solutions, when network main broadcaster has thing to need to handle temporarily, by from when being pushed forward
The content of current plug-flow is replaced with the video pre-saved by the position of stream, so as to avoid the cutout of network direct broadcasting video, really
The continuity of network direct broadcasting video is protected.
In some optional embodiments, as shown in figure 3, step S210 specifically may include steps of S211 to step
S213。
S211:The position of current plug-flow, encodes the video file being inserted into, obtains coded number from plug-flow queue
According to.
Wherein, if video file is video, it may be employed H.264, H.265 etc. that video code models are encoded.
If video file is audio, AAC (AdvancedAudioCoding, Advanced Audio Coding), MP3 (Moving may be employed
Picture Experts Group Audio Layer III, a kind of audio coding mode) etc. audio coding formats compiled
Code.
In addition, the embodiment of the present invention can also be realized by third party's network plug-flow encoder (for example, RTMP encoders)
Coding.In practical applications, for example, the video capture device (for example, camera) at network main broadcaster end will collect video output
To RTMP encoders, then, RTMP encoders encode the video collected.
This step can also configure relevant parameter when being encoded, can be to such as by taking Video coding as an example
The parameters such as the wide height of video pictures, frame per second, code check are initialized;Then, video is compiled according to H.264 video format
Code.Video is encoded by using H264 forms, the video data encoder of high code-rate, and fault-tolerant ability can be obtained
By force, can be adapted on different types of network be passed, so as to possess the advantages of network adaptability is strong.In order to ensure live streaming
Picture it is optimal, this step can also determine optimal balance point between the parameters such as resolution ratio, code check and frame per second.Again using audio as
Example, can initialize the audio frequency parameters such as sample rate, port number, digit;Then, according to AAC forms to audio into
Row coding.Audio is encoded by using AAC forms, the coded audio data of high code-rate can be obtained, it can be ensured that
Better tonequality.
This step is by encoding video file, to reduce the volume of file, so as to improve efficiency of transmission.
S212:Coded data is packaged.
Wherein, encapsulation refers to the file that coded data is packaged into a specification.In general, encapsulation uses container by coded number
According to being packaged with.Wherein, container refers to the standard for combining coded data.Video, sound can be realized by container
Frequently, subtitle, the synchronization of chapters and sections information and their index.
It being played simultaneously between the middle realization different multimedia of subsequent step (for example, drawing stream) by encapsulation.
S213:By Streaming transfer protocol by the data sending after encapsulation to high in the clouds;Wherein, high in the clouds and network main broadcaster end
It is connected.
Wherein, Streaming transfer protocol includes but not limited to RTMP, HLS a kind of (Streaming Media real-time Transmission based on HTTP
Agreement), WebRTC (Web Real-Time Communication, from webpage instant messaging).Wherein, RTMP is based on TCP
The protocol suite of (transmission control protocol), the procotol as real-time data communication.WebRTC is that a support browser carries out
The open source protocol of real-time voice, video conversation.
In practical applications, this step can obtain high in the clouds address by dynamic domain name resolution method, as plug-flow
Address, then, by Streaming transfer protocol by the data-pushing after encapsulation to high in the clouds.Wherein, which can be by URL
(Uniform Resoure Locator, uniform resource locator) represents.
Certainly, it is arbitrary existing or from now on it will be understood by those skilled in the art that except above-mentioned plug-flow mode is only for example
It is being likely to occur, in a manner that Streaming transfer protocol is by the data sending after encapsulation to high in the clouds, if can be suitably used for the present invention,
It then should also be included within protection scope of the present invention, for example, the embodiment of the present invention can also utilize third party's plug-flow instrument will
Data sending after encapsulation to high in the clouds, for example, this moment TV plug-flows instrument, OBS plug-flows instrument, Xsplit plug-flows instrument,
Livestudio plug-flow instruments etc..In specific implementation process, the high in the clouds address pushed (i.e. plug-flow address) is inputted the 3rd
Video and/or audio is pushed to high in the clouds by square plug-flow instrument, then, third party's plug-flow instrument.These apparent modifications are equally replaced
The mode changed is herein incorporated by reference herein.
In some optional embodiments, on the basis of above-described embodiment, the step of being packaged to coded data, wraps
It includes:
Coded data is packaged according to Streaming Media encapsulation format.
Such as FLV (Flash Video, a kind of video encapsulation form), TS (Transport may be employed in this step
Stream, a kind of video encapsulation form of high-definition camera shooting) etc. packing forms coded data is packaged.For video
The situation that audio is packaged is equipped with, AVI (Audio Video Interleaved, Audio Video Interleaved lattice can also be used
Formula) coded audio data is packaged.
Preferably, FLV video formats may be employed in practical applications, the data file obtained packaged by the form is small,
And the speed that network main broadcaster end loads it is fast, so that the Internet video being broadcast live is more smooth.
With specific embodiment, the present invention is described in detail below.The present embodiment with network main broadcaster by smart mobile phone into
It is illustrated exemplified by row internet video live broadcasting.
Internet video live broadcasting method provided in this embodiment includes the following steps 1-4.
Step 1:Network main broadcaster carries out net cast by smart mobile phone and using the camera on the smart mobile phone.
In this step, network main broadcaster by by the video that the camera on smart mobile phone collects into performing network living broadcast.
Step 2:When network main broadcaster termination receives call-in reporting, network main broadcaster is sent by HMOE buttons to smart mobile phone
Break instruction, while the camera on smart mobile phone stops video acquisition.
In this step, network main broadcaster for example can break finger by the HOME buttons on smart mobile phone to smart mobile phone transmission
Order.Meanwhile the camera on smart mobile phone can be controlled to stop video acquisition by operating systems such as Andriod, IOS.
Step 3:When smart mobile phone, which receives this, breaks instruction, break prompting video insertion plug-flow team by what is pre-saved
The position of current plug-flow in row.
Wherein, this is broken prompting video and is used to prompt network main broadcaster away from keyboard to spectators.This is broken can in prompting video
Break prompt text to be equipped with and/or break suggestion voice.
Step 4:The position of current plug-flow from the plug-flow queue carries out plug-flow to the prompting video of breaking being inserted into.
This step is realized to plug-flow content not by carrying out plug-flow to breaking prompting video from the position of current plug-flow
Interruption is replaced.
The present embodiment by taking above-mentioned technical proposal, receive break instruction when, by current plug-flow, by intelligence
The video of camera acquisition on energy mobile phone, which replaces with, breaks prompting video, and the video of plug-flow is replaced, is continued
Plug-flow operates without interruption plug-flow;Meanwhile the plug-flow video replaced is to break prompting video, has and breaks prompt message,
To provide the prompting of network main broadcaster pause net cast to spectators.The present embodiment realizes network main broadcaster in pause video as a result,
During live streaming, the technique effect that internet video live broadcasting video does not stop is prompted and ensured to spectators.
In some optional embodiments, in the position of the current plug-flow from plug-flow queue, to the video file being inserted into
After the step of carrying out plug-flow, as shown in figure 4, the internet video live broadcasting method can also include the following steps S220 and step
S230.Wherein:
S220:When receiving play instruction, by the video gathered by video capture device be inserted into plug-flow queue in when
The position of preceding plug-flow.
Wherein, video capture device can be camera etc..The video that the video capture device is gathered can be comprising
The video of network main broadcaster's current active.This step can by comprising the video of network main broadcaster's current active be inserted into plug-flow queue in when
The position of preceding plug-flow.
S230:The position of current plug-flow from plug-flow queue carries out plug-flow to the video gathered by video capture device.
Wherein, if the video that video capture device is gathered is the video for including network main broadcaster's current active, this step
Suddenly plug-flow is carried out to the video comprising network main broadcaster's current active, it is current so as to which the Internet video of live streaming is switched to network main broadcaster
Activity, it is possible thereby to make network main broadcaster recover net cast.
For example, when network main broadcaster has handled interim thing, to continue net cast, then network main broadcaster can
To trigger play instruction at network main broadcaster end, stop to breaking prompting video progress plug-flow, and to being adopted by video capture device
The video of collection carries out plug-flow.
Wherein, stop carrying out the video file that is inserted into plug-flow, and to by the video that video capture device gathers into
The implementation process of row plug-flow, with stopping carrying out the video gathered by video capture device plug-flow, and to the video recording text of insertion
The implementation process that part carries out plug-flow is similar, may be referred to foregoing related explanation, details are not described herein.
The Internet video of current live can be switched to by video acquisition by the present embodiment by taking above-mentioned technical proposal
The video that equipment is gathered.By taking the video that the video capture device is gathered is network main broadcaster's video as an example, pass through above-mentioned technology
Scheme can recover the net cast to network main broadcaster.
During internet video live broadcasting, if network main broadcaster has temporarily, thing is pending, for example, receiving calls, checking
Wechat and/or short message etc., then network main broadcaster need to temporarily cease carry out video stream pushing, it is complete that event handling is done in wait, then recovers to regard
Frequency plug-flow.Therefore, during existing internet video live broadcasting, when network main broadcaster has thing to need to handle temporarily, due to needing
Temporarily to stop plug-flow and there are the defects of the cutout of network direct broadcasting video.In consideration of it, the embodiment of the present invention also provides a kind of network
Net cast device, applied to network main broadcaster end.The internet video live broadcasting device can be used for performing above-mentioned internet video live broadcasting
Embodiment of the method.As shown in figure 5, the internet video live broadcasting device includes:
First insertion module 51, for when receive break instruction when, by the video file pre-saved insertion plug-flow team
The position of current plug-flow in row;Wherein, video file includes at least one of video or image, audio, word;
First plug-flow module 52 for the position of the current plug-flow from plug-flow queue, carries out the video file being inserted into
Plug-flow.
In the present embodiment, when receive break instruction when, first insertion module 51 be pre-save video file distribution
One ID, the ID represent video file currently to treat plug-flow content, i.e., it is previous treat plug-flow content be pushed after and need by
The content of push.Then, the first plug-flow module 52 is by the ID distributed for video file, the position of current plug-flow from plug-flow queue
It puts, transfer the video file and plug-flow is carried out to it.
The present embodiment is inserted in the current plug-flow of plug-flow queue by the first insertion module 51 by taking above-mentioned technical proposal
Video file is inserted into position, then carries out plug-flow to the video file by the first plug-flow module 52 again;It is thus achieved that current
The Internet video of current live is switched to video file by the switching of the Internet video of live streaming;For example, if video file is
Break prompting video, then the Internet video of current live is switched to by above-mentioned technical proposal breaks prompting video.Therefore, network is worked as
Main broadcaster has thing to need to handle temporarily when, the embodiment of the present invention can be avoided the cutout of network direct broadcasting video, it is ensured that network
The continuity of live video.
In some optional embodiments, as shown in fig. 6, on the basis of above-described embodiment, internet video live broadcasting device
It can also include:
Second insertion module 53, for when receiving play instruction, the video gathered by video capture device to be inserted
Enter the position of current plug-flow in plug-flow queue.
Wherein, video capture device can be camera etc..The video that the video capture device is gathered can be comprising
The video of network main broadcaster's current active.The content that network main broadcaster to be broadcast live can be inserted by plug-flow team by the second insertion module
Row.
Second plug-flow module 54, for the position of the current plug-flow from plug-flow queue, to being gathered by video capture device
Video carry out plug-flow.
Wherein, if the video that video capture device is gathered is the video for including network main broadcaster's current active, second
Plug-flow module carries out plug-flow to the video comprising network main broadcaster's current active, so as to which the Internet video of live streaming is switched to network master
Current activity is broadcast, it is possible thereby to which network main broadcaster is made to recover net cast.
The present embodiment can utilize the second insertion module and the second plug-flow module will be current by taking above-mentioned technical proposal
The Internet video of live streaming is switched to the video gathered by video capture device.Using the video that the video capture device is gathered as
Exemplified by network main broadcaster's video, by the second insertion module and the second plug-flow module, the net cast to network main broadcaster can be recovered.
In some optional embodiments, as shown in fig. 7, the first plug-flow module includes:
Coding unit 71 for the position of the current plug-flow from plug-flow queue, encodes the video file being inserted into,
Obtain coded data;
Wherein, coding unit 71 may be employed H.264, H.265 video code models and/or the AAC such as
(AdvancedAudioCoding, Advanced Audio Coding), MP3 (Moving Picture Experts Group Audio
Layer III, a kind of audio coding mode) etc. audio coding formats, the video file being inserted into is encoded.
It is of course also possible to third party's network plug-flow encoder (for example, RTMP encoders) is called to realize the record to being inserted into
As the coding of file.
Video file is encoded by coding unit 71, the size of video file can be compressed, in order to subsequently push away
That flows is smooth.
Encapsulation unit 72, for being packaged to coded data;
Wherein, coded data is packaged by encapsulation unit 72, can realizes the synchronization between different multimedia.Example
Such as, the stream stage is being drawn, can realizing being played simultaneously for video and audio.
In some optional embodiments, encapsulation unit is specifically used for carrying out coded data according to Streaming Media encapsulation format
Encapsulation.
Wherein, Streaming transfer protocol include but not limited to RTMP (Real Time Messaging Protocol, in real time
Message transmission protocol), HLS (a kind of Streaming Media real-time transport protocol based on HTTP), WebRTC (Web Real-Time
Communication, from webpage instant messaging).Wherein, RTMP is the protocol suite based on TCP (transmission control protocol), is used as
The procotol of real-time data communication.WebRTC is that a support browser carries out real-time voice, the open source protocol of video conversation.
Transmitting element 73, for passing through Streaming transfer protocol by the data sending after encapsulation to high in the clouds;Wherein, high in the clouds with
Network main broadcaster end is connected.
Above-mentioned internet video live broadcasting device embodiment can perform above-mentioned internet video live broadcasting method embodiment, realize former
Reason is similar with advantageous effect, can be mutually referring to for convenience of description and succinctly, details are not described herein.
The technical issues of in order to solve how to avoid network direct broadcasting video to stop, based on the technology identical with embodiment of the method
Design, the embodiment of the present invention additionally provide a kind of electronic equipment, as shown in figure 8, including processor 81, communication interface 82, storage
Device 83 and communication bus 84, wherein, processor 81, communication interface 82, memory 83 is completed mutual by communication bus 84
Communication,
Memory 83, for storing computer program;
Processor 81 during for performing the program stored on memory 83, realizes the side described in above method embodiment
Method step.
The communication bus 84 that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral
Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just
It is only represented in expression, Fig. 8 with a thick line, it is not intended that an only bus or a type of bus.
Above-mentioned communication interface 82 is for the communication between above-mentioned electronic equipment and other equipment.
Above-mentioned memory 83 can include random access memory (Random Access Memory, RAM), can also wrap
Include nonvolatile memory (non-volatile memory, NVM), for example, at least a magnetic disk storage.Optionally, store
Device can also be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor 81 can be general processor, including central processing unit (Central Processing
Unit, abbreviation CPU), network processing unit (Ne twork Processor, NP) etc.;It can also be digital signal processor
(Digital Signal Processing, DSP), application-specific integrated circuit (Applica tion Specific Integrated
Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other can
Programmed logic device, discrete gate or transistor logic, discrete hardware components.
Above-mentioned electronic equipment includes but not limited to smart mobile phone, computer, tablet computer, personal digital assistant etc..
In the present embodiment, the program stored on memory 83 is performed by processor 81, by current live, pass through figure
As the video that collecting device gathers is switched to the video file pre-saved, it may thereby be ensured that plug-flow content is continuous, and then
And while needing break interim busy in network main broadcaster, may insure the continuous of network direct broadcasting video, overcomes existing network live streaming and regards
The defects of frequency stops.
The technical issues of in order to solve how to avoid network direct broadcasting video to stop, based on the technology identical with embodiment of the method
Design, the embodiment of the present invention additionally provide a kind of computer readable storage medium.The computer readable storage medium memory contains
Computer program realizes the method and step in above-described embodiment when computer program is executed by processor.
It will be understood by those skilled in the art that above computer program can include some instructions, so that computing device
(for example, personal computer, server etc.) performs the method and step described in any of the above-described internet video live broadcasting method embodiment.
Above computer readable storage medium storing program for executing can include but is not limited to random access memory (RAM), dynamic random is deposited
Access to memory (DRAM), static RAM (SRAM), read-only memory (ROM), programmable read only memory
(PROM), Erarable Programmable Read only Memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory (example
Such as, NOR type flash memory or NAND-type flash memory), Content Addressable Memory (CAM), polymer memory is (for example, ferroelectric polymers
Memory), phase transition storage, ovonic memory, silicon-oxide-nitride silicon-silica-silicon (Silicon-
Oxide-Nitride-Oxide-Silicon, SONOS) memory, magnetic card or light-card, also or any other appropriate type
Computer readable storage medium.
In the present embodiment, when computer program is executed by processor, by current live, gathered by image capture device
Video be switched to the video file pre-saved, it may thereby be ensured that plug-flow content is continuous, and then interim in network main broadcaster
Busy and while needing to break, may insure the continuous of network direct broadcasting video, the defects of overcoming the cutout of existing network live video.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those
Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
Also there are other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is described using relevant mode, the highlights of each of the examples are with
The difference of other embodiment, just to refer each other for identical similar part between each embodiment.It is real especially for device
For applying example, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modifications, equivalent replacements and improvements are made within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of internet video live broadcasting method, applied to network main broadcaster end, which is characterized in that the described method includes:
When receive break instruction when, the video file pre-saved is inserted into the position of current plug-flow in plug-flow queue;Wherein,
The video file includes at least one of video or image, audio, word;
The position of current plug-flow from the plug-flow queue carries out plug-flow to the video file being inserted into.
2. according to the method described in claim 1, it is characterized in that, in the position of the plug-flow current from the plug-flow queue
After the step of putting, plug-flow is carried out to the video file being inserted into, the method further includes:
When receiving play instruction, the video gathered by video capture device is inserted into current plug-flow in the plug-flow queue
Position;
The position of current plug-flow from the plug-flow queue carries out plug-flow to the video gathered by video capture device.
3. according to the method described in claim 1, it is characterized in that, the position of the plug-flow current from the plug-flow queue,
The step of carrying out plug-flow to the video file being inserted into includes:
The position of current plug-flow, encodes the video file being inserted into, obtains coded number from the plug-flow queue
According to;
The coded data is packaged;
By Streaming transfer protocol by the data sending after encapsulation to high in the clouds;Wherein, the high in the clouds and the network main broadcaster end
It is connected.
4. according to the method described in claim 3, it is characterized in that, described the step of being packaged to the coded data wrap
It includes:
The coded data is packaged according to Streaming Media encapsulation format.
5. a kind of internet video live broadcasting device, applied to network main broadcaster end, which is characterized in that described device includes:
First insertion module, for when receive break instruction when, by the video file pre-saved be inserted into plug-flow queue in when
The position of preceding plug-flow;Wherein, the video file includes at least one of video or image, audio, word;
First plug-flow module, for the position of the current plug-flow from the plug-flow queue, to the video file that is inserted into
Row plug-flow.
6. device according to claim 5, which is characterized in that described device further includes:
Second insertion module, will be described in the video that gathered as video capture device insertion for when receiving play instruction
The position of current plug-flow in plug-flow queue;
Second plug-flow module for the position of the current plug-flow from the plug-flow queue, is adopted to described by video capture device
The video of collection carries out plug-flow.
7. device according to claim 5, which is characterized in that the first plug-flow module includes:
Coding unit for the position of the current plug-flow from the plug-flow queue, is compiled the video file being inserted into
Code, obtains coded data;
Encapsulation unit, for being packaged to the coded data;
Transmitting element, for passing through Streaming transfer protocol by the data sending after encapsulation to high in the clouds;Wherein, the high in the clouds and institute
Network main broadcaster end is stated to be connected.
8. device according to claim 7, which is characterized in that the encapsulation unit is specifically used for encapsulating lattice according to Streaming Media
Formula is packaged the coded data.
9. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein, it is described
Processor, the communication interface and the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor during for performing the program stored on memory, realizes any method steps of claim 1-4
Suddenly.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium memory contains computer
Program realizes claim 1-4 any method and steps when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711217862.XA CN108055245A (en) | 2017-11-28 | 2017-11-28 | Internet video live broadcasting method, device, electronic equipment and computer storage media |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711217862.XA CN108055245A (en) | 2017-11-28 | 2017-11-28 | Internet video live broadcasting method, device, electronic equipment and computer storage media |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108055245A true CN108055245A (en) | 2018-05-18 |
Family
ID=62121040
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711217862.XA Pending CN108055245A (en) | 2017-11-28 | 2017-11-28 | Internet video live broadcasting method, device, electronic equipment and computer storage media |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108055245A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108737884A (en) * | 2018-05-31 | 2018-11-02 | 腾讯科技(深圳)有限公司 | A kind of content recordal method and its equipment, storage medium, electronic equipment |
CN110958465A (en) * | 2019-12-17 | 2020-04-03 | 广州酷狗计算机科技有限公司 | Video stream pushing method and device and storage medium |
CN111629255A (en) * | 2020-05-20 | 2020-09-04 | 广州视源电子科技股份有限公司 | Audio and video recording method and device, computer equipment and storage medium |
CN113038181A (en) * | 2021-03-15 | 2021-06-25 | 中国科学院计算机网络信息中心 | Start-stop audio fault tolerance method and system in RTMP audio and video plug flow under Android platform |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105933720A (en) * | 2016-04-28 | 2016-09-07 | 徐文波 | Live video release notification method and device |
CN106101806A (en) * | 2016-07-04 | 2016-11-09 | 天脉聚源(北京)传媒科技有限公司 | A kind of method for processing video frequency when sharing live video and device |
CN107071503A (en) * | 2017-02-09 | 2017-08-18 | 腾讯科技(深圳)有限公司 | The method of net cast, device and live connect streaming server |
CN107241615A (en) * | 2017-07-31 | 2017-10-10 | 合网络技术(北京)有限公司 | Live pause method, system, live pause device and direct broadcast server |
-
2017
- 2017-11-28 CN CN201711217862.XA patent/CN108055245A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105933720A (en) * | 2016-04-28 | 2016-09-07 | 徐文波 | Live video release notification method and device |
CN106101806A (en) * | 2016-07-04 | 2016-11-09 | 天脉聚源(北京)传媒科技有限公司 | A kind of method for processing video frequency when sharing live video and device |
CN107071503A (en) * | 2017-02-09 | 2017-08-18 | 腾讯科技(深圳)有限公司 | The method of net cast, device and live connect streaming server |
CN107241615A (en) * | 2017-07-31 | 2017-10-10 | 合网络技术(北京)有限公司 | Live pause method, system, live pause device and direct broadcast server |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108737884A (en) * | 2018-05-31 | 2018-11-02 | 腾讯科技(深圳)有限公司 | A kind of content recordal method and its equipment, storage medium, electronic equipment |
CN108737884B (en) * | 2018-05-31 | 2022-05-10 | 腾讯科技(深圳)有限公司 | Content recording method and equipment, storage medium and electronic equipment |
CN110958465A (en) * | 2019-12-17 | 2020-04-03 | 广州酷狗计算机科技有限公司 | Video stream pushing method and device and storage medium |
CN111629255A (en) * | 2020-05-20 | 2020-09-04 | 广州视源电子科技股份有限公司 | Audio and video recording method and device, computer equipment and storage medium |
CN113038181A (en) * | 2021-03-15 | 2021-06-25 | 中国科学院计算机网络信息中心 | Start-stop audio fault tolerance method and system in RTMP audio and video plug flow under Android platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11128893B2 (en) | Live streaming method and system, server, and storage medium | |
CN108055245A (en) | Internet video live broadcasting method, device, electronic equipment and computer storage media | |
CN103581699B (en) | Video playing method, streaming media server and streaming media playing system | |
US8321905B1 (en) | Fast switching of media streams | |
US20170111414A1 (en) | Video playing method and device | |
CN110430441B (en) | Cloud mobile phone video acquisition method, system, device and storage medium | |
CN102025965B (en) | Video talking method and visual telephone | |
CN103581698B (en) | Terminal device and video data releasing method | |
CN108040038A (en) | The live method of network interdynamic, network main broadcaster end and user terminal | |
CN108200447A (en) | Live data transmission method, device, electronic equipment, server and storage medium | |
CN107948666A (en) | Internet video live broadcasting method, device, electronic equipment and computer-readable storage medium | |
CN105451071A (en) | Video stream processing method, device and system | |
CN106658110A (en) | Screen projection method and system | |
CN108174242A (en) | Live data multiplexing method, device, storage medium and equipment | |
CN109862386A (en) | Live data transmission method and device | |
CN113573003A (en) | Weak network-based audio and video real-time communication method, device and equipment | |
CN103634694A (en) | IP-based streaming media playing method and system | |
CN114793225B (en) | Data communication method and system for cloud mobile phone and true mobile phone | |
CN103561013A (en) | Streaming media data distributing system | |
CN108401126A (en) | Sound sharing means, terminal and sound sharing method | |
CN112153322B (en) | Data distribution method, device, equipment and storage medium | |
CN114449295A (en) | Video processing method and device, electronic equipment and storage medium | |
KR20130077246A (en) | Method and system for reducing excessive process of panorama moving picture by cpu on smart-tv | |
US10171545B2 (en) | System for transferring real-time audio/video stream | |
CN112532719A (en) | Information flow pushing method, device, equipment and computer readable storage medium |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180518 |
|
WD01 | Invention patent application deemed withdrawn after publication |