CN111930998A - Video frame extraction method and device - Google Patents

Video frame extraction method and device Download PDF

Info

Publication number
CN111930998A
CN111930998A CN202010937308.4A CN202010937308A CN111930998A CN 111930998 A CN111930998 A CN 111930998A CN 202010937308 A CN202010937308 A CN 202010937308A CN 111930998 A CN111930998 A CN 111930998A
Authority
CN
China
Prior art keywords
video frame
task
extracting
sub
frame
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
Application number
CN202010937308.4A
Other languages
Chinese (zh)
Inventor
冯蕾
朱磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mushroom Car Union Information Technology Co Ltd
Original Assignee
Mushroom Car Union Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Mushroom Car Union Information Technology Co Ltd filed Critical Mushroom Car Union Information Technology Co Ltd
Priority to CN202010937308.4A priority Critical patent/CN111930998A/en
Publication of CN111930998A publication Critical patent/CN111930998A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The embodiment of the invention provides a video frame extracting method and a video frame extracting device, wherein the method comprises the following steps: according to the video frame extracting task information in the frame extracting database, if the frame extracting database is judged to have no video frame extracting task being executed, a target video frame extracting task is obtained from a server side, whether an image frame database matched with the target video exists in a data pool corresponding to the target video is judged according to the target video frame extracting task, and if yes, each image frame extracted according to the target video frame extracting task is obtained from the matched image frame database; and if not, downloading the target video frame extracting task from the server to a frame extracting database, segmenting the target video into a plurality of sub-videos according to the segment duration of the target video, establishing corresponding sub-video frame extracting tasks, and sequentially extracting the frames of the sub-videos according to the execution sequence of the sub-video frame extracting tasks. The embodiment of the invention reduces the memory occupancy rate, avoids application breakdown caused by overhigh memory occupancy rate and improves the video frame extraction efficiency.

Description

