Video positioning preview display method and device, electronic equipment and storage medium

By using moving pictures instead of static pictures to store video positioning previews, and only decoding the target video positioning previews in the moving pictures, the problem of performance loss caused by static picture decoding and cropping is solved, and the efficiency of obtaining video positioning previews is improved.

CN118828126APending Publication Date: 2024-10-22BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410829039.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

When displaying video positioning preview images, the existing technology requires decoding and cropping static images, resulting in large performance losses and affecting efficiency.

Method used

Use moving pictures instead of static pictures to store video positioning previews, and obtain the required images by decoding the target video positioning previews in the moving pictures, reducing unnecessary decoding and cropping operations.

Benefits of technology

It reduces performance loss and optimizes the efficiency of obtaining video positioning preview images. It only needs to decode the target video positioning preview image in the target animation without cropping.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828126A_ABST
    Figure CN118828126A_ABST
Patent Text Reader

Abstract

The invention relates to a video positioning preview display method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a current video played on a video player in response to a preset operation for a video playing progress bar in the video player; searching a plurality of candidate motion pictures corresponding to the current video according to a preset corresponding relationship between the video and the motion pictures; determining a target dynamic graph from the plurality of candidate dynamic graphs; determining a target video positioning preview in the target moving picture, and decoding the target video positioning preview in the target moving picture to obtain the target video positioning preview; and displaying the target video positioning preview in the video player. Therefore, the target video positioning preview is displayed based on the dynamic picture, and compared with a mode of displaying the target video positioning preview through a static picture, only the target video positioning preview in the target dynamic picture needs to be decoded, and cutting is not needed, so that the performance loss is reduced, and the acquisition efficiency of the video positioning preview is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of multimedia technology, and in particular to a method, device, electronic device and storage medium for displaying a video positioning preview image. Background Art

[0002] The video seek preview image refers to the preview image displayed in the video player by controlling the video progress bar to control the video playback progress change (such as fast forward or rewind). It can help users quickly locate a part of the video they want to watch without having to play the entire video, which helps to improve the user's viewing experience. At present, for videos, images in the video are captured at a certain frame capture frequency, and each captured frame is used as a video seek preview image. This method will generate a large number of video seek preview images, which will increase the pressure on the server. In order to reduce the number of requests to the server, these video seek preview images are usually spliced ​​into a large static image for easy transmission to the client.

[0003] After the client receives the large static image composed of the video positioning preview images, it subsequently detects whether the user controls the video progress bar in the video player. If it is detected that the user controls the video progress bar, the video positioning preview image to be displayed is determined according to the playback progress corresponding to the current position of the video progress bar (determined by the user controlling the video progress bar), and then the large static image is decoded, and then the relevant area in the large static image is cropped to obtain the video positioning preview image, and finally the video positioning preview image can be displayed, which is convenient for the user to locate a part of the video that he wants to watch. To display the video positioning preview image in this way, it is necessary to decode the large static image and crop the relevant area in the large static image, which has a large performance loss. Summary of the invention

[0004] In order to solve the technical problem that the display of the video positioning preview image requires decoding of the large static image and cropping of the relevant area in the large static image, resulting in a large performance loss, the present application provides a method, device, electronic device and storage medium for displaying the video positioning preview image. The specific technical solution is as follows:

[0005] In a first aspect, the present application provides a method for displaying a video positioning preview image, the method comprising:

[0006] In response to a preset operation on a video playback progress bar in a video player, obtaining a current video played on the video player;

[0007] According to a preset correspondence between videos and animated images, searching for multiple candidate animated images corresponding to the current video, wherein each of the candidate animated images is encoded from multiple video positioning preview images of the current video;

[0008] Determine a target animated picture from the plurality of candidate animated pictures;

[0009] Determine a target video positioning preview image in the target dynamic image, and decode the target video positioning preview image in the target dynamic image to obtain the target video positioning preview image;

[0010] The target video positioning preview image is displayed in the video player.

[0011] In an optional implementation, determining a target animated picture from the plurality of candidate animated pictures includes:

[0012] Obtaining a current position of a video playback progress bar, wherein the current position of the video playback progress bar is determined by performing the preset operation on the video playback progress bar in the video player;

[0013] Determine the playback progress corresponding to the current position of the video playback progress bar and the time interval between adjacent video positioning preview images corresponding to the current video;

[0014] A target animated picture is determined from the plurality of candidate animated pictures according to the playback progress and the time interval.

[0015] In an optional implementation, determining a target animated picture from a plurality of candidate animated pictures according to the playback progress and the time interval includes:

[0016] Determine a target frame number of a target video positioning preview image according to the playback progress and the time interval;

