CN111356012A - Video preview method and device - Google Patents

Video preview method and device Download PDF

Info

Publication number
CN111356012A
CN111356012A CN201811570611.4A CN201811570611A CN111356012A CN 111356012 A CN111356012 A CN 111356012A CN 201811570611 A CN201811570611 A CN 201811570611A CN 111356012 A CN111356012 A CN 111356012A
Authority
CN
China
Prior art keywords
video
special effect
picture
time point
effect data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811570611.4A
Other languages
Chinese (zh)
Inventor
李越
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811570611.4A priority Critical patent/CN111356012A/en
Publication of CN111356012A publication Critical patent/CN111356012A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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/44012Processing 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-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/47202End-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 requesting content on demand, e.g. video on demand

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 invention discloses a video preview method and a video preview device. The method comprises the following steps: in the video editing process, storing video data and special effect data to a cache; responding to a video preview request, and reading video data and special effect data corresponding to a target time point from the cache; and rendering pictures according to the read video data and the read special effect data. According to the technical scheme, the situation that data of the target time point picture is obtained again for re-rendering is avoided, resource reading and rendering consumption is reduced, the preview speed is improved, the expenditure is saved, and the efficiency is higher.

Description

Video preview method and device
Technical Field
The invention relates to the technical field of video processing, in particular to a video previewing method and device.
Background
When the video is played, the video is driven by data frames, and during the video editing process, the video is in a pause state, so if a user drags a progress bar or edits a current picture, the picture needs to be re-rendered. At present, due to lack of data frame driving, when a picture at a time point needs to be rendered, video data and special effect data corresponding to the time point need to be acquired, all processing is performed once, time is long, efficiency is low, and resource overhead is large.
Disclosure of Invention
In view of the above, the present invention has been made to provide a video preview method and apparatus that overcomes or at least partially solves the above problems.
According to an aspect of the present invention, there is provided a video preview method including:
in the video editing process, storing video data and special effect data to a cache;
responding to a video preview request, and reading video data and special effect data corresponding to a target time point from the cache;
and rendering pictures according to the read video data and the read special effect data.
Optionally, in the video editing process, the storing the video data and the special effect data in the cache includes:
and storing the video data and the special effect data corresponding to the corresponding time points according to the video editing request.
Optionally, the video preview request includes:
a request for displaying the edited picture after editing the current picture;
and/or the presence of a gas in the gas,
and displaying the picture of the target time point in the edited video based on the time point selection operation.
Optionally, the performing picture rendering according to the read video data and the read special effect data includes:
calculating the change amount of the video data and/or the special effect data corresponding to the current picture according to the video data and/or the special effect data corresponding to the picture of the edited picture/target time point;
and performing picture rendering on the basis of the current picture according to the change amount.
Optionally, the method further comprises:
before calculating the change amount, judging whether the interval between the target time point and the time point corresponding to the current picture reaches a preset threshold value, if so, not calculating the change amount, and directly performing picture rendering according to the video data and the special effect data corresponding to the picture of the target time point.
Optionally, the method further comprises:
the video preview requests are prioritized according to request types, and when a plurality of video preview requests are received within preset time, the processing sequence of each video preview request is determined according to the priority.
Optionally, the priority of the video preview request generated during the video dragging operation is lower than the priority of the video preview request generated at the end of the video dragging operation.
According to another aspect of the present invention, there is provided a video preview device including:
the buffer unit is suitable for storing the video data and the special effect data into a buffer memory in the video editing process;
the preview unit is suitable for responding to a video preview request and reading video data and special effect data corresponding to a target time point from the cache; and rendering pictures according to the read video data and the read special effect data.
Optionally, the cache unit is adapted to store the video data and the special effect data corresponding to the corresponding time point according to the video editing request.
Optionally, the video preview request includes:
a request for displaying the edited picture after editing the current picture;
and/or the presence of a gas in the gas,
and displaying the picture of the target time point in the edited video based on the time point selection operation.
Optionally, the preview unit is adapted to calculate a change amount of the video data and/or the special effect data corresponding to the current picture according to the video data and/or the special effect data corresponding to the picture at the edited picture/target time point; and performing picture rendering on the basis of the current picture according to the change amount.
Optionally, the preview unit is adapted to determine whether an interval between a target time point and a time point corresponding to a current picture reaches a preset threshold before calculating the change amount, if so, not calculate the change amount, and directly perform picture rendering according to video data and special effect data corresponding to the picture at the target time point.
Optionally, the preview unit is adapted to prioritize the video preview requests according to request types, and when receiving a plurality of video preview requests within a preset time, determine a processing order of each video preview request according to the priority.
Optionally, the priority of the video preview request generated during the video dragging operation is lower than the priority of the video preview request generated at the end of the video dragging operation.
In accordance with still another aspect of the present invention, there is provided an electronic apparatus including: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform a method as any one of the above.
According to a further aspect of the invention, there is provided a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement a method as any one of the above.
As can be seen from the above, in the technical scheme of the present invention, in the video editing process, the video data and the special effect data are stored in the cache, so that after receiving the video preview request, the video data and the special effect data corresponding to the target time point are read from the cache, and the picture is rendered according to the read video data and the read special effect data. According to the technical scheme, the situation that data of the target time point picture is obtained again for re-rendering is avoided, resource reading and rendering consumption is reduced, the preview speed is improved, the expenditure is saved, and the efficiency is higher.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a flow diagram of a video preview method according to one embodiment of the present invention;
fig. 2 is a schematic structural diagram of a video preview device according to an embodiment of the present invention;
FIG. 3 shows a schematic structural diagram of an electronic device according to one embodiment of the invention;
fig. 4 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 shows a flow diagram of a video preview method according to an embodiment of the invention.
As shown in fig. 1, the method includes:
step S110, in the video editing process, the video data and the special effect data are stored in a cache.
The special effect data can be a map added in the original video, light and shadow effect data and the like, for example, the character background part in the video is replaced by the map, and the effect of creating a special scene is realized. The video data is data of each frame in the video. In the embodiment of the invention, the user can select video editing materials, such as videos, pictures and the like, and can load various materials at the same time; and editing part or all of the video according to the selected materials.
Step S120, in response to the video preview request, reading the video data and the special effect data corresponding to the target time point from the cache.
At this time, the video is still in the pause state, so unlike the play state, the rendering cannot be completed by the data frame driving manner. Thus, if the prior art approach is used, the update is time consuming.
And step S130, performing picture rendering according to the read video data and the read special effect data.
As can be seen, in the method shown in fig. 1, in the video editing process, the video data and the special effect data are stored in the cache, so that after receiving the video preview request, the video data and the special effect data corresponding to the target time point are read from the cache, and the picture is rendered according to the read video data and the read special effect data. According to the technical scheme, the situation that data of the target time point picture is obtained again for re-rendering is avoided, resource reading and rendering consumption is reduced, the preview speed is improved, the expenditure is saved, and the efficiency is higher.
In an embodiment of the present invention, in the method, during the video editing process, the storing the video data and the special effect data in the buffer includes: and storing the video data and the special effect data corresponding to the corresponding time points according to the video editing request.
In one embodiment, each of the video data and the special effect data is stored corresponding to a time point, where the time point is a time point corresponding to a time progress of the video itself, for example, a video lasting one minute, and the video data and the special effect data corresponding to time points of 15s, 20s, 30s, and so on may be stored.
In an embodiment of the present invention, in the method, the video preview request includes: a request for displaying the edited picture after editing the current picture; and/or a request for displaying a picture of a target time point in the edited video based on the time point selection operation.
The video preview request is different from the video play request, and often a user wants to display a picture corresponding to a specific time point. In one example, when a user edits a current screen and desires to view the edited screen, a video preview request is generated. In yet another example, a user editing all or part of a video and wishing to view a corresponding screen by dragging or clicking on a progress bar at a certain point in time may also generate a video preview request.
It should be noted here that the embodiment implemented according to the present invention can be applied to an intelligent terminal, for example, various devices using the iOS system. On the intelligent terminal, the functions of dragging the progress bar and the like can also be realized by directly dragging the video picture and the like, and the method is not limited by the invention.
In an embodiment of the present invention, the performing picture rendering according to the read video data and the read special effect data includes: calculating the change amount of the video data and/or the special effect data corresponding to the current picture according to the video data and/or the special effect data corresponding to the picture of the edited picture/target time point; and according to the change amount, performing picture rendering on the basis of the current picture.
In particular, if rendering is performed based on the full amount of data, a large amount of resources are still consumed, which is inefficient. Therefore, if the video content does not change much, by calculating the change amount of the video data and the special effect data and performing picture rendering according to the change amount, a large amount of resources can be saved and the preview speed can be increased.
It should be further noted that the expression "video data and/or special effect data corresponding to a picture at an edited picture/target time point" means that, in a scene such as a real-time viewing of an edited picture, a change amount of the video data and/or the special effect data corresponding to the current picture needs to be calculated according to the video data and/or the special effect data corresponding to the edited picture; when a user drags a picture or specifies a certain time point, and the like, the change amount of the video data and/or the special effect data corresponding to the current picture is calculated according to the video data and/or the special effect data corresponding to the picture at the target time point.
In an embodiment of the present invention, the method further includes: before calculating the change amount, judging whether the interval between the target time point and the time point corresponding to the current picture reaches a preset threshold value, if so, not calculating the change amount, and directly performing picture rendering according to the video data and the special effect data corresponding to the picture of the target time point.
Of course, if the difference between the two pictures is large, the significance of calculating the change amount is not great. For example, if the recorded video is recorded and broadcast video of a certain anchor live content, since the anchor action amplitude, position and other change degrees are limited in a long time, the way of calculating the change amount is adopted, and the improvement is remarkable. For the motion movie clip, the effect of calculating the change amount is not obvious because the scene switching in the picture is fast and the motion amplitude is large. And under the condition that the content is not identified, the control is carried out by adopting a mode of setting an interval threshold value, the content difference of two pictures with longer intervals can be considered to be larger, and at the moment, a mode of directly carrying out picture rendering according to the video data and the special effect data corresponding to the picture at the target time point is adopted.
In an embodiment of the present invention, the method further includes: the video preview requests are prioritized according to request types, and when a plurality of video preview requests are received within preset time, the processing sequence of each video preview request is determined according to the priority.
When a user previews videos, a large number of video preview requests can be triggered in a short time, the video preview requests can be prioritized in consideration of the identification of human eyes and actual scenes, the video preview requests are distinguished in a mode of adding priority marks to the video requests, and the processing sequence of the video preview requests is determined according to the priorities.
Specifically, in one embodiment of the present invention, in the method, the priority of the video preview request generated during the video dragging operation is lower than the priority of the video preview request generated at the end of the video dragging operation.
When a user drags a video once, the user usually wants to see the corresponding picture when stopping, but does not usually aim at carefully dragging each picture in the process of flow dragging, and when the dragging operation is too fast, the user cannot actually see the picture. Therefore, the priority of the video preview request generated in the video dragging operation process can be set to be lower than the priority of the video preview request generated when the video dragging operation is finished, so that the video preview request generated when the video dragging operation is finished can be processed firstly, the user experience is further improved, and the video preview effect is better.
Fig. 2 is a schematic structural diagram of a video preview device according to an embodiment of the present invention. As shown in fig. 2, the video preview apparatus 200 includes:
the buffer unit 210 is adapted to store the video data and the special effect data in a buffer during the video editing process.
The special effect data can be a map added in the original video, light and shadow effect data and the like, for example, the character background part in the video is replaced by the map, and the effect of creating a special scene is realized. The video data is data of each frame in the video. In the embodiment of the invention, the user can select video editing materials, such as videos, pictures and the like, and can load various materials at the same time; and editing part or all of the video according to the selected materials.
A preview unit 220 adapted to read video data and special effect data corresponding to the target time point from the cache in response to the video preview request; and rendering pictures according to the read video data and the read special effect data.
As can be seen, in the apparatus shown in fig. 2, in the video editing process, the video data and the special effect data are stored in the cache, so that after receiving the video preview request, the video data and the special effect data corresponding to the target time point are read from the cache, and the picture is rendered according to the read video data and the read special effect data. According to the technical scheme, the situation that data of the target time point picture is obtained again for re-rendering is avoided, resource reading and rendering consumption is reduced, the preview speed is improved, the expenditure is saved, and the efficiency is higher.
In an embodiment of the present invention, in the above apparatus, the buffer unit 210 is adapted to store the video data and the special effect data corresponding to the corresponding time point according to the video editing request.
In one embodiment, each of the video data and the special effect data is stored corresponding to a time point, where the time point is a time point corresponding to a time progress of the video itself, for example, a video lasting one minute, and the video data and the special effect data corresponding to time points of 15s, 20s, 30s, and so on may be stored.
In an embodiment of the present invention, in the above apparatus, the video preview request includes: a request for displaying the edited picture after editing the current picture; and/or a request for displaying a picture of a target time point in the edited video based on the time point selection operation.
The video preview request is different from the video play request, and often a user wants to display a picture corresponding to a specific time point. In one example, when a user edits a current screen and desires to view the edited screen, a video preview request is generated. In yet another example, a user editing all or part of a video and wishing to view a corresponding screen by dragging or clicking on a progress bar at a certain point in time may also generate a video preview request.
It should be noted here that the embodiment implemented according to the present invention can be applied to an intelligent terminal, for example, various devices using the iOS system. On the intelligent terminal, the functions of dragging the progress bar and the like can also be realized by directly dragging the video picture and the like, and the method is not limited by the invention.
In an embodiment of the present invention, in the above apparatus, the preview unit 220 is adapted to calculate a change amount of the video data and/or the special effect data corresponding to the current picture according to the video data and/or the special effect data corresponding to the picture at the edited picture/target time point; and according to the change amount, performing picture rendering on the basis of the current picture.
In particular, if rendering is performed based on the full amount of data, a large amount of resources are still consumed, which is inefficient. Therefore, if the video content does not change much, by calculating the change amount of the video data and the special effect data and performing picture rendering according to the change amount, a large amount of resources can be saved and the preview speed can be increased.
It should be further noted that the expression "video data and/or special effect data corresponding to a picture at an edited picture/target time point" means that, in a scene such as a real-time viewing of an edited picture, a change amount of the video data and/or the special effect data corresponding to the current picture needs to be calculated according to the video data and/or the special effect data corresponding to the edited picture; when a user drags a picture or specifies a certain time point, and the like, the change amount of the video data and/or the special effect data corresponding to the current picture is calculated according to the video data and/or the special effect data corresponding to the picture at the target time point.
In an embodiment of the present invention, in the above apparatus, the preview unit 220 is adapted to determine whether an interval between the target time point and the time point corresponding to the current picture reaches a preset threshold before calculating the change amount, and if so, perform picture rendering directly according to the video data and the special effect data corresponding to the picture at the target time point without calculating the change amount.
Of course, if the difference between the two pictures is large, the significance of calculating the change amount is not great. For example, if the recorded video is recorded and broadcast video of a certain anchor live content, since the anchor action amplitude, position and other change degrees are limited in a long time, the way of calculating the change amount is adopted, and the improvement is remarkable. For the motion movie clip, the effect of calculating the change amount is not obvious because the scene switching in the picture is fast and the motion amplitude is large. And under the condition that the content is not identified, the control is carried out by adopting a mode of setting an interval threshold value, the content difference of two pictures with longer intervals can be considered to be larger, and at the moment, a mode of directly carrying out picture rendering according to the video data and the special effect data corresponding to the picture at the target time point is adopted.
In an embodiment of the present invention, in the above apparatus, the previewing unit 220 is adapted to prioritize the video preview requests according to request types, and when a plurality of video preview requests are received within a preset time, determine a processing order of the video preview requests according to the priorities.
When a user previews videos, a large number of video preview requests can be triggered in a short time, the video preview requests can be prioritized in consideration of the identification of human eyes and actual scenes, the video preview requests are distinguished in a mode of adding priority marks to the video requests, and the processing sequence of the video preview requests is determined according to the priorities.
Specifically, in one embodiment of the present invention, in the apparatus described above, the priority of the video preview request generated during the video dragging operation is lower than the priority of the video preview request generated at the end of the video dragging operation.
When a user drags a video once, the user usually wants to see the corresponding picture when stopping, but does not usually aim at carefully dragging each picture in the process of flow dragging, and when the dragging operation is too fast, the user cannot actually see the picture. Therefore, the priority of the video preview request generated in the video dragging operation process can be set to be lower than the priority of the video preview request generated when the video dragging operation is finished, so that the video preview request generated when the video dragging operation is finished can be processed firstly, the user experience is further improved, and the video preview effect is better.
In summary, in the technical solution of the present invention, in the video editing process, the video data and the special effect data are stored in the cache, so that after receiving the video preview request, the video data and the special effect data corresponding to the target time point are read from the cache, and the picture is rendered according to the read video data and the read special effect data. According to the technical scheme, the situation that data of the target time point picture is obtained again for re-rendering is avoided, resource reading and rendering consumption is reduced, the preview speed is improved, the expenditure is saved, and the efficiency is higher.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a video preview device according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
For example, fig. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the invention. The electronic device comprises a processor 310 and a memory 320 arranged to store computer executable instructions (computer readable program code). The memory 320 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 320 has a storage space 330 storing computer readable program code 331 for performing any of the method steps described above. For example, the storage space 330 for storing the computer readable program code may comprise respective computer readable program codes 331 for respectively implementing various steps in the above method. The computer readable program code 331 may be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such a computer program product is typically a computer readable storage medium such as described in fig. 4. Fig. 4 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention. The computer readable storage medium 400 has stored thereon a computer readable program code 331 for performing the steps of the method according to the invention, readable by a processor 310 of the electronic device 300, which computer readable program code 331, when executed by the electronic device 300, causes the electronic device 300 to perform the steps of the method described above, in particular the computer readable program code 331 stored on the computer readable storage medium may perform the method shown in any of the embodiments described above. The computer readable program code 331 may be compressed in a suitable form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The embodiment of the invention discloses A1, a video preview method, comprising:
in the video editing process, storing video data and special effect data to a cache;
responding to a video preview request, and reading video data and special effect data corresponding to a target time point from the cache;
and rendering pictures according to the read video data and the read special effect data.
A2, the method as in a1, wherein the saving video data and special effects data to a cache during video editing comprises:
and storing the video data and the special effect data corresponding to the corresponding time points according to the video editing request.
A3, the method of A1, wherein the video preview request includes:
a request for displaying the edited picture after editing the current picture;
and/or the presence of a gas in the gas,
and displaying the picture of the target time point in the edited video based on the time point selection operation.
A4, the method as in A3, wherein the picture rendering according to the read video data and special effects data comprises:
calculating the change amount of the video data and/or the special effect data corresponding to the current picture according to the video data and/or the special effect data corresponding to the picture of the edited picture/target time point;
and performing picture rendering on the basis of the current picture according to the change amount.
A5, the method of a4, wherein the method further comprises:
before calculating the change amount, judging whether the interval between the target time point and the time point corresponding to the current picture reaches a preset threshold value, if so, not calculating the change amount, and directly performing picture rendering according to the video data and the special effect data corresponding to the picture of the target time point.
A6, the method of A3, wherein the method further comprises:
the video preview requests are prioritized according to request types, and when a plurality of video preview requests are received within preset time, the processing sequence of each video preview request is determined according to the priority.
A7, the method as in a6, wherein the priority of the video preview request generated during the drag video operation is lower than the priority of the video preview request generated at the end of the drag video operation.
The embodiment of the invention also discloses B8, a video preview device, comprising:
the buffer unit is suitable for storing the video data and the special effect data into a buffer memory in the video editing process;
the preview unit is suitable for responding to a video preview request and reading video data and special effect data corresponding to a target time point from the cache; and rendering pictures according to the read video data and the read special effect data.
B9, the device of B8, wherein,
and the cache unit is suitable for storing the video data and the special effect data corresponding to the corresponding time points according to the video editing request.
B10, the apparatus as in B8, wherein the video preview request includes:
a request for displaying the edited picture after editing the current picture;
and/or the presence of a gas in the gas,
and displaying the picture of the target time point in the edited video based on the time point selection operation.
B11, the device of B10, wherein,
the preview unit is suitable for calculating the change amount of the video data and/or the special effect data corresponding to the current picture according to the video data and/or the special effect data corresponding to the picture of the edited picture/target time point; and performing picture rendering on the basis of the current picture according to the change amount.
B12, the device of B11, wherein,
and the preview unit is suitable for judging whether the interval between the target time point and the time point corresponding to the current picture reaches a preset threshold value or not before calculating the change amount, if so, the change amount is not calculated, and picture rendering is directly carried out according to the video data and the special effect data corresponding to the picture of the target time point.
B13, the device of B10, wherein,
the preview unit is suitable for prioritizing the video preview requests according to request types, and when a plurality of video preview requests are received within preset time, the processing sequence of each video preview request is determined according to the priority.
And B14, the device as B13, wherein the priority of the video preview request generated during the video dragging operation is lower than that of the video preview request generated at the end of the video dragging operation.
The embodiment of the invention also discloses C15 and electronic equipment, wherein the electronic equipment comprises: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of any one of a1-a 7.
Embodiments of the invention also disclose D16, a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method as any one of a1-a 7.

Claims (10)

1. A video preview method, comprising:
in the video editing process, storing video data and special effect data to a cache;
responding to a video preview request, and reading video data and special effect data corresponding to a target time point from the cache;
and rendering pictures according to the read video data and the read special effect data.
2. The method of claim 1, wherein the saving video data and special effects data to a cache during video editing comprises:
and storing the video data and the special effect data corresponding to the corresponding time points according to the video editing request.
3. The method of claim 1, wherein the video preview request comprises:
a request for displaying the edited picture after editing the current picture;
and/or the presence of a gas in the gas,
and displaying the picture of the target time point in the edited video based on the time point selection operation.
4. The method of claim 3, wherein the performing picture rendering according to the read video data and the read special effect data comprises:
calculating the change amount of the video data and/or the special effect data corresponding to the current picture according to the video data and/or the special effect data corresponding to the picture of the edited picture/target time point;
and performing picture rendering on the basis of the current picture according to the change amount.
5. The method of claim 4, wherein the method further comprises:
before calculating the change amount, judging whether the interval between the target time point and the time point corresponding to the current picture reaches a preset threshold value, if so, not calculating the change amount, and directly performing picture rendering according to the video data and the special effect data corresponding to the picture of the target time point.
6. The method of claim 3, wherein the method further comprises:
the video preview requests are prioritized according to request types, and when a plurality of video preview requests are received within preset time, the processing sequence of each video preview request is determined according to the priority.
7. The method of claim 6, wherein a priority of the video preview request generated during the drag video operation is lower than a priority of the video preview request generated when the drag video operation ends.
8. A video preview device comprising:
the buffer unit is suitable for storing the video data and the special effect data into a buffer memory in the video editing process;
the preview unit is suitable for responding to a video preview request and reading video data and special effect data corresponding to a target time point from the cache; and rendering pictures according to the read video data and the read special effect data.
9. An electronic device, wherein the electronic device comprises: a processor; and a memory arranged to store computer-executable instructions that, when executed, cause the processor to perform the method of any one of claims 1-7.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-7.
CN201811570611.4A 2018-12-21 2018-12-21 Video preview method and device Pending CN111356012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811570611.4A CN111356012A (en) 2018-12-21 2018-12-21 Video preview method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811570611.4A CN111356012A (en) 2018-12-21 2018-12-21 Video preview method and device

Publications (1)

Publication Number Publication Date
CN111356012A true CN111356012A (en) 2020-06-30

Family

ID=71195940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811570611.4A Pending CN111356012A (en) 2018-12-21 2018-12-21 Video preview method and device

Country Status (1)

Country Link
CN (1) CN111356012A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102723093A (en) * 2011-12-28 2012-10-10 新奥特(北京)视频技术有限公司 Caching method of image file
CN104091607A (en) * 2014-06-13 2014-10-08 北京奇艺世纪科技有限公司 Video editing method and device based on IOS equipment
CN105472207A (en) * 2015-11-19 2016-04-06 中央电视台 Method and device for video audio file rendering
US9583140B1 (en) * 2015-10-06 2017-02-28 Bruce Rady Real-time playback of an edited sequence of remote media and three-dimensional assets
CN107333176A (en) * 2017-08-14 2017-11-07 北京百思科技有限公司 The method and system that a kind of distributed video is rendered

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102723093A (en) * 2011-12-28 2012-10-10 新奥特(北京)视频技术有限公司 Caching method of image file
CN104091607A (en) * 2014-06-13 2014-10-08 北京奇艺世纪科技有限公司 Video editing method and device based on IOS equipment
US9583140B1 (en) * 2015-10-06 2017-02-28 Bruce Rady Real-time playback of an edited sequence of remote media and three-dimensional assets
CN105472207A (en) * 2015-11-19 2016-04-06 中央电视台 Method and device for video audio file rendering
CN107333176A (en) * 2017-08-14 2017-11-07 北京百思科技有限公司 The method and system that a kind of distributed video is rendered

Similar Documents

Publication Publication Date Title
US20100097398A1 (en) Image processing apparatus, moving-image playing apparatus, and processing method and program therefor
CN108108268B (en) Method and device for processing quit restart of video recording application
JP6882992B2 (en) How and devices to preview moving images, and how and devices to display representation packages
US20130335447A1 (en) Electronic device and method for playing real-time images in a virtual reality
CN110599396A (en) Information processing method and device
CN112333536A (en) Audio and video editing method, equipment and computer readable storage medium
CN115297272B (en) Video processing method, device, equipment and storage medium
CN111899322A (en) Video processing method, animation rendering SDK, device and computer storage medium
CN107748688B (en) Information display method and device
CN107577766B (en) Webpage 3D target loading method and device
CN107071550B (en) Video data sharing method and device
US11941728B2 (en) Previewing method and apparatus for effect application, and device, and storage medium
CN109788212A (en) A kind of processing method of segmenting video, device, terminal and storage medium
WO2022100162A1 (en) Method and apparatus for producing dynamic shots in short video
CN110727825A (en) Animation playing control method, device, server and storage medium
CN110012358A (en) Review of a film by the censor information processing method, device
CN113727168B (en) Video publishing method, device, terminal and storage medium
CN108712676B (en) Method and device for automatically playing video based on React framework
CN114282135A (en) Data carousel method and device, electronic equipment and storage medium
CN113365150A (en) Video processing method and video processing device
CN111356012A (en) Video preview method and device
CN109862295B (en) GIF generation method, device, computer equipment and storage medium
CN109739648B (en) Animation playing control method, device, equipment and storage medium
CN109672931B (en) Method and apparatus for processing video frames
JP4500610B2 (en) Video signal processing apparatus, memory control method, and program

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