Video frame extraction method and device
Technical Field
The invention relates to the technical field of video processing, in particular to a video frame extraction method and device.
Background
The video frame extraction is a process of extracting a single image from each frame image of a video segment by taking a picture at a certain time interval and combining the pictures to form the video in a mode of extracting a plurality of frames at a certain interval in the video segment.
The prior art generally performs frame extraction processing on the whole video segment according to the interval frame number requirement. However, if the duration of the video segment to be frame-extracted is too long, the memory occupancy rate will be too high, and the application will be crashed, which will affect the operation of video frame extraction.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a video frame extraction method and a video frame extraction device.
Specifically, the embodiment of the invention provides the following technical scheme:
in a first aspect, an embodiment of the present invention provides a video frame extraction method, including:
judging whether an executing video frame extracting task exists in a frame extracting database according to video frame extracting task information in the frame extracting database, if not, acquiring a target video frame extracting task of video frame extraction to be performed from a server side, judging whether an image frame database matched with the target video frame extracting task exists in a data pool corresponding to a target video according to the target video frame extracting task, and if so, acquiring each image frame extracted according to the target video frame extracting task from the image frame database matched with the target video frame extracting task; the data pool is used for storing a plurality of video frame extraction tasks, wherein the data pool is used for storing image frame databases matched with the preset video frame extraction tasks, and each image frame database is used for storing each image frame extracted according to the corresponding video frame extraction task;
if no image frame database matched with the target video frame extracting task exists in a data pool corresponding to the target video, downloading the target video frame extracting task from a server to the frame extracting database, segmenting the target video into a plurality of sub-videos according to the segment duration of the target video, establishing corresponding sub-video frame extracting tasks by taking the sub-videos as frame extracting videos respectively, sequentially executing the sub-video frame extracting tasks according to the execution sequence of the sub-video frame extracting tasks, and performing video frame extraction on the sub-videos; the sum of the segment time lengths of the corresponding sub-videos in each sub-video frame extracting task is the same as the segment time length of the target video, and each sub-video frame extracting task is marked with execution sequence information;
the target video frame extracting task comprises a target video identifier and a target task demand parameter corresponding to the target video frame extracting task;
wherein, the video frame extraction for the sub-videos comprises:
retrieving a frame extraction database to obtain a frame extraction object list of a currently executed sub-video frame extraction task, judging whether a storage path corresponding to the sub-video exists or not, and if so, extracting the sub-video frame by analyzing the frame extraction object list; the frame extraction object list comprises storage path information and task demand parameter information of corresponding sub-videos.
Further, the preset video frame extracting tasks include: a video frame-extracting task according to 0.1s time interval, a video frame-extracting task according to 0.5s time interval, a video frame-extracting task according to 1s time interval, a video frame-extracting task according to 2s time interval, a video frame-extracting task according to 3s time interval, a video frame-extracting task according to key character a, a video frame-extracting task according to key character B, a video frame-extracting task according to key character C, a video frame-extracting task according to key character D, a video frame-extracting task according to key character E, a video frame-extracting task according to quarrel scene, a video frame-extracting task according to fighting scene, a video frame-extracting task according to love or warm scene, a video frame-extracting task according to dance scene, a video frame-extracting task according to gunshot scene;
the task requirement parameters corresponding to the preset video frame extracting tasks are respectively as follows: a 0.1s time interval, a 0.5s time interval, a 1s time interval, a 2s time interval, a 3s time interval, key character a, key character B, key character C, key character D, key character E, a quarry scene, a fighting scene, a love or warm scene, a dance scene, a gunshot scene;
correspondingly, the data pool stores the mapping relation between the task demand parameters of each preset video frame extracting task and the corresponding image frame database identification;
correspondingly, judging whether an image frame database matched with the target video frame extracting task exists in a data pool corresponding to the target video according to the target video frame extracting task, if so, acquiring each image frame which is extracted according to the target video frame extracting task from the image frame database matched with the target video frame extracting task, wherein the image frame extracting task comprises the following steps:
and judging whether an image frame database identifier matched with the target task requirement parameter exists in a data pool corresponding to the target video according to the target task requirement parameter contained in the target video frame extracting task, if so, acquiring each image frame extracted according to the target video frame extracting task from a corresponding image frame database according to the matched image frame database identifier.
Further, the step of pre-establishing a data pool corresponding to the target video specifically includes:
according to task demand parameters corresponding to preset video frame extraction tasks: the method comprises the steps of performing video frame extraction on target videos at 0.1s time interval, 0.5s time interval, 1s time interval, 2s time interval, 3s time interval, key character A, key character B, key character C, key character D, key character E, a quarrel scene, a fighting scene, a love or warm scene, a dance scene and a gunshot scene respectively, performing video frame extraction of different tasks on the target videos, correspondingly storing video frame extraction results corresponding to the different tasks into corresponding image frame databases, and meanwhile establishing a mapping relation between task demand parameters of the different tasks and corresponding image frame database identifications.
Further, if the frame extracting database has the video frame extracting task being executed, after the video frame extracting task being executed is finished, whether the video frame extracting task being executed exists in the frame extracting database is judged.
Further, if the storage path of the sub-video does not exist in the frame extracting object list, the current sub-video frame extracting task is stopped to be executed, and the state information reporting the current sub-video frame extracting task is recorded.
Further, performing video frame extraction on the sub-video by analyzing the frame extraction object list, including:
acquiring frame information carrying image frame storage path data to be extracted by a sub video through analyzing an extracted frame object list;
and analyzing the frame information to obtain the image frame to be extracted by the sub-video.
Further, after performing video frame extraction on the sub-video, the method further includes:
after the image frames extracted by the sub-videos are successfully uploaded to the server, judging whether the currently executed sub-video frame extracting task is the last sub-video frame extracting task or not, if so, reporting the server and emptying all the sub-video frame extracting tasks; if not, continuously executing the sub-video frame extracting task according to the execution sequence of each sub-video frame extracting task, and performing video frame extraction on the sub-videos.
In a second aspect, an embodiment of the present invention provides a video frame extracting apparatus, including:
the acquisition unit is used for judging whether an executing video frame extracting task exists in a frame extracting database according to video frame extracting task information in the frame extracting database, if not, acquiring a target video frame extracting task of video frame extraction to be performed from a server side, judging whether an image frame database matched with the target video frame extracting task exists in a data pool corresponding to a target video according to the target video frame extracting task, and if so, acquiring each image frame extracted according to the target video frame extracting task from the image frame database matched with the target video frame extracting task; the data pool is used for storing a plurality of video frame extraction tasks, wherein the data pool is used for storing image frame databases matched with the preset video frame extraction tasks, and each image frame database is used for storing each image frame extracted according to the corresponding video frame extraction task;
the frame extracting unit is used for downloading the target video frame extracting task from the server side to the frame extracting database if the image frame database matched with the target video frame extracting task does not exist in the data pool corresponding to the target video, segmenting the target video into a plurality of sub-videos according to the segment duration of the target video, establishing corresponding sub-video frame extracting tasks by taking the sub-videos as frame extracting videos respectively, sequentially executing the sub-video frame extracting tasks according to the execution sequence of the sub-video frame extracting tasks, and performing video frame extraction on the sub-videos; the sum of the segment time lengths of the corresponding sub-videos in each sub-video frame extracting task is the same as the segment time length of the target video, and each sub-video frame extracting task is marked with execution sequence information;
the target video frame extracting task comprises a target video identifier and a target task demand parameter corresponding to the target video frame extracting task;
wherein, the video frame extraction for the sub-videos comprises:
retrieving a frame extraction database to obtain a frame extraction object list of a currently executed sub-video frame extraction task, judging whether a storage path corresponding to the sub-video exists or not, and if so, extracting the sub-video frame by analyzing the frame extraction object list; the frame extraction object list comprises storage path information and task demand parameter information of corresponding sub-videos.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the video frame extracting method according to the first aspect when executing the program.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the video framing method according to the first aspect.
According to the video frame extracting method and device provided by the embodiment of the invention, according to the video frame extracting task information in the frame extracting database, if the frame extracting database is judged to have no executing video frame extracting task, a target video frame extracting task of video frame extraction to be carried out is obtained from a server, the executing video frame extracting task and the target video frame extracting task are prevented from simultaneously executing to occupy a memory, whether an image frame database matched with the target video frame extracting task exists in a data pool corresponding to a target video is judged according to the target video frame extracting task, and if the image frame database matched with the target video frame extracting task exists, each image frame which is extracted according to the target video frame extracting task is obtained from the image frame database matched with the target video frame extracting task; the data pool stores the image frame database matched with each preset video frame extracting task, and each image frame database stores each image frame extracted according to the corresponding video frame extracting task, so that the image frame to be extracted by the target video frame extracting task can be directly obtained from the image frame database matched with the target video frame extracting task, the image frame is not required to be extracted by executing the target video frame extracting task on the image frame extracting database, the memory occupancy rate is reduced, and the video frame extracting efficiency is improved. If no image frame database matched with the target video frame extracting task exists in the data pool corresponding to the target video, downloading the target video frame extracting task from the server to the frame extracting database, segmenting the target video with longer segment duration into a plurality of sub-videos with shorter segment duration according to the segment duration of the target video, establishing corresponding sub-video frame extracting tasks by taking the sub-videos as frame extracting videos respectively, sequentially executing the sub-video frame extracting tasks according to the execution sequence of the sub-video frame extracting tasks, retrieving the frame extracting database, acquiring a frame extracting object list of the currently executed sub-video frame extracting task, and extracting frames of the sub-videos; therefore, the image frames extracted according to the corresponding video frame extracting task are stored in the image frame databases in advance, so that when the image frame database matched with the target video frame extracting task exists in the data pool corresponding to the target video, the image frames to be extracted by the target video frame extracting task can be directly acquired from the corresponding image frame database, the image frames are not required to be extracted by executing the target video frame extracting task on the image frame extracting database, the memory occupancy rate is reduced, and the video frame extracting efficiency is improved. And if the image frame database matched with the target video frame extracting task does not exist in the data pool corresponding to the target video, the target video is segmented into a plurality of sub-videos with short segment duration by indicating that the target video frame-extracting task is a new video frame-extracting task, and establishes corresponding sub-video frame-extracting tasks, so that the segment duration of the corresponding sub-video in each sub-video frame-extracting task is shorter, then, according to the execution sequence of each sub-video frame-extracting task, the sub-videos are sequentially subjected to frame extraction, so that when the current sub-video frame-extracting task is executed, other video frame-extracting tasks are not executed, and the frame extracting segment time length corresponding to the current sub-video frame extracting task is shorter, the memory occupancy rate is greatly reduced, therefore, the problem that the application is crashed due to overhigh memory occupation when the video with longer segment duration is subjected to frame extraction in the traditional method is well solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a video frame extraction method according to a first embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a video frame extracting apparatus according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flowchart of a video frame extracting method according to a first embodiment of the present invention, and as shown in fig. 1, the video frame extracting method according to the first embodiment of the present invention includes the following steps:
step 110, judging whether a video frame extracting task which is being executed exists in a frame extracting database according to video frame extracting task information in the frame extracting database, if not, acquiring a target video frame extracting task of video frame extraction to be performed from a server, judging whether an image frame database matched with the target video frame extracting task exists in a data pool corresponding to a target video according to the target video frame extracting task, and if so, acquiring each image frame which is extracted according to the target video frame extracting task from the image frame database matched with the target video frame extracting task; the data pool stores an image frame database matched with each preset video frame extracting task, and each image frame database stores each image frame extracted according to the corresponding video frame extracting task; the target video frame extracting task comprises a target video identification and a target task demand parameter corresponding to the target video frame extracting task.
In this step, it should be noted that the video frame extraction is a process of extracting a single image from each frame image of a segment of video, and the conventional method generally performs frame extraction on the whole video segment according to the requirement of the number of frame intervals. However, if the duration of a video segment that needs to be frame-extracted is too long, the memory occupancy rate is too high, which causes application crash, and further, data loss due to application crash occurs for a part of image frames that have been extracted from the video segment, which seriously affects the efficiency of video frame extraction. The method provided by the embodiment can not only reduce the occupancy rate of the memory during video frame extraction, but also improve the video frame extraction efficiency.
Specifically, in the embodiment, the video frame extracting task of the server is received and acquired through long connection, so that the video frame extracting task information newly issued by the server can be acquired in time. When a target video frame extracting task of video frame extraction to be performed at a server side is known, because the frame extracting database is responsible for executing the video frame extracting task, if the executing video frame extracting task exists in the frame extracting database, if the target video frame extracting task and the executing video frame extracting task in the frame extracting database are executed at the same time, the memory occupation is too high, and the application is crashed. Therefore, in this embodiment, it can be determined whether the frame extracting database has a video frame extracting task being executed according to the video frame extracting task information in the frame extracting database, if not, it indicates that the frame extracting database can execute the target video frame extracting task, the target video frame extracting task is obtained from the server, it is determined whether an image frame database matching the target video frame extracting task exists in the data pool corresponding to the target video according to the target video identifier in the target video frame extracting task and the target task requirement parameter corresponding to the target video frame extracting task, if so, it indicates that the image frame database stores the image frame extracted according to the target video frame extracting task, so that the image frame to be extracted by the target video frame extracting task can be directly obtained from the corresponding image frame database without extracting the image frame by executing the target video frame extracting task on the frame extracting database, the memory occupancy rate is reduced, and the video frame extraction efficiency is improved. The data pool stores image frame databases matched with preset video frame extracting tasks, and each image frame database stores each image frame extracted according to the corresponding video frame extracting task.
For example, for video a, the task demand parameters may be respectively: performing video frame extraction on the video A at 0.1s time intervals and 0.5s time intervals, wherein the extracted image frames are stored in an image frame database in a data pool corresponding to the video A; the image frames acquired according to the time interval of 0.1s are stored in the image frame database I in the data pool corresponding to the video A, and the image frames acquired according to the time interval of 0.5s are stored in the image frame database II in the data pool corresponding to the video A. If the target video frame extracting task to be subjected to video frame extraction is to perform video frame extraction on the video A according to the time interval of 0.1s, the target video frame extracting task can be directly obtained from the image frame database I in the data pool corresponding to the video A, video frame extraction processing is not required to be performed on the video A on the frame extracting database, and the problem that application is crashed due to the fact that the memory occupancy rate is too high when the video frame extraction processing is performed on the video A is solved.
Step 120, if an image frame database matched with the target video frame extracting task does not exist in the data pool corresponding to the target video, downloading the target video frame extracting task from the server to the frame extracting database, segmenting the target video into a plurality of sub-videos according to the segment duration of the target video, establishing corresponding sub-video frame extracting tasks by taking the sub-videos as frame extracting videos respectively, sequentially executing the sub-video frame extracting tasks according to the execution sequence of the sub-video frame extracting tasks, and performing video frame extraction on the sub-videos; the sum of the segment time lengths of the corresponding sub-videos in each sub-video frame extracting task is the same as the segment time length of the target video, and each sub-video frame extracting task is marked with execution sequence information.
In this step, if an image frame database matching the target video frame extracting task does not exist in the data pool corresponding to the target video, it is indicated that the target video frame extracting task is a new video frame extracting task, and the image frame database does not store the corresponding extracted image frame, and the video frame extraction needs to be performed on the target video frame extracting database. Specifically, a target video frame extracting task is downloaded from a server to a frame extracting database, wherein the downloaded target video frame extracting task comprises a target video, parameter requirements of the target video frame extracting task and the like. In order to avoid the problem of application crash when performing video frame extraction on a target video with a long segment duration, in this embodiment, according to the segment duration of the target video, the target video is segmented into a plurality of sub-videos with short segment durations, and each sub-video is used as a frame extraction video to establish a corresponding sub-video frame extraction task, and according to the execution sequence of each sub-video frame extraction task, the sub-video frame extraction tasks are sequentially executed (for example, the sub-video frame extraction tasks can be sequentially executed according to the segment time sequence of the sub-videos corresponding to the sub-video frame extraction tasks), so that when executing the current sub-video frame extraction task, other video frame extraction tasks are not executed, and the frame extraction segment duration corresponding to the current sub-video frame extraction task is short, thereby greatly reducing the memory occupancy rate. And the task requirement parameters corresponding to the sub-video frame extracting tasks are the same as the target task requirement parameters corresponding to the target video frame extracting tasks.
In this embodiment, it should be noted that the target video may be segmented into a plurality of sub-videos according to equal time intervals, or the target video may be segmented into a plurality of sub-videos according to different video scenes, which is not specifically limited in this embodiment.
In addition, in this embodiment, when the current sub-video frame extraction task is executed, the frame extraction object list of the currently executed sub-video frame extraction task is obtained by retrieving the frame extraction database, and it is determined whether a storage path of the corresponding sub-video exists, so as to determine whether the corresponding sub-video is deleted or damaged, if the storage path of the corresponding sub-video exists, it is indicated that the corresponding sub-video is complete and is not deleted, and the video frame extraction can be performed normally, so that the sub-video is subjected to frame extraction according to the corresponding task requirement parameters by analyzing the frame extraction object list. The information contained in the frame extracting object list can be updated in real time, so that the position of the corresponding video and the related video frame extracting information can be accurately acquired in the video frame extracting process. For example, if the sub-video a completely exists in the database at time 1, the corresponding storage path information will be recorded in the frame extraction object list; if the sub-video a is deleted at the next time 2, the corresponding storage path information does not exist in the frame object list.
According to the video frame extracting method provided by the embodiment of the invention, according to the video frame extracting task information in the frame extracting database, if the frame extracting database is judged to have no executing video frame extracting task, a target video frame extracting task of video frame extraction to be carried out is obtained from a server, the executing video frame extracting task and the target video frame extracting task are prevented from simultaneously executing to occupy a memory, whether an image frame database matched with the target video frame extracting task exists in a data pool corresponding to a target video is judged according to the target video frame extracting task, and if the image frame database matched with the target video frame extracting task exists, each image frame which is extracted according to the target video frame extracting task is obtained from the image frame database matched with the target video frame extracting task; the data pool stores the image frame database matched with each preset video frame extracting task, and each image frame database stores each image frame extracted according to the corresponding video frame extracting task, so that the image frame to be extracted by the target video frame extracting task can be directly obtained from the image frame database matched with the target video frame extracting task, the image frame is not required to be extracted by executing the target video frame extracting task on the image frame extracting database, the memory occupancy rate is reduced, and the video frame extracting efficiency is improved. If no image frame database matched with the target video frame extracting task exists in the data pool corresponding to the target video, downloading the target video frame extracting task from the server to the frame extracting database, segmenting the target video with longer segment duration into a plurality of sub-videos with shorter segment duration according to the segment duration of the target video, establishing corresponding sub-video frame extracting tasks by taking the sub-videos as frame extracting videos respectively, sequentially executing the sub-video frame extracting tasks according to the execution sequence of the sub-video frame extracting tasks, retrieving the frame extracting database, acquiring a frame extracting object list of the currently executed sub-video frame extracting task, and extracting frames of the sub-videos; therefore, the image frames extracted according to the corresponding video frame extracting task are stored in the image frame databases in advance, so that when the image frame database matched with the target video frame extracting task exists in the data pool corresponding to the target video, the image frames to be extracted by the target video frame extracting task can be directly acquired from the corresponding image frame database, the image frames are not required to be extracted by executing the target video frame extracting task on the image frame extracting database, the memory occupancy rate is reduced, and the video frame extracting efficiency is improved. And if the image frame database matched with the target video frame extracting task does not exist in the data pool corresponding to the target video, the target video is segmented into a plurality of sub-videos with short segment duration by indicating that the target video frame-extracting task is a new video frame-extracting task, and establishes corresponding sub-video frame-extracting tasks, so that the segment duration of the corresponding sub-video in each sub-video frame-extracting task is shorter, then, according to the execution sequence of each sub-video frame-extracting task, the sub-videos are sequentially subjected to frame extraction, so that when the current sub-video frame-extracting task is executed, other video frame-extracting tasks are not executed, and the frame extracting segment time length corresponding to the current sub-video frame extracting task is shorter, the memory occupancy rate is greatly reduced, therefore, the problem that the application is crashed due to overhigh memory occupation when the video with longer segment duration is subjected to frame extraction in the traditional method is well solved.
Based on the content of the above embodiment, in this embodiment, in order to improve the video frame extraction efficiency, the video frame extraction tasks are respectively preset for the video a at time intervals of 0.1s and 0.5s, for example, for the key person a, the key person B, and the noisy scene, and the corresponding image frames are extracted and stored in the image frame database in the data pool, so that if it is determined that the target video frame extraction task is that the video a performs video frame extraction according to the key person a, the extracted image frames can be directly acquired from the image frame database, and the video frame extraction efficiency is improved.
The preset video frame extracting tasks comprise: a video frame-extracting task at 0.1s intervals, a video frame-extracting task at 0.5s intervals, a video frame-extracting task at 1s intervals, a video frame-extracting task at 2s intervals, a video frame-extracting task at 3s intervals, a video frame-extracting task at key character a, a video frame-extracting task at key character B, a video frame-extracting task at key character C, a video frame-extracting task at key character D, a video frame-extracting task at key character E, a video frame-extracting task at quarrel scene, a video frame-extracting task at fighting scene, a video frame-extracting task at love or warm scene, a video frame-extracting task at dance scene, a video frame-extracting task at gunshot scene. Therefore, the task requirement parameters corresponding to the preset video frame-extracting tasks are respectively as follows: 0.1s time interval, 0.5s time interval, 1s time interval, 2s time interval, 3s time interval, key character a, key character B, key character C, key character D, key character E, quarry scene, fighting scene, love or warm scene, dance scene, gunshot scene. For example, if the target video is a television show R, the key character a may be a protagonist, the key character B may be a protagonist, the key character C may be a protagonist, and so on.
It should be noted that the video corresponding to each preset video frame extracting task may be a video stored by the server, or a video downloaded from the network according to actual requirements, which is not specifically limited in this embodiment.
Correspondingly, in order to accurately position and acquire each image frame extracted according to the target video frame extracting task, the data pool in the embodiment stores the mapping relationship between the task requirement parameter of each preset video frame extracting task and the corresponding image frame database identifier, for example, the time interval of 0.1s corresponds to the image frame database No. i, the time interval of 0.5s corresponds to the image frame database No. ii, and the like, and the mapping relationship between the task requirement parameter and the corresponding image frame database identifier is established by analogy.
Correspondingly, after the mapping relation between the task requirement parameter of each preset video frame extracting task and the corresponding image frame database identifier is stored in the data pool, whether an image frame database matched with the target video frame extracting task exists in the data pool corresponding to the target video is judged according to the target video frame extracting task, if yes, each image frame which is extracted according to the target video frame extracting task is obtained from the image frame database matched with the target video frame extracting task, and the method comprises the following steps:
and judging whether an image frame database identifier matched with the target task requirement parameter exists in a data pool corresponding to the target video according to the target task requirement parameter contained in the target video frame extracting task, if so, indicating that the image frame database stores the image frame extracted by the target video frame extracting task, and acquiring each image frame extracted according to the target video frame extracting task from the corresponding image frame database according to the matched image frame database identifier.
According to the video frame extracting method provided by the embodiment of the invention, each image frame extracted according to the corresponding video frame extracting task is pre-stored in each image frame database, so that when the image frame database matched with the target video frame extracting task exists in the data pool corresponding to the target video, the image frame to be extracted by the target video frame extracting task can be directly obtained from the corresponding image frame database, and the image frame is not required to be extracted by executing the target video frame extracting task on the frame extracting database, so that the memory occupancy rate is reduced, and the video frame extracting efficiency is improved.
Based on the content of the foregoing embodiment, in this embodiment, in order to improve the efficiency of video frame extraction, a data pool corresponding to a target video may be pre-established, so that when a target video frame extraction task is obtained, an extracted image frame may be directly obtained from the corresponding data pool, where the step of establishing the data pool corresponding to the target video specifically includes:
according to task demand parameters corresponding to preset video frame extraction tasks: the method comprises the steps of carrying out 0.1s time interval, 0.5s time interval, 1s time interval, 2s time interval, 3s time interval, key character A, key character B, key character C, key character D, key character E, quarrel scene, fighting scene, love or warm scene, dance scene and gunshot scene, respectively carrying out video frame extraction on target videos in different tasks, correspondingly storing video frame extraction results corresponding to the different tasks into corresponding image frame databases, simultaneously establishing mapping relations between task demand parameters of the different tasks and corresponding image frame database identifications, and further accurately positioning and obtaining pre-extracted image frames of target video frame extraction tasks through the mapping relations.
According to the video frame extraction method provided by the embodiment of the invention, the data pool corresponding to the target video is established in advance, so that the image frame to be extracted by the target video frame extraction task can be directly obtained from the corresponding data pool, and the image frame is not required to be extracted by executing the target video frame extraction task on the frame extraction database, so that the memory occupancy rate is reduced, and the video frame extraction efficiency is improved.
Based on the content of the foregoing embodiment, in this embodiment, since the frame extracting database is responsible for executing the video frame extracting task, if the frame extracting database has the video frame extracting task being executed, if the target video frame extracting task and the video frame extracting task being executed in the frame extracting database are executed simultaneously, the memory usage may be too high, which may cause application crash. Therefore, in this embodiment, according to the video frame extracting task information in the frame extracting database, it may be determined whether an executing video frame extracting task exists in the frame extracting database, and if the executing video frame extracting task exists in the frame extracting database, after the executing video frame extracting task is finished, it is determined whether the executing video frame extracting task exists in the frame extracting database, so as to avoid a problem that the application is crashed due to an excessively high memory occupancy rate caused by the simultaneous execution of multiple video frame extracting tasks by the frame extracting database.
According to the video frame extraction method provided by the embodiment of the invention, if the executing video frame extraction task exists in the frame extraction database, after the executing video frame extraction task is finished, whether the executing video frame extraction task exists in the frame extraction database is judged, so that the problems that the frame extraction database executes a plurality of video frame extraction tasks simultaneously to cause overhigh memory occupancy rate and further application breakdown are avoided.
Based on the content of the foregoing embodiment, in this embodiment, a frame extracting object list of a currently executed sub-video frame extracting task is obtained by retrieving a frame extracting database, and it is determined whether a storage path of a corresponding sub-video exists, so as to determine whether the corresponding sub-video is deleted or damaged, if it is determined that the storage path of the sub-video does not exist in the frame extracting object list, it is described that the corresponding sub-video is deleted or damaged, video frame extraction cannot be normally performed, execution of the current sub-video frame extracting task is sequentially stopped, state information reporting the current sub-video frame extracting task is recorded, and a next sub-video frame extracting task is continuously executed, so that information of each sub-video frame extracting task can be accurately grasped (for example, failure or successful execution).
According to the video frame extraction method provided by the embodiment of the invention, if the storage path of the sub-video does not exist in the frame extraction object list, the current sub-video frame extraction task is stopped to be executed, and the state information of the current sub-video frame extraction task is recorded and reported, so that the sub-video frame extraction task with problems can be timely known and processed.
Based on the content of the foregoing embodiment, in this embodiment, when determining that a path corresponding to a sub-video exists in a frame extraction object list, performing video frame extraction on the sub-video by analyzing the frame extraction object list specifically includes:
the method comprises the steps of analyzing a frame extraction object list, positioning and extracting a sub-video and a frame extraction offset corresponding to a current sub-video frame extraction task, positioning an image frame at the time point of the sub-video, extracting the image frame, repackaging the image frame into frame information after obtaining an image path, analyzing the frame information, obtaining the image frame to be extracted by the sub-video, uploading the corresponding image frame to a server, recording the uploading state of each image frame according to uploading call-back, sending the report to the server, and enabling the server to judge whether all the sub-video frame extraction tasks are executed. The frame information carries image frame storage path data to be extracted by the sub-video.
According to the video frame extraction method provided by the embodiment of the invention, the sub-video is subjected to video frame extraction through analyzing the frame extraction object list, so that the image frames to be extracted are successfully uploaded to the server side.
Based on the content of the foregoing embodiment, in this embodiment, after performing video frame extraction on the sub-video corresponding to the current sub-video frame extraction task, it is required to determine whether the current sub-video frame extraction task is the last sub-video frame extraction task, so that the server can determine whether to empty the corresponding video frame extraction task information and execute the next video frame extraction task.
Specifically, after video frame extraction is carried out on a sub-video, after image frames extracted from the sub-video are successfully uploaded to a server, whether the currently executed sub-video frame extraction task is the last sub-video frame extraction task or not is judged, if yes, the server is reported, and all sub-video frame extraction tasks are emptied; if not, continuously executing the sub-video frame extracting task according to the execution sequence of each sub-video frame extracting task, and performing video frame extraction on the sub-videos. After the server side empties all the sub-video frame extracting tasks, it is described that the frame extracting database can execute the next video frame extracting task, so that whether the video frame extracting task to be executed exists in the frame extracting database is checked, and if the task exists, the corresponding image frame is obtained according to the above embodiment.
According to the video frame extracting method provided by the embodiment of the invention, after the video frame extraction is carried out on the sub-video, the image frame extracted by the sub-video is successfully uploaded to the server, and whether the currently executed sub-video frame extracting task is the last sub-video frame extracting task or not is judged, so that the server can timely judge whether the next video frame extracting task can be executed or not, and the video frame extracting efficiency is improved.
Fig. 2 is a schematic structural diagram of a video frame extracting apparatus according to a second embodiment of the present invention, and as shown in fig. 2, the video frame extracting apparatus according to the second embodiment of the present invention includes:
the obtaining unit 210 is configured to determine whether an executing video frame extracting task exists in a frame extracting database according to video frame extracting task information in the frame extracting database, if not, obtain a target video frame extracting task to be video-extracted from the server, determine whether an image frame database matching the target video frame extracting task exists in a data pool corresponding to the target video according to the target video frame extracting task, and if so, obtain each image frame that has been extracted according to the target video frame extracting task from the image frame database matching the target video frame extracting task; the data pool stores an image frame database matched with each preset video frame extracting task, and each image frame database stores each image frame extracted according to the corresponding video frame extracting task;
the frame extracting unit 220 is configured to download the target video frame extracting task from the server to the frame extracting database if the image frame database matching the target video frame extracting task does not exist in the data pool corresponding to the target video, segment the target video into a plurality of sub-videos according to the segment duration of the target video, establish corresponding sub-video frame extracting tasks by using the sub-videos as frame extracting videos, sequentially execute the sub-video frame extracting tasks according to the execution sequence of the sub-video frame extracting tasks, and perform video frame extraction on the sub-videos; the sum of the segment time lengths of the corresponding sub-videos in each sub-video frame extracting task is the same as the segment time length of the target video, and each sub-video frame extracting task is marked with execution sequence information;
the target video frame extracting task comprises a target video identifier and a target task demand parameter corresponding to the target video frame extracting task;
wherein, performing video frame extraction on the sub-video comprises:
retrieving a frame extraction database to obtain a frame extraction object list of a currently executed sub-video frame extraction task, judging whether a storage path corresponding to the sub-video exists or not, and if so, performing video frame extraction on the sub-video by analyzing the frame extraction object list; the frame extraction object list comprises storage path information and task requirement parameter information of corresponding sub-videos.
The video frame extracting apparatus of this embodiment can be used to perform the video frame extracting method of the first embodiment, and the principle and technical effects are similar, and will not be described in detail here.
Fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention, and as shown in fig. 3, the electronic device may include: a processor (processor)310, a communication interface (communication interface)320, a memory (memory)330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other via the communication bus 340. The processor 310 may invoke logic instructions in the memory 330 to perform a video framing method comprising: judging whether an executing video frame extracting task exists in a frame extracting database according to video frame extracting task information in the frame extracting database, if not, acquiring a target video frame extracting task of video frame extraction to be performed from a server side, judging whether an image frame database matched with the target video frame extracting task exists in a data pool corresponding to a target video according to the target video frame extracting task, and if so, acquiring each image frame extracted according to the target video frame extracting task from the image frame database matched with the target video frame extracting task; the data pool is used for storing a plurality of video frame extraction tasks, wherein the data pool is used for storing image frame databases matched with the preset video frame extraction tasks, and each image frame database is used for storing each image frame extracted according to the corresponding video frame extraction task; if no image frame database matched with the target video frame extracting task exists in a data pool corresponding to the target video, downloading the target video frame extracting task from a server to the frame extracting database, segmenting the target video into a plurality of sub-videos according to the segment duration of the target video, establishing corresponding sub-video frame extracting tasks by taking the sub-videos as frame extracting videos respectively, sequentially executing the sub-video frame extracting tasks according to the execution sequence of the sub-video frame extracting tasks, and performing video frame extraction on the sub-videos; the sum of the segment time lengths of the corresponding sub-videos in each sub-video frame extracting task is the same as the segment time length of the target video, and each sub-video frame extracting task is marked with execution sequence information; the target video frame extracting task comprises a target video identifier and a target task demand parameter corresponding to the target video frame extracting task; wherein, the video frame extraction for the sub-videos comprises: retrieving a frame extraction database to obtain a frame extraction object list of a currently executed sub-video frame extraction task, judging whether a storage path corresponding to the sub-video exists or not, and if so, performing video frame extraction on the sub-video by analyzing the frame extraction object list; the frame extraction object list comprises storage path information and task demand parameter information of corresponding sub-videos.
In addition, the logic instructions in the memory 330 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In another aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the video frame extracting method provided by the above-mentioned method embodiments, where the method includes: judging whether an executing video frame extracting task exists in a frame extracting database according to video frame extracting task information in the frame extracting database, if not, acquiring a target video frame extracting task of video frame extraction to be performed from a server side, judging whether an image frame database matched with the target video frame extracting task exists in a data pool corresponding to a target video according to the target video frame extracting task, and if so, acquiring each image frame extracted according to the target video frame extracting task from the image frame database matched with the target video frame extracting task; the data pool is used for storing a plurality of video frame extraction tasks, wherein the data pool is used for storing image frame databases matched with the preset video frame extraction tasks, and each image frame database is used for storing each image frame extracted according to the corresponding video frame extraction task; if no image frame database matched with the target video frame extracting task exists in a data pool corresponding to the target video, downloading the target video frame extracting task from a server to the frame extracting database, segmenting the target video into a plurality of sub-videos according to the segment duration of the target video, establishing corresponding sub-video frame extracting tasks by taking the sub-videos as frame extracting videos respectively, sequentially executing the sub-video frame extracting tasks according to the execution sequence of the sub-video frame extracting tasks, and performing video frame extraction on the sub-videos; the sum of the segment time lengths of the corresponding sub-videos in each sub-video frame extracting task is the same as the segment time length of the target video, and each sub-video frame extracting task is marked with execution sequence information; the target video frame extracting task comprises a target video identifier and a target task demand parameter corresponding to the target video frame extracting task; wherein, the video frame extraction for the sub-videos comprises: retrieving a frame extraction database to obtain a frame extraction object list of a currently executed sub-video frame extraction task, judging whether a storage path corresponding to the sub-video exists or not, and if so, performing video frame extraction on the sub-video by analyzing the frame extraction object list; the frame extraction object list comprises storage path information and task demand parameter information of corresponding sub-videos.
In yet another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to perform the video frame extracting method provided by the foregoing embodiments, and the method includes: judging whether an executing video frame extracting task exists in a frame extracting database according to video frame extracting task information in the frame extracting database, if not, acquiring a target video frame extracting task of video frame extraction to be performed from a server side, judging whether an image frame database matched with the target video frame extracting task exists in a data pool corresponding to a target video according to the target video frame extracting task, and if so, acquiring each image frame extracted according to the target video frame extracting task from the image frame database matched with the target video frame extracting task; the data pool is used for storing a plurality of video frame extraction tasks, wherein the data pool is used for storing image frame databases matched with the preset video frame extraction tasks, and each image frame database is used for storing each image frame extracted according to the corresponding video frame extraction task; if no image frame database matched with the target video frame extracting task exists in a data pool corresponding to the target video, downloading the target video frame extracting task from a server to the frame extracting database, segmenting the target video into a plurality of sub-videos according to the segment duration of the target video, establishing corresponding sub-video frame extracting tasks by taking the sub-videos as frame extracting videos respectively, sequentially executing the sub-video frame extracting tasks according to the execution sequence of the sub-video frame extracting tasks, and performing video frame extraction on the sub-videos; the sum of the segment time lengths of the corresponding sub-videos in each sub-video frame extracting task is the same as the segment time length of the target video, and each sub-video frame extracting task is marked with execution sequence information; the target video frame extracting task comprises a target video identifier and a target task demand parameter corresponding to the target video frame extracting task; wherein, the video frame extraction for the sub-videos comprises: retrieving a frame extraction database to obtain a frame extraction object list of a currently executed sub-video frame extraction task, judging whether a storage path corresponding to the sub-video exists or not, and if so, performing video frame extraction on the sub-video by analyzing the frame extraction object list; the frame extraction object list comprises storage path information and task demand parameter information of corresponding sub-videos.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for video framing, comprising:
judging whether an executing video frame extracting task exists in a frame extracting database according to video frame extracting task information in the frame extracting database, if not, acquiring a target video frame extracting task of video frame extraction to be performed from a server side, judging whether an image frame database matched with the target video frame extracting task exists in a data pool corresponding to a target video according to the target video frame extracting task, and if so, acquiring each image frame extracted according to the target video frame extracting task from the image frame database matched with the target video frame extracting task; the data pool is used for storing a plurality of video frame extraction tasks, wherein the data pool is used for storing image frame databases matched with the preset video frame extraction tasks, and each image frame database is used for storing each image frame extracted according to the corresponding video frame extraction task;
if no image frame database matched with the target video frame extracting task exists in a data pool corresponding to the target video, downloading the target video frame extracting task from a server to the frame extracting database, segmenting the target video into a plurality of sub-videos according to the segment duration of the target video, establishing corresponding sub-video frame extracting tasks by taking the sub-videos as frame extracting videos respectively, sequentially executing the sub-video frame extracting tasks according to the execution sequence of the sub-video frame extracting tasks, and performing video frame extraction on the sub-videos; the sum of the segment time lengths of the corresponding sub-videos in each sub-video frame extracting task is the same as the segment time length of the target video, and each sub-video frame extracting task is marked with execution sequence information;
the target video frame extracting task comprises a target video identifier and a target task demand parameter corresponding to the target video frame extracting task;
wherein, the video frame extraction for the sub-videos comprises:
retrieving a frame extraction database to obtain a frame extraction object list of a currently executed sub-video frame extraction task, judging whether a storage path corresponding to the sub-video exists or not, and if so, performing video frame extraction on the sub-video by analyzing the frame extraction object list; the frame extraction object list comprises storage path information and task demand parameter information of corresponding sub-videos.
2. The video framing method according to claim 1, wherein the preset video framing tasks include: a video frame-extracting task according to 0.1s time interval, a video frame-extracting task according to 0.5s time interval, a video frame-extracting task according to 1s time interval, a video frame-extracting task according to 2s time interval, a video frame-extracting task according to 3s time interval, a video frame-extracting task according to key character a, a video frame-extracting task according to key character B, a video frame-extracting task according to key character C, a video frame-extracting task according to key character D, a video frame-extracting task according to key character E, a video frame-extracting task according to quarrel scene, a video frame-extracting task according to fighting scene, a video frame-extracting task according to love or warm scene, a video frame-extracting task according to dance scene, a video frame-extracting task according to gunshot scene;
the task requirement parameters corresponding to the preset video frame extracting tasks are respectively as follows: a 0.1s time interval, a 0.5s time interval, a 1s time interval, a 2s time interval, a 3s time interval, key character a, key character B, key character C, key character D, key character E, a quarry scene, a fighting scene, a love or warm scene, a dance scene, a gunshot scene;
correspondingly, the data pool stores the mapping relation between the task demand parameters of each preset video frame extracting task and the corresponding image frame database identification;
correspondingly, judging whether an image frame database matched with the target video frame extracting task exists in a data pool corresponding to the target video according to the target video frame extracting task, if so, acquiring each image frame which is extracted according to the target video frame extracting task from the image frame database matched with the target video frame extracting task, wherein the image frame extracting task comprises the following steps:
and judging whether an image frame database identifier matched with the target task requirement parameter exists in a data pool corresponding to the target video according to the target task requirement parameter contained in the target video frame extracting task, if so, acquiring each image frame extracted according to the target video frame extracting task from a corresponding image frame database according to the matched image frame database identifier.
3. The video framing method of claim 2, further comprising:
the step of pre-establishing a data pool corresponding to the target video specifically includes:
according to task demand parameters corresponding to preset video frame extraction tasks: the method comprises the steps of performing video frame extraction on target videos at 0.1s time interval, 0.5s time interval, 1s time interval, 2s time interval, 3s time interval, key character A, key character B, key character C, key character D, key character E, a quarrel scene, a fighting scene, a love or warm scene, a dance scene and a gunshot scene respectively, performing video frame extraction of different tasks on the target videos, correspondingly storing video frame extraction results corresponding to the different tasks into corresponding image frame databases, and meanwhile establishing a mapping relation between task demand parameters of the different tasks and corresponding image frame database identifications.
4. The video frame extraction method according to claim 1, wherein if the frame extraction database has the video frame extraction task being executed, after the video frame extraction task being executed is finished, it is determined whether the video frame extraction task being executed exists in the frame extraction database.
5. The video frame extraction method according to claim 1, wherein if it is determined that the storage path of the sub-video does not exist in the frame extraction object list, the execution of the current sub-video frame extraction task is stopped, and status information of reporting the current sub-video frame extraction task is recorded.
6. The method of claim 1, wherein video-decimating the sub-video by parsing the decimated object list comprises:
acquiring frame information carrying image frame storage path data to be extracted by a sub video through analyzing an extracted frame object list;
and analyzing the frame information to obtain the image frame to be extracted by the sub-video.
7. The video framing method of claim 6, further comprising, after video framing the sub-video:
after the image frames extracted by the sub-videos are successfully uploaded to the server, judging whether the currently executed sub-video frame extracting task is the last sub-video frame extracting task or not, if so, reporting the server and emptying all the sub-video frame extracting tasks; if not, continuously executing the sub-video frame extracting task according to the execution sequence of each sub-video frame extracting task, and performing video frame extraction on the sub-videos.
8. A video framing apparatus, comprising:
the acquisition unit is used for judging whether an executing video frame extracting task exists in a frame extracting database according to video frame extracting task information in the frame extracting database, if not, acquiring a target video frame extracting task of video frame extraction to be performed from a server side, judging whether an image frame database matched with the target video frame extracting task exists in a data pool corresponding to a target video according to the target video frame extracting task, and if so, acquiring each image frame extracted according to the target video frame extracting task from the image frame database matched with the target video frame extracting task; the data pool is used for storing a plurality of video frame extraction tasks, wherein the data pool is used for storing image frame databases matched with the preset video frame extraction tasks, and each image frame database is used for storing each image frame extracted according to the corresponding video frame extraction task;
the frame extracting unit is used for downloading the target video frame extracting task from the server side to the frame extracting database if the image frame database matched with the target video frame extracting task does not exist in the data pool corresponding to the target video, segmenting the target video into a plurality of sub-videos according to the segment duration of the target video, establishing corresponding sub-video frame extracting tasks by taking the sub-videos as frame extracting videos respectively, sequentially executing the sub-video frame extracting tasks according to the execution sequence of the sub-video frame extracting tasks, and performing video frame extraction on the sub-videos; the sum of the segment time lengths of the corresponding sub-videos in each sub-video frame extracting task is the same as the segment time length of the target video, and each sub-video frame extracting task is marked with execution sequence information;
the target video frame extracting task comprises a target video identifier and a target task demand parameter corresponding to the target video frame extracting task;
wherein, the video frame extraction for the sub-videos comprises:
retrieving a frame extraction database to obtain a frame extraction object list of a currently executed sub-video frame extraction task, judging whether a storage path corresponding to the sub-video exists or not, and if so, extracting the sub-video frame by analyzing the frame extraction object list; the frame extraction object list comprises storage path information and task demand parameter information of corresponding sub-videos.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps of the video framing method according to any of claims 1 to 7.
10. A non-transitory computer readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the steps of the video framing method according to any one of claims 1 to 7.
CN202010937308.4A 2020-09-09 2020-09-09 Video frame extraction method and device Pending CN111930998A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010937308.4A CN111930998A (en) 2020-09-09 2020-09-09 Video frame extraction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010937308.4A CN111930998A (en) 2020-09-09 2020-09-09 Video frame extraction method and device

Publications (1)

Publication Number Publication Date
CN111930998A true CN111930998A (en) 2020-11-13

Family

ID=73309226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010937308.4A Pending CN111930998A (en) 2020-09-09 2020-09-09 Video frame extraction method and device

Country Status (1)

Country Link
CN (1) CN111930998A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113038072A (en) * 2021-02-05 2021-06-25 深圳市深粮控股股份有限公司 Positioning method and device based on video information, storage medium and terminal equipment
CN113792600A (en) * 2021-08-10 2021-12-14 武汉光庭信息技术股份有限公司 Video frame extraction method and system based on deep learning

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020030673A1 (en) * 2000-05-22 2002-03-14 Yoshihiko Ikemoto Video display apparatus and display method
CN104980817A (en) * 2015-07-13 2015-10-14 无锡天脉聚源传媒科技有限公司 Video stream frame extraction method and device
CN110505495A (en) * 2019-08-23 2019-11-26 北京达佳互联信息技术有限公司 Multimedia resource takes out frame method, device, server and storage medium
CN111523566A (en) * 2020-03-31 2020-08-11 易视腾科技股份有限公司 Target video clip positioning method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020030673A1 (en) * 2000-05-22 2002-03-14 Yoshihiko Ikemoto Video display apparatus and display method
CN104980817A (en) * 2015-07-13 2015-10-14 无锡天脉聚源传媒科技有限公司 Video stream frame extraction method and device
CN110505495A (en) * 2019-08-23 2019-11-26 北京达佳互联信息技术有限公司 Multimedia resource takes out frame method, device, server and storage medium
CN111523566A (en) * 2020-03-31 2020-08-11 易视腾科技股份有限公司 Target video clip positioning method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113038072A (en) * 2021-02-05 2021-06-25 深圳市深粮控股股份有限公司 Positioning method and device based on video information, storage medium and terminal equipment
CN113792600A (en) * 2021-08-10 2021-12-14 武汉光庭信息技术股份有限公司 Video frame extraction method and system based on deep learning
CN113792600B (en) * 2021-08-10 2023-07-18 武汉光庭信息技术股份有限公司 Video frame extraction method and system based on deep learning

Similar Documents

Publication Publication Date Title
US11141665B2 (en) Method of determining exciting moments in a game video and method of playing a game video
CN111930998A (en) Video frame extraction method and device
CN108062507B (en) Video processing method and device
CN111372116B (en) Video playing prompt information processing method and device, electronic equipment and storage medium
CN113596488B (en) Live broadcast room display method and device, electronic equipment and storage medium
CN105338564B (en) A kind of client adaptation method, client, server and system
CN110677718A (en) Video identification method and device
CN113905196B (en) Video frame management method, video recorder, and computer-readable storage medium
CN113312237B (en) Information feedback method and device, electronic equipment and storage medium
CN110414322B (en) Method, device, equipment and storage medium for extracting picture
CN111881734A (en) Method and device for automatically intercepting target video
CN115526859A (en) Method for identifying production defects, distributed processing platform, equipment and storage medium
CN114328392A (en) Advertising media material management system, method, equipment and medium
CN112770080B (en) Meter reading method, meter reading device and electronic equipment
CN112449209B (en) Video storage method and device, cloud server and computer readable storage medium
CN113590277A (en) Task state switching method and device and electronic system
CN109150967B (en) Photo album creating method and device and electronic equipment
CN112118410B (en) Service processing method, device, terminal and storage medium
CN117411987B (en) Drop-out time detection method, drop-out time detection equipment and storage medium for monitoring video
CN113946380B (en) Picture loading method and device and video processing equipment
CN113949773B (en) Real-time queuing method and system for multi-person videos
KR102585604B1 (en) Image synchronization methods and devices, devices, computer storage media
CN113724225B (en) Method and device for determining transmission quality of application program
CN110737447B (en) Application updating method and device
CN112104907B (en) Picture playing method and device

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

Application publication date: 20201113

RJ01 Rejection of invention patent application after publication