CN113542802B - Video transition method and device - Google Patents

Video transition method and device Download PDF

Info

Publication number
CN113542802B
CN113542802B CN202110778013.1A CN202110778013A CN113542802B CN 113542802 B CN113542802 B CN 113542802B CN 202110778013 A CN202110778013 A CN 202110778013A CN 113542802 B CN113542802 B CN 113542802B
Authority
CN
China
Prior art keywords
video
transition
segment
video segment
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110778013.1A
Other languages
Chinese (zh)
Other versions
CN113542802A (en
Inventor
常炎隆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110778013.1A priority Critical patent/CN113542802B/en
Publication of CN113542802A publication Critical patent/CN113542802A/en
Application granted granted Critical
Publication of CN113542802B publication Critical patent/CN113542802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Television Systems (AREA)

Abstract

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 embodiment comprises the following steps: obtaining a source video clip of a source video, wherein the source video clip comprises at least one of: a first video segment before transition and a second video segment after transition; generating a transition video segment of the source video based on the source video segment; and generating the video subjected to the source video transition processing according to the transition video fragment. The method and the device can provide a new video transition mode, generate transition video clips through video segments and video frames, and avoid the problem that the total video duration is lost due to overlapping of video segments of two videos in the transition of related technologies.

Description

Video transition method and device
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 correlation. A paragraph is a basic structural form in a video, and the structural hierarchy of the video in the content can be represented by the paragraph. Just like the scenes in a drama, the individual paragraphs are concatenated together to form a complete video.
The Transition or Transition between paragraphs in a video may be referred to as Transition.
Disclosure of Invention
Provided are a video transition method, a video transition device, an electronic device and a storage medium.
According to a first aspect, there is provided a video transition method, comprising: obtaining a source video clip of a source video, wherein the source video clip comprises at least one of: a first video segment before transition and a second video segment after transition; generating a transition video segment of the source video based on the source video segment; and generating a video subjected to source video transition processing according to the transition video fragments.
According to a second aspect, there is provided a video transcoding device comprising: an acquisition unit configured to acquire a source video clip of a source video, wherein the source video clip includes at least one of: a first video segment before transition and a second video segment after transition; a transition determination unit configured to generate a transition video clip of the source video based on the source video clip; and the generating unit is configured to generate a video subjected to source video transition processing according to the transition video fragments.
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; 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 the embodiments of the video transition method.
According to a fourth aspect, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform a method according to any one of the embodiments of the video transition method.
According to a fifth aspect, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a method according to any of the embodiments of the video transition method.
According to the scheme, a new video transition mode can be provided, and a transition video clip is generated through video segments and video frames, so that the problem that in the related art, the transition is to combine two video segments to enable time of the two video segments to overlap, and further the total video duration loss is caused is avoided. Therefore, the method and the device can realize lossless transition, and maintain consistency of the video before and after transition.
Drawings
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 an exemplary system architecture diagram in which some embodiments of the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a method of video transcoding according to the present application;
FIG. 3 is a schematic diagram of one application scenario of a video transition method according to the present application;
FIG. 4A is a flow chart of yet another embodiment of a method of video transcoding according to the present application;
FIG. 4B is a schematic diagram of a transition video in a transition method of a video according to the present application;
FIG. 4C is a schematic diagram of a transition video in a transition method of a video according to the present application;
FIG. 5 is a schematic structural view of one embodiment of a video transition device according to the present application;
fig. 6 is a block diagram of an electronic device for implementing a method of video transcoding according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one 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, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of a video transcoding method or device of the present application may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as video-type applications, live applications, instant messaging tools, mailbox clients, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices with display screens, including but not limited to smartphones, tablets, electronic book readers, laptop and desktop computers, and the like. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., multiple software or software modules for providing distributed services) or as a single software or software module. The present invention 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 process the received data, such as the first video, the second video, etc., and feed back the 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, 103, and accordingly, the video transition device may be disposed in the server 105 or the terminal devices 101, 102, 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 of video transcoding 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 comprises at least one of the following: a first video segment before transition and a second video segment after transition.
In this embodiment, an execution body (for example, a server or a terminal device shown in fig. 1) on which the video transition method is executed 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 body 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 comprise 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 then performed within that single video.
The source video clip of the source video may include a first video segment, a second video frame, a second video segment and a first video frame, or the source video clip may include a first video segment, a second video frame, a second video segment and a first video frame.
Step 202, generating a transition video clip of the source video based on the source video clip.
In this embodiment, the executing body may generate the transition video segments of the first source video and the second source video based on the acquired video segments and video frames.
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 duration of the acquired video segment is the sum of the durations of the first video segment and the second video segment.
In practice, the execution subject described above may generate a transition video clip based on the acquired video segments and video frames in various ways. For example, the executing entity may input the determined video segments and video frames into a pre-trained model and obtain the transition video segments output from the model. The model may be used to output a transcoded video clip using the video segments and the video frames.
And 203, generating a video subjected to source video transition processing according to the transition video segments.
In this embodiment, the executing body may generate the video after the source video transition processing according to the transition video clip. Specifically, the generated video may include a transition video segment, and may further include a video segment other than the acquired video segment. If the acquired video segment is in the first source video, the video segments other than the acquired video segment are in the first source video. If the acquired video segment is in the second source video, the video segment other than the acquired video segment is in the second source video. If the acquired video segment has both the video segment in the first source video and the video segment in the second source video, the video segments other than the acquired video segment 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 generates the transition video segment through the video segment and the video frame, so that the problem that the total video duration loss is caused by combining two video segments to enable the time of the two video segments to overlap in the transition in the related technology is avoided. Therefore, the method and the device can realize lossless transition, and maintain consistency of the video before and after 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 body 301 acquires a source video clip 302 of a source video, where the source video clip includes at least one of the following: a first video segment before transition and a second video segment after transition. The execution body 301 generates a transition video clip 303 of the source video based on the source video clip 302. The execution body 301 generates a video 304 after the source video transition processing from the transition video clip 303.
With further reference to fig. 4A, a flow 400 of yet another embodiment of a method of video transcoding is illustrated. The process 400 includes the steps of:
step 401, obtaining a source video clip of a source video, wherein the source video clip comprises at least one of the following: a first video segment before transition and a second video segment after transition.
Step 402, generating a transition video clip by respectively image-combining video frames of a video segment in a source video clip with corresponding video frames in the source video clip.
In this embodiment, the execution body may generate the transition video segment by image-combining video frames of the video segment in the source video segment with video frames in the source video segment, respectively. Specifically, a video frame (target video frame) image-combined with a video frame of a video segment (target video segment) in a source video clip corresponds to the 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 a first source video and a second source video. The video frames in the diverted video segments include at least partial images of the video frames in the video segments and at least partial images of the video frames with which the images are combined.
Step 403, generating a video after the source video transition processing according to the transition video clip.
The playing speed and the playing duration of the transition video can be consistent with the acquired video segments.
The video frames in the transition video clip 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 video segment that is acquired including a video segment in the first source video, one of the video frames (the first frame) of the acquired video segment may occupy the entire video frame in the start frame played in the transition video segment. If there is a video segment that is acquired at the same time that includes a video segment in the second video, one of the video frames (the end frame) of the video segment may occupy the entire video frame in the last picture played in the transition video segment. Alternatively, each video frame of the transcoded video clip may include a partial image of the video frame in the video segment and a partial image of the video frame.
In practice, the video frames of the acquired video segments are presented in the frames of the transition video in the order of play in the video segments, i.e. dynamically, while the acquired video frames are stationary in the transition video segments.
The steps 401 and 403 are performed in the same manner as or similar to the steps 201 and 203, and are not described herein.
The embodiment can perform image combination on the video segment and the video frame, so that the image simultaneously comprises an image before transition and an image after transition.
In some optional implementations of this embodiment, the source video clip 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 diverted video segments comprise prior diverted video segments.
In these alternative implementations, the source video clip acquired by the executing body may include only the first video segment and the second video frame. The execution body may generate a first combined video frame from 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, the above-described execution subject generating a transition video clip may refer to generating a transition video clip that includes a preceding transition video segment.
These implementations can image-combine the video frames in the corresponding first video segment with the second video frames to obtain the prior transition video.
In some optional implementations of this embodiment, the source video clip 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 post-transition video segment from the second combined video frame; wherein the transition video segment comprises a post-transition video segment.
In these alternative implementations, the source video clip acquired by the executing body may include only the second video segment and the first video frame. The execution body may generate a second combined video frame from 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. Thus, the above-described execution subject generating a transition video clip may refer to generating a transition video clip included in a post-transition video clip.
These implementations can image-combine the video frames in the corresponding second video segment with the first video frames to obtain the post-transition video.
Alternatively, the source video clip may comprise: the video processing system comprises a first video segment, a second video frame, a first video frame and a second video segment. In this case, the execution subject may obtain not only the first combined video frame but also the second combined video frame, thereby obtaining the preceding transition video segment and the following transition video segment. Thus, the execution body can generate a transition video clip according to the preceding transition video segment and the following transition video segment. That is, the execution body may generate a transition video clip including a preceding transition video piece and a following transition video piece.
For example, the executing body may play a 9-minute video segment preceding the first source video with a total length of 10 minutes, and then play a 2-minute transition video segment. Finally, the second source video with the total length of 10 minutes is played for the following 9-minute video segment. 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 both participate in the transition, i.e. generate a transition video segment.
These alternative implementations may display images of both the first video segment and the second video segment simultaneously when displaying the transition image, thereby presenting a more comprehensive transition picture. Moreover, these alternative implementations may generate a transition video segment that includes two preceding and following phases, enabling a more accurate, seamless transition process.
Optionally, according to the playing sequence, the image proportion of the first combined video frame after the first combined video frame is smaller than the image proportion of the first combined video frame before the 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 order of play.
Specifically, during the playing process of the preceding transition video segment of the transition video segment, the proportion occupied by the first video segment becomes smaller gradually, and the proportion occupied by the first frame of the second video becomes larger gradually.
And according to the playing sequence, the image proportion of the second combined video frame after the second combined video frame is larger than the image proportion of the previous second combined video frame, wherein 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 playback of the post-transition video segment, the proportion of the tail frame of the first video becomes smaller and the proportion of the second video segment becomes larger.
In practice, the transition image may have a dividing line separating the combined video segments and video frames. With the playing of the transition video, the dividing line in the transition video image can move from right to left or from bottom to top. The partial image of the first video segment may be positioned on the left side or the upper side, and the partial image of the second video segment may be positioned on the right side or the lower side.
In these optional cases, the present embodiment may gradually shrink the image of the video before the transition during the transition, and gradually enlarge the image of the video after the transition, so that the transition into the image of the video after the transition may be better performed through the transition.
In some optional implementations of any of the embodiments of the present disclosure, the first video segment is an ending video segment before the transition, the second video frame is a first video frame after the transition, the first video frame is a last video frame before the transition, and the second video segment is a starting video segment after the transition, where duration of the first video segment is equal to duration of the second video segment.
In these alternative implementations, the executing entity may determine an ending video segment from the first source video as the first video segment and use a first frame from the second source video as the second video frame. In addition, the executing body may further use the tail frame in the first source video as the first video frame, and use the starting video segment of the second source video as the second video segment.
As shown in fig. 4B, a transition section generated from the end video segment before transition and the first frame of the video after transition is shown.
As shown in fig. 4C, a transition section generated from a video trailer before transition and a starting video segment after transition is shown.
The implementation methods can ensure that the transition time of the first video and the second video is more equal by determining video segments which participate in the transition with equal duration, so as to avoid abrupt transition effects.
With further reference to fig. 5, as an implementation of the method shown in the foregoing figures, the present application provides an embodiment of a video transcoding device, where the embodiment of the device corresponds to the embodiment of the method shown in fig. 2, and the embodiment of the device may further include the same or corresponding features or effects as the embodiment of the method shown in fig. 2, except for the features described below. The device can be applied to various electronic equipment.
As shown in fig. 5, the video transcoding device 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 clip of a source video, where the source video clip includes at least one of: a first video segment before transition and a second video segment after transition; a transition determination unit 502 configured to generate a transition video clip of the source video based on the source video clip; the generating unit 503 is configured to generate a video after the source video transition processing according to the transition video clip.
In this embodiment, the specific processing and the technical effects of the acquiring unit 501, the transition determining unit 502 and the generating unit 503 of the video transition device 500 may refer to the relevant descriptions of the steps 201, 202 and 203 in the corresponding embodiment of fig. 2, and are not repeated here.
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 in the following manner: and generating a transition video segment by respectively carrying out image combination on video frames of the video segment in the source video segment and corresponding video frames in the source video segment.
In some optional implementations of this embodiment, the first video segment is an ending video segment before the transition, the second video frame is a first video frame after the transition, the first video frame is a last video frame before the transition, and the second video segment is a starting video segment after the transition, where duration of the first video segment is equal to duration of the second video segment.
In some optional implementations of this embodiment, the source video clip includes: a first video segment and a second video frame; a transition determination unit further configured to perform generating a transition video clip by image combining video frames of the video segments in the source video clip with corresponding video frames in the source video clip, respectively, in the following manner: 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 diverted video segments comprise prior diverted video segments.
In some optional implementations of this embodiment, the source video clip includes: a first video frame and a second video segment; a transition determination unit further configured to perform generating a transition video clip by image combining video frames of the video segments in the source video clip with corresponding video frames in the source video clip, respectively, in the following manner: 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 post-transition video segment from 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 first combined video frame after the first combined video frame is smaller than the image proportion of the first combined video frame before the first combined video frame, where the image proportion is a picture proportion of the video frame of the first video segment in the first combined video frame image.
According to embodiments of the present application, there is also provided an electronic device, a readable storage medium and a computer program product.
As shown in fig. 6, a block diagram of an electronic device according to a video transition method according to an embodiment of the present application is shown. 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 telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 6, the electronic device includes: one or more processors 601, memory 602, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. 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 executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 601 is illustrated in fig. 6.
Memory 602 is a non-transitory computer-readable storage medium provided herein. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the video transcoding method provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the video transition method provided by the present application.
The memory 602 is used as a non-transitory computer readable storage medium, and may be used to store a non-transitory software program, a non-transitory computer executable program, and modules, such as program instructions/modules (e.g., the acquisition unit 501, the transition determination unit 502, and the generation unit 503 shown in fig. 5) corresponding to a video transition method in an embodiment of the present application. The processor 601 executes various functional applications of the server and data processing, i.e., implements the video transition method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 602.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created from use of the transition electronic device of the video, and the like. In addition, 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 may optionally include memory remotely located with respect to processor 601, which may be connected to the video's transition electronics via 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 video transition method may further include: an input device 603 and an output device 604. The processor 601, memory 602, input device 603 and output device 604 may be connected by a bus or otherwise, for example in fig. 6.
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's transition electronic device, such as a touch screen, keypad, mouse, trackpad, touchpad, pointer stick, one or more mouse buttons, trackball, joystick, and like input devices. The output means 604 may include a display device, auxiliary lighting means (e.g., LEDs), tactile feedback means (e.g., vibration motors), and the like. 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 may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. 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 pointing device (e.g., a mouse or 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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 a client and a server. The client and server are typically 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 that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service ("Virtual Private Server" or simply "VPS") are overcome. The server may also be a server of a distributed system or a server that incorporates a blockchain.
The flowcharts 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 involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware. The described units may also be provided in a processor, for example, described as: a processor includes an acquisition unit, a transition determination unit, and a generation unit. The names of these units do not constitute a limitation on the unit itself in some cases, and for example, the 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 that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted 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 clip of a source video, wherein the source video clip comprises at least one of: a first video segment before transition and a second video segment after transition; generating a transition video segment of the source video based on the source video segment; and generating a video subjected to source video transition processing according to the transition video fragments.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the invention referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other embodiments in which any combination of features described above or equivalents thereof is possible without departing from the spirit of the invention. Such as the above-described features and technical features having similar functions (but not limited to) disclosed in the present application are replaced with each other.

Claims (14)

1. A method of video transcoding, the transcoding being a loss-free transcoding of video duration, the method comprising:
obtaining a source video clip of a source video, wherein the source video clip comprises at least one of: the video processing method comprises the steps of converting a first video segment before conversion and a second video segment after conversion, wherein the first video segment is an ending video segment before conversion, the second video segment is a video head frame after conversion, the first video segment is a video tail frame before conversion, the second video segment is a starting video segment after conversion, and the duration of the first video segment is equal to that of the second video segment;
generating a transition video segment of the source video based on the source video segment, wherein the sum of the duration of the first video segment and the second video segment is equal to the duration of the transition video segment;
and generating the video subjected to the source video transition processing according to the transition video fragment.
2. The method of claim 1, wherein the generating a transition video segment of the source video based on the source video segment comprises:
and generating the transition video segment by respectively carrying out image combination on video frames of the video segment in the source video segment and corresponding video frames in the source video segment.
3. The method of claim 2, wherein the source video clip comprises: the first video segment and the second video frame;
the generating the transition video segment by respectively image-combining video frames of the video segment in the source video segment with corresponding video frames in the source video segment 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 diverted video segments comprise the prior diverted video segments.
4. A method according to claim 2 or 3, wherein the source video clip comprises: the first video frame and the second video segment;
the generating the transition video segment by respectively image-combining video frames of the video segment in the source video segment with corresponding video frames in the source video segment 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 post-transition video segment from the second combined video frame;
wherein the transition video segment comprises the post-transition video segment.
5. The method of claim 3, wherein,
according to the playing sequence, the image proportion of the first combined video frame after the first combined video frame is smaller than that of the first combined video frame before the 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.
6. The method of claim 4, wherein,
according to the playing sequence, the image proportion of the first combined video frame after the first combined video frame is smaller than that of the first combined video frame before the 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. A video transition device, the transition being a loss-free transition in video duration, the device comprising:
an acquisition unit configured to acquire a source video clip of a source video, wherein the source video clip includes at least one of: the video processing method comprises the steps of converting a first video segment before conversion and a second video segment after conversion, wherein the first video segment is an ending video segment before conversion, the second video segment is a video head frame after conversion, the first video segment is a video tail frame before conversion, and the second video segment is a starting video segment after conversion, and the duration of the first video segment is equal to that of the second video segment;
a transition determination unit configured to generate a transition video segment of the source video based on the source video segment, a sum of durations of the first video segment and the second video segment being equal to a duration of the transition video segment;
and the generation unit is configured to generate the video subjected to the source video transition processing according to the transition video fragments.
8. The apparatus of claim 7, wherein the transition determination unit is further configured to perform the generating the transition video segment of the source video based on the source video segment as follows:
and generating the transition video segment by respectively carrying out image combination on video frames of the video segment in the source video segment and corresponding video frames in the source video segment.
9. The apparatus of claim 8, wherein the source video clip comprises: the first video segment and the second video frame;
the transition determination unit is further configured to perform the generating the transition video clip by image combining video frames of the video segments in the source video clip with corresponding video frames in the source video clip, respectively, 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 diverted video segments comprise the prior diverted video segments.
10. The apparatus of claim 8 or 9, 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 the transition video clip by image combining video frames of the video segments in the source video clip with corresponding video frames in the source video clip, respectively, 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 post-transition video segment from the second combined video frame;
wherein the transition video segment comprises the post-transition video segment.
11. The apparatus of claim 9, wherein,
according to the playing sequence, the image proportion of the first combined video frame after the first combined video frame is smaller than that of the first combined video frame before the 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.
12. The apparatus of claim 10, wherein,
according to the playing sequence, the image proportion of the first combined video frame after the first combined video frame is smaller than that of the first combined video frame before the 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 liquid crystal display device comprises a liquid crystal display device,
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 storing computer instructions for causing the computer to perform the method of any one of claims 1-6.
CN202110778013.1A 2021-07-09 2021-07-09 Video transition method and device Active CN113542802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110778013.1A CN113542802B (en) 2021-07-09 2021-07-09 Video transition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110778013.1A CN113542802B (en) 2021-07-09 2021-07-09 Video transition method and device