[0017] For any of the candidate animated images, determine a frame number range of a video positioning preview image corresponding to the candidate animated image, and determine whether the target frame number is within the frame number range;

[0018] When the target frame number is within the frame number range, the candidate animated picture is determined as the target animated picture.

[0019] In an optional implementation, determining the target frame number of the target video positioning preview image according to the playback progress and the time interval includes:

[0020] The playback progress is divided by the time interval to obtain the target frame number of the target video positioning preview image.

[0021] In an optional implementation, determining the target video positioning preview image in the target animated image includes:

[0022] Obtain a target frame number range of the video positioning preview image corresponding to the target animated image;

[0023] A target video positioning preview image in the target animated image is determined according to the target frame number range and the target frame number.

[0024] In an optional implementation, determining the target video positioning preview image in the target animated image according to the target frame number range and the target frame number includes:

[0025] Obtaining the minimum frame number in the target frame number range;

[0026] Determine the Nth video positioning preview image in the target animated image according to the target frame number and the minimum frame number, where N is a positive integer;

[0027] The Nth video positioning preview image is determined as the target video positioning preview image in the target animated image.

[0028] In an optional implementation, before obtaining the current video being played on the video player in response to a preset operation on the video playing progress bar in the video player, the method further includes:

[0029] Receiving multiple animated images corresponding to the video sent by the server, and establishing a corresponding relationship between the video and the multiple animated images;

[0030] The server generates the plurality of animated images corresponding to the video in the following manner:

[0031] According to a preset frame capture frequency, multiple frames of images in the video are captured, and each frame of the image is determined as a video positioning preview image, wherein the preset frame capture frequency is a frequency of capturing video positioning preview images in the video;

[0032] Dividing the plurality of video positioning preview images according to the interception order to obtain a plurality of video positioning preview image sets;

[0033] The video positioning preview images in each of the video positioning preview image sets are processed to generate animated images, thereby obtaining a plurality of animated images corresponding to the video.

[0034] In a second aspect, the present application provides a video positioning preview image display device, which is applied to a client, and the device includes:

[0035] A video acquisition module, used for acquiring the current video played on the video player in response to a preset operation on the video playback progress bar in the video player;

[0036] A gif search module, used to search for multiple candidate gifs corresponding to the current video according to a preset correspondence between videos and gifs, wherein each of the candidate gifs is encoded from multiple video positioning preview images of the current video;

[0037] A motion picture determination module, used to determine a target motion picture from a plurality of candidate motion pictures;

[0038] A preview image determination module, used to determine a target video positioning preview image in the target animated image;

[0039] A dynamic image decoding module, used for decoding the target video positioning preview image in the target dynamic image to obtain the target video positioning preview image;

[0040] A preview image display module is used to display the target video positioning preview image in the video player.

[0041] In a third aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0042] Memory, used to store computer programs;

[0043] The processor is used to implement the video positioning preview image display method described in any one of the first aspects above when executing the program stored in the memory.

[0044] In a fourth aspect, a storage medium is also provided, wherein instructions are stored in the storage medium, and when the storage medium is run on a computer, the computer executes the video positioning preview image display method described in any one of the above-mentioned first aspects.

[0045] In a fifth aspect, a computer program product comprising instructions is also provided, which, when executed on a computer, enables the computer to execute any of the above-described methods for displaying a video positioning preview image.

[0046] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application, in response to a preset operation on the video playback progress bar in the video player, obtains the current video played on the video player, and searches for multiple candidate animated pictures corresponding to the current video according to a preset correspondence between the video and the animated picture, wherein each candidate animated picture is encoded from multiple video positioning preview pictures of the current video, and a target animated picture is determined from the multiple candidate animated pictures, a target video positioning preview picture in the target animated picture is determined, and the target video positioning preview picture in the target animated picture is decoded to obtain the target video positioning preview picture, and the target video positioning preview picture is displayed in the video player.

[0047] By obtaining the current video played on the video player and searching for multiple candidate animated images corresponding to the current video, the target animated image is determined from the multiple candidate animated images, and then the target video positioning preview image in the target animated image is determined, and the target video positioning preview image in the target animated image is decoded to obtain the target video positioning preview image, so as to display the target video positioning preview image in the video player. Compared with displaying the target video positioning preview image through a static image, displaying the target video positioning preview image based on the animated image only requires decoding the target video positioning preview image in the target animated image, and no cropping is required, which reduces performance loss and optimizes the efficiency of obtaining the video positioning preview image. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0050] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0051] Figure 1 A schematic diagram of an implementation process of a video positioning preview image display method provided in an embodiment of the present application;

[0052] Figure 2 A schematic diagram of displaying a target video positioning preview image in a video player provided in an embodiment of the present application;

[0053] Figure 3 A schematic diagram of displaying a preview image of a target video location in another video player provided in an embodiment of the present application;

[0054] Figure 4 A schematic diagram of an implementation flow of another method for displaying a video positioning preview image provided in an embodiment of the present application;

[0055] Figure 5 A schematic diagram of a decoded video positioning preview image in a dynamic image A1 provided in an embodiment of the present application;

[0056] Figure 6 A schematic diagram of an implementation flow of a method for generating a dynamic image provided in an embodiment of the present application;

[0057] Figure 7 A schematic diagram of the structure of a video positioning preview image display device provided in an embodiment of the present application;

[0058] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0060] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0061] In the embodiment of the present application, the video positioning preview image is currently stored in the form of a static image. If you want to display the video positioning preview image, you need to decode the static image, and then crop the relevant area in the static image to obtain the video positioning preview image. Finally, the video positioning preview image can be displayed to facilitate users to locate a part of the video they want to watch. To display the video positioning preview image in this way, you need to decode this static image and crop the relevant area in this static image, which has a large performance loss.

[0062] To this end, the embodiment of the present application uses a dynamic image (such as an independent frame dynamic image) to replace a static image to store a video positioning preview image. If you want to display the video positioning preview image, decode the video positioning preview image in a certain dynamic image to obtain the video positioning preview image, without decoding all the dynamic images, so as to display the video positioning preview image in the video player. To display the video positioning preview image in this way, you only need to decode the video positioning preview image in a certain dynamic image, and there is no need to crop it, which reduces performance loss and optimizes the efficiency of obtaining the video positioning preview image.

[0063] In simple terms, a moving picture is a file format of an image that contains dynamic or moving elements. They usually play a series of images in a repeated loop to create a dynamic effect. Because multiple frames of images can be displayed at the same time, moving pictures are more visually fascinating than static pictures and provide richer information. The specific formats can be gif, webp, apng, heic, avif, etc. Independent frame moving pictures are non-inter-frame predicted moving pictures. In this kind of moving picture, each frame is a complete image and does not depend on the content of the previous or next frame. The format can be webp, heic, avif, etc.

[0064] Based on the above invention concept, Figure 1 As shown, it is a schematic diagram of the implementation process of a video positioning preview image display method provided by an embodiment of the present application. The method is applied to a client and may specifically include the following steps:

[0065] S101, in response to a preset operation on a video playing progress bar in a video player, obtaining a current video played on the video player.

[0066] S102, searching for multiple candidate animated images corresponding to the current video according to a preset correspondence between videos and animated images, wherein each candidate animated image is encoded from multiple video positioning preview images of the current video.

[0067] In an embodiment of the present application, for a current video, the user hopes to quickly locate the part of the video that he wants to watch, so in the video player corresponding to the current video, the user can perform preset operations on the video playback progress bar in the video player.

[0068] For example, when a user performs a drag operation on a video playback progress bar in a video player, it means that the user drags the video playback progress bar with a mouse, or when a user performs a hover operation on a video playback progress bar in a video player, it means that the user hovers the mouse over the video playback progress bar.

[0069] Thus, in response to the preset operation on the video playing progress bar in the video player, the above-mentioned current video played on the video player is obtained. Here, the current video refers to the current video that the video player is playing or pausing.

[0070] For the video, the correspondence between the video and the animated image is pre-established, and the correspondence may be shown in the following Table 1. Therefore, for the current video, multiple candidate animated images corresponding to the current video may be searched according to the preset correspondence between the video and the animated image.

[0071] video Gif Video A GIF A1, GIF A2, GIF A3… Video B GIF B1, GIF B2, GIF B3… …… ……

[0072] Table 1

[0073] It should be noted that the candidate animated image is encoded from multiple video positioning preview images of the current video (each video positioning preview image is an image captured from the current video), and the candidate animated image can be an independent frame animated image, and its format can be webp, heic, avif, etc. Moreover, the video positioning preview images contained in each candidate animated image are different, and the video positioning preview images in each candidate animated image constitute the collection of video positioning preview images of the current video.

[0074] In addition, for the preset operation, for example, it can be a drag operation, a hover operation, a fast forward operation or a fast rewind operation. Due to different terminals, the triggering method of the preset operation is different. For example, on the PC terminal, the mouse can be used to perform a drag or hover operation on the video playback progress bar in the video player, and on the TV terminal, the remote control can be used to perform a fast forward or fast rewind operation on the video playback progress bar in the video player. The embodiments of the present application are not limited to this.

