CN109618225B - Video frame extraction method, device, equipment and medium - Google Patents
Video frame extraction method, device, equipment and medium Download PDFInfo
- Publication number
- CN109618225B CN109618225B CN201811593674.1A CN201811593674A CN109618225B CN 109618225 B CN109618225 B CN 109618225B CN 201811593674 A CN201811593674 A CN 201811593674A CN 109618225 B CN109618225 B CN 109618225B
- Authority
- CN
- China
- Prior art keywords
- frame
- video
- extracted
- extracting
- preview
- 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.)
- Active
Links
- 238000000605 extraction Methods 0.000 title claims abstract description 109
- 238000000034 method Methods 0.000 claims abstract description 37
- 238000009432 framing Methods 0.000 claims description 11
- 230000009467 reduction Effects 0.000 claims description 11
- 238000004458 analytical method Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 10
- 230000003287 optical effect Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The embodiment of the invention discloses a video frame extracting method, a video frame extracting device, video frame extracting equipment and a video frame extracting medium, and relates to the field of videos. The method comprises the following steps: acquiring a video to be frame-extracted and frame-extracting parameters; performing frame extraction on a video to be subjected to frame extraction according to the frame extraction parameters, and determining at least two candidate preview pictures; and determining the frame drawing picture according to the target preview picture selected by the user from the at least two candidate preview pictures. The embodiment of the invention provides a video frame extracting method, a video frame extracting device, video frame extracting equipment and a video frame extracting medium, which realize that a user selects a frame extracting picture according to needs.
Description
Technical Field
The embodiment of the invention relates to the field of videos, in particular to a video frame extracting method, a video frame extracting device, video frame extracting equipment and a video frame extracting medium.
Background
Video frame extraction is a process of extracting a single image from each frame image of a video.
The current video framing process can be described as: the client sends a request comprising a video to be frame-extracted and frame-extracting parameters to the server, the server analyzes the video data and the frame-extracting parameters in the request, frames the video data according to the frame-extracting parameters, and generates a frame-extracting picture to be fed back to a user.
However, the above method has the following drawbacks:
and the frame extraction pictures fed back to the user and obtained by frame extraction have parts of frame extraction pictures which are not needed by the user.
Disclosure of Invention
The embodiment of the invention provides a video frame extracting method, a video frame extracting device, video frame extracting equipment and a video frame extracting medium, so that a user can select a frame extracting picture according to needs.
In a first aspect, an embodiment of the present invention provides a video frame extraction method, where the method includes:
acquiring a video to be frame-extracted and frame-extracting parameters;
performing frame extraction on a video to be subjected to frame extraction according to the frame extraction parameters, and determining at least two candidate preview pictures;
and determining the frame drawing picture according to the target preview picture selected by the user from the at least two candidate preview pictures.
In a second aspect, an embodiment of the present invention further provides a video frame extracting apparatus, where the apparatus includes:
the data acquisition module is used for acquiring a video to be frame-extracted and frame-extracting parameters;
the preview generation module is used for performing frame extraction on the video to be frame extracted according to the frame extraction parameters and determining at least two candidate preview images;
and the frame extracting picture determining module is used for determining a frame extracting picture according to the target preview picture selected by the user from the at least two candidate preview pictures.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a video framing method as in any of the embodiments of the present invention.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the video frame extracting method according to any one of the embodiments of the present invention.
According to the embodiment of the invention, at least two candidate preview pictures are determined by performing frame extraction on the video to be subjected to frame extraction according to the frame extraction parameters. And enabling the user to preview the image content included in the frame-to-be-extracted video according to the candidate preview image. And determining the frame drawing picture according to the target preview picture selected by the user from the at least two candidate preview pictures. Therefore, the user can select the frame drawing picture according to the requirement.
Drawings
FIG. 1 is a flow chart of a video framing method currently in use;
fig. 2 is a flowchart of a video frame extraction method according to an embodiment of the present invention;
fig. 3 is a flowchart of a video frame extraction method according to a second embodiment of the present invention;
fig. 4 is a schematic diagram illustrating an execution flow of a video frame extraction method according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of temporary video data generation according to a third embodiment of the present invention;
FIG. 6 is a schematic diagram of a preview provided by a third embodiment of the present invention;
fig. 7 is a schematic diagram of a video clip upload according to a third embodiment of the present invention;
fig. 8 is a schematic structural diagram of a video frame extracting apparatus according to a fourth embodiment of the present invention;
fig. 9 is a schematic structural diagram of an apparatus according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Referring to fig. 1, the currently used video frame extraction method is: the local application converts the video data into binary data, then places the converted binary data and the framing parameters in a request body and sends the binary data and the framing parameters to an application Server (namely, an APP Server) together with the request, and the application Server executes the following steps: and the analysis request calls a video frame extraction service to extract frames of the to-be-extracted frame video and the frame extraction parameters according to the frame extraction parameters, generates a frame extraction picture, and feeds the frame extraction picture back to the client.
Example one
Fig. 2 is a flowchart of a video frame extraction method according to an embodiment of the present invention. The embodiment can be applied to the situation of frame extraction of videos according to needs. The method may be performed by a video framing apparatus, which may be implemented in software and/or hardware. Referring to fig. 2, the video frame extracting method provided by the embodiment includes:
and S110, acquiring a video to be frame-extracted and frame-extracting parameters.
The frame extraction parameter is a parameter required in the process of extracting frames of the video to be frame extracted. The specific frame extraction parameters may include the number of frame extraction pictures extracted from the video to be frame extracted and/or the frame extraction mode.
In order to reduce the workload of the main thread or avoid the main thread from being blocked, before acquiring the video to be frame-extracted and the frame-extracting parameters, the method further comprises the following steps:
and starting a sub thread asynchronously to perform frame extraction processing on the video.
And S120, performing frame extraction on the video to be subjected to frame extraction according to the frame extraction parameters, and determining at least two candidate preview pictures.
Optionally, pictures obtained by frame extraction from a video to be frame extracted can be determined as candidate preview pictures; or reducing the resolution of the picture obtained by frame extraction from the video to be subjected to frame extraction to generate a candidate preview picture.
Specifically, after determining at least two candidate preview images, the method further includes: and displaying the candidate preview images.
Typically, displaying the candidate preview images includes:
displaying thumbnails of the candidate preview images;
and acquiring thumbnails of the candidate preview images selected by the user, and displaying the candidate preview images selected by the user.
Further, after displaying the thumbnails of the candidate preview images, the method further includes:
responding to sliding of the user on the thumbnails of the candidate preview images, and identifying a sliding direction;
and performing sliding display on the thumbnails of the candidate preview images according to the sliding direction.
S130, determining the frame drawing picture according to the target preview picture selected by the user from the at least two candidate preview pictures.
The target preview image is a desired picture selected by the user from the candidate preview images.
Optionally, the target preview image may be determined as a decimated picture; and extracting the frame-extracting picture from the video to be frame-extracted according to the identification of the target preview picture.
In order to realize the frame extraction of the video to be frame extracted without a network and relieve the operation pressure of a server, the execution subject of the operation of extracting the frame extraction picture from the video to be frame extracted based on the frame extraction parameters is typically a client.
According to the technical scheme of the embodiment, at least two candidate preview images are determined by performing frame extraction on the video to be frame-extracted according to the frame extraction parameters. And enabling the user to preview the image content included in the frame-to-be-extracted video according to the candidate preview image. And determining the frame drawing picture according to the target preview picture selected by the user from the at least two candidate preview pictures. Therefore, the user can select the frame drawing picture according to the requirement.
In order to solve the problem of overflow of a client memory caused by large memory occupation of a video to be processed, if an execution main body of the method is a server, the method for acquiring the video to be frame-extracted comprises the following steps:
acquiring video clips uploaded by a client in batches;
and splicing the acquired video clips to obtain the video to be frame-extracted.
In order to avoid the situation that errors occur in the process of acquiring the video to be frame-extracted, which results in retransmission of all the video to be frame-extracted, the acquiring of the video segments uploaded by the client in batches includes:
and if the acquisition of the video segment uploaded by the client fails, acquiring the video segment from the client based on the identifier of the video segment which fails to be acquired.
Therefore, when the video to be frame-extracted fails to be acquired, only the video clip which fails to be acquired is acquired again.
Example two
Fig. 3 is a flowchart of a video frame extraction method according to a second embodiment of the present invention. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 3, the video frame extracting method provided by the embodiment includes:
s210, acquiring a video to be frame-extracted and frame-extracting parameters.
And S220, performing resolution reduction processing on the video to be frame extracted to generate temporary video data.
And S230, performing frame extraction on the temporary video data based on the frame extraction parameters to generate a candidate preview image.
S240, determining the frame-drawing picture according to the target preview picture selected by the user from the at least two candidate preview pictures.
In order to enable a user to obtain a high-resolution frame-drawing picture, the determining a frame-drawing picture according to a target preview image selected by the user from the at least two candidate preview images includes:
and extracting the frame drawing picture from the video to be frame drawn according to the mark of the target preview picture selected from the at least two candidate preview pictures by the user.
According to the technical scheme, the candidate preview images are generated based on the low-resolution temporary video data, and compared with the method of directly generating the candidate preview images based on the to-be-decimated video, the method and the device for generating the candidate preview images reduce the occupation of storage resources and the calculation amount.
Further, the processing of reducing the resolution of the video to be frame-extracted to generate temporary video data includes:
if the temporary video data are failed to be generated, analyzing the failure reason according to an error prompt;
determining a frame extraction mode of a video to be frame extracted according to a failure reason;
and executing frame extraction operation of the video to be frame extracted based on the determined frame extraction mode of the video to be frame extracted.
Further, the determining a frame extraction mode of the video to be frame-extracted according to the failure reason includes:
if the failure reason is memory overflow, determining that the frame extraction mode of the video to be frame extracted is as follows: and performing frame extraction on the video to be frame extracted based on the frame extraction parameters to obtain candidate preview pictures, and taking the target preview pictures selected from the candidate preview pictures as the frame extraction pictures.
And if the failure reason is not the memory overflow, re-executing the step of performing resolution reduction processing on the frame to be extracted to generate temporary video data.
EXAMPLE III
Fig. 4 is a schematic diagram illustrating an execution flow of a video frame extraction method according to a third embodiment of the present invention. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 4, the video frame extracting method provided in this embodiment includes:
in response to a video frame extraction event, asynchronously starting a child thread to perform the following operations:
acquiring a video to be frame-extracted and frame-extracting parameters based on a UI module;
and analyzing the video frame extraction parameters, and determining a corresponding frame extraction strategy according to the analyzed video frame extraction parameters.
And if the frame extracting strategy is a local frame extracting scheme, converting the format of the to-be-extracted frame video based on a local video frame extracting module, reducing the resolution ratio, generating temporary video data used for frame extracting preview and displaying the temporary video data based on a UI module.
The temporary video data generation process is shown in fig. 5.
And generating thumbnails of the candidate preview images based on the temporary video data, and displaying the thumbnails of the candidate preview images based on the UI module for the user to slide and preview, wherein the preview effect is shown in figure 6.
And displaying the thumbnail of the candidate preview image selected by the user in an enlarged manner.
If the generation of the candidate preview picture fails, analyzing the failure reason according to an error prompt;
and if the failure reason is memory overflow, performing frame extraction on the video to be frame extracted based on the frame extraction parameters to obtain candidate preview pictures, and taking the target preview pictures selected from the candidate preview pictures as the frame extraction pictures.
And if the failure reason is not the memory overflow, re-executing the resolution reduction processing on the video to be frame-extracted to generate temporary video data, and generating a candidate preview image according to the temporary video data.
And acquiring a target preview image selected by a user from the candidate preview images, extracting a frame extraction image from the video to be frame extracted based on the identification of the target preview image, and sending the frame extraction image to a required service terminal based on a network module.
And if the frame extracting strategy is a server frame extracting scheme, performing adaptive processing on the format and the resolution of the video to be frame extracted.
Referring to fig. 7, the video to be frame-extracted after the adaptation processing is sliced according to the preset slicing size, and is uploaded to the server together with the frame-extraction parameters, and the server executes the following steps: sorting and splicing the received sliced video data; calling frame extraction service to perform frame extraction processing on the spliced video data according to the frame extraction parameters to generate frame extraction pictures; and feeding back the frame-extracted picture to the client.
According to the technical scheme of the embodiment, the frame extracting scheme is dynamically changed through the frame extracting strategy, so that a high-speed local frame extracting function is realized without uploading videos to a server, and a server frame extracting technology can be selected. Therefore, the problems of time consumption of server operation, no network flow blockage, frame data selection limitation and the like are solved. User flow and server resources are saved.
The user can control the number of the candidate preview images and the data of the candidate preview images by setting the frame extraction parameters, and can select the video frame data at any time by sliding for multiple times, so that the operation experience of the user is improved.
By adopting a fragment batch uploading mode for the video to be frame-extracted, the problem that the client is crashed due to memory overflow caused by overlarge video is effectively solved. Meanwhile, a breakpoint continuous transmission function is supported, when the uploading interruption is uploaded again, only failed data are uploaded, the flow consumption of a user is effectively reduced, the uploading speed is increased, and the user experience is greatly improved.
It should be noted that, through the technical teaching of the present embodiment, a person skilled in the art may motivate a combination of the schemes of any one of the implementations described in the above embodiments to realize the frame extraction of the video.
Example four
Fig. 8 is a schematic structural diagram of a video frame extracting apparatus according to a fourth embodiment of the present invention. Referring to fig. 8, the video frame extracting apparatus provided in this embodiment includes: the system comprises a data acquisition module 10, a preview generation module 20 and a frame drawing picture determination module 30.
The data acquisition module 10 is configured to acquire a video to be frame-extracted and frame-extracting parameters;
the preview generating module 20 is configured to perform frame extraction on a video to be frame extracted according to the frame extraction parameters, and determine at least two candidate preview images;
and the frame drawing picture determining module 30 is configured to determine a frame drawing picture according to a target preview selected by the user from the at least two candidate previews.
According to the technical scheme of the embodiment, at least two candidate preview images are determined by performing frame extraction on the video to be frame-extracted according to the frame extraction parameters. And enabling the user to preview the image content included in the frame-to-be-extracted video according to the candidate preview image. And determining the frame drawing picture according to the target preview picture selected by the user from the at least two candidate preview pictures. Therefore, the user can select the frame drawing picture according to the requirement.
Further, the preview generation module includes: a resolution reduction unit and a preview generation unit.
The resolution reduction unit is used for performing resolution reduction processing on the frame video to be extracted to generate temporary video data;
and the preview generating unit is used for extracting frames of the temporary video data based on the frame extracting parameters to generate candidate preview images.
Further, the decimated picture determining module includes: and a frame extraction picture determining unit.
And the frame drawing picture determining unit is used for extracting the frame drawing picture from the video to be subjected to frame drawing after delivery according to the mark of the target preview picture selected from the at least two candidate preview pictures by the user.
Further, the resolution reduction unit comprises a failure analysis subunit, a frame extraction determination subunit and a frame extraction subunit.
The failure analysis subunit is configured to, if the temporary video data generation fails, analyze a failure reason according to an error prompt;
the frame extraction determining subunit is used for determining a frame extraction mode of the video to be frame extracted according to the failure reason;
and the frame extracting subunit is used for executing the frame extracting operation of the video to be frame extracted based on the determined frame extracting mode of the video to be frame extracted.
Further, the frame extraction determining subunit is specifically configured to:
if the failure reason is memory overflow, determining that the frame extraction mode of the video to be frame extracted is as follows: and performing frame extraction on the video to be frame extracted based on the frame extraction parameters to obtain candidate preview pictures, and taking the target preview pictures selected from the candidate preview pictures as the frame extraction pictures.
Further, if the execution subject of the method is a server, the data acquisition module includes:
the batch acquisition unit is used for acquiring the video clips uploaded by the client in batches;
and the splicing unit is used for splicing the acquired video clips to obtain the video to be frame-extracted.
The video frame extracting device provided by the embodiment of the invention can execute the video frame extracting method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the executing method.
EXAMPLE five
Fig. 9 is a schematic structural diagram of an apparatus according to a fifth embodiment of the present invention. FIG. 9 illustrates a block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 9 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 9, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, and commonly referred to as a "hard drive"). Although not shown in FIG. 9, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The processing unit 16 executes programs stored in the system memory 28 to perform various functional applications and data processing, such as implementing a video framing method provided by an embodiment of the present invention.
EXAMPLE six
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a video frame extraction method according to any one of the embodiments of the present invention, where the method includes:
acquiring a video to be frame-extracted and frame-extracting parameters;
performing frame extraction on a video to be subjected to frame extraction according to the frame extraction parameters, and determining at least two candidate preview pictures;
and determining the frame drawing picture according to the target preview picture selected by the user from the at least two candidate preview pictures.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (5)
1. A method for video framing, comprising:
acquiring a video to be frame-extracted and frame-extracting parameters;
performing resolution reduction processing on a frame to be extracted video to generate temporary video data; if the temporary video data are failed to be generated, analyzing the failure reason according to an error prompt;
determining a frame extraction mode of a video to be frame extracted according to a failure reason;
executing frame extraction operation of the video to be frame extracted based on the determined frame extraction mode of the video to be frame extracted; if the failure reason is memory overflow, determining that the frame extraction mode of the video to be frame extracted is as follows: performing frame extraction on a video to be frame extracted based on the frame extraction parameters to obtain candidate preview pictures, and taking a target preview picture selected from the candidate preview pictures as a frame extraction picture;
performing frame extraction on the temporary video data based on the frame extraction parameters to generate at least two candidate preview pictures, and displaying the candidate preview pictures;
determining the target preview image as a frame extracting image according to the target preview image selected by the user from the at least two candidate preview images;
or extracting the frame drawing pictures from the video to be drawn according to the identification of the target preview image selected from the at least two candidate preview images by the user.
2. The method according to claim 1, wherein if the execution subject of the method is a server, acquiring the video to be framed comprises:
acquiring video clips uploaded by a client in batches;
and splicing the acquired video clips to obtain the video to be frame-extracted.
3. A video framing apparatus, comprising:
the data acquisition module is used for acquiring a video to be frame-extracted and frame-extracting parameters;
the preview generation module comprises a resolution reduction unit and is used for carrying out resolution reduction processing on a frame video to be extracted to generate temporary video data;
the resolution reduction unit comprises a failure analysis subunit, a resolution analysis unit and a resolution analysis unit, wherein the failure analysis subunit is used for analyzing failure reasons according to error prompt if the temporary video data is failed to be generated;
the frame extraction determining subunit is used for determining a frame extraction mode of the video to be frame extracted according to the failure reason;
the frame extracting subunit is used for executing the frame extracting operation of the video to be frame extracted based on the determined frame extracting mode of the video to be frame extracted;
the frame extraction determining subunit is specifically configured to:
if the failure reason is memory overflow, determining that the frame extraction mode of the video to be frame extracted is as follows: performing frame extraction on a video to be frame extracted based on the frame extraction parameters to obtain candidate preview pictures, and taking a target preview picture selected from the candidate preview pictures as a frame extraction picture;
the preview generating unit is used for performing frame extraction on the temporary video data based on the frame extraction parameters, generating at least two candidate preview pictures and displaying the candidate preview pictures;
the frame extracting picture determining module is used for determining the target preview image as a frame extracting picture according to the target preview image selected by the user from the at least two candidate preview images;
or extracting the frame drawing pictures from the video to be drawn according to the identification of the target preview image selected from the at least two candidate preview images by the user.
4. An electronic device, characterized in that the device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the video framing method of any of claims 1-2.
5. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a video framing method according to any one of claims 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811593674.1A CN109618225B (en) | 2018-12-25 | 2018-12-25 | Video frame extraction method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811593674.1A CN109618225B (en) | 2018-12-25 | 2018-12-25 | Video frame extraction method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109618225A CN109618225A (en) | 2019-04-12 |
CN109618225B true CN109618225B (en) | 2022-04-15 |
Family
ID=66011489
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811593674.1A Active CN109618225B (en) | 2018-12-25 | 2018-12-25 | Video frame extraction method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109618225B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110381365A (en) * | 2019-07-02 | 2019-10-25 | 北京字节跳动网络技术有限公司 | Video takes out frame method, device and electronic equipment |
CN110267101B (en) * | 2019-07-19 | 2021-11-09 | 西安因诺航空科技有限公司 | Unmanned aerial vehicle aerial video automatic frame extraction method based on rapid three-dimensional jigsaw |
CN110505495B (en) * | 2019-08-23 | 2021-12-07 | 北京达佳互联信息技术有限公司 | Multimedia resource frame extraction method, device, server and storage medium |
CN111083552A (en) * | 2019-12-30 | 2020-04-28 | 上海闻泰信息技术有限公司 | Thumbnail generation method, device, equipment and medium |
CN111538705B (en) * | 2020-04-15 | 2023-06-30 | 苏宁智能终端有限公司 | Video thumbnail preview method, control server and medium |
CN112541390B (en) * | 2020-10-30 | 2023-04-25 | 四川天翼网络股份有限公司 | Frame extraction dynamic scheduling method and system for examination video violation analysis |
CN113238698A (en) * | 2021-05-11 | 2021-08-10 | 北京达佳互联信息技术有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
CN114598834A (en) * | 2022-05-10 | 2022-06-07 | 中国铁塔股份有限公司 | Video processing method and device, electronic equipment and readable storage medium |
Family Cites Families (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100025967A (en) * | 2008-08-28 | 2010-03-10 | 삼성디지털이미징 주식회사 | Apparatus and method for previewing picture file in digital image processing device |
US9225904B2 (en) * | 2012-02-13 | 2015-12-29 | Htc Corporation | Image capture method and image capture system thereof |
CN102722590B (en) * | 2012-06-25 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and image acquisition method |
CN104639951B (en) * | 2013-11-06 | 2019-05-21 | 杭州海康威视数字技术股份有限公司 | The pumping frame processing method and device of video code flow |
CN104703028B (en) * | 2013-12-10 | 2017-09-12 | 深圳市朗驰欣创科技有限公司 | A kind of frame of video correcting method, apparatus and system |
CN104093090B (en) * | 2014-06-13 | 2018-04-13 | 北京奇艺世纪科技有限公司 | A kind of method for processing video frequency and device |
CN104683858B (en) * | 2015-02-13 | 2017-12-01 | 北京数码视讯科技股份有限公司 | A kind of method for previewing and device of the content of Streaming Media |
CN105338424B (en) * | 2015-10-29 | 2019-10-08 | 努比亚技术有限公司 | A kind of method for processing video frequency and system |
CN105872679A (en) * | 2015-12-31 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Barrage display method and device |
CN105681751A (en) * | 2016-01-15 | 2016-06-15 | 上海小蚁科技有限公司 | Method, device and system for presenting preview of video |
CN105704570B (en) * | 2016-03-08 | 2019-05-07 | 上海小蚁科技有限公司 | Method and apparatus for generating one or more preview frames of video |
CN105898520A (en) * | 2016-04-07 | 2016-08-24 | 合网络技术(北京)有限公司 | Video frame interception method and device |
CN107341154A (en) * | 2016-04-29 | 2017-11-10 | 北京京东尚科信息技术有限公司 | Method and apparatus derived from a kind of data |
CN108536481A (en) * | 2018-02-28 | 2018-09-14 | 努比亚技术有限公司 | A kind of application program launching method, mobile terminal and computer storage media |
CN108683562B (en) * | 2018-05-18 | 2022-05-17 | 深圳壹账通智能科技有限公司 | Anomaly detection positioning method and device, computer equipment and storage medium |
CN108985176B (en) * | 2018-06-20 | 2022-02-25 | 阿里巴巴(中国)有限公司 | Image generation method and device |
-
2018
- 2018-12-25 CN CN201811593674.1A patent/CN109618225B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109618225A (en) | 2019-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109618225B (en) | Video frame extraction method, device, equipment and medium | |
US20120039505A1 (en) | Dynamically resizing text area on a display device | |
CN109309844B (en) | Video speech processing method, video client and server | |
US20170302747A1 (en) | Card-type desktop implementation method, apparatus, and system | |
US20170026721A1 (en) | System and Methods Thereof for Auto-Playing Video Content on Mobile Devices | |
CN113626743A (en) | Method and device for determining target display page, electronic equipment and storage medium | |
WO2021082600A1 (en) | Webpage image monitoring method and apparatus, electronic device, and computer readable storage medium | |
CN112532896A (en) | Video production method, video production device, electronic device and storage medium | |
CN111651966A (en) | Data report file generation method and device and electronic equipment | |
CN109165372B (en) | Webpage loading method, device, equipment and storage medium | |
CN111241043A (en) | Multimedia file sharing method, terminal and storage medium | |
CN113312036B (en) | Large screen display method, device and equipment of Web page and storage medium | |
CN114237890A (en) | Application collaborative display method and device, server, terminal and program product | |
CN112532785B (en) | Image display method, image display device, electronic apparatus, and storage medium | |
US11265594B2 (en) | Data processing method and device, storage medium, electronic device | |
CN110442806B (en) | Method and apparatus for recognizing image | |
CN109831673B (en) | Live broadcast room data processing method, device, equipment and storage medium | |
CN108259958B (en) | Remote control key response method, device, equipment and storage medium | |
CN116578795A (en) | Webpage generation method and device, storage medium and electronic equipment | |
CN111240786A (en) | Walkthrough method and device, electronic equipment and storage medium | |
CN108132767B (en) | Application window preview method and system | |
CN113194279B (en) | Recording method of network conference, computer readable storage medium and electronic device | |
CN114496175A (en) | Medical image viewing method, device, equipment and storage medium | |
CN113626120A (en) | Method and device for determining display page, electronic equipment and storage medium | |
US9509772B1 (en) | Visualization and control of ongoing ingress actions |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |