Method and system for pushing stream of video slice

文档序号:1893656 发布日期:2021-11-26 浏览:21次 中文

阅读说明:本技术 一种视频切片推流的方法和系统 (Method and system for pushing stream of video slice ) 是由 杨文秀 吕杰 王澜 于 2020-05-23 设计创作,主要内容包括:本发明公开了一种视频切片推流的方法和系统,包括S1获取播放请求模块、S2视频切片模块、S3视频推流模块、S4播放模块、S5播放状态发送模块、S6播放状态监测模块;播放请求模块S1获得播放请求后,视频切片模块S2将被请求的视频按照固定的长度进行切片,并且在切片上按顺序标注切片编号,视频推流模块S3按照切片编号顺序向播放请求推送视频切片,播放模块S4播放切片,并且将切片编号通过播放状态发送模块S5发送至播放状态监测模块S6,当状态监测模块S6获取的视频播放状态为正常时,状态监测模块S6记录当前的视频切片编号,当状态监测模块S6获取的视频播放状态不正常并且持续时间达到一定的时间阈值后,状态监测模块S6向视频推流模块S3发送停止推流指令,视频推流模块S3停止向播放模块S4推流。(The invention discloses a method and a system for pushing video slices, which comprises an S1 acquisition playing request module, an S2 video slice module, an S3 video pushing module, an S4 playing module, an S5 playing state sending module and an S6 playing state monitoring module; after the play request module S1 obtains a play request, the video slicing module S2 slices the requested video according to a fixed length, and sequentially marks a slice number on the slice, the video streaming module S3 pushes the video slice to the play request according to the slice number sequence, the play module S4 plays the slice, and sends the slice number to the play state monitoring module S6 through the play state sending module S5, when the video play state obtained by the state monitoring module S6 is normal, the state monitoring module S6 records the current video slice number, when the video play state obtained by the state monitoring module S6 is abnormal and the duration reaches a certain time threshold, the state monitoring module S6 sends a push streaming stop instruction to the video streaming module S3, and the video streaming module S3 stops streaming to the play module S4.)

1. A method and a system for pushing video slices are characterized by comprising an S1 acquisition playing request module, an S2 video slice module, an S3 video pushing module, an S4 playing module, an S5 playing state sending module and an S6 playing state monitoring module, wherein the S2 slices requested videos according to a fixed length, the S3 pushes video slices to a request address, and the S4 plays the slices.

2. The method of claim 1, wherein the video slicing module S2 slices the requested video according to a fixed length and marks slice numbers on the slices in sequence.

3. The method as claimed in claim 1, wherein after the play request module S1 obtains the play request, the video streaming module S3 pushes the video slices to the play request in the order of the slice numbers, and the play module S4 plays the slices in the order of the slice numbers.

4. The method of claim 1, wherein after the playing module S4 plays the clip, the playing module S5 sends the played clip number to the playing status monitoring module S6.

5. The method of claim 1, wherein the status monitoring module S6 obtains the video playing status as normal when the slice number is obtained, and the status monitoring module S6 obtains the video playing status as abnormal when the slice number is not obtained.

6. The method of claim 1, wherein when the video playing status is normal, the status monitoring module S6 records the current video slice number.

7. The method according to claim 1, wherein a time threshold is set in the status monitoring module S6.

8. The method of claim 1, wherein when the playing status of the video obtained by the status monitoring module S6 is abnormal and the duration of the abnormal playing status reaches the time threshold, the status monitoring module S6 sends a stop streaming command to the video streaming module S3, and the video streaming module S3 stops streaming to the playing module S4.

Technical Field

The invention relates to the technical field of video playing, in particular to a method and a system for pushing video slices.

Background

The prior art situation is as follows: at present, a screen sharing technology is mature day by day, a video stream pushing technology based on WIFI is mostly adopted in a commercial screen sharing technology, for example, the screen sharing of a computer is essentially realized by compressing desktop display of the computer into a video stream, then the video stream is transmitted to a playing terminal through the WIFI, and the video stream is played by the playing terminal, so that a screen sharing experience is brought to audiences. The existing technology is mature, and the wireless transmission replaces the traditional HDMI line transmission, so the installation and implementation are simple, and the wireless transmission is approved by a plurality of users. However, with the increase of WIFI routers, WIFI signal interference is more and more serious, and therefore, a screen video stream implemented by using the prior art is often jammed due to interference of WIFI signals, so that a screen operator has a feeling of screen sharing video delay, and a user has poor experience.