[0075] S103, determining a target animated picture from multiple candidate animated pictures.

[0076] In an embodiment of the present application, for a current video played on a video player, there are multiple corresponding candidate animated pictures for the current video, and a target animated picture can be determined from the multiple candidate animated pictures.

[0077] For example, for the current video A played on the video player, referring to Table 1 above, the current video A has multiple corresponding candidate animated images, namely animated image A1, animated image A2, animated image A3..., animated image A1 has 30 video positioning preview images of the current video A, animated image A2 has 30 video positioning preview images of video A, animated image A3 has 30 video positioning preview images of video A, ..., from animated images A1, animated image A2, animated image A3..., the target animated image, namely animated image A1, is determined.

[0078] S104, determining a target video positioning preview image in the target dynamic image, and decoding the target video positioning preview image in the target dynamic image to obtain the target video positioning preview image.

[0079] In the embodiment of the present application, for the video positioning preview image, a certain video positioning preview image is usually displayed at a certain moment, so for the target animated image, it is necessary to determine the target video positioning preview image in the target animated image.

[0080] Furthermore, for a target animated image, it is not necessary to decode all video positioning preview images in the target animated image, but only the target video positioning preview image in the target animated image needs to be decoded to obtain the target video positioning preview image.

[0081] For example, the target animated image is animated image A1, and the sixth video positioning preview image in animated image A1 is determined as the target video positioning preview image, so that only the sixth video positioning preview image in animated image A1 can be decoded to obtain the sixth video positioning preview image.

[0082] S105, displaying a preview image of the target video location in a video player.

[0083] In the embodiment of the present application, for the target video positioning preview image, the target video positioning preview image can be displayed in the video player. Among them, the display method of the target video positioning preview image in the video player can refer to the existing method, such as full screen display, or display above the current position of the video playback progress bar in the video player. The current position of the video playback progress bar is determined by performing a preset operation on the video playback progress bar in the video player, and the embodiment of the present application will not be repeated here one by one.

[0084] For example, a user uses a mouse to perform a drag operation on a video playback progress bar in a video player, thereby obtaining video A played on the video player in response to the drag operation on the video playback progress bar in the video player. The drag operation causes the playback progress of video A to change as the video playback progress bar is dragged. At this time, referring to the correspondence between videos and animated images shown in Table 1 above, multiple candidate animated images corresponding to video A are searched, namely animated image A1, animated image A2, animated image A3, etc. A target animated image, namely animated image A1, is determined from animated images A1, animated image A2, animated image A3, etc. The sixth video positioning preview image in animated image A1 is determined as the target video positioning preview image, so that only the sixth video positioning preview image in animated image A1 can be decoded to obtain the sixth video positioning preview image, and the sixth video positioning preview image is displayed above the current position of the video playback progress bar in the video player. The current position of the video playback progress bar is determined by performing a drag operation on the video playback progress bar in the video player, such as Figure 2 shown.

[0085] For example, a user uses a mouse to perform a hover operation on a video playback progress bar in a video player, thereby obtaining video B played on the video player in response to the hover operation on the video playback progress bar in the video player. The hover operation on the video playback progress bar will not affect the playback progress of video B. At this time, referring to the correspondence between videos and animated images shown in Table 1 above, multiple candidate animated images corresponding to video B are searched, namely, animated image B1, animated image B2, animated image B3, etc., and a target animated image, namely, animated image B3, is determined from animated images B1, animated image B2, animated image B3, etc. The sixth video positioning preview image in animated image B3 is determined as the target video positioning preview image, so that only the sixth video positioning preview image in animated image B3 can be decoded to obtain the sixth video positioning preview image, and the sixth video positioning preview image is displayed above the current position of the video playback progress bar in the video player. The current position of the video playback progress bar is determined by performing a hover operation on the video playback progress bar in the video player, such as Figure 3 shown.

[0086] Through the above description of the technical solution provided by the embodiment of the present application, in response to a preset operation on the video playback progress bar in the video player, the current video played on the video player is obtained, and according to the preset correspondence between the video and the animated image, multiple candidate animated images corresponding to the current video are searched, wherein each candidate animated image is encoded by multiple video positioning preview images of the current video, and a target animated image is determined from the multiple candidate animated images, a target video positioning preview image in the target animated image is determined, and the target video positioning preview image in the target animated image is decoded to obtain the target video positioning preview image, and the target video positioning preview image is displayed in the video player.

[0087] By obtaining the current video played on the video player and searching for multiple candidate animated images corresponding to the current video, the target animated image is determined from the multiple candidate animated images, and then the target video positioning preview image in the target animated image is determined, and the target video positioning preview image in the target animated image is decoded to obtain the target video positioning preview image, so as to display the target video positioning preview image in the video player. Compared with displaying the target video positioning preview image through a static image, displaying the target video positioning preview image based on the animated image only requires decoding the target video positioning preview image in the target animated image, and no cropping is required, which reduces performance loss and optimizes the efficiency of obtaining the video positioning preview image.

[0088] like Figure 4 As shown, it is a schematic diagram of the implementation process of another method for displaying a video positioning preview image provided by an embodiment of the present application. The method is applied to a client and may specifically include the following steps:

[0089] S401, in response to a preset operation on a video playing progress bar in a video player, obtaining a current video played on the video player.

[0090] In the embodiment of the present application, this step is similar to the above-mentioned step S101, and the embodiment of the present application will not be described one by one here.

[0091] S402, searching for multiple candidate animated images corresponding to the current video according to a preset correspondence between videos and animated images, wherein each candidate animated image is encoded from multiple video positioning preview images of the current video.

[0092] In the embodiment of the present application, this step is similar to the above-mentioned step S102, and the embodiment of the present application will not be described one by one here.

[0093] S403, obtaining a current position of the video playback progress bar, wherein the current position of the video playback progress bar is determined by performing a preset operation on the video playback progress bar in the video player.

[0094] In an embodiment of the present application, the current position of the video playback progress bar is obtained, wherein the current position of the video playback progress bar is determined by performing a preset operation on the video playback progress bar in the video player, which means that if the user performs different preset operations on the video playback progress bar in the video player, the current position of the video playback progress bar will be different.

[0095] For example, Figure 2 As shown, the user uses the mouse to drag the video playback progress bar in the video player. Then, the current position of the video playback progress bar determined by the user using the mouse to drag the video playback progress bar in the video player can be considered as the dragging position of the video playback progress bar in the video player.

[0096] For example, Figure 3 As shown, the user uses the mouse to perform a hover operation on the video playback progress bar in the video player, then the current position of the video playback progress bar determined by the user using the mouse to perform a hover operation on the video playback progress bar in the video player can be considered as the position of the video playback progress bar in the video player where the mouse is hovering.

[0097] S404, determining the playback progress corresponding to the current position of the video playback progress bar and the time interval between the adjacent video positioning preview images corresponding to the current video.

[0098] In the embodiment of the present application, for the current position of the video playback progress bar, the playback progress corresponding to the current position of the video playback progress bar can be determined, and the time interval between adjacent video positioning preview images corresponding to the current video can also be determined. Among them, the time interval can be considered as the preset frame frequency corresponding to the current video.

[0099] It should be noted that the preset frame rate is the frequency of capturing the video positioning preview image in the video, which means that the image in the video is captured according to this frame rate, and the captured image is used as the video positioning preview image. For example, the preset frame rate is to capture an image every 10 seconds, and the image in the video is captured according to this frame rate as the video positioning preview image.

[0100] For example, Figure 3 As shown, the user uses the mouse to perform a hover operation on the video playback progress bar in the video player, then the current position of the video playback progress bar determined by the user using the mouse to perform a hover operation on the video playback progress bar in the video player can be considered as the position of the video playback progress bar in the video player where the mouse is hovering.

[0101] Now, for the position of the video playback progress bar in the video player where the mouse hovers, its corresponding playback progress (15 minutes) can be determined. In addition, for the current video A, the time interval between the adjacent video positioning preview images corresponding to the current video A can be determined, for example, the time interval is 10 seconds.

[0102] S405, determining a target animated picture from a plurality of candidate animated pictures according to the playback progress and the time interval.

[0103] In an embodiment of the present application, for the playback progress corresponding to the current position of the video playback progress bar and the time interval between the adjacent video positioning preview images corresponding to the current video, the target animated image can be determined from multiple candidate animated images based on the playback progress and the time interval.

[0104] The time interval is the preset frame capture frequency of the current video. According to the preset frame capture frequency, the images in the current video are captured in sequence as the video positioning preview images. Therefore, the target frame number of the target video positioning preview image can be determined according to the playback progress and the time interval, and the target animated image can be determined from multiple candidate animated images through the target frame number.

[0105] Specifically, according to the playback progress and time interval, the target frame number of the target video positioning preview image is determined. For any candidate animation, the frame number range of the video positioning preview image corresponding to the candidate animation is determined, and it is judged whether the target frame number is within the frame number range. If the target frame number is within the frame number range, the candidate animation is determined as the target animation.

[0106] The target frame number of the target video positioning preview image can be obtained by calculating the quotient between the playback progress and the time interval. To this end, the playback progress can be divided by the time interval to obtain the target frame number of the target video positioning preview image, where the target frame number is the frame cut sequence of the video positioning preview image in the video.

[0107] For example, the current position of the video playback progress bar corresponds to the playback progress (1 minute), and the time interval between adjacent video positioning preview images corresponding to the current video A is 10 seconds. The playback progress is divided by the time interval to obtain the target frame number of the target video positioning preview image (60 / 10=6). For the animated images A1 and A2 corresponding to the current video A, each has a corresponding frame number range of the video positioning preview image, as shown in Table 2 below.

[0108] Gif The frame number range of the video positioning preview image Animation A1 1~30 Animation A2 31~54

[0109] Table 2

[0110] For the animated images A1 and A2 corresponding to the current video A, the frame number ranges of the video positioning preview images corresponding to the animated images A1 and A2 are determined as shown in the above Table 2. For the target frame number (6) of the target video positioning preview image, it is determined that the target frame number (6) is within the frame number range of the video positioning preview image corresponding to the animated image A1, so the animated image A1 is determined as the target animated image.

[0111] S406, determining a target video positioning preview image in the target dynamic image, and decoding the target video positioning preview image in the target dynamic image to obtain the target video positioning preview image.

[0112] In an embodiment of the present application, for a target animated picture, a target video positioning preview picture in the target animated picture can be determined, and the target video positioning preview picture in the target animated picture can be decoded to obtain the target video positioning preview picture.

[0113] The target video positioning preview image in the target dynamic image may be determined according to the target frame number range of the video positioning preview image corresponding to the target dynamic image and the target frame number of the target video positioning preview image.

[0114] Based on this, the target frame number range of the video positioning preview image corresponding to the target dynamic image is obtained, and the target video positioning preview image in the target dynamic image is determined according to the target frame number range and the target frame number.

[0115] Among them, the minimum frame number in the target frame number range can be obtained, and the Nth video positioning preview image in the target dynamic image can be determined according to the target frame number and the minimum frame number, where N is a positive integer, and the Nth video positioning preview image is determined as the target video positioning preview image in the target dynamic image.

[0116] Specifically, the target frame number can be subtracted from the minimum frame number to obtain the frame number difference, and 1 can be added to the frame number difference to find the Nth video positioning preview image in the target animation, and the Nth video positioning preview image can be determined as the target video positioning preview image in the target animation.

[0117] For example, the target animated image is animated image A1, and the target frame number range of the video positioning preview image corresponding to animated image A1 is 1 to 30. The minimum frame number 1 in the target frame number range is obtained, and the target frame number 6 of the target video positioning preview image is subtracted from the minimum frame number 1 to obtain the frame number difference 5. 1 is added to the frame number difference 5, and the 6th (i.e., 5+1=6) video positioning preview image in animated image A1 is searched, and the 6th video positioning preview image is used as the target video positioning preview image in animated image A1. In this way, the animated image is decoded. Figure 1 The sixth video positioning preview image in the image can obtain the current target video positioning preview image to be displayed, such as Figure 5 shown.

[0118] S407, displaying a preview image of the target video location in the video player.

[0119] In the embodiment of the present application, this step is similar to the above-mentioned step S105, and the embodiment of the present application will not be described one by one here.

[0120] By obtaining the current video played on the video player and searching for multiple candidate animated images corresponding to the current video, the current position of the video playback progress bar is obtained, and the target animated image is determined from the multiple candidate animated images according to the playback progress corresponding to the current position of the video playback progress bar and the time interval between adjacent video positioning preview images corresponding to the current video, and then the target video positioning preview image in the target animated image is determined, and the target video positioning preview image in the target animated image is decoded to obtain the target video positioning preview image, so as to display the target video positioning preview image in the video player. Compared with displaying the target video positioning preview image through a static image, displaying the target video positioning preview image based on the animated image only requires decoding the target video positioning preview image in the target animated image, and no cropping is required, which reduces performance loss and optimizes the efficiency of obtaining the video positioning preview image.

[0121] like Figure 6 As shown, it is a schematic diagram of an implementation process of a method for generating a dynamic image provided by an embodiment of the present application. The method is applied to the server and may specifically include the following steps:

[0122] S601, capturing multiple frames of images in a video according to a preset frame capture frequency, and determining each frame of the image as a video positioning preview image. The preset frame capture frequency is a frequency of capturing the video positioning preview image in the video.

[0123] In an embodiment of the present application, for a video, multiple frames of images in the video can be captured according to a preset frame capture frequency, and each frame of image can be determined as a video positioning preview image. The preset frame capture frequency is the frequency of capturing the video positioning preview image in the video.

