Method and device for generating video data in streaming storage

A technology of data generation and generation algorithm, which is applied in the direction of image communication, TV, color TV parts, etc., and can solve problems such as incompleteness and lack of playback of video data

CN107277606AActive Publication Date: 2017-10-20ZHEJIANG HUACHUANG VISION TECH CO LTD
7 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2017-10-20

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method and a device for generating video data in streaming storage, which are used for solving a problem of incompletion caused by several seconds of missing at random of the playback of the record data in the existing streaming storage. The method comprises the following steps of generating an end frame I according to a pre-stored end frame generation algorithm and the last frame in a generated video code stream frame sequence; inserting the end frame I into the end of the video code stream frame sequence; and generating first video data according to the video code stream frame sequence inserted with the end frame I. According to the method and the device, the end frame I is inserted into the end of the video code stream frame sequence, so that all frames before the end frame I can be played during playback of the current video code stream frame sequence, and a method for generating the end frame is simple.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of video playback, in particular to a method and device for generating video data in streaming storage. Background technique

[0002] Most of the existing video playback systems, including circular queue file systems, use streaming storage. If the streaming storage method is used for video recording, when the video data is played back, playback starts from the first I frame and ends at the last I frame.

[0003] In the field of security monitoring, there is no major problem in using the above method to record video. Due to the persistence of video storage, there is no need to accurately determine the start and end of video data playback. However, in the field of video conference recording and broadcasting systems, conference recording has obvious boundaries. For example, a weekly meeting may start at 13:00 and end at 15:01, and the video conference recording data within this time period is generated, and the last fr...

Examples

Embodiment 1

[0030] A method for generating video data in streaming storage provided by an embodiment of the present invention, such as figure 1 shown, including the following steps:

[0031] S11: Generate an end I frame according to the preset saved end frame generation algorithm and the last frame in the generated video stream frame sequence.

[0032] The video conference recording and broadcasting system includes front-end camera equipment, recording and broadcasting server, playback equipment, etc. In the video conference recording and broadcasting system, the recording data after the conference recording is mainly generated through the file system part of the recording and broadcasting server, such as circular queue files system. When using the video conference recording and broadcasting system to record a video conference, the front-end camera equipment collects video information and transmits the video information to the recording and broadcasting server, and the file system part i...

Embodiment 2

[0040] In order to facilitate the fixed-point playback of the video data, generally the generated video data saves the video code stream frame sequence and frame index sequence, so on the basis of the above-mentioned embodiments, in the embodiment of the present invention, according to the insertion after the end of the I frame Video stream frame sequence, generating the first video data includes:

[0041] Generate a corresponding frame index sequence according to the video stream frame sequence after the I frame is inserted;

[0042] The first video data is generated according to the frame sequence and the frame index sequence of the video stream after the I frame is inserted. In order to facilitate the fixed-point playback of video data, a frame index sequence can be generated, which records the relevant information of each I frame in the video stream frame sequence, such as the time stamp of the I frame, the length of the data information of the I frame And so on. Specifi...

Embodiment 3

[0049] When the video conference recording and broadcasting system or other recording and broadcasting systems generate the video stream frame sequence, you can directly insert the generated end I frame into the video stream frame sequence, that is to say, regardless of the last frame sequence of the video stream frame sequence Whatever the frame is, the end I frame can be generated and inserted into the end of the frame sequence of the video stream. However, in order to improve the generation efficiency of the video data, if the last frame in the video stream frame sequence of the video data is an I frame, because the last frame and every frame before it will be played back, it is not necessary to generate an end I frame at this time. frame.

[0050] Therefore, on the basis of the above-mentioned embodiments, in the embodiment of the present invention, the end frame generation algorithm saved according to the preset, and the last frame in the generated video stream frame sequ...