[go: up one dir, main page]

CN118828141A - Video processing method, device, electronic device and storage medium - Google Patents

Video processing method, device, electronic device and storage medium Download PDF

Info

Publication number
CN118828141A
CN118828141A CN202411293618.1A CN202411293618A CN118828141A CN 118828141 A CN118828141 A CN 118828141A CN 202411293618 A CN202411293618 A CN 202411293618A CN 118828141 A CN118828141 A CN 118828141A
Authority
CN
China
Prior art keywords
video
text
content
continuation
video clip
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.)
Granted
Application number
CN202411293618.1A
Other languages
Chinese (zh)
Other versions
CN118828141B (en
Inventor
李硕
张仪超
黄灵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202411293618.1A priority Critical patent/CN118828141B/en
Publication of CN118828141A publication Critical patent/CN118828141A/en
Application granted granted Critical
Publication of CN118828141B publication Critical patent/CN118828141B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8545Content authoring for generating interactive applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本公开是关于一种视频处理方法、装置、电子设备及存储介质,属于互联网技术领域。方法包括:在视频界面显示第一视频片段;响应于对第一视频片段的延续请求,显示第一延续文本,第一延续文本用于描述延续后的视频片段所需包含的内容;响应于对第一延续文本的修改操作,对第一延续文本中与修改操作关联的所有词语进行修改,得到第二延续文本;基于第一视频片段和第二延续文本,生成第二视频片段,第二视频片段的内容是对第一视频片段的内容的延续,且第二视频片段的内容与第二延续文本的内容相符。由于可以一键实现对延续文本进行全文修改,无需挨个查找所需修改的词语进行手动修改,能够节省操作时间,提高修改效率,提高了延续视频的整体效率。

The present disclosure relates to a video processing method, device, electronic device and storage medium, and belongs to the field of Internet technology. The method includes: displaying a first video clip on a video interface; in response to a request for continuation of the first video clip, displaying a first continuation text, the first continuation text is used to describe the content that the continued video clip needs to contain; in response to a modification operation on the first continuation text, modifying all words associated with the modification operation in the first continuation text to obtain a second continuation text; based on the first video clip and the second continuation text, generating a second video clip, the content of the second video clip is a continuation of the content of the first video clip, and the content of the second video clip is consistent with the content of the second continuation text. Since the continuation text can be modified in its entirety with one click, there is no need to search for the words to be modified one by one for manual modification, which can save operation time, improve modification efficiency, and improve the overall efficiency of the continuation video.

Description

视频处理方法、装置、电子设备及存储介质Video processing method, device, electronic device and storage medium

技术领域Technical Field

本公开涉及互联网技术领域,尤其涉及一种视频处理方法、装置、电子设备及存储介质。The present disclosure relates to the field of Internet technology, and in particular to a video processing method, device, electronic device and storage medium.

背景技术Background Art

随着多媒体技术的发展,出现了越来越多的视频应用。人们可以在视频应用上发布视频,同时也可以观看他人发布的视频。With the development of multimedia technology, more and more video applications have emerged. People can post videos on video applications and watch videos posted by others.

相关技术中,人们通常可以自行拍摄视频,或者采用文生成视频技术进行智能生成视频,但是如果视频的内容不够丰富,无法在该视频的内容的基础上进行延续,只能重新拍摄或生成新的视频,因此目前亟需一种对视频进行延续的方案。In related technologies, people can usually shoot videos by themselves, or use text-generated video technology to intelligently generate videos. However, if the content of the video is not rich enough, it is impossible to continue based on the content of the video, and they can only reshoot or generate a new video. Therefore, there is an urgent need for a solution to continue the video.

发明内容Summary of the invention

本公开提供了一种视频处理方法、装置、电子设备及存储介质,能够提高视频处理的便捷性和效率。The present disclosure provides a video processing method, device, electronic device and storage medium, which can improve the convenience and efficiency of video processing.

根据本公开实施例的一方面,提供一种视频处理方法,所述方法包括:According to one aspect of an embodiment of the present disclosure, a video processing method is provided, the method comprising:

在视频界面显示第一视频片段;Displaying a first video clip on a video interface;

响应于对所述第一视频片段的延续请求,显示第一延续文本,所述第一延续文本用于描述延续后的视频片段所需包含的内容;In response to a request for continuing the first video segment, displaying a first continuation text, where the first continuation text is used to describe the content that the continued video segment needs to include;

响应于对所述第一延续文本的修改操作,对所述第一延续文本中与所述修改操作关联的所有词语进行修改,得到第二延续文本;In response to a modification operation on the first continued text, all words in the first continued text associated with the modification operation are modified to obtain a second continued text;

基于所述第一视频片段和所述第二延续文本,生成第二视频片段,所述第二视频片段的内容是对所述第一视频片段的内容的延续,且所述第二视频片段的内容与所述第二延续文本的内容相符。A second video segment is generated based on the first video segment and the second continuation text, wherein the content of the second video segment is a continuation of the content of the first video segment, and the content of the second video segment is consistent with the content of the second continuation text.

可选地,所述响应于对所述第一延续文本的修改操作,对所述第一延续文本中与所述修改操作关联的全部词语进行修改,得到第二延续文本,包括:Optionally, in response to the modification operation on the first continued text, all words associated with the modification operation in the first continued text are modified to obtain the second continued text, including:

显示多种事件元素的展示区域,在所述事件元素的展示区域显示所述第一延续文本中属于所述事件元素的词语;Displaying a display area of multiple event elements, and displaying words belonging to the event elements in the first continued text in the display area of the event elements;

响应于对目标事件元素的展示区域中词语的修改操作,获取修改后的第一词语,所述目标事件元素为所述多种事件元素中的任意一种;In response to a modification operation on a word in a display area of a target event element, obtaining a modified first word, wherein the target event element is any one of the multiple event elements;

将所述第一延续文本中属于所述目标事件元素的所有词语均替换为所述第一词语,得到所述第二延续文本。All words belonging to the target event element in the first continuation text are replaced with the first words to obtain the second continuation text.

可选地,所述响应于对所述第一延续文本的修改操作,对所述第一延续文本中与所述修改操作关联的全部词语进行修改,得到第二延续文本,包括:Optionally, in response to the modification operation on the first continued text, all words associated with the modification operation in the first continued text are modified to obtain the second continued text, including:

响应于在所述第一延续文本中对第二词语的修改操作,获取修改后的第三词语;In response to a modification operation on a second word in the first continuation text, obtaining a modified third word;

将所述第一延续文本中与所述第二词语相同的所有词语均替换为所述第三词语,得到所述第二延续文本。All words in the first continued text that are identical to the second word are replaced with the third word to obtain the second continued text.

可选地,所述方法还包括:Optionally, the method further comprises:

若所述第二延续文本的内容与所述第一视频片段的内容不相符,则显示提示信息,所述提示信息用于提示所述第二延续文本的内容与所述第一视频片段的内容不相符。If the content of the second continuation text does not match the content of the first video clip, a prompt message is displayed, where the prompt message is used to prompt that the content of the second continuation text does not match the content of the first video clip.

可选地,所述视频界面还显示有所述第一视频片段的进度条;所述若所述第二延续文本的内容与所述第一视频片段的内容不相符,则显示提示信息,包括:Optionally, the video interface further displays a progress bar of the first video segment; if the content of the second continuation text does not match the content of the first video segment, displaying a prompt message includes:

若所述第二延续文本的内容与所述第一视频片段中目标时段的内容不相符,则对所述第一视频片段的进度条上所述目标时段对应的区域进行突出显示,以提示所述第二延续文本的内容与所述目标时段的内容不相符。If the content of the second continuation text does not match the content of the target time period in the first video clip, the area corresponding to the target time period on the progress bar of the first video clip is highlighted to indicate that the content of the second continuation text does not match the content of the target time period.

可选地,所述视频界面还显示有所述第一视频片段的内容文本,所述内容文本用于描述所述第一视频片段的内容;所述若所述第二延续文本的内容与所述第一视频片段的内容不相符,则显示提示信息,包括:Optionally, the video interface further displays a content text of the first video clip, where the content text is used to describe the content of the first video clip; if the content of the second continuation text does not match the content of the first video clip, displaying a prompt message includes:

若所述第二延续文本的内容与所述内容文本中目标片段的内容不相符,则对所述内容文本中所述目标片段进行突出显示,以提示所述第二延续文本的内容与所述目标片段的内容不相符。If the content of the second continuation text does not match the content of the target segment in the content text, the target segment in the content text is highlighted to indicate that the content of the second continuation text does not match the content of the target segment.

可选地,所述显示第一延续文本,包括以下任一项:Optionally, displaying the first continuation text includes any one of the following:

对所述第一视频片段的内容文本进行续写,得到所述第一延续文本,所述内容文本用于描述所述第一视频片段的内容;Continuing to write the content text of the first video clip to obtain the first continuation text, where the content text is used to describe the content of the first video clip;

基于在所述视频界面中的文本编辑操作,获取所述第一延续文本。Based on the text editing operation in the video interface, the first continuation text is obtained.

可选地,所述方法还包括:Optionally, the method further comprises:

在所述视频界面显示时长输入区域,基于所述时长输入区域中的输入操作获取延续时长;或者,基于所述第二延续文本的文本长度获取所述延续时长;Displaying a duration input area on the video interface, and acquiring the continuation duration based on an input operation in the duration input area; or acquiring the continuation duration based on a text length of the second continuation text;

所述基于所述第一视频片段和所述第二延续文本,生成第二视频片段,包括:The step of generating a second video segment based on the first video segment and the second continuation text includes:

基于所述第一视频片段、所述第二延续文本和所述延续时长,生成所述第二视频片段,所述第二视频片段的内容是对所述第一视频片段的内容的延续,且所述第二视频片段的内容与所述第二延续文本描述的内容相符,且所述第二视频片段的时长等于所述延续时长。Based on the first video segment, the second continuation text and the continuation duration, the second video segment is generated, the content of the second video segment is a continuation of the content of the first video segment, the content of the second video segment is consistent with the content described by the second continuation text, and the duration of the second video segment is equal to the continuation duration.

可选地,所述方法还包括:Optionally, the method further comprises:

将从本地相册上传的图像确定为参考图像;或者,将所述第一视频片段中多个视频帧中的至少一个视频帧确定为所述参考图像;Determine an image uploaded from a local photo album as a reference image; or determine at least one video frame among a plurality of video frames in the first video clip as the reference image;

所述基于所述第一视频片段和所述第二延续文本,生成第二视频片段,包括:The step of generating a second video segment based on the first video segment and the second continuation text includes:

基于所述第一视频片段、所述第二延续文本和所述参考图像,生成所述第二视频片段,所述第二视频片段的内容是对所述第一视频片段的内容的延续,且所述第二视频片段的内容与所述第二延续文本的内容和所述参考图像的内容相符。Based on the first video segment, the second continuation text and the reference image, the second video segment is generated, the content of the second video segment is a continuation of the content of the first video segment, and the content of the second video segment is consistent with the content of the second continuation text and the content of the reference image.

可选地,所述基于所述第一视频片段和所述第二延续文本,生成第二视频片段,包括:Optionally, generating a second video segment based on the first video segment and the second continuation text includes:

获取所述第一视频片段的内容文本,所述内容文本用于描述所述第一视频片段的内容;Acquire a content text of the first video clip, where the content text is used to describe the content of the first video clip;

基于所述内容文本和所述第二延续文本,生成所述第二视频片段。The second video segment is generated based on the content text and the second continuation text.

可选地,所述方法还包括:Optionally, the method further comprises:

在所述视频界面,按照生成顺序显示所述第一视频片段和所述第二视频片段。On the video interface, the first video clip and the second video clip are displayed in the order in which they are generated.

可选地,所述方法还包括:Optionally, the method further comprises:

在所述第一视频片段上显示初始标签,所述初始标签用于表示所述初始标签所在的视频片段是初始的视频片段;Displaying an initial tag on the first video segment, where the initial tag is used to indicate that the video segment where the initial tag is located is an initial video segment;

在所述第二视频片段上显示延续标签,所述延续标签用于表示所述延续标签所在的视频片段是延续后的视频片段。A continuation tag is displayed on the second video segment, where the continuation tag is used to indicate that the video segment where the continuation tag is located is a continued video segment.

可选地,所述方法还包括以下至少一项:Optionally, the method further comprises at least one of the following:

在所述第一视频片段和所述第二视频片段中的至少一个视频片段被选中的情况下,响应于视频播放操作,播放被选中的至少一个视频片段;In a case where at least one of the first video segment and the second video segment is selected, in response to a video playing operation, playing the selected at least one video segment;

在所述第一视频片段和所述第二视频片段中的至少一个视频片段被选中的情况下,响应于视频剪辑操作,显示被选中的至少一个视频片段的剪辑界面;In a case where at least one of the first video segment and the second video segment is selected, in response to a video editing operation, displaying an editing interface of the selected at least one video segment;

在所述第一视频片段和所述第二视频片段中的至少一个视频片段被选中的情况下,响应于视频下载操作,下载被选中的至少一个视频片段;In a case where at least one of the first video segment and the second video segment is selected, in response to a video download operation, downloading the selected at least one video segment;

在所述第一视频片段和所述第二视频片段中的至少一个视频片段被选中的情况下,响应于视频发布操作,发布包含被选中的至少一个视频片段的视频。In the case where at least one of the first video segment and the second video segment is selected, in response to a video publishing operation, a video including the at least one selected video segment is published.

可选地,所述在所述第一视频片段和所述第二视频片段中的至少一个视频片段被选中的情况下,响应于视频发布操作,发布包含被选中的至少一个视频片段的视频,包括:Optionally, in a case where at least one of the first video segment and the second video segment is selected, in response to a video publishing operation, publishing a video including the selected at least one video segment comprises:

在所述第一视频片段和所述第二视频片段被选中的情况下,响应于所述视频发布操作,基于所述第一视频片段和所述第二视频片段生成文案;In a case where the first video clip and the second video clip are selected, in response to the video publishing operation, generating a copy based on the first video clip and the second video clip;

按照生成顺序将所述第一视频片段和所述第二视频片段合并为一个视频;Merging the first video segment and the second video segment into one video according to the generation order;

发布携带所述文案的所述视频;或者,基于对所述文案的编辑操作,获取编辑后的文案,发布携带编辑后的文案的所述视频。The video carrying the text is released; or, based on an editing operation on the text, an edited text is obtained, and the video carrying the edited text is released.

根据本公开实施例的再一方面,提供一种视频处理装置,所述装置包括:According to another aspect of the embodiments of the present disclosure, a video processing device is provided, the device comprising:

显示单元,被配置为执行在视频界面显示第一视频片段;A display unit, configured to display the first video clip on the video interface;

所述显示单元,被配置为执行响应于对所述第一视频片段的延续请求,显示第一延续文本,所述第一延续文本用于描述延续后的视频片段所需包含的内容;The display unit is configured to display a first continuation text in response to a continuation request for the first video segment, wherein the first continuation text is used to describe the content that the continued video segment needs to include;

修改单元,被配置为执行响应于对所述第一延续文本的修改操作,对所述第一延续文本中与所述修改操作关联的所有词语进行修改,得到第二延续文本;a modifying unit configured to execute, in response to a modification operation on the first continued text, modify all words in the first continued text associated with the modification operation to obtain a second continued text;

生成单元,被配置为执行基于所述第一视频片段和所述第二延续文本,生成第二视频片段,所述第二视频片段的内容是对所述第一视频片段的内容的延续,且所述第二视频片段的内容与所述第二延续文本的内容相符。The generating unit is configured to generate a second video segment based on the first video segment and the second continuation text, wherein the content of the second video segment is a continuation of the content of the first video segment, and the content of the second video segment is consistent with the content of the second continuation text.

可选地,所述修改单元,被配置为执行:Optionally, the modification unit is configured to execute:

显示多种事件元素的展示区域,在所述事件元素的展示区域显示所述第一延续文本中属于所述事件元素的词语;Displaying a display area of multiple event elements, and displaying words belonging to the event elements in the first continued text in the display area of the event elements;

响应于对目标事件元素的展示区域中词语的修改操作,获取修改后的第一词语,所述目标事件元素为所述多种事件元素中的任意一种;In response to a modification operation on a word in a display area of a target event element, obtaining a modified first word, wherein the target event element is any one of the multiple event elements;

将所述第一延续文本中属于所述目标事件元素的所有词语均替换为所述第一词语,得到所述第二延续文本。All words belonging to the target event element in the first continuation text are replaced with the first words to obtain the second continuation text.

可选地,所述修改单元,被配置为执行:Optionally, the modification unit is configured to execute:

响应于在所述第一延续文本中对第二词语的修改操作,获取修改后的第三词语;In response to a modification operation on a second word in the first continuation text, obtaining a modified third word;

将所述第一延续文本中与所述第二词语相同的所有词语均替换为所述第三词语,得到所述第二延续文本。All words in the first continued text that are identical to the second word are replaced with the third word to obtain the second continued text.

可选地,所述装置还包括:Optionally, the device further comprises:

所述显示单元,还被配置为执行若所述第二延续文本的内容与所述第一视频片段的内容不相符,则显示提示信息,所述提示信息用于提示所述第二延续文本的内容与所述第一视频片段的内容不相符。The display unit is further configured to display prompt information if the content of the second continuation text does not match the content of the first video clip, wherein the prompt information is used to prompt that the content of the second continuation text does not match the content of the first video clip.

可选地,所述视频界面还显示有所述第一视频片段的进度条;所述显示单元,还被配置为执行:Optionally, the video interface further displays a progress bar of the first video clip; and the display unit is further configured to execute:

若所述第二延续文本的内容与所述第一视频片段中目标时段的内容不相符,则对所述第一视频片段的进度条上所述目标时段对应的区域进行突出显示,以提示所述第二延续文本的内容与所述目标时段的内容不相符。If the content of the second continuation text does not match the content of the target time period in the first video segment, the area corresponding to the target time period on the progress bar of the first video segment is highlighted to indicate that the content of the second continuation text does not match the content of the target time period.

可选地,所述视频界面还显示有所述第一视频片段的内容文本,所述内容文本用于描述所述第一视频片段的内容;所述显示单元,还被配置为执行:Optionally, the video interface further displays content text of the first video segment, where the content text is used to describe the content of the first video segment; and the display unit is further configured to execute:

若所述第二延续文本的内容与所述内容文本中目标片段的内容不相符,则对所述内容文本中所述目标片段进行突出显示,以提示所述第二延续文本的内容与所述目标片段的内容不相符。If the content of the second continuation text does not match the content of the target segment in the content text, the target segment in the content text is highlighted to indicate that the content of the second continuation text does not match the content of the target segment.

可选地,所述显示单元,被配置为执行以下任一项:Optionally, the display unit is configured to perform any of the following:

对所述第一视频片段的内容文本进行续写,得到所述第一延续文本,所述内容文本用于描述所述第一视频片段的内容;Continuing to write the content text of the first video clip to obtain the first continuation text, where the content text is used to describe the content of the first video clip;

基于在所述视频界面中的文本编辑操作,获取所述第一延续文本。Based on the text editing operation in the video interface, the first continuation text is obtained.

可选地,所述装置还包括:Optionally, the device further comprises:

所述显示单元,被配置为执行在所述视频界面显示时长输入区域,基于所述时长输入区域中的输入操作获取延续时长;或者,基于所述第二延续文本的文本长度获取所述延续时长;The display unit is configured to display a duration input area on the video interface, and obtain the continuation duration based on an input operation in the duration input area; or obtain the continuation duration based on a text length of the second continuation text;

所述生成单元,被配置为执行基于所述第一视频片段、所述第二延续文本和所述延续时长,生成所述第二视频片段,所述第二视频片段的内容是对所述第一视频片段的内容的延续,且所述第二视频片段的内容与所述第二延续文本描述的内容相符,且所述第二视频片段的时长等于所述延续时长。The generating unit is configured to generate the second video segment based on the first video segment, the second continuation text and the continuation duration, wherein the content of the second video segment is a continuation of the content of the first video segment, and the content of the second video segment is consistent with the content described by the second continuation text, and the duration of the second video segment is equal to the continuation duration.

可选地,所述装置还包括:Optionally, the device further comprises:

所述显示单元,被配置为执行将从本地相册上传的图像确定为参考图像;或者,将所述第一视频片段中多个视频帧中的至少一个视频帧确定为所述参考图像;The display unit is configured to determine an image uploaded from a local photo album as a reference image; or determine at least one video frame among a plurality of video frames in the first video clip as the reference image;

所述生成单元,被配置为执行基于所述第一视频片段、所述第二延续文本和所述参考图像,生成所述第二视频片段,所述第二视频片段的内容是对所述第一视频片段的内容的延续,且所述第二视频片段的内容与所述第二延续文本的内容和所述参考图像的内容相符。The generating unit is configured to generate the second video segment based on the first video segment, the second continuation text and the reference image, wherein the content of the second video segment is a continuation of the content of the first video segment, and the content of the second video segment is consistent with the content of the second continuation text and the content of the reference image.

可选地,所述生成单元,被配置为执行:Optionally, the generating unit is configured to execute:

获取所述第一视频片段的内容文本,所述内容文本用于描述所述第一视频片段的内容;Acquire a content text of the first video clip, where the content text is used to describe the content of the first video clip;

基于所述内容文本和所述第二延续文本,生成所述第二视频片段。The second video segment is generated based on the content text and the second continuation text.

可选地,所述装置还包括:Optionally, the device further comprises:

所述显示单元,被配置为执行在所述视频界面,按照生成顺序显示所述第一视频片段和所述第二视频片段。The display unit is configured to execute on the video interface and display the first video segment and the second video segment in a generated order.

可选地,所述装置还包括:Optionally, the device further comprises:

所述显示单元,被配置为执行在所述第一视频片段上显示初始标签,所述初始标签用于表示所述初始标签所在的视频片段是初始的视频片段;The display unit is configured to display an initial tag on the first video segment, where the initial tag is used to indicate that the video segment where the initial tag is located is an initial video segment;

所述显示单元,被配置为执行在所述第二视频片段上显示延续标签,所述延续标签用于表示所述延续标签所在的视频片段是延续后的视频片段。The display unit is configured to display a continuation tag on the second video segment, where the continuation tag is used to indicate that the video segment where the continuation tag is located is a continued video segment.

可选地,所述装置还包括控制单元,被配置为执行以下至少一项:Optionally, the device further comprises a control unit configured to perform at least one of the following:

在所述第一视频片段和所述第二视频片段中的至少一个视频片段被选中的情况下,响应于视频播放操作,播放被选中的至少一个视频片段;In a case where at least one of the first video segment and the second video segment is selected, in response to a video playing operation, playing the selected at least one video segment;

在所述第一视频片段和所述第二视频片段中的至少一个视频片段被选中的情况下,响应于视频剪辑操作,显示被选中的至少一个视频片段的剪辑界面;In a case where at least one of the first video segment and the second video segment is selected, in response to a video editing operation, displaying an editing interface of the selected at least one video segment;

在所述第一视频片段和所述第二视频片段中的至少一个视频片段被选中的情况下,响应于视频下载操作,下载被选中的至少一个视频片段;In a case where at least one of the first video segment and the second video segment is selected, in response to a video download operation, downloading the selected at least one video segment;

在所述第一视频片段和所述第二视频片段中的至少一个视频片段被选中的情况下,响应于视频发布操作,发布包含被选中的至少一个视频片段的视频。In the case where at least one of the first video segment and the second video segment is selected, in response to a video publishing operation, a video including the at least one selected video segment is published.

可选地,所述控制单元,被配置为执行:Optionally, the control unit is configured to execute:

在所述第一视频片段和所述第二视频片段被选中的情况下,响应于所述视频发布操作,基于所述第一视频片段和所述第二视频片段生成文案;In a case where the first video clip and the second video clip are selected, in response to the video publishing operation, generating a copy based on the first video clip and the second video clip;

按照生成顺序将所述第一视频片段和所述第二视频片段合并为一个视频;Merging the first video segment and the second video segment into one video according to the generation order;

发布携带所述文案的所述视频;或者,基于对所述文案的编辑操作,获取编辑后的文案,发布携带编辑后的文案的所述视频。The video carrying the text is released; or, based on an editing operation on the text, an edited text is obtained, and the video carrying the edited text is released.

根据本公开实施例的再一方面,提供了一种电子设备,所述电子设备包括:According to another aspect of the embodiments of the present disclosure, an electronic device is provided, the electronic device comprising:

处理器;processor;

用于存储所述处理器可执行指令的存储器;a memory for storing instructions executable by the processor;

其中,所述处理器被配置为执行所述指令,以实现如上述方面所述的视频处理方法。The processor is configured to execute the instructions to implement the video processing method as described in the above aspects.

根据本公开实施例的再一方面,提供一种计算机可读存储介质,计算机可读存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行如上述方面所述的视频处理方法。According to another aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the video processing method as described in the above aspects.

根据本公开实施例的再一方面,提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述方面所述的视频处理方法。According to another aspect of the embodiments of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the video processing method as described in the above aspects is implemented.

本公开实施例提供的方法,如果想要在第一视频片段的基础上进行延续更多的内容,则可以请求对第一视频片段进行延续,第一延续文本用于描述延续后的视频片段所需包含的内容,如果用户想要修改第一延续文本,通过执行对第一延续文本的修改操作,可以一键将第一延续文本中与修改操作相关的所有词语进行修改,进而基于修改后的延续文本生成延续后的第二视频片段。由于本公开中在用户具有修改延续文本的需求时,可以一键实现全文修改,无需用户挨个查找所需修改的词语一个个手动修改,节省了用户的操作时间,提高了修改效率,进而提高了延续视频的整体效率。According to the method provided by the embodiment of the present disclosure, if more content is to be continued on the basis of the first video clip, a request can be made to continue the first video clip, and the first continuation text is used to describe the content that the continued video clip needs to contain. If the user wants to modify the first continuation text, by performing a modification operation on the first continuation text, all words related to the modification operation in the first continuation text can be modified with one click, and then a second video clip after the continuation is generated based on the modified continuation text. In the present disclosure, when the user has the need to modify the continuation text, the entire text can be modified with one click, and the user does not need to search for the words to be modified one by one and modify them manually, which saves the user's operation time, improves the modification efficiency, and thus improves the overall efficiency of the continued video.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

图1是根据一示例性实施例示出的一种实施环境的示意图;FIG1 is a schematic diagram of an implementation environment according to an exemplary embodiment;

图2是根据一示例性实施例示出的一种视频处理方法的流程图;FIG2 is a flow chart of a video processing method according to an exemplary embodiment;

图3是根据一示例性实施例示出的另一种视频处理方法的流程图;FIG3 is a flow chart of another video processing method according to an exemplary embodiment;

图4是根据一示例性实施例示出的一种视频界面的示意图;FIG4 is a schematic diagram of a video interface according to an exemplary embodiment;

图5是根据一示例性实施例示出的另一种视频界面的示意图;FIG5 is a schematic diagram of another video interface according to an exemplary embodiment;

图6是根据一示例性实施例示出的又一种视频界面的示意图;Fig. 6 is a schematic diagram showing another video interface according to an exemplary embodiment;

图7是根据一示例性实施例示出的一种功能介绍区域的示意图;FIG7 is a schematic diagram showing a function introduction area according to an exemplary embodiment;

图8是根据一示例性实施例示出的一种延续文本编辑区域的示意图;FIG8 is a schematic diagram showing a continued text editing area according to an exemplary embodiment;

图9是根据一示例性实施例示出的另一种延续文本编辑区域的示意图;FIG9 is a schematic diagram showing another type of continued text editing area according to an exemplary embodiment;

图10是根据一示例性实施例示出的一种展示区域的示意图;FIG10 is a schematic diagram of a display area according to an exemplary embodiment;

图11是根据一示例性实施例示出的一种突出显示进度条的示意图;Fig. 11 is a schematic diagram showing a highlighted progress bar according to an exemplary embodiment;

图12是根据一示例性实施例示出的一种突出显示目标片段的示意图;FIG12 is a schematic diagram showing a method of highlighting a target segment according to an exemplary embodiment;

图13是根据一示例性实施例示出的一种展示视频片段的示意图;FIG13 is a schematic diagram showing a method of displaying a video clip according to an exemplary embodiment;

图14是根据一示例性实施例示出的另一种展示视频片段的示意图;FIG14 is a schematic diagram showing another method of displaying video clips according to an exemplary embodiment;

图15是根据一示例性实施例示出的又一种展示视频片段的示意图;Fig. 15 is a schematic diagram showing another method of displaying a video clip according to an exemplary embodiment;

图16是根据一示例性实施例示出的又一种视频处理方法的流程图;FIG16 is a flowchart of another video processing method according to an exemplary embodiment;

图17是根据一示例性实施例示出的再一种视频处理方法的流程图;FIG17 is a flowchart of yet another video processing method according to an exemplary embodiment;

图18是根据一示例性实施例示出的一种任务管理界面的示意图;FIG18 is a schematic diagram showing a task management interface according to an exemplary embodiment;

图19是根据一示例性实施例示出的另一种任务管理界面的示意图;FIG19 is a schematic diagram showing another task management interface according to an exemplary embodiment;

图20是根据一示例性实施例示出的又一种任务管理界面的示意图;FIG20 is a schematic diagram showing another task management interface according to an exemplary embodiment;

图21是根据一示例性实施例示出的一种生成进度的示意图;FIG21 is a schematic diagram showing a generation progress according to an exemplary embodiment;

图22是根据一示例性实施例示出的一种视频处理装置的框图;FIG22 is a block diagram of a video processing device according to an exemplary embodiment;

图23是根据一示例性实施例示出的另一种视频处理装置的框图;FIG23 is a block diagram of another video processing device according to an exemplary embodiment;

图24是根据一示例性实施例示出的一种电子设备的框图。Fig. 24 is a block diagram of an electronic device according to an exemplary embodiment.

具体实施方式DETAILED DESCRIPTION

为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

需要说明的是,本公开的说明书和权利要求书及上述附图说明中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned figure descriptions are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

需要说明的是,本公开所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)、数据(包括但不限于用于分析的数据、存储的数据、展示的数据等)以及信号,均为经用户授权或者经过各方充分授权的。相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。例如,本公开中涉及到的视频片段、延续信息以及内容信息等都是在充分授权的情况下获取的。It should be noted that the user information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this disclosure are all authorized by the user or fully authorized by all parties. The collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the video clips, continuation information and content information involved in this disclosure are all obtained with full authorization.

