CN116567293A - Video processing method and device and electronic equipment - Google Patents

Video processing method and device and electronic equipment Download PDF

Info

Publication number
CN116567293A
CN116567293A CN202310366695.4A CN202310366695A CN116567293A CN 116567293 A CN116567293 A CN 116567293A CN 202310366695 A CN202310366695 A CN 202310366695A CN 116567293 A CN116567293 A CN 116567293A
Authority
CN
China
Prior art keywords
video
combined
playing
frame
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310366695.4A
Other languages
Chinese (zh)
Inventor
邱美茜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Boguan Information Technology Co Ltd
Original Assignee
Guangzhou Boguan Information 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 Guangzhou Boguan Information Technology Co Ltd filed Critical Guangzhou Boguan Information Technology Co Ltd
Priority to CN202310366695.4A priority Critical patent/CN116567293A/en
Publication of CN116567293A publication Critical patent/CN116567293A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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/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
    • H04N21/23424Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
    • 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/27Server based end-user applications
    • H04N21/274Storing end-user multimedia data in response to end-user request, e.g. network recorder
    • H04N21/2743Video hosting of uploaded data from client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a video processing method, a video processing device and electronic equipment, wherein a first video and a second video are identified through a server; the first video is associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video; inserting the first video into a second designated video frame of the second video to obtain a second combined video; and sending the first combined video and the second combined video to the client, and replacing the first video with the first combined video and replacing the second video with the second combined video through the client. In the mode, through identifying and combining the associated first video and the associated second video, the first video and the second video are replaced by the corresponding combined video, and a viewer can watch two different and associated first videos and second videos through watching the combined video at the client side without switching back and forth, so that the operation complexity is reduced, the video watching efficiency is improved, and the user experience is further improved.

Description

Video processing method and device and electronic equipment
Technical Field
The present invention relates to the field of video processing technologies, and in particular, to a video processing method, a video processing device, and an electronic device.
Background
In current video platforms, different video producers typically initiate task challenges or invitations in the video content, such as invitations to other video producers that are aware of the task, and other video producers can accept the invitations or challenges, perform the task, make videos, and upload the videos so that viewers can see video links between the different video producers. However, in the related art, if an invited video producer uploads a challenge video, a viewer needs to exit from the video of the video producer initiating the invitation, then open the video of the invited video producer, and find a corresponding challenge video click view therefrom. The mode of switching different videos back and forth is complex in operation, and viewers cannot watch linked videos rapidly, so that the user feel worse.
Disclosure of Invention
In view of the above, the present invention is directed to a video processing method, apparatus and electronic device, by identifying and merging a first video and a second video associated with each other, and replacing the first video and the second video with corresponding merged videos, a viewer can switch between two different and associated videos in the merged videos without switching back and forth, thereby reducing operation complexity, improving video viewing efficiency, and further improving user experience.
In a first aspect, an embodiment of the present invention provides a video processing method, where the method is applied to a server, and the method includes: identifying a first video and a second video; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video; inserting the first video into a second designated video frame of the second video to obtain a second combined video; and sending the first combined video and the second combined video to the client, and replacing the first video with the first combined video and replacing the second video with the second combined video through the client.
In a second aspect, an embodiment of the present invention provides a video processing method, where the method is applied to a client, and the method includes: in response to receiving the first combined video and the second combined video sent by the server, replacing the first video with the first combined video, and replacing the second video with the second combined video; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; responding to a playing operation aiming at the first combined video, and playing the first combined video; in response to playing the first specified video frame, pausing playing the first combined video and displaying first prompt information; the first prompt message is used for indicating that the second video is about to be played; responding to a playing instruction of the second video, and continuing to play the second video after the first appointed video frame; wherein the first and second combined videos are determined by: identifying a first video and a second video through a server; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; and inserting the first video into a second designated video frame of the second video to obtain a second combined video frame.
In a third aspect, an embodiment of the present invention provides a video processing apparatus, where the apparatus is disposed at a server, and the apparatus includes: the video identification module is used for identifying the first video and the second video; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; the video merging module is used for inserting the second video into a first appointed video frame of the first video to obtain a first merged video; inserting the first video into a second designated video frame of the second video to obtain a second combined video; the video sending module is used for sending the first combined video and the second combined video to the client, and replacing the first video with the first combined video and replacing the second video with the second combined video through the client.
In a fourth aspect, an embodiment of the present invention provides a video processing apparatus, where the apparatus is disposed at a client, and the apparatus includes: the video replacing module is used for responding to the received first combined video and the received second combined video sent by the server side, replacing the first video with the first combined video and replacing the second video with the second combined video; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; the combined video playing module is used for responding to the playing operation aiming at the first combined video and playing the first combined video; the information prompt module is used for responding to the first appointed video frame, suspending the playing of the first combined video and displaying first prompt information; the first prompt message is used for indicating that the second video is about to be played; the second video playing module is used for responding to a playing instruction of the second video and continuing to play the second video after the first appointed video frame; wherein the first and second combined videos are determined by: identifying a first video and a second video through a server; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; and inserting the first video into a second designated video frame of the second video to obtain a second combined video frame.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, the memory storing computer executable instructions executable by the processor, the processor executing the computer executable instructions to implement the video processing method of any one of the first or second aspects.
In a sixth aspect, embodiments of the present invention provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the video processing method of any one of the first or second aspects.
The embodiment of the invention has the following beneficial effects:
the invention provides a video processing method, a video processing device and electronic equipment, wherein a first video and a second video are identified through a server; the first video is associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video; inserting the first video into a second designated video frame of the second video to obtain a second combined video; and sending the first combined video and the second combined video to the client, and replacing the first video with the first combined video and replacing the second video with the second combined video through the client. In the mode, through identifying and combining the associated first video and the associated second video, the first video and the second video are replaced by the corresponding combined video, and a viewer can watch two different and associated first videos and second videos through watching the combined video at the client side without switching back and forth, so that the operation complexity is reduced, the video watching efficiency is improved, and the user experience is further improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are some embodiments of the invention and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a video processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another video processing method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a first prompt message in a video playing interface according to an embodiment of the present invention;
Fig. 4 is a schematic diagram of a first prompt message in a video playing interface according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a first prompt message in a video playing interface according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a video processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another video processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In current video platforms, different video producers typically initiate task challenges or invitations in the video content, such as invitations to other video producers that are aware of the task, and other video producers can accept the invitations or challenges, perform the task, make videos, and upload the videos so that viewers can see video links between the different video producers. However, in the related art, if an invited video producer uploads a challenge video, a viewer needs to exit from the video of the video producer initiating the invitation, then open the video of the invited video producer, and find a corresponding challenge video click view therefrom. The mode of switching different videos back and forth is complex in operation, and viewers cannot watch linked videos rapidly, so that the user feel worse. Based on the above, the video processing method, the video processing device and the electronic equipment provided by the embodiment of the invention, the technology can be applied to equipment such as mobile phones, computers, notebooks, tablet computers, servers and the like.
For the sake of understanding the present embodiment, first, a video processing method disclosed in the present embodiment is described in detail, where an execution body of the video processing method in the present embodiment is a server, that is, the method is applied to a server. As shown in fig. 1, the method comprises the steps of:
step S102, identifying a first video and a second video; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video;
the first video includes content for initiating the target task, and the second video includes content for executing the target task. Specifically, the first video includes audio or text for initiating the target task, where the audio or text may or may not specify an account for executing the target task, and of course, the first video may also include a picture (video frame) for the initiator initiating the target task to execute the target task. The second video includes audio or text for executing the target task and a picture for executing the target task, where the audio or text may or may not specify an account for initiating the target task. The second video may or may not be uploaded by the account designated by the first video. The video content of the first video and the second video may be associated with audio or text in the video, or may be associated with behavior of a person or operation behavior in the video, etc.
In actual implementation, the video uploaded by each account can be identified by means of image identification, voice identification or text identification, if the video is identified to comprise the content for initiating the target task, the video can be determined to be the first video, and if the other videos are identified to comprise the content for executing the target task, the video is determined to be the second video. The second video is a video associated with a first video, and the first video may be one or more than one video.
Step S104, inserting the second video into a first appointed video frame of the first video to obtain a first combined video; inserting the first video into a second designated video frame of the second video to obtain a second combined video;
the first specified video frame may be the video frame with the largest frame number among the video frames of the first video, or may be the video frame corresponding to the first specified picture or the first specified audio. The first appointed picture can be a picture for completing a target task or an appointed target task or a picture comprising first appointed characters, and the first appointed characters can be characters for initiating the target task or characters for initiating the target task to an appointed account; the designated audio may be audio that initiates the target task or audio that initiates the target task to a designated account.
The second specified video frame may be the video frame with the smallest frame number or the largest frame number among the video frames of the second video, or may be the video frame corresponding to the second specified picture or the second specified audio. Wherein the second designated screen may be a target task execution screen or a screen including second designated text, which may be text that accepts a target task or text that accepts a challenge of an account that initiated the target task; the second specified audio may be audio that accepts the target task or audio that accepts a challenge referring to an account that initiated the target task.
The first and second combined videos may be the same or different. After the first combined video is obtained, the first video is played firstly, when the first appointed video frame is played, the second video is played again, and when the second video frame is played, the first video after the first appointed video frame is played again. After the second combined video is obtained, the second video is played firstly, when the second designated video frame is played, the first video is played again, and when the first video frame is played, the second video after the second designated video frame is played again.
It should be noted that there may be a plurality of the second videos, if there are a plurality of the second videos, the plurality of the second videos may be sequentially inserted into the first designated video frame of the first video to obtain the first combined video; and selecting a target second video from the plurality of second videos to insert into the first appointed video frame of the first video to obtain a first combined video. For each second video, the first video is inserted into the second designated video frame of the second video in turn, and for each second video, a corresponding second combined video is obtained.
Step S106, the first combined video and the second combined video are sent to the client, the first video is replaced by the first combined video, and the second video is replaced by the second combined video through the client.
Finally, in order to enable the viewer to view the second video associated with the first video without a video switching operation, the server sends the first combined video and the second combined video to the client so as to replace the first video with the first combined video and replace the second video with the second combined video through the client, so that the viewer can directly view the second video when viewing the first video and can directly view the first video when viewing the second video.
The embodiment of the invention provides a video processing method, which comprises the steps of identifying a first video and a second video through a server; the first video is associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video; inserting the first video into a second designated video frame of the second video to obtain a second combined video; and sending the first combined video and the second combined video to the client, and replacing the first video with the first combined video and replacing the second video with the second combined video through the client. In the mode, through identifying and combining the associated first video and the associated second video, the first video and the second video are replaced by the corresponding combined video, and a viewer can watch two different and associated first videos and second videos through watching the combined video at the client side without switching back and forth, so that the operation complexity is reduced, the video watching efficiency is improved, and the user experience is further improved.
The server side comprises a plurality of videos; the step of identifying the first video and the second video may be performed in one possible implementation manner: from the plurality of videos, a first video including content that initiates a target task is identified, and a second video including content that performs the target task is identified.
The target tasks may be various challenge tasks, game tasks, etc., such as bungee challenges, painting challenges, treble challenges, basket challenges, game clearance challenges, etc. The content of the target task is generally initiated to include not only the target task but also a target account, to which the invitation or challenge of the target task is initiated. For example, after the user completes the target task in the first video, in the last word "XXX you dare to challenge? "; or can say at the end of the video that "the people come to challenge the bar-! "
The second video of the content for performing the target task may be one or more.
The step of identifying a second video including content for performing the target task from the plurality of videos includes: identifying an initial video including content to perform a target task from a plurality of videos; if the number of the initial videos is multiple, and a target account is designated in the content initiating the target task, determining whether videos corresponding to the target account are included in the initial videos; if yes, determining the video corresponding to the target account as a second video; if not, determining the appointed initial video in the initial videos as the second video.
If the initial video does not include the video corresponding to the target account, that is, the target account does not accept the challenge, at this time, one video may be randomly selected from the videos to determine the video as the second video, or the video with the highest praise, the highest play amount, or the highest comment number may be determined as the second video.
The first video comprises content for initiating a target task; the second video comprises contents for executing the target task; inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; the method further comprises, prior to the step of inserting the first video into a second designated video frame of the second video to obtain a second combined video frame:
(1) Determining a first appointed video frame of a first video according to the content of the initiating target task;
specifically, identifying the audio for initiating the target task from the audio of the first video, and determining at least one video frame corresponding to the audio for initiating the target task; the last video frame of the at least one video frame is determined to be the first designated video frame.
(2) A second designated video frame of the second video is determined based on the content of the execution target task.
Specifically, identifying the audio for executing the target task from the audio of the second video, and determining at least one video frame corresponding to the audio for executing the target task; the last video frame of the at least one video frame is determined to be the second designated video frame.
In the mode, the corresponding videos are accessed at the video frames corresponding to the first video initiating task and the second video receiving task, so that the audience can watch the corresponding videos rapidly, and the watching experience of the user is further improved.
In order to improve the viewing immersion of a viewer in viewing the first video and the second video, inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; the method further comprises, prior to the step of inserting the first video into a second designated video frame of the second video to obtain a second combined video frame:
acquiring a first scene picture in a first video and a second scene picture in a second video; if the first scene picture and the second scene picture are the scene information under the same scene, combining the first scene picture and the second scene picture to obtain a target scene picture; and updating the first scene picture and the second scene picture to be target scene pictures.
The first scene screen is a screen of a scene (background) in which a first person in the first video is located when shooting. The second scene screen is a screen of a scene (background) in which a second person in the second video is located when the second video is captured. If the scene of the first person is the same as the scene of the second person, the pixels in the first scene picture and the second scene picture can be processed to obtain a target scene picture, and the first scene picture and the second scene picture are updated to be the same target scene picture. Specifically, the scenes can be combined according to similar color frames in each pixel and in a mode that a certain threshold value is exceeded, so that the audience perceives that the characters in the current first video and the second video are in the same scene in a visual level. In the mode, the scene pictures of the first video and the second video are combined, so that the audience visually perceives that the scenes of the first video and the second video are the same, and the watching experience and the immersion of the audience are further improved.
Further, after the step of sending the first combined video and the second combined video to the client, the method further includes: responding to the received first appointed barrage information for the first combined video sent by the first client, and sending the first appointed barrage information to the second client; if the first appointed barrage information is first video and second video in the first combined video, the received barrage information is responded by the second client to play the second combined video, and the first appointed barrage information is displayed in the second combined video; and if the first appointed barrage information is the first video or the second video in the first combined video, the first client responds to the first video or the second video in the second combined video to display the first appointed barrage information in the first video or the second video in the second combined video through the second client when the first client plays the first video or the second video in the first combined video.
After the step of sending the first combined video and the second combined video to the client, the method further comprises: responding to the received second specified barrage information for the second combined video sent by the first client, and sending the second specified barrage information to the second client; if the second specified barrage information is the first video and the second video in the second combined video, the received barrage information is displayed in the first combined video by the second client in response to the first combined video being played; and if the second designated barrage information is the first video or the second video in the second combined video, the first client responds to the first video or the second video in the first combined video by playing the second video, and the second designated barrage information is displayed in the first video or the second video in the first combined video.
Specifically, the viewer may select to view the video in the first combined video and the second combined video, may select to view the first video and the second video in the first combined video, or may select to view only the first video or the second video in the first combined video. For the first barrage information sent by the audience watching the first video and the second video in the first combined video, the audience watching the second combined video can watch the first barrage information when watching the video no matter how the audience selects the watching mode. For the first barrage information transmitted by the audience watching the first video in the first combined video, the audience watching the second combined video can only watch the first barrage information when selecting to watch the first video alone. For the first barrage information transmitted by the audience watching the second video in the first combined video, the audience watching the second combined video can only see the first barrage information when selecting to watch the second video alone.
Similarly, for the second barrage information sent by the audience watching the first video and the second video in the second combined video, the audience watching the first combined video can watch the first barrage information when watching the video no matter how the audience selecting the watching mode. For the second bullet screen information transmitted by the audience watching the first video in the second combined video, the audience watching the first combined video can only see the second bullet screen information when selecting to watch the first video alone. For the second bullet screen information transmitted by the audience watching the second video in the second combined video, the audience watching the first combined video can only see the second bullet screen information when selecting to watch the second video alone.
The embodiment of the invention provides a video processing method, which is applied to a client, as shown in fig. 2, and comprises the following steps:
step S202, in response to receiving the first combined video and the second combined video sent by the server, replacing the first video with the first combined video and replacing the second video with the second combined video; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video;
specifically, the first video is replaced by the first combined video in response to receiving the first combined video sent by the server, and the second video is replaced by the second combined video in response to receiving the second combined video sent by the server.
Step S204, responding to the playing operation aiming at the first combined video, and playing the first combined video;
however, in response to the play operation for the first video, the first combined video is played. The viewer does not perceive that the first video is updated before the start of the play, i.e. the viewer does not perceive that the second video is inserted in the first video before the start of the play.
Step S206, in response to playing to the first appointed video frame, pausing playing of the first combined video and displaying first prompt information; the first prompt message is used for indicating that the second video is about to be played;
The first video comprises content for initiating a target task, and the second video comprises content for executing the target task; if the account of the second video is the target account appointed by the first video, the first prompt information is also used for indicating that the target account has completed the target task; if the account for uploading the second video is not the target account designated by the first video, the first prompt information is also used for indicating that the target account does not complete the target task.
The first prompt information generally includes text information for initiating the target task in the first video, and if the first video designates the target account and the second video is uploaded by the target account, the first prompt information further includes prompt information for completing the target task by the target account and a selection control for whether to watch the second video. If the first video designates the target account, but the second video is not the video uploaded by the target account, the first prompt information further includes prompt information that the target account has not completed the target task, and a selection control for whether to watch other videos completing the target task.
If the first video does not specify the target account, the first prompt information generally includes prompt information of the account corresponding to the second video to complete the target task, and a selection control for whether to watch the second video. The first prompt information may also generally display a video frame of the second video. If a plurality of second videos are inserted into the first video, the first prompt information generally comprises prompt information for completing a target task for all accounts corresponding to the second videos, and a selection control for each second video.
For example, as shown in fig. 3, at the time when the first video is played to the first designated video frame, the playing is paused, and at this time, a first prompt message is displayed on the video screen, where the first prompt message includes text information for initiating the target task in the first video (i.e., "please under the XXX for challenges |)", in fig. 3, and prompt information for completing the target task in the target account (i.e., "XXX for challenges" in fig. 3), and a selection control for the second video (i.e., the second video thumbnail in fig. 3). And certainly, the method also comprises a rejection control, and if the rejection control is clicked, the second video is skipped, and the first video is continuously played.
For example, as shown in fig. 4, at the time when the first video is played to the first designated video frame, the playing is paused, and at this time, first prompt information is displayed on the video screen, where the first prompt information includes text information in the first video that initiates the target task (i.e. "please XXX under go challenge |") in fig. 4, and prompt information in the target account that does not complete the target task (i.e. "XXX does not complete challenge" in fig. 4), and a selection control for the second video (i.e. "watch other complete challenge video" and second video thumbnail in fig. 4).
Step S208, responding to the playing instruction of the second video, and continuing to play the second video after the first appointed video frame;
Wherein the first and second combined videos are determined by: identifying a first video and a second video through a server; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; and inserting the first video into a second designated video frame of the second video to obtain a second combined video frame.
In response to a triggering operation for selecting the control, or in response to a preset time (such as 5 seconds, 10 seconds, etc.) passing, continuing to play the second video after the first specified video frame; and in the preset time, the triggering operation is not performed. The first prompt message generally further includes a countdown for playing the second video, for example, a text message of "play the second video after 5 seconds", and further includes a 5-second countdown identifier. As illustrated by way of example in fig. 5.
The invention provides a video processing method, which comprises the steps that a client side responds to a first combined video and a second combined video sent by a server side, the first video is replaced by the first combined video, and the second video is replaced by the second combined video; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; responding to a playing operation aiming at the first combined video, and playing the first combined video; in response to playing the first specified video frame, pausing playing the first combined video and displaying first prompt information; the first prompt message is used for indicating that the second video is about to be played; responding to a playing instruction of the second video, and continuing to play the second video after the first appointed video frame; wherein the first and second combined videos are determined by: identifying a first video and a second video through a server; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; and inserting the first video into a second designated video frame of the second video to obtain a second combined video frame. In the mode, through identifying and combining the associated first video and the associated second video, the first video and the second video are replaced by the corresponding first combined video and the corresponding second combined video, and a viewer can watch two different and associated first videos and second videos through watching the first combined video or the second combined video at the client side without switching back and forth, so that the operation complexity is reduced, the video watching efficiency is improved, and the user experience is further improved.
After the step of playing the first combined video in response to the playing operation for the first combined video, the method further includes:
responding to a playing instruction of a first video in the first combined video, and playing the first video;
and playing the second video in response to a playing instruction of the second video in the first combined video.
After the step of replacing the first video with the first combined video and replacing the second video with the second combined video in response to receiving the first combined video and the second combined video sent by the server, the method further includes: playing the second combined video in response to the playing operation aiming at the second combined video; in response to playing the second designated video frame, pausing playing the second combined video and displaying second prompt information; the second prompt message is used for indicating that the first video is about to be played; and responding to the playing instruction of the first video, and continuing to play the first video after the second designated video frame.
After the step of playing the second combined video, the method further includes:
responding to a playing instruction of the first video in the second combined video, and playing the first video;
and responding to a playing instruction of the second video in the second combined video, and playing the second video.
That is, when playing the first combined video, the viewer may also choose to see only the first video or only the second video, since the first combined video includes two different first videos and second videos. Similarly, when playing the second combined video, the viewer may also choose to see only the first video or only the second video, since the second combined video includes two different first and second videos.
In one possible implementation, the playing progress bar of the first combined video includes a first identifier and a second identifier, where the first identifier is used to indicate the first video, and the second identifier is used to indicate the second video. After playing the first combined video in response to the play operation for the first combined video, jumping to play the first video in response to the trigger operation for the first identifier. And responding to the triggering operation aiming at the second identification, and jumping to playing the second video.
Likewise, the playing progress bar of the second combined video comprises a third identifier and a fourth identifier, wherein the third identifier is used for indicating the first video, and the fourth identifier is used for indicating the second video. After playing the second combined video in response to the play operation for the second combined video, jumping to play the first video in response to the trigger operation for the third identifier. And responding to the triggering operation aiming at the fourth identification, and jumping to play the second video.
The method further comprises the following steps: responding to the first video and the second video in the first combined video, and aiming at the uploading operation of the first target barrage information, displaying the first target barrage information in the first combined video; and in response to playing the second combined video, displaying the first target barrage information in the second combined video.
The method further comprises the following steps: responding to the first video or the second video in the first combined video, and aiming at the uploading operation of the first target barrage information, displaying the first target barrage information in the first video or the second video in the first combined video; in response to playing the first video or the second video in the second combined video, first target barrage information is presented in the first video or the second video in the second combined video.
The method further comprises the following steps: responding to the first video and the second video in the second combined video, and aiming at uploading operation of second target barrage information, displaying the second target barrage information in the second combined video; and in response to playing the first combined video, displaying the first target barrage information in the first combined video.
The method further comprises the following steps: responding to the first video or the second video in the second combined video, and aiming at the uploading operation of the second target barrage information, displaying the first target barrage information in the first video or the second video in the second combined video; in response to playing the first video or the second video in the first combined video, second target barrage information is presented in the first video or the second video in the first combined video.
Because the audience can select to watch the videos in the first combined video and the second combined video, the audience can select to watch the first video and the second video in the first combined video, and can also select to watch only the first video or the second video in the first combined video. For the first barrage information sent by the audience watching the first video and the second video in the first combined video, the audience watching the second combined video can watch the first barrage information when watching the video no matter how the audience selects the watching mode. For the first barrage information transmitted by the audience watching the first video in the first combined video, the audience watching the second combined video can only watch the first barrage information when selecting to watch the first video alone. For the first barrage information transmitted by the audience watching the second video in the first combined video, the audience watching the second combined video can only see the first barrage information when selecting to watch the second video alone.
Similarly, for the second barrage information sent by the audience watching the first video and the second video in the second combined video, the audience watching the first combined video can watch the first barrage information when watching the video no matter how the audience selecting the watching mode. For the second bullet screen information transmitted by the audience watching the first video in the second combined video, the audience watching the first combined video can only see the second bullet screen information when selecting to watch the first video alone. For the second bullet screen information transmitted by the audience watching the second video in the second combined video, the audience watching the first combined video can only see the second bullet screen information when selecting to watch the second video alone.
Corresponding to the above method embodiment, an embodiment of the present invention provides a video processing apparatus, where the apparatus is disposed at a server, as shown in fig. 6, and the apparatus includes:
a video recognition module 61 for recognizing the first video and the second video; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video;
the video merging module 62 is configured to insert the second video into a first designated video frame of the first video to obtain a first merged video; inserting the first video into a second designated video frame of the second video to obtain a second combined video;
the video sending module 63 is configured to send the first combined video and the second combined video to the client, and replace the first video with the first combined video and replace the second video with the second combined video through the client.
In the mode, through identifying and combining the associated first video and the associated second video, the first video and the second video are replaced by the corresponding combined video, and a viewer can watch two different and associated first videos and second videos through watching the combined video at the client side without switching back and forth, so that the operation complexity is reduced, the video watching efficiency is improved, and the user experience is further improved.
The server side comprises a plurality of videos; the video identification module is further used for: from the plurality of videos, a first video including content that initiates a target task is identified, and a second video including content that performs the target task is identified.
The video identification module is further used for: identifying an initial video including content to perform a target task from a plurality of videos; if the number of the initial videos is multiple, and a target account is designated in the content initiating the target task, determining whether videos corresponding to the target account are included in the initial videos; if yes, determining the video corresponding to the target account as a second video; if not, determining the appointed initial video in the initial videos as the second video.
The first video comprises content for initiating a target task; the second video comprises contents for executing the target task; the apparatus further comprises a designated video frame determination module configured to: determining a first appointed video frame of a first video according to the content of the initiating target task; a second designated video frame of the second video is determined based on the content of the execution target task.
The above specified video frame determination module is further configured to: identifying the audio for initiating the target task from the audio of the first video, and determining at least one video frame corresponding to the audio for initiating the target task; the last video frame of the at least one video frame is determined to be the first designated video frame.
The above specified video frame determination module is further configured to: identifying the audio for executing the target task from the audio of the second video, and determining at least one video frame corresponding to the audio for executing the target task; the last video frame of the at least one video frame is determined to be the second designated video frame.
The device also comprises a scene picture updating module for: acquiring a first scene picture in a first video and a second scene picture in a second video; if the first scene picture and the second scene picture are the scene information under the same scene, combining the first scene picture and the second scene picture to obtain a target scene picture; and updating the first scene picture and the second scene picture to be target scene pictures.
The device further comprises a first appointed barrage information sending module, which is used for: responding to the received first appointed barrage information for the first combined video sent by the first client, and sending the first appointed barrage information to the second client; if the first appointed barrage information is first video and second video in the first combined video, the received barrage information is responded by the second client to play the second combined video, and the first appointed barrage information is displayed in the second combined video; and if the first appointed barrage information is the first video or the second video in the first combined video, the first client responds to the first video or the second video in the second combined video to display the first appointed barrage information in the first video or the second video in the second combined video through the second client when the first client plays the first video or the second video in the first combined video.
The device further comprises a second designated barrage information sending module, which is used for: responding to the received second specified barrage information for the second combined video sent by the first client, and sending the second specified barrage information to the second client; if the second specified barrage information is the first video and the second video in the second combined video, the received barrage information is displayed in the first combined video by the second client in response to the first combined video being played; and if the second designated barrage information is the first video or the second video in the second combined video, the first client responds to the first video or the second video in the first combined video by playing the second video, and the second designated barrage information is displayed in the first video or the second video in the first combined video.
The video processing device provided by the embodiment of the invention has the same technical characteristics as the video processing method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
Corresponding to the above method embodiment, an embodiment of the present invention provides a video processing apparatus, where the apparatus is disposed at a client, as shown in fig. 7, and the apparatus includes:
The video replacing module 71 is configured to replace the first video with the first combined video and replace the second video with the second combined video in response to receiving the first combined video and the second combined video sent by the server; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video;
a first combined video playing module 72, configured to play the first combined video in response to a playing operation for the first combined video;
an information prompt module 73, configured to pause playing the first combined video and display first prompt information in response to playing the first specified video frame; the first prompt message is used for indicating that the second video is about to be played;
a second video playing module 74, configured to respond to a playing instruction of the second video, and continue playing the second video after the first specified video frame; wherein the first and second combined videos are determined by: identifying a first video and a second video through a server; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; and inserting the first video into a second designated video frame of the second video to obtain a second combined video frame.
In the mode, through identifying and combining the associated first video and the associated second video, the first video and the second video are replaced by the corresponding first combined video and the corresponding second combined video, and a viewer can watch two different and associated first videos and second videos through watching the first combined video or the second combined video at the client side without switching back and forth, so that the operation complexity is reduced, the video watching efficiency is improved, and the user experience is further improved.
The first video comprises content for initiating a target task, and the second video comprises content for executing the target task; if the account of the second video is the target account appointed by the first video, the first prompt information is also used for indicating that the target account has completed the target task; if the account for uploading the second video is not the target account designated by the first video, the first prompt information is also used for indicating that the target account does not complete the target task.
The first combined video playing module is further configured to: responding to a playing instruction of a first video in the first combined video, and playing the first video; and playing the second video in response to a playing instruction of the second video in the first combined video.
The device further comprises a second combined video playing module, which is used for: playing the second combined video in response to the playing operation aiming at the second combined video; in response to playing the second designated video frame, pausing playing the second combined video and displaying second prompt information; the second prompt message is used for indicating that the first video is about to be played; and responding to the playing instruction of the first video, and continuing to play the first video after the second designated video frame.
The second combined video playing module is further configured to: responding to a playing instruction of the first video in the second combined video, and playing the first video; and responding to a playing instruction of the second video in the second combined video, and playing the second video.
The device further comprises a first target barrage information first display module for: responding to the first video and the second video in the first combined video, and aiming at the uploading operation of the first target barrage information, displaying the first target barrage information in the first combined video; and in response to playing the second combined video, displaying the first target barrage information in the second combined video.
The device further comprises a first target barrage information second display module, wherein the first target barrage information second display module is used for: responding to the first video or the second video in the first combined video, and aiming at the uploading operation of the first target barrage information, displaying the first target barrage information in the first video or the second video in the first combined video; in response to playing the first video or the second video in the second combined video, first target barrage information is presented in the first video or the second video in the second combined video.
The device further comprises a second target barrage information first display module, wherein the second target barrage information first display module is used for: responding to the first video and the second video in the second combined video, and aiming at uploading operation of second target barrage information, displaying the second target barrage information in the second combined video; and in response to playing the first combined video, displaying the first target barrage information in the first combined video.
The device further comprises a second target barrage information second display module, wherein the second target barrage information second display module is used for: responding to the first video or the second video in the second combined video, and aiming at the uploading operation of the second target barrage information, displaying the first target barrage information in the first video or the second video in the second combined video; in response to playing the first video or the second video in the first combined video, second target barrage information is presented in the first video or the second video in the first combined video.
The video processing device provided by the embodiment of the invention has the same technical characteristics as the video processing method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The present embodiment also provides an electronic device including a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the video processing method described above. The electronic device may be a server or a terminal device.
Referring to fig. 8, the electronic device includes a processor 100 and a memory 101, the memory 101 storing machine executable instructions that can be executed by the processor 100, the processor 100 executing the machine executable instructions to implement the video processing method described above.
Further, the electronic device shown in fig. 8 further includes a bus 102 and a communication interface 103, and the processor 100, the communication interface 103, and the memory 101 are connected through the bus 102.
The memory 101 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 103 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 102 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 8, but not only one bus or type of bus.
The processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 100 or by instructions in the form of software. The processor 100 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and, in combination with its hardware, performs the steps of the method of the previous embodiment.
The processor in the electronic device may implement the following operations in the video processing method by executing machine executable instructions:
the server is taken as an execution main body:
identifying a first video and a second video; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video; inserting the first video into a second designated video frame of the second video to obtain a second combined video; and sending the first combined video and the second combined video to the client, and replacing the first video with the first combined video and replacing the second video with the second combined video through the client.
The server side comprises a plurality of videos; a step of identifying a first video and a second video, comprising: from the plurality of videos, a first video including content that initiates a target task is identified, and a second video including content that performs the target task is identified.
The step of identifying a second video including content for performing a target task from the plurality of videos includes: identifying an initial video including content to perform a target task from a plurality of videos; if the number of the initial videos is multiple, and a target account is designated in the content initiating the target task, determining whether videos corresponding to the target account are included in the initial videos; if yes, determining the video corresponding to the target account as a second video; if not, determining the appointed initial video in the initial videos as the second video.
The first video comprises content for initiating a target task; the second video comprises contents for executing the target task; inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; the method further comprises, prior to the step of inserting the first video into a second designated video frame of the second video to obtain a second combined video frame: determining a first appointed video frame of a first video according to the content of the initiating target task; a second designated video frame of the second video is determined based on the content of the execution target task.
The step of determining the first designated video frame of the first video according to the content of the initiating target task includes: identifying the audio for initiating the target task from the audio of the first video, and determining at least one video frame corresponding to the audio for initiating the target task; the last video frame of the at least one video frame is determined to be the first designated video frame.
The step of determining the second designated video frame of the second video according to the content of the execution target task includes: identifying the audio for executing the target task from the audio of the second video, and determining at least one video frame corresponding to the audio for executing the target task; the last video frame of the at least one video frame is determined to be the second designated video frame.
Inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; the method further comprises, prior to the step of inserting the first video into a second designated video frame of the second video to obtain a second combined video frame: acquiring a first scene picture in a first video and a second scene picture in a second video; if the first scene picture and the second scene picture are the scene information under the same scene, combining the first scene picture and the second scene picture to obtain a target scene picture; and updating the first scene picture and the second scene picture to be target scene pictures.
After the step of sending the first and second combined videos to the client, the method further comprises: responding to the received first appointed barrage information for the first combined video sent by the first client, and sending the first appointed barrage information to the second client; if the first appointed barrage information is first video and second video in the first combined video, the received barrage information is responded by the second client to play the second combined video, and the first appointed barrage information is displayed in the second combined video; and if the first appointed barrage information is the first video or the second video in the first combined video, the first client responds to the first video or the second video in the second combined video to display the first appointed barrage information in the first video or the second video in the second combined video through the second client when the first client plays the first video or the second video in the first combined video.
After the step of sending the first and second combined videos to the client, the method further comprises: responding to the received second specified barrage information for the second combined video sent by the first client, and sending the second specified barrage information to the second client; if the second specified barrage information is the first video and the second video in the second combined video, the received barrage information is displayed in the first combined video by the second client in response to the first combined video being played; and if the second designated barrage information is the first video or the second video in the second combined video, the first client responds to the first video or the second video in the first combined video by playing the second video, and the second designated barrage information is displayed in the first video or the second video in the first combined video.
Taking a client as an execution main body:
in response to receiving the first combined video and the second combined video sent by the server, replacing the first video with the first combined video, and replacing the second video with the second combined video; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; responding to a playing operation aiming at the first combined video, and playing the first combined video; in response to playing the first specified video frame, pausing playing the first combined video and displaying first prompt information; the first prompt message is used for indicating that the second video is about to be played; responding to a playing instruction of the second video, and continuing to play the second video after the first appointed video frame; wherein the first and second combined videos are determined by: identifying a first video and a second video through a server; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; and inserting the first video into a second designated video frame of the second video to obtain a second combined video frame.
The first video comprises content for initiating a target task, and the second video comprises content for executing the target task; if the account of the second video is the target account appointed by the first video, the first prompt information is also used for indicating that the target account has completed the target task; if the account for uploading the second video is not the target account designated by the first video, the first prompt information is also used for indicating that the target account does not complete the target task.
After the step of playing the first combined video in response to the playing operation for the first combined video, the method further includes: responding to a playing instruction of a first video in the first combined video, and playing the first video; and playing the second video in response to a playing instruction of the second video in the first combined video.
After the step of replacing the first video with the first combined video and replacing the second video with the second combined video in response to receiving the first combined video and the second combined video sent by the server, the method further includes: playing the second combined video in response to the playing operation aiming at the second combined video; in response to playing the second designated video frame, pausing playing the second combined video and displaying second prompt information; the second prompt message is used for indicating that the first video is about to be played; and responding to the playing instruction of the first video, and continuing to play the first video after the second designated video frame.
After the step of playing the second combined video, the method further includes: responding to a playing instruction of the first video in the second combined video, and playing the first video; and responding to a playing instruction of the second video in the second combined video, and playing the second video.
The method further comprises the following steps: responding to the first video and the second video in the first combined video, and aiming at the uploading operation of the first target barrage information, displaying the first target barrage information in the first combined video; and in response to playing the second combined video, displaying the first target barrage information in the second combined video.
The method further comprises the following steps: responding to the first video or the second video in the first combined video, and aiming at the uploading operation of the first target barrage information, displaying the first target barrage information in the first video or the second video in the first combined video; in response to playing the first video or the second video in the second combined video, first target barrage information is presented in the first video or the second video in the second combined video.
The method further comprises the following steps: responding to the first video and the second video in the second combined video, and aiming at uploading operation of second target barrage information, displaying the second target barrage information in the second combined video; and in response to playing the first combined video, displaying the first target barrage information in the first combined video.
The method further comprises the following steps: responding to the first video or the second video in the second combined video, and aiming at the uploading operation of the second target barrage information, displaying the first target barrage information in the first video or the second video in the second combined video; in response to playing the first video or the second video in the first combined video, second target barrage information is presented in the first video or the second video in the first combined video.
In the mode, through identifying and combining the associated first video and the associated second video, the first video and the second video are replaced by the corresponding combined video, and a viewer can watch two different and associated first videos and second videos through watching the combined video at the client side without switching back and forth, so that the operation complexity is reduced, the video watching efficiency is improved, and the user experience is further improved.
The present embodiments also provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the video processing method described above.
The machine-executable instructions stored on the machine-readable storage medium may implement the following operations in the video processing method by executing the machine-executable instructions:
The server is taken as an execution main body:
identifying a first video and a second video; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video; inserting the first video into a second designated video frame of the second video to obtain a second combined video; and sending the first combined video and the second combined video to the client, and replacing the first video with the first combined video and replacing the second video with the second combined video through the client.
The server side comprises a plurality of videos; a step of identifying a first video and a second video, comprising: from the plurality of videos, a first video including content that initiates a target task is identified, and a second video including content that performs the target task is identified.
The step of identifying a second video including content for performing a target task from the plurality of videos includes: identifying an initial video including content to perform a target task from a plurality of videos; if the number of the initial videos is multiple, and a target account is designated in the content initiating the target task, determining whether videos corresponding to the target account are included in the initial videos; if yes, determining the video corresponding to the target account as a second video; if not, determining the appointed initial video in the initial videos as the second video.
The first video comprises content for initiating a target task; the second video comprises contents for executing the target task; inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; the method further comprises, prior to the step of inserting the first video into a second designated video frame of the second video to obtain a second combined video frame: determining a first appointed video frame of a first video according to the content of the initiating target task; a second designated video frame of the second video is determined based on the content of the execution target task.
The step of determining the first designated video frame of the first video according to the content of the initiating target task includes: identifying the audio for initiating the target task from the audio of the first video, and determining at least one video frame corresponding to the audio for initiating the target task; the last video frame of the at least one video frame is determined to be the first designated video frame.
The step of determining the second designated video frame of the second video according to the content of the execution target task includes: identifying the audio for executing the target task from the audio of the second video, and determining at least one video frame corresponding to the audio for executing the target task; the last video frame of the at least one video frame is determined to be the second designated video frame.
Inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; the method further comprises, prior to the step of inserting the first video into a second designated video frame of the second video to obtain a second combined video frame: acquiring a first scene picture in a first video and a second scene picture in a second video; if the first scene picture and the second scene picture are the scene information under the same scene, combining the first scene picture and the second scene picture to obtain a target scene picture; and updating the first scene picture and the second scene picture to be target scene pictures.
After the step of sending the first and second combined videos to the client, the method further comprises: responding to the received first appointed barrage information for the first combined video sent by the first client, and sending the first appointed barrage information to the second client; if the first appointed barrage information is first video and second video in the first combined video, the received barrage information is responded by the second client to play the second combined video, and the first appointed barrage information is displayed in the second combined video; and if the first appointed barrage information is the first video or the second video in the first combined video, the first client responds to the first video or the second video in the second combined video to display the first appointed barrage information in the first video or the second video in the second combined video through the second client when the first client plays the first video or the second video in the first combined video.
After the step of sending the first and second combined videos to the client, the method further comprises: responding to the received second specified barrage information for the second combined video sent by the first client, and sending the second specified barrage information to the second client; if the second specified barrage information is the first video and the second video in the second combined video, the received barrage information is displayed in the first combined video by the second client in response to the first combined video being played; and if the second designated barrage information is the first video or the second video in the second combined video, the first client responds to the first video or the second video in the first combined video by playing the second video, and the second designated barrage information is displayed in the first video or the second video in the first combined video.
Taking a client as an execution main body:
in response to receiving the first combined video and the second combined video sent by the server, replacing the first video with the first combined video, and replacing the second video with the second combined video; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; responding to a playing operation aiming at the first combined video, and playing the first combined video; in response to playing the first specified video frame, pausing playing the first combined video and displaying first prompt information; the first prompt message is used for indicating that the second video is about to be played; responding to a playing instruction of the second video, and continuing to play the second video after the first appointed video frame; wherein the first and second combined videos are determined by: identifying a first video and a second video through a server; the first video and the second video are uploaded by different accounts, and the first video is associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; and inserting the first video into a second designated video frame of the second video to obtain a second combined video frame.
The first video comprises content for initiating a target task, and the second video comprises content for executing the target task; if the account of the second video is the target account appointed by the first video, the first prompt information is also used for indicating that the target account has completed the target task; if the account for uploading the second video is not the target account designated by the first video, the first prompt information is also used for indicating that the target account does not complete the target task.
After the step of playing the first combined video in response to the playing operation for the first combined video, the method further includes: responding to a playing instruction of a first video in the first combined video, and playing the first video; and playing the second video in response to a playing instruction of the second video in the first combined video.
After the step of replacing the first video with the first combined video and replacing the second video with the second combined video in response to receiving the first combined video and the second combined video sent by the server, the method further includes: playing the second combined video in response to the playing operation aiming at the second combined video; in response to playing the second designated video frame, pausing playing the second combined video and displaying second prompt information; the second prompt message is used for indicating that the first video is about to be played; and responding to the playing instruction of the first video, and continuing to play the first video after the second designated video frame.
After the step of playing the second combined video, the method further includes: responding to a playing instruction of the first video in the second combined video, and playing the first video; and responding to a playing instruction of the second video in the second combined video, and playing the second video.
The method further comprises the following steps: responding to the first video and the second video in the first combined video, and aiming at the uploading operation of the first target barrage information, displaying the first target barrage information in the first combined video; and in response to playing the second combined video, displaying the first target barrage information in the second combined video.
The method further comprises the following steps: responding to the first video or the second video in the first combined video, and aiming at the uploading operation of the first target barrage information, displaying the first target barrage information in the first video or the second video in the first combined video; in response to playing the first video or the second video in the second combined video, first target barrage information is presented in the first video or the second video in the second combined video.
The method further comprises the following steps: responding to the first video and the second video in the second combined video, and aiming at uploading operation of second target barrage information, displaying the second target barrage information in the second combined video; and in response to playing the first combined video, displaying the first target barrage information in the first combined video.
The method further comprises the following steps: responding to the first video or the second video in the second combined video, and aiming at the uploading operation of the second target barrage information, displaying the first target barrage information in the first video or the second video in the second combined video; in response to playing the first video or the second video in the first combined video, second target barrage information is presented in the first video or the second video in the first combined video.
In the mode, through identifying and combining the associated first video and the associated second video, the first video and the second video are replaced by the corresponding combined video, and a viewer can watch two different and associated first videos and second videos through watching the combined video at the client side without switching back and forth, so that the operation complexity is reduced, the video watching efficiency is improved, and the user experience is further improved.
The video processing method, apparatus and computer program product of the system provided in the embodiments of the present invention include a computer readable storage medium storing program codes, where the instructions included in the program codes may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be described herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
In addition, in the description of embodiments of the present invention, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood by those skilled in the art in specific cases.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention for illustrating the technical solution of the present invention, but not for limiting the scope of the present invention, and although the present invention has been described in detail with reference to the foregoing examples, it will be understood by those skilled in the art that the present invention is not limited thereto: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (22)

1. A video processing method, wherein the method is applied to a server, the method comprising:
identifying a first video and a second video; wherein the first video and the second video are uploaded for different accounts, the first video being associated with video content of the second video;
inserting the second video into a first appointed video frame of the first video to obtain a first combined video; inserting the first video into a second designated video frame of the second video to obtain a second combined video;
and sending the first combined video and the second combined video to a client, and replacing the first video with the first combined video and replacing the second video with the second combined video through the client.
2. The method of claim 1, wherein the server includes a plurality of videos;
a step of identifying a first video and a second video, comprising:
from the plurality of videos, a first video including content that initiates a target task is identified, and a second video including content that performs the target task is identified.
3. The method of claim 2, wherein the step of identifying a second video from the plurality of videos that includes content that performs the target task comprises:
Identifying an initial video from the plurality of videos that includes content to perform the target task;
if the initial videos are multiple, and a target account is designated in the content of the initiating target task, determining whether videos corresponding to the target account are included in the initial videos;
if yes, determining the video corresponding to the target account as the second video; and if not, determining the appointed initial video in the initial videos as the second video.
4. The method of claim 1, wherein the first video includes content that initiates a target task; the second video comprises content for executing the target task;
inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; before the step of inserting the first video into a second designated video frame of the second video to obtain a second combined video frame, the method further comprises:
determining a first appointed video frame of the first video according to the content of the initiating target task;
and determining a second designated video frame of the second video according to the content of the target task.
5. The method of claim 4, wherein the step of determining a first designated video frame of the first video based on the content of the initiating target task comprises:
identifying the audio of the initiating target task from the audio of the first video, and determining at least one video frame corresponding to the audio of the initiating target task;
a last video frame of the at least one video frame is determined to be the first specified video frame.
6. The method of claim 4, wherein the step of determining a second designated video frame of the second video based on the content of the performing the target task comprises:
identifying the audio for executing the target task from the audio of the second video, and determining at least one video frame corresponding to the audio for executing the target task;
a last video frame of the at least one video frame is determined to be the second designated video frame.
7. The method of claim 1, wherein inserting the second video at a first designated video frame of the first video results in a first combined video frame; before the step of inserting the first video into a second designated video frame of the second video to obtain a second combined video frame, the method further comprises:
Acquiring a first scene picture in the first video and a second scene picture in the second video;
if the first scene picture and the second scene picture are the scene information under the same scene, combining the first scene picture and the second scene picture to obtain a target scene picture;
updating the first scene picture and the second scene picture to the target scene picture.
8. The method of claim 1, wherein after the step of sending the first and second combined videos to a client, the method further comprises:
responding to receiving first appointed barrage information which is sent by a first client and aims at the first combined video, and sending the first appointed barrage information to a second client;
if the first appointed barrage information is the first video and the second video in the first combined video, the first client displays the first appointed barrage information in the second combined video by responding to the second combined video through the second client when the first client plays the first video and the second video in the first combined video;
And if the first appointed barrage information is the first video or the second video in the first combined video, the first client side responds to the first video or the second video in the second combined video to display the first appointed barrage information in the first video or the second video in the second combined video through the second client side when the first client side plays the first video or the second video in the first combined video.
9. The method of claim 1, wherein after the step of sending the first and second combined videos to a client, the method further comprises:
responding to receiving second specified barrage information for the second combined video sent by a first client, and sending the second specified barrage information to the second client;
if the second specified barrage information is the barrage information received by the first client when the first video and the second video in the second combined video are played, the second client responds to the first combined video to display the second specified barrage information in the first combined video;
and if the second specified barrage information is the barrage information received by the first client when the first video or the second video in the second combined video is played, the second specified barrage information is displayed in the first video or the second video in the first combined video by the second client in response to the first video or the second video in the first combined video being played.
10. A method of video processing, the method being applied to a client, the method comprising:
in response to receiving a first combined video and a second combined video sent by a server, replacing the first video with the first combined video, and replacing the second video with the second combined video; wherein the first video and the second video are uploaded for different accounts, the first video being associated with video content of the second video;
playing the first combined video in response to a playing operation for the first combined video;
in response to playing to a first designated video frame, pausing playing of the first combined video and displaying first prompt information; the first prompt message is used for indicating that the second video is about to be played;
responding to a playing instruction of the second video, and continuing to play the second video after the first appointed video frame;
wherein the first and second combined videos are determined by:
identifying a first video and a second video through the server; wherein the first video and the second video are uploaded for different accounts, the first video being associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; and inserting the first video into a second designated video frame of the second video to obtain a second combined video frame.
11. The method of claim 10, wherein the first video comprises content that initiates a target task and the second video comprises content that performs the target task;
if the account of the second video is the target account appointed by the first video, the first prompt information is also used for indicating that the target account has completed the target task;
and if the account for uploading the second video is not the target account designated by the first video, the first prompt information is also used for indicating that the target account does not complete the target task.
12. The method of claim 10, wherein after the step of playing the first combined video in response to the play operation for the first combined video, the method further comprises:
responding to a playing instruction of a first video in the first combined video, and playing the first video;
and responding to a playing instruction of a second video in the first combined video, and playing the second video.
13. The method of claim 10, wherein in response to receiving the first combined video and the second combined video sent by the server, the method further comprises, after the step of replacing the first video with the first combined video and the second video with the second combined video:
Playing the second combined video in response to a playing operation for the second combined video;
in response to playing to the second designated video frame, pausing playing of the second combined video and displaying second prompt information; the second prompt message is used for indicating that the first video is about to be played;
and responding to a playing instruction of the first video, and continuing to play the first video after the second designated video frame.
14. The method of claim 13, wherein after the step of playing the second combined video, the method further comprises:
responding to a playing instruction of a first video in the second combined video, and playing the first video;
and responding to a playing instruction of a second video in the second combined video, and playing the second video.
15. The method according to claim 10, wherein the method further comprises:
responding to the first video and the second video in the first combined video, and aiming at the uploading operation of the first target barrage information, displaying the first target barrage information in the first combined video;
and in response to playing the second combined video, displaying the first target barrage information in the second combined video.
16. The method according to claim 10, wherein the method further comprises:
responding to the first video or the second video in the first combined video, and aiming at the uploading operation of the first target barrage information, displaying the first target barrage information in the first video or the second video in the first combined video;
and in response to playing the first video or the second video in the second combined video, displaying the first target barrage information in the first video or the second video in the second combined video.
17. The method according to claim 10, wherein the method further comprises:
responding to the first video and the second video in the second combined video, and aiming at uploading operation of second target barrage information, displaying the second target barrage information in the second combined video;
and in response to playing the first combined video, displaying the first target barrage information in the first combined video.
18. The method according to claim 10, wherein the method further comprises:
responding to the first video or the second video in the second combined video, and aiming at the uploading operation of the second target barrage information, displaying the first target barrage information in the first video or the second video in the second combined video;
And in response to playing the first video or the second video in the first combined video, displaying the second target barrage information in the first video or the second video in the first combined video.
19. A video processing apparatus, wherein the apparatus is disposed at a server, the apparatus comprising:
the video identification module is used for identifying the first video and the second video; wherein the first video and the second video are uploaded for different accounts, the first video being associated with video content of the second video;
the video merging module is used for inserting the second video into a first appointed video frame of the first video to obtain a first merged video; inserting the first video into a second designated video frame of the second video to obtain a second combined video;
the video sending module is used for sending the first combined video and the second combined video to a client, replacing the first video with the first combined video and replacing the second video with the second combined video through the client.
20. A video processing apparatus, the apparatus being disposed at a client, the apparatus comprising:
The video replacing module is used for responding to the received first combined video and the second combined video sent by the server side, replacing the first video with the first combined video and replacing the second video with the second combined video; wherein the first video and the second video are uploaded for different accounts, the first video being associated with video content of the second video;
the combined video playing module is used for responding to the playing operation aiming at the first combined video and playing the first combined video;
the information prompt module is used for responding to the first appointed video frame, suspending the playing of the first combined video and displaying first prompt information; the first prompt message is used for indicating that the second video is about to be played;
the second video playing module is used for responding to the playing instruction of the second video and continuing to play the second video after the first appointed video frame;
wherein the first and second combined videos are determined by:
identifying a first video and a second video through the server; wherein the first video and the second video are uploaded for different accounts, the first video being associated with video content of the second video; inserting the second video into a first appointed video frame of the first video to obtain a first combined video frame; and inserting the first video into a second designated video frame of the second video to obtain a second combined video frame.
21. An electronic device comprising a processor and a memory, the memory storing computer executable instructions executable by the processor to implement the video processing method of any one of claims 1-9 or the video processing method of any one of claims 10-18.
22. A computer readable storage medium storing computer executable instructions which, when invoked and executed by a processor, cause the processor to implement the video processing method of any one of claims 1 to 9 or the video processing method of any one of claims 10 to 18.
CN202310366695.4A 2023-04-06 2023-04-06 Video processing method and device and electronic equipment Pending CN116567293A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310366695.4A CN116567293A (en) 2023-04-06 2023-04-06 Video processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310366695.4A CN116567293A (en) 2023-04-06 2023-04-06 Video processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116567293A true CN116567293A (en) 2023-08-08

Family

ID=87490635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310366695.4A Pending CN116567293A (en) 2023-04-06 2023-04-06 Video processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116567293A (en)

Similar Documents

Publication Publication Date Title
US10425679B2 (en) Method and device for displaying information on video image
US11153666B2 (en) Method and apparatus for releasing video file
CN106454407B (en) Video live broadcasting method and device
US11140462B2 (en) Method, apparatus, and device for generating an essence video and storage medium
CN113038287B (en) Method and device for realizing multi-user video live broadcast service and computer equipment
CN106998494B (en) Video recording method and related device
CN109005422B (en) Video comment processing method and device
CN111327917B (en) Live content preview method, device, equipment and storage medium
CN109299326B (en) Video recommendation method, device and system, electronic equipment and storage medium
CN113067994B (en) Video recording method and electronic equipment
US11141665B2 (en) Method of determining exciting moments in a game video and method of playing a game video
CN107040808B (en) Method and device for processing popup picture in video playing
US11812110B2 (en) Bullet comment processing method and apparatus
US20180130167A1 (en) Multi-Display Interaction
CN110968391A (en) Screenshot method, screenshot device, terminal equipment and storage medium
CN110876079A (en) Video processing method, device and equipment
US11889127B2 (en) Live video interaction method and apparatus, and computer device
CN116708853A (en) Interaction method and device in live broadcast and electronic equipment
CN116567293A (en) Video processing method and device and electronic equipment
US20170139933A1 (en) Electronic Device, And Computer-Readable Storage Medium For Quickly Searching Video Segments
CN115237314B (en) Information recommendation method and device and electronic equipment
CN111954041A (en) Video loading method, computer equipment and readable storage medium
CN113038218B (en) Video screenshot method, device, equipment and readable storage medium
CN112954380B (en) Video playing processing method and device
CN112188269B (en) Video playing method and device and video generating method and device

Legal Events

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