Video frame extracting method and device, electronic device and storage medium
A video and target video technology, applied in the field of video processing, can solve the problem of slow video frame extraction, and achieve the effect of improving user experience, ensuring quality, and reducing pressure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] figure 1 It is a flow chart of a video frame extraction method provided by Embodiment 1 of the present invention. This embodiment is applicable to video frame extraction, and the method can be executed by a video frame extraction device, which can be implemented by software and / or Or hardware implementation, and can be configured in an electronic device, the electronic device can be a smart device such as a computer, a tablet computer or a mobile phone that can run a browser, such as figure 1 As shown, the method includes:
[0025] S110. Obtain the target video of the frame to be extracted through the browser.
[0026] A browser may be an application program running on an electronic device for displaying information resources, and these information resources may be web pages, pictures, video and audio, or other content. In the embodiment of the present invention, the browser can specifically be some content distribution platforms or websites, which can send various re...
Embodiment 2
[0037] figure 2 It is a flow chart of a video frame extraction method provided in Embodiment 2 of the present invention. This embodiment further optimizes the video frame extraction method on the basis of the foregoing embodiments. Such as figure 2 As shown, the video frame extraction method includes:
[0038] S210. Obtain the target video of the frame to be extracted through the browser.
[0039] S220. Extract the original width and original height of the target video through a specific method provided by the video object in the scripting language of the browser.
[0040] Among them, the scripting language is a programming language used to control software applications. The scripts are usually saved in text (such as ASCII), and are interpreted or compiled only when called. Exemplarily, the script of the Web application includes: JavaScript, VBScript, Perl, PHP, Python, Ruby and other scripting languages. Browsers in electronic devices of different systems or d...
Embodiment 3
[0050] image 3 It is a flow chart of a video frame extraction method provided in Embodiment 3 of the present invention. This embodiment further optimizes the video frame extraction method on the basis of the above embodiments. Such as image 3 As shown, the video frame extraction method includes:
[0051] S310. Obtain the target video of the frame to be extracted through the browser.
[0052] S320. Obtain the video duration of the target video, and calculate the video jump duration of each frame drawing according to the preset number and the video duration.
[0053] When the target video is obtained, specific tools and methods can be used to obtain the duration of the target video. For example, the specific method provided in the Video object supported by the browser can be used to obtain it. For example, the video.videoDuration method can be used to set the length of the returned video ( in seconds). Further, the video jump duration of each extracted frame can ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


