Subtitle editing method, device, electronic device and storage medium
By displaying multilingual subtitle styles on the video editing page and applying the target subtitle style for translation, the problem of cumbersome multilingual subtitle editing in the existing technology is solved, and editing efficiency is improved.
Patent Information
- Application Number
- CN202310018507.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-04
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2043-01-04
AI Technical Summary
In existing multilingual subtitle editing methods, users need to manually adjust the subtitle style after translating and generating multilingual subtitles, which makes the operation cumbersome and inefficient.
By responding to subtitle editing operations, obtaining subtitles to be translated and displaying multilingual subtitle styles, users can directly apply the target subtitle style for translation and display, reducing manual setting steps.
It improves the efficiency of multilingual subtitle editing, reduces the complexity of user operations, and simplifies the subtitle style adjustment process.
Smart Images

Figure CN116095421B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of video processing technology, and in particular to a subtitle editing method, device, electronic device, and storage medium. Background Art
[0002] With the development of video processing technology, a technology for applying multilingual subtitles in videos has emerged. Users can select the language into which to translate the text subtitles in the video. The video can then display the original text subtitles and the translated subtitles after the text subtitles are translated into the selected language at the same time, forming multilingual subtitles displayed in the video.
[0003] In the related art, when editing multilingual subtitles, if the user needs to adjust the subtitle style, such as the font, color, or size of the text in the subtitles, they must manually set or modify the subtitle style after the subtitles are translated and generated. Therefore, the existing multilingual subtitle editing methods are relatively cumbersome for the user to operate and are inefficient for editing multilingual subtitles. Summary of the Invention
[0004] The present disclosure provides a subtitle editing method, device, electronic device, and storage medium to at least address the low efficiency of editing multilingual subtitles in related technologies. The technical solutions of the present disclosure are as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, a subtitle editing method is provided, comprising:
[0006] In response to a subtitle editing operation on a video to be edited, obtaining subtitles to be translated that match the subtitle editing operation, and displaying at least one multilingual subtitle style on a video editing page;
[0007] In response to the operation of applying a target subtitle style in each of the multilingual subtitle styles to the subtitles to be translated, the subtitles to be translated are translated into translated subtitles that match the target subtitle style, and the subtitles to be translated and the translated subtitles are displayed on the video editing page according to the target subtitle style.
[0008] In an exemplary embodiment, when the video to be edited is not pre-associated with subtitles, in response to a subtitle editing operation on the video to be edited, subtitles to be translated that match the subtitle editing operation are obtained, and at least one multilingual subtitle style is displayed on a video editing page, including: in response to a first subtitle editing operation on the video to be edited, a subtitle editing area is displayed on the video editing page, and subtitle style templates corresponding to each of the multilingual subtitle styles are displayed in a style template display area in the subtitle editing area; in response to a text input operation triggered in a text input area in the subtitle editing area, first text content input in the text input area is obtained; the first text content is used as the subtitles to be translated, and the subtitles to be translated are added to the video to be edited displayed in the video preview area of the video editing page.
[0009] In an exemplary embodiment, in response to the operation of applying a target subtitle style in each of the multilingual subtitle styles to the subtitles to be translated, translating the subtitles to be translated into translated subtitles that match the target subtitle style, and displaying the subtitles to be translated and the translated subtitles in the video editing page according to the target subtitle style, includes: in response to a style template selection operation triggered in the style template display area, using the selected subtitle style template as the target subtitle style template, and obtaining the translation language currently set for the target subtitle style template; translating the subtitles to be translated into translated subtitles that match the currently set translation language; and displaying the subtitles to be translated and the translated subtitles in the video preview area according to the target subtitle style corresponding to the target subtitle style template.
[0010] In an exemplary embodiment, after displaying the subtitles to be translated and the translated subtitles in the video preview area according to the target subtitle style corresponding to the target subtitle style template, the method further includes: in response to a subtitle content update operation triggered for the subtitles to be translated displayed in the video preview area, displaying the text input area and acquiring updated text content input in the text input area; using the updated text content as updated subtitles to be translated, and displaying the updated subtitles to be translated and the translated subtitles in the video preview area according to the target subtitle style; in response to a translation text update operation for the updated text content, translating the updated subtitles to be translated into updated translated subtitles that match the currently set translation language, and displaying the updated subtitles to be translated and the updated translated subtitles in the video preview area according to the target subtitle style.
[0011] In an exemplary embodiment, obtaining the translation language currently set for the target subtitle style template includes: in response to a translation language setting operation triggered for the target subtitle style template, displaying a first translation language setting area carrying translation language controls representing different translation languages in the subtitle editing area; in response to a selection operation for the translation language control triggered in the first translation language setting area, obtaining the selected translation language control, and using the translation language represented by the selected translation language control as the translation language currently set for the target subtitle style template.
[0012] In an exemplary embodiment, after obtaining the selected translation language control, the method further includes: using the translation language represented by the selected translation language control as the currently set translation language of each subtitle style template in the style template display area.
[0013] In an exemplary embodiment, each of the subtitle style templates carries a default text content, and a default translation content after the default text content is translated according to the translation language currently set by the target subtitle style template; after displaying the subtitle editing area in the video editing page and displaying the subtitle style template corresponding to each of the multilingual subtitle styles in the style template display area in the subtitle editing area, it also includes: in response to a style template selection operation triggered in the style template display area, the selected subtitle style template is used as the target subtitle style template, and in the video preview area, the default subtitle style template is displayed according to the target subtitle style corresponding to the target subtitle style template. The present invention relates to a video editing area for editing subtitles, wherein the subtitles to be translated are recognized as the subtitles of the video and the default translation content; in response to a text input operation triggered in a text input area in the subtitle editing area, second text content inputted in the text input area is obtained; the second text content is used as the subtitles to be translated, and the subtitles to be translated and the default translation content are displayed in the video preview area according to the target subtitle style; in response to a translation text update operation for the second text content, the subtitles to be translated are translated into translated subtitles that match the currently set translation language, and the subtitles to be translated and the translated subtitles are displayed in the video preview area according to the target subtitle style.
[0014] In an exemplary embodiment, when the video to be edited is pre-associated with subtitles, in response to a subtitle editing operation on the video to be edited, subtitles to be translated that match the subtitle editing operation are obtained, and at least one multilingual subtitle style is displayed on the video editing page, including: in response to a second subtitle editing operation triggered for a target subtitle carried in the video to be edited, the target subtitle is used as the subtitle to be translated, and a subtitle editing area is displayed on the video editing page; the subtitle style template corresponding to each of the multilingual subtitle styles is displayed in a style template display area in the subtitle editing area, and the text content of the target subtitle is displayed in a text input area in the subtitle editing area.
[0015] In an exemplary embodiment, the method further includes: in response to a third subtitle editing operation triggered for the target subtitle, obtaining a current subtitle style of the target subtitle displayed in the video to be edited, and displaying a second translation language setting area carrying translation language controls representing different translation languages on the video editing page; in response to a selection operation triggered for the translation language control in the second translation language setting area, obtaining a selected translation language control and the translation language represented by the selected translation language control; translating the target subtitle into translated subtitles according to the translation language represented by the translation language control, and displaying the translated subtitles at a corresponding display position of the target subtitles according to the current subtitle style.
[0016] In an exemplary embodiment, the number of subtitles pre-associated with the video to be edited is at least two; the second translation language setting area carries a translation language application control; after obtaining the selected translation language control and the translation language represented by the selected translation language control, the method further includes: in response to a triggering operation on the translation language application control, displaying a subtitle list corresponding to the video to be edited; the subtitle list contains subtitles pre-associated with the video to be edited; in response to a selection operation on the subtitles contained in the subtitle list, obtaining subtitles selected from the subtitle list as multiple subtitles to be translated; translating each subtitle to be translated according to the translation language represented by the translation language control to obtain translated subtitles corresponding to each subtitle to be translated, and displaying the translated subtitles corresponding to each subtitle to be translated at a corresponding display position of each subtitle to be translated according to the current subtitle style.
[0017] According to a second aspect of an embodiment of the present disclosure, a subtitle editing device is provided, comprising:
[0018] a subtitle acquisition unit for translation, configured to execute a subtitle editing operation on a video to be edited, acquire subtitles for translation that match the subtitle editing operation, and display at least one multilingual subtitle style on a video editing page;
[0019] The subtitle translation unit is configured to execute an operation in response to applying a target subtitle style in each of the multilingual subtitle styles to the subtitle to be translated, translate the subtitle to be translated into a translated subtitle that matches the target subtitle style, and display the subtitle to be translated and the translated subtitle on the video editing page according to the target subtitle style.
[0020] In an exemplary embodiment, when the video to be edited is not pre-associated with subtitles, the subtitles to be translated obtaining unit is further configured to execute, in response to a first subtitle editing operation on the video to be edited, a subtitle editing area in the video editing page, and a subtitle style template corresponding to each of the multilingual subtitle styles in a style template display area in the subtitle editing area; in response to a text input operation triggered in a text input area in the subtitle editing area, obtain a first text content input in the text input area; use the first text content as the subtitles to be translated, and add the subtitles to be translated to the video to be edited displayed in the video preview area of the video editing page.
[0021] In an exemplary embodiment, the subtitle translation unit is further configured to execute a style template selection operation triggered in the style template display area, use the selected subtitle style template as the target subtitle style template, and obtain the translation language currently set for the target subtitle style template; translate the subtitle to be translated into translated subtitles that match the currently set translation language; and display the subtitle to be translated and the translated subtitles in the video preview area according to the target subtitle style corresponding to the target subtitle style template.
[0022] In an exemplary embodiment, the subtitle editing device further includes: a subtitle to be translated updating unit configured to perform a subtitle content updating operation triggered by the subtitle to be translated displayed in the video preview area, display the text input area, and obtain updated text content input in the text input area; use the updated text content as updated subtitle to be translated, and display the updated subtitle to be translated and the translated subtitle in the video preview area according to the target subtitle style; in response to the translation text updating operation on the updated text content, translate the updated subtitle to be translated into updated translated subtitles matching the currently set translation language, and display the updated subtitle to be translated and the updated translated subtitle in the video preview area according to the target subtitle style.
[0023] In an exemplary embodiment, the subtitle translation unit is further configured to, in response to a translation language setting operation triggered for the target subtitle style template, display a first translation language setting area carrying translation language controls representing different translation languages in the subtitle editing area; in response to a selection operation triggered for the translation language control in the first translation language setting area, obtain a selected translation language control, and use the translation language represented by the selected translation language control as the translation language currently set for the target subtitle style template.
[0024] In an exemplary embodiment, the subtitle translation unit is further configured to use the translation language represented by the selected translation language control as the currently set translation language of each subtitle style template in the style template display area.
[0025] In an exemplary embodiment, each of the subtitle style templates carries a default text content and a default translation content after the default text content is translated according to the translation language currently set by the target subtitle style template; the subtitle translation unit is further configured to execute a style template selection operation triggered in the style template display area, use the selected subtitle style template as the target subtitle style template, and display the default text content and the default translation content in the video preview area according to the target subtitle style corresponding to the target subtitle style template; in response to a text input operation triggered in the text input area in the subtitle editing area, obtain a second text content entered in the text input area; use the second text content as the subtitle to be translated, and display the subtitle to be translated and the default translation content in the video preview area according to the target subtitle style; in response to a translation text update operation on the second text content, translate the subtitle to be translated into a translated subtitle that matches the currently set translation language, and display the subtitle to be translated and the translated subtitle in the video preview area according to the target subtitle style.
[0026] In an exemplary embodiment, when the video to be edited is pre-associated with subtitles, the subtitle-to-be-translated acquisition unit is further configured to perform a second subtitle editing operation in response to a trigger for a target subtitle carried in the video to be edited, use the target subtitle as the subtitle to be translated, and display a subtitle editing area in the video editing page; display the subtitle style template corresponding to each of the multilingual subtitle styles in the style template display area in the subtitle editing area, and display the text content of the target subtitle in the text input area in the subtitle editing area.
[0027] In an exemplary embodiment, the subtitle translation unit is further configured to execute a third subtitle editing operation triggered for the target subtitle, obtain a current subtitle style of the target subtitle displayed in the video to be edited, and display a second translation language setting area carrying translation language controls representing different translation languages on the video editing page; in response to a selection operation triggered for the translation language control in the second translation language setting area, obtain a selected translation language control and the translation language represented by the selected translation language control; translate the target subtitle into translated subtitles according to the translation language represented by the translation language control, and display the translated subtitles at a corresponding display position of the target subtitles according to the current subtitle style.
[0028] In an exemplary embodiment, the number of subtitles pre-associated with the video to be edited is at least two; the second translation language setting area carries a translation language application control; the subtitle translation unit is further configured to execute a trigger operation on the translation language application control to display a subtitle list corresponding to the video to be edited; the subtitle list contains subtitles pre-associated with the video to be edited; in response to a selection operation on the subtitles contained in the subtitle list, obtain the subtitles selected from the subtitle list as multiple subtitles to be translated; translate each subtitle to be translated according to the translation language represented by the translation language control to obtain translated subtitles corresponding to each subtitle to be translated, and display the translated subtitles corresponding to each subtitle to be translated at the corresponding display position of each subtitle to be translated according to the current subtitle style.
[0029] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the subtitle editing method as described in any one of the embodiments of the first aspect.
[0030] According to a fourth aspect of an embodiment 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 is enabled to perform the subtitle editing method as described in any one of the embodiments of the first aspect.
[0031] According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, wherein the computer program product includes instructions, and when the instructions are executed by a processor of an electronic device, the electronic device is capable of executing the subtitle editing method as described in any one of the embodiments of the first aspect.
[0032] The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects:
[0033] In response to a subtitle editing operation on a video to be edited, subtitles to be translated that match the subtitle editing operation are obtained, and at least one multilingual subtitle style is displayed on a video editing page; in response to an operation of applying a target subtitle style in each multilingual subtitle style to the subtitles to be translated, the subtitles to be translated are translated into translated subtitles that match the target subtitle style, and the subtitles to be translated and the translated subtitles are displayed on a video editing page according to the target subtitle style. The present disclosure can display multilingual subtitle styles on a video editing page when performing a subtitle editing operation on a video to be edited, and the user only needs to apply the target subtitle style in the multilingual subtitle style to the subtitles to be translated, so that the subtitles to be translated can be translated into translated subtitles that match the target subtitle style, and the subtitles can also be displayed according to the target subtitle style, thereby eliminating the need for the user to manually set or modify the subtitle style after the multilingual subtitles are generated by translation, thereby reducing the complexity of user operations and improving the efficiency of editing multilingual subtitles.
[0034] 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 disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.
[0036] Figure 1 The figure is a flowchart of a subtitle editing method according to an exemplary embodiment.
[0037] Figure 2 The present invention is a flowchart showing at least one multilingual subtitle style according to an exemplary embodiment.
[0038] Figure 3 The figure is an interface diagram of a video editing page according to an exemplary embodiment.
[0039] Figure 4 The figure is a flowchart showing subtitles to be translated and translated subtitles according to an exemplary embodiment.
[0040] Figure 5 The figure is an interface diagram of a video editing page according to an exemplary embodiment.
[0041] Figure 6 The figure is a flowchart showing updating subtitles to be translated and translated subtitles according to an exemplary embodiment.
[0042] Figure 7 The figure is an interface diagram of a video editing page according to an exemplary embodiment.
[0043] Figure 8 The figure is an interface diagram of a video editing page according to an exemplary embodiment.
[0044] Figure 9 The figure is an interface diagram of a video editing page according to an exemplary embodiment.
[0045] Figure 10 The figure is an interface diagram of a video editing page according to an exemplary embodiment.
[0046] Figure 11 The figure is a flowchart showing subtitles to be translated and translated subtitles according to an exemplary embodiment.
[0047] Figure 12 The figure is an interface diagram of a video editing page according to an exemplary embodiment.
[0048] Figure 13 The figure is an interface diagram of a video editing page according to an exemplary embodiment.
[0049] Figure 14 The figure is an interface diagram of a video editing page according to an exemplary embodiment.
[0050] Figure 15 The figure is an interface diagram of a video editing page according to an exemplary embodiment.
[0051] Figure 16 The figure is a block diagram of a subtitle editing device according to an exemplary embodiment.
[0052] Figure 17 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0053] 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 with reference to the accompanying drawings.
[0054] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are 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 apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.
[0055] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0056] Figure 1 is a flowchart of a subtitle editing method according to an exemplary embodiment. Figure 1 As shown, the subtitle editing method is used in a terminal and includes the following steps.
[0057] In step S101 , in response to a subtitle editing operation on a video to be edited, subtitles to be translated that match the subtitle editing operation are obtained, and at least one multilingual subtitle style is displayed on a video editing page.
[0058] Among them, the terminal can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices, and the video to be edited refers to a video that needs to be subtitled. The subtitle editing operation is an operation triggered by the user to edit the subtitles in the video. This operation can be triggered by the user on the video editing page used to edit the video. It can be used to display the subtitles in the video to be edited in multiple languages. For example, subtitles displayed in language 1 can be translated into subtitles displayed in language 2, which is different from language 1, and subtitles displayed in language 1 and 2 can be displayed as multilingual subtitles at the same time. The subtitles to be translated are subtitles that need to be displayed in multiple languages. The multilingual subtitle style is used to represent the display style of the translated multilingual subtitles. The number of multilingual subtitle styles can be multiple, each representing a different display style of multilingual subtitles.
[0059] Specifically, when the user triggers the subtitle editing operation for displaying multilingual subtitles in the edited video through the video editing page, the terminal can determine the subtitles to be translated that need to be displayed in multiple languages, and can also display multiple multilingual subtitle display styles on the video editing page.
[0060] In step S102, in response to the operation of applying the target subtitle style among the multilingual subtitle styles to the subtitles to be translated, the subtitles to be translated are translated into translated subtitles that match the target subtitle style, and the subtitles to be translated and the translated subtitles are displayed on the video editing page according to the target subtitle style.
[0061] The target subtitle style refers to the display style of the multilingual subtitles applied to the subtitles to be translated. The target subtitle style can be pre-set with the translation language. The user can also trigger the terminal to apply the target subtitle style to the subtitles to be translated to achieve the multilingual subtitle display for the subtitles to be translated. At this time, the terminal can respond to the operation, first translate the subtitles to be translated into the translation language pre-set in the target subtitle style, and after obtaining the translated subtitles, the subtitles to be translated and the translated subtitles obtained after the translation of the subtitles to be translated are displayed in the video editing page according to the display form of the multilingual subtitles represented by the target subtitle style, so as to achieve the display of multilingual subtitles for the subtitles to be translated according to the display form represented by the target subtitle style.
[0062] For example, the multilingual subtitle style may include subtitle style 1, subtitle style 2 and subtitle style 3, which correspond to display style 1, display style 2 and display style 3 respectively. After the terminal obtains the subtitle a to be translated represented by language 1, the user can also trigger the operation of applying subtitle style 3 in the above multilingual subtitle style to the subtitle to be translated. At this time, the terminal can respond to the operation, and subtitle style 3 can be used as the target subtitle style. At the same time, subtitle style 3 can be set to translate language 1 into language 2. Then the terminal can first translate the subtitle a to be translated into the translated subtitle b displayed in language 2, and display the subtitle a to be translated and the translated subtitle b according to display style 3.
[0063] In the above-mentioned subtitle editing method, in response to the subtitle editing operation for the video to be edited, the subtitles to be translated that match the subtitle editing operation are obtained, and at least one multilingual subtitle style is displayed on the video editing page; in response to the operation of applying the target subtitle style in each multilingual subtitle style to the subtitles to be translated, the subtitles to be translated are translated into translated subtitles that match the target subtitle style, and the subtitles to be translated and the translated subtitles are displayed on the video editing page according to the target subtitle style. The present disclosure can display multilingual subtitle styles on the video editing page when performing a subtitle editing operation on the video to be edited, and the user only needs to apply the target subtitle style in the multilingual subtitle style to the subtitles to be translated, so that the subtitles to be translated can be translated into translated subtitles that match the target subtitle style, and the subtitles can also be displayed according to the target subtitle style, so that the user does not need to manually set or modify the style of the subtitles after the translation generates the multilingual subtitles, thereby reducing the tediousness of the user's operation and improving the efficiency of editing multilingual subtitles.
[0064] In an exemplary embodiment, Figure 2 As shown, in the case where the video to be edited is not pre-associated with subtitles, step S101 may further include:
[0065] In step S201, in response to a first subtitle editing operation on a video to be edited, a subtitle editing area is displayed in a video editing page, and subtitle style templates corresponding to various multilingual subtitle styles are displayed in a style template display area in the subtitle editing area.
[0066] In this embodiment, the video to be edited may not be pre-associated with subtitles. In this case, the subtitle editing operation triggered by the user may be the first subtitle editing operation. The first subtitle editing operation may be that the user first manually adds associated subtitles to the video to be edited, and then translates the added subtitles into multilingual subtitles and displays them in the video to be edited. The subtitle editing area refers to the area used for users to edit subtitles. The subtitle editing area may carry a style template display area for displaying subtitle style templates. In the style template display area, a variety of subtitle style templates may be carried, and the various subtitle style templates correspond to different multilingual subtitle styles. In this embodiment, when the user triggers the first subtitle editing operation for the video to be edited, the terminal may respond to the operation, thereby adding a display subtitle editing area in the displayed video editing page, and displaying the subtitle style template corresponding to each multilingual subtitle style in the style template display area carried by the subtitle editing area.
[0067] In step S202, in response to a text input operation triggered in a text input area in a subtitle editing area, first text content input in the text input area is acquired;
[0068] In step S203, the first text content is used as subtitles to be translated, and subtitles to be translated are added to the video to be edited displayed in the video preview area of the video editing page.
[0069] The text input area is an area for inputting subtitle text, for example, it can be a text input box carried in the subtitle editing area, the first text content refers to the text content entered by the user in the text input area, and the video preview area refers to the area in the video editing page used to preview the video to be edited. Specifically, the displayed subtitle editing area can also carry a text input area and a video preview area, and the user can also enter subtitle text in the text input area to trigger the text input operation. The terminal can respond to the text input operation, thereby obtaining the first text content entered by the user in the text input area and using it as the subtitle to be translated. At the same time, the video to be edited with the subtitle to be translated entered by the user can also be displayed in the video preview area of the video editing page.
[0070] like Figure 3As shown, after the user triggers the first subtitle editing operation, the video editing page may include a video preview area and a subtitle editing area, wherein the subtitle editing area also carries a text input area and a style template display area. The style template display area may display multiple subtitle style templates, namely style template 1, style template 2 and style template 3, representing different multilingual subtitle styles, namely subtitle style 1, subtitle style 2 and subtitle style 3. When the user enters the first text content in the text input area, that is, when the user enters text a, the above text a can be added to the video to be edited displayed in the video preview area as a subtitle to be translated.
[0071] In this embodiment, when the video to be edited is not pre-associated with subtitles, the user can also trigger the first subtitle editing operation to add a subtitle editing area in the video editing page, so that the subtitle text can be entered through the text input area provided in the subtitle editing area to obtain the subtitles to be translated, thereby increasing the diversity of the methods for obtaining the subtitles to be translated.
[0072] Further, if Figure 4 As shown, step S102 may further include:
[0073] In step S401 , in response to a style template selection operation triggered in a style template display area, the selected subtitle style template is used as a target subtitle style template, and the currently set translation language of the target subtitle style template is obtained.
[0074] The target subtitle style template refers to the subtitle style template selected by the user from the multiple subtitle style templates displayed in the style template display area. After multiple subtitle style templates are displayed in the style template display area, the user can also trigger the style template selection operation on one of them. The terminal can use the subtitle style template selected by the user as the target subtitle style template, and can also determine the translation language currently set for the target subtitle style template.
[0075] In step S402, the subtitles to be translated are translated into translated subtitles that match the currently set translation language;
[0076] In step S403, in the video preview area, the subtitles to be translated and the translated subtitles are displayed according to the target subtitle style corresponding to the target subtitle style template.
[0077] After the terminal determines the translation language currently set by the target subtitle style template, the subtitles to be translated can be translated into translated subtitles corresponding to the currently set translation language. For example, the subtitles to be translated may be Chinese subtitles, and the translation language currently set by the target subtitle style template may be English. Then the subtitles to be translated can be translated into corresponding English subtitles as translated subtitles. At the same time, the subtitles to be translated and the translated subtitles can be displayed in the video preview area according to the display style represented by the target subtitle style template, that is, the target subtitle style.
[0078] by Figure 3 For example, a plurality of subtitle style templates can be displayed in the style template display area, namely style template 1, style template 2 and style template 3. When the user selects style template 2, the terminal can bold the border of style template 2 to indicate that style template 2 is the target subtitle style template selected by the user. At the same time, if the translation language currently set for style template 2 is English, the terminal can also translate the text a entered by the user in the text input area, which can be Chinese text, into the corresponding English text, that is, text b, and use text b as the translated subtitle. At the same time, text a and text b can be displayed in the video preview area according to the display style 2 represented by style template 2, that is, text a2 and text b2 can be displayed in the video preview area, indicating that text a and text b are displayed in display style 2, as shown in FIG. Figure 5 shown.
[0079] In this embodiment, the user can also select a subtitle style template and use the selected subtitle style template as the target subtitle style template, and can translate the subtitles to be translated according to the translation language pre-set by the target subtitle style template, so that the subtitles to be translated and the translated subtitles can be displayed in the video preview area according to the target subtitle style, thereby adding subtitle style templates to multilingual subtitles, further improving the efficiency of multilingual subtitle editing.
[0080] In an exemplary embodiment, after step S403, as shown in FIG. Figure 6 As shown, it may also include:
[0081] In step S601, in response to a subtitle content update operation triggered for the subtitles to be translated displayed in the video preview area, a text input area is displayed, and updated text content input in the text input area is obtained;
[0082] In step S602, the updated text content is used as updated subtitles to be translated, and the updated subtitles to be translated and the translated subtitles are displayed in the video preview area according to the target subtitle style.
[0083] The subtitle content update operation is an operation used to update the subtitle content of the subtitles to be translated. The operation can be triggered by the user double-clicking the subtitles to be translated displayed in the video preview area, and the updated text content refers to the updated text content. After the user triggers the subtitle content update operation on the subtitles to be translated displayed in the video preview area, the terminal can display the text input area again. At this time, the user can update the input text content in the text input area, and the terminal can use the text content updated by the user as the updated text content. At the same time, the updated text content input by the user can also be used as the updated subtitles to be translated, so that in the video preview area, the updated subtitles to be translated and the translated subtitles are displayed according to the target subtitle style.
[0084] by Figure 5 For example, text a2 and text b2 are currently displayed in the video preview area, that is, text a and text b are displayed in display style 2, where text a is Chinese text and text b is the English text corresponding to text a. If the user needs to update the subtitle text displayed in the video preview area, the user can double-click text a2 and text b2 displayed in the video preview area to trigger the subtitle content update operation. At this time, the terminal can display the text input area again, and the user can use the virtual keyboard carried in the text input area to enter the updated text content, that is, enter text c in Chinese text. At this time, the video preview area displays the updated subtitles to be translated and the unupdated translated subtitles in accordance with display style 2, that is, text c2 and text b2 are displayed in the video preview area to achieve real-time update of the display of the text to be translated. At the same time, the text input area can also carry a √ control for confirming the update of the text content, which can be shown as follows Figure 7 shown.
[0085] In step S603, in response to the translation text update operation for the updated text content, the updated subtitles to be translated are translated into updated translated subtitles that match the currently set translation language, and the updated subtitles to be translated and the updated translated subtitles are displayed in the video preview area according to the target subtitle style.
[0086] The translation text update operation is an operation for updating the subtitle text of the translated subtitles. In step S602, since only the updated subtitles to be translated are displayed in the video preview area, and the translated subtitles are the subtitles before the update, in order to achieve synchronous update of the subtitles, the user can also trigger the translation text update operation after completing the input of the updated text content. The terminal can then translate the updated subtitles to be translated into updated translated subtitles that match the currently set translation language, thereby displaying the updated subtitles to be translated and the updated translated subtitles in the video preview area according to the target subtitle style.
[0087] For example, currently Figure 7 The text c2 and text b2 are displayed in the video preview area. At this time, the user can click the √ control for confirming the update of the text content to indicate that the updated text content has been updated. At this time, the terminal can display a new window in the video editing page, such as Figure 8 As shown, the window can contain two update confirmation controls, namely "Update Translation" control and "Do Not Update" control. When the user clicks the "Update Translation" control, it is considered to trigger the translation text update operation. At this time, text c can be translated into the corresponding English text, that is, text d, and text c2 and text d2 are displayed in the video preview area, indicating that text c and text d are displayed in display style 2. Figure 9 If the user clicks the "Do Not Update" control, it is considered that the translation text update operation is not triggered, and the terminal will continue to display text c2 and text b2, and will not update text b2 to translate into text d2.
[0088] In this embodiment, the user can also update the subtitle content of the subtitles to be translated through the subtitle content update operation, and the synchronous update displayed in the video preview area can be realized during the input of the updated text. After completing the input of the updated text, the translated subtitles can also be updated by triggering the translation text update operation. In this way, the synchronous update preview of the subtitles to be translated can be realized when the subtitles to be translated are updated, thereby improving the efficiency of subtitle content updating.
[0089] In an exemplary embodiment, step S401 may further include: in response to a translation language setting operation triggered for a target subtitle style template, displaying a first translation language setting area carrying translation language controls representing different translation languages in the subtitle editing area; in response to a selection operation for a translation language control triggered in the first translation language setting area, obtaining a selected translation language control, and using the translation language represented by the selected translation language control as the translation language currently set for the target subtitle style template.
[0090] The translation language setting operation refers to the operation of setting the translation language. The user can also set the translation language corresponding to the target subtitle style template. For example, the translation language represented by the target subtitle style template is English, but if the user wants to translate the subtitles to be translated into Japanese text, the translation language setting operation can be triggered on the target subtitle style template to change the translation language. The translation language setting operation can be that the user selects the target subtitle style template and clicks on the target subtitle style template again to trigger it. At this time, the terminal can respond to the triggering operation and display a setting area for setting the translation language in the subtitle editing area, that is, the first translation language setting area. The first translation language setting area can carry multiple translation language controls, representing different types of translation languages. The user can trigger a translation language control carried in the first translation language setting area to set the translation language represented by the selected translation language control to the translation language currently set for the target subtitle style template.
[0091] For example, Figure 5 For example, the target subtitle style template may be style template 2. The current translation language set for style template 2 is English. If the user needs to reset the translation language of style template 2, he can click style template 2 again to start the translation language setting operation for the target subtitle style template. Figure 10 As shown, in the subtitle editing area, a new window is added to display the first translation language setting area. The area carries multiple translation language controls, namely language control 1, language control 2 and language control 3. Language control 1 represents the English language, language control 2 represents the Japanese language, and language control 3 represents the Russian language. Since the translation language set for the current style template 2 is English, language control 1 is currently selected by default. At this time, the border of language control 1 is bold. If the user needs to translate the subtitles to be translated into Japanese, the translation language of the target subtitle style template can be set to Japanese by selecting language control 2, so that the subtitles to be translated can be translated into Japanese subtitles.
[0092] In this embodiment, the user can also set the translation language for the target subtitle style template through the translation language setting operation. Through the above method, each subtitle style template can support translation into multiple languages, and multilingual subtitles are not limited to the display of subtitles between two languages. Instead, by setting multiple translation language controls, multilingual subtitles can be translated into each other, thereby further improving the intelligence of subtitle translation.
[0093] Furthermore, after obtaining the selected translation language control, the method further includes: using the translation language represented by the selected translation language control as the currently set translation language of each subtitle style template in the style template display area.
[0094] After the user has selected the translation language control, that is, completed the translation language setting for the target subtitle style template, the terminal can also set the translation language represented by the translation language control as the currently set translation language for each subtitle style template in the style template display area, so as to achieve a unified setting of the translation language for all subtitle style templates. For example, the target subtitle style template selected by the user may be style template 2. After the user sets the translation language of style template 2, the translation language of style template 2 may be set to Japanese. Then, for the remaining style templates 1 and 3, the terminal can also set the translation language of style template 1 and style template 3 to Japanese, thereby achieving a unified setting of the style templates.
[0095] In this embodiment, when the user selects the translation language control and completes the translation language setting for the target subtitle style template, the set translation language can also be applied to all subtitle style templates, realizing the unified setting of the translation language. If the user needs to use other subtitle style templates, there is no need to set the translation language of the subtitle style template again, thereby further improving the efficiency of subtitle editing.
[0096] In an exemplary embodiment, each subtitle style template carries a default text content and a default translation content after the default text content is translated according to the translation language currently set in the target subtitle style template; Figure 11 As shown, after step S201, the following steps may also be included:
[0097] In step S1101, in response to a style template selection operation triggered in the style template display area, the selected subtitle style template is used as the target subtitle style template, and in the video preview area, the default text content and the default translation content are displayed according to the target subtitle style corresponding to the target subtitle style template.
[0098] In this embodiment, each subtitle style template carries default text content and default translation content after translating the default text content according to the translation language currently set in the target subtitle style template. The default text content and default translation content are used to indicate the translation language of the subtitle style template and the multilingual subtitle display style of the subtitle style template. If the user first triggers the style template selection operation for the subtitle style template instead of entering the text content first, the terminal can use the subtitle style template selected by the user as the target subtitle style template, and display the default text content and default translation content carried by the target subtitle style template according to the display style corresponding to the target subtitle style template, that is, the target subtitle style.
[0099] For example, style template 2 can be pre-set with default text content and default translation content, which are text e and text f respectively. At the same time, text e2 and text f2 can be displayed in style template 2 to represent that the default text content and default translation content are text e and text f respectively, and the corresponding subtitle style representing style template 2 is display style 2. Similarly, style template 1 and style template 3 can also be set with default text content and default translation content, which are default text content and default translation content respectively, and display text e1 and text f1 respectively, and display text e3 and text f3 respectively. When the user triggers the selection operation for style template 2 without entering text content, the terminal can display text e2 and text f2 in the video preview area, representing that text e and text f are displayed through display style 2 corresponding to style template 2, such as Figure 12 shown.
[0100] In step S1102, in response to a text input operation triggered in a text input area in the subtitle editing area, second text content input in the text input area is acquired;
[0101] In step S1103, the second text content is used as the subtitle to be translated, and the subtitle to be translated and the default translation content are displayed in the video preview area according to the target subtitle style.
[0102] Afterwards, the user can also enter the subtitle text that needs to be translated in the text input area, so that the terminal can respond to the operation and obtain the text content entered by the user in the text input area in real time as the second text content, and can further use the second text content as the subtitle to be translated to update the default text content displayed in the video preview area, thereby realizing real-time update display of the subtitle to be translated, that is, in the video preview area, the subtitle to be translated and the default translation content are displayed according to the target subtitle style.
[0103] For example, the second text content entered by the user in the text input area may be text A. At this time, the terminal can replace the text e2 displayed in the video preview area with text a2, and also display style 2 to display text A, thereby realizing real-time input and real-time preview of text A, while the default translation content, that is, text f2, remains unchanged.
[0104] In step S1104, in response to the translation text update operation for the second text content, the subtitles to be translated are translated into translated subtitles that match the currently set translation language, and the subtitles to be translated and the translated subtitles are displayed in the video preview area according to the target subtitle style.
[0105] Finally, after the user completes inputting the second text content, the user can also trigger a translation text update operation for the second text content to make the subtitles to be translated displayed in the video preview area compatible with the translated subtitles. Since the current subtitles to be translated represent the second text content input by the user, and the translated subtitles represent the default translation content, they are not the translation of the second text content, but the translation of the default text content. Therefore, in order to ensure the correctness of the multilingual subtitle display, the user can also trigger a translation text update operation for the second text content to realize the translation processing of the second text content as the subtitles to be translated, and obtain the translated subtitles, thereby realizing the display of the subtitles to be translated and the translated subtitles in the video preview area according to the target subtitle style.
[0106] For example, the subtitle texts displayed in the current video preview area are text a2 and text f2. The user can then trigger a translation text update operation to translate text a2 into corresponding text b2 and display it in the video preview area.
[0107] In this embodiment, the subtitle style template can also carry default text content and corresponding default translation content. After the user selects the subtitle style template, if the subtitle text is not entered, the terminal can display the default text content and the default translation content. When the user enters the second text content as the subtitle to be translated, the subtitle to be translated can also be previewed in real time in the video preview area, thereby providing multiple implementation methods for multilingual subtitle editing.
[0108] In an exemplary embodiment, when the video to be edited is pre-associated with subtitles, step S101 may further include: in response to a second subtitle editing operation triggered for the target subtitles carried in the video to be edited, using the target subtitles as subtitles to be translated, and displaying the subtitle editing area in the video editing page; displaying the subtitle style templates corresponding to each multilingual subtitle style in the style template display area in the subtitle editing area, and displaying the text content of the target subtitle in the text input area in the subtitle editing area.
[0109] If the video to be edited is pre-associated with subtitles, that is, subtitles are pre-added to the video to be edited, if the user needs to edit the subtitles of the video to be edited in multiple languages, the target subtitles in the subtitles pre-associated with the video to be edited can be triggered to translate the target subtitles into multiple language subtitles. For example, the second subtitle editing operation can be triggered by double-clicking the target subtitles. At this time, the terminal can use the target subtitles as subtitles to be translated that need to be translated into multiple languages, and display a subtitle editing area for users to edit subtitles on the video editing page. The subtitle editing area can carry a style template display area for displaying subtitle style templates, and a text input area for displaying or changing subtitle text. In the style template display area, a variety of subtitle style templates can be carried, and the multiple subtitle style templates correspond to different multilingual subtitle styles, and the text content corresponding to the target subtitles can be displayed in the text input area.
[0110] In this embodiment, when the user triggers the second subtitle editing operation for the target subtitle, the terminal can respond to the operation, thereby adding a subtitle editing area in the displayed video editing page, and at the same time, in the style template display area carried by the subtitle editing area, displaying the subtitle style template corresponding to each multilingual subtitle style, and in the text input area carried by the subtitle editing area, displaying the text content corresponding to the target subtitle.
[0111] In this embodiment, if the video to be edited is pre-associated with subtitles, the user can also perform a second subtitle editing operation on the associated target subtitles to implement editing processing of the target subtitles, thereby realizing multilingual subtitle processing of the pre-associated subtitles, and further improving the applicability of multilingual subtitle processing.
[0112] In addition, the subtitle editing method may further include: in response to a third subtitle editing operation triggered for a target subtitle, obtaining a current subtitle style of the target subtitle displayed in the video to be edited, and displaying a second translation language setting area carrying translation language controls representing different translation languages on the video editing page; in response to a selection operation for the translation language control triggered in the second translation language setting area, obtaining the selected translation language control and the translation language represented by the selected translation language control; translating the target subtitle into translated subtitles according to the translation language represented by the translation language control, and displaying the translated subtitles at the corresponding display position of the target subtitle according to the current subtitle style.
[0113] The current subtitle style refers to the subtitle style currently applied to the target subtitle, and the second translation language setting area is the area in the video editing page used to set the translation language. In this embodiment, the target subtitle associated with the video to be edited is currently set with the current subtitle style and can be displayed in the video to be edited according to the current subtitle style. When the user triggers the third subtitle editing operation for the target subtitle to generate multilingual subtitles corresponding to the target subtitle, the third subtitle editing operation can be triggered by the toolbar carried in the video editing page after the user selects the target subtitle.
[0114] Specifically, when the user triggers the third subtitle editing operation for the target subtitle, the terminal can obtain the subtitle style currently displayed in the video to be edited, that is, the current subtitle style, and display the second translation language setting area with translation language controls representing different translation languages on the video editing page. The user can also select a translation language control in the second translation language setting area by performing a selection operation on one of the translation language controls. At this time, the terminal can determine the translation language control selected by the user and the translation language represented by the selected translation language control, thereby translating the target subtitle according to the translation language represented by the translation language control to obtain translated subtitles, and displaying the translated subtitles of the target subtitles according to the current subtitle style of the target subtitle, realizing the multi-language subtitle display of the target subtitle, and ensuring that the translated subtitles can have the same subtitle display style as the target subtitles.
[0115] like Figure 13 As shown, the video to be edited is pre-associated with subtitles, and the associated subtitles, that is, text g1, can be displayed. The text g1 is characterized as text g that will be used as subtitles and is displayed according to display style 1. The video editing page can include a toolbar with a "bilingual subtitles" control. After the user selects text g1, if it is necessary to translate text g1 into multilingual subtitles, the third subtitle editing operation can be triggered by clicking the "bilingual subtitles" control in the toolbar. At this time, Figure 14 As shown, the video editing page displays a second translation language setting area with translation language controls representing different translation languages, namely language control 1, language control 2 and language control 3. The user can also select one of the language controls. For example, if language control 1 is selected, if the language control 1 represents that the translation language is English, the text g can be translated into the text h corresponding to the English language, and the text h1 is displayed at the corresponding display position where the text g1 is located, indicating that the text h is displayed in the same current subtitle style as the text g, that is, display style 1.
[0116] In this embodiment, the user can also trigger a third subtitle editing operation on the target subtitle to add multilingual subtitles to the target subtitles, and can also make the subtitles translated from the target subtitles have the same subtitle display style as the target subtitles, thereby further improving the intelligence of the multilingual subtitle display.
[0117] In an exemplary embodiment, the number of subtitles pre-associated with the video to be edited is at least two; the second translation language setting area carries a translation language application control; after obtaining the selected translation language control and the translation language represented by the selected translation language control, the method may further include: in response to a trigger operation on the translation language application control, displaying a subtitle list corresponding to the video to be edited; the subtitle list includes subtitles pre-associated with the video to be edited; in response to a selection operation on the subtitles included in the subtitle list, obtaining subtitles selected from the subtitle list as multiple subtitles to be translated; translating each subtitle to be translated according to the translation language represented by the translation language control to obtain translated subtitles corresponding to each subtitle to be translated, and displaying the translated subtitles corresponding to each subtitle to be translated at a corresponding display position of each subtitle to be translated according to the current subtitle style.
[0118] In this embodiment, the number of subtitles pre-associated with the video to be edited may be at least two, that is, the video to be edited may carry multiple subtitles in advance. At the same time, a translation language application control for applying the translation language to the multiple subtitles in the second translation language setting area may be provided in the second translation language setting area. The subtitle list includes the subtitles pre-associated with the video to be edited. The user can perform a selection operation on the subtitles included in the subtitle list, and the terminal can use the subtitles selected by the user in the subtitle list as multiple subtitles to be translated, thereby translating the multiple subtitles to be translated selected by the user according to the translation language represented by the translation language control, and displaying the corresponding translated subtitles according to the current subtitle style of each subtitle to be translated.
[0119] For example, the video to be edited is pre-associated with various subtitles, including subtitle a, subtitle b, and subtitle c. Figure 14As shown, in the second translation language setting area carrying language controls 1, 2, and 3, there may also be an "apply subtitle selection" control, which serves as a translation language application control. When the user clicks on the "apply subtitle selection" control to trigger an operation, the terminal may also display a subtitle list containing subtitles a, b, and c. The user may also select one or more subtitles in the subtitle list, such as selecting subtitles a and c. The terminal may then translate the selected subtitles a and c as subtitles to be translated into the English language represented by language control 1, and display them at the corresponding positions of subtitles a and c according to the current subtitle styles corresponding to them. That is, if subtitle a is displayed using display style 1, the translated subtitles corresponding to subtitle a are also displayed using display style 1. If subtitle c is displayed using display style 2, the translated subtitles corresponding to subtitle c are also displayed using display style 2.
[0120] In this embodiment, the translation language application control can be used to realize one-click addition of multilingual subtitles to multiple subtitles pre-associated with the video to be edited, thereby further improving the efficiency of multilingual subtitles.
[0121] It should be understood that, although the various steps in the flowchart of the present disclosure are shown in sequence as indicated by the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the figure may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0122] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can be referred to each other, and each embodiment focuses on the differences from other embodiments. For related parts, please refer to the description of other method embodiments.
[0123] Figure 16 FIG. 1 is a block diagram of a subtitle editing device according to an exemplary embodiment. Figure 16 The device includes a subtitle acquisition unit 1601 and a subtitle translation unit 1602.
[0124] The subtitle acquisition unit 1601 is configured to execute a subtitle editing operation on the video to be edited, acquire subtitles to be translated that match the subtitle editing operation, and display at least one multilingual subtitle style on the video editing page;
[0125] The subtitle translation unit 1602 is configured to execute an operation in response to applying a target subtitle style from among the multilingual subtitle styles to the subtitles to be translated, translate the subtitles to be translated into translated subtitles that match the target subtitle style, and display the subtitles to be translated and the translated subtitles on the video editing page according to the target subtitle style.
[0126] In an exemplary embodiment, when the video to be edited is not pre-associated with subtitles, the subtitles to be translated obtaining unit 1601 is further configured to execute a first subtitle editing operation on the video to be edited, display a subtitle editing area in the video editing page, and display subtitle style templates corresponding to each multilingual subtitle style in the style template display area in the subtitle editing area; in response to a text input operation triggered in a text input area in the subtitle editing area, obtain the first text content entered in the text input area; use the first text content as the subtitles to be translated, and add the subtitles to be translated to the video to be edited displayed in the video preview area of the video editing page.
[0127] In an exemplary embodiment, the subtitle translation unit 1602 is further configured to execute a style template selection operation triggered in the style template display area, use the selected subtitle style template as the target subtitle style template, and obtain the translation language currently set for the target subtitle style template; translate the subtitles to be translated into translated subtitles that match the currently set translation language; and display the subtitles to be translated and the translated subtitles in the video preview area according to the target subtitle style corresponding to the target subtitle style template.
[0128] In an exemplary embodiment, the subtitle editing device further includes: a subtitle to be translated updating unit, configured to perform a subtitle content updating operation in response to a subtitle content updating operation triggered by subtitles to be translated displayed in a video preview area, display a text input area, and obtain updated text content input in the text input area; use the updated text content as updated subtitles to be translated, and display the updated subtitles to be translated and translated subtitles in the video preview area according to a target subtitle style; in response to a translation text updating operation on the updated text content, translate the updated subtitles to be translated into updated translated subtitles that match a currently set translation language, and display the updated subtitles to be translated and updated translated subtitles in the video preview area according to the target subtitle style.
[0129] In an exemplary embodiment, the to-be-translated subtitle translating unit 1602 is further configured to execute a translation language setting operation triggered for a target subtitle style template, displaying a first translation language setting area having translation language controls representing different translation languages in the subtitle editing area; and in response to a selection operation triggered for a translation language control in the first translation language setting area, obtain a selected translation language control, and use the translation language represented by the selected translation language control as the translation language currently set for the target subtitle style template.
[0130] In an exemplary embodiment, the subtitle translation unit 1602 is further configured to use the translation language represented by the selected translation language control as the currently set translation language for each subtitle style template in the style template display area.
[0131] In an exemplary embodiment, each subtitle style template carries a default text content and a default translation content after the default text content is translated according to the translation language currently set by the target subtitle style template; the subtitle translation unit 1602 is further configured to execute a style template selection operation triggered in the style template display area, use the selected subtitle style template as the target subtitle style template, and display the default text content and the default translation content in the video preview area according to the target subtitle style corresponding to the target subtitle style template; in response to a text input operation triggered in the text input area in the subtitle editing area, obtain the second text content entered in the text input area; use the second text content as the subtitle to be translated, and display the subtitle to be translated and the default translation content in the video preview area according to the target subtitle style; in response to the translation text update operation for the second text content, translate the subtitle to be translated into a translated subtitle that matches the currently set translation language, and display the subtitle to be translated and the translated subtitle in the video preview area according to the target subtitle style.
[0132] In an exemplary embodiment, when the video to be edited is pre-associated with subtitles, the subtitles to be translated obtaining unit 1601 is further configured to perform a second subtitle editing operation in response to a trigger for a target subtitle carried in the video to be edited, use the target subtitle as the subtitle to be translated, and display a subtitle editing area in the video editing page; display subtitle style templates corresponding to each multilingual subtitle style in a style template display area in the subtitle editing area, and display the text content of the target subtitle in a text input area in the subtitle editing area.
[0133] In an exemplary embodiment, the subtitle translation unit 1602 is further configured to execute a third subtitle editing operation triggered on a target subtitle, obtain a current subtitle style of the target subtitle displayed in the video to be edited, and display a second translation language setting area carrying translation language controls representing different translation languages on the video editing page; in response to a selection operation triggered on a translation language control in the second translation language setting area, obtain a selected translation language control and the translation language represented by the selected translation language control; translate the target subtitle into translated subtitles according to the translation language represented by the translation language control, and display the translated subtitles at a corresponding display position of the target subtitles according to the current subtitle style.
[0134] In an exemplary embodiment, the number of subtitles pre-associated with the video to be edited is at least two; the second translation language setting area carries a translation language application control; the subtitle translation unit 1602 is further configured to execute a trigger operation on the translation language application control to display a subtitle list corresponding to the video to be edited; the subtitle list contains subtitles pre-associated with the video to be edited; in response to a selection operation on the subtitles contained in the subtitle list, the subtitles selected in the subtitle list are obtained as multiple subtitles to be translated; each subtitle to be translated is translated according to the translation language represented by the translation language control to obtain translated subtitles corresponding to each subtitle to be translated, and the translated subtitles corresponding to each subtitle to be translated are displayed at the corresponding display position of each subtitle to be translated according to the current subtitle style.
[0135] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0136] FIG2 is a block diagram of an electronic device 1700 for subtitle editing according to an exemplary embodiment. For example, the electronic device 1700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0137] Reference Figure 17 , the electronic device 1700 may include one or more of the following components: a processing component 1702 , a memory 1704 , a power component 1706 , a multimedia component 1708 , an audio component 1710 , an input / output (I / O) interface 1712 , a sensor component 1714 , and a communication component 1716 .
[0138] The processing component 1702 generally controls the overall operation of the electronic device 1700, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 1702 may include one or more processors 1720 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 1702 may include one or more modules to facilitate interaction between the processing component 1702 and other components. For example, the processing component 1702 may include a multimedia module to facilitate interaction between the multimedia component 1708 and the processing component 1702.
[0139] The memory 1704 is configured to store various types of data to support operations on the electronic device 1700. Examples of such data include instructions for any application or method operating on the electronic device 1700, contact data, phone book data, messages, pictures, videos, etc. The memory 1704 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, optical disk, or graphene memory.
[0140] The power supply component 1706 provides power to the various components of the electronic device 1700. The power supply component 1706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1700.
[0141] The multimedia component 1708 includes a screen that provides an output interface between the electronic device 1700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1708 includes a front camera and / or a rear camera. When the electronic device 1700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0142] The audio component 1710 is configured to output and / or input audio signals. For example, the audio component 1710 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 1700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 1704 or transmitted via the communication component 1716. In some embodiments, the audio component 1710 also includes a speaker for outputting audio signals.
[0143] I / O interface 1712 provides an interface between processing component 1702 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to, a home button, volume buttons, a start button, and a lock button.
[0144] Sensor assembly 1714 includes one or more sensors for providing various aspects of the status assessment of electronic device 1700. For example, sensor assembly 1714 can detect the open / closed state of electronic device 1700, the relative positioning of components, such as the display and keypad of electronic device 1700. Sensor assembly 1714 can also detect changes in the position of electronic device 1700 or components of electronic device 1700, the presence or absence of user contact with electronic device 1700, the orientation or acceleration / deceleration of device 1700, and changes in the temperature of electronic device 1700. Sensor assembly 1714 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1714 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 1714 can also include an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0145] The communication component 1716 is configured to facilitate wired or wireless communication between the electronic device 1700 and other devices. The electronic device 1700 can access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 1716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0146] In an exemplary embodiment, the electronic device 1700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described methods.
[0147] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 1704 including instructions, and the instructions can be executed by the processor 1720 of the electronic device 1700 to perform the above method. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0148] In an exemplary embodiment, a computer program product is further provided. The computer program product includes instructions, and the instructions can be executed by the processor 1720 of the electronic device 1700 to implement the above method.
[0149] It should be noted that the above-mentioned devices, electronic devices, computer-readable storage media, computer program products, etc. can also include other implementation methods according to the description of the method embodiments. The specific implementation methods can refer to the description of the relevant method embodiments and will not be described one by one here.
[0150] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This 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 not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.
[0151] 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 can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A subtitle editing method, characterized in that: include: In response to a subtitle editing operation on a video to be edited, obtaining subtitles to be translated that match the subtitle editing operation, and displaying at least one multilingual subtitle style on a video editing page; The multilingual subtitle style includes the display style of the subtitles and the translated language, and the display style includes the font, color or size of the subtitles; The subtitles to be translated are subtitles that need to be displayed in multiple languages; In response to the operation of applying a target subtitle style from each of the multilingual subtitle styles to the subtitles to be translated, translating the subtitles to be translated into translated subtitles that match the target subtitle style, and displaying the subtitles to be translated and the translated subtitles on the video editing page according to the target subtitle style; The translated subtitles are subtitles obtained after translating the subtitles to be translated.
2. The method according to claim 1, characterized in that In a case where the video to be edited is not pre-associated with subtitles, in response to a subtitle editing operation on the video to be edited, obtaining subtitles to be translated that match the subtitle editing operation and displaying at least one multilingual subtitle style on the video editing page includes: In response to a first subtitle editing operation on the video to be edited, displaying a subtitle editing area in the video editing page, and displaying subtitle style templates corresponding to each of the multilingual subtitle styles in a style template display area in the subtitle editing area; In response to a text input operation triggered in a text input area in the subtitle editing area, obtaining first text content input in the text input area; The first text content is used as the subtitles to be translated, and the subtitles to be translated are added to the video to be edited displayed in the video preview area of the video editing page.
3. The method according to claim 2, characterized in that In response to applying a target subtitle style from each of the multilingual subtitle styles to the subtitles to be translated, translating the subtitles to be translated into translated subtitles matching the target subtitle style, and displaying the subtitles to be translated and the translated subtitles on the video editing page according to the target subtitle style, includes: In response to a style template selection operation triggered in the style template display area, the selected subtitle style template is used as a target subtitle style template, and a translation language currently set for the target subtitle style template is obtained; Translating the subtitles to be translated into translated subtitles that match the currently set translation language; In the video preview area, the subtitles to be translated and the translated subtitles are displayed according to the target subtitle style corresponding to the target subtitle style template.
4. The method according to claim 3, characterized in that After displaying the subtitles to be translated and the translated subtitles in the video preview area according to the target subtitle style corresponding to the target subtitle style template, the method further includes: In response to a subtitle content update operation triggered for the subtitles to be translated displayed in the video preview area, displaying the text input area and acquiring updated text content input in the text input area; Using the updated text content as updated subtitles to be translated, and displaying the updated subtitles to be translated and the translated subtitles in the video preview area according to the target subtitle style; In response to the translation text update operation for the updated text content, the updated subtitles to be translated are translated into updated translated subtitles that match the currently set translation language, and the updated subtitles to be translated and the updated translated subtitles are displayed in the video preview area according to the target subtitle style.
5. The method according to claim 3, characterized in that The step of obtaining the translation language currently set for the target subtitle style template includes: In response to a translation language setting operation triggered for the target subtitle style template, displaying a first translation language setting area carrying translation language controls representing different translation languages in the subtitle editing area; In response to a selection operation on the translation language control triggered in the first translation language setting area, a selected translation language control is obtained, and the translation language represented by the selected translation language control is used as the translation language currently set for the target subtitle style template.
6. The method according to claim 5, characterized in that After obtaining the selected translation language control, the method further includes: The translation language represented by the selected translation language control is used as the translation language currently set for each of the subtitle style templates in the style template display area.
7. The method according to claim 2, characterized in that Each of the subtitle style templates carries a default text content and a default translation content of the default text content after being translated into a translation language currently set in the target subtitle style template; After displaying the subtitle editing area in the video editing page and displaying the subtitle style templates corresponding to the multilingual subtitle styles in the style template display area in the subtitle editing area, the method further includes: In response to a style template selection operation triggered in the style template display area, the selected subtitle style template is used as a target subtitle style template, and the default text content and the default translation content are displayed in the video preview area according to a target subtitle style corresponding to the target subtitle style template; In response to a text input operation triggered in a text input area in the subtitle editing area, acquiring second text content input in the text input area; Using the second text content as the subtitle to be translated, and displaying the subtitle to be translated and the default translation content in the video preview area according to the target subtitle style; In response to the translation text update operation for the second text content, the subtitles to be translated are translated into translated subtitles that match the currently set translation language, and the subtitles to be translated and the translated subtitles are displayed in the video preview area according to the target subtitle style.
8. The method according to claim 1, characterized in that In a case where the video to be edited is pre-associated with subtitles, in response to a subtitle editing operation on the video to be edited, obtaining subtitles to be translated that match the subtitle editing operation and displaying at least one multilingual subtitle style on the video editing page includes: In response to a second subtitle editing operation triggered for a target subtitle carried in the video to be edited, using the target subtitle as the subtitle to be translated and displaying a subtitle editing area in the video editing page; The subtitle style templates corresponding to the multilingual subtitle styles are displayed in the style template display area in the subtitle editing area, and the text content of the target subtitle is displayed in the text input area in the subtitle editing area.
9. The method according to claim 8, characterized in that The method further comprises: In response to a third subtitle editing operation triggered for the target subtitle, obtaining a current subtitle style of the target subtitle displayed in the video to be edited, and displaying a second translation language setting area carrying translation language controls representing different translation languages on the video editing page; In response to a selection operation on the translation language control triggered in the second translation language setting area, obtaining a selected translation language control and a translation language represented by the selected translation language control; The target subtitles are translated into translated subtitles according to the translation language represented by the translation language control, and the translated subtitles are displayed at the corresponding display position of the target subtitles according to the current subtitle style.
10. The method according to claim 9, characterized in that The number of subtitles pre-associated with the video to be edited is at least two; the second translation language setting area carries a translation language application control; After obtaining the selected translation language control and the translation language represented by the selected translation language control, the method further includes: In response to a triggering operation on the translation language application control, a subtitle list corresponding to the video to be edited is displayed; the subtitle list includes subtitles pre-associated with the video to be edited; In response to a selection operation on a subtitle included in the subtitle list, obtaining the subtitles selected from the subtitle list as a plurality of subtitles to be translated; Each of the subtitles to be translated is translated according to the translation language represented by the translation language control to obtain translated subtitles corresponding to each of the subtitles to be translated, and the translated subtitles corresponding to each of the subtitles to be translated are displayed at corresponding display positions of each of the subtitles to be translated according to the current subtitle style.
11. A subtitle editing device, characterized in that: include: a subtitle acquisition unit for translation, configured to execute a subtitle editing operation on a video to be edited, acquire subtitles for translation that match the subtitle editing operation, and display at least one multilingual subtitle style on a video editing page; The multilingual subtitle style includes the display style of the subtitles and the translated language, and the display style includes the font, color or size of the subtitles; The subtitles to be translated are subtitles that need to be displayed in multiple languages; a subtitle translation unit configured to, in response to applying a target subtitle style from each of the multilingual subtitle styles to the subtitles to be translated, translate the subtitles to be translated into translated subtitles matching the target subtitle style, and display the subtitles to be translated and the translated subtitles on the video editing page according to the target subtitle style; The translated subtitles are subtitles obtained after translating the subtitles to be translated.
12. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the subtitle editing method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the subtitle editing method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Subtitle adding method and device, computer device and storage medium
CN110888710A
Video caption translation editing method and device, electronic equipment and storage medium
CN111898388A
Subtitle processing method and device, equipment and storage medium
CN115022574A