CN117528177A - Method, device, equipment and computer medium for previewing clip video - Google Patents

Method, device, equipment and computer medium for previewing clip video Download PDF

Info

Publication number
CN117528177A
CN117528177A CN202311243561.XA CN202311243561A CN117528177A CN 117528177 A CN117528177 A CN 117528177A CN 202311243561 A CN202311243561 A CN 202311243561A CN 117528177 A CN117528177 A CN 117528177A
Authority
CN
China
Prior art keywords
video material
video
decoding
playing
decoder
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
CN202311243561.XA
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.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili 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 Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202311243561.XA priority Critical patent/CN117528177A/en
Publication of CN117528177A publication Critical patent/CN117528177A/en
Pending legal-status Critical Current

Links

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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • 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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip

Abstract

The application discloses a preview method, a device, equipment and a computer readable medium for editing video, wherein the application performs pre-decoding on a second video material by adopting a second decoder under the condition that a first decoder is adopted for decoding a currently played first video material by aiming at multi-video material mixed cutting operation, wherein the playing order of the second video material is behind the first video material, then the decoding result obtained by pre-decoding the second video material is stored in a preset buffer memory, and then the decoding result is read from the preset buffer memory and played in response to a playing instruction aiming at the second video material, so that before the decoding process of the video can be moved to the playing instruction by pre-decoding the second video material, the video can be quickly read from the buffer memory for playing after the playing instruction of the second video material is received, and the video playing efficiency after video switching in the video editing process can be effectively improved.

Description

Method, device, equipment and computer medium for previewing clip video
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer readable medium for previewing a video clip.
Background
This section is intended to provide a background or context for embodiments of the present application that are recited in the claims. The description herein is not to be taken as an admission of prior art as including in this section.
With the development of internet technology, digital media such as self-media are widely spread and used, and the demand for video clips is increasing.
In practical application, a user often needs to switch among a plurality of video materials in the process of editing video by using video editing software, in order to enable the user to preview the playing effect of the video after the switch in real time, the switched video needs to be played as soon as possible after the switch, but the video preview is blocked when the video editing software is switched, so that the picture cannot be updated on the screen in time.
In view of the foregoing, there is a need to provide a technical solution that can preview the video playback effect after switching in real time more efficiently.
Disclosure of Invention
Aspects of the present application provide a method, apparatus, device, and computer-readable storage medium for previewing a video clip, so as to more efficiently and rapidly preview a video play effect after video switching in a video clip process.
In one aspect of the present application, a method for previewing a video clip is provided, where the method includes:
for multi-video material mixing and cutting operation, under the condition that a first decoder is adopted to decode a first video material which is currently played, a second decoder is adopted to pre-decode a second video material, wherein the playing order of the second video material is behind the first video material;
storing a decoding result obtained by pre-decoding the second video material into a preset cache;
and responding to a playing instruction aiming at the second video material, reading the decoding result from the preset buffer memory and playing.
In another aspect of the present application, there is provided a preview apparatus for editing video, wherein the apparatus includes:
the pre-decoding module is used for pre-decoding a second video material by adopting a second decoder under the condition that a first decoder is adopted to decode a first video material which is currently played aiming at multi-video material mixing and cutting operation, wherein the playing order of the second video material is behind the first video material;
the buffer memory module is used for storing a decoding result obtained by pre-decoding the second video material into a preset buffer memory;
and the cache playing module is used for responding to the playing instruction aiming at the second video material, reading the decoding result from the preset cache and playing the decoding result.
In another aspect of the present application, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a preview method of editing video as described above.
In another aspect of the present application, a computer readable storage medium having stored thereon computer program instructions executable by a processor to implement a method of previewing a clip video as described above is provided.
In the scheme provided by the embodiment of the application, by performing the mixing operation on multiple video materials, under the condition that a first decoder is adopted for decoding a first video material which is currently played, a second decoder is adopted for pre-decoding a second video material, wherein the playing order of the second video material is behind the first video material, then the decoding result obtained by pre-decoding the second video material is stored in a preset buffer, and then, in response to a playing instruction for the second video material, the decoding result is read from the preset buffer and played, so that before the video decoding process is moved to the playing instruction by pre-decoding the second video material, the playing can be performed by fast reading from the buffer after the playing instruction of the second video material is received, and the video playing efficiency after video switching in the video editing process can be effectively improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings, in which:
fig. 1 is a flowchart illustrating a method for previewing a video clip according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an editing interface of video editing software according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a preview device for editing video according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an electronic device suitable for implementing aspects of embodiments of the present application;
the same or similar reference numbers in the drawings refer to the same or similar parts.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In a typical configuration of the present application, the terminals, the devices of the services network each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer-readable media include both permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer program instructions, data structures, modules of the program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device.
The embodiment of the application provides a video editing preview method, device, equipment and computer readable storage medium, which are used for more efficiently and rapidly previewing video playing effects after video switching in a video editing process, and by performing mixed cutting operation on multiple video materials, when a first decoder is adopted to decode a currently played first video material, a second decoder is adopted to pre-decode a second video material, wherein the playing order of the second video material is behind the first video material, then a decoding result obtained by pre-decoding the second video material is stored in a preset buffer, and then the decoding result is read from the preset buffer and played in response to a playing instruction for the second video material, so that the video playing efficiency after video switching in the video editing process can be effectively improved by rapidly reading and playing the second video material from the buffer after receiving the playing instruction of the second video material when the decoding process of the second video material is moved to the front of the playing instruction.
In a practical scenario, the execution subject of the method may be a user device, where the user device includes, but is not limited to, various terminal devices such as a computer, a mobile phone, a tablet computer, a smart watch, a bracelet, and the like.
Fig. 1 shows a process flow of a preview method of editing video provided in an embodiment of the present application, where the method at least includes the following processing steps:
step S101, for a multi-video material mixing operation, in the case that a first decoder is used for decoding a first video material currently played, a second decoder is used for pre-decoding a second video material, where a playing order of the second video material is behind the first video material.
It can be understood with reference to the editing interface schematic diagram of the video editing software shown in fig. 2, where the video editing software schematically shows panels such as a material library, a parameter editing area, a material editing area, and a preview area for a user to operate, where the material library is used for managing materials, the material editing area is used for performing editing operations such as cutting, overlaying, and converting video materials, the parameter editing area is used for editing properties and parameters of the materials, and the preview area is used for previewing the video materials in editing.
Referring to fig. 2, the multi-video-material mixing and clipping operation in the embodiment of the present application may refer to an operation of clipping segments from more than two video materials and forming a new video, for example, fig. 2 is an operation of clipping segments from a first video material, a second video material and a third video material respectively to form a new video, in order to facilitate understanding, in the figure, a light area in each video material is a clipping portion, a dark area is a clipping portion, and three dark areas in the video material are joined to form a new video.
Considering that the prior video editing software takes two sections of videos A and B as an example when processing the multi-video material mixed cutting operation, for example, a scene of the video B is inserted in the middle of the video A, when the 5 th second of the video A is switched to the 5 th second of the video B, the decoding is needed, the video B is needed to be input into a decoder for decoding from 0 second, the decoded data is discarded, only the data after the 5 th second is reserved, and as the decoding of the video B needs a certain time, the video B can not be timely played after being switched to the video B to cause clamping.
Step S102, storing the decoding result obtained by pre-decoding the second video material into a preset buffer.
The preset buffer can be a part of the memory so as to temporarily store the decoding result, and the setting of the preset buffer in the memory has the advantages that the memory is connected with the CPU at high speed, so that after receiving the playing instruction aiming at the second video material, the decoding result can be read and played more quickly in real time, and the user is prevented from being blocked.
Step S103, in response to the playing instruction for the second video material, reading the decoding result from the preset buffer and playing the decoding result.
The playing instruction for the second video material may be triggered by a user by clicking the second video material or after the user triggers the preview, and may be automatically triggered after the capturing portion of the first video material is played, which is not limited in this embodiment, and all the embodiments of the present application may be applied to the embodiments of the present application to achieve the purpose of the present application.
According to the previewing method of the video editing provided by the embodiment of the application, by performing mixed cutting operation on multiple video materials, under the condition that a first decoder is adopted for decoding a first video material which is played currently, a second decoder is adopted for pre-decoding a second video material, wherein the playing order of the second video material is behind the first video material, then the decoding result obtained by pre-decoding the second video material is stored in a preset buffer memory, and then, in response to a playing instruction for the second video material, the decoding result is read from the preset buffer memory and played, so that the video can be quickly read from the buffer memory for playing after the playing instruction of the second video material is received before the video decoding process is moved to the playing instruction, and the video playing efficiency after video switching in the video editing process can be effectively improved.
In some variations, the pre-decoding the second video material with a second decoder includes:
acquiring connection time information between the first video material and the second video material;
determining the starting playing time of the second video material according to the connection time information;
and pre-decoding the second video material by adopting a second decoder according to the starting playing time.
In the embodiment of the present application, as shown in fig. 2, the linking time information between the first video material and the second video material refers to time information corresponding to the total time axis of the editing interface, and the starting playing time of the second video material refers to the starting playing time inside the second video material, for example, the linking time information is 16 th seconds, where the starting playing time of the second video material is 4 th seconds.
According to the method and the device, the connection time information between the video materials can be accurately determined by using the total time axis, and the starting playing time of the second video material is determined accordingly, so that the pre-decoding is performed in a targeted mode, and the accuracy and the efficiency of the method and the device can be effectively improved.
Considering that, due to the wide application of video coding technologies (such as h.265, h.264, MPEG, etc.), the video material has a high probability of being compressed based on the video coding technology, and includes a large number of non-key frames, and the non-key frames record difference information between the non-key frames and the previous frames instead of full frame data, if decoding is started from the non-key frames, there is a problem that picture distortion or even decoding cannot be necessarily caused, for this case, in some modified embodiments, the pre-decoding the second video material with the second decoder according to the starting playing time includes:
for the part of the second video material which does not need to be played before the playing time, a second decoder is adopted to pre-decode the key frame;
and for the part to be played after the playing starting time in the second video material, adopting the second decoder to pre-decode all frames.
The part needing not to be played is the part needing to be cut off and needing not to be played, so that only key frames in the part needing not to be played are needed to be read for decoding, and on the basis of decoding the key frames of the part needing not to be played, all frames in the part needing to be played are decoded, so that smooth playing image quality can be obtained, and the problem that pictures are distorted and even cannot be decoded is avoided.
It is considered that if the second video material is larger, if all the pre-decoding may result in insufficient buffering, and therefore, in some modified embodiments, before the pre-decoding is performed on all frames by the second decoder for the portion to be played after the start playing time in the second video material, the method further includes:
and determining the part of the second video material with the appointed duration after the playing time is started as a part to be played.
When the second video material starts to be played, the decoder is restarted to decode the part after the appointed time length, so that smooth playing of the second video material can be ensured, wherein the appointed time length is required to be at least capable of ensuring that the decoding of the part after the appointed time length can be connected with the playing of the part of the appointed time length when the second video material is played, the problem of clamping is avoided, the time length value can be flexibly set according to actual requirements, and the embodiment of the application is not limited.
According to the embodiment, only a part of the second video material is needed to be pre-decoded, so that the buffer space can be effectively saved, and the utilization rate of the buffer resource is improved.
It should be noted that, for the second video material, there may be a section to be played before and after the section to be played, i.e. a section to be cut off, and in some modified embodiments, before the section to be played after the start playing time in the second video material, the method further includes:
and determining a part from the starting playing time to the ending playing time in the second video material as a part to be played, wherein the ending playing time is determined according to the connection time information between the second video material and a third video material, and the playing order of the third video material is behind the second video material.
By the embodiment, the section intercepted by the user can be set as the section to be played, and the time range of the section to be played can be rapidly determined according to the linking time information of the second video material and the third video material, and it should be noted that after the section to be played is determined by the embodiment, only the section with the designated duration after the start of the section to be played can be pre-decoded, and when the section with the designated duration starts to be played, the decoder is started to decode the section after the designated duration, without decoding all the section to be played.
When the second video material starts to play, it may be considered that the pre-decoding is continued on the subsequent video material to ensure continuous and smooth playing of all video materials, where the subsequent pre-decoding has at least two embodiments, for example, in some modified embodiments, the method further includes:
releasing the first decoder after the first video material is played;
and when the second video material is played, the first decoder is adopted to pre-decode a third video material, wherein the playing order of the third video material is behind the second video material.
Through this embodiment, can cyclic utilization first decoder and second decoder carry out the predecoding to all video materials in proper order, and its advantage only needs to set up two decoders and can satisfy the demand.
In yet other variations, the method further comprises:
and when the second video material is played, the third decoder is adopted to pre-decode the third video material, wherein the playing order of the third video material is behind the second video material.
According to the embodiment, a new third decoder can be set for pre-decoding, so that more than three decoders are utilized for performing pre-decoding operation, the scheme is suitable for the condition that the duration of video materials is short, the third decoder can be utilized for pre-decoding the third video materials without waiting for releasing the first decoder, and the smoothness of switching and playing of the video materials can be effectively improved.
In practical application, the method can be flexibly selected from the two pre-decoding schemes or combined implementation according to the duration to be played of the video material, for example, a mode of circularly pre-decoding by a first decoder and a second decoder is adopted in a conventional state, and when the condition that the duration of the subsequent video material is short is detected, a third decoder can be started to perform pre-decoding so as to ensure that the aim of the embodiment of the application is successfully achieved.
In addition, when implementing the method for previewing the video clip provided by the embodiment of the application in a mobile terminal such as a mobile phone, a plurality of decoder instances can be considered to be created to improve the decoding efficiency, the number of the specifically created decoder instances depends on the specific requirements of the application and the hardware specification and configuration of the device, and the requirements can be satisfied by using 2-3 decoders generally.
For ease of understanding, the method of previewing a video clip described above in this application will be further described with reference to a specific example.
In a specific example, the method for previewing the video clips provided by the embodiment of the present application to implement previewing of video materials in the video clipping process may specifically include the following steps:
step 1, when it is detected that a switch between at least two video materials (for example, video a and video b) is required in the process of clipping, two decoders are opened in advance: a decoder 1 and a decoder 2, wherein the decoder 1 is used for decoding a video a currently being played.
In an actual application scenario, if video materials added with a plurality of tracks are detected in the video editing process of a user, if the user clicks a preview button to trigger playing of the video for previewing, the video editing software is triggered to open the decoder 1 and the decoder 2.
Step 2, before the switching time point of the two video materials, the decoder 2 starts decoding the video b in advance, and buffers the decoding result.
When the decoder 2 decodes the video b, if the content of the video b for a period of time (for example, the first 5 seconds) is not needed, the non-key frames of 0-5 seconds in the video b can be discarded, and the non-key frames in the video b are not put into the decoder for decoding, and only the key frames (i frames) based on the first 5 seconds of the video b are needed for decoding, so that the decoding efficiency is improved.
And 3, when the switching time point is reached, reading the decoding result of the video b by the decoder 2, and switching the playing.
In an actual application scenario, when a hardware decoder is used, multiple decoder instances may be created to improve decoding efficiency. The number of decoder instances specifically created depends on the specific needs of the application and the hardware specifications and configuration of the device, and generally 2-3 decoders are used to meet the needs.
If switching between a plurality of videos is involved, two decoders may be used to switch 3 or more videos. However, the decoder is re-created and configured to shut down the previous decoder.
By the present embodiment, the following advantageous effects can also be obtained: through multiplexing the decoder and fast frame loss without playing part, the problem of video clamping caused by frequent switching between more than two sections of videos in the editing software can be effectively solved, pictures are updated to a screen in real time, the smoothness of the preview process is ensured, and the user demands are met.
Based on the same inventive concept, the embodiment of the application also provides a video editing preview device, and the corresponding method of the device can be the video editing preview method in the previous embodiment, and the principle of solving the problem is similar to that of the method. The preview device of the video clip provided in the embodiment of the present application may implement the above method for previewing the video clip, where the preview device of the video clip may be implemented by software, hardware, or a combination of software and hardware. For example, the previewing means of the video clip may comprise integrated or separate functional modules or units to perform the corresponding steps in the methods described above. Since the apparatus embodiments are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. The device embodiments described below are merely illustrative. Referring to fig. 3, the preview apparatus of the video clip may include:
the pre-decoding module 101 is configured to pre-decode a second video material with a second decoder for a multi-video material mixing operation when a first decoder is used for decoding a first video material that is currently played, where a playing order of the second video material is behind the first video material;
the buffer module 102 is configured to store a decoding result obtained by pre-decoding the second video material into a preset buffer;
and the buffer playing module 103 is configured to read the decoding result from the preset buffer and play the decoding result in response to a playing instruction for the second video material.
In some variant embodiments, the pre-decoding module 101 comprises:
the connection time information acquisition unit is used for acquiring connection time information between the first video material and the second video material;
the initial playing time acquisition unit is used for determining the initial playing time of the second video material according to the connection time information;
and the pre-decoding unit is used for pre-decoding the second video material by adopting a second decoder according to the starting playing time.
In some variant embodiments, the pre-decoding unit comprises:
a first decoding subunit, configured to pre-decode, with a second decoder, a key frame for a play-free portion of the second video material before the play-start time;
and the second decoding subunit is used for pre-decoding all frames by adopting the second decoder for the part to be played after the playing starting time in the second video material.
In some variant embodiments, the pre-decoding unit further comprises:
and the first to-be-played subunit is used for determining the part of the second video material with the designated duration after the playing time is started as a to-be-played part.
In some variant embodiments, the pre-decoding unit further comprises:
and the first to-be-played subunit is used for determining a part from the starting playing time to the ending playing time in the second video material as a to-be-played part, wherein the ending playing time is determined according to the connection time information between the second video material and a third video material, and the playing order of the third video material is behind the second video material.
In some variations, the apparatus further comprises:
the decoder releasing module is used for releasing the first decoder after the first video material is played;
and the cyclic pre-decoding module is used for pre-decoding a third video material by adopting the first decoder when the second video material is played, wherein the playing order of the third video material is behind the second video material.
In some variations, the apparatus further comprises:
and the multi-decoder pre-decoding module is used for pre-decoding a third video material by adopting the third decoder when the second video material is played, wherein the playing order of the third video material is behind the second video material.
The preview device of the video clip provided by the embodiment of the application has the same beneficial effects as the preview method of the video clip provided by the previous embodiment of the application because of the same inventive concept.
Based on the same inventive concept, the embodiment of the present application also provides an electronic device, where the corresponding method of the electronic device may be the preview method of the video clip in the foregoing embodiment, and the principle of solving the problem is similar to that of the method. The electronic device provided by the embodiment of the application comprises: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method and/or solution for previewing video clips of the various embodiments of the present application.
The electronic device may be a user device, or a device formed by integrating the user device and a network device through a network, or may also be an application running on the device, where the user device includes, but is not limited to, a computer, a mobile phone, a tablet computer, a smart watch, a bracelet, and other various terminal devices, and the network device includes, but is not limited to, a network host, a single network server, a plurality of network server sets, or a computer set based on cloud computing, where the network device is implemented, and may be used to implement a part of processing functions when setting an alarm clock. Here, the Cloud is composed of a large number of hosts or web servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, one virtual computer composed of a group of loosely coupled computer sets.
Fig. 4 shows a structure of an electronic device suitable for implementing the method and/or technical solution in the embodiments of the present application, the electronic device 1200 includes a central processing unit (CPU, central Processing Unit) 1201, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1202 or a program loaded from a storage section 1208 into a random access Memory (RAM, random Access Memory) 1203. In the RAM 1203, various programs and data required for the system operation are also stored. The CPU 1201, ROM 1202, and RAM 1203 are connected to each other through a bus 1204. An Input/Output (I/O) interface 1205 is also connected to the bus 1204.
The following components are connected to the I/O interface 1205: an input section 1206 including a keyboard, mouse, touch screen, microphone, infrared sensor, etc.; an output portion 1207 including a display such as a Cathode Ray Tube (CRT), a liquid crystal display (LCD, liquid Crystal Display), an LED display, an OLED display, or the like, and a speaker; a storage portion 1208 comprising one or more computer-readable media of hard disk, optical disk, magnetic disk, semiconductor memory, etc.; and a communication section 1209 including a network interface card such as a LAN (local area network ) card, a modem, or the like. The communication section 1209 performs communication processing via a network such as the internet.
In particular, the methods and/or embodiments of the present application may be implemented as a computer software program. For example, embodiments disclosed herein include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. The above-described functions defined in the method of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 1201.
Another embodiment of the present application also provides a computer readable storage medium having stored thereon computer program instructions executable by a processor to implement the method and/or the technical solution of any one or more embodiments of the present application described above.
In particular, the present embodiments may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowchart or block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of devices, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple elements or page components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the apparatus claims can also be implemented by means of one unit or means in software or hardware. The terms first, second, etc. are used to denote a name, but not any particular order.

Claims (10)

1. A method of previewing a video clip, wherein the method comprises:
for multi-video material mixing and cutting operation, under the condition that a first decoder is adopted to decode a first video material which is currently played, a second decoder is adopted to pre-decode a second video material, wherein the playing order of the second video material is behind the first video material;
storing a decoding result obtained by pre-decoding the second video material into a preset cache;
and responding to a playing instruction aiming at the second video material, reading the decoding result from the preset buffer memory and playing.
2. The method of previewing a video clip according to claim 1, wherein said pre-decoding the second video material with a second decoder comprises:
acquiring connection time information between the first video material and the second video material;
determining the starting playing time of the second video material according to the connection time information;
and pre-decoding the second video material by adopting a second decoder according to the starting playing time.
3. The method for previewing a video clip according to claim 2, wherein said pre-decoding said second video material with a second decoder according to said start play time comprises:
for the part of the second video material which does not need to be played before the playing time, a second decoder is adopted to pre-decode the key frame;
and for the part to be played after the playing starting time in the second video material, adopting the second decoder to pre-decode all frames.
4. A method of previewing a video clip according to claim 3, wherein before said pre-decoding all frames with said second decoder for a portion of said second video material to be played after said start play time, further comprising:
and determining the part of the second video material with the appointed duration after the playing time is started as a part to be played.
5. A method of previewing a video clip according to claim 3, wherein before said pre-decoding all frames with said second decoder for a portion of said second video material to be played after said start play time, further comprising:
and determining a part from the starting playing time to the ending playing time in the second video material as a part to be played, wherein the ending playing time is determined according to the connection time information between the second video material and a third video material, and the playing order of the third video material is behind the second video material.
6. The method of previewing a video clip according to claim 1, wherein the method further comprises:
releasing the first decoder after the first video material is played;
and when the second video material is played, the first decoder is adopted to pre-decode a third video material, wherein the playing order of the third video material is behind the second video material.
7. The method of previewing a video clip according to claim 1, wherein the method further comprises:
and when the second video material is played, the third decoder is adopted to pre-decode the third video material, wherein the playing order of the third video material is behind the second video material.
8. A preview apparatus for editing video, wherein the apparatus comprises:
the pre-decoding module is used for pre-decoding a second video material by adopting a second decoder under the condition that a first decoder is adopted to decode a first video material which is currently played aiming at multi-video material mixing and cutting operation, wherein the playing order of the second video material is behind the first video material;
the buffer memory module is used for storing a decoding result obtained by pre-decoding the second video material into a preset buffer memory;
and the cache playing module is used for responding to the playing instruction aiming at the second video material, reading the decoding result from the preset cache and playing the decoding result.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.
10. A computer readable medium having stored thereon computer program instructions executable by a processor to implement the method of any of claims 1 to 7.
CN202311243561.XA 2023-09-25 2023-09-25 Method, device, equipment and computer medium for previewing clip video Pending CN117528177A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311243561.XA CN117528177A (en) 2023-09-25 2023-09-25 Method, device, equipment and computer medium for previewing clip video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311243561.XA CN117528177A (en) 2023-09-25 2023-09-25 Method, device, equipment and computer medium for previewing clip video

Publications (1)

Publication Number Publication Date
CN117528177A true CN117528177A (en) 2024-02-06

Family

ID=89753789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311243561.XA Pending CN117528177A (en) 2023-09-25 2023-09-25 Method, device, equipment and computer medium for previewing clip video

Country Status (1)

Country Link
CN (1) CN117528177A (en)

Similar Documents

Publication Publication Date Title
US20180041796A1 (en) Method and device for displaying information on video image
RU2378765C1 (en) Device and method for receiving multiple streams in mobile transmission system
US10225613B2 (en) Method and apparatus for video playing processing and television
US7990386B2 (en) Method for correlating animation and video in a computer system
CN110381326B (en) Video system, processing method, device and computer readable medium
US10628019B2 (en) Electronic device and method for rendering 360-degree multimedia content
US10999643B2 (en) Subtitle switching method and display device
CN110990090A (en) Dynamic wallpaper display method, device and computer readable medium
WO2020155964A1 (en) Audio/video switching method and apparatus, and computer device and readable storage medium
CN110858827A (en) Broadcast starting acceleration method and device and computer readable storage medium
CN114071226B (en) Video preview graph generation method and device, storage medium and electronic equipment
CN109729429B (en) Video playing method, device, equipment and medium
CN112738418B (en) Video acquisition method and device and electronic equipment
CN111131848A (en) Video live broadcast data processing method, client and server
WO2016207735A1 (en) A system and methods thereof for auto-playing video content on mobile devices
CN112637661A (en) Video stream switching method and device, computer storage medium and electronic equipment
EP3748983A1 (en) Video playback method, terminal apparatus, and storage medium
CN112423140A (en) Video playing method and device, electronic equipment and storage medium
CN105187897A (en) Multi-segment media file cross-segment playing method and system
CN113873288A (en) Method and device for generating playback in live broadcast process
CN117528177A (en) Method, device, equipment and computer medium for previewing clip video
CN112533058A (en) Video processing method, device, equipment and computer readable storage medium
CN116166673A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN113542765B (en) Media data jump continuous playing method and display device
CN113411661B (en) Method, apparatus, device, storage medium and program product for recording information

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