图1是根据一示例性实施例示出的一种视频处理方法的实施环境示意图。参见图1,该实施环境包括:终端101和服务器102。终端101可以通过无线网络或有线网络与服务器102相连。Fig. 1 is a schematic diagram of an implementation environment of a video processing method according to an exemplary embodiment. Referring to Fig. 1, the implementation environment includes: a terminal 101 and a server 102. The terminal 101 can be connected to the server 102 via a wireless network or a wired network.

在本公开实施例中,终端101显示第一视频片段,接收对第一视频片段的延续请求,获取延续文本。然后终端101向服务器102发送针对该第一视频片段的延续请求,该延续请求包括该第一视频片段和该延续文本。服务器102响应于该延续请求,基于该第一视频片段和延续文本,生成第二视频片段,并向终端101返回该第二视频片段。进而,终端101接收第二视频片段,向用户展示该第二视频片段。In the disclosed embodiment, the terminal 101 displays a first video clip, receives a continuation request for the first video clip, and obtains a continuation text. The terminal 101 then sends a continuation request for the first video clip to the server 102, and the continuation request includes the first video clip and the continuation text. In response to the continuation request, the server 102 generates a second video clip based on the first video clip and the continuation text, and returns the second video clip to the terminal 101. Then, the terminal 101 receives the second video clip and displays the second video clip to the user.

在一些实施例中,终端101安装有目标应用,终端101能够通过该目标应用实现例如视频生成、视频播放等功能。例如,该目标应用为短视频应用、购物应用、社交应用或者其他应用等,终端101通过该目标应用实现本公开实施例提供的视频处理方法。其中,目标应用与服务器102关联,服务器102用于为目标应用提供后台服务。In some embodiments, the terminal 101 is installed with a target application, and the terminal 101 can implement functions such as video generation and video playback through the target application. For example, the target application is a short video application, a shopping application, a social application, or other applications, and the terminal 101 implements the video processing method provided by the embodiment of the present disclosure through the target application. Among them, the target application is associated with the server 102, and the server 102 is used to provide background services for the target application.

在一些实施例中,终端101可以为智能手机、智能手表、台式电脑、手提电脑、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器和膝上型便携计算机等设备中的至少一种。In some embodiments, the terminal 101 can be at least one of a smart phone, a smart watch, a desktop computer, a laptop computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV) player, and a laptop computer.

其中,终端101可以泛指多个终端中的一个,本公开实施例以终端101来举例说明。本领域技术人员可以知晓,上述终端的数量可以更多或更少。比如上述终端可以为几个,或者上述终端为几十个或几百个,或者更多数量,本公开实施例对终端的数量和设备类型均不加以限定。Among them, terminal 101 may generally refer to one of multiple terminals, and the embodiment of the present disclosure is illustrated by terminal 101. Those skilled in the art can know that the number of the above terminals can be more or less. For example, the above terminals can be several, or the above terminals can be dozens or hundreds, or more. The embodiment of the present disclosure does not limit the number and device type of the terminals.

在一些实施例中,服务器102是独立的物理服务器,或者,是多个物理服务器构成的服务器集群或者分布式系统,或者,是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)以及大数据和人工智能平台等基础云计算服务的云服务器,本公开实施例对此不做限制。In some embodiments, server 102 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, but the embodiments of the present disclosure do not impose any restrictions on this.

在一些实施例中,服务器102承担主要计算工作,终端101承担次要计算工作;或者,服务器102承担次要计算工作,终端101承担主要计算工作;或者,服务器102和终端101二者之间采用分布式计算架构进行协同计算。In some embodiments, the server 102 undertakes the main computing work and the terminal 101 undertakes the secondary computing work; or, the server 102 undertakes the secondary computing work and the terminal 101 undertakes the main computing work; or, the server 102 and the terminal 101 adopt a distributed computing architecture to perform collaborative computing.

本公开实施例提供的视频处理方法,应用于智能化生成视频的任意场景下。The video processing method provided by the embodiment of the present disclosure is applicable to any scenario of intelligently generating videos.

例如,在文生视频的场景下。终端运行有短视频应用,该短视频应用提供有文生视频的功能,该文生视频的功能包含了基于本公开实施例的方法所提供的视频延续功能。用户先在短视频应用中输入内容文本,得到根据内容文本智能生成的第一视频片段,比如内容文本为“一只小狗在草地上奔跑”,则第一视频片段中的画面为一只小狗在草地上奔跑。如果用户觉得第一视频片段中的内容不够丰富,想要在第一视频片段中的内容的基础上延续一些其他内容,则可以使用视频延续功能,在短视频应用中输入第一延续文本,如果用户想要修改第一延续文本,则可以采用本公开实施例提供的方法对第一延续文本进行一键修改,得到第二延续文本,然后根据第一视频片段和第二延续文本智能生成第二视频片段,比如第二延续文本为“小狗在奔跑过程中摔跤了”,则第二视频片段中的画面为小狗在奔跑过程中摔跤了,从而得到了对第一视频片段的内容进行延续的第二视频片段。For example, in the scenario of Vincent video. The terminal runs a short video application, which provides the function of Vincent video, and the function of Vincent video includes the video continuation function provided by the method based on the embodiment of the present disclosure. The user first enters the content text in the short video application to obtain the first video clip intelligently generated according to the content text. For example, if the content text is "a puppy running on the grass", the picture in the first video clip is a puppy running on the grass. If the user feels that the content in the first video clip is not rich enough and wants to continue some other content based on the content in the first video clip, the video continuation function can be used to enter the first continuation text in the short video application. If the user wants to modify the first continuation text, the method provided by the embodiment of the present disclosure can be used to modify the first continuation text with one key to obtain the second continuation text, and then the second video clip is intelligently generated according to the first video clip and the second continuation text. For example, if the second continuation text is "the puppy fell down while running", the picture in the second video clip is that the puppy fell down while running, thereby obtaining a second video clip that continues the content of the first video clip.

上述场景仅是示例,本公开实施例提供的视频处理方法还可以应用于其他场景下,本公开实施例对此不做限制。The above scenarios are only examples. The video processing method provided in the embodiments of the present disclosure may also be applied to other scenarios, which are not limited in the embodiments of the present disclosure.

图2是根据一示例性实施例示出的一种视频处理方法的流程图,该方法由电子设备执行,例如该电子设备可以为图1所示的终端101。参见图2,该方法包括以下步骤。Fig. 2 is a flow chart showing a video processing method according to an exemplary embodiment, the method is executed by an electronic device, for example, the electronic device may be the terminal 101 shown in Fig. 1. Referring to Fig. 2, the method includes the following steps.

在步骤201中,电子设备在视频界面显示第一视频片段。In step 201, the electronic device displays a first video clip on a video interface.

电子设备显示视频界面,该视频界面显示有第一视频片段。其中,该第一视频片段可以为电子设备获取到的任一视频片段,本公开实施例对第一视频片段的来源和获取方式不作限定。The electronic device displays a video interface, and the video interface displays a first video clip. The first video clip can be any video clip acquired by the electronic device, and the embodiment of the present disclosure does not limit the source and acquisition method of the first video clip.

示例性的,该第一视频片段可以为基于人工智能技术生成的视频片段,例如基于文生视频技术或者图生视频技术生成的一个视频片段。并且,该第一视频片段可以为基于人工智能技术生成的一个初始的视频片段,还可以为基于人工智能技术对其他视频片段进行延续得到的一个视频片段。Exemplarily, the first video clip may be a video clip generated based on artificial intelligence technology, such as a video clip generated based on text-generated video technology or image-generated video technology. Furthermore, the first video clip may be an initial video clip generated based on artificial intelligence technology, or may be a video clip obtained by continuing other video clips based on artificial intelligence technology.

示例性的,该第一视频片段还可以为拍摄得到的视频片段,或者为剪辑得到的视频片段等。Exemplarily, the first video clip may also be a video clip obtained by shooting, or a video clip obtained by editing, etc.

在步骤202中,电子设备响应于对第一视频片段的延续请求,显示第一延续文本,第一延续文本用于描述延续后的视频片段所需包含的内容。In step 202, the electronic device displays a first continuation text in response to a request for continuation of the first video segment, where the first continuation text is used to describe the content that the continued video segment needs to contain.

如果用户想要对该第一视频片段进行延续,则执行对该第一视频片段的延续操作,来触发针对该第一视频片段的延续请求。电子设备响应于该延续请求,获取相应的第一延续文本,并显示该第一延续文本。可选地,该第一延续文本可以为基于人工智能技术生成的,或者为基于用户的输入操作获取到的。If the user wants to continue the first video clip, a continuation operation on the first video clip is performed to trigger a continuation request for the first video clip. In response to the continuation request, the electronic device obtains a corresponding first continuation text and displays the first continuation text. Optionally, the first continuation text can be generated based on artificial intelligence technology, or obtained based on a user's input operation.

在步骤203中,电子设备响应于对第一延续文本的修改操作,对第一延续文本中与修改操作关联的所有词语进行修改,得到第二延续文本。In step 203, in response to the modification operation on the first continued text, the electronic device modifies all words in the first continued text that are associated with the modification operation to obtain a second continued text.

如果用户对第一延续文本不满意,想要对第一延续文本进行修改,则执行对第一延续文本的修改操作,来将第一延续文本中与修改操作关联的所有词语一并进行修改,无需用户挨个进行修改。If the user is not satisfied with the first continued text and wants to modify the first continued text, the user can perform a modification operation on the first continued text to modify all words in the first continued text associated with the modification operation without the user having to modify each word one by one.

在步骤204中,电子设备基于第一视频片段和第二延续文本,生成第二视频片段,第二视频片段的内容是对第一视频片段的内容的延续,且第二视频片段的内容与第二延续文本的内容相符。In step 204, the electronic device generates a second video segment based on the first video segment and the second continuation text, wherein the content of the second video segment is a continuation of the content of the first video segment, and the content of the second video segment is consistent with the content of the second continuation text.

电子设备根据第一视频片段中的内容和第二延续文本描述的内容,生成第二视频片段。该第二视频片段即为对第一视频片段进行延续得到的视频片段。The electronic device generates a second video segment according to the content in the first video segment and the content described by the second continuation text. The second video segment is a video segment obtained by continuing the first video segment.

其中,第二视频片段的内容是对第一视频片段的内容的延续,也即是第二视频片段的内容是在第一视频片段的内容的基础上进行扩展和追加得到的,是对第一视频片段的内容的延长或者续写。The content of the second video clip is a continuation of the content of the first video clip, that is, the content of the second video clip is expanded and added on the basis of the content of the first video clip, and is an extension or continuation of the content of the first video clip.

本公开实施例提供的方法,如果想要在第一视频片段的基础上进行延续更多的内容,则可以请求对第一视频片段进行延续,第一延续文本用于描述延续后的视频片段所需包含的内容,如果用户想要修改第一延续文本,通过执行对第一延续文本的修改操作,可以一键将第一延续文本中与修改操作相关的所有词语进行修改,进而基于修改后的延续文本生成延续后的第二视频片段。由于本公开中在用户具有修改延续文本的需求时,可以一键实现全文修改,无需用户挨个查找所需修改的词语一个个手动修改,节省了用户的操作时间,提高了修改效率,进而提高了延续视频的整体效率。According to the method provided by the embodiment of the present disclosure, if more content is to be continued on the basis of the first video clip, a request can be made to continue the first video clip, and the first continuation text is used to describe the content that the continued video clip needs to contain. If the user wants to modify the first continuation text, by performing a modification operation on the first continuation text, all words related to the modification operation in the first continuation text can be modified with one click, and then a second video clip after the continuation is generated based on the modified continuation text. In the present disclosure, when the user has the need to modify the continuation text, the entire text can be modified with one click, and the user does not need to search for the words to be modified one by one and modify them manually, which saves the user's operation time, improves the modification efficiency, and thus improves the overall efficiency of the continued video.

上述图2所示的实施例仅是对视频处理方法的简要说明,本公开实施例在上述图2所示实施例的基础上,还提供了另一种视频处理方法。图3是根据一示例性实施例示出的另一种视频处理方法的流程图,该方法由电子设备执行,例如该电子设备可以为图1所示的终端101。参见图3,该方法包括以下步骤。The embodiment shown in FIG. 2 is only a brief description of the video processing method. Based on the embodiment shown in FIG. 2, the embodiment of the present disclosure further provides another video processing method. FIG. 3 is a flow chart of another video processing method according to an exemplary embodiment. The method is executed by an electronic device, for example, the electronic device may be the terminal 101 shown in FIG. 1. Referring to FIG. 3, the method includes the following steps.

在步骤301中,电子设备在视频界面显示第一视频片段。In step 301, the electronic device displays a first video clip on a video interface.

在一些实施例中,该第一视频片段为本地存储的视频片段,该第一视频片段可以为拍摄得到的视频片段、剪辑得到的视频片段或者基于人工智能技术生成并下载的视频片段。则该步骤301包括:电子设备在视频界面显示视频上传入口,响应于对该视频上传入口的触发操作,显示本地相册,本地相册包括本地存储的至少一个视频片段,响应于对本地相册中的第一视频片段的触发操作,在视频界面显示该第一视频片段。In some embodiments, the first video clip is a locally stored video clip, and the first video clip can be a video clip obtained by shooting, a video clip obtained by editing, or a video clip generated and downloaded based on artificial intelligence technology. Then step 301 includes: the electronic device displays a video upload entrance on the video interface, and in response to a trigger operation on the video upload entrance, displays a local album, the local album includes at least one locally stored video clip, and in response to a trigger operation on the first video clip in the local album, displays the first video clip on the video interface.

在一些实施例中,该第一视频片段为在该视频界面中基于人工智能技术生成的视频片段。则该步骤301包括:电子设备在视频界面显示信息编辑区域和生成控件,基于在信息编辑区域的编辑操作,获取内容信息,该内容信息指示待生成的视频片段所需包含的内容,响应于对该生成控件的触发操作,基于内容信息,生成第一视频片段,在视频界面显示该第一视频片段。其中,该第一视频片段的内容与该内容信息指示的内容相符。In some embodiments, the first video clip is a video clip generated based on artificial intelligence technology in the video interface. Then step 301 includes: the electronic device displays an information editing area and a generation control in the video interface, obtains content information based on the editing operation in the information editing area, and the content information indicates the content required to be included in the video clip to be generated, generates a first video clip based on the content information in response to a triggering operation on the generation control, and displays the first video clip in the video interface. The content of the first video clip is consistent with the content indicated by the content information.

可选地,该内容信息可以为任意类型的信息,例如该内容信息可以包括文本、图像或者音频等。Optionally, the content information may be any type of information, for example, the content information may include text, image or audio.

图4是根据一示例性实施例示出的一种视频界面的示意图,图4以内容信息包括内容文本为例进行展示。如图4所示,该视频界面包括第一视频片段401和内容文本402,该内容文本402属于生成该第一视频片段401所使用的内容信息。Fig. 4 is a schematic diagram of a video interface according to an exemplary embodiment, and Fig. 4 takes the content information including content text as an example for display. As shown in Fig. 4, the video interface includes a first video clip 401 and content text 402, and the content text 402 belongs to the content information used to generate the first video clip 401.

图5是根据一示例性实施例示出的另一种视频界面的示意图,图5以内容信息包括参考图像为例进行展示。如图5所示,该视频界面包括第一视频片段401和参考图像403,该参考图像403属于生成该第一视频片段401所使用的内容信息。Fig. 5 is a schematic diagram of another video interface according to an exemplary embodiment, and Fig. 5 takes the example of content information including a reference image for display. As shown in Fig. 5, the video interface includes a first video clip 401 and a reference image 403, and the reference image 403 belongs to the content information used to generate the first video clip 401.

图6是根据一示例性实施例示出的又一种视频界面的示意图,图6以内容信息包括内容文本和参考图像为例进行展示。如图6所示,该视频界面包括第一视频片段401、内容文本402和参考图像403,该内容文本402和参考图像403属于生成该第一视频片段401所使用的内容信息。Fig. 6 is a schematic diagram of another video interface according to an exemplary embodiment, and Fig. 6 takes the content information including content text and reference image as an example for display. As shown in Fig. 6, the video interface includes a first video clip 401, content text 402 and reference image 403, and the content text 402 and reference image 403 belong to the content information used to generate the first video clip 401.

在一些实施例中,电子设备中运行有短视频应用,电子设备在短视频应用中显示视频界面。电子设备对短视频应用中的视频续写功能进行更新,在更新短视频应用中的视频续写功能之后,在首次显示显示视频界面时,在该视频界面显示续写功能介绍信息,该续写功能介绍信息用于对短视频应用中的视频续写功能进行介绍。该续写功能介绍信息可以包括文本、图像、视频等。In some embodiments, a short video application is running in the electronic device, and the electronic device displays a video interface in the short video application. The electronic device updates the video continuation function in the short video application. After the video continuation function in the short video application is updated, when the video interface is displayed for the first time, the continuation function introduction information is displayed on the video interface, and the continuation function introduction information is used to introduce the video continuation function in the short video application. The continuation function introduction information may include text, images, videos, etc.

图7是根据一示例性实施例示出的一种功能介绍区域的示意图,如图7所示,在更新短视频应用中的视频续写功能之后,在首次显示显示视频界面时,在该视频界面显示功能介绍区域701,该功能介绍区域701包括续写功能介绍信息、退出控件和确认控件,该续写功能介绍信息包括提示文本和教程视频,该教程视频用于介绍视频续写功能,例如该教程视频可以展示使用视频续写功能的过程等,该确认控件上显示有“知道了”。Figure 7 is a schematic diagram of a function introduction area according to an exemplary embodiment. As shown in Figure 7, after the video continuation function in the short video application is updated, when the video interface is displayed for the first time, a function introduction area 701 is displayed on the video interface. The function introduction area 701 includes continuation function introduction information, an exit control and a confirmation control. The continuation function introduction information includes prompt text and a tutorial video. The tutorial video is used to introduce the video continuation function. For example, the tutorial video can show the process of using the video continuation function, etc., and "Got it" is displayed on the confirmation control.

在步骤302中,电子设备响应于对第一视频片段的延续请求,显示第一延续文本,第一延续文本用于描述延续后的视频片段所需包含的内容,第一延续文本用于描述延续后的视频片段所需包含的内容。In step 302, the electronic device displays a first continuation text in response to a request to continue the first video segment, where the first continuation text is used to describe the content that the continued video segment needs to include. The first continuation text is used to describe the content that the continued video segment needs to include.

如果用户想要对该第一视频片段进行延续,则执行对该第一视频片段的延续操作,来触发针对该第一视频片段的延续请求。电子设备响应于该延续请求,在视频界面第一延续文本。If the user wants to continue the first video segment, a continuation operation on the first video segment is performed to trigger a continuation request for the first video segment. In response to the continuation request, the electronic device displays a first continuation text on the video interface.

在一些实施例中,该步骤302包括:基于在视频界面中的文本编辑操作,获取第一延续文本。In some embodiments, step 302 includes: obtaining a first continuation text based on a text editing operation in the video interface.

可选地,视频界面显示有延续文本编辑区域,延续文本编辑区域中显示有文本输入框,用户在文本输入框中执行文本输入操作,电子设备基于在文本输入框中的文本输入操作,获取输入的第一延续文本。Optionally, the video interface displays a continuation text editing area, a text input box is displayed in the continuation text editing area, the user performs a text input operation in the text input box, and the electronic device obtains the input first continuation text based on the text input operation in the text input box.

可选地,文本输入框显示有第一视频片段的内容文本,该第一视频片段的内容文本用于描述第一视频片段中的内容,该第一视频片段的内容文本可以为生成第一视频片段时所使用的内容文本,或者该第一视频片段的内容文本可以为对第一视频片段进行内容识别得到的内容文本。电子设备基于对该第一视频片段的内容文本的编辑操作,获取编辑后的第一延续文本。电子设备将第一视频片段的内容文本展示给用户,用户可以在该内容文本的基础上进行编辑,例如对该内容文本进行续写、删减或者修改等,从而得到第一延续文本。由于该第一延续文本是在内容文本的基础上编辑得到的,因此可以认为该第一延续文本与该内容文本具有较强的关联性。Optionally, the text input box displays the content text of the first video clip, and the content text of the first video clip is used to describe the content in the first video clip. The content text of the first video clip can be the content text used when generating the first video clip, or the content text of the first video clip can be the content text obtained by performing content recognition on the first video clip. The electronic device obtains the edited first continuation text based on the editing operation of the content text of the first video clip. The electronic device displays the content text of the first video clip to the user, and the user can edit it based on the content text, such as continuing, deleting or modifying the content text, so as to obtain the first continuation text. Since the first continuation text is edited based on the content text, it can be considered that the first continuation text has a strong correlation with the content text.

可选地,如果用户未执行对该内容文本的编辑操作,则将该内容文本直接确定为第一延续文本。也即是,可以直接使用第一视频片段的内容文本,作为第一延续文本。Optionally, if the user does not perform an editing operation on the content text, the content text is directly determined as the first continuation text. That is, the content text of the first video clip can be directly used as the first continuation text.

图8是根据一示例性实施例示出的一种延续文本编辑区域的示意图,如图8所示,该视频界面显示有延续文本编辑区域801,该延续文本编辑区域801中显示有文本输入框802和确认控件803,该文本输入框802中显示有第一视频片段的内容文本“一辆超级跑车,在美丽的城市中缓缓前进,背后的城市五彩斑斓,8k画质,超写实画风,赛博朋克”。Figure 8 is a schematic diagram of a continuation text editing area according to an exemplary embodiment. As shown in Figure 8, the video interface displays a continuation text editing area 801, and a text input box 802 and a confirmation control 803 are displayed in the continuation text editing area 801. The text input box 802 displays the content text of the first video clip "A super sports car is moving slowly in a beautiful city, and the city behind it is colorful, 8k picture quality, hyper-realistic style, cyberpunk".

可选地,在第一视频片段是基于参考图像生成的,电子设备在该延续文本编辑区域中显示提示文本,该提示文本用于提示根据参考图像的内容输入延续文本。可选地,该延续文本编辑区域中还可以显示推荐文本,该推荐文本是基于参考图像智能生成的,以便用户在参考图像对应的推荐文本的基础上编辑第一延续文本。Optionally, when the first video clip is generated based on the reference image, the electronic device displays a prompt text in the continuation text editing area, the prompt text is used to prompt the user to enter the continuation text according to the content of the reference image. Optionally, the continuation text editing area may also display a recommended text, which is intelligently generated based on the reference image, so that the user can edit the first continuation text based on the recommended text corresponding to the reference image.

图9是根据一示例性实施例示出的另一种延续文本编辑区域的示意图,如图9所示,该视频界面显示有延续文本编辑区域801,该延续文本编辑区域801中显示有文本输入框802和确认控件803,该文本输入框802中显示有提示文本“结合图片,描述你想生成的画面内容”和推荐文本“例如:一辆超级跑车,在五彩斑斓的城市里驰骋”。FIG9 is a schematic diagram of another type of continuation text editing area according to an exemplary embodiment. As shown in FIG9 , the video interface displays a continuation text editing area 801, in which a text input box 802 and a confirmation control 803 are displayed. The text input box 802 displays a prompt text “Combine the picture and describe the content of the picture you want to generate” and a recommended text “For example: a super sports car, galloping in a colorful city”.

本公开实施例中,用户可以输入第一延续文本,来描述期望延续后的视频片段中包含哪些内容,有利于精准地传达所需包含的内容,进而提高生成的视频片段的准确性。而且通过编辑第一延续文本即可指定所需包含的内容,操作简便且灵活,有利于提高视频制作的便捷性和灵活性,降低视频制作的成本。In the disclosed embodiment, the user can enter the first continuation text to describe what content is expected to be included in the video clip after the continuation, which is conducive to accurately conveying the content required to be included, thereby improving the accuracy of the generated video clip. Moreover, the content required to be included can be specified by editing the first continuation text, which is simple and flexible to operate, which is conducive to improving the convenience and flexibility of video production and reducing the cost of video production.

并且,向用户提供第一视频片段的内容文本,用户可以在第一视频片段的内容文本的基础上进行编辑,得到第一延续文本。一方面,可以协助用户编辑第一延续文本,避免用户无从下手的情况,为用户提供了借鉴。另一方面,由于第一延续文本是在内容文本的基础上编辑得到的,因此第一延续文本与内容文本的关联性相对较强,而内容文本是用来指示第一视频片段的内容的,第一延续文本是用来指示第二视频片段的内容的。那么,这样可以保证第二视频片段的内容与第一视频片段之间的关联性较强,从而提高延续后的视频片段与原有的视频片段之间的一致性和连贯性。In addition, the content text of the first video clip is provided to the user, and the user can edit the content text of the first video clip to obtain the first continuation text. On the one hand, the user can be assisted in editing the first continuation text to avoid the situation where the user is at a loss, and a reference is provided for the user. On the other hand, since the first continuation text is edited on the basis of the content text, the correlation between the first continuation text and the content text is relatively strong, and the content text is used to indicate the content of the first video clip, and the first continuation text is used to indicate the content of the second video clip. Then, it can be ensured that the content of the second video clip is highly correlated with the first video clip, thereby improving the consistency and coherence between the continued video clip and the original video clip.

在一些实施例中,该步骤302包括:对第一视频片段的内容文本进行续写,得到第一延续文本,内容文本用于描述第一视频片段的内容。In some embodiments, step 302 includes: continuing to write the content text of the first video clip to obtain a first continuation text, where the content text is used to describe the content of the first video clip.

可选地,电子设备将第一视频片段的内容文本输入至文本续写模型,由文本续写模型对第一视频片段的内容文本进行续写,输出第一延续文本。Optionally, the electronic device inputs the content text of the first video clip into a text continuation model, and the text continuation model continues to write the content text of the first video clip and outputs a first continuation text.

示例性的,该第一视频片段是在该视频界面中,基于人工智能技术生成的视频片段。例如,在文生视频场景下,该内容文本是用于生成该第一视频片段的信息。那么,电子设备中存储有该第一视频片段的内容文本,电子设备直接获取已存储的该内容文本即可。Exemplarily, the first video clip is a video clip generated based on artificial intelligence technology in the video interface. For example, in a Vincent video scene, the content text is information used to generate the first video clip. Then, the electronic device stores the content text of the first video clip, and the electronic device can directly obtain the stored content text.

示例性的,视频界面中的该第一视频片段是从本地上传的视频片段。那么,电子设备对该第一视频片段进行内容识别,得到内容文本。例如,电子设备对第一视频片段进行字幕识别,将识别得到的字幕作为内容文本;或者,电子设备对第一视频片段的画面进行识别,得到用于描述画面的内容文本;或者,电子设备将第一视频片段中的音频转换为文本,将转换得到的文本作为内容文本等。Exemplarily, the first video clip in the video interface is a video clip uploaded locally. Then, the electronic device performs content recognition on the first video clip to obtain content text. For example, the electronic device performs subtitle recognition on the first video clip and uses the recognized subtitles as content text; or, the electronic device recognizes the screen of the first video clip and obtains content text for describing the screen; or, the electronic device converts the audio in the first video clip into text and uses the converted text as content text, etc.

在步骤303中,电子设备响应于对第一延续文本的修改操作,对第一延续文本中与修改操作关联的所有词语进行修改,得到第二延续文本。In step 303, in response to the modification operation on the first continued text, the electronic device modifies all words in the first continued text that are associated with the modification operation to obtain a second continued text.

如果用户对第一延续文本不满意,想要对第一延续文本进行修改,则执行对第一延续文本的修改操作,来将第一延续文本中与修改操作关联的所有词语一并进行修改,无需用户挨个进行修改。If the user is not satisfied with the first continued text and wants to modify the first continued text, the user can perform a modification operation on the first continued text to modify all words in the first continued text associated with the modification operation without the user having to modify each word one by one.

在一些实施例中,该步骤303包括:显示多种事件元素的展示区域,在事件元素的展示区域显示第一延续文本中属于事件元素的词语;响应于对目标事件元素的展示区域中词语的修改操作,获取修改后的第一词语,目标事件元素为多种事件元素中的任意一种;将第一延续文本中属于目标事件元素的所有词语均替换为第一词语,得到第二延续文本。In some embodiments, step 303 includes: displaying a display area for multiple event elements, displaying words belonging to the event elements in the first continuation text in the display area for the event elements; obtaining the modified first word in response to a modification operation on a word in the display area for the target event element, wherein the target event element is any one of the multiple event elements; replacing all words belonging to the target event element in the first continuation text with the first word to obtain a second continuation text.

事件元素是指构成一个事件的元素,例如事件元素包括时间、地点、主体等元素。Event elements refer to the elements that constitute an event, such as time, place, subject, etc.

示例性的,图10是本公开实施例提供的一种展示区域的示意图,如图10所示,该视频界面显示有时间元素的展示区域1001、地点元素的展示区域1002和主体元素的展示区域1003。第一延续文本为“傍晚时分一辆超级跑车在美丽的城市中缓缓前进,超级跑车从路上不断穿越”, 时间元素的展示区域1001包括“傍晚”,地点元素的展示区域1002包括“城市”,主体元素的展示区域1003包括“超级跑车”。如果用户想将第一延续文本的主体从“超级跑车”修改为“飞机”,则将主体元素的展示区域1003中的“超级跑车”修改为“飞机”。电子设备响应于该修改操作,将第一延续文本中所有属于主体的词语均修改为“飞机”,得到第二延续文本“傍晚时分一辆飞机在美丽的城市中缓缓前进,飞机从路上不断穿越”。Exemplarily, FIG10 is a schematic diagram of a display area provided by an embodiment of the present disclosure. As shown in FIG10 , the video interface displays a display area 1001 of a time element, a display area 1002 of a location element, and a display area 1003 of a main element. The first continuation text is "In the evening, a super sports car moves slowly in a beautiful city, and the super sports car keeps passing through the road." The display area 1001 of the time element includes "evening," the display area 1002 of the location element includes "city," and the display area 1003 of the main element includes "super sports car." If the user wants to change the main body of the first continuation text from "super sports car" to "airplane," the "super sports car" in the display area 1003 of the main element is changed to "airplane." In response to the modification operation, the electronic device changes all the words belonging to the main body in the first continuation text to "airplane," and obtains the second continuation text "In the evening, a plane moves slowly in a beautiful city, and the plane keeps passing through the road."

在一些实施例中,该步骤303包括:响应于在第一延续文本中对第二词语的修改操作,获取修改后的第三词语;将第一延续文本中与第二词语相同的所有词语均替换为第三词语,得到第二延续文本。In some embodiments, step 303 includes: in response to a modification operation on the second word in the first continuation text, obtaining a modified third word; replacing all words in the first continuation text that are identical to the second word with the third word to obtain a second continuation text.

也即是,通过修改第一延续文本中的某一个词语,可以一键将该第一延续文本中与该词语相同的所以词语均自动进行相同修改。That is, by modifying a certain word in the first continued text, all words in the first continued text that are the same as the word can be automatically modified in the same way with one click.

例如,第一延续文本为“傍晚时分一辆超级跑车在美丽的城市中缓缓前进,超级跑车从路上不断穿越”,如果用户将第一延续文本中的第一个“超级跑车”修改为“飞机”,则电子设备自动将第一延续文本中的第二个“超级跑车”修改为“飞机”,从而得到第二延续文本“傍晚时分一辆飞机在美丽的城市中缓缓前进,飞机从路上不断穿越”。For example, the first continuation text is "In the evening, a super sports car moves slowly in the beautiful city, and the super sports car keeps passing through the road." If the user changes the first "super sports car" in the first continuation text to "airplane", the electronic device automatically changes the second "super sports car" in the first continuation text to "airplane", thereby obtaining the second continuation text "In the evening, a plane moves slowly in the beautiful city, and the plane keeps passing through the road."

在步骤304中,若第二延续文本的内容与第一视频片段的内容不相符,则电子设备显示提示信息,提示信息用于提示第二延续文本的内容与第一视频片段的内容不相符。In step 304, if the content of the second continuation text does not match the content of the first video clip, the electronic device displays a prompt message, where the prompt message is used to prompt that the content of the second continuation text does not match the content of the first video clip.

第二延续文本用于指示对第一视频片段延续后得到的视频片段所需包含的内容,如果第二延续文本的内容与第一视频片段的内容不相符,则可能导致延续后得到的视频片段的内容与第一视频片段的内容相矛盾,此种情况下,电子设备显示提示信息,来提示用户修改后的第二延续文本的内容与第一视频片段的内容不相符。The second continuation text is used to indicate the content that the video segment obtained after the continuation of the first video segment must contain. If the content of the second continuation text does not match the content of the first video segment, it may cause the content of the video segment obtained after the continuation to be inconsistent with the content of the first video segment. In this case, the electronic device displays a prompt message to prompt the user that the content of the modified second continuation text does not match the content of the first video segment.

在一些实施例中,视频界面还显示有第一视频片段的进度条。该步骤304包括:若第二延续文本的内容与第一视频片段中目标时段的内容不相符,则对第一视频片段的进度条上目标时段对应的区域进行突出显示,以提示第二延续文本的内容与目标时段的内容不相符。In some embodiments, the video interface also displays a progress bar of the first video segment. Step 304 includes: if the content of the second continuation text does not match the content of the target time period in the first video segment, highlighting the area corresponding to the target time period on the progress bar of the first video segment to indicate that the content of the second continuation text does not match the content of the target time period.

可选地,电子设备将进度条上目标时段对应的区域显示为目标颜色,从而对该进度条上目标时段对应的区域进行突出显示,例如目标颜色为红色等。或者,电子设备将进度条上目标时段对应的区域加宽显示,从而对该进度条上目标时段对应的区域进行突出显示。Optionally, the electronic device displays the area corresponding to the target period on the progress bar as a target color, thereby highlighting the area corresponding to the target period on the progress bar, for example, the target color is red, etc. Alternatively, the electronic device displays the area corresponding to the target period on the progress bar in a wider width, thereby highlighting the area corresponding to the target period on the progress bar.

例如,如图11所示,第一视频片段中目标时段的内容为小明抱着足球,第二延续文本的内容为小明将手里的篮球扔出去,那么第二延续文本的内容与第一视频片段中目标时段的内容不相符,则电子设备对进度条上目标时段对应的区域1101进行加宽。For example, as shown in FIG11 , the content of the target time period in the first video clip is Xiao Ming holding a football, and the content of the second continuation text is Xiao Ming throwing the basketball in his hand. If the content of the second continuation text does not match the content of the target time period in the first video clip, the electronic device widens the area 1101 corresponding to the target time period on the progress bar.

在一些实施例中,视频界面还显示有第一视频片段的内容文本,内容文本用于描述第一视频片段的内容。该步骤304包括:若第二延续文本的内容与内容文本中目标片段的内容不相符,则对内容文本中目标片段进行突出显示,以提示第二延续文本的内容与目标片段的内容不相符。In some embodiments, the video interface also displays a content text of the first video segment, and the content text is used to describe the content of the first video segment. Step 304 includes: if the content of the second continuation text does not match the content of the target segment in the content text, highlighting the target segment in the content text to indicate that the content of the second continuation text does not match the content of the target segment.

可选地,电子设备将内容文本中目标片段进行高亮显示、加粗显示或者添加下划线,从而对内容文本中目标片段进行突出显示。Optionally, the electronic device highlights, bolds or underlines the target segment in the content text, thereby highlighting the target segment in the content text.

例如,如图12所示,内容文本1201中目标片段的内容为小明抱着足球,第二延续文本1202的内容为小明将手里的篮球扔出去,那么第二延续文本1202的内容与内容文本1201中目标时段的内容不相符,则电子设备将内容文本1201中目标片段进行加粗显示。For example, as shown in FIG12 , the content of the target segment in the content text 1201 is Xiao Ming holding a football, and the content of the second continuation text 1202 is Xiao Ming throwing the basketball in his hand. If the content of the second continuation text 1202 does not match the content of the target time period in the content text 1201, the electronic device will display the target segment in the content text 1201 in bold.

需要说明的是,若第二延续文本的内容与第一视频片段的内容相符,则无需显示提示信息,也即是无需执行该步骤304。It should be noted that if the content of the second continuation text is consistent with the content of the first video clip, there is no need to display the prompt information, that is, there is no need to perform step 304.

在步骤305中,电子设备基于第一视频片段和第二延续文本,生成第二视频片段,第二视频片段的内容是对第一视频片段的内容的延续,且第二视频片段的内容与第二延续文本的内容相符。In step 305, the electronic device generates a second video segment based on the first video segment and the second continuation text, wherein the content of the second video segment is a continuation of the content of the first video segment, and the content of the second video segment is consistent with the content of the second continuation text.

电子设备在获取到第二延续文本后,根据第一视频片段中的内容和第二延续文本指示的内容,生成第二视频片段。该第二视频片段即为对第一视频片段进行延续得到的视频片段。After acquiring the second continuation text, the electronic device generates a second video segment according to the content in the first video segment and the content indicated by the second continuation text. The second video segment is a video segment obtained by continuing the first video segment.

在一些实施例中,视频界面显示有延续确认控件,电子设备响应于对该延续确认控件的触发操作,基于第一视频片段和第二延续文本,生成第二视频片段。也即是,电子设备响应于对该延续确认控件的触发操作,开始执行生成第二视频片段的步骤。In some embodiments, the video interface displays a continuation confirmation control, and the electronic device generates a second video segment based on the first video segment and the second continuation text in response to a trigger operation on the continuation confirmation control. That is, the electronic device starts executing the step of generating the second video segment in response to a trigger operation on the continuation confirmation control.

可选地,终端响应于对该延续确认控件的触发操作,向服务器发送视频生成请求,该视频生成请求包括该第一视频片段的视频片段标识和第二延续文本。服务器接收视频生成请求,基于该视频片段标识查找第一视频片段,基于第一视频片段和第二延续文本,生成第二视频片段,向终端发送该第二视频片段,终端接收该第二视频片段,从而获取到对第一视频片段进行延续的第二视频片段。Optionally, in response to the triggering operation of the continuation confirmation control, the terminal sends a video generation request to the server, the video generation request including the video segment identifier of the first video segment and the second continuation text. The server receives the video generation request, searches for the first video segment based on the video segment identifier, generates a second video segment based on the first video segment and the second continuation text, sends the second video segment to the terminal, and the terminal receives the second video segment, thereby acquiring the second video segment that continues the first video segment.

在一些实施例中,基于第一视频片段和第二延续文本生成第二视频片段的过程,包括:将第一视频片段和第二延续文本输入视频生成模型,由视频生成模型基于第一视频片段和第二延续文本生成第二视频片段,输出该第二视频片段。其中,该视频生成模型是基于人工智能技术训练得到的模型,例如该视频生成模型为大语言模型等。In some embodiments, the process of generating a second video segment based on the first video segment and the second continuation text includes: inputting the first video segment and the second continuation text into a video generation model, generating the second video segment based on the first video segment and the second continuation text by the video generation model, and outputting the second video segment. The video generation model is a model trained based on artificial intelligence technology, for example, the video generation model is a large language model.

本公开实施例中,利用视频生成模型,自动基于第一视频片段和第二延续文本,生成对第一视频片段进行延续的第二视频片段,实现了视频生成过程的智能化和自动化,无需用户手动执行编辑操作,仅需用户上传生成视频所使用的第二延续文本,简化了用户操作,降低了视频生成的门槛,有利于提高视频生成的效率。In the disclosed embodiment, a video generation model is utilized to automatically generate a second video segment that continues the first video segment based on the first video segment and the second continuation text, thereby realizing the intelligence and automation of the video generation process. There is no need for the user to manually perform editing operations, and the user only needs to upload the second continuation text used to generate the video. This simplifies user operations, lowers the threshold for video generation, and is conducive to improving the efficiency of video generation.

在一些实施例中,该步骤305包括:获取第一视频片段的内容文本,内容文本用于描述第一视频片段的内容;基于内容文本和第二延续文本,生成第二视频片段。In some embodiments, step 305 includes: obtaining a content text of the first video segment, where the content text is used to describe the content of the first video segment; and generating a second video segment based on the content text and the second continuation text.

可选地,该电子设备为终端,终端向服务器发送视频生成请求,该视频生成请求包括该第一视频片段的视频片段标识和第二延续文本。服务器接收视频生成请求,基于该第一视频片段的视频片段标识,获取第一视频片段的内容文本。服务器基于内容文本和第二延续文本,生成第二视频片段,向终端发送该第二视频片段,终端接收该第二视频片段。Optionally, the electronic device is a terminal, and the terminal sends a video generation request to the server, where the video generation request includes a video segment identifier of the first video segment and a second continuation text. The server receives the video generation request, and acquires a content text of the first video segment based on the video segment identifier of the first video segment. The server generates a second video segment based on the content text and the second continuation text, and sends the second video segment to the terminal, and the terminal receives the second video segment.

可选地,将第一视频片段的内容文本和第二延续文本输入视频生成模型,由视频生成模型基于第一视频片段的内容文本和第二延续文本生成第二视频片段,输出第二视频片段。Optionally, the content text and the second continuation text of the first video clip are input into a video generation model, and the video generation model generates a second video clip based on the content text and the second continuation text of the first video clip, and outputs the second video clip.

可选地,第一视频片段的内容文本的获取方式与第一视频片段的获取方式有关。示例性的,该第一视频片段是在该视频界面中,基于人工智能技术生成的视频片段,该内容文本是用于生成该第一视频片段的信息。那么,电子设备中存储有该第一视频片段的内容文本,电子设备直接获取已存储的该内容文本即可。示例性的,视频界面中的该第一视频片段是从本地上传的视频片段。那么,电子设备对该第一视频片段进行内容识别,得到内容文本。Optionally, the method for obtaining the content text of the first video clip is related to the method for obtaining the first video clip. Exemplarily, the first video clip is a video clip generated based on artificial intelligence technology in the video interface, and the content text is information used to generate the first video clip. Then, the electronic device stores the content text of the first video clip, and the electronic device directly obtains the stored content text. Exemplarily, the first video clip in the video interface is a video clip uploaded locally. Then, the electronic device performs content recognition on the first video clip to obtain the content text.

在一些实施例中,电子设备在生成第二视频片段后,创建该第二视频片段和生成该第二视频片段所使用的第二延续文本之间的对应关系,以表示该第二延续文本属于该第二视频片段,该第二延续文本能够指示该第二视频片段中的内容。后续可利用第二视频片段的第二延续文本,在第二视频片段的基础上继续进行延续。In some embodiments, after generating the second video segment, the electronic device creates a correspondence between the second video segment and the second continuation text used to generate the second video segment, so as to indicate that the second continuation text belongs to the second video segment, and the second continuation text can indicate the content in the second video segment. The second continuation text of the second video segment can be used to continue the second video segment.

在步骤306中,电子设备在视频界面,按照生成顺序显示第一视频片段和第二视频片段。In step 306, the electronic device displays the first video segment and the second video segment on the video interface in the order in which they are generated.

电子设备在获取到第二视频片段后,按照生成顺序显示第一视频片段和第二视频片段,由于第一视频片段的生成时间点早于第二视频片段的生成时间点,因此第二视频片段显示于第一视频片段的后面。After acquiring the second video segment, the electronic device displays the first video segment and the second video segment in the order of generation. Since the generation time point of the first video segment is earlier than the generation time point of the second video segment, the second video segment is displayed after the first video segment.

由于第二视频片段是对第一视频片段进行延续得到的,因此将第二视频片段显示于第一视频片段的后面,可以体现第二视频片段的内容是第一视频片段的内容的延续,有利于彰显第一视频片段与第二视频片段之间的连贯性和一致性。Since the second video clip is obtained by continuing the first video clip, displaying the second video clip after the first video clip can reflect that the content of the second video clip is a continuation of the content of the first video clip, which is conducive to highlighting the coherence and consistency between the first video clip and the second video clip.

图13是根据一示例性实施例示出的一种展示视频片段的示意图,如图13所示,视频界面显示有第一视频片段401和第二视频片段408,第二视频片段408显示于第一视频片段401的后面,且第二视频片段408与第一视频片段401相邻,也即是将第二视频片段408显示于第一视频片段401后面的第一个位置。如图4所示,在未显示第二视频片段408之前,第一视频片段401后面的第一个位置上显示有延续控件404,在生成第二视频片段408,将第二视频片段408显示于第一视频片段401后面的第一个位置,将延续控件404向后移动一个位置,以保证第二视频片段408与第一视频片段401是相邻的。FIG13 is a schematic diagram of displaying video clips according to an exemplary embodiment. As shown in FIG13 , the video interface displays a first video clip 401 and a second video clip 408. The second video clip 408 is displayed behind the first video clip 401, and the second video clip 408 is adjacent to the first video clip 401, that is, the second video clip 408 is displayed at the first position behind the first video clip 401. As shown in FIG4 , before the second video clip 408 is displayed, a continuation control 404 is displayed at the first position behind the first video clip 401. When the second video clip 408 is generated, the second video clip 408 is displayed at the first position behind the first video clip 401, and the continuation control 404 is moved backward by one position to ensure that the second video clip 408 is adjacent to the first video clip 401.

本公开实施例中,按照生成顺序显示第一视频片段和第二视频片段,从而以视频片段为单位展示原有的视频片段和延续后的视频片段,实现了将原有的视频片段和延续后的视频片段进行解耦,便于用户分别对原有的视频片段和延续后的视频片段进行后续的管理以及处理。In the disclosed embodiment, the first video segment and the second video segment are displayed in the order of generation, so that the original video segment and the continued video segment are displayed in units of video segments, thereby decoupling the original video segment and the continued video segment, making it convenient for users to perform subsequent management and processing of the original video segment and the continued video segment respectively.

在一些实施例中,第一视频片段是初始的视频片段,第二视频片段是延续后的视频片段。则该步骤306包括:在第一视频片段上显示初始标签,初始标签用于表示初始标签所在的视频片段是初始的视频片段;在第二视频片段上显示延续标签,延续标签用于表示延续标签所在的视频片段是延续后的视频片段。In some embodiments, the first video segment is an initial video segment, and the second video segment is a continued video segment. Then step 306 includes: displaying an initial tag on the first video segment, the initial tag is used to indicate that the video segment where the initial tag is located is the initial video segment; displaying a continued tag on the second video segment, the continued tag is used to indicate that the video segment where the continued tag is located is the continued video segment.

其中,初始的视频片段是指并非对其他视频片段进行延续得到的视频片段,而是初始生成或者初始拍摄得到的视频片段。延续后的视频片段是指对其他视频片段进行延续得到的视频片段。The initial video segment refers to a video segment that is not obtained by continuing other video segments, but is initially generated or initially shot. The continued video segment refers to a video segment that is obtained by continuing other video segments.

本公开实施例中,在第一视频片段上显示初始标签,在第二视频片段上显示延续标签,以表示第一视频片段是初始的视频片段,第二视频片段是延续后的视频片段,有利于协助用户区分哪个视频片段是初始的视频片段,哪个视频片段是延续后的视频片段,提高了显示效果。In the disclosed embodiment, an initial label is displayed on the first video segment, and a continuation label is displayed on the second video segment to indicate that the first video segment is the initial video segment and the second video segment is the continued video segment. This helps the user distinguish which video segment is the initial video segment and which video segment is the continued video segment, thereby improving the display effect.

在一些实施例中,第一视频片段为初始生成的视频片段,在生成第二视频片段之后,还可以在已生成的多个视频片段的基础上进行延续,得到下一个延续后的视频片段,然后按照生成顺序显示已生成的多个视频片段。In some embodiments, the first video segment is an initially generated video segment. After the second video segment is generated, it can be continued based on the multiple generated video segments to obtain the next continued video segment, and then the multiple generated video segments are displayed in the order of generation.

示例性的,电子设备在第一视频片段和第二视频片段的基础上进行延续,得到第三视频片段。那么,电子设备在视频界面,按照生成顺序显示第一视频片段、第二视频片段和第三视频片段。其中,电子设备生成第三视频片段的过程包括:电子设备响应于对已生成的多个视频片段的延续请求,获取第二个延续信息,基于第一视频片段、第二视频片段和第二个延续信息,生成第三视频片段,该第三视频片段的内容是对第一视频片段和第二视频片段的内容的延续,且该第三视频片段的内容与该第二个延续信息指示的内容相符。可选地,电子设备基于第一视频片段的内容信息、第二视频片段的延续信息和本次获取到的第二个延续信息,生成第三视频片段。可选地,电子设备在生成第三视频片段后,创建第三视频片段和第二个延续信息之间的对应关系,以表示第二个延续信息属于该第三视频片段,该第二个延续信息能够指示该第三视频片段中的内容。Exemplarily, the electronic device continues the first video clip and the second video clip to obtain the third video clip. Then, the electronic device displays the first video clip, the second video clip and the third video clip in the video interface in the order of generation. The process of the electronic device generating the third video clip includes: the electronic device obtains the second continuation information in response to the continuation request for the multiple video clips that have been generated, and generates the third video clip based on the first video clip, the second video clip and the second continuation information. The content of the third video clip is a continuation of the content of the first video clip and the second video clip, and the content of the third video clip is consistent with the content indicated by the second continuation information. Optionally, the electronic device generates the third video clip based on the content information of the first video clip, the continuation information of the second video clip and the second continuation information obtained this time. Optionally, after generating the third video clip, the electronic device creates a corresponding relationship between the third video clip and the second continuation information to indicate that the second continuation information belongs to the third video clip, and the second continuation information can indicate the content in the third video clip.

进一步地,电子设备在第一视频片段、第二视频片段和第三视频片段的基础上进行延续,得到第四视频片段。那么,电子设备在视频界面,按照生成顺序显示第一视频片段、第二视频片段、第三视频片段和第四视频片段。以此类推,电子设备可以依次得到多个延续后的视频片段,每个延续后的视频片段是在该视频片段之前的多个视频片段的基础上进行延续得到的。Furthermore, the electronic device continues the first video clip, the second video clip and the third video clip to obtain a fourth video clip. Then, the electronic device displays the first video clip, the second video clip, the third video clip and the fourth video clip in the video interface in the order of generation. By analogy, the electronic device can sequentially obtain multiple continued video clips, each of which is obtained by continuing the multiple video clips before the video clip.

图14是根据一示例性实施例示出的另一种展示视频片段的示意图,如图14所示,在视频界面按照生成顺序显示第一视频片段401、第二视频片段408和第三视频片段409,在已生成的多个视频片段的后面显示延续控件404。FIG14 is a schematic diagram of another method for displaying video clips according to an exemplary embodiment. As shown in FIG14 , a first video clip 401 , a second video clip 408 , and a third video clip 409 are displayed on a video interface in the order in which they are generated, and a continuation control 404 is displayed after the multiple video clips that have been generated.

在一些实施例中,在已生成的多个视频片段的数量大于预设数量的情况下,在视频界面显示按照生成顺序排在前面的预设数量个视频片段,该视频界面还显示有目标标志,该目标标志用于表示还存在已生成的视频片段没有在视频界面中显示。则电子设备基于在视频界面中的滑动操作,将视频界面中当前显示的至少一个视频片段替换为当前未显示的至少一个视频片段。或者,电子设备响应于在视频界面中对目标标志的触发操作,将视频界面中当前显示的至少一个视频片段替换为当前未显示的至少一个视频片段。In some embodiments, when the number of the generated video clips is greater than a preset number, the preset number of video clips in the front in the generation order are displayed on the video interface, and the video interface also displays a target mark, which is used to indicate that there are still generated video clips that are not displayed in the video interface. Then, based on the sliding operation in the video interface, the electronic device replaces at least one video clip currently displayed in the video interface with at least one video clip that is not currently displayed. Alternatively, the electronic device replaces at least one video clip currently displayed in the video interface with at least one video clip that is not currently displayed in response to the triggering operation of the target mark in the video interface.

可选地,视频界面中显示的视频片段的数量与延续控件的数量之和不超过预设数量。该延续控件排在已生成的多个视频片段的末尾。在视频界面显示有预设数量个视频片段的情况下,在视频界面取消显示延续控件。电子设备基于在视频界面中的滑动操作或者响应于在视频界面中对目标标志的触发操作,将视频界面中当前显示的至少一个视频片段替换为延续控件。Optionally, the sum of the number of video clips displayed in the video interface and the number of continuation controls does not exceed a preset number. The continuation control is arranged at the end of the multiple video clips that have been generated. In the case where the video interface displays a preset number of video clips, the continuation control is canceled from being displayed in the video interface. The electronic device replaces at least one video clip currently displayed in the video interface with a continuation control based on a sliding operation in the video interface or in response to a triggering operation of a target mark in the video interface.

图15是根据一示例性实施例示出的又一种展示视频片段的示意图,已生成的视频片段至少包括第一视频片段401、第二视频片段408、第三视频片段409和第四视频片段410,视频界面最多能显示4个视频片段,则如图15所示,在视频界面按照生成顺序显示第一视频片段401、第二视频片段408、第三视频片段409和第四视频片段410,该视频界面中取消显示延续控件,该视频界面的右侧还显示有目标标志411。FIG15 is another schematic diagram of displaying video clips according to an exemplary embodiment, wherein the generated video clips include at least a first video clip 401, a second video clip 408, a third video clip 409 and a fourth video clip 410, and the video interface can display up to four video clips. As shown in FIG15 , the first video clip 401, the second video clip 408, the third video clip 409 and the fourth video clip 410 are displayed in the video interface in the order of generation, the continuation control is cancelled in the video interface, and a target mark 411 is also displayed on the right side of the video interface.

在一些实施例中,电子设备在视频界面显示第二视频片段的删除控件。电子设备响应于对删除控件的触发操作,在视频界面删除第二视频片段。In some embodiments, the electronic device displays a delete control for the second video segment on the video interface, and the electronic device deletes the second video segment on the video interface in response to a triggering operation on the delete control.

可选地,电子设备在视频界面显示有多个已生成的视频片段的情况下,还显示有每个已生成的视频片段的删除控件,电子设备响应于对任一视频片段的删除控件的触发操作,在视频界面删除该视频片段。Optionally, when the electronic device displays multiple generated video clips on the video interface, it also displays a deletion control for each generated video clip. In response to a triggering operation of the deletion control for any video clip, the electronic device deletes the video clip on the video interface.

例如,电子设备先生成了第一视频片段,基于第一视频片段进行延续,生成了第二视频片段,基于第一视频片段和第二视频片段进行延续,生成了第三视频片段。在视频界面按照生成顺序显示第一视频片段、第二视频片段和第三视频片段。示例性的,如果用户仅想保留第二视频片段和第三视频片段,则可以删除第一视频片段。示例性的,如果用户认为第一视频片段和第三视频片段的内容关联性足够强,不想保留第二视频片段,仅想保留第一视频片段和第三视频片段,则可以删除第二视频片段。因此,删除视频片段的过程不会收到视频片段的生成顺序的影响。For example, the electronic device first generates a first video clip, continues based on the first video clip to generate a second video clip, and continues based on the first video clip and the second video clip to generate a third video clip. The first video clip, the second video clip, and the third video clip are displayed on the video interface in the order in which they are generated. Exemplarily, if the user only wants to keep the second video clip and the third video clip, the first video clip can be deleted. Exemplarily, if the user believes that the content correlation between the first video clip and the third video clip is strong enough and does not want to keep the second video clip, but only wants to keep the first video clip and the third video clip, the second video clip can be deleted. Therefore, the process of deleting video clips will not be affected by the order in which the video clips are generated.

本公开实施例中,对视频片段进行延续得到延续后的视频片段之后,用户如果对延续后的内容不满意,还可以删除延续后的视频片段,便于用户对智能化视频创作的内容质量进行控制,动态地管理生成的视频片段,提高了视频处理的自由度和灵活性,有利于提升用户体验。In the disclosed embodiment, after the video segment is continued to obtain the continued video segment, if the user is not satisfied with the continued content, the continued video segment can be deleted, which is convenient for the user to control the content quality of intelligent video creation and dynamically manage the generated video segments, thereby improving the freedom and flexibility of video processing and helping to enhance the user experience.

本公开实施例中,如果想要在第一视频片段的基础上进行延续更多的内容,则可以请求对第一视频片段进行延续,第一延续文本用于描述延续后的视频片段所需包含的内容,如果用户想要修改第一延续文本,通过执行对第一延续文本的修改操作,可以一键将第一延续文本中与修改操作相关的所有词语进行修改,进而基于修改后的延续文本生成延续后的第二视频片段。由于本公开中在用户具有修改延续文本的需求时,可以一键实现全文修改,无需用户挨个查找所需修改的词语一个个手动修改,节省了用户的操作时间,提高了修改效率,进而提高了延续视频的整体效率。In the embodiment of the present disclosure, if more content is to be continued based on the first video clip, a request can be made to continue the first video clip. The first continuation text is used to describe the content that the continued video clip needs to contain. If the user wants to modify the first continuation text, by performing a modification operation on the first continuation text, all words related to the modification operation in the first continuation text can be modified with one click, and then a second video clip after the continuation is generated based on the modified continuation text. In the present disclosure, when the user has the need to modify the continuation text, the entire text can be modified with one click, without the user having to search for the words to be modified one by one and modify them manually, which saves the user's operation time, improves the modification efficiency, and thus improves the overall efficiency of the continued video.

并且,本公开实施例提供了一种智能化对视频进行延续的方案,用户可以根据自身需求在原有的视频片段的基础上进行延续,提高了视频处理的便捷性和效率。Furthermore, the disclosed embodiment provides an intelligent solution for continuing the video, and the user can continue the video based on the original video clip according to his/her own needs, thereby improving the convenience and efficiency of video processing.

并且,延续文本是基于用户操作获取到的,因此用户可以根据自身需求自行编辑延续文本,也即是可以自行指定延续后的视频片段中应该包括哪些内容,从而灵活地延续视频内容,能够满足用户多样化的创作需求,增强了智能化创作的自由度和灵活性。由于可以直接指定延续的内容,因此用户无需反复执行生成过程来尝试生成满意的视频,提高了视频处理的便捷性。In addition, the continuation text is obtained based on user operations, so users can edit the continuation text according to their own needs, that is, they can specify what content should be included in the continued video clip, so as to flexibly continue the video content, meet the diverse creative needs of users, and enhance the freedom and flexibility of intelligent creation. Since the continuation content can be directly specified, users do not need to repeatedly perform the generation process to try to generate a satisfactory video, which improves the convenience of video processing.

并且,相关技术中,无法在已有视频的基础上进行延续,只能重新生成一个新的视频,摒弃已生成的视频,操作繁琐,容易做较多重复性工作。而本公开实施例中,在生成第一视频片段之后,如果用户想要生成指定的且与第一视频片段的内容相关联的视频片段,仅需提供延续文本在第一视频片段的基础上进行延续,得到延续后的第二视频片段,后续可以将第一视频片段和第二视频片段合并为完整的视频,从而简化了视频创作过程,提高了处理效率。Moreover, in the related art, it is impossible to continue on the basis of an existing video, and a new video can only be regenerated, and the generated video is discarded, which is cumbersome to operate and prone to doing a lot of repetitive work. However, in the embodiment of the present disclosure, after generating the first video segment, if the user wants to generate a specified video segment associated with the content of the first video segment, it is only necessary to provide a continuation text to continue on the basis of the first video segment to obtain a second video segment after the continuation. The first video segment and the second video segment can be subsequently merged into a complete video, thereby simplifying the video creation process and improving processing efficiency.

在上述图3的实施例的基础上,在执行上述步骤306之后,还可以执行以下四种操作中的任意一个。Based on the embodiment of FIG. 3 , after executing step 306 , any one of the following four operations may be performed.

第一种、电子设备在第一视频片段和第二视频片段中的至少一个视频片段被选中的情况下,响应于视频播放操作,播放被选中的至少一个视频片段。First, when at least one of the first video segment and the second video segment is selected, the electronic device plays the selected at least one video segment in response to a video playing operation.

在一些实施例中,视频界面显示有视频播放控件,电子设备在第一视频片段和第二视频片段中的至少一个视频片段被选中的情况下,响应于对该视频播放控件的触发操作,播放被选中的至少一个视频片段。In some embodiments, the video interface displays a video playback control, and when at least one of the first video segment and the second video segment is selected, the electronic device plays the selected at least one video segment in response to a triggering operation on the video playback control.

例如,在第一视频片段或第二视频片段中的其中一个被选中的情况下,响应于该视频播放控件的触发操作,电子设备播放被选中的视频片段。再例如,在第一视频片段和第二视频片段均被选中的情况下,响应于对该视频播放控件的触发操作,电子设备按照生成顺序播放第一视频片段和第二视频片段。也即是先播放第一视频片段,在第一视频片段播放完成后,接着播放第二视频片段。For example, when one of the first video clip or the second video clip is selected, in response to the triggering operation of the video playback control, the electronic device plays the selected video clip. For another example, when both the first video clip and the second video clip are selected, in response to the triggering operation of the video playback control, the electronic device plays the first video clip and the second video clip in the order in which they are generated. That is, the first video clip is played first, and after the first video clip is played, the second video clip is played.

在一些实施例中,视频界面按照生成顺序显示有已生成的多个视频片段,该多个视频片段包括上述第一视频片段、第二视频片段以及其他视频片段(如第三视频片段、第四视频片段等)。在多个视频片段中的至少两个视频片段被选中的情况下,响应于视频播放操作,按照生成播放被选中的至少两个视频片段。In some embodiments, the video interface displays multiple generated video clips in the order of generation, and the multiple video clips include the first video clip, the second video clip, and other video clips (such as the third video clip, the fourth video clip, etc.). When at least two video clips among the multiple video clips are selected, in response to the video play operation, the at least two selected video clips are played in the order of generation.

例如,视频界面按照生成顺序显示有已生成的第一视频片段、第二视频片段和第三视频片段,在第一视频片段和第三视频片段被选中的情况下,响应于视频播放操作,先播放第一视频片段,在第一视频片段播放完成后,接着播放第三视频片段。也即是,即使至少两个视频片段的生成顺序不相邻,也可以顺序播放不相邻的至少两个视频片段,来预览生成顺序不相邻的至少两个视频片段之间的衔接效果。可见,本公开实施例将延续后的各个视频片段进行解耦,以视频片段为单位进行展示和管理,有利于提高用户对视频片段进行操作的自由度和灵活性。For example, the video interface displays the generated first video clip, the second video clip, and the third video clip in the order of generation. When the first video clip and the third video clip are selected, in response to the video playback operation, the first video clip is played first, and after the first video clip is played, the third video clip is played next. That is, even if the generation order of at least two video clips is not adjacent, the at least two non-adjacent video clips can be played sequentially to preview the connection effect between the at least two video clips that are not adjacent in generation order. It can be seen that the embodiment of the present disclosure decouples the continued video clips and displays and manages them in units of video clips, which is conducive to improving the freedom and flexibility of users to operate video clips.

第二种、电子设备在第一视频片段和第二视频片段中的至少一个视频片段被选中的情况下,响应于视频剪辑操作,显示被选中的至少一个视频片段的剪辑界面。Second, when at least one of the first video segment and the second video segment is selected, the electronic device displays a clipping interface of the selected at least one video segment in response to a video clipping operation.

在一些实施例中,视频界面显示有视频剪辑控件,电子设备在第一视频片段和第二视频片段中的至少一个视频片段被选中的情况下,响应于对该视频剪辑控件的触发操作,显示被选中的至少一个视频片段的剪辑界面。如图4所示,视频界面显示有视频剪辑控件405。In some embodiments, the video interface displays a video clip control, and when at least one of the first video segment and the second video segment is selected, the electronic device displays a clipping interface of the selected at least one video segment in response to a triggering operation on the video clip control. As shown in FIG. 4 , the video interface displays a video clip control 405.

例如,在第一视频片段或第二视频片段中的其中一个被选中的情况下,响应于对该视频剪辑控件的触发操作,电子设备显示剪辑界面,该剪辑界面包括被选中的视频片段,用户可以在剪辑界面对被选中的视频片段进行剪辑。再例如,在第一视频片段和第二视频片段被选中的情况下,响应于对该视频剪辑控件的触发操作,电子设备显示剪辑界面,该剪辑界面包括第一视频片段和第二视频片段,用户可以在剪辑界面分别对第一视频片段和第二视频片段进行剪辑。For example, when one of the first video clip or the second video clip is selected, in response to the triggering operation of the video clipping control, the electronic device displays a clipping interface, the clipping interface includes the selected video clip, and the user can clip the selected video clip in the clipping interface. For another example, when the first video clip and the second video clip are selected, in response to the triggering operation of the video clipping control, the electronic device displays a clipping interface, the clipping interface includes the first video clip and the second video clip, and the user can clip the first video clip and the second video clip respectively in the clipping interface.

在一些实施例中,视频界面按照生成顺序显示有已生成的多个视频片段,该多个视频片段包括上述第一视频片段、第二视频片段以及其他视频片段(如第三视频片段、第四视频片段等)。在多个视频片段中的至少两个视频片段被选中的情况下,响应于视频剪辑操作,显示被选中的至少两个视频片段的剪辑界面。其中,被选中的至少两个视频片段的生成顺序可以相邻也可以不相邻。In some embodiments, the video interface displays multiple generated video clips in the order of generation, and the multiple video clips include the above-mentioned first video clip, the second video clip, and other video clips (such as the third video clip, the fourth video clip, etc.). When at least two video clips among the multiple video clips are selected, in response to the video editing operation, the editing interface of the at least two selected video clips is displayed. The generation order of the at least two selected video clips can be adjacent or non-adjacent.

第三种、电子设备在第一视频片段和第二视频片段中的至少一个视频片段被选中的情况下,响应于视频下载操作,下载被选中的至少一个视频片段。Third, when at least one of the first video segment and the second video segment is selected, the electronic device downloads the selected at least one video segment in response to a video downloading operation.

在一些实施例中,视频界面显示有视频下载控件,电子设备在第一视频片段和第二视频片段中的至少一个视频片段被选中的情况下,响应于对该视频下载控件的触发操作,下载被选中的至少一个视频片段。如图4所示,视频界面显示有视频下载控件406。In some embodiments, the video interface displays a video download control, and when at least one of the first video segment and the second video segment is selected, the electronic device downloads the selected at least one video segment in response to a triggering operation on the video download control. As shown in FIG4 , the video interface displays a video download control 406.

在一些实施例中,在第一视频片段和第二视频片段中均被选中的情况下,响应于视频下载操作,分别下载第一视频片段和第二视频片段,或者将第一视频片段和第二视频片段按照生成顺序合并为一个视频,下载合并后得到的视频。In some embodiments, when both the first video segment and the second video segment are selected, in response to a video download operation, the first video segment and the second video segment are downloaded separately, or the first video segment and the second video segment are merged into one video in the order of generation, and the merged video is downloaded.

在一些实施例中,视频界面按照生成顺序显示有已生成的多个视频片段,该多个视频片段包括上述第一视频片段、第二视频片段以及其他视频片段(如第三视频片段、第四视频片段等)。在多个视频片段中的至少两个视频片段被选中的情况下,响应于视频剪辑操作,下载被选中的至少两个视频片段。可选地,电子设备分别下载该至少两个视频片段,或者将该至少两个视频片段按照生成顺序合并为一个视频,下载合并后得到的视频。其中,被选中的至少两个视频片段的生成顺序可以相邻也可以不相邻。In some embodiments, the video interface displays multiple generated video clips in the order of generation, and the multiple video clips include the above-mentioned first video clip, the second video clip, and other video clips (such as the third video clip, the fourth video clip, etc.). When at least two video clips among the multiple video clips are selected, in response to the video editing operation, the at least two selected video clips are downloaded. Optionally, the electronic device downloads the at least two video clips separately, or merges the at least two video clips into one video in the order of generation, and downloads the merged video. Among them, the generation order of the at least two selected video clips can be adjacent or non-adjacent.

第四种、电子设备在第一视频片段和第二视频片段中的至少一个视频片段被选中的情况下,响应于视频发布操作,发布包含被选中的至少一个视频片段的视频。Fourthly, when at least one of the first video segment and the second video segment is selected, the electronic device publishes a video including the at least one selected video segment in response to a video publishing operation.

在一些实施例中,视频界面显示有视频发布控件,电子设备在第一视频片段和第二视频片段中的至少一个视频片段被选中的情况下,响应于对该视频发布控件的触发操作,发布包含被选中的至少一个视频片段的视频。如图4所示,视频界面显示有视频发布控件407。In some embodiments, the video interface displays a video publishing control, and the electronic device, in response to a triggering operation on the video publishing control, publishes a video containing the selected at least one video segment when at least one of the first video segment and the second video segment is selected. As shown in FIG. 4 , the video interface displays a video publishing control 407.

在一些实施例中,在第一视频片段和第二视频片段中均被选中的情况下,响应于视频发布操作,电子设备将第一视频片段和第二视频片段按照生成顺序进行合并,得到一个视频,发布该视频。In some embodiments, when both the first video segment and the second video segment are selected, in response to a video publishing operation, the electronic device merges the first video segment and the second video segment in the order of generation to obtain a video, and publishes the video.

可选地,电子设备在第一视频片段和第二视频片段被选中的情况下,响应于视频发布操作,基于第一视频片段的内容文本和第二视频片段的延续文本生成文案,第一视频片段的内容文本用于指示第一视频片段中的内容;按照生成顺序将第一视频片段和第二视频片段合并为一个视频;发布携带文案的视频;或者,基于对文案的编辑操作,获取编辑后的文案,发布携带编辑后的文案的视频。Optionally, when the first video clip and the second video clip are selected, the electronic device generates a copy based on the content text of the first video clip and the continuation text of the second video clip in response to a video publishing operation, wherein the content text of the first video clip is used to indicate the content in the first video clip; merges the first video clip and the second video clip into one video in the order of generation; publishes the video carrying the copy; or, based on an editing operation on the copy, obtains the edited copy and publishes the video carrying the edited copy.

其中,该文案是在内容文本和延续文本的基础上进行整合和总结得到的,该文案的语义与该内容文本的语义和延续文本的语义关联。The copy is integrated and summarized on the basis of the content text and the continuation text, and the semantics of the copy are associated with the semantics of the content text and the semantics of the continuation text.

可选地,电子设备将第一视频片段的内容文本和第二视频片段的延续文本输入文案生成模型,文案生成模型基于第一视频片段的内容文本和第二视频片段的延续文本,生成文案。其中,该文案生成模型是基于人工智能技术训练得到的模型,例如该文案生成模型为大语言模型等。Optionally, the electronic device inputs the content text of the first video clip and the continuation text of the second video clip into a copywriting generation model, and the copywriting generation model generates a copywriting based on the content text of the first video clip and the continuation text of the second video clip. The copywriting generation model is a model trained based on artificial intelligence technology, for example, the copywriting generation model is a large language model.

本公开实施例中,在发布第一视频片段和第二视频片段构成的视频时,可以根据第一视频片段的内容文本和第二视频片段的延续文本智能生成视频的文案,用户可以使用智能生成的文案进行发布,也可以对智能生成的文案进行编辑后再发布,从而自动为用户提供视频文案或者协助用户编辑视频文案,提高了确定视频文案的便捷性和效率。In the disclosed embodiment, when publishing a video composed of a first video clip and a second video clip, a text for the video can be intelligently generated based on the content text of the first video clip and the continuation text of the second video clip. The user can use the intelligently generated text for publishing, or edit the intelligently generated text before publishing, thereby automatically providing the user with the video text or assisting the user in editing the video text, thereby improving the convenience and efficiency of determining the video text.

本公开实施例提供的方法,用户可以灵活选择对第一视频片段和第二视频片段中的任一视频片段进行播放、剪辑、下载和发布,或者批量选择对第一视频片段和第二视频片段这两个视频片段进行播放、剪辑、下载和发布,实现了以视频片段为单位进行批量管理,提高了对视频进行管理的便捷性。According to the method provided by the embodiment of the present disclosure, the user can flexibly choose to play, edit, download and publish any one of the first video segment and the second video segment, or batch select to play, edit, download and publish both the first video segment and the second video segment, thereby realizing batch management in units of video segments and improving the convenience of video management.

并且,相关技术中,用户在发布视频时,往往存在时长限制,例如无法发布时长低于指定时长的视频等。而本公开实施例中,如果第一视频片段的时长不足,可以在第一视频片段的基础上进行延续得到第二视频片段,将第一视频片段和第二视频片段进行合并,得到一个内容连贯且时长更长的视频,解决了第一视频片段时长不足的问题,满足了用户分享视频的需求。Moreover, in the related art, when users publish videos, there is often a time limit, for example, it is impossible to publish a video whose time is less than a specified time. In the embodiment of the present disclosure, if the time of the first video segment is insufficient, the second video segment can be obtained by continuing the first video segment, and the first video segment and the second video segment can be merged to obtain a video with coherent content and longer time, which solves the problem of insufficient time of the first video segment and meets the needs of users to share videos.

并且,本公开实施例将延续后的各个视频片段进行解耦,以视频片段为单位对生成的多个视频片段进行展示和管理,在生成和延续得到的一系列视频片段中,每个视频片段作为一个独立的个体存在,用户可以在已生成的视频片段中,任意选择一个或多个视频片段进行管理,如播放、剪辑、下载和发布,且对选择的一个或多个视频片段进行管理的过程不受生成顺序的限制,且任意一个视频片段的管理过程也不会收到其他视频片段的影响,有利于提高用户对视频片段进行操作的自由度和灵活性。Furthermore, the disclosed embodiment decouples the continued video segments, and displays and manages the generated multiple video segments in units of video segments. In the series of video segments generated and continued, each video segment exists as an independent individual. The user can arbitrarily select one or more video segments from the generated video segments for management, such as playing, editing, downloading and publishing. The process of managing the selected one or more video segments is not restricted by the generation order, and the management process of any video segment will not be affected by other video segments, which is conducive to improving the freedom and flexibility of users in operating video segments.

图16是根据一示例性实施例示出的又一种视频处理方法的流程图,该方法由电子设备执行,参见图16,该方法包括以下步骤。Fig. 16 is a flow chart of yet another video processing method according to an exemplary embodiment. The method is executed by an electronic device. Referring to Fig. 16 , the method includes the following steps.

在步骤1601中,电子设备在视频界面显示第一视频片段。In step 1601, the electronic device displays a first video clip on a video interface.

在步骤1602中,电子设备响应于对第一视频片段的延续请求,显示第一延续文本,第一延续文本用于描述延续后的视频片段所需包含的内容。In step 1602, the electronic device displays a first continuation text in response to a request for continuation of the first video segment, where the first continuation text is used to describe the content that the continued video segment needs to include.

在步骤1603中,电子设备响应于对第一延续文本的修改操作,对第一延续文本中与修改操作关联的所有词语进行修改,得到第二延续文本。In step 1603, in response to the modification operation on the first continued text, the electronic device modifies all words associated with the modification operation in the first continued text to obtain a second continued text.

在步骤1604中,电子设备获取延续时长。In step 1604, the electronic device obtains the continuation duration.

在一些实施例中,电子设备在视频界面显示时长输入区域,基于时长输入区域中的输入操作获取延续时长。In some embodiments, the electronic device displays a duration input area on the video interface, and obtains the continuation duration based on the input operation in the duration input area.

电子设备基于时长输入区域中的输入操作,确定设置后的延续时长,将当前显示的延续时长更新为设置后的延续时长。也即是,用户可以灵活对延续后的视频片段的时长进行控制,进一步提高了视频制作的灵活性和便捷性。The electronic device determines the set duration based on the input operation in the duration input area, and updates the currently displayed duration to the set duration. That is, the user can flexibly control the duration of the extended video clip, further improving the flexibility and convenience of video production.

在一些实施例中,电子设备基于第二延续文本的文本长度获取延续时长。In some embodiments, the electronic device obtains the continuation duration based on the text length of the second continuation text.

可选地,延续时长与第二延续文本的文本长度正相关。也即是,第二延续文本的文本长度越长,则延续时长越长。第二延续文本的文本长度越短,则延续时长越短。Optionally, the continuation duration is positively correlated with the text length of the second continuation text. That is, the longer the text length of the second continuation text is, the longer the continuation duration is. The shorter the text length of the second continuation text is, the shorter the continuation duration is.

在一些实施例中,视频界面显示有第一视频片段、延续控件和延续时长,电子设备获取视频界面当前显示的延续时长。其中,该延续控件用于触发对视频片段的延续请求,该延续时长是指延续后得到的视频片段的时长。如图4所示,视频界面显示于延续控件404,该延续控件404上显示有延续时长,例如该延续时长为5s。In some embodiments, the video interface displays a first video clip, a continuation control, and a continuation duration, and the electronic device obtains the continuation duration currently displayed on the video interface. The continuation control is used to trigger a continuation request for the video clip, and the continuation duration refers to the duration of the video clip obtained after the continuation. As shown in FIG4 , the video interface is displayed on the continuation control 404, and the continuation duration is displayed on the continuation control 404, for example, the continuation duration is 5 seconds.

在步骤1605中,电子设备基于第一视频片段、第二延续文本和延续时长,生成第二视频片段,第二视频片段的内容是对第一视频片段的内容的延续,且第二视频片段的内容与第二延续文本描述的内容相符,且第二视频片段的时长等于延续时长。In step 1605, the electronic device generates a second video segment based on the first video segment, the second continuation text and the continuation duration, wherein the content of the second video segment is a continuation of the content of the first video segment, and the content of the second video segment is consistent with the content described by the second continuation text, and the duration of the second video segment is equal to the continuation duration.

电子设备在获取到第二延续文本后,根据第一视频片段中的内容、第二延续文本指示的内容和延续时长,生成第二视频片段。After acquiring the second continuation text, the electronic device generates a second video segment according to the content in the first video segment, the content indicated by the second continuation text, and the continuation duration.

在一些实施例中,该电子设备为终端,终端向服务器发送视频生成请求,该视频生成请求包括该第一视频片段的视频片段标识、第二延续文本和延续时长。服务器接收视频生成请求,基于该视频片段标识查找第一视频片段,基于第一视频片段、第二延续文本和延续时长,生成第二视频片段,向终端发送该第二视频片段,终端接收该第二视频片段,从而获取到对第一视频片段进行延续的第二视频片段。In some embodiments, the electronic device is a terminal, and the terminal sends a video generation request to a server, and the video generation request includes a video segment identifier, a second continuation text, and a continuation duration of the first video segment. The server receives the video generation request, searches for the first video segment based on the video segment identifier, generates a second video segment based on the first video segment, the second continuation text, and the continuation duration, and sends the second video segment to the terminal, and the terminal receives the second video segment, thereby obtaining a second video segment that continues the first video segment.

在一些实施例中,将第一视频片段、第二延续文本和延续时长输入该视频生成模型,由视频生成模型基于第一视频片段、第二延续文本和延续时长生成第二视频片段。In some embodiments, the first video segment, the second continuation text and the continuation duration are input into the video generation model, and the video generation model generates the second video segment based on the first video segment, the second continuation text and the continuation duration.

在一些实施例中,电子设备获取第一视频片段的内容信息,内容信息用于指示第一视频片段中的内容,基于第一视频片段的内容信息、第二延续文本和延续时长,生成第二视频片段。其中,该内容信息的获取方式与上述步骤304中内容信息的获取方式同理,在此不再赘述。In some embodiments, the electronic device obtains content information of the first video segment, the content information is used to indicate the content in the first video segment, and generates a second video segment based on the content information of the first video segment, the second continuation text and the continuation duration. The method of obtaining the content information is the same as the method of obtaining the content information in step 304, which will not be repeated here.

本公开实施例提供的方法,在生成第二视频片段时,还提供延续时长,使得延续后的第二视频片段的时长等于该延续时长,从而精准地控制延续后的视频片段的时长,确保延续后的视频片段能够在指定的时长内展示完毕,有利于提高智能化视频创作过程的可控性。The method provided by the embodiment of the present disclosure also provides a continuation duration when generating the second video segment, so that the duration of the continued second video segment is equal to the continuation duration, thereby accurately controlling the length of the continued video segment and ensuring that the continued video segment can be displayed within the specified duration, which is conducive to improving the controllability of the intelligent video creation process.

图17是根据一示例性实施例示出的再一种视频处理方法的流程图,该方法由电子设备执行,参见图17,该方法包括以下步骤。Fig. 17 is a flow chart of yet another video processing method according to an exemplary embodiment. The method is executed by an electronic device. Referring to Fig. 17 , the method includes the following steps.

在步骤1701中,电子设备在视频界面显示第一视频片段。In step 1701, the electronic device displays a first video clip on a video interface.

在步骤1702中,电子设备响应于对第一视频片段的延续请求,显示第一延续文本,第一延续文本用于描述延续后的视频片段所需包含的内容。In step 1702, the electronic device displays a first continuation text in response to a request for continuation of the first video segment, where the first continuation text is used to describe the content that the continued video segment needs to contain.

在步骤1703中,电子设备响应于对第一延续文本的修改操作,对第一延续文本中与修改操作关联的所有词语进行修改,得到第二延续文本。In step 1703, in response to the modification operation on the first continued text, the electronic device modifies all words associated with the modification operation in the first continued text to obtain a second continued text.

在步骤1704中,电子设备获取参考图像。In step 1704, the electronic device acquires a reference image.

电子设备在视频界面显示图像上传入口,基于图像上传入口获取参考图像,参考图像用于展示延续后的视频片段所需包含的内容。The electronic device displays an image upload entry on the video interface, and obtains a reference image based on the image upload entry. The reference image is used to display the content that needs to be included in the continued video segment.

在一些实施例中,电子设备将从本地相册上传的图像确定为参考图像。In some embodiments, the electronic device determines an image uploaded from a local photo album as a reference image.

可选地,图像上传入口包括本地图像上传入口,本地图像上传入口用于上传本地相册中的图像,电子设备响应于对本地图像上传入口的触发操作,显示本地相册,响应于对本地相册中的至少一个图像的选择操作,将被选中的至少一个图像确定为参考图像。Optionally, the image upload portal includes a local image upload portal, which is used to upload images in a local album. The electronic device displays the local album in response to a trigger operation on the local image upload portal, and determines the at least one selected image as a reference image in response to a selection operation on at least one image in the local album.

也即是,用户可以将本地相册中的图像作为用于生成第二视频片段的参考图像,因此用户可以根据自身需求,灵活选择使用本地相册中的图像进行图生视频,提高了视频制作的灵活性和便捷性。That is, the user can use the images in the local album as reference images for generating the second video clip. Therefore, the user can flexibly choose to use the images in the local album to generate video according to their own needs, which improves the flexibility and convenience of video production.

在一些实施例中,电子设备将第一视频片段中多个视频帧中的至少一个视频帧确定为参考图像。In some embodiments, the electronic device determines at least one video frame among a plurality of video frames in the first video segment as a reference image.

图像上传入口包括截取图像上传入口,截取图像上传入口用于上传在第一视频片段中截取的视频帧。电子设备响应于对截取图像上传入口的触发操作,显示第一视频片段中的多个视频帧,响应于对多个视频帧中的至少一个视频帧的选择操作,将被选中的至少一个视频帧确定为参考图像。The image upload entry includes a captured image upload entry, and the captured image upload entry is used to upload a video frame captured in the first video segment. In response to a trigger operation on the captured image upload entry, the electronic device displays multiple video frames in the first video segment, and in response to a selection operation on at least one of the multiple video frames, determines the selected at least one video frame as a reference image.

本公开实施例中,可以向用户提供第一视频片段中的视频帧,用户选择第一视频片段中的至少一个视频帧用于生成第二视频片段的参考图像,由于第一视频片段中的视频帧包含了第一视频片段中的内容,而基于第一视频片段中的视频帧生成第二视频片段时,可以保证生成的第二视频片段的内容与该第一视频片段中的视频帧中展示的内容相符,进而可以保证第二视频片段的内容与第一视频片段的内容强相关,从而提高延续后的视频片段与原有的视频片段之间的一致性和连贯性。In the disclosed embodiment, video frames in a first video clip can be provided to a user, and the user selects at least one video frame in the first video clip to generate a reference image of a second video clip. Since the video frames in the first video clip contain the content in the first video clip, when the second video clip is generated based on the video frames in the first video clip, it can be ensured that the content of the generated second video clip is consistent with the content displayed in the video frames in the first video clip, and further it can be ensured that the content of the second video clip is strongly correlated with the content of the first video clip, thereby improving the consistency and coherence between the continued video clip and the original video clip.

在步骤1705中,电子设备基于第一视频片段、第二延续文本和参考图像,生成第二视频片段,第二视频片段的内容是对第一视频片段的内容的延续,且第二视频片段的内容与第二延续文本的内容和参考图像的内容相符。In step 1705, the electronic device generates a second video segment based on the first video segment, the second continuation text and the reference image, wherein the content of the second video segment is a continuation of the content of the first video segment, and the content of the second video segment is consistent with the content of the second continuation text and the content of the reference image.

本公开实施例中,用户可以提供参考图像,使用参考图像来展示期望延续后的视频片段中包含哪些内容,由于参考图像能够直观地展示画面,因此利用参考图像生成视频片段,能够保证生成的视频片段中的内容与参考图像中的内容相符,有利于提高生成的视频片段的准确性。In the disclosed embodiment, the user can provide a reference image and use the reference image to show what content is included in the video segment that is expected to be continued. Since the reference image can intuitively display the picture, generating a video segment using the reference image can ensure that the content in the generated video segment is consistent with the content in the reference image, which is conducive to improving the accuracy of the generated video segment.

在上述各个实施例的基础上,电子设备可以创建视频生成任务,根据视频生成任务生成至少一个视频片段。下述以创建有第二视频片段所属的视频生成任务为例,介绍视频生成任务的管理方式。Based on the above embodiments, the electronic device can create a video generation task and generate at least one video segment according to the video generation task. The following takes the creation of a video generation task to which the second video segment belongs as an example to introduce the management method of the video generation task.

电子设备显示任务管理界面,任务管理界面用于显示已创建的视频生成任务;在任务管理界面,显示第二视频片段所属的视频生成任务和视频生成任务的状态,状态包括已生成状态、正在生成状态和生成失败状态。The electronic device displays a task management interface, which is used to display the created video generation tasks; in the task management interface, the video generation tasks to which the second video clip belongs and the status of the video generation tasks are displayed, and the statuses include generated status, generating status and generation failure status.

本公开实施例中,一个视频生成任务包括至少一个视频片段,在视频生成任务包括多个视频片段的情况下,该多个视频片段包括初始生成的视频片段和延续后的至少一个视频片段。可选地,视频生成任务中的多个视频片段按照生成顺序依次排列。例如,对于第二视频片段所属的视频生成任务,该视频生成任务中包括第一视频片段和第二视频片段。In the disclosed embodiment, a video generation task includes at least one video segment. When the video generation task includes multiple video segments, the multiple video segments include an initially generated video segment and at least one subsequent video segment. Optionally, the multiple video segments in the video generation task are arranged in sequence according to the generation order. For example, for the video generation task to which the second video segment belongs, the video generation task includes the first video segment and the second video segment.

其中,已生成状态是指视频生成任务中请求生成的每个视频片段均已生成,正在生成状态是指视频生成任务中存在至少一个请求生成的视频片段当前正在生成中,生成失败状态是指视频生成任务中存在至少一个请求生成的视频片段已生成失败。Among them, the generated state means that each video segment requested to be generated in the video generation task has been generated, the generating state means that there is at least one video segment requested to be generated in the video generation task that is currently being generated, and the generation failed state means that there is at least one video segment requested to be generated in the video generation task that has failed to be generated.

如图18或图19所示,任务管理界面中显示有视频生成任务1801、视频生成任务1802和视频生成任务1803。其中,该视频生成任务1801的状态为正在生成状态,视频生成任务1802的状态为已生成状态,视频生成任务1803的状态为生成失败状态。其中,该视频生成任务1801包括第一视频片段1811和第二视频片段1821,因此视频生成任务1801中的第二视频片段1821正在生成中。在生成第二视频片段1821之后,如图20所示,视频生成任务1801的状态变为已生成状态。As shown in FIG. 18 or FIG. 19, the task management interface displays a video generation task 1801, a video generation task 1802, and a video generation task 1803. The status of the video generation task 1801 is a generating status, the status of the video generation task 1802 is a generated status, and the status of the video generation task 1803 is a generation failure status. The video generation task 1801 includes a first video segment 1811 and a second video segment 1821, so the second video segment 1821 in the video generation task 1801 is being generated. After the second video segment 1821 is generated, as shown in FIG. 20, the status of the video generation task 1801 changes to a generated status.

在一些实施例中,电子设备基于该任务管理界面中显示的视频生成任务,还可以执行以下至少一项。In some embodiments, the electronic device may also perform at least one of the following based on the video generation task displayed in the task management interface.

(1)在第二视频片段所属的视频生成任务处于正在生成状态时,显示第二视频片段的生成进度。(1) When the video generation task to which the second video segment belongs is in the generating state, the generating progress of the second video segment is displayed.

可选地,电子设备在视频生成任务所在的区域,显示第二视频片段的缩略图,响应于对第二视频片段的缩略图的触发操作,显示第二视频片段的生成进度。其中,在第二视频片段正在生成时,该第二视频片段的缩略图中包括提示文本,该提示文本用于提示正在生成第二视频片段。Optionally, the electronic device displays a thumbnail of the second video clip in the area where the video generation task is located, and displays the generation progress of the second video clip in response to a triggering operation on the thumbnail of the second video clip. When the second video clip is being generated, the thumbnail of the second video clip includes a prompt text, and the prompt text is used to prompt that the second video clip is being generated.

如图18或图19所示,在视频生成任务1801所在的区域显示有第二视频片段1821的缩略图,响应于对第二视频片段1821的缩略图的触发操作,显示第二视频片段的生成进度,如图21所示,第二视频片段1821的生成进度已达到27%。As shown in Figure 18 or 19, a thumbnail of the second video clip 1821 is displayed in the area where the video generation task 1801 is located. In response to the triggering operation of the thumbnail of the second video clip 1821, the generation progress of the second video clip 1821 is displayed. As shown in Figure 21, the generation progress of the second video clip 1821 has reached 27%.

(2)在第二视频片段所属的视频生成任务处于已生成状态时,显示预览控件,预览控件用于请求播放已生成的第二视频片段。(2) When the video generation task to which the second video clip belongs is in a generated state, a preview control is displayed, where the preview control is used to request to play the generated second video clip.

可选地,第二视频片段所属的视频生成任务还包括第一视频片段,该预览控件用于请求按照生成顺序播放已生成的第一视频片段和第二视频片段。Optionally, the video generation task to which the second video segment belongs also includes a first video segment, and the preview control is used to request to play the generated first video segment and second video segment in a generation order.

如图20所示,对于处于已生成状态的视频生成任务1801,该视频生成任务1801所在的区域显示有预览控件。对于处理已生成状态的视频生成任务1802,该视频生成任务1802所在的区域也显示有预览控件,该预览控件用于请求按照生成顺序播放视频生成任务1802中已生成的视频片段。As shown in Figure 20, for a video generation task 1801 in a generated state, a preview control is displayed in the area where the video generation task 1801 is located. For a video generation task 1802 in a generated state, a preview control is also displayed in the area where the video generation task 1802 is located, and the preview control is used to request to play the generated video clips in the video generation task 1802 in the generation order.

在另一些实施例中,第二视频片段所属的视频生成任务还包括第一视频片段,在该视频生成任务处于正在生成状态时,在该视频生成任务所在的区域显示预览控件,此时该预览控件用于请求播放已生成的第一视频片段。In other embodiments, the video generation task to which the second video clip belongs also includes a first video clip. When the video generation task is in a generating state, a preview control is displayed in the area where the video generation task is located. At this time, the preview control is used to request to play the generated first video clip.

如图18或图19所示,对于处于正在生成状态的视频生成任务1801,该视频生成任务1801所在的区域显示有预览控件。As shown in FIG. 18 or FIG. 19 , for a video generation task 1801 in a generating state, a preview control is displayed in the area where the video generation task 1801 is located.

(3)在第二视频片段所属的视频生成任务处于生成失败状态时,显示重新生成控件,重新生成控件用于请求对生成失败的第二视频片段进行重新生成。(3) When the video generation task to which the second video segment belongs is in a generation failure state, a regeneration control is displayed, and the regeneration control is used to request regeneration of the second video segment that has failed to be generated.

如果第二视频片段生成失败,则第二视频片段所属的视频生成任务处于生成失败状态,此时显示重新生成控件,以便重新生成第二视频片段。If the generation of the second video clip fails, the video generation task to which the second video clip belongs is in a generation failure state, and a regeneration control is displayed at this time to regenerate the second video clip.

如图18或图19所示,对于处于生成失败状态的视频生成任务1803,该视频生成任务1803所在的区域显示有重新生成控件。As shown in FIG. 18 or FIG. 19 , for a video generation task 1803 that is in a generation failure state, a regeneration control is displayed in the area where the video generation task 1803 is located.

本公开实施例中,针对处于不同状态的视频生成任务,还可以对应显示生成进度、预览控件、重新生成控件,用户可以直观地查看处于不同状态下的视频生成任务的具体情况,进一步提高了用户对已创建的视频生成任务进行管理的便捷性,有利于提高人机交互的效率。生成的结果支持批量导出或直接批量导入高级编辑功能进行修改,进一步增强了用户的视频创作体验和管理效率。In the disclosed embodiment, for video generation tasks in different states, generation progress, preview controls, and regeneration controls can also be displayed accordingly, so that users can intuitively view the specific conditions of video generation tasks in different states, further improving the convenience of users managing created video generation tasks, which is conducive to improving the efficiency of human-computer interaction. The generated results support batch export or direct batch import of advanced editing functions for modification, further enhancing the user's video creation experience and management efficiency.

(4)在第二视频片段所属的视频生成任务所在的区域,显示第二视频片段的延续信息。(4) In the area where the video generation task to which the second video segment belongs is located, the continuation information of the second video segment is displayed.

在一些实施例中,在第二视频片段所属的视频生成任务处于正在生成状态,也即是正在生成第二视频片段的情况下,显示第二视频片段的延续信息。In some embodiments, when the video generation task to which the second video segment belongs is in a generating state, that is, when the second video segment is being generated, continuation information of the second video segment is displayed.

可选地,该延续信息包括延续文本或参考图像。在第二视频片段的延续信息包括延续文本的情况下,则如图18所示,该第二视频片段所属的视频生成任务1801所在的区域显示有延续文本1831。在第二视频片段的延续信息包括参考图像的情况下,则如图19所示,该第二视频片段所属的视频生成任务1801所在的区域显示有提示文本1841,该提示文本1841用于提示正在生成的第二视频片段是基于图像生成的。Optionally, the continuation information includes a continuation text or a reference image. In the case where the continuation information of the second video segment includes a continuation text, as shown in FIG18 , the area where the video generation task 1801 to which the second video segment belongs is located is displayed with a continuation text 1831. In the case where the continuation information of the second video segment includes a reference image, as shown in FIG19 , the area where the video generation task 1801 to which the second video segment belongs is located is displayed with a prompt text 1841, and the prompt text 1841 is used to prompt that the second video segment being generated is generated based on the image.

在一些实施例中,在第二视频片段所属的视频生成任务处于已生成状态的情况下,将该视频生成任务折叠显示,折叠显示的视频生成任务所在的区域不再显示第二视频片段的延续信息,如果用户想要查看第二视频片段的延续信息,则执行对该第二视频片段所属的视频生成任务的展开操作,电子设备响应于该展开操作,显示展开后的视频生成任务,在展开后的视频生成任务所在的区域显示第二视频片段的延续信息。In some embodiments, when the video generation task to which the second video clip belongs is in a generated state, the video generation task is displayed in a folded state, and the area where the folded video generation task is located no longer displays the continuation information of the second video clip. If the user wants to view the continuation information of the second video clip, an expansion operation is performed on the video generation task to which the second video clip belongs. The electronic device responds to the expansion operation, displays the expanded video generation task, and displays the continuation information of the second video clip in the area where the expanded video generation task is located.

如图20所示,第二视频片段所属的视频生成任务1801处于已生成状态的情况下,视频生成任务1801折叠显示,此时未显示第二视频片段的延续文本1831,在将视频生成任务1801展开显示后,重新显示第二视频片段的延续文本1831。As shown in Figure 20, when the video generation task 1801 to which the second video clip belongs is in a generated state, the video generation task 1801 is displayed in a folded state, and the continuation text 1831 of the second video clip is not displayed. After the video generation task 1801 is expanded and displayed, the continuation text 1831 of the second video clip is redisplayed.

本公开实施例中,通过在视频生成任务所在的区域显示延续后的视频片段所使用的延续信息,一方面便于用户快速了解视频片段的内容,另一方面便于用户对视频片段的延续信息进行追溯,提高了显示效果。In the disclosed embodiment, by displaying the continuation information used by the continued video segment in the area where the video generation task is located, it is convenient for users to quickly understand the content of the video segment on the one hand, and on the other hand, it is convenient for users to trace the continuation information of the video segment, thereby improving the display effect.

(5)在第二视频片段所属的视频生成任务所在的区域,显示已生成的第二视频片段的缩略图。(5) In the area where the video generation task to which the second video segment belongs is located, a thumbnail of the generated second video segment is displayed.

在一些实施例中,在第二视频片段所属的视频生成任务处于已生成状态的情况下,将该视频生成任务折叠显示,折叠显示的视频生成任务所在的区域不再显示第二视频片段的缩略图,如果用户想要查看第二视频片段的缩略图,则执行对该第二视频片段所属的视频生成任务的展开操作,电子设备响应于该展开操作,显示展开后的视频生成任务,在展开后的视频生成任务所在的区域显示第二视频片段的缩略图。其中,在第二视频片段已生成时,该第二视频片段的缩略图为该第二视频片段中的视频帧。In some embodiments, when the video generation task to which the second video clip belongs is in a generated state, the video generation task is displayed in a folded state, and the area where the folded video generation task is located no longer displays the thumbnail of the second video clip. If the user wants to view the thumbnail of the second video clip, the video generation task to which the second video clip belongs is expanded, and the electronic device displays the expanded video generation task in response to the expansion operation, and displays the thumbnail of the second video clip in the area where the expanded video generation task is located. Wherein, when the second video clip has been generated, the thumbnail of the second video clip is a video frame in the second video clip.

如图20所示,第二视频片段所属的视频生成任务1801处于已生成状态的情况下,视频生成任务1801折叠显示,此时未显示第二视频片段1821的缩略图,在将视频生成任务1801展开显示后,重新显示第二视频片段1821的缩略图。As shown in Figure 20, when the video generation task 1801 to which the second video clip belongs is in a generated state, the video generation task 1801 is displayed in a folded state, and the thumbnail of the second video clip 1821 is not displayed. After the video generation task 1801 is expanded and displayed, the thumbnail of the second video clip 1821 is redisplayed.

本公开实施例中,通过在视频生成任务所在的区域显示延续后的视频片段的缩略图,便于用户通过查看缩略图直观地了解视频片段的大致风格与内容,提高了显示效果。In the disclosed embodiment, by displaying thumbnails of the continued video clips in the area where the video generation task is located, the user can intuitively understand the general style and content of the video clips by viewing the thumbnails, thereby improving the display effect.

本公开实施例提供的方法,通过显示已创建的视频生成任务和每个视频生成任务的状态,便于用户根据显示的状态了解视频生成任务的情况,进而便于用户对已创建的视频生成任务进行管理,提高了视频生成任务的状态的可视化效果。The method provided by the embodiment of the present disclosure displays the created video generation tasks and the status of each video generation task, so that the user can understand the status of the video generation task according to the displayed status, and then the user can manage the created video generation tasks, thereby improving the visualization effect of the status of the video generation task.

并且,在任务管理界面以合集的形式展示初始的视频片段以及基于初始的视频片段延续后的至少一个视频片段,便于用户将内容关联的多个视频片段作为一个连续的系列进行管理,用户可以在任务管理界面查看生成的每个视频片段,便于以视频片段为单位进行管理。In addition, the initial video clip and at least one video clip based on the initial video clip are displayed in the form of a collection on the task management interface, so that the user can manage multiple video clips with associated content as a continuous series. The user can view each generated video clip on the task management interface, which is convenient for management in units of video clips.

并且,一个视频生成任务中的多个视频片段按照生成顺序依次排列,由于多个视频片段是依次延续得到的,因此这样实现了将多个视频片段按照内容逻辑进行排列,确保了视频内容的连贯性和一致性,便于用户清晰地看到整个视频的延续过程和内容变化过程,增强了用户的视频创作体验和管理效率。Moreover, multiple video clips in a video generation task are arranged in sequence according to the generation order. Since the multiple video clips are obtained by continuing in sequence, the multiple video clips can be arranged according to the content logic, ensuring the coherence and consistency of the video content, making it easy for users to clearly see the continuation process and content change process of the entire video, thereby enhancing the user's video creation experience and management efficiency.

图22是根据一示例性实施例示出的一种视频处理装置的框图。参见图22,该装置包括显示单元2201、修改单元2202和生成单元2203。Fig. 22 is a block diagram of a video processing device according to an exemplary embodiment. Referring to Fig. 22 , the device includes a display unit 2201 , a modification unit 2202 and a generation unit 2203 .

显示单元2201,被配置为执行在视频界面显示第一视频片段;The display unit 2201 is configured to display the first video clip on the video interface;

显示单元2201,被配置为执行响应于对第一视频片段的延续请求,显示第一延续文本,第一延续文本用于描述延续后的视频片段所需包含的内容;The display unit 2201 is configured to display a first continuation text in response to a continuation request for the first video segment, where the first continuation text is used to describe the content that the continued video segment needs to include;

修改单元2202,被配置为执行响应于对第一延续文本的修改操作,对第一延续文本中与修改操作关联的所有词语进行修改,得到第二延续文本;The modifying unit 2202 is configured to execute, in response to the modifying operation on the first continued text, modify all words in the first continued text associated with the modifying operation to obtain a second continued text;

生成单元2203,被配置为执行基于第一视频片段和第二延续文本,生成第二视频片段,第二视频片段的内容是对第一视频片段的内容的延续,且第二视频片段的内容与第二延续文本的内容相符。The generating unit 2203 is configured to generate a second video segment based on the first video segment and the second continuation text, wherein the content of the second video segment is a continuation of the content of the first video segment, and the content of the second video segment is consistent with the content of the second continuation text.

本公开实施例提供的装置,如果想要在第一视频片段的基础上进行延续更多的内容,则可以请求对第一视频片段进行延续,第一延续文本用于描述延续后的视频片段所需包含的内容,如果用户想要修改第一延续文本,通过执行对第一延续文本的修改操作,可以一键将第一延续文本中与修改操作相关的所有词语进行修改,进而基于修改后的延续文本生成延续后的第二视频片段。由于本公开中在用户具有修改延续文本的需求时,可以一键实现全文修改,无需用户挨个查找所需修改的词语一个个手动修改,节省了用户的操作时间,提高了修改效率,进而提高了延续视频的整体效率。In the device provided by the embodiment of the present disclosure, if more content is to be continued on the basis of the first video clip, the first video clip can be requested to be continued. The first continuation text is used to describe the content that the continued video clip needs to contain. If the user wants to modify the first continuation text, by performing a modification operation on the first continuation text, all words related to the modification operation in the first continuation text can be modified with one click, and then the continued second video clip is generated based on the modified continuation text. In the present disclosure, when the user has the need to modify the continuation text, the entire text can be modified with one click, and the user does not need to search for the words to be modified one by one and modify them manually, which saves the user's operation time, improves the modification efficiency, and thus improves the overall efficiency of the continued video.

在一些实施例中,参见图23,修改单元2202,被配置为执行:In some embodiments, referring to FIG. 23 , the modification unit 2202 is configured to perform:

显示多种事件元素的展示区域,在事件元素的展示区域显示第一延续文本中属于事件元素的词语;Displaying a display area for multiple event elements, and displaying words belonging to the event elements in the first continuation text in the display area for the event elements;

响应于对目标事件元素的展示区域中词语的修改操作,获取修改后的第一词语,目标事件元素为多种事件元素中的任意一种;In response to a modification operation on a word in a display area of a target event element, obtaining a modified first word, wherein the target event element is any one of a plurality of event elements;

将第一延续文本中属于目标事件元素的所有词语均替换为第一词语,得到第二延续文本。All words belonging to the target event element in the first continuation text are replaced with the first word to obtain a second continuation text.

在一些实施例中,参见图23,修改单元2202,被配置为执行:In some embodiments, referring to FIG. 23 , the modification unit 2202 is configured to perform:

响应于在第一延续文本中对第二词语的修改操作,获取修改后的第三词语;In response to a modification operation on a second word in the first continuation text, obtaining a modified third word;

将第一延续文本中与第二词语相同的所有词语均替换为第三词语,得到第二延续文本。All words in the first continued text that are identical to the second word are replaced with the third word to obtain a second continued text.

在一些实施例中,参见图23,装置还包括:In some embodiments, referring to FIG. 23 , the apparatus further comprises:

显示单元2201,还被配置为执行若第二延续文本的内容与第一视频片段的内容不相符,则显示提示信息,提示信息用于提示第二延续文本的内容与第一视频片段的内容不相符。The display unit 2201 is further configured to display a prompt message if the content of the second continuation text does not match the content of the first video clip, where the prompt message is used to prompt that the content of the second continuation text does not match the content of the first video clip.

在一些实施例中,参见图23,视频界面还显示有第一视频片段的进度条;显示单元2201,还被配置为执行:In some embodiments, referring to FIG. 23 , the video interface further displays a progress bar of the first video segment; the display unit 2201 is further configured to execute:

若第二延续文本的内容与第一视频片段中目标时段的内容不相符,则对第一视频片段的进度条上目标时段对应的区域进行突出显示,以提示第二延续文本的内容与目标时段的内容不相符。If the content of the second continuation text does not match the content of the target period in the first video segment, the area corresponding to the target period on the progress bar of the first video segment is highlighted to indicate that the content of the second continuation text does not match the content of the target period.

在一些实施例中,参见图23,视频界面还显示有第一视频片段的内容文本,内容文本用于描述第一视频片段的内容;显示单元2201,还被配置为执行:In some embodiments, referring to FIG. 23 , the video interface further displays a content text of the first video segment, where the content text is used to describe the content of the first video segment; the display unit 2201 is further configured to execute:

若第二延续文本的内容与内容文本中目标片段的内容不相符,则对内容文本中目标片段进行突出显示,以提示第二延续文本的内容与目标片段的内容不相符。If the content of the second continuation text does not match the content of the target segment in the content text, the target segment in the content text is highlighted to indicate that the content of the second continuation text does not match the content of the target segment.

在一些实施例中,参见图23,显示单元2201,被配置为执行以下任一项:In some embodiments, referring to FIG. 23 , the display unit 2201 is configured to perform any of the following:

对第一视频片段的内容文本进行续写,得到第一延续文本,内容文本用于描述第一视频片段的内容;Continuing to write the content text of the first video clip to obtain a first continuation text, where the content text is used to describe the content of the first video clip;

基于在视频界面中的文本编辑操作,获取第一延续文本。Based on the text editing operation in the video interface, a first continuation text is obtained.

在一些实施例中,参见图23,装置还包括:In some embodiments, referring to FIG. 23 , the apparatus further comprises:

显示单元2201,被配置为执行在视频界面显示时长输入区域,基于时长输入区域中的输入操作获取延续时长;或者,基于第二延续文本的文本长度获取延续时长;The display unit 2201 is configured to display a duration input area on the video interface, and obtain the continuation duration based on the input operation in the duration input area; or obtain the continuation duration based on the text length of the second continuation text;

生成单元2203,被配置为执行基于第一视频片段、第二延续文本和延续时长,生成第二视频片段,第二视频片段的内容是对第一视频片段的内容的延续,且第二视频片段的内容与第二延续文本描述的内容相符,且第二视频片段的时长等于延续时长。The generation unit 2203 is configured to generate a second video segment based on the first video segment, the second continuation text and the continuation duration, wherein the content of the second video segment is a continuation of the content of the first video segment, and the content of the second video segment is consistent with the content described in the second continuation text, and the duration of the second video segment is equal to the continuation duration.

在一些实施例中,参见图23,装置还包括:In some embodiments, referring to FIG. 23 , the apparatus further comprises:

显示单元2201,被配置为执行将从本地相册上传的图像确定为参考图像;或者,将第一视频片段中多个视频帧中的至少一个视频帧确定为参考图像;The display unit 2201 is configured to determine an image uploaded from a local photo album as a reference image; or determine at least one video frame among a plurality of video frames in a first video segment as a reference image;

生成单元2203,被配置为执行基于第一视频片段、第二延续文本和参考图像,生成第二视频片段,第二视频片段的内容是对第一视频片段的内容的延续,且第二视频片段的内容与第二延续文本的内容和参考图像的内容相符。The generating unit 2203 is configured to generate a second video segment based on the first video segment, the second continuation text and the reference image, wherein the content of the second video segment is a continuation of the content of the first video segment, and the content of the second video segment is consistent with the content of the second continuation text and the content of the reference image.

在一些实施例中,参见图23,生成单元2203,被配置为执行:In some embodiments, referring to FIG. 23 , the generating unit 2203 is configured to execute:

获取第一视频片段的内容文本,内容文本用于描述第一视频片段的内容;Obtaining a content text of the first video clip, where the content text is used to describe the content of the first video clip;

基于内容文本和第二延续文本,生成第二视频片段。Based on the content text and the second continuation text, a second video segment is generated.

在一些实施例中,参见图23,装置还包括:In some embodiments, referring to FIG. 23 , the apparatus further comprises:

显示单元2201,被配置为执行在视频界面,按照生成顺序显示第一视频片段和第二视频片段。The display unit 2201 is configured to be executed on the video interface and display the first video segment and the second video segment in the order of generation.

在一些实施例中,参见图23,装置还包括:In some embodiments, referring to FIG. 23 , the apparatus further comprises:

显示单元2201,被配置为执行在第一视频片段上显示初始标签,初始标签用于表示初始标签所在的视频片段是初始的视频片段;The display unit 2201 is configured to display an initial tag on the first video segment, where the initial tag is used to indicate that the video segment where the initial tag is located is an initial video segment;

显示单元2201,被配置为执行在第二视频片段上显示延续标签,延续标签用于表示延续标签所在的视频片段是延续后的视频片段。The display unit 2201 is configured to display a continuation tag on the second video segment, where the continuation tag is used to indicate that the video segment where the continuation tag is located is a continued video segment.

在一些实施例中,参见图23,装置还包括控制单元2204,被配置为执行以下至少一项:In some embodiments, referring to FIG. 23 , the apparatus further includes a control unit 2204 configured to perform at least one of the following:

在第一视频片段和第二视频片段中的至少一个视频片段被选中的情况下,响应于视频播放操作,播放被选中的至少一个视频片段;In a case where at least one of the first video segment and the second video segment is selected, in response to a video playing operation, playing the selected at least one video segment;

在第一视频片段和第二视频片段中的至少一个视频片段被选中的情况下,响应于视频剪辑操作,显示被选中的至少一个视频片段的剪辑界面;In a case where at least one of the first video segment and the second video segment is selected, in response to a video editing operation, displaying an editing interface of the at least one selected video segment;

在第一视频片段和第二视频片段中的至少一个视频片段被选中的情况下,响应于视频下载操作,下载被选中的至少一个视频片段;In a case where at least one of the first video segment and the second video segment is selected, in response to a video download operation, downloading the selected at least one video segment;

在第一视频片段和第二视频片段中的至少一个视频片段被选中的情况下,响应于视频发布操作,发布包含被选中的至少一个视频片段的视频。In a case where at least one of the first video segment and the second video segment is selected, in response to a video publishing operation, a video including the at least one selected video segment is published.

在一些实施例中,参见图23,控制单元2204,被配置为执行:In some embodiments, referring to FIG. 23 , the control unit 2204 is configured to execute:

在第一视频片段和第二视频片段被选中的情况下,响应于视频发布操作,基于第一视频片段和第二视频片段生成文案;In a case where the first video clip and the second video clip are selected, in response to a video publishing operation, generating a copy based on the first video clip and the second video clip;

按照生成顺序将第一视频片段和第二视频片段合并为一个视频;Merging the first video segment and the second video segment into one video according to the generation order;

发布携带文案的视频;或者,基于对文案的编辑操作,获取编辑后的文案,发布携带编辑后的文案的视频。Release a video with the text; or, based on an editing operation on the text, obtain the edited text and release a video with the edited text.

关于上述实施例中的装置,其中各个单元执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the device in the above embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.

图24是根据一示例性实施例示出的一种电子设备的结构框图。在一些实施例中,电子设备2400包括:手机、台式计算机、笔记本电脑、平板电脑或者其他电子设备等。电子设备2400还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。FIG24 is a block diagram of an electronic device according to an exemplary embodiment. In some embodiments, the electronic device 2400 includes: a mobile phone, a desktop computer, a laptop computer, a tablet computer or other electronic devices. The electronic device 2400 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.

通常,电子设备2400包括有:处理器2401和存储器2402。Typically, the electronic device 2400 includes: a processor 2401 and a memory 2402 .

在一些实施例中,处理器2401包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器2401可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable LogicArray,可编程逻辑阵列)中的至少一种硬件形式来实现。In some embodiments, the processor 2401 includes one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2401 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array).

在一些实施例中,存储器2402包括一个或多个计算机可读存储介质,该计算机可读存储介质是非暂态的。存储器2402还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器2402中的非暂态的计算机可读存储介质用于存储可执行指令,该可执行指令用于被处理器2401所执行以实现本公开中方法实施例提供的视频处理方法。In some embodiments, the memory 2402 includes one or more computer-readable storage media, which are non-transitory. The memory 2402 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 2402 is used to store executable instructions, which are used to be executed by the processor 2401 to implement the video processing method provided by the method embodiment of the present disclosure.

在一些实施例中,电子设备2400还可选包括有:外围设备接口2403和至少一个外围设备。在一些实施例中,处理器2401、存储器2402和外围设备接口2403之间通过总线或信号线相连。在一些实施例中,各个外围设备通过总线、信号线或电路板与外围设备接口2403相连。可选地,外围设备包括:射频电路2404、显示屏2405、摄像头组件2406、音频电路2407和电源2408中的至少一种。In some embodiments, the electronic device 2400 may further include: a peripheral device interface 2403 and at least one peripheral device. In some embodiments, the processor 2401, the memory 2402 and the peripheral device interface 2403 are connected via a bus or a signal line. In some embodiments, each peripheral device is connected to the peripheral device interface 2403 via a bus, a signal line or a circuit board. Optionally, the peripheral device includes: at least one of a radio frequency circuit 2404, a display screen 2405, a camera assembly 2406, an audio circuit 2407 and a power supply 2408.

在一些实施例中,电子设备2400还包括有一个或多个传感器2409。该一个或多个传感器2409包括但不限于:加速度传感器2410、陀螺仪传感器2411、压力传感器2412、光学传感器2413以及接近传感器2414。In some embodiments, the electronic device 2400 further includes one or more sensors 2409 , including but not limited to: an acceleration sensor 2410 , a gyroscope sensor 2411 , a pressure sensor 2412 , an optical sensor 2413 , and a proximity sensor 2414 .

本领域技术人员能够理解,图24中示出的结构并不构成对电子设备2400的限定,能够包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art will appreciate that the structure shown in FIG. 24 does not limit the electronic device 2400 , and may include more or fewer components than shown, or combine certain components, or adopt a different component arrangement.

在示例性实施例中,还提供了一种计算机可读存储介质,当计算机可读存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行上述视频处理方法中的步骤。例如,计算机可读存储介质可以是ROM(只读存储器,Read Only Memory)、RAM(随机存取存储器,Random Access Memory)、CD-ROM(只读光盘,Compact Disc Read-Only Memory)、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a computer-readable storage medium is also provided, and when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can perform the steps in the above-mentioned video processing method. For example, the computer-readable storage medium can be a ROM (Read Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, etc.

在示例性实施例中,还提供了一种计算机程序产品,包括计算机程序,计算机程序由电子设备的处理器执行时实现上述视频处理方法中的步骤。In an exemplary embodiment, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor of an electronic device, the steps in the above-mentioned video processing method are implemented.

本领域技术人员在考虑说明书及实践这里的公开后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. A method of video processing, the method comprising:
displaying a first video clip on a video interface;
In response to a continuation request for the first video segment, displaying a first continuation text for describing content required to be contained by the continued video segment;
Responding to the modification operation of the first continuous text, and modifying all words associated with the modification operation in the first continuous text to obtain a second continuous text;
A second video clip is generated based on the first video clip and the second continuation text, the content of the second video clip being a continuation of the content of the first video clip, and the content of the second video clip conforming to the content of the second continuation text.
2. The method according to claim 1, wherein said modifying, in response to the modification operation on the first continued text, all words associated with the modification operation in the first continued text to obtain a second continued text includes:
displaying a display area of a plurality of event elements, and displaying words belonging to the event elements in the first continuous text in the display area of the event elements;
Responding to the modification operation of the words in the display area of the target event element, and acquiring a modified first word, wherein the target event element is any one of the event elements;
and replacing all words belonging to the target event element in the first continuous text with the first words to obtain the second continuous text.
3. The method according to claim 1, wherein said modifying, in response to the modification operation on the first continued text, all words associated with the modification operation in the first continued text to obtain a second continued text includes:
responding to the modification operation of the second word in the first continuation text, and acquiring a modified third word;
And replacing all words which are the same as the second words in the first continuous text with the third words to obtain the second continuous text.
4. The video processing method of claim 1, wherein the method further comprises:
and if the content of the second continuous text does not accord with the content of the first video segment, displaying prompt information, wherein the prompt information is used for prompting that the content of the second continuous text does not accord with the content of the first video segment.
5. The method of claim 4, wherein the video interface further displays a progress bar for the first video clip; and if the content of the second continuous text does not accord with the content of the first video segment, displaying prompt information, wherein the prompt information comprises:
And if the content of the second continuous text does not accord with the content of the target time period in the first video segment, highlighting the area corresponding to the target time period on the progress bar of the first video segment so as to prompt that the content of the second continuous text does not accord with the content of the target time period.
6. The video processing method according to claim 4, wherein the video interface further displays content text of the first video clip, the content text describing content of the first video clip; and if the content of the second continuous text does not accord with the content of the first video segment, displaying prompt information, wherein the prompt information comprises:
And if the content of the second continuous text does not accord with the content of the target segment in the content text, highlighting the target segment in the content text to prompt that the content of the second continuous text does not accord with the content of the target segment.
7. The video processing method of claim 1, wherein the displaying the first continuation text comprises any one of:
writing the content text of the first video segment to obtain the first continuation text, wherein the content text is used for describing the content of the first video segment;
and acquiring the first continuous text based on text editing operation in the video interface.
8. The video processing method of claim 1, wherein the method further comprises:
Displaying a duration input area on the video interface, and acquiring duration based on input operation in the duration input area; or acquiring the duration based on the text length of the second continuous text;
The generating a second video clip based on the first video clip and the second continuation text includes:
Generating the second video segment based on the first video segment, the second continuation text and the duration, wherein the content of the second video segment is a continuation of the content of the first video segment, the content of the second video segment accords with the content described by the second continuation text, and the duration of the second video segment is equal to the duration of the continuation.
9. The video processing method of claim 1, wherein the method further comprises:
determining an image uploaded from the local album as a reference image; or determining at least one video frame of a plurality of video frames in the first video segment as the reference image;
The generating a second video clip based on the first video clip and the second continuation text includes:
The second video clip is generated based on the first video clip, the second continuation text, and the reference image, the content of the second video clip is a continuation of the content of the first video clip, and the content of the second video clip coincides with the content of the second continuation text and the content of the reference image.
10. The video processing method of claim 1, wherein the generating a second video clip based on the first video clip and the second continuation text comprises:
Acquiring a content text of the first video segment, wherein the content text is used for describing the content of the first video segment;
The second video clip is generated based on the content text and the second continuation text.
11. The video processing method according to any one of claims 1 to 10, characterized in that the method further comprises:
And displaying the first video clip and the second video clip on the video interface according to the generation sequence.
12. The video processing method of claim 11, wherein the method further comprises:
Displaying an initial tag on the first video segment, wherein the initial tag is used for indicating that the video segment where the initial tag is positioned is an initial video segment;
and displaying a continuation tag on the second video segment, wherein the continuation tag is used for indicating that the video segment where the continuation tag is located is a continued video segment.
13. The video processing method of claim 11, wherein the method further comprises at least one of:
Playing at least one selected video clip in response to a video playing operation in the case that at least one of the first video clip and the second video clip is selected;
In response to a video clip operation, displaying a clip interface of at least one of the first video clip and the second video clip when the selected video clip is selected;
Downloading at least one video clip selected in response to a video downloading operation in the event that at least one of the first video clip and the second video clip is selected;
in response to a video publishing operation, publishing a video containing at least one of the first video clip and the second video clip that is selected.
14. The video processing method according to claim 13, wherein, in a case where at least one of the first video clip and the second video clip is selected, in response to a video publishing operation, publishing a video containing the selected at least one video clip, comprising:
generating a document based on the first video clip and the second video clip in response to the video publishing operation if the first video clip and the second video clip are selected;
merging the first video segment and the second video segment into one video according to the generation sequence;
Publishing the video carrying the document; or based on the editing operation of the document, acquiring the edited document and releasing the video carrying the edited document.
15. A video processing apparatus, the apparatus comprising:
a display unit configured to perform displaying the first video clip on the video interface;
The display unit is configured to execute a display of a first continuation text for describing content required to be contained by the continued video clip in response to a continuation request for the first video clip;
A modification unit configured to perform modification of all words associated with the modification operation in the first continuous text in response to the modification operation of the first continuous text, so as to obtain a second continuous text;
And a generation unit configured to perform generation of a second video clip based on the first video clip and the second continuation text, the content of the second video clip being a continuation of the content of the first video clip, and the content of the second video clip conforming to the content of the second continuation text.
16. An electronic device, the electronic device comprising:
A processor;
A memory for storing the processor-executable instructions;
Wherein the processor is configured to execute the instructions to implement the video processing method of any one of claims 1 to 14.
17. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the video processing method of any one of claims 1 to 14.
18. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the video processing method of any one of claims 1 to 14.
CN202411293618.1A 2024-09-14 2024-09-14 Video processing method, device, electronic device and storage medium Active CN118828141B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411293618.1A CN118828141B (en) 2024-09-14 2024-09-14 Video processing method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411293618.1A CN118828141B (en) 2024-09-14 2024-09-14 Video processing method, device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN118828141A true CN118828141A (en) 2024-10-22
CN118828141B CN118828141B (en) 2025-01-21

Family

ID=93078720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411293618.1A Active CN118828141B (en) 2024-09-14 2024-09-14 Video processing method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN118828141B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023093687A1 (en) * 2021-11-25 2023-06-01 北京字跳网络技术有限公司 Video processing method and device
CN116980718A (en) * 2023-03-20 2023-10-31 腾讯科技(深圳)有限公司 Scenario recomposition method and device for video, electronic equipment and storage medium
CN117177024A (en) * 2023-08-14 2023-12-05 科大讯飞股份有限公司 Video dubbing method and related device, electronic equipment and storage medium
CN117692699A (en) * 2022-09-02 2024-03-12 北京字跳网络技术有限公司 Video generation method, apparatus, device, storage medium, and program product

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023093687A1 (en) * 2021-11-25 2023-06-01 北京字跳网络技术有限公司 Video processing method and device
CN117692699A (en) * 2022-09-02 2024-03-12 北京字跳网络技术有限公司 Video generation method, apparatus, device, storage medium, and program product
CN116980718A (en) * 2023-03-20 2023-10-31 腾讯科技(深圳)有限公司 Scenario recomposition method and device for video, electronic equipment and storage medium
CN117177024A (en) * 2023-08-14 2023-12-05 科大讯飞股份有限公司 Video dubbing method and related device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN118828141B (en) 2025-01-21

Similar Documents

Publication Publication Date Title
CN112184856B (en) Multimedia processing device supporting multi-layer special effect and animation mixing
CN101300567B (en) Method for media sharing and authoring on the web
CN109275028B (en) Video acquisition method, device, terminal and medium
KR20230042523A (en) Multimedia data processing method, generation method and related device
JP4551668B2 (en) Minute file generation method, minutes file management method, conference server, and network conference system
US20060204214A1 (en) Picture line audio augmentation
WO2008109233A1 (en) Automatically generating audiovisual works
US20140193138A1 (en) System and a method for constructing and for exchanging multimedia content
CN112333536A (en) Audio and video editing method, equipment and computer readable storage medium
KR20160098949A (en) Apparatus and method for generating a video, and computer program for executing the method
US8253728B1 (en) Reconstituting 3D scenes for retakes
JP2010268195A (en) Movie content editing program, server, apparatus and method
JP2004126637A (en) Contents creation system and contents creation method
CN117998163A (en) Video editing method, device, electronic equipment and storage medium
EP3246921B1 (en) Integrated media processing pipeline
US12159650B2 (en) Method and apparatus, electronic device, and storage medium for video editing
JP4129162B2 (en) Content creation demonstration system and content creation demonstration method
CN118828141A (en) Video processing method, device, electronic device and storage medium
JPH0981768A (en) Scenario editing device
CN108600614A (en) Image processing method and device
US20140250055A1 (en) Systems and Methods for Associating Metadata With Media Using Metadata Placeholders
KR101477492B1 (en) Apparatus for editing and playing video contents and the method thereof
WO2016203469A1 (en) A digital media reviewing system and methods thereof
KR101722830B1 (en) Device and method for contents production of the device
US20240179366A1 (en) Mutable composite media

Legal Events

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