Video storage method and device, cloud server and storage medium

文档序号:1314995 发布日期:2020-07-10 浏览:6次 中文

阅读说明:本技术 视频存储方法、装置、云服务器和存储介质 (Video storage method and device, cloud server and storage medium ) 是由 王定琋 苏霞 夏伟强 王伟 于 2019-09-03 设计创作,主要内容包括:本申请公开了一种视频存储方法、装置、云服务器和存储介质,属于存储技术领域。本申请实施例提供了一种视频存储方法,当接收到上传的第一视频文件的第一视频数据时,解析该第一视频数据,得到第一视频数据的第一时间信息;基于第一时间信息,记录云服务器中第一视频文件的视频标识对应的视频数据的第二时间信息。该方法通过记录上传第一视频文件时的第二时间信息,从而在对第一视频文件进行补录时,可以根据第二时间信息与从视频录制设备中获取的第一视频文件的第三时间信息,确定待补录的视频数据的时间信息,进而对云服务器中的第一视频文件进行补录,得到完整的第一视频文件,从而避免在播放时画面不完整,可以提高视频存储的效率。(The application discloses a video storage method and device, a cloud server and a storage medium, and belongs to the technical field of storage. The embodiment of the application provides a video storage method, which comprises the steps that when first video data of an uploaded first video file are received, the first video data are analyzed, and first time information of the first video data is obtained; and recording second time information of the video data corresponding to the video identification of the first video file in the cloud server based on the first time information. According to the method, the second time information when the first video file is uploaded is recorded, so that when the first video file is subjected to additional recording, the time information of the video data to be additionally recorded can be determined according to the second time information and the third time information of the first video file acquired from the video recording device, then the first video file in the cloud server is subjected to additional recording, the complete first video file is obtained, the incomplete picture is avoided when the first video file is played, and the efficiency of video storage can be improved.)

1. A method for video storage, the method comprising:

when first video data of a first video file uploaded by video recording equipment are received, analyzing the first video data to obtain first time information of the first video data;

recording second time information of video data corresponding to the video identification of the first video file in the cloud server based on the first time information;

when the first video file is subjected to additional recording, acquiring recorded second time information;

acquiring third time information corresponding to the first video file from the video recording equipment based on the video identifier of the first video file;

and performing additional recording on the first video file based on the second time information and the third time information to obtain the first video file.

2. The method of claim 1, wherein the supplementing the first video file based on the second time information and the third time information to obtain the first video file comprises:

determining fourth time information of the video data to be additionally recorded based on the second time information and the third time information;

acquiring video data corresponding to the fourth time information from the video recording equipment based on the fourth time information;

acquiring video data stored in the cloud server based on the video identifier of the first video file;

and splicing the video data corresponding to the fourth time information and the stored video data to obtain the first video file.

3. The method of claim 2, wherein the second time information includes time information of already stored video data and time information of video data to be dubbed;

the determining fourth time information of the video data to be additionally recorded based on the second time information and the third time information includes:

determining a complementary set of the time information of the video data stored in the second time information from the third time information to obtain complementary set time information;

determining a union of the complementary set time information and the time information of the video data to be complementary recorded in the second time information to obtain union time information;

and using the union time information as the fourth time information.

4. The method of claim 2, wherein the second time information includes time information of stored video data;

the determining fourth time information of the video data to be additionally recorded based on the second time information and the third time information includes:

determining a complementary set of the second time information from the third time information to obtain complementary set time information;

and using the complementary set time information as the fourth time information.

5. The method according to claim 2, wherein the obtaining video data corresponding to the fourth time information from the video recording device based on the fourth time information comprises:

generating at least one storage task based on the fourth time information;

sending the at least one storage task to the video recording device, wherein the at least one storage task carries the video identifier and the fourth time information;

and receiving video data corresponding to the fourth time information returned by the video recording equipment.

6. The method of claim 1, wherein when the first video file is being re-recorded, the method further comprises:

deleting the video file corresponding to the video identifier which is the same as the video identifier of the first video file in the cloud server;

and receiving a first video file uploaded by the video recording equipment.

