CN112738416B - Thumbnail preview method, system, device and computer readable storage medium - Google Patents
Thumbnail preview method, system, device and computer readable storage medium Download PDFInfo
- Publication number
- CN112738416B CN112738416B CN202011539442.5A CN202011539442A CN112738416B CN 112738416 B CN112738416 B CN 112738416B CN 202011539442 A CN202011539442 A CN 202011539442A CN 112738416 B CN112738416 B CN 112738416B
- Authority
- CN
- China
- Prior art keywords
- thumbnail
- preview
- thumbnails
- video
- edited
- 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
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000009877 rendering Methods 0.000 claims abstract description 33
- 238000000605 extraction Methods 0.000 claims abstract description 12
- 230000000007 visual effect Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
-
- 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
-
- 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/44012—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 rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
-
- 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/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47205—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The embodiment of the application provides a thumbnail preview method, which comprises the following steps: extracting a plurality of thumbnail acquisition point objects of a video to be edited, wherein each thumbnail acquisition point object corresponds to an object time point respectively; acquiring a current visible preview time interval of current equipment; selecting a plurality of visible thumbnail acquisition point objects from the plurality of thumbnail acquisition point objects according to the current visible preview time interval and each object time point; collecting a plurality of thumbnails from the video to be edited according to the plurality of visible thumbnail collecting point objects; and rendering the plurality of thumbnails, and associating the plurality of thumbnails after rendering to the relative positions in the preview track. The technical scheme provided by the embodiment of the application solves the problem that the thumbnail on the preview track is not matched with the picture of the thumbnail relative to the current time of the video, and improves the loading speed and the extraction speed of the thumbnail.
Description
Technical Field
Embodiments of the present disclosure relate to the field of video processing, and in particular, to a thumbnail preview method, system, device, and computer readable storage medium.
Background
When editing video, the user can find the video clip point by sliding the preview track. If the accuracy of the preview is fixed, the longer the video duration, the longer the preview track, which not only reduces the efficiency of the video preview with longer duration, but also increases the difficulty of the user to find the clipping point.
To solve this problem, the applicant has appreciated that: when editing video, a function of adjusting preview accuracy is added. However, the applicant found that with the above method, after adjusting the accuracy, there are problems that the thumbnail on the preview track does not match with the picture of the thumbnail relative to the current time of the video, and that the loading and extraction of the thumbnail are slow. For example, if a user edits a video that is longer than the minimum precision at any one time, the preview precision needs to be continuously adjusted between the maximum precision and the minimum precision; then, in this process, each time point of time acquisition of multiple thumbnails corresponding to different preview precision, if each time point re-captures a thumbnail, a large number of thumbnail capture requests will be generated, which is not only extremely resource-consuming, but also results in slow thumbnail loading.
Disclosure of Invention
An object of the embodiments of the present application is to provide a thumbnail previewing method, a system, a computer device and a computer readable storage medium, which are used for solving the problem that a thumbnail on a preview track is not matched with a picture of the thumbnail relative to the current time of a video, and how to improve the thumbnail loading and extracting speed.
One aspect of the embodiments of the present application provides a thumbnail preview method, including: extracting a plurality of thumbnail acquisition point objects of a video to be edited, wherein each thumbnail acquisition point object corresponds to an object time point respectively; acquiring a current visible preview time interval of current equipment; selecting a plurality of visible thumbnail acquisition point objects from the plurality of thumbnail acquisition point objects according to the current visible preview time interval and each object time point; collecting a plurality of thumbnails from the video to be edited according to the plurality of visible thumbnail collecting point objects; and rendering the plurality of thumbnails, and associating the plurality of thumbnails after rendering to the relative positions in the preview track.
Illustratively, each thumbnail acquisition point object further includes video information of the video to be edited, the video information including a frame rate of the video to be edited; extracting a plurality of thumbnail acquisition point objects of a video to be edited, including: judging whether the frame rate of the video to be edited is greater than or equal to a preset preview precision; if the frame rate of the video to be edited is greater than or equal to the preset preview precision, acquiring the plurality of thumbnail acquisition point objects according to the preset preview precision; and if the frame rate of the video to be edited is smaller than the preset preview precision, acquiring the plurality of thumbnail acquisition point objects according to the frame rate of the video to be edited.
Illustratively, obtaining a current visible preview time interval for a current device includes: acquiring the width of a single thumbnail of the video to be edited in a preview track, the screen width of current equipment and the current preview precision; determining the number of the thumbnails in the preview track according to the width of the single thumbnail in the preview track and the screen width of the current device; determining the thumbnail preview time in the preview track according to the number of the thumbnails and the current preview precision; determining a thumbnail grabbing position in the preview track; and determining the current visible preview time interval according to the thumbnail grabbing position.
Illustratively, according to the plurality of visible thumbnail acquisition point objects, acquiring a plurality of thumbnails from the video to be edited includes: detecting whether the plurality of thumbnails exist in the local cache; if one or more thumbnails in the plurality of thumbnails are in the local cache, acquiring the one or more thumbnails from the local cache; and/or if at least part of the plurality of thumbnails is not in the local cache, creating a thumbnail grabbing task according to a visible thumbnail acquisition point object corresponding to the at least part of the thumbnails so as to acquire the at least part of the thumbnails from the video to be edited.
For example, if at least some of the plurality of thumbnails are not in the local cache, creating a thumbnail grabbing task according to a visible thumbnail acquisition point object corresponding to the at least some of the thumbnails, so as to acquire the at least some of the thumbnails from the video to be edited, including: detecting whether a corresponding thumbnail grabbing task exists in a task queue of the current thumbnail grabbing or not; if the task queue of the current thumbnail capturing does not have a corresponding thumbnail capturing task, creating the thumbnail capturing task, and adding the thumbnail capturing task to a target position in the task queue, wherein the target position is a priority processing position in the task queue; and if the corresponding thumbnail grabbing task exists in the task queue of the current thumbnail grabbing, moving the thumbnail grabbing task to a target position in the task queue.
Exemplary, further comprising: if the acquisition of a plurality of thumbnails from the video to be edited fails according to the visible thumbnail acquisition point object, acquiring the thumbnail corresponding to the nearby time point of the visible thumbnail acquisition point object according to a nearby principle; and if the acquisition of the plurality of thumbnails from the video to be edited is successful according to the visible thumbnail acquisition point object, caching the plurality of thumbnails into a memory database and a disk database.
Illustratively, rendering the plurality of thumbnails and associating the rendered plurality of thumbnails to relative positions in the preview track includes: according to the time point of each thumbnail in the video to be edited, calculating the coordinates and the area of each thumbnail in the preview track; and rendering the plurality of thumbnails according to the coordinates and the region of each thumbnail in the preview track, and associating the plurality of thumbnails after rendering to the relative positions in the preview track.
An aspect of an embodiment of the present application further provides a thumbnail preview system, including: the extraction module is used for extracting a plurality of thumbnail acquisition point objects of the video to be edited, wherein each thumbnail acquisition point object corresponds to an object time point respectively; the acquisition module is used for acquiring a current visible preview time interval of the current equipment; the selection module is used for selecting a plurality of visible thumbnail acquisition point objects from the plurality of thumbnail acquisition point objects according to the current visible preview time interval and each object time point; the acquisition module is used for acquiring a plurality of thumbnails from the video to be edited according to the plurality of visible thumbnail acquisition point objects; and the rendering module is used for rendering the plurality of thumbnails and associating the plurality of rendered thumbnails to the relative positions in the preview track.
An aspect of the embodiments of the present application further provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the computer program for implementing the steps of the thumbnail preview method described above.
An aspect of the embodiments of the present application further provides a computer-readable storage medium having stored thereon a computer program executable by at least one processor to cause the at least one processor to perform the steps of the thumbnail preview method as described above.
According to the thumbnail previewing method, the system, the device and the computer readable storage medium, the current visible previewing time interval of the current device is obtained, so that when the thumbnail is grabbed, only the thumbnail in the current visible previewing time interval is needed to be grabbed, and all the thumbnails of the whole video are not needed to be grabbed, the consumption of resources is saved, and the thumbnail loading extraction and extraction speed is improved; and acquiring a plurality of thumbnails from the video to be edited according to each visible thumbnail acquisition point object, and respectively rendering each thumbnail to the relative position in the preview track, thereby solving the problem that the thumbnail on the preview track is not matched with the picture of the thumbnail relative to the current time of the video.
Drawings
FIG. 1 schematically illustrates an environmental application schematic according to an embodiment of the present application;
FIG. 2 schematically illustrates a flow chart of a thumbnail preview method according to an embodiment of the present application;
fig. 3 schematically shows a specific flowchart of step S200 in fig. 2;
fig. 4 schematically shows a specific flowchart of step S202 in fig. 2;
FIG. 5 schematically illustrates a current visual preview time interval diagram according to a first embodiment of the present application;
fig. 6 schematically shows a schematic view of a screen width W of a current apparatus according to an embodiment one of the present application;
fig. 7 schematically illustrates a thumbnail preview effect diagram with three video clips added simultaneously according to the first embodiment of the present application;
fig. 8 schematically shows a specific flowchart of step S206 in fig. 2;
fig. 9 schematically shows a specific flowchart of step S804 in fig. 2;
FIG. 10 schematically illustrates a flow chart of a thumbnail preview method according to an embodiment of the present application;
fig. 11 schematically shows a specific flowchart of step S208 in fig. 2;
FIG. 12 schematically illustrates a thumbnail grabbing flow chart of a video to be edited according to an embodiment of the present application;
FIG. 13 schematically illustrates a block diagram of a thumbnail preview system in accordance with a second embodiment of the present application;
Fig. 14 schematically illustrates a hardware architecture diagram of a computer device adapted to implement a thumbnail preview method according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that the description herein of "first," "second," etc. is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implying an indication of the number of technical features being indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be regarded as not exist and not within the protection scope of the present application.
The following are some explanations of terms related to the present application:
thumbnail: and the frame picture extracted from the video at a certain moment is a picture generated after compression and/or clipping.
Preview accuracy: the smaller the time interval, the higher the capturing accuracy of the thumbnail.
Fig. 1 schematically shows an environmental schematic of a thumbnail preview method according to the present application. The thumbnail preview method may be performed in a computer device. The computer device may be configured in the client 20 or in the client 40, and when the computer device is configured in the server 40, the environment schematic includes a plurality of clients 20 and servers 40.
The client 20 may upload the video to be edited of the thumbnail to be extracted provided by the user and the current preview accuracy set by the user to the server 40. The client 20 may also display and play the plurality of thumbnails rendered by the server 40 via the preview track. The client 20 is also used to locally persist multiple thumbnails, which may be stored in a local non-volatile storage medium, for example. The client 20 may be an electronic device such as a smart phone, tablet computer, etc.
And the server 40 is used for receiving the video to be edited and the current preview accuracy uploaded by the client 20. The server 40 is further configured to extract a plurality of thumbnails from the video to be edited according to the current preview precision, and render the plurality of thumbnails to a preview track of the client 20 for display and play according to a time point of each thumbnail in the video to be edited. The server 40 may also be used to cache multiple thumbnails.
The thumbnail grabbing process will be described below by several embodiments.
Example 1
Fig. 2 schematically shows a flowchart of a thumbnail preview method according to an embodiment of the present application. The present embodiments may be implemented in a computer device. It will be appreciated that the flow charts in the method embodiments are not intended to limit the order in which the steps are performed.
As shown in fig. 2, the thumbnail preview method may include steps S200 to S206, in which:
step S200, extracting a plurality of thumbnail acquisition point objects of the video to be edited, wherein each thumbnail acquisition point object corresponds to an object time point respectively.
The video to be edited is a video comprising a plurality of frames of images.
The computer device 2 may preset a preset preview accuracy, taking the preset preview accuracy of 1 second and 30 frames as an example: if the video to be edited is a video with a duration of t seconds, the computer device 2 may propose t×30 object time points corresponding to n=t×30 thumbnails from the video to be edited, and may configure corresponding thumbnail acquisition point objects according to each object time point to obtain n=t×30 thumbnail acquisition point objects. The thumbnail acquisition point object further comprises video information of the video to be edited and a frame picture grabbing state corresponding to the object time point.
When the video duration t of the video to be edited is a floating point number, the n may be rounded up. For example, when the video duration t= 31.41 of the video to be edited, the computer device 2 may propose ceil (31.41×30) =943 thumbnail acquisition points from the video to be edited.
Illustratively, each thumbnail acquisition point object further includes video information of the video to be edited, the video information including a frame rate of the video to be edited. The preset preview precision can also be dynamically adjusted according to the frame rate of the video to be edited, and in this embodiment, the accuracy of extracting the thumbnail acquisition point object from the video to be edited by the computer device 2 is improved by dynamically adjusting the preset preview precision.
If the frame rate of the video to be edited is smaller than the preset preview precision, the computer device 2 may adjust the preset preview precision according to the frame rate of the video to be edited, so as to obtain a new preview precision. And extracting a plurality of thumbnail acquisition point objects of the video to be edited through the new preview precision.
In an exemplary embodiment, each thumbnail acquisition point object further includes video information of the video to be edited, the video information including a frame rate of the video to be edited.
As shown in fig. 3, the step S200 may further include steps S300 to S304, where: step S300, judging whether the frame rate of the video to be edited is greater than or equal to a preset preview precision; step S302, if the frame rate of the video to be edited is greater than or equal to the preset preview precision, acquiring the plurality of thumbnail acquisition point objects according to the preset preview precision; and step S304, if the frame rate of the video to be edited is smaller than the preset preview precision, acquiring the plurality of thumbnail acquisition point objects according to the frame rate of the video to be edited. The frame rate of the video to be edited is used for representing how many frames of pictures are in each second of the video to be edited. For example, a video with a frame rate of 24 frames for 1 second, then the computer device 2 can capture at most 24 different images from the video within 1 second, i.e. when the preset preview accuracy is greater than the frame rate of the video, the computer device 2 will capture only duplicate images from the video to be edited, so too high accuracy is meaningless and increases the waste of resources.
In order to solve the above-described problem, the computer device 2 may determine whether the preset preview accuracy is smaller than the frame rate of the video to be edited before extracting the plurality of thumbnail acquisition point objects of the video to be edited.
If the preset preview precision is smaller than the frame rate of the video to be edited, the computer equipment 2 is not used for capturing thumbnail acquisition point objects corresponding to repeated images from the video to be edited when acquiring a plurality of thumbnail acquisition point objects from the video to be edited through the preset preview precision; at this time, the computer device 2 may acquire a plurality of thumbnail acquisition point objects of the video to be edited according to the preset preview precision.
If the preset preview precision is not less than the frame rate of the video to be edited, the computer device 2 is explained to grasp the thumbnail acquisition point object corresponding to the repeated image from the video to be edited when acquiring a plurality of thumbnail acquisition point objects from the video to be edited through the preset preview precision, namely, the same image possibly grasps a plurality of corresponding thumbnail acquisition point objects; to ensure that only one corresponding thumbnail acquisition point object is captured from one image, the computer device 2 may acquire a plurality of thumbnail acquisition point objects of the video to be edited according to the frame rate of the video to be edited. According to the method and the device, the preset preview precision is adjusted according to the frame rate of the video to be edited, so that the situation that the thumbnail acquisition point object corresponding to the repeated image is grasped from the video to be edited is avoided, and the accuracy of extracting the thumbnail acquisition point object from the video to be edited by the computer equipment 2 is improved.
Step S202, a current visible preview time interval of the current device is acquired.
The preview time interval is a set of points in time of the visible region in the preview track of the computer device 2. For example, the preview track may preview 10 thumbnails simultaneously, the time interval between each thumbnail is 0.1 second, and the object time point corresponding to the first thumbnail in the preview track is 1 minute and 19 seconds, then the current visible preview time interval is: [1 min 19 sec, 1 min 20 sec ].
In an exemplary embodiment, as shown in fig. 4, the step S202 may further include steps S400 to S406, where: step S400, acquiring the width of the single thumbnail of the video to be edited in a preview track, the screen width of the current equipment and the current preview precision; step S402, determining the number of the thumbnails in the preview track according to the width of the single thumbnail in the preview track and the screen width of the current device; step S404, determining the thumbnail preview time in the preview track according to the number of the thumbnails and the current preview precision; step S406, determining a thumbnail grabbing position in the preview track; and step S408, determining the current visible preview time interval according to the thumbnail grabbing position.
As shown in fig. 5, for convenience of understanding, the present embodiment also provides a schematic diagram of the current visual preview time interval of the thumbnail preview method.
In fig. 5, S is a thumbnail capturing position S, that is, a time point corresponding to a thumbnail seek (capturing) position of the video to be edited (where the thumbnail capturing position S is a time point corresponding to a screen horizontal middle point of the current device on the preview track in microseconds).
The computer device 2 needs to acquire the thumbnail capturing position S, the width D of the thumbnail of the video to be edited in the preview track, the screen width W of the current device, and the current preview precision P during the current visible preview time interval of the current device. According to the thumbnail grabbing position S, the width D of the thumbnail of the video to be edited in the preview track, the screen width W of the current device and the current preview precision P, the current visible preview time interval of the current device can be calculated. For example, a position at a time point corresponding to a thumbnail seek (grab) position of the video to be edited is 13.41 seconds, that is, the thumbnail grab position s=13.41 seconds; the screen width w=15 cm of the current device; the width d=1.5 cm of the thumbnail of the video to be edited in the preview track; the current preview accuracy p=1/10 seconds. Then, the number W/d=10 of thumbnails that can be displayed by the preview track of the current device at most once can be obtained, and in the case of the thumbnail capturing position s=13.41 seconds, the object time point t1= (int) ((S- (W/D) × (P/2))/100000) ×100000=12.91 seconds corresponding to the first thumbnail; t10= (int) ((S- (W/D) (P/2))/100000) 100000=13.91 seconds, i.e. the current visible preview time interval [ S- (W/D) (P/2), s+ (W/D) (P/2) ]= [12.91 seconds, 13.91 seconds ]. It follows that the time interval for which the computer device 2 needs to render the thumbnail to the preview track is [12.91 seconds, 13.91 seconds ]. In this embodiment, the computer device 2 obtains the current visible preview time interval of the current device, so that when capturing the thumbnail, no matter how long the total duration of the video to be edited is, how the preview accuracy changes within a predetermined range (e.g., [30 s/frame, 20 s/frame ]), the computer device 2 only needs to capture the thumbnail in the current visible preview time interval, but does not need to capture all the thumbnails of the whole video, thereby saving the consumption of resources and improving the thumbnail loading extraction and extraction speed.
In some embodiments, when the user zooms or slides the track in real time through the computer device 2, the preview precision of the changes in the zooming process can be obtained in real time through the CADisplayLink object in the iOS native frame < QuartzCore > to get the current preview precision P. When a user zooms in the preview track in real time through gestures, new preview precision can be calculated according to the current preview precision and the zoom coefficient. For example, the current preview precision is p=1/10 seconds (a thumbnail is grabbed every 0.1 s), and if the magnification of the user by gesture is 2, the new preview precision is p=1/20 seconds (a thumbnail is grabbed every 0.05 s).
As shown in fig. 6, for convenience of understanding, the present embodiment also provides a schematic view of the screen width W of the current apparatus. The video playing progress time corresponding to the thumbnail capturing position S is 3/30S, the screen width is W, and the time corresponding to the thumbnail to be displayed in the screen is the time acquisition point interval, as shown in FIG. 6.
In some embodiments, the computer device 2 may also perform thumbnail previews of multiple videos simultaneously. As shown in fig. 7, for convenience of understanding, the present embodiment also provides a thumbnail preview effect map to which three video clips are added simultaneously.
Step S204, selecting a plurality of visible thumbnail acquisition point objects from the plurality of thumbnail acquisition point objects according to the current visible preview time interval and each object time point.
After the computer device 2 determines the current visual preview time interval, the computer device 2 may select a plurality of visual thumbnail acquisition point objects from the plurality of thumbnail acquisition point objects according to the current visual preview time interval and respective object time points. For example, the current visible preview time interval is [12.91 seconds, 13.91 seconds ], the computer device 2 may select a visible thumbnail acquisition point object having an object time point falling in a time interval of [12.91 seconds, 13.91 seconds ] from the plurality of thumbnail acquisition point objects. According to the current visual preview time interval, the embodiment selects a plurality of visual thumbnail acquisition point objects from the plurality of thumbnail acquisition point objects, so that each thumbnail can be kept matched with a video picture corresponding to the current time as far as possible, the matching degree of the thumbnail and the corresponding time picture is improved, and the problem that the thumbnail and the corresponding time picture are not matched is solved.
And step S206, acquiring a plurality of thumbnails from the video to be edited according to the plurality of visible thumbnail acquisition point objects.
The computer device 2 may input the visual thumbnail acquisition point object and the video to be edited into a pre-configured thumbnail generator (Thumbnail Generate Engine) to acquire a plurality of thumbnails from the video to be edited according to the visual thumbnail acquisition point object by the thumbnail generator; when the thumbnail generator collects the plurality of thumbnails, event information that the thumbnail is successfully grabbed may be generated, and the plurality of thumbnails and the event information that the thumbnail is successfully grabbed may be returned to the computer device 2.
In an exemplary embodiment, as shown in fig. 8, the step S206 may further include steps S800 to S804, where: step S800, detecting whether the plurality of thumbnails exist in the local cache; step S802, if one or more thumbnails among the plurality of thumbnails are in the local cache, acquiring the one or more thumbnails from the local cache; and step S804, if at least part of the plurality of thumbnails is not in the local cache, a thumbnail grabbing task is created according to the visible thumbnail acquisition point object corresponding to the at least part of the thumbnails, so as to acquire the at least part of the thumbnails from the video to be edited.
In order to increase the thumbnail acquisition speed, the computer device 2 may also detect whether there are thumbnails corresponding to each visible thumbnail acquisition point object in the local cache.
If the thumbnails corresponding to the visible thumbnail acquisition point objects exist in the local cache, the computer equipment 2 is explained to extract the thumbnails corresponding to the current visible preview time interval of the video to be edited before the time, and the thumbnails are stored in the local cache; in order to increase the thumbnail acquisition speed, the computer device 2 may acquire the thumbnail corresponding to each visible thumbnail acquisition point object from the local cache.
In order to further increase the thumbnail acquisition speed, a task queue for capturing the current thumbnail is created in advance, when no thumbnail corresponding to each visible thumbnail acquisition point object exists in the local cache, the computer device 2 may create a corresponding thumbnail capturing task according to each visible thumbnail acquisition point object, and add the thumbnail capturing task to the task queue. According to the method and the device, the thumbnail corresponding to each visible thumbnail acquisition point object is acquired from the local cache, so that the thumbnail acquisition speed is improved.
In an exemplary embodiment, as shown in fig. 9, the step S804 may further include steps S900 to S904, where: step S900, detecting whether a task for grabbing at least one thumbnail in the at least partial thumbnails exists in a task queue for grabbing the current thumbnail; step S902, if a task queue for capturing at least one thumbnail in the at least partial thumbnail does not exist in the task queue for capturing the current thumbnail, creating a thumbnail capturing task, and adding the thumbnail capturing task to a target position in the task queue, wherein the target position is a priority processing position in the task queue; and step S904, if the task queue for capturing the current thumbnail has a capturing task for at least one thumbnail in the at least partial thumbnail, moving the capturing task for at least one thumbnail in the at least partial thumbnail to a target position in the task queue. In this embodiment, the computer device 2 may determine whether to create a thumbnail capturing task by detecting whether there is a thumbnail capturing task corresponding to each visible thumbnail capturing point object in a task queue of the current thumbnail capturing, and add the thumbnail capturing task to a target position in the task queue, so that the computer device 2 preferentially processes the corresponding thumbnail capturing task, thereby further improving the response speed of the thumbnail capturing task.
In an exemplary embodiment, as shown in fig. 10, the thumbnail preview method may further include steps S1000 to S1002, wherein: step S1000, if the acquisition of a plurality of thumbnails from the video to be edited fails according to the plurality of visible thumbnail acquisition point objects, acquiring thumbnails corresponding to nearby time points of the visible thumbnail acquisition point objects; and step S1002, if the collection of the plurality of thumbnails from the video to be edited is successful according to the plurality of visible thumbnail collection point objects, caching the plurality of thumbnails into a memory database and a disk database.
In this embodiment, the nearby time point of the visible thumbnail acquisition point object may be a time point at which the objects of the visible thumbnail acquisition point object are adjacent in time. For example, if the object time point of the visible thumbnail acquisition point object is 12.91 seconds and the current preview precision is 1/10 second, then the nearby time points of the visible thumbnail acquisition point object may be 13.01 seconds and 12.81 seconds, and when acquiring the thumbnail corresponding to 12.91 seconds fails, the computer device 2 may acquire the thumbnail corresponding to 13.01 seconds or the thumbnail corresponding to 12.81 seconds. According to the method and the device, the thumbnail corresponding to the nearby time point of the visible thumbnail acquisition point object is acquired through the near principle, and the acquisition efficiency of thumbnail acquisition is improved.
After the computer device 2 obtains the plurality of thumbnail images, the plurality of thumbnail images can be cached in the memory database and the disk database, so that the next acquisition can be directly obtained from the memory database and the disk database, and the thumbnail image multiplexing rate and the acquisition efficiency of the acquisition are improved.
In some embodiments, the computer device 2 may further configure corresponding buffer thresholds for the memory database and the disk database, and when the buffered thumbnail in the memory database or the disk database exceeds the buffer threshold, the computer device 2 may further clear the historical buffered thumbnail according to a pre-configured LRU policy, so as to avoid the problems of wasting disk space and slowing extraction of the thumbnail due to excessive memory occupation, thereby further improving the multiplexing rate of the thumbnail and the acquisition efficiency of the acquisition.
Step S208, the plurality of thumbnails are rendered, and the rendered plurality of thumbnails are associated with the relative positions in the preview track.
In this embodiment, by acquiring the current visible preview time interval of the current device, the computer device 2 only needs to capture the thumbnail in the current visible preview time interval when capturing the thumbnail, but does not need to capture all the thumbnails of the whole video, so that the resource consumption is saved, and the thumbnail loading extraction and extraction speed is improved; and acquiring a plurality of thumbnails from the video to be edited according to each visible thumbnail acquisition point object, and respectively rendering each thumbnail to the relative position in the preview track, thereby solving the problem that the thumbnail on the preview track is not matched with the picture of the thumbnail relative to the current time of the video.
In an exemplary embodiment, as shown in fig. 11, the step S208 may further include steps S1100 to S1102, where: step S1100, calculating coordinates and areas of each thumbnail in the preview track according to time points of the thumbnails in the video to be edited; and step 1102, rendering the plurality of thumbnails according to the coordinates and the region of each thumbnail in the preview track, and associating the plurality of thumbnails after rendering to the relative positions in the preview track.
The computer device 2 may transmit the event information after the plurality of thumbnails and the successful capturing of the thumbnail to a thumbnail rendering engine (rendererengine) after obtaining the plurality of thumbnails and the event information after the successful capturing of the thumbnail. The method comprises the steps of calculating coordinates and areas of each thumbnail in a preview track according to time points of the thumbnails in a video to be edited by the thumbnail rendering engine, rendering the thumbnails according to the coordinates and the areas of each thumbnail in the preview track, and associating the rendered thumbnails to relative positions in the preview track. The embodiment further improves the accuracy of previewing the thumbnails in the preview track by calculating the coordinates and the area of each thumbnail in the preview track.
In some embodiments, the first thumbnail, the last thumbnail, or the thumbnail at the screen boundary in the preview track will typically be truncated to the left by the screen, and the computer device 2 will also need to calculate the cropped area of such thumbnail when calculating such thumbnail, where the crop area needs to be calculated based on its relative position in the preview track (e.g., segment head frame, tail frame) and user operations (e.g., segmentation, cropping) to calculate the range that the picture is specifically displayable and whether or not the rounded corner and track segment gap need to be rendered.
As shown in fig. 12, for convenience of understanding, the present embodiment also provides a thumbnail grabbing flowchart of a video to be edited of the thumbnail preview method. The thumbnail capturing step may include steps S1201 to S1207, wherein:
s1201, receiving a video to be edited; s1202, acquiring a plurality of thumbnail acquisition point objects from the video to be edited according to preset precision; s1203, acquiring a current visible preview time interval of current equipment, and selecting a plurality of visible thumbnail acquisition point objects from the plurality of thumbnail acquisition point objects according to the current visible preview time interval; s1204, detecting whether thumbnails corresponding to the thumbnail acquisition point objects exist in the local cache; s1205, if thumbnails corresponding to all the visible thumbnail acquisition point objects do not exist in the local cache, creating a thumbnail grabbing task according to the visible thumbnail acquisition point objects so as to acquire a plurality of thumbnails from the video to be edited according to the thumbnail grabbing task; s1206, obtaining the thumbnail corresponding to each visible thumbnail acquisition point object in the local cache if the thumbnail corresponding to each visible thumbnail acquisition point object exists in the local cache; and S1207, rendering the plurality of thumbnails, and associating the rendered plurality of thumbnails to the relative positions in the preview track.
Example two
Fig. 13 schematically illustrates a block diagram of a thumbnail preview system according to a second embodiment of the present application, which may be partitioned into one or more program modules, which are stored in a storage medium and executed by one or more processors to complete the embodiments of the present application. Program modules in the embodiments of the present application refer to a series of computer program instruction segments capable of implementing specific functions, and the following description specifically describes the functions of each program module in the embodiments.
As shown in fig. 13, the thumbnail preview system 1300 may include an extraction module 1310, an acquisition module 1320, a selection module 1330, an acquisition module 1340, and a rendering module 1350, wherein:
the extracting module 1310 is configured to extract a plurality of thumbnail acquisition point objects of a video to be edited, where each thumbnail acquisition point object corresponds to an object time point.
In an exemplary embodiment, the extracting module 1310 is further configured to determine whether a frame rate of the video to be edited is greater than or equal to a preset preview precision; if the frame rate of the video to be edited is greater than or equal to the preset preview precision, acquiring the plurality of thumbnail acquisition point objects according to the preset preview precision; and if the frame rate of the video to be edited is smaller than the preset preview precision, acquiring the plurality of thumbnail acquisition point objects according to the frame rate of the video to be edited. .
An obtaining module 1320 is configured to obtain a current visible preview time interval of the current device.
In an exemplary embodiment, the obtaining module 1320 is further configured to obtain a width of the single thumbnail of the video to be edited in the preview track, a screen width of the current device, and a current preview precision; determining the number of the thumbnails in the preview track according to the width of the single thumbnail in the preview track and the screen width of the current device; determining the thumbnail preview time in the preview track according to the number of the thumbnails and the current preview precision; determining a thumbnail grabbing position in the preview track; and determining the current visible preview time interval according to the thumbnail grabbing position.
And a selecting module 1330, configured to select a plurality of visible thumbnail acquisition point objects from the plurality of thumbnail acquisition point objects according to the current visible preview time interval and each object time point.
And an acquisition module 1340, configured to acquire a plurality of thumbnails from the video to be edited according to the plurality of visible thumbnail acquisition point objects.
In an exemplary embodiment, the collection module 1340 is further configured to detect whether the plurality of thumbnails are present in the local cache; if one or more thumbnails in the plurality of thumbnails are in the local cache, acquiring the one or more thumbnails from the local cache; and/or if at least part of the plurality of thumbnails is not in the local cache, creating a thumbnail grabbing task according to a visible thumbnail acquisition point object corresponding to the at least part of the thumbnails so as to acquire the at least part of the thumbnails from the video to be edited.
In an exemplary embodiment, the collecting module 1340 is further configured to detect whether a task for capturing at least one thumbnail of the at least partial thumbnails exists in a task queue for capturing a current thumbnail; if the task queue for capturing the current thumbnail does not have a capturing task for at least one thumbnail in the at least partial thumbnail, creating the thumbnail capturing task, and adding the thumbnail capturing task to a target position in the task queue, wherein the target position is a priority processing position in the task queue; and if the task queue for capturing the current thumbnail has a capturing task for at least one thumbnail in the at least partial thumbnail, moving the capturing task for at least one thumbnail in the at least partial thumbnail to a target position in the task queue.
In an exemplary embodiment, the collection module 1340 is further configured to, if collection of multiple thumbnails from the video to be edited according to the multiple visual thumbnail collection point objects fails, obtain thumbnails corresponding to nearby time points of the respective visual thumbnail collection point objects; and if the collection of the plurality of thumbnails from the video to be edited is successful according to the plurality of visible thumbnail collection point objects, caching the plurality of thumbnails into a memory database and a disk database.
And a rendering module 1350, configured to render the plurality of thumbnails and associate the plurality of thumbnails after rendering to the relative positions in the preview track.
In an exemplary embodiment, the rendering module 1350 is further configured to calculate coordinates and an area of each thumbnail in the preview track according to a time point of each thumbnail in the video to be edited; and rendering the plurality of thumbnails according to the coordinates and the region of each thumbnail in the preview track, and associating the plurality of thumbnails after rendering to the relative positions in the preview track.
Example III
Fig. 14 schematically illustrates a hardware architecture diagram of a computer device adapted to implement a thumbnail preview method according to a third embodiment of the present application. In this implementation, when client 20 refers to hardware, computer device 1400 may be client 20 or a portion of client 20. When the client 20 refers to the application program APP, the computer device 1400 may be installed with the client 20 or the like. In this embodiment, the computer apparatus 1400 is an apparatus capable of automatically performing numerical calculation and/or information processing in accordance with instructions set or stored in advance. For example, it may be a mobile device, tablet device, laptop computer, workstation, virtual reality device, gaming device, set top box, digital streaming media device, vehicle terminal, smart television, set top box, electronic book reader, etc. As shown in fig. 14, the computer device 1400 includes at least, but is not limited to: the memory 1410, the processor 1420, and the network interface 1430 may be communicatively linked to each other through a system bus. Wherein:
The memory 1410 includes at least one type of computer-readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 1410 may be an internal storage module of the computer device 1400, such as a hard disk or memory of the computer device 1400. In other embodiments, the memory 1410 may also be an external storage device of the computer device 1400, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the computer device 1400. Of course, the memory 1410 may also include both internal memory modules of the computer device 1400 and external memory devices. In this embodiment, the memory 1410 is typically used to store an operating system installed on the computer device 1400 and various types of application software, such as program code for a thumbnail preview method. In addition, the memory 1410 may be used to temporarily store various types of data that have been output or are to be output.
Processor 1420 may be a central processing unit (Central Processing Unit, simply CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 1420 is typically used to control the overall operation of the computer device 1400, such as performing control and processing related to data interaction or communication with the computer device 1400. In this embodiment, a processor 1420 is used to execute program code or process data stored in a memory 1410.
The network interface 1430 may include a wireless network interface or a wired network interface, the network interface 1430 typically being used to establish communications links between the computer device 1400 and other computer devices. For example, the network interface 1430 is used to connect the computer device 1400 with an external terminal through a network, establish a data transmission channel and a communication link between the computer device 1400 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a global system for mobile communications (Global System of Mobile communication, abbreviated as GSM), wideband code division multiple access (Wideband Code Division Multiple Access, abbreviated as WCDMA), a 4G network, a 5G network, bluetooth (Bluetooth), wi-Fi, etc.
It should be noted that FIG. 14 only shows a computer device having components 1410-1430, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead.
In this embodiment, the thumbnail preview method stored in the memory 1410 may be further divided into one or more program modules and executed by one or more processors (the processor 1420 in this embodiment) to complete the present application.
Example IV
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the thumbnail preview method in the embodiment.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of a computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), etc. that are provided on the computer device. Of course, the computer-readable storage medium may also include both internal storage units of a computer device and external storage devices. In this embodiment, the computer-readable storage medium is typically used to store an operating system installed on a computer device and various types of application software, such as program code of the thumbnail preview method in the embodiment, and the like. Furthermore, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the application described above may be implemented in a general purpose computing device, they may be grouped together on a single computing device, or distributed across a network of multiple computing devices, or alternatively they may be implemented in program code executable by a computing device, such that they may be stored in a memory device for execution by the computing device, and in some cases, the steps shown or described may be performed in a different order than what is shown or described herein, or they may be individually fabricated as individual grouped circuit modules, or a plurality of the modules or steps may be fabricated as a single grouped circuit module. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.
Claims (9)
1. A thumbnail preview method, the method comprising:
Extracting a plurality of thumbnail acquisition point objects of the video to be edited, wherein the thumbnail acquisition point objects comprise video information of the video to be edited, and each thumbnail acquisition point object corresponds to an object time point respectively;
acquiring a current visible preview time interval of current equipment;
selecting a plurality of visible thumbnail acquisition point objects from the plurality of thumbnail acquisition point objects according to the current visible preview time interval and each object time point;
collecting a plurality of thumbnails from the video to be edited according to the plurality of visible thumbnail collecting point objects; and
Rendering the plurality of thumbnails, and associating the rendered plurality of thumbnails to relative positions in the preview track; wherein rendering the plurality of thumbnails, associating the rendered plurality of thumbnails to relative positions in the preview track, comprises: calculating coordinates and areas of each thumbnail in the preview track according to time points of the thumbnails in the video to be edited, rendering the plurality of thumbnails according to the coordinates and the areas of each thumbnail in the preview track, and associating the rendered plurality of thumbnails to relative positions in the preview track;
The current visible preview time interval and the preview precision can be adjusted in a linkage way, the preview precision represents the time interval for capturing the thumbnail from the video, the smaller the time interval is, the higher the capturing precision of the thumbnail is, and the preview precision is dynamically adjusted according to the frame rate of the video to be edited or is adjusted by a user; obtaining a current visible preview time interval of a current device includes:
acquiring the width of a single thumbnail of the video to be edited in a preview track, the screen width of current equipment and the current preview precision;
determining the number of the thumbnails in the preview track according to the width of the single thumbnail in the preview track and the screen width of the current device;
determining the thumbnail preview time in the preview track according to the number of the thumbnails and the current preview precision;
determining a thumbnail grabbing position in the preview track; and
And determining the current visible preview time interval according to the thumbnail grabbing position.
2. The thumbnail preview method according to claim 1, wherein each thumbnail acquisition point object further includes video information of the video to be edited, the video information including a frame rate of the video to be edited; extracting a plurality of thumbnail acquisition point objects of a video to be edited, including:
Judging whether the frame rate of the video to be edited is greater than or equal to a preset preview precision;
if the frame rate of the video to be edited is greater than or equal to the preset preview precision, acquiring the plurality of thumbnail acquisition point objects according to the preset preview precision; and
And if the frame rate of the video to be edited is smaller than the preset preview precision, acquiring the plurality of thumbnail acquisition point objects according to the frame rate of the video to be edited.
3. The thumbnail preview method according to claim 1, wherein capturing a plurality of thumbnails from the video to be edited based on the plurality of visible thumbnail capture point objects, comprises:
detecting whether the plurality of thumbnails exist in the local cache;
if one or more thumbnails in the plurality of thumbnails are in the local cache, acquiring the one or more thumbnails from the local cache; and/or
And if at least part of the plurality of thumbnails are not in the local cache, creating a thumbnail grabbing task according to a visible thumbnail acquisition point object corresponding to the at least part of the thumbnails so as to acquire the at least part of the thumbnails from the video to be edited.
4. The thumbnail preview method according to claim 3, wherein if at least a part of the plurality of thumbnails is not in the local buffer, creating a thumbnail grabbing task according to a visible thumbnail acquisition point object corresponding to the at least a part of the thumbnails to acquire the at least a part of the thumbnails from the video to be edited, comprises:
detecting whether a task queue for capturing the current thumbnail has a capturing task for at least one thumbnail in the at least partial thumbnails;
if the task queue for capturing the current thumbnail does not have a capturing task for at least one thumbnail in the at least partial thumbnail, creating the thumbnail capturing task, and adding the thumbnail capturing task to a target position in the task queue, wherein the target position is a priority processing position in the task queue; and
And if the task queue for capturing the current thumbnail has a capturing task for at least one thumbnail in the at least partial thumbnail, moving the capturing task for at least one thumbnail in the at least partial thumbnail to a target position in the task queue.
5. The thumbnail preview method according to claim 3 or 4, further comprising:
If the acquisition of the plurality of thumbnails from the video to be edited fails according to the plurality of visible thumbnail acquisition point objects, acquiring thumbnails corresponding to nearby time points of the visible thumbnail acquisition point objects; and
And if the collection of the plurality of thumbnails from the video to be edited is successful according to the plurality of visible thumbnail collection point objects, caching the plurality of thumbnails into a memory database and a disk database.
6. The thumbnail preview method according to claim 3, wherein rendering the plurality of thumbnails and associating the rendered plurality of thumbnails to relative positions in a preview track includes:
according to the time point of each thumbnail in the video to be edited, calculating the coordinates and the area of each thumbnail in the preview track; and
And rendering the plurality of thumbnails according to the coordinates and the areas of each thumbnail in the preview track, and associating the plurality of thumbnails after rendering to the relative positions in the preview track.
7. A thumbnail preview system comprising:
the extraction module is used for extracting a plurality of thumbnail acquisition point objects of the video to be edited, wherein the thumbnail acquisition point objects comprise video information of the video to be edited, and each thumbnail acquisition point object corresponds to an object time point respectively;
The acquisition module is used for acquiring a current visible preview time interval of the current equipment;
the current visual preview time interval and the preview precision can be adjusted in a linkage way, the preview precision represents the time interval of capturing the thumbnail from the video, the smaller the time interval is, the higher the capturing precision of the thumbnail is, and the preview precision is dynamically adjusted according to the frame rate of the video to be edited or is adjusted by a user; obtaining a current visible preview time interval of a current device includes:
acquiring the width of a single thumbnail of the video to be edited in a preview track, the screen width of current equipment and the current preview precision;
determining the number of the thumbnails in the preview track according to the width of the single thumbnail in the preview track and the screen width of the current device;
determining the thumbnail preview time in the preview track according to the number of the thumbnails and the current preview precision;
determining a thumbnail grabbing position in the preview track; and
Determining the current visible preview time interval according to the thumbnail grabbing position;
the selection module is used for selecting a plurality of visible thumbnail acquisition point objects from the plurality of thumbnail acquisition point objects according to the current visible preview time interval and each object time point;
The acquisition module is used for acquiring a plurality of thumbnails from the video to be edited according to the plurality of visible thumbnail acquisition point objects; and
The rendering module is used for rendering the plurality of thumbnails and associating the plurality of rendered thumbnails to the relative positions in the preview track; wherein the acquisition module is further for: and calculating the coordinates and the areas of each thumbnail in the preview track according to the time points of the thumbnails in the video to be edited, rendering the plurality of thumbnails according to the coordinates and the areas of each thumbnail in the preview track, and associating the plurality of thumbnails after rendering to the relative positions in the preview track.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor is adapted to implement the steps of the method of any one of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program executable by at least one processor to cause the at least one processor to perform the steps of the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011539442.5A CN112738416B (en) | 2020-12-23 | 2020-12-23 | Thumbnail preview method, system, device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011539442.5A CN112738416B (en) | 2020-12-23 | 2020-12-23 | Thumbnail preview method, system, device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112738416A CN112738416A (en) | 2021-04-30 |
CN112738416B true CN112738416B (en) | 2023-05-02 |
Family
ID=75604556
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011539442.5A Active CN112738416B (en) | 2020-12-23 | 2020-12-23 | Thumbnail preview method, system, device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112738416B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117641057A (en) * | 2023-12-06 | 2024-03-01 | 北京达佳互联信息技术有限公司 | Video playing method, device, terminal and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101438593A (en) * | 2006-03-10 | 2009-05-20 | Lg电子株式会社 | Video browsing based on thumbnail image |
JP2011250095A (en) * | 2010-05-26 | 2011-12-08 | Sony Corp | Electronic apparatus, video editing method, and program |
CN103020076A (en) * | 2011-09-23 | 2013-04-03 | 深圳市快播科技有限公司 | Dynamic preview method and device for player video file |
CN103747259A (en) * | 2013-12-27 | 2014-04-23 | 华为技术有限公司 | Video processing method and device |
CN107465954A (en) * | 2014-12-04 | 2017-12-12 | 广东欧珀移动通信有限公司 | The generation method and Related product of dynamic thumbnail |
CN108040288A (en) * | 2017-12-20 | 2018-05-15 | 北京达佳互联信息技术有限公司 | Video editing method, device and intelligent mobile terminal |
CN108810622A (en) * | 2018-07-09 | 2018-11-13 | 腾讯科技(深圳)有限公司 | Extracting method, device, computer-readable medium and the electronic equipment of video frame |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013021430A (en) * | 2011-07-08 | 2013-01-31 | Hitachi Consumer Electronics Co Ltd | Thumbnail image provision apparatus, method and system |
US8732579B2 (en) * | 2011-09-23 | 2014-05-20 | Klip, Inc. | Rapid preview of remote video content |
JP5983941B2 (en) * | 2012-01-30 | 2016-09-06 | パナソニックIpマネジメント株式会社 | Image editing apparatus and thumbnail generation method |
CN104904231A (en) * | 2012-12-17 | 2015-09-09 | 英特尔公司 | Embedding thumbnail information into video streams |
US9918040B2 (en) * | 2014-12-05 | 2018-03-13 | Comcast Cable Comunications Magagement, Llc | Video preview during trick play |
CN106028068A (en) * | 2016-06-30 | 2016-10-12 | 乐视控股(北京)有限公司 | Video progress content preview method and device, and mobile terminal |
CN106792272A (en) * | 2016-11-28 | 2017-05-31 | 维沃移动通信有限公司 | The generation method and mobile terminal of a kind of video thumbnails |
CN107277628B (en) * | 2017-06-21 | 2019-12-17 | 上海全土豆文化传播有限公司 | video preview display method and device |
CN109327698B (en) * | 2018-11-09 | 2020-09-15 | 杭州网易云音乐科技有限公司 | Method, system, medium and electronic device for generating dynamic preview chart |
CN110225390B (en) * | 2019-06-20 | 2021-07-23 | 广州酷狗计算机科技有限公司 | Method, device, terminal and computer-readable storage medium for video preview |
CN111538705B (en) * | 2020-04-15 | 2023-06-30 | 苏宁智能终端有限公司 | Video thumbnail preview method, control server and medium |
-
2020
- 2020-12-23 CN CN202011539442.5A patent/CN112738416B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101438593A (en) * | 2006-03-10 | 2009-05-20 | Lg电子株式会社 | Video browsing based on thumbnail image |
JP2011250095A (en) * | 2010-05-26 | 2011-12-08 | Sony Corp | Electronic apparatus, video editing method, and program |
CN103020076A (en) * | 2011-09-23 | 2013-04-03 | 深圳市快播科技有限公司 | Dynamic preview method and device for player video file |
CN103747259A (en) * | 2013-12-27 | 2014-04-23 | 华为技术有限公司 | Video processing method and device |
CN107465954A (en) * | 2014-12-04 | 2017-12-12 | 广东欧珀移动通信有限公司 | The generation method and Related product of dynamic thumbnail |
CN108040288A (en) * | 2017-12-20 | 2018-05-15 | 北京达佳互联信息技术有限公司 | Video editing method, device and intelligent mobile terminal |
CN108810622A (en) * | 2018-07-09 | 2018-11-13 | 腾讯科技(深圳)有限公司 | Extracting method, device, computer-readable medium and the electronic equipment of video frame |
Also Published As
Publication number | Publication date |
---|---|
CN112738416A (en) | 2021-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10529106B2 (en) | Optimizing image cropping | |
CN107945098B (en) | Image processing method, image processing device, computer equipment and storage medium | |
CN112423021B (en) | Video processing method and device, readable medium and electronic equipment | |
CN112565890B (en) | Video clipping method and device, storage medium and electronic equipment | |
CN110418191A (en) | A kind of generation method and device of short-sighted frequency | |
CN103702032A (en) | Image processing method, device and terminal equipment | |
KR20190120106A (en) | Method for determining representative image of video, and electronic apparatus for processing the method | |
CN114679607A (en) | Video frame rate control method and device, electronic equipment and storage medium | |
CN110609718A (en) | Picture loading method and device, electronic equipment and readable storage medium | |
CN112738416B (en) | Thumbnail preview method, system, device and computer readable storage medium | |
CN113115095B (en) | Video processing method, video processing device, electronic equipment and storage medium | |
CN114363697B (en) | Video file generation and playing method and device | |
CN113592720B (en) | Image scaling processing method, device, equipment and storage medium | |
US9076207B1 (en) | Image processing method, system and electronic device | |
CN111599449B (en) | Automatic playing method, device and equipment of electronic image and storage medium | |
CN110536087A (en) | Electronic equipment and its motion profile picture synthesis method, device and embedded equipment | |
CN110598026B (en) | Display method and device of picture list and terminal equipment | |
CN113596351B (en) | Video display method and device | |
CN113056905A (en) | System and method for taking tele-like images | |
JP2007036737A (en) | Image display device | |
CN113391869A (en) | Page adaptation method and device, computer equipment and storage medium | |
CN112800258A (en) | Image retrieval method, image retrieval device, electronic equipment and computer-readable storage medium | |
CN113438500A (en) | Video processing method and device, electronic equipment and computer storage medium | |
JP2014158071A (en) | Image layout device | |
KR101722831B1 (en) | Device and method for contents production of the device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |