A video processing method, apparatus, device, and storage medium
Patent Information
- Application Number
- CN202510571827.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2026-10-30
AI Technical Summary
[0033]本公开实施例提供的技术方案与现有技术相比至少具有如下优点:
Smart Images

Figure CN123020862A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of data processing, and more particularly to a video processing method, apparatus, device, and storage medium. Background Technology
[0002] With the continuous development of video editing technology, people's needs for video processing-related functions are becoming more and more diversified.
[0003] To meet people's diverse needs for video processing functions, how to further enrich video processing-related functions is a technical problem that urgently needs to be solved. Summary of the Invention
[0004] To address the aforementioned technical problems, this disclosure provides a video processing method, apparatus, device, and storage medium.
[0005] In a first aspect, this disclosure provides a video processing method, the method comprising:
[0006] The video editing page is displayed; wherein, the video editing page includes a video playback area and a track editing area, the video playback area plays a first video, and the track editing area displays video clips from the first video based on the video track;
[0007] In response to a subtitle generation operation performed on the video editing page, the user is redirected from the video editing page to a subtitle editing page, where the subtitle content of the first video is displayed. The subtitle content includes multiple subtitle text segments generated by speech recognition of the first video.
[0008] In one optional implementation, the subtitle editing page is provided with a text template control, and the method further includes:
[0009] In response to a trigger operation on the text template control on the subtitle editing page, the subtitle template editing page is displayed; wherein, the subtitle template editing page displays multiple subtitle template effect images, which are used to present the effect of the corresponding subtitle template;
[0010] In response to the selection operation of the first subtitle template effect image, the subtitle effect of the target subtitle text segment corresponding to the first video is edited using the subtitle template corresponding to the first subtitle template effect image; wherein, the target subtitle text segment includes part or all of the subtitle text segments in the subtitle content of the first video.
[0011] In one optional implementation, after displaying the video editing page, the method further includes:
[0012] A subtitle recognition panel is displayed on the video editing page; wherein, the subtitle recognition panel includes multiple areas, and the first area of the multiple areas displays subtitle source setting information;
[0013] In response to a trigger operation on the subtitle source setting information, a subtitle source setting panel is displayed; wherein the subtitle source setting panel displays at least one subtitle source option determined based on the audio material type of the first video;
[0014] The system receives a selection operation for one or more subtitle source options among the at least one subtitle source options, and determines the source information corresponding to the one or more subtitle source options as the subtitle generation source corresponding to the first video; wherein the subtitle generation source is used to generate the subtitle content of the first video;
[0015] The step of responding to a subtitle generation operation on the video editing page by redirecting from the video editing page to a subtitle editing page and displaying the subtitle content of the first video on the subtitle editing page includes:
[0016] In response to the subtitle generation operation performed on the subtitle recognition panel, the video editing page is redirected to the subtitle editing page, and the subtitle content of the first video is displayed on the subtitle editing page.
[0017] In one optional implementation, subtitle template setting information is displayed in the second area of the subtitle recognition panel, and the method further includes:
[0018] In response to a trigger operation on the subtitle template settings information, a subtitle template editing page is displayed; wherein, the subtitle template editing page displays multiple subtitle template effect images, which are used to present the effect of the corresponding subtitle template;
[0019] The system receives a selection operation for the second subtitle template effect image and determines the subtitle template corresponding to the second subtitle template effect image as the subtitle template corresponding to the first video.
[0020] In one optional implementation, subtitle language information is displayed in a third area on the subtitle recognition panel, and the method further includes:
[0021] In response to a setting trigger operation for the subtitle language information, a subtitle language selection page is displayed; wherein, the subtitle language selection page displays multiple candidate language types;
[0022] The system receives a selection operation for one or more language types from the plurality of candidate language types, determines the one or more language types as the subtitle language type corresponding to the first video, and the subtitle language type is used to generate the subtitle content of the first video.
[0023] In one optional implementation, after the user jumps from the video editing page to the subtitle editing page, the process further includes:
[0024] Play the first video in the playback window on the subtitle editing page;
[0025] The process of displaying the subtitle content of the first video on the subtitle editing page includes:
[0026] On the subtitle editing page, the scrolling display of subtitle text segments in the subtitle content of the first video is controlled based on the playback time information of the first video.
[0027] Secondly, this disclosure provides a video processing apparatus, the apparatus comprising:
[0028] The first display module is used to display a video editing page; wherein, the video editing page includes a video playback area and a track editing area, the video playback area plays a first video, and the track editing area displays video clips from the first video based on the video track;
[0029] The second display module is used to respond to the subtitle generation operation performed on the video editing page, jump from the video editing page to the subtitle editing page, and display the subtitle content of the first video on the subtitle editing page; wherein, the subtitle content includes multiple subtitle text segments generated by speech recognition of the first video.
[0030] Thirdly, this disclosure provides a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to implement the above-described method.
[0031] Fourthly, this disclosure provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements the method described above.
[0032] Fifthly, this disclosure provides a computer program product comprising a computer program / instruction that, when executed by a processor, implements the method described above.
[0033] The technical solution provided in this disclosure has at least the following advantages compared with the prior art:
[0034] This disclosure provides a video processing method. First, a video editing page is displayed, which includes a video playback area and a track editing area. A first video is played in the video playback area, and video clips from the first video are displayed in the track editing area based on the video track. Then, when a subtitle generation operation is received on the video editing page, the video editing page jumps to a subtitle editing page, and the subtitle content of the first video is displayed on the subtitle editing page. The subtitle content includes multiple subtitle text fragments generated by speech recognition of the first video.
[0035] Upon receiving a subtitle generation operation on the video editing page, this embodiment triggers a direct jump from the video editing page to the subtitle editing page, displaying the generated subtitle content. This facilitates user editing of the subtitle content, enriches video processing methods, and enhances the user's video processing experience. Attached Figure Description
[0036] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0037] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 A flowchart illustrating a video processing method provided in an embodiment of this disclosure;
[0039] Figure 2 A schematic diagram of a video editing page provided in an embodiment of this disclosure;
[0040] Figure 3 A schematic diagram of a subtitle editing page provided in an embodiment of this disclosure;
[0041] Figure 4 A schematic diagram of another video editing page provided in an embodiment of this disclosure;
[0042] Figure 5 A schematic diagram of another video editing page provided in an embodiment of this disclosure;
[0043] Figure 6 A schematic diagram of another video editing page provided in an embodiment of this disclosure;
[0044] Figure 7 This is a schematic diagram of the structure of a video processing apparatus provided in an embodiment of the present disclosure;
[0045] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0046] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0047] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0048] With the continuous development of video editing technology, people's needs for video processing-related functions are becoming more and more diversified.
[0049] To meet people's diverse needs for video processing functions, how to further enrich video processing-related functions is a technical problem that urgently needs to be solved.
[0050] Therefore, this disclosure provides a video processing method. First, a video editing page is displayed, which includes a video playback area and a track editing area. A first video is played in the video playback area, and video clips from the first video are displayed in the track editing area based on the video track. Then, when a subtitle generation operation is received on the video editing page, the video editing page jumps to a subtitle editing page, and the subtitle content of the first video is displayed on the subtitle editing page. The subtitle content includes multiple subtitle text fragments generated by speech recognition of the first video.
[0051] Upon receiving a subtitle generation operation on the video editing page, this embodiment triggers a direct jump from the video editing page to the subtitle editing page, displaying the generated subtitle content. This facilitates user editing of the subtitle content, enriches video processing methods, and enhances the user's video processing experience.
[0052] Based on this, the present disclosure provides a video processing method, referring to... Figure 1 The flowchart below illustrates a video processing method provided in this embodiment of the present disclosure. The method specifically includes:
[0053] S101: Displays the video editing page.
[0054] The video editing page includes a video playback area and a track editing area. The video playback area plays a first video, and the track editing area displays video clips from the first video based on the video track.
[0055] The video processing method provided in this disclosure can be applied to a client, such as a client deployed on a smartphone, a client deployed on a tablet, etc.
[0056] The video editing page in this embodiment is a page for users to edit imported videos. The video editing page includes a video playback area and a track editing area. The video playback area displays the video frame of the first video for real-time preview of the video editing effect. Specifically, the video playback area can be a video display window, and the display position of the video playback area can include the top area of the video editing page, etc.
[0057] The track editing area displays video clips from the first video based on the video track. These video clips are the video segment units used to compose the first video. The display location of this track editing area can include the bottom area of the video editing page, etc. Within this track editing area, users can trigger editing operations on the video clips on the video track. The first video can be any video; specifically, it can be the first video displayed on the video editing page after triggering the import operation.
[0058] like Figure 2 The diagram shown is a schematic of a video editing page provided in an embodiment of this disclosure. The video editing page displays a video playback area 201 and a track editing area 202. The video playback area 201 plays video frames of a first video, and the track editing area 202 displays video clips from the first video based on the video track.
[0059] S102: In response to the subtitle generation operation performed on the video editing page, the user is redirected from the video editing page to the subtitle editing page, and the subtitle content of the first video is displayed on the subtitle editing page.
[0060] The subtitle content includes multiple subtitle text segments generated by speech recognition of the first video, and these multiple subtitle text segments correspond to multiple audio segments contained in the first video.
[0061] This subtitle generation operation is used to trigger the generation of subtitles. Specifically, this subtitle generation operation can be a trigger operation for the subtitle generation control on the video editing page. This subtitle editing page is used to modify, adjust, and perform other editing operations on the subtitle text fragments in the subtitle content of the first video.
[0062] In one application scenario, during the display of a video editing page, a subtitle recognition control is displayed on the video editing page. When a trigger operation is received for the subtitle recognition control, a subtitle recognition panel is displayed on the video editing page, which displays a subtitle generation control. When a trigger operation is received for the subtitle generation control, the video editing page jumps to the subtitle editing page, where the subtitle content of the first video is displayed in the subtitle display area. The subtitle content includes multiple subtitle text fragments.
[0063] As mentioned above Figure 2 The video editing page shows a subtitle recognition control 203. When a trigger operation is received for the subtitle recognition control 203, a subtitle recognition panel 204 is displayed on the video editing page. The subtitle recognition panel displays a subtitle generation control 205. When a trigger operation is received for the subtitle generation control 205, the video editing page jumps to the subtitle editing page. The subtitle editing page contains a subtitle display area 206, which displays the subtitle content of the first video. The subtitle content includes multiple subtitle text fragments generated by speech recognition of the first video, including subtitle text fragment 207.
[0064] After displaying the subtitle content of the first video on the subtitle editing page, this embodiment of the present disclosure can also play the video frame of the first video on the subtitle editing page. Specifically, the video frame of the first video can be played in the playback window on the subtitle editing page, and during the playback of the first video, the subtitle text fragments in the subtitle content of the first video can be scrolled and displayed based on the playback time information of the first video.
[0065] The playback time information may include the start time of the audio segment in the first video. This playback time information can be used to control when the subtitle text segment is scrolled, so as to achieve synchronized display of subtitles and video footage. There is a correspondence between the audio segment and the subtitle text segment in the first video.
[0066] As mentioned above Figure 2 The video frame of the first video is played in the playback window 208 on the subtitle editing page shown. During the playback of the first video in the playback window 208, the subtitle text fragments in the subtitle content of the first video are scrolled and displayed based on the playback time information of the first video, so as to realize the synchronous display of the subtitle text fragments and the video frame.
[0067] In one optional implementation, during the process of displaying the subtitle content of the first video on the subtitle editing page, a text template control can also be set on the subtitle editing page. This subtitle template control is used to trigger the display of the subtitle template editing page, which displays a variety of subtitle template effect images to trigger subtitle effect editing operations for the subtitle content of the first video.
[0068] This subtitle template preview image is used to demonstrate the effect of the corresponding subtitle template. In other words, it shows the actual display effect after applying the corresponding subtitle template. The preview image can include information such as subtitle style and color. By displaying the preview image, users can intuitively see the display effects of different subtitle templates. The subtitle template is a predefined subtitle display style, which defines the subtitle's attribute information, specifically including font type, font size, color, alignment, and other attributes.
[0069] Specifically, when a trigger operation is received for the text template control on the subtitle editing page, the subtitle template editing page is displayed. This subtitle template editing page displays multiple subtitle template effect images. The trigger operation for the text template control on the subtitle editing page can be a click, long press, or other trigger operation for the text template control.
[0070] like Figure 3 The diagram shown is a schematic of a subtitle editing page provided in an embodiment of this disclosure. The subtitle editing page displays a text template control 301. When a trigger operation is received for the text template control 301, a subtitle template editing page 302 is displayed on the subtitle editing page. The subtitle template editing page displays multiple subtitle template effect images, including a subtitle template effect image 303.
[0071] While browsing multiple subtitle template images on the subtitle template editing page, users can also select the first subtitle template image to edit the subtitle effect of the target subtitle text segment corresponding to the first video. The first subtitle template image can be any subtitle template image on the subtitle template editing page, and the target subtitle text segment includes some or all of the subtitle text segments in the subtitle content of the first video. That is, users can choose to apply the subtitle template to all the subtitle content of the first video, or they can apply it only to the subtitle text segments corresponding to certain audio segments in the first video.
[0072] Specifically, when a selection operation is received for the first subtitle template effect image, the subtitle effect of the target subtitle text segment corresponding to the first video is edited using the subtitle template corresponding to the first subtitle template effect image.
[0073] As mentioned above Figure 3The subtitle template effect diagram 303 on the subtitle template editing page is shown. When a selection operation is received for this subtitle template effect diagram 303, the subtitle effect is edited on the target subtitle text segment corresponding to the first video using the subtitle template corresponding to the subtitle template effect diagram 303, such as... Figure 3 The subtitle text fragment 304 is shown in the image.
[0074] In the video processing method provided in this embodiment, firstly, a video editing page is displayed, wherein the video editing page includes a video playback area and a track editing area. A first video is played in the video playback area, and video clips from the first video are displayed in the track editing area based on the video track. Then, when a subtitle generation operation is received on the video editing page, the video editing page jumps to the subtitle editing page, and the subtitle content of the first video is displayed on the subtitle editing page. The subtitle content includes multiple subtitle text fragments generated by speech recognition of the first video.
[0075] Upon receiving a subtitle generation operation on the video editing page, this embodiment triggers a direct jump from the video editing page to the subtitle editing page, displaying the generated subtitle content. This facilitates user editing of the subtitle content, enriches video processing methods, and enhances the user's video processing experience.
[0076] In one optional implementation, after displaying the video editing page, a subtitle recognition panel can also be displayed on the video editing page. This subtitle recognition panel includes multiple areas, with a first area displaying subtitle source setting information. This first area can be any one of the multiple areas included in the subtitle recognition panel. The subtitle source setting information is used to set information related to the source of the subtitle content. A subtitle recognition control can be set on the video editing page, and triggering this control displays the subtitle recognition panel on the video editing page.
[0077] like Figure 4 The diagram shown is a schematic of another video editing page provided in an embodiment of this disclosure. The video editing page displays a subtitle recognition control. When a trigger operation is received for the subtitle recognition control, a subtitle recognition panel 401 is displayed. The subtitle recognition panel is divided into multiple areas, among which the subtitle source setting information is displayed in the first area 402.
[0078] By displaying subtitle source settings information to users, users can be prompted to adjust their subtitle source settings, thereby further enhancing their video processing experience.
[0079] In one optional implementation, during the display of subtitle source setting information on the subtitle recognition panel, the user can trigger the subtitle source setting information to configure the subtitle source. Specifically, upon receiving a trigger operation for the subtitle source setting information, a subtitle source setting panel is displayed. This panel displays at least one subtitle source option, which can refer to the subtitle generation source, such as a video source, background music source, etc. The subtitle source option is determined based on the audio material type of the first video; that is, the audio material in the first video can include various types, such as dialogue, narration, or lyrics from background music. Different types of audio material will affect the determination of the subtitle source. The trigger operation for the subtitle source setting information can include clicking, long-pressing, or other trigger operations within the display area of the subtitle source setting information.
[0080] As mentioned above Figure 4 In the video editing page shown, when a trigger operation is received for setting the subtitle source information in the first area 402, the subtitle source setting panel 403 is displayed. The subtitle source setting panel displays multiple subtitle source options, including subtitle source option 404.
[0081] While the subtitle source settings panel displays multiple subtitle source options, the user can select one or more subtitle source options as the subtitle generation source for the first video. The subtitle generation source is used to generate the subtitle content for the first video.
[0082] Specifically, when receiving a selection operation for one or more subtitle source options on the subtitle source settings panel, the system determines the source information corresponding to the first or more subtitle source selections and identifies this source information as the subtitle generation source for the first video, i.e., it obtains the corresponding subtitle content based on the source information. Each subtitle source option corresponds to a source information set, which identifies the subtitle source. For example, the source information corresponding to the video source option is that the subtitle content is generated from the audio content included in the video itself.
[0083] As mentioned above Figure 4 In the video editing page shown, when the user selects the subtitle source option 404, the source information corresponding to the subtitle source option 404 is determined, and the source information is determined as the subtitle generation source for the first video.
[0084] In addition to displaying a subtitle recognition panel on the video editing page, this embodiment of the disclosure can also receive a subtitle generation operation on the subtitle recognition panel to trigger the display of the subtitle editing page. This subtitle generation operation on the subtitle recognition panel can be a trigger operation on the subtitle generation control on the subtitle recognition panel. Specifically, when a trigger operation is received on the subtitle generation control on the subtitle recognition panel, the video editing page redirects to the subtitle editing page, where the subtitle content of the first video is displayed. As described above. Figure 2 As shown on the video editing page.
[0085] In one optional implementation, after displaying the subtitle recognition panel on the video editing page, subtitle template setting information can also be displayed in a second area on the subtitle recognition panel. This subtitle template setting information is used to trigger the display of the subtitle template editing page. The second area can be any area on the subtitle recognition panel other than the first and third areas. Specifically, when a trigger operation is received for the subtitle template setting information, the subtitle template editing page is displayed. This subtitle template editing page displays multiple subtitle template effect images, which are used to present the effect of the corresponding subtitle template.
[0086] like Figure 5 The diagram shows another video editing page provided in this embodiment. The second area 502 of the subtitle recognition panel 501 on the video editing page displays subtitle template setting information. When a trigger operation is received for the subtitle template setting information, the subtitle template editing page 503 is displayed. The subtitle template editing page displays multiple subtitle template effect images, including subtitle template effect image 504.
[0087] While multiple subtitle template images are displayed on the subtitle template editing page, users can also select a second subtitle template image to apply the corresponding subtitle template to the subtitle content of the first video. This second subtitle template image can be any subtitle template image on the subtitle template editing page.
[0088] Specifically, when a selection operation is received for the second subtitle template effect image, the subtitle template corresponding to the second subtitle template effect image is determined as the subtitle template corresponding to the first video. At this time, the subtitle content of the first video is applied with the subtitle template corresponding to the second subtitle template effect image.
[0089] In one optional implementation, after displaying the subtitle recognition panel on the video editing page, subtitle language information can be displayed in a third area of the subtitle recognition panel. This subtitle language information is related to the language used in the subtitles; specifically, it may include selectable language types. The third area is the area on the subtitle recognition panel other than the first and second areas.
[0090] Specifically, when a setting trigger operation for subtitle language information is received, a subtitle language selection page is displayed, which shows multiple candidate language types.
[0091] like Figure 6 The diagram shows another video editing page provided in this embodiment of the present disclosure. The video editing page displays a subtitle recognition panel 601. The subtitle recognition panel 601 displays subtitle language information in a third area. When a setting trigger operation for the subtitle language information is received, a subtitle language selection page 602 is displayed. The subtitle language selection page displays multiple candidate language types, including candidate language type 603.
[0092] During the process of displaying multiple candidate language types on the subtitle language selection page, users can trigger a selection operation for one or more language types to determine the subtitle language type corresponding to the first video. In other words, by selecting one or more language types, the language used to generate the subtitle content of the first video can be determined.
[0093] Specifically, it receives a selection operation for one or more language types from a plurality of candidate language types, determines one or more language types as the subtitle language type corresponding to the first video, and the subtitle language type is used to generate the subtitle content of the first video.
[0094] In this embodiment of the disclosure, by setting the subtitle language type corresponding to the first video, the subtitle display needs of users in different application scenarios can be met, enriching the video processing methods and improving the user's video processing experience.
[0095] Based on the above method embodiments, this disclosure also provides a video processing apparatus, with reference to... Figure 7 This is a schematic diagram of the structure of a video processing apparatus provided in an embodiment of the present disclosure. The apparatus includes:
[0096] The first display module 701 is used to display a video editing page; wherein, the video editing page includes a video playback area and a track editing area, the video playback area plays a first video, and the track editing area displays video clips from the first video based on the video track;
[0097] The second display module 702 is used to respond to a subtitle generation operation performed on the video editing page, jump from the video editing page to the subtitle editing page, and display the subtitle content of the first video on the subtitle editing page; wherein, the subtitle content includes multiple subtitle text segments generated by speech recognition of the first video.
[0098] In one optional implementation, the subtitle editing page is provided with a text template control, and the device further includes:
[0099] The third display module is used to display the subtitle template editing page in response to a trigger operation on the text template control on the subtitle editing page; wherein, the subtitle template editing page displays multiple subtitle template effect images, which are used to present the effect of the corresponding subtitle template;
[0100] The editing module is used to respond to the selection operation of the first subtitle template effect image and edit the subtitle effect of the target subtitle text segment corresponding to the first video using the subtitle template corresponding to the first subtitle template effect image; wherein, the target subtitle text segment includes part or all of the subtitle text segments in the subtitle content of the first video.
[0101] In one optional embodiment, the apparatus further includes:
[0102] The fourth display module is used to display a subtitle recognition panel on the video editing page; wherein the subtitle recognition panel includes multiple areas, and the first area of the multiple areas displays subtitle source setting information;
[0103] The fifth display module is used to display a subtitle source setting panel in response to a trigger operation on the subtitle source setting information; wherein the subtitle source setting panel displays at least one subtitle source option determined based on the audio material type of the first video;
[0104] The first determining module is configured to receive a selection operation for one or more subtitle source options among the at least one subtitle source options, and determine the source information corresponding to the one or more subtitle source options as the subtitle generation source corresponding to the first video; wherein, the subtitle generation source is used to generate the subtitle content of the first video;
[0105] The second display module is specifically used for:
[0106] In response to the subtitle generation operation performed on the subtitle recognition panel, the video editing page is redirected to the subtitle editing page, and the subtitle content of the first video is displayed on the subtitle editing page.
[0107] In one optional implementation, subtitle template setting information is displayed in a second area on the subtitle recognition panel, and the device further includes:
[0108] The sixth display module is used to display a subtitle template editing page in response to a trigger operation on the subtitle template setting information; wherein, the subtitle template editing page displays multiple subtitle template effect images, which are used to present the effect of the corresponding subtitle template;
[0109] The seventh display module is used to receive the selection operation for the second subtitle template effect image and determine the subtitle template corresponding to the second subtitle template effect image as the subtitle template corresponding to the first video.
[0110] In one optional implementation, subtitle language information is displayed in a third area on the subtitle recognition panel, and the device further includes:
[0111] The eighth display module is used to display a subtitle language selection page in response to a setting trigger operation for the subtitle language information; wherein, the subtitle language selection page displays multiple candidate language types;
[0112] The second determining module is configured to receive a selection operation for one or more language types from the plurality of candidate language types, and determine the one or more language types as the subtitle language type corresponding to the first video, wherein the subtitle language type is used to generate the subtitle content of the first video.
[0113] In one optional embodiment, the apparatus further includes:
[0114] A playback module is used to play the first video within a playback window on the subtitle editing page;
[0115] The second display module includes a display module, specifically used for:
[0116] On the subtitle editing page, the scrolling display of subtitle text segments in the subtitle content of the first video is controlled based on the playback time information of the first video.
[0117] In the video processing apparatus provided in this embodiment, firstly, a video editing page is displayed, wherein the video editing page includes a video playback area and a track editing area. A first video is played in the video playback area, and video clips from the first video are displayed in the track editing area based on the video track. Then, when a subtitle generation operation is received on the video editing page, the video editing page jumps to the subtitle editing page, and the subtitle content of the first video is displayed on the subtitle editing page. The subtitle content includes multiple subtitle text fragments generated by speech recognition of the first video.
[0118] Upon receiving a subtitle generation operation on the video editing page, this embodiment triggers a direct jump from the video editing page to the subtitle editing page, displaying the generated subtitle content. This facilitates user editing of the subtitle content, enriches video processing methods, and enhances the user's video processing experience.
[0119] In addition to the methods and apparatus described above, this disclosure also provides a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to implement the video processing method described in this disclosure.
[0120] This disclosure also provides a computer program product, which includes a computer program / instructions that, when executed by a processor, implement the video processing method described in this disclosure.
[0121] In addition, this disclosure also provides an electronic device, see [link to relevant documentation]. Figure 8 As shown, it may include:
[0122] The electronic device includes a processor 801, a memory 802, an input device 803, and an output device 804. The number of processors 801 in the electronic device can be one or more. Figure 8 Taking a processor as an example. In some embodiments of this disclosure, the processor 801, memory 802, input device 803, and output device 804 can be connected via a bus or other means, wherein, Figure 8 Taking the example of a connection between China and Israel via a bus.
[0123] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc. In addition, the memory 802 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. The input device 803 can be used to receive input digital or character information, and to generate signal inputs related to user settings and function control of the electronic device.
[0124] Specifically in this embodiment, the processor 801 loads the executable files corresponding to the processes of one or more applications into the memory 802 according to the following instructions, and the processor 801 runs the applications stored in the memory 802 to realize the various functions of the above-mentioned electronic device.
[0125] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0126] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A video processing method, characterized in that, The method includes: The video editing page is displayed; wherein, the video editing page includes a video playback area and a track editing area, the video playback area plays a first video, and the track editing area displays video clips from the first video based on the video track; In response to a subtitle generation operation performed on the video editing page, the user is redirected from the video editing page to a subtitle editing page, where the subtitle content of the first video is displayed. The subtitle content includes multiple subtitle text segments generated by speech recognition of the first video.
2. The method according to claim 1, characterized in that, The subtitle editing page includes a text template control, and the method further includes: In response to a trigger operation on the text template control on the subtitle editing page, the subtitle template editing page is displayed; wherein, the subtitle template editing page displays multiple subtitle template effect images, which are used to present the effect of the corresponding subtitle template; In response to the selection operation of the first subtitle template effect image, the subtitle effect of the target subtitle text segment corresponding to the first video is edited using the subtitle template corresponding to the first subtitle template effect image; wherein, the target subtitle text segment includes part or all of the subtitle text segments in the subtitle content of the first video.
3. The method according to claim 1, characterized in that, After displaying the video editing page, the following is also included: A subtitle recognition panel is displayed on the video editing page; wherein, the subtitle recognition panel includes multiple areas, and the first area of the multiple areas displays subtitle source setting information; In response to a trigger operation on the subtitle source setting information, a subtitle source setting panel is displayed; wherein the subtitle source setting panel displays at least one subtitle source option determined based on the audio material type of the first video; The system receives a selection operation for one or more subtitle source options among the at least one subtitle source options, and determines the source information corresponding to the one or more subtitle source options as the subtitle generation source corresponding to the first video; wherein the subtitle generation source is used to generate the subtitle content of the first video; The step of responding to a subtitle generation operation on the video editing page by redirecting from the video editing page to a subtitle editing page and displaying the subtitle content of the first video on the subtitle editing page includes: In response to the subtitle generation operation performed on the subtitle recognition panel, the video editing page is redirected to the subtitle editing page, and the subtitle content of the first video is displayed on the subtitle editing page.
4. The method according to claim 3, characterized in that, The second area on the subtitle recognition panel displays subtitle template setting information, and the method further includes: In response to a trigger operation on the subtitle template settings information, a subtitle template editing page is displayed; wherein, the subtitle template editing page displays multiple subtitle template effect images, which are used to present the effect of the corresponding subtitle template; The system receives a selection operation for the second subtitle template effect image and determines the subtitle template corresponding to the second subtitle template effect image as the subtitle template corresponding to the first video.
5. The method according to claim 3, characterized in that, The third area on the subtitle recognition panel displays subtitle language information, and the method further includes: In response to a setting trigger operation for the subtitle language information, a subtitle language selection page is displayed; wherein, the subtitle language selection page displays multiple candidate language types; The system receives a selection operation for one or more language types from the plurality of candidate language types, determines the one or more language types as the subtitle language type corresponding to the first video, and the subtitle language type is used to generate the subtitle content of the first video.
6. The method according to claim 1, characterized in that, After the user is redirected from the video editing page to the subtitle editing page, the process also includes: Play the first video in the playback window on the subtitle editing page; The process of displaying the subtitle content of the first video on the subtitle editing page includes: On the subtitle editing page, the scrolling display of subtitle text segments in the subtitle content of the first video is controlled based on the playback time information of the first video.
7. A video processing apparatus, characterized in that, The device includes: The first display module is used to display a video editing page; wherein, the video editing page includes a video playback area and a track editing area, the video playback area plays a first video, and the track editing area displays video clips from the first video based on the video track; The second display module is used to respond to the subtitle generation operation performed on the video editing page, jump from the video editing page to the subtitle editing page, and display the subtitle content of the first video on the subtitle editing page; wherein, the subtitle content includes multiple subtitle text segments generated by speech recognition of the first video.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a terminal device, cause the terminal device to perform the method as described in any one of claims 1-6.
9. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as claimed in any one of claims 1-6.
10. A computer program product, characterized in that, The computer program product includes a computer program / instruction that, when executed by a processor, implements the method as described in any one of claims 1-6.