Disclosure of Invention

The object of the present invention is to provide: a method and system for video slice push streaming, which solves the problems mentioned above in the background art.

In order to achieve the above object, the present invention designs a method and a system for video slicing and stream pushing, which is characterized in that the method comprises a playing request acquisition module, a video slicing module, a video stream pushing module, a playing state sending module, and a playing state monitoring module; the video slicing module slices the requested video according to a fixed length, the video streaming module pushes the video slice to the request address, and the playing module plays the slice.

Further, after the play request module obtains the play request, the video slicing module slices the requested video according to a fixed length, and sequentially marks a slice number on the slice, the video streaming module pushes the video slice to the play request according to the slice number sequence, and the play module plays the slice according to the slice number.

Further, after the playing module plays the slice, the playing module sends the serial number of the played slice to the playing state monitoring module through the playing state sending module.

Further, when the state monitoring module acquires the slice number, the video playing state is acquired to be normal, when the state monitoring module does not acquire the slice number, the video playing state is acquired to be abnormal, and when the video playing state is normal, the state monitoring module records the current video slice number.

Furthermore, a time threshold is set in the state monitoring module, when the video playing state acquired by the state monitoring module is abnormal and the duration of the abnormal playing state reaches the time threshold, the state monitoring module sends a stream pushing stopping instruction to the video stream pushing module, and the video stream pushing module stops pushing streams to the playing module.

The invention has the beneficial effects that:

(1) when a fixed video is played, the video slice cannot cause the speed to slow down due to video loading;

(2) the video stream of the screen sharing type cannot be blocked because one or more frames are not acquired;

(3) after the video stream shared by the screens is temporarily blocked due to WIFI and the like, the video stream can directly jump to the latest video slice, and the experience brought to the user is greatly improved.

Drawings

Fig. 1 is a block diagram and a main flowchart of a method and a system for video slice streaming according to the present invention, wherein S1 is a play request acquisition module, S2 is a video slice module, S3 is a video streaming module, S4 is a play module, S5 is a play status transmission module, and S6 is a play status monitoring module;

FIG. 2 is a flow chart of a play status monitoring module of the method and system for video slice streaming according to the present invention;

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts based on the embodiments of the present invention belong to the protection scope of the present invention.

To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Several embodiments of the invention are presented in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.

Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.

Referring to fig. 1-2, the present invention provides a method and system for video slice streaming: the system comprises an S1 playing request acquisition module, an S2 video slicing module, an S3 video stream pushing module, an S4 playing module, an S5 playing state sending module and an S6 playing state monitoring module.

Further, the S2 video slice module slices the requested video according to a fixed length, the S3 video streaming module pushes the video slice to the request address, and the S4 playing module plays the slice.

Further, after the play request module of S1 obtains the play request, the video slicing module slices the requested video according to a fixed length, and sequentially marks a slice number on the slice, the video streaming module of S3 pushes the video slice to the play request according to the slice number sequence, and the play module of S4 plays the slice according to the slice number.

Further, after the S4 playback module plays the clip, the played clip number is sent to the S6 playback status monitoring module through the S5 playback status sending module.

Further, when the S6 status monitoring module obtains the slice number, the video playing status is normal, and when the S6 status monitoring module does not obtain the slice number, the video playing status is abnormal, and when the video playing status is normal, the S6 status monitoring module records the current video slice number.

Further, the S6 status monitoring module is provided with a time threshold, and when the video playing status acquired by the S6 status monitoring module is abnormal and the duration of the abnormal playing status reaches the time threshold, the S6 status monitoring module sends a stream pushing stop instruction to the S3 video stream pushing module, and the S3 video stream pushing module stops pushing the stream to the S4 playing module.

The foregoing illustrates and describes the principles, general features, and advantages of the present invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

5页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:视频划分方法、装置、服务器、终端及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类