[0124] For example, for a 9-minute video, one frame of image is captured every 10 seconds, and each frame of image is determined as a video positioning preview image. Here, 10 seconds refers to the frequency of capturing the video positioning preview image in the video.

[0125] S602: Divide the plurality of video positioning preview images according to the interception order to obtain a plurality of video positioning preview image sets.

[0126] In an embodiment of the present application, for the captured multiple video positioning preview images, the multiple video positioning preview images can be divided according to the capture order of the video positioning preview images to obtain multiple video positioning preview image sets.

[0127] For example, for 54 video positioning preview images, these 54 video positioning preview images can be divided according to the order in which the video positioning preview images are captured to obtain 2 video positioning preview image sets, where the first 30 video positioning preview images belong to video positioning preview image set 1, and the last 24 video positioning preview images belong to video positioning preview image set 2.

[0128] S603, processing the video positioning preview images in each video positioning preview image set to generate a dynamic image, and obtaining a plurality of dynamic images corresponding to the video.

[0129] In an embodiment of the present application, a dynamic image generation tool (such as ffmpeg) can be used to process the video positioning preview images in each video positioning preview image set to generate a dynamic image, so that multiple dynamic images corresponding to the video can be obtained.

[0130] From now on, for a video, after the server obtains the corresponding multiple animated images, it can send the multiple animated images corresponding to the video to the client. The client receives the multiple animated images corresponding to the video sent by the server, and establishes a corresponding relationship between the video and the multiple animated images, and then can execute the above-mentioned video positioning preview image display method.

[0131] It should be noted that, in addition to the above-mentioned animation generation tool, other animation methods can also be used for generating animations, which is not limited in the embodiments of the present application.

[0132] For example, for a 9-minute video, if one frame of image is captured every 10 seconds as a video positioning preview image, a total of 54 video positioning preview images will be generated. The 54 video positioning preview images are divided according to the capture order to obtain 2 video positioning preview image sets, of which the first 30 video positioning preview images belong to video positioning preview image set 1, and the last 24 video positioning preview images belong to video positioning preview image set 2. ffmpeg is used to process the video positioning preview images in each video positioning preview image set to generate an animated preview image. Figure 1 and movement Figure 2 ,move Figure 1Contains 30 video positioning preview images, and the animation Figure 2 It contains 24 video positioning preview images. The subsequent client can calculate the frame number of the video positioning preview image to be displayed according to the playback progress and time interval, thereby determining which animated image the video positioning preview image to be displayed is in, and which video positioning preview image in the animated image is the video positioning preview image to be displayed. Then, only the frame needs to be decoded, and the video positioning preview image to be displayed can be obtained without decoding all the frames of the animated image, which reduces performance loss and optimizes the efficiency of obtaining the video positioning preview image.

[0133] Corresponding to the above method embodiment, the present application embodiment also provides a video positioning preview image display device, such as Figure 7 As shown, the device may include: a video acquisition module 710, a dynamic image search module 720, a dynamic image determination module 730, a preview image determination module 740, a dynamic image decoding module 750, and a preview image display module 760.

[0134] The video acquisition module 710 is used to acquire, in a video player, a plurality of animated images corresponding to a video corresponding to the video player in response to a preset operation on a video playback progress bar in the video player;

[0135] The animated image search module 720 is used to search for multiple candidate animated images corresponding to the current video according to the preset correspondence between videos and animated images, wherein each of the candidate animated images is encoded from multiple video positioning preview images of the current video;

[0136] A motion picture determination module 730, configured to determine a target motion picture from a plurality of candidate motion pictures;

[0137] A preview image determination module 740 is used to determine a target video positioning preview image in the target animated image;

[0138] The dynamic image decoding module 750 is used to decode the target video positioning preview image in the target dynamic image to obtain the target video positioning preview image;

[0139] The preview image display module 760 is used to display the target video positioning preview image in the video player.

[0140] The present application also provides an electronic device, such as Figure 8 As shown, it includes a processor 81, a communication interface 82, a memory 83 and a communication bus 84, wherein the processor 81, the communication interface 82, and the memory 83 communicate with each other through the communication bus 84.

[0141] A memory 83, for storing computer programs;

[0142] The processor 81 is used to execute the program stored in the memory 83 to implement the following steps:

[0143] In response to a preset operation on a video playback progress bar in a video player, a current video played on the video player is obtained; based on a preset correspondence between videos and animated images, multiple candidate animated images corresponding to the current video are searched, wherein each of the candidate animated images is encoded by multiple video positioning preview images of the current video; a target animated image is determined from the multiple candidate animated images; a target video positioning preview image in the target animated image is determined, and the target video positioning preview image in the target animated image is decoded to obtain the target video positioning preview image; and the target video positioning preview image is displayed in the video player.