Publications (2)

Publication Number Publication Date
CN113542802A CN113542802A (en) 2021-10-22
CN113542802B true CN113542802B (en) 2023-07-14

Family

ID=78098204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110778013.1A Active CN113542802B (en) 2021-07-09 2021-07-09 Video transition method and device

Country Status (1)

Country Link
CN (1) CN113542802B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114268741B (en) * 2022-02-24 2023-01-31 荣耀终端有限公司 Transition dynamic effect generation method, electronic device, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108495171A (en) * 2018-04-03 2018-09-04 优视科技有限公司 Method for processing video frequency and its device, storage medium, electronic product
CN110650376A (en) * 2019-06-18 2020-01-03 北京无限光场科技有限公司 Method and device for realizing transition animation during video playing, mobile terminal and storage medium
CN111107392A (en) * 2019-12-31 2020-05-05 北京百度网讯科技有限公司 Video processing method and device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144301A (en) * 2014-07-30 2014-11-12 厦门美图之家科技有限公司 Method for transition special effects on basis of mixed modes
CN105912981A (en) * 2016-03-31 2016-08-31 乐视控股(北京)有限公司 Video transition determination method and device
CN109451360B (en) * 2018-11-02 2021-03-05 北京亿幕信息技术有限公司 Video transition special effect method and engine
CN109788212A (en) * 2018-12-27 2019-05-21 北京奇艺世纪科技有限公司 A kind of processing method of segmenting video, device, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108495171A (en) * 2018-04-03 2018-09-04 优视科技有限公司 Method for processing video frequency and its device, storage medium, electronic product
WO2019192416A1 (en) * 2018-04-03 2019-10-10 阿里巴巴集团控股有限公司 Video processing method and device therefor, and storage medium and electronic product
CN110650376A (en) * 2019-06-18 2020-01-03 北京无限光场科技有限公司 Method and device for realizing transition animation during video playing, mobile terminal and storage medium
CN111107392A (en) * 2019-12-31 2020-05-05 北京百度网讯科技有限公司 Video processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN113542802A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
EP3902280A1 (en) Short video generation method and platform, electronic device, and storage medium
US11929097B2 (en) Method and apparatus of editing multimedia file, electronic device, and storage medium
CN111225236B (en) Method and device for generating video cover, electronic equipment and computer-readable storage medium
CN112584077B (en) Video frame interpolation method and device and electronic equipment
WO2021147414A1 (en) Video message generation method and apparatus, electronic device, and storage medium
CN111277861B (en) Method and device for extracting hot spot segments in video
JP7263660B2 (en) Video processing method, device, electronic device and storage medium
CN111935506B (en) Method and apparatus for determining repeating video frames
CN113542802B (en) Video transition method and device
CN114071190B (en) Cloud application video stream processing method, related device and computer program product
CN112988100A (en) Video playing method and device
CN111669647B (en) Real-time video processing method, device and equipment and storage medium
CN112435313A (en) Method and device for playing frame animation, electronic equipment and readable storage medium
CN113542888B (en) Video processing method and device, electronic equipment and storage medium
CN111524123B (en) Method and apparatus for processing image
CN111882483B (en) Video rendering method and device
CN112752323A (en) Method and device for changing hotspot access state
CN111694931A (en) Element acquisition method and device
CN111970559A (en) Video acquisition method and device, electronic equipment and storage medium
US20220329922A1 (en) Method and platform of generating a short video, electronic device, and storage medium
CN111935549B (en) Method and device for updating playing sequence
CN112988099A (en) Video display method and device
CN111726687B (en) Method and apparatus for generating display data
CN112507714B (en) Text segmentation method and device
CN113344623B (en) Information processing method, apparatus, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant