Video transition method and device

文档序号:142602 发布日期:2021-10-22 浏览:19次 中文

阅读说明:本技术 视频的转场方法和装置 (Video transition method and device ) 是由 常炎隆 于 2021-07-09 设计创作,主要内容包括:本公开提供了视频的转场方法和装置,涉及人工智能技术领域,进一步涉及云计算中的媒体云技术领域。具体实施方式包括:获取源视频的源视频片段,其中,所述源视频片段包括以下至少一项:转场前的第一视频段和转场后的第二视频帧,转场前的第一视频帧和转场后的第二视频段;基于所述源视频片段,生成所述源视频的转场视频片段;根据所述转场视频片段,生成所述源视频转场处理后的视频。本公开可以提供一种新的视频转场方式,通过视频段和视频帧,生成转场视频片段,避免了相关技术中转场是将两个视频的视频段进行重叠,导致总视频时长损失的问题。(The disclosure provides a video transition method and device, relates to the technical field of artificial intelligence, and further relates to the technical field of media cloud in cloud computing. The specific implementation mode comprises the following steps: obtaining a source video segment of a source video, wherein the source video segment comprises at least one of: a first video segment before transition, a second video frame after transition, a first video frame before transition and a second video segment after transition; generating a transition video clip of the source video based on the source video clip; and generating the video after the source video is transferred according to the transfer video clip. The method and the device can provide a new video transition mode, generate transition video clips through the video segments and the video frames, and avoid the problem that the transition in the related technology overlaps the video segments of two videos to cause the loss of the total video duration.)

1. A method of transitioning a video, the method comprising:

obtaining a source video segment of a source video, wherein the source video segment comprises at least one of: a first video segment before transition, a second video frame after transition, a first video frame before transition and a second video segment after transition;

generating a transition video clip of the source video based on the source video clip;

and generating the video after the source video is transferred according to the transfer video clip.

2. The method of claim 1, wherein said generating a transition video segment of the source video based on the source video segment comprises:

and generating the transition video clip by respectively carrying out image combination on the video frame of the video clip in the source video clip and the corresponding video frame in the source video clip.

3. The method of claim 1, wherein the first video segment is an end video segment before a transition, the second video frame is a beginning video frame after a transition, the first video frame is an end video frame before a transition, and the second video segment is a beginning video segment after a transition, wherein the first video segment and the second video segment are equal in duration.

4. The method of claim 2, wherein the source video segment comprises: the first video segment and the second video frame;

the generating the transition video clip by respectively image-combining the video frame of the video segment in the source video clip with the corresponding video frame in the source video clip includes:

respectively carrying out image combination on each video frame of the first video segment and the second video frame to obtain a first combined video frame;

generating a prior transition video segment from the first combined video frame;

wherein the transition video segment comprises the prior transition video segment.

5. The method of claim 2 or 4, wherein the source video segment comprises: the first video frame and the second video segment;

the generating the transition video clip by respectively image-combining the video frame of the video segment in the source video clip with the corresponding video frame in the source video clip includes:

respectively carrying out image combination on each video frame of the second video segment and the first video frame to obtain a second combined video frame;

generating a video segment in a late transition according to the second combined video frame;

wherein the transition video segment comprises the post-transition video segment.

6. The method of claim 4 or 5,

according to the playing sequence, the image proportion of the following first combined video frame is smaller than that of the preceding first combined video frame, and the image proportion is the picture proportion of the video frame of the first video segment in the first combined video frame image.

7. An apparatus for transitioning video, the apparatus comprising:

an obtaining unit configured to obtain a source video segment of a source video, wherein the source video segment comprises at least one of: a first video segment before transition, a second video frame after transition, a first video frame before transition and a second video segment after transition;

a transition determination unit configured to generate a transition video segment of the source video based on the source video segment;

and the generating unit is configured to generate the video after the source video transition processing according to the transition video clip.

8. The apparatus of claim 7, wherein the transition determination unit is further configured to perform the generating a transition video segment of the source video based on the source video segment as follows:

and generating the transition video clip by respectively carrying out image combination on the video frame of the video clip in the source video clip and the corresponding video frame in the source video clip.

9. The apparatus according to claim 7, wherein the first video segment is an end video segment before transition, the second video frame is a beginning video frame after transition, the first video frame is an end video frame before transition, and the second video segment is a beginning video segment after transition, wherein the first video segment and the second video segment have equal duration.

10. The apparatus of claim 8, wherein the source video segment comprises: the first video segment and the second video frame;

the transition determination unit is further configured to perform the generating of the transition video segment by respectively image-combining the video frames of the video segments in the source video segment with the corresponding video frames in the source video segment as follows:

respectively carrying out image combination on each video frame of the first video segment and the second video frame to obtain a first combined video frame;

generating a prior transition video segment from the first combined video frame;

wherein the transition video segment comprises the prior transition video segment.

11. The apparatus of claim 8 or 10, wherein the source video clip comprises: the first video frame and the second video segment;

the transition determination unit is further configured to perform the generating of the transition video segment by respectively image-combining the video frames of the video segments in the source video segment with the corresponding video frames in the source video segment as follows:

respectively carrying out image combination on each video frame of the second video segment and the first video frame to obtain a second combined video frame;

generating a video segment in a late transition according to the second combined video frame;

wherein the transition video segment comprises the post-transition video segment.

12. The apparatus of claim 10 or 11,

according to the playing sequence, the image proportion of the following first combined video frame is smaller than that of the preceding first combined video frame, and the image proportion is the picture proportion of the video frame of the first video segment in the first combined video frame image.

13. An electronic device, comprising:

at least one processor; and

a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,

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-6.

14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6.

15. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-6.

Technical Field

The disclosure relates to the technical field of artificial intelligence, and further relates to the technical field of media cloud in cloud computing, in particular to a video transition method and device.

Background

Each paragraph in a video has a single, relatively complete meaning. For example, a course of action may be represented, representing a relational relationship. The paragraphs are the basic structural form in the video, and the structural hierarchy of the video in the content can be expressed through the paragraphs. Just as with the scenes in dramas, chapters in novels, the individual segments are linked together to form a complete video.

Transitions or transitions between paragraphs in a video may be referred to as transitions.

Disclosure of Invention

A video transition method, apparatus, electronic device and storage medium are provided.

According to a first aspect, there is provided a method of transitioning a video, comprising: obtaining a source video segment of a source video, wherein the source video segment comprises at least one of: a first video segment before transition, a second video frame after transition, a first video frame before transition and a second video segment after transition; generating a transition video clip of the source video based on the source video clip; and generating a video after the source video is subjected to transition processing according to the transition video clip.

According to a second aspect, there is provided a video transition apparatus comprising: an obtaining unit configured to obtain a source video segment of a source video, wherein the source video segment includes at least one of: a first video segment before transition, a second video frame after transition, a first video frame before transition and a second video segment after transition; a transition determination unit configured to generate a transition video segment of the source video based on the source video segment; and the generating unit is configured to generate the video after the source video transition processing according to the transition video clip.

According to a third aspect, there is provided an 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 of the embodiments of the method of transitioning video.

According to a fourth aspect, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform a method according to any one of the embodiments of the transition method of video.

According to a fifth aspect, a computer program product is provided, comprising a computer program which, when executed by a processor, implements a method according to any of the embodiments in a method of transitioning a video.

According to the scheme of the application, a new video transition mode can be provided, the transition video clip is generated through the video segments and the video frames, and the problem that in the transition in the related technology, the two video segments are combined to enable the time of the two video segments to be overlapped, and further the total video duration is lost is solved. Therefore, the method and the device can realize lossless transition and keep the consistency of the video before and after the transition.

Drawings

Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:

FIG. 1 is an exemplary system architecture diagram to which some embodiments of the present application may be applied;

FIG. 2 is a flow diagram of one embodiment of a method for video transition according to the present application;

FIG. 3 is a schematic diagram of an application scenario of a video transition method according to the present application;

FIG. 4A is a flow diagram of yet another embodiment of a method for video transition according to the present application;

FIG. 4B is a schematic diagram of a transition video in a video transition method according to the present application;

FIG. 4C is a schematic diagram of transitioning a video in a method of transitioning a video according to the present application;

FIG. 5 is a schematic block diagram of one embodiment of a video transition apparatus according to the present application;

fig. 6 is a block diagram of an electronic device for implementing a video transition method according to an embodiment of the present application.

Detailed Description

The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.

Fig. 1 shows an exemplary system architecture 100 to which embodiments of the video transition method or video transition apparatus of the present application may be applied.

As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.

The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various communication client applications, such as video applications, live applications, instant messaging tools, mailbox clients, social platform software, and the like, may be installed on the terminal devices 101, 102, and 103.

Here, the terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.

The server 105 may be a server providing various services, such as a background server providing support for the terminal devices 101, 102, 103. The background server may analyze and perform other processing on the received data of the first video, the second video, and the like, and feed back a processing result (for example, a transition video between the first video and the second video) to the terminal device.

It should be noted that the video transition method provided in the embodiment of the present application may be executed by the server 105 or the terminal devices 101, 102, and 103, and accordingly, the video transition apparatus may be disposed in the server 105 or the terminal devices 101, 102, and 103.

It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.

With continued reference to fig. 2, a flow 200 of one embodiment of a method for video transition according to the present application is shown. The video transition method comprises the following steps:

step 201, obtaining a source video clip of a source video, wherein the source video clip includes at least one of the following: a first video segment before transition and a second video frame after transition, a first video frame before transition and a second video segment after transition.

In this embodiment, an execution subject (for example, a server or a terminal device shown in fig. 1) on which the video transition method operates may determine a video segment as a first video segment in a first source video before transition and determine a video frame as a second video frame in a second source video after transition. The execution subject may determine a video segment as the second video segment in the second source video, and determine a video frame as the first video frame in the first source video. The source video may include a first source video and a second source video, and the transition is between the first source video and the second source video. In some cases, the source video may also include only a single video, and the transition is made within that single video.

The source video segment of the source video may include the first video segment and the second video frame, and may also include the second video segment and the first video frame, or the source video segment may include the first video segment, the second video frame, the second video segment and the first video frame.

Step 202, based on the source video segment, a transition video segment of the source video is generated.

In this embodiment, the execution subject may generate transition video clips of the first source video and the second source video based on the acquired video segment and the acquired video frame.

The duration of the transition video segment is equal to the duration of the acquired video segment. That is, in the case where only one video segment (the first video segment or the second video segment) is acquired, the duration of the acquired video segment is the duration of the video segment. In the case where two video segments (a first video segment and a second video segment) are determined, the time length of the acquired video segment is the sum of the time lengths of the first video segment and the second video segment.

In practice, the execution body may generate the transition video clip based on the acquired video segment and video frame in various ways. For example, the execution body may input the determined video segment and video frame into a pre-trained model, and obtain a transition video segment output from the model. The model can be used to output transition video segments using video segments and video frames.

And step 203, generating a video after the source video is transferred according to the transferred video clip.

In this embodiment, the execution subject may generate a video after the source video transition processing according to the transition video clip. Specifically, the generated video may include transition video segments and may further include video segments other than the acquired video segments. If the acquired video segment is in the first source video, then video segments other than the acquired video segment are in the first source video. And if the acquired video segment is in the second source video, the video segments except the acquired video segment are in the second source video. If the acquired video segments have both the video segments in the first source video and the video segments in the second source video, the video segments other than the acquired video segments are the video segments in the first source video and the video segments in the second source video.

The method provided by the embodiment of the application can provide a new video transition mode, and the transition video clip is generated through the video segments and the video frames, so that the problem that the total video duration is lost due to the fact that the transition in the related technology combines the two video segments to enable the time of the two video segments to be overlapped is solved. Therefore, the method and the device can realize lossless transition and keep the consistency of the video before and after the transition.

With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the video transition method according to the present embodiment. In the application scenario of fig. 3, the executing entity 301 obtains a source video clip 302 of a source video, wherein the source video clip comprises at least one of: a first video segment before transition and a second video frame after transition, a first video frame before transition and a second video segment after transition. Execution principal 301 generates a transition video segment 303 of the source video based on source video segment 302. Execution agent 301 generates source video transition processed video 304 from transition video segment 303.

With further reference to fig. 4A, a flow 400 of yet another embodiment of a method for video transition is shown. The process 400 includes the following steps:

step 401, obtaining a source video segment of a source video, where the source video segment includes at least one of: a first video segment before transition and a second video frame after transition, a first video frame before transition and a second video segment after transition.

Step 402, generating a transition video segment by respectively image-combining the video frames of the video segments in the source video segment with the corresponding video frames in the source video segment.

In this embodiment, the execution subject may generate the transition video clip by image-combining the video frame of the video segment in the source video clip with the video frame in the source video clip, respectively. Specifically, a video frame (target video frame) image-combined with a video frame of a video segment (target video segment) in the source video clip corresponds to a video frame of the video segment. That is, the target video segment and the target video frame are in different videos, the different videos including the first source video and the second source video. The video frames in the transition video segment include at least partial images of the video frames in the video segment and at least partial images of the video frames with which the images are combined.

And step 403, generating a video after the source video transition processing according to the transition video clip.

The playing speed and the playing time length of the transition video can be consistent with the acquired video segment.

The video frames in the transition video segment include: at least a partial image of one of the video frames of the acquired video segment, and at least a partial image of the single video frame. In some cases, if there is a captured video segment that includes a video segment in the first source video, then one of the video frames (the first frame) of the captured video segment may occupy the entire video frame in the starting frame played in the transition video segment. If the co-existence captured video segment comprises a video segment in the second video, then one of the video frames (end frames) of the video segment can occupy the entire video frame in the last picture played in the transition video segment. Alternatively, each video frame of the transition video clip may include a partial image of a video frame in the video segment and a partial image of a video frame.

In practice, the video frames of the acquired video segment are presented in the order of play of the video segment in the frames of the transition video, i.e. dynamically, while the acquired video frames are still in the transition video segment.

The steps 401 and 403 are the same as or similar to the steps 201 and 203, and are not described herein again.

The embodiment can combine the video band and the video frame to make the picture contain the image before transition and the image after transition.

In some optional implementations of this embodiment, the source video segment includes: a first video segment and a second video frame; step 402 may include: respectively carrying out image combination on each video frame of the first video segment and the second video frame to obtain a first combined video frame; generating a prior transition video segment from the first combined video frame; wherein the transition video segment comprises a prior transition video segment.

In these alternative implementations, the source video segment that performs the subject capture may include only the first video segment and the second video frame. The execution body may generate a first combined video frame by using at least two video frames of the first video segment and the second video frame, respectively, to obtain a plurality of first combined video frames. These first combined video frames may constitute a prior transition video segment. Thus, performing the subject generation of a transition video segment as described above may refer to generating a transition video segment that includes a prior transition video segment.

These implementations can image combine the video frame in the corresponding first video segment and the second video frame to obtain the previous transition video.

In some optional implementations of this embodiment, the source video segment includes: a first video frame and a second video segment; step 402 may include: respectively carrying out image combination on each video frame of the second video segment and the first video frame to obtain a second combined video frame; generating a video segment in a late transition according to the second combined video frame; wherein the transition video segment comprises a post-transition video segment.

In these alternative implementations, the source video segment for which the subject capture is performed may include only the second video segment and the first video frame. The execution body may generate a second combined video frame by using at least two video frames of the second video segment and the first video frame, respectively, to obtain a plurality of second combined video frames. These second combined video frames may constitute a post-transition video segment. Accordingly, the performing of the body generation transition video clip described above may refer to generating a transition video clip including a post transition video clip.