[0144] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0145] The communication interface is used for communication between the above electronic device and other devices.

[0146] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0147] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0148] In another embodiment provided in the present application, a storage medium is also provided, in which instructions are stored. When the instructions are executed on a computer, the computer executes the video positioning preview image display method described in any of the above embodiments.

[0149] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the video positioning preview image display method described in any one of the above embodiments.

[0150] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a storage medium, or transmitted from one storage medium to another storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0151] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0152] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0153] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A method for displaying a video positioning preview image, It is characterized in that Applied to a client, the method comprises: In response to a preset operation on a video playback progress bar in a video player, obtaining a current video played on the video player; According to a preset correspondence between videos and animated images, searching for multiple candidate animated images corresponding to the current video, wherein each of the candidate animated images is encoded from multiple video positioning preview images of the current video; Determine a target animated picture from the plurality of candidate animated pictures; Determine a target video positioning preview image in the target dynamic image, and decode the target video positioning preview image in the target dynamic image to obtain the target video positioning preview image; The target video positioning preview image is displayed in the video player.

2. The method according to claim 1, It is characterized in that The step of determining a target animated picture from the plurality of candidate animated pictures comprises: Obtaining a current position of a video playback progress bar, wherein the current position of the video playback progress bar is determined by performing the preset operation on the video playback progress bar in the video player; Determine the playback progress corresponding to the current position of the video playback progress bar and the time interval between adjacent video positioning preview images corresponding to the current video; A target animated picture is determined from the plurality of candidate animated pictures according to the playback progress and the time interval.

3. The method according to claim 2, It is characterized in that The step of determining a target animated picture from the plurality of candidate animated pictures according to the playback progress and the time interval includes: Determine a target frame number of a target video positioning preview image according to the playback progress and the time interval; For any of the candidate animated images, determine a frame number range of a video positioning preview image corresponding to the candidate animated image, and determine whether the target frame number is within the frame number range; When the target frame number is within the frame number range, the candidate animated picture is determined as the target animated picture.

4. The method according to claim 3, It is characterized in that Determining the target frame number of the target video positioning preview image according to the playback progress and the time interval includes: The playback progress is divided by the time interval to obtain the target frame number of the target video positioning preview image.

5. The method according to claim 3, It is characterized in that Determining the target video positioning preview image in the target animated image includes: Obtain a target frame number range of the video positioning preview image corresponding to the target animated image; A target video positioning preview image in the target animated image is determined according to the target frame number range and the target frame number.

6. The method according to claim 5, It is characterized in that Determining the target video positioning preview image in the target animated image according to the target frame number range and the target frame number includes: Obtaining the minimum frame number in the target frame number range; Determine the Nth video positioning preview image in the target animated image according to the target frame number and the minimum frame number, where N is a positive integer; The Nth video positioning preview image is determined as the target video positioning preview image in the target animated image.

7. The method according to claim 1, It is characterized in that Before obtaining the current video played on the video player in response to a preset operation on the video playing progress bar in the video player, the method further includes: Receiving multiple animated images corresponding to the video sent by the server, and establishing a corresponding relationship between the video and the multiple animated images; The server generates the plurality of animated images corresponding to the video in the following manner: According to a preset frame capture frequency, multiple frames of images in the video are captured, and each frame of the image is determined as a video positioning preview image, wherein the preset frame capture frequency is a frequency of capturing video positioning preview images in the video; Dividing the plurality of video positioning preview images according to the interception order to obtain a plurality of video positioning preview image sets; The video positioning preview images in each of the video positioning preview image sets are processed to generate animated images, thereby obtaining a plurality of animated images corresponding to the video.

8. A video positioning preview image display device, It is characterized in that Applied to a client, the device comprises: A video acquisition module, used for acquiring the current video played on the video player in response to a preset operation on the video playback progress bar in the video player; A gif search module, used to search for multiple candidate gifs corresponding to the current video according to a preset correspondence between videos and gifs, wherein each of the candidate gifs is encoded from multiple video positioning preview images of the current video; A motion picture determination module, used to determine a target motion picture from a plurality of candidate motion pictures; A preview image determination module, used to determine a target video positioning preview image in the target animated image; A dynamic image decoding module, used for decoding the target video positioning preview image in the target dynamic image to obtain the target video positioning preview image; A preview image display module is used to display the target video positioning preview image in the video player.

9. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-7 when executing a program stored in a memory.

10. A storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.