CN109729370A - A kind of net cast stream generating method, device and electronic equipment - Google Patents
A kind of net cast stream generating method, device and electronic equipment Download PDFInfo
- Publication number
- CN109729370A CN109729370A CN201811528395.7A CN201811528395A CN109729370A CN 109729370 A CN109729370 A CN 109729370A CN 201811528395 A CN201811528395 A CN 201811528395A CN 109729370 A CN109729370 A CN 109729370A
- Authority
- CN
- China
- Prior art keywords
- video
- gasket
- slice file
- live
- play
- 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
Abstract
The embodiment of the invention discloses a kind of net cast stream generating method, device and electronic equipments, this method comprises: when needing to play live video, from the live signal that video capture device acquires, obtain live video data, when needing to play gasket video, the gasket video data of the gasket video is obtained;By acquired video data to be played, it is cut into slice file, includes the frame image data of preset quantity in each slice file, which is the above-mentioned live video data and above-mentioned gasket video data obtained;Using the frame image data in above-mentioned slice file, net cast stream is generated.Using the embodiment of the present invention, it can be based on needing to select live video data or gasket video data to generate net cast stream, that is, realize the addition gasket video in net cast stream.
Description
Technical field
The present invention relates to the multimedia live broadcast technical fields in network technique field, more particularly to a kind of net cast stream
Generation method, device and electronic equipment.
Background technique
Currently, with the fast development of network technology, internet video live broadcasting has obtained wider application, for example, party
Grand ceremony live streaming, concert live streaming, sports event live broadcast, commercial distribution can be broadcast live, show field live streaming, game live streaming etc., network video
Live streaming can be convenient spectators and watch whenever and wherever possible, to obtain better viewing experience.
Inventor has found that at least there are the following problems for the prior art in the implementation of the present invention:
In the practical application for internet video live broadcasting, it is often necessary to add some specific views in net cast stream
Frequently, for example, propaganda film, countdown short-movie, advertisement video etc., can be referred to as gasket video for this kind of particular video frequency.
Therefore, how to realize and effectively add gasket video in net cast stream, become current urgent problem to be solved.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of net cast stream generating method, device and electronic equipment, with reality
Gasket video is added in present net cast stream.Specific technical solution is as follows:
The embodiment of the invention provides a kind of net cast stream generating methods, which comprises
When needing to play live video, from the live signal that video capture device acquires, live video data is obtained,
When needing to play gasket video, the gasket video data of the gasket video is obtained;
By acquired video data to be played, it is cut into slice file, includes present count in each slice file
The frame image data of amount, the video data to be played are the live video data and the gasket video data obtained;
Using the frame image data in the slice file, net cast stream is generated.
Further, it in the video data to be played that will acquire, is cut into after slice file, further includes:
The obtained slice file is stored in buffer area in a manner of Slice Sequence;
The method also includes:
The buffering is monitored before generating net cast stream using the frame image data in the slice file for the first time
Whether the Slice Sequence stored in area reaches preset quantity;
If reaching the preset quantity, the frame image data using in the slice file is executed, view is generated
The step of frequency live stream.
Further, it in the video data to be played that will acquire, is cut into after slice file, further includes:
The obtained slice file is stored in buffer area in a manner of Slice Sequence;
The method also includes:
The buffering is monitored before generating net cast stream using the frame image data in the slice file for the first time
Whether the memory space in area has expired;
If the memory space of the buffer area has been expired, the frame picture number using in the slice file is executed
According to, generate net cast stream the step of.
Further, it determines the need for playing live video using following steps:
When receiving the live video play instruction for being used to indicate broadcasting live video, determine that needing to play live streaming regards
Frequently;Or
When monitoring the first default playing time arrival for indicating to start to play live video, determination needs to play
Live video;
It determines the need for playing gasket video using following steps:
When receiving the gasket video playing instruction for being used to indicate and playing gasket video, determines and need to play gasket view
Frequently;Or
When monitoring the second default playing time arrival for indicating to start to play gasket video, determination needs to play
Gasket video.
Further, described by acquired video data to be played, it is cut into slice file, comprising:
Acquired video data to be played is cut into slice file according to preset frame rate.
Further, the frame image data using in the slice file, generates net cast stream, comprising:
According to default live stream encapsulation format, the frame image data in the slice file is packaged, video is obtained
Video data packet in live stream.
The embodiment of the invention also provides a kind of net cast stream generating apparatus, described device includes:
Module is obtained, for from the live signal that video capture device acquires, obtaining when needing to play live video
Live video data obtains the gasket video data of the gasket video when needing to play gasket video;
Cutting module, for being cut into slice file, each slice file for acquired video data to be played
In include preset quantity frame image data, the video data to be played be acquisition the live video data and the pad
Piece video data;
Generation module generates net cast stream for using the frame image data in the slice file.
Further, described device further include:
Memory module, for, by acquired video data to be played, being cut into after slice file, obtaining described
The slice file be stored in buffer area in the method for Slice Sequence;
Monitoring module, for using the frame image data in the slice file for the first time, before generating net cast stream,
Monitor whether the Slice Sequence stored in the buffer area reaches preset quantity;If reaching the preset quantity, institute is triggered
State the step of generation module executes the frame image data using in the slice file, generates net cast stream.
Further, described device further include:
Memory module, for, by acquired video data to be played, being cut into after slice file, obtaining described
The slice file be stored in buffer area in the method for Slice Sequence;
Monitoring module, for using the frame image data in the slice file for the first time, before generating net cast stream,
Whether the memory space for monitoring the buffer area has expired;If the memory space of the buffer area has been expired, the generation is triggered
The step of module executes the frame image data using in the slice file, generates net cast stream.
Further, described device further include:
Determining module plays live video for determining the need for using following steps:
When receiving the live video play instruction for being used to indicate broadcasting live video, determine that needing to play live streaming regards
Frequently;Alternatively, determination needs to play when monitoring the first default playing time arrival for indicating to start to play live video
Live video;
The determining module is also used to determine the need for using following steps to play gasket video:
When receiving the gasket video playing instruction for being used to indicate and playing gasket video, determines and need to play gasket view
Frequently;Alternatively, determination needs to play when monitoring the second default playing time arrival for indicating to start to play gasket video
Gasket video.
Further, the cutting module, is specifically used for:
Acquired video data to be played is cut into slice file according to preset frame rate.
Further, the generation module, is specifically used for:
According to default live stream encapsulation format, the frame image data in the slice file is packaged, video is obtained
Video data packet in live stream.
The embodiment of the invention also provides a kind of electronic equipment, including processor, communication interface, memory and communication are total
Line, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any of the above-described net cast stream generating method
The step of.
Further, the electronic equipment is cloud device.
The embodiment of the invention also provides a kind of computer readable storage medium, the computer readable storage medium memory
Computer program is contained, the computer program realizes the step of any of the above-described net cast stream generating method when being executed by processor
Suddenly.
The embodiment of the invention also provides a kind of computer program products comprising instruction, when it runs on computers
When, so that computer executes any of the above-described net cast stream generating method.
The embodiment of the present invention the utility model has the advantages that
A kind of net cast stream generating method provided in an embodiment of the present invention, when needing to play live video, from video
In the live signal for acquiring equipment acquisition, obtains live video data and obtain the gasket video when needing to play gasket video
Gasket video data be cut into slice file then by acquired video data to be played, wrapped in each slice file
The frame image data of preset quantity is included, which is the above-mentioned live video data and above-mentioned gasket video obtained
Data generate net cast stream then using the frame image data in above-mentioned slice file.Using provided in an embodiment of the present invention
Above-mentioned net cast stream generating method can be based on needing to select live video data or gasket video data to generate net cast
Stream realizes the addition gasket video in net cast stream.
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.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described.
Fig. 1 is a kind of flow diagram of net cast stream generating method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another net cast stream generating method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of net cast stream generating apparatus provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.
The embodiment of the invention provides a kind of net cast stream generating methods, as shown in Figure 1, may include steps of:
Step 101, when needing to play live video, from video capture device acquire live signal in, obtain live streaming
Video data obtains the gasket video data of the gasket video when needing to play gasket video;
Step 102, by acquired video data to be played, be cut into slice file, include in each slice file
The frame image data of preset quantity, the video data to be played are the above-mentioned live video data and above-mentioned gasket video counts obtained
According to;
Step 103 uses the frame image data in above-mentioned slice file, generation net cast stream.
Using above-mentioned net cast stream generating method provided in an embodiment of the present invention, can be based on needing to select live video
Data or gasket video data generate net cast stream, that is, realize the addition gasket video in net cast stream.
With reference to the accompanying drawing, it to above-mentioned net cast stream generating method provided in an embodiment of the present invention, is described in detail.
Net cast stream generating method provided in an embodiment of the present invention can be held by the electronic equipment for being located at live streaming scene
Row, can also be executed by cloud device, below in one example, for being executed by cloud device, to the embodiment of the present invention
The net cast stream generating method of offer, is described in detail, as shown in Fig. 2, may include steps of:
Step 201, from video capture device acquire live signal in, obtain live video data.
In the embodiment of the present invention, during net cast, the video capture device positioned at live streaming scene is for live streaming
Scene carries out video acquisition, and the live signal collected is uploaded to cloud device, and cloud device is receiving live streaming letter
After number, live video data is obtained from live signal, which will be used as video data to be played, and after entrance
Continuous step 205.
Step 202 monitors whether to need to play gasket video, continues to monitor if it is not, then returning to this step, if so,
203 are entered step, and enters step 204.
In this step, it can start to play gasket video at what time determine according to actual needs, for example, when receiving
When being used to indicate the gasket video playing instruction for playing gasket video, determination needs to play gasket video, alternatively, when monitoring use
When the second default playing time for indicating to start to play gasket video reaches, determination needs to play gasket video, wherein gasket
Video playing instruction can come from controlling terminal, and controlling terminal can be located at live streaming scene, can also be located at cloud.
Step 203, the gasket video data for obtaining gasket video.
In this step, specifically, gasket video data can also be uploaded to cloud device by the terminal device at live streaming scene,
The gasket video data of gasket video can also be obtained by cloud device from gasket video file, gasket video file can be with
To be stored in advance beyond the clouds.
Acquired gasket video data in this step will also be used as video data to be played, and enter subsequent step
205。
In the embodiment of the present invention, when obtaining gasket video data as video data to be played, it is straight that acquisition can be suspended
Broadcast video data.
Step 204 monitors whether to need to play live video, continues to monitor if it is not, then returning to this step, if so,
201 are entered step, and enters step 202.
In this step, it can start to play live video at what time determine according to actual needs, for example, when receiving
When being used to indicate the live video play instruction for playing live video, determination needs to play live video;Alternatively, when monitoring use
When the first default playing time for indicating to start to play live video reaches, determination needs to play live video, wherein live streaming
Video playing instruction can come from controlling terminal, and controlling terminal can be located at live streaming scene, can also be located at cloud.
Step 205, by acquired video data to be played, be cut into slice file, include in each slice file
The frame image data of preset quantity, the video data to be played are the above-mentioned live video data and above-mentioned gasket video counts obtained
According to.
In this step, specifically, can be cut into acquired video data to be played according to preset frame rate
Piece file, for example, by taking the gasket video data of acquisition as an example, it is assumed that the gasket video be resolution ratio be 1080p, frame per second is
The mp4 file of 25fps, then the gasket video data can be with the speed quilt of 25fps when preset frame per second is 25fps
Multiple slice files are cut into, that is, can include the frame picture number of 25 pictures in each slice file obtained after cutting
According to.
Obtained above-mentioned slice file is stored in buffer area by step 206 in a manner of file sequence.
Step 207 obtains above-mentioned slice file from the buffer area, obtains the frame image data in the slice file.
Specifically, in one embodiment, after starting live streaming, before obtaining slice file for the first time, this can be monitored
Buffer area storage slice file whether reach preset quantity, if reaching the preset quantity, from the buffer area obtain on
State slice file.
Specifically, in another embodiment, after starting live streaming, before obtaining slice file for the first time, can monitor
Whether the storage of the buffer area has expired, if the memory space of the buffer area has been expired, above-mentioned slice is obtained from the buffer area
File.
As can be seen that above-mentioned slice file is first stored in buffer area, the slice file to buffer area storage reaches
After the memory space of preset quantity and/or the buffer area has been expired, then above-mentioned slice file is obtained from the buffer area, it in this way can be with
The phenomenon that avoiding since network condition is bad, and interrupting net cast.
Step 208 uses the frame image data in the slice file, generation net cast stream.
It in this step, specifically, can be according to default live stream encapsulation format, to the frame image in above-mentioned slice file
Data are packaged, and obtain the video data packet in net cast stream, wherein preset encapsulation format can be with are as follows: RTMP (Real
Time Messaging Protocol, real-time messages transport protocol), RTP/RTSP (Real-time Transport
Protocol/Real Time Streaming Protocol, real-time transport protocol/real time streaming transport protocol), HLS (HTTP
Live Streaming, the stream media network transport protocol based on HTTP).Wherein, HTTP (HyperText Transfer
It Protocol) is hypertext transfer protocol.
Using net cast stream generating method provided in an embodiment of the present invention, can be based on needing to select live video data
Or gasket video data generates net cast stream, that is, realizes in net cast stream addition gasket video, and can be to avoid
Since network condition is bad, and the phenomenon that interrupt net cast.
Referring to Fig. 3, Fig. 3 is a kind of structural schematic diagram of net cast stream generating apparatus provided in an embodiment of the present invention, with
Process shown in FIG. 1 is corresponding, the apparatus may include:
Module 301 is obtained, for when needing to play live video, from the live signal that video capture device acquires,
It obtains live video data and obtains the gasket video data of the gasket video when needing to play gasket video;
Cutting module 302, for being cut into slice file for acquired video data to be played, each slice text
It include the frame image data of preset quantity in part, which is the above-mentioned live video data and above-mentioned pad obtained
Piece video data.
Generation module 303 generates net cast stream for using the frame image data in above-mentioned slice file.
Further, the device further include:
Memory module should by what is obtained for being cut into after slice file by acquired video data to be played
Slice file is stored in buffer area in the method for Slice Sequence;
Monitoring module, for using the frame image data in the slice file, before generating net cast stream, prison for the first time
Control whether the Slice Sequence stored in the buffer area reaches preset quantity;If reaching above-mentioned preset quantity, the generation is triggered
The step of module is executed using the frame image data in the slice file, generates net cast stream.
Further, the device further include:
Memory module should by what is obtained for being cut into after slice file by acquired video data to be played
Slice file is stored in buffer area in the method for Slice Sequence;
Monitoring module, for using the frame image data in the slice file, before generating net cast stream, prison for the first time
Whether the memory space for controlling the buffer area has expired;If the memory space of the buffer area has been expired, generation module execution is triggered
Using the frame image data in the slice file, the step of generating net cast stream.
Further, the device further include:
Determining module plays live video for determining the need for using following steps:
When receiving the live video play instruction for being used to indicate broadcasting live video, determine that needing to play live streaming regards
Frequently;Alternatively, determination needs to play when monitoring the first default playing time arrival for indicating to start to play live video
Live video;
Determining module is also used to determine the need for using following steps to play gasket video:
When receiving the gasket video playing instruction for being used to indicate and playing gasket video, determines and need to play gasket view
Frequently;Alternatively, determination needs to play when monitoring the second default playing time arrival for indicating to start to play gasket video
Gasket video.
Further, cutting module 302 are specifically used for:
Acquired video data to be played is cut into slice file according to preset frame rate.
Further, generation module 303 are specifically used for:
According to default live stream encapsulation format, the frame image data in the slice file is packaged, it is straight to obtain video
Broadcast the video data packet in stream.
The embodiment of the invention also provides a kind of electronic equipment, which can be cloud device, as shown in figure 4,
Including processor 401, communication interface 402, memory 403 and communication bus 404, wherein processor 401, communication interface 402,
Memory 403 completes mutual communication by communication bus 404;
Memory 403, for storing computer program;
Processor 401 when for executing the program stored on memory 403, realizes following steps:
When needing to play live video, from the live signal that video capture device acquires, live video data is obtained,
When needing to play gasket video, the gasket video data of the gasket video is obtained;
By acquired video data to be played, it is cut into slice file, includes preset quantity in each slice file
Frame image data, the video data to be played be obtain above-mentioned live video data and above-mentioned gasket video data;
Obtained above-mentioned slice file is stored in buffer area in a manner of file sequence;
Using the frame image data in above-mentioned slice file, net cast stream is generated.
The communication bus 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, control bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with computer program in storage medium, realizes that any of the above-described net cast stream is raw when computer program is executed by processor
The step of at method.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it
When running on computers, so that computer executes any net cast stream generating method in above-described embodiment.
Using above-mentioned net cast stream generating method, device and electronic equipment provided in an embodiment of the present invention, can be based on
It needs that live video data or gasket video data is selected to generate net cast stream, that is, realizes and add pad in net cast stream
Piece video, and can to avoid due to network condition it is bad, and the phenomenon that interrupt net cast.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program
Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or
It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk
SolidState Disk (SSD)) etc..
It should be noted that, in this document, 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 actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence " including one ... ", it is not excluded that
There is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device and
For electronic equipment embodiment, since it is substantially similar to the method embodiment, so be described relatively simple, related place referring to
The part of embodiment of the method illustrates.
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 modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (13)
1. a kind of net cast stream generating method, which is characterized in that the described method includes:
When needing to play live video, from the live signal that video capture device acquires, live video data is obtained, when need
When playing gasket video, the gasket video data of the gasket video is obtained;
By acquired video data to be played, it is cut into slice file, includes preset quantity in each slice file
Frame image data, the video data to be played are the live video data and the gasket video data obtained;
Using the frame image data in the slice file, net cast stream is generated.
2. the method according to claim 1, wherein described by acquired video data to be played, cutting
After slice file, further includes:
The obtained slice file is stored in buffer area in a manner of Slice Sequence;
The method also includes:
It is monitored in the buffer area before generating net cast stream for the first time using the frame image data in the slice file
Whether the Slice Sequence of storage reaches preset quantity;
If reaching the preset quantity, the frame image data using in the slice file is executed, it is straight to generate video
The step of broadcasting stream.
3. the method according to claim 1, wherein described by acquired video data to be played, cutting
After slice file, further includes:
The obtained slice file is stored in buffer area in a manner of Slice Sequence;
The method also includes:
The buffer area is monitored before generating net cast stream using the frame image data in the slice file for the first time
Whether memory space has expired;
If the memory space of the buffer area has been expired, the frame image data using in the slice file is executed, it is raw
The step of at net cast stream.
4. the method according to claim 1, wherein determining the need for playing live streaming view using following steps
Frequently:
When receiving the live video play instruction for being used to indicate broadcasting live video, determination needs to play live video;Or
Person
When monitoring the first default playing time arrival for indicating to start to play live video, determines and need to play live streaming
Video;
It determines the need for playing gasket video using following steps:
When receiving the gasket video playing instruction for being used to indicate and playing gasket video, determination needs to play gasket video;Or
Person
When monitoring the second default playing time arrival for indicating to start to play gasket video, determination needs to play gasket
Video.
5. being cut into the method according to claim 1, wherein described by acquired video data to be played
It is sliced file, comprising:
Acquired video data to be played is cut into slice file according to preset frame rate.
6. the method according to claim 1, wherein it is described using it is described slice file in frame image data,
Generate net cast stream, comprising:
According to default live stream encapsulation format, the frame image data in the slice file is packaged, net cast is obtained
Video data packet in stream.
7. a kind of net cast stream generating apparatus, which is characterized in that described device includes:
Module is obtained, for from the live signal that video capture device acquires, obtaining live streaming when needing to play live video
Video data obtains the gasket video data of the gasket video when needing to play gasket video;
Cutting module, for being cut into acquired video data to be played slice file, being wrapped in each slice file
The frame image data of preset quantity is included, the video data to be played is the live video data obtained and gasket view
Frequency evidence;
Generation module generates net cast stream for using the frame image data in the slice file.
8. device according to claim 7, which is characterized in that described device further include:
Memory module, for acquired video data to be played to be cut into after slice file described, the institute that will be obtained
Slice file is stated, in the method for Slice Sequence, is stored in buffer area;
Monitoring module, for for the first time using the frame image data in the slice file, before generating net cast stream, monitoring
Whether the Slice Sequence stored in the buffer area reaches preset quantity;If reaching the preset quantity, the life is triggered
The step of executing the frame image data using in the slice file at module, generate net cast stream.
9. device according to claim 7, which is characterized in that described device further include:
Memory module, for acquired video data to be played to be cut into after slice file described, the institute that will be obtained
Slice file is stated, in the method for Slice Sequence, is stored in buffer area;
Monitoring module, for for the first time using the frame image data in the slice file, before generating net cast stream, monitoring
Whether the memory space of the buffer area has expired;If the memory space of the buffer area has been expired, the generation module is triggered
The step of executing the frame image data using in the slice file, generating net cast stream.
10. device according to claim 7, which is characterized in that described device further include:
Determining module plays live video for determining the need for using following steps:
When receiving the live video play instruction for being used to indicate broadcasting live video, determination needs to play live video;Or
Person determines when monitoring the first default playing time arrival for indicating to start to play live video and needs to play live streaming
Video;
The determining module is also used to determine the need for using following steps to play gasket video:
When receiving the gasket video playing instruction for being used to indicate and playing gasket video, determination needs to play gasket video;Or
Person, when monitoring the second default playing time arrival for indicating to start to play gasket video, determination needs to play gasket
Video.
11. device according to claim 7, which is characterized in that the cutting module is specifically used for:
Acquired video data to be played is cut into slice file according to preset frame rate.
12. device according to claim 7, which is characterized in that the generation module is specifically used for:
According to default live stream encapsulation format, the frame image data in the slice file is packaged, net cast is obtained
Video data packet in stream.
13. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing
Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811528395.7A CN109729370A (en) | 2018-12-13 | 2018-12-13 | A kind of net cast stream generating method, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811528395.7A CN109729370A (en) | 2018-12-13 | 2018-12-13 | A kind of net cast stream generating method, device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109729370A true CN109729370A (en) | 2019-05-07 |
Family
ID=66296011
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811528395.7A Pending CN109729370A (en) | 2018-12-13 | 2018-12-13 | A kind of net cast stream generating method, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109729370A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113852836A (en) * | 2021-09-23 | 2021-12-28 | 湖南快乐阳光互动娱乐传媒有限公司 | Output method and device of gasket signal, storage medium and electronic equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101039404A (en) * | 2006-03-15 | 2007-09-19 | 中兴通讯股份有限公司 | System and method for realizing seamless insertion in network live broadcasting |
CN101572807A (en) * | 2009-06-16 | 2009-11-04 | 武汉烽火网络有限责任公司 | Method for distributing and controlling real-time media stream and system thereof |
CN102457760A (en) * | 2010-10-14 | 2012-05-16 | 中兴通讯股份有限公司 | Method, apparatus and system for realizing play insertion of content |
CN102572558A (en) * | 2011-12-31 | 2012-07-11 | 华为技术有限公司 | Video inter-cut method, device and system |
US20140115625A1 (en) * | 2012-10-22 | 2014-04-24 | Sony Network Entertainment International Llc | Method and system for inserting an advertisement in a media stream |
CN104065982A (en) * | 2014-06-19 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Streaming media live broadcast method and device |
CN104935975A (en) * | 2015-06-03 | 2015-09-23 | 无锡天脉聚源传媒科技有限公司 | Short video record playing method and apparatus |
CN105208465A (en) * | 2015-09-23 | 2015-12-30 | 青岛海信传媒网络技术有限公司 | Method for inserting inter-cut program into live program and server |
CN107147926A (en) * | 2017-05-05 | 2017-09-08 | 中广热点云科技有限公司 | A kind of method of digital TV direct video inter-cut advertisement |
-
2018
- 2018-12-13 CN CN201811528395.7A patent/CN109729370A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101039404A (en) * | 2006-03-15 | 2007-09-19 | 中兴通讯股份有限公司 | System and method for realizing seamless insertion in network live broadcasting |
CN101572807A (en) * | 2009-06-16 | 2009-11-04 | 武汉烽火网络有限责任公司 | Method for distributing and controlling real-time media stream and system thereof |
CN102457760A (en) * | 2010-10-14 | 2012-05-16 | 中兴通讯股份有限公司 | Method, apparatus and system for realizing play insertion of content |
CN102572558A (en) * | 2011-12-31 | 2012-07-11 | 华为技术有限公司 | Video inter-cut method, device and system |
US20140115625A1 (en) * | 2012-10-22 | 2014-04-24 | Sony Network Entertainment International Llc | Method and system for inserting an advertisement in a media stream |
CN104065982A (en) * | 2014-06-19 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Streaming media live broadcast method and device |
CN104935975A (en) * | 2015-06-03 | 2015-09-23 | 无锡天脉聚源传媒科技有限公司 | Short video record playing method and apparatus |
CN105208465A (en) * | 2015-09-23 | 2015-12-30 | 青岛海信传媒网络技术有限公司 | Method for inserting inter-cut program into live program and server |
CN107147926A (en) * | 2017-05-05 | 2017-09-08 | 中广热点云科技有限公司 | A kind of method of digital TV direct video inter-cut advertisement |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113852836A (en) * | 2021-09-23 | 2021-12-28 | 湖南快乐阳光互动娱乐传媒有限公司 | Output method and device of gasket signal, storage medium and electronic equipment |
CN113852836B (en) * | 2021-09-23 | 2024-01-30 | 湖南快乐阳光互动娱乐传媒有限公司 | Gasket signal output method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10341630B2 (en) | Creating time lapse video in real-time | |
CN109474854B (en) | Video playing method, playlist generating method and related equipment | |
WO2017107649A1 (en) | Video transmission method and device | |
US10986414B1 (en) | Resource management for video playback and chat | |
US20180041787A1 (en) | Method and apparatus for streaming multimedia data with access point positioning information | |
CN108632676B (en) | Image display method, image display device, storage medium and electronic device | |
CN103828387B (en) | System and method for rendering user interface object according to variable scaling factor | |
WO2015090095A1 (en) | Information pushing method, device, and system | |
WO2015196693A1 (en) | Data collection method and apparatus | |
TWI540890B (en) | Method and apparatus for processing motion video | |
US9997203B2 (en) | System and method for streaming and recording video | |
US20130335447A1 (en) | Electronic device and method for playing real-time images in a virtual reality | |
TW201911872A (en) | Live broadcast pausing method and system, live broadcast pausing apparatus, and live broadcast server | |
US10764649B2 (en) | Falling back from three-dimensional video | |
KR20170137634A (en) | Communication apparatus, communication control method, and communication system | |
CN108810567B (en) | Audio and video visual angle matching method, client and server | |
CN105191303A (en) | Method for processing video, terminal and server | |
CN109729370A (en) | A kind of net cast stream generating method, device and electronic equipment | |
EP3843411A1 (en) | Video frame-based media stream bandwidth reduction | |
EP3843415A1 (en) | Video image-based media stream bandwidth reduction | |
CN114071242A (en) | Video playing method, video pushing device and electronic equipment | |
CN107635155B (en) | Information sending method, device, equipment and storage medium | |
CN108632644B (en) | Preview display method and device | |
CN109660838A (en) | A kind of net cast stream generating method, device and electronic equipment | |
CN113747063A (en) | Video transmission method and device, electronic equipment and 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190507 |