7. The method according to any one of claims 1 to 6, wherein after the first video file is obtained by performing the dubbing on the first video file based on the second time information and the third time information, the method further comprises:

modifying the complementary recording state corresponding to the first video file in a video complementary recording list from to be complementary recorded to a complementary recorded state, wherein the video complementary recording list is used for storing the video identification of the video file to be complementary recorded and the complementary recording state corresponding to the video identification;

and when the video additional recording list is updated, deleting the video identification of the first video file and the additional recording state corresponding to the video identification from the video additional recording list.

8. The method of claim 1, further comprising:

calling an application management unit in the cloud server, and inquiring storage information of first video data corresponding to the video identification;

acquiring a query result of the application management unit, wherein the query result carries storage information of first video data corresponding to the video identifier;

when the storage information indicates that video data which are not uploaded to the cloud server exist, determining to perform additional recording on the first video file.

9. A video storage apparatus, the apparatus comprising:

the analysis module is used for analyzing first video data of a first video file uploaded by video recording equipment to obtain first time information of the first video data;

the recording module is used for recording second time information of video data corresponding to the video identifier of the first video file in the cloud server based on the first time information;

the first acquisition module is used for acquiring recorded second time information when the first video file is subjected to additional recording;

the second obtaining module is used for obtaining third time information corresponding to the first video file from the video recording equipment based on the video identifier of the first video file;

and the supplementary recording module is used for performing supplementary recording on the first video file based on the second time information and the third time information to obtain the first video file.

10. The apparatus of claim 9, wherein the dubbing module is further configured to determine fourth time information of the video data to be dubbed based on the second time information and the third time information; acquiring video data corresponding to the fourth time information from the video recording equipment based on the fourth time information; acquiring video data stored in the cloud server based on the video identifier of the first video file; and splicing the video data corresponding to the fourth time information and the stored video data to obtain the first video file.

11. The apparatus of claim 10, wherein the second time information comprises time information of stored video data and time information of video data to be dubbed;

the supplementary recording module is further configured to determine a supplementary set of the time information of the video data stored in the second time information from the third time information, so as to obtain supplementary set time information; determining a union of the complementary set time information and the time information of the video data to be complementary recorded in the second time information to obtain union time information; and using the union time information as the fourth time information.

12. The apparatus of claim 10, wherein the second time information comprises time information of stored video data;

the supplementary recording module is further configured to determine a supplementary set of the second time information from the third time information to obtain supplementary set time information; and using the complementary set time information as the fourth time information.

13. The apparatus of claim 10, wherein the logging module is further configured to generate at least one storage task based on the fourth time information; sending the at least one storage task to the video recording device, wherein the at least one storage task carries the video identifier and the fourth time information; and receiving video data corresponding to the fourth time information returned by the video recording equipment.

14. The apparatus of claim 9, further comprising:

the first deleting module is used for deleting the video file corresponding to the video identifier which is the same as the video identifier of the first video file in the cloud server;

and the receiving module is used for receiving the first video file uploaded by the video recording equipment.

15. The apparatus according to any one of claims 9-14, further comprising:

the modification module is used for modifying the complementary recording state corresponding to the first video file in a video complementary recording list from a state to be complementary recorded to a state to be complementary recorded, and the video complementary recording list is used for storing the video identification of the video file to be complementary recorded and the complementary recording state corresponding to the video identification;

and the second deleting module is used for deleting the video identifier of the first video file and the corresponding additional recording state from the video additional recording list when the video additional recording list is updated.

16. The apparatus of claim 1, further comprising:

the query module is used for calling an application management unit in the cloud server and querying storage information of the first video data corresponding to the video identifier;

a third obtaining module, configured to obtain a query result of the application management unit, where the query result carries storage information of the first video data corresponding to the video identifier;

the additional recording module is further configured to determine to additionally record the first video file when the storage information indicates that video data which is not uploaded to the cloud server exists.

17. A cloud server, the cloud server comprising:

a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, the instruction, the program, the set of codes, or the set of instructions being loaded and executed by the processor to carry out the operations performed in the video storage method of any of claims 1-8.

18. A computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to carry out the operations performed in the video storage method according to any one of claims 1 to 8.

22页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:配置方法、装置及设备、存储介质

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类