These implementations can image-combine the video frame in the corresponding second video segment with the first video frame to obtain the late transition video.

Optionally, the source video clip may include: a first video segment, a second video frame, a first video frame, and a second video segment. In this case, the execution body may obtain not only the first combined video frame but also the second combined video frame, and further obtain the previous transition video segment and the next transition video segment. In this way, the execution body can generate transition video clips from a preceding transition video segment and a succeeding transition video segment. That is, the execution body may generate a transition video clip including a preceding transition video segment and a succeeding transition video segment.

For example, the execution body may play a first 9-minute video segment of a first source video with a total length of 10 minutes, and then play a transition video segment of 2 minutes. And finally playing the 9-minute video segment of the second source video with the total length of 10 minutes. The first video segment of the last minute of the first source video and the second video segment of the first minute of the second source video are both involved in the transition, that is, the transition video segment is generated.

These alternative implementations can present the images of both the first video segment and the second video segment simultaneously while presenting the transition image, thereby presenting a more comprehensive transition picture. Moreover, these alternative implementations can generate a transition video segment that includes two preceding and succeeding stages, enabling a more accurate and seamless transition process.

Optionally, in the playing order, the image proportion of the following first combined video frame is smaller than that of the preceding first combined video frame, and the image proportion is the picture proportion of the video frame of the first video segment in the first combined video frame image.

In these alternative implementations, the image proportion of the following frame in the first combined video frame is smaller than the image proportion of the preceding frame in the playing order.

Specifically, during the playing process of the previous transition video segment of the transition video segment, the proportion of the first video segment is gradually decreased, and the proportion of the first frame of the second video segment is gradually increased.

According to the playing sequence, the image proportion of the second subsequent combined video frame is larger than that of the first second previous combined video frame, and the image proportion is the image proportion of the video frame of the second video segment in the second combined video frame image. That is, during the playing process of the transition video segment, the ratio of the last frame of the first video gradually decreases, and the ratio of the second video segment gradually increases.

In practice, the transition picture may have a boundary separating the combined video segment and video frame. The boundary line in the transition video image can move from right to left or from bottom to top as the transition video is played. The partial image of the first video segment may be placed on the left or upper side and the partial image of the second video segment may be placed on the right or lower side.

In these optional cases, in the present embodiment, during transition, the image of the video before transition is gradually reduced, and the image of the video after transition is gradually increased, so that the transition to the image of the video after transition can be better performed through transition.

In some optional implementations of any of the embodiments of the present disclosure, the first video segment is an end video segment before transition, the second video frame is a first video frame after transition, the first video frame is a last video frame before transition, and the second video segment is a start video segment after transition, where time lengths of the first video segment and the second video segment are equal.

In these alternative implementations, the execution subject may determine an end video segment from the first source video as the first video segment and a first frame from the second source video as the second video frame. In addition, the execution subject may further use an end frame in the first source video as the first video frame, and use a start video segment of the second source video as the second video segment.

As shown in fig. 4B, the transition portion generated from the end video segment before the transition and the first frame of video after the transition is shown.

As shown in fig. 4C, the transition portion generated from the end frame of the video before the transition and the start video segment after the transition is shown.

The implementation modes can ensure that the transition time of the first video and the second video is more equal by determining the video segments which are in transition and have equal time length, thereby avoiding the abrupt transition effect.

With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present application provides an embodiment of a video transition apparatus, which corresponds to the embodiment of the method shown in fig. 2, and which may include the same or corresponding features or effects as the embodiment of the method shown in fig. 2, in addition to the features described below. The device can be applied to various electronic equipment.

As shown in fig. 5, the video transition apparatus 500 of the present embodiment includes: an acquisition unit 501, a transition determination unit 502, and a generation unit 503. Wherein, the obtaining unit 501 is configured to obtain a source video segment of a source video, wherein the source video segment includes at least one of the following: a first video segment before transition, a second video frame after transition, a first video frame before transition and a second video segment after transition; a transition determination unit 502 configured to generate a transition video segment of the source video based on the source video segment; a generating unit 503 configured to generate a source video transition processed video according to the transition video segment.

In this embodiment, specific processing of the obtaining unit 501, the transition determining unit 502, and the generating unit 503 of the video transition apparatus 500 and technical effects thereof can refer to related descriptions of step 201, step 202, and step 203 in the corresponding embodiment of fig. 2, which are not described herein again.

In some optional implementations of this embodiment, the transition determination unit is further configured to perform generating the transition video segment of the source video based on the source video segment as follows: and respectively carrying out image combination on the video frame of the video segment in the source video segment and the corresponding video frame in the source video segment to generate the transition video segment.

In some optional implementation manners of this embodiment, the first video segment is an end video segment before transition, the second video frame is a first video frame after transition, the first video frame is a last video frame before transition, and the second video segment is a start video segment after transition, where time lengths of the first video segment and the second video segment are equal.

In some optional implementations of this embodiment, the source video segment includes: a first video segment and a second video frame; a transition determination unit further configured to perform generating a transition video segment by respectively image-combining a video frame of a video segment in the source video segment with a corresponding video frame in the source video segment as follows: respectively carrying out image combination on each video frame of the first video segment and the second video frame to obtain a first combined video frame; generating a prior transition video segment from the first combined video frame; wherein the transition video segment comprises a prior transition video segment.

In some optional implementations of this embodiment, the source video segment includes: a first video frame and a second video segment; a transition determination unit further configured to perform generating a transition video segment by respectively image-combining a video frame of a video segment in the source video segment with a corresponding video frame in the source video segment as follows: respectively carrying out image combination on each video frame of the second video segment and the first video frame to obtain a second combined video frame; generating a video segment in a late transition according to the second combined video frame; wherein the transition video segment comprises a post-transition video segment.

In some optional implementations of this embodiment, according to the playing order, the image proportion of the following first combined video frame is smaller than that of the preceding first combined video frame, and the image proportion is a picture proportion of the video frame of the first video segment in the first combined video frame image.

There is also provided, in accordance with an embodiment of the present application, an electronic device, a readable storage medium, and a computer program product.

Fig. 6 is a block diagram of an electronic device for a video transition method according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.

As shown in fig. 6, the electronic apparatus includes: one or more processors 601, memory 602, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 6, one processor 601 is taken as an example.

The memory 602 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the video transition method provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the transition method of video provided by the present application.

The memory 602, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the video transition method in the embodiment of the present application (for example, the acquisition unit 501, the transition determination unit 502, and the generation unit 503 shown in fig. 5). The processor 601 executes various functional applications of the server and data processing by running non-transitory software programs, instructions, and modules stored in the memory 602, that is, implementing the video transition method in the above method embodiment.

The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of transition electronics of the video, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 602 optionally includes memory located remotely from processor 601, which may be connected to video transition electronics over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.

The electronic device of the transition method of the video may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected by a bus or other means, and fig. 6 illustrates the connection by a bus as an example.

The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the video transition electronics, such as input devices like a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer stick, one or more mouse buttons, a track ball, a joystick, etc. The output devices 604 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.

Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.

These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.

To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.

The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.

The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, 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.

The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a transition determination unit, and a generation unit. Where the names of these units do not in some cases constitute a limitation on the unit itself, for example, an acquisition unit may also be described as a "unit that acquires a source video clip of a source video".

As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: obtaining a source video segment of a source video, wherein the source video segment comprises at least one of: a first video segment before transition, a second video frame after transition, a first video frame before transition and a second video segment after transition; generating a transition video clip of the source video based on the source video clip; and generating a video after the source video is subjected to transition processing according to the transition video clip.

The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:直播内容处理方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类