Video processing method and processing device, electronic equipment and storage medium
Through the update of voice recognition technology and subtitle timestamps, the problem of low cropping efficiency of mixed videos is solved, the efficiency and accuracy of video editing is achieved, and the cost is reduced.
Patent Information
- Application Number
- CN202411168734.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-29
AI Technical Summary
When processing mixed videos, the prior art requires repeated playback of the video when cropping videos, resulting in high time and labor costs, especially in videos interviewed by multiple people, which is inefficient in processing efficiency.
The dialogue or narration in the video is recognized as subtitles through voice recognition technology, and the timestamp of the subtitles are updated according to the user's editing process, rearrange the video content, and realize accurate cropping and re-editing of the video.
It reduces the time and labor costs of video editing personnel, improves the efficiency of video editing, allows adjustment of subtitles and deletion of subtitles from a global perspective, and simplifies the re-editing and arrangement of videos.
Smart Images

Figure CN119052589A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and specifically relates to a video processing method, a processing device, an electronic device and a storage medium. Background Art
[0002] In the related technical solution, speech recognition technology can be used to recognize the conversations or narrations of different characters in the video and display them in the form of text.
[0003] For videos that need to be mixed, such as interview videos, they need to be accurately cropped according to the interviewee's speech content or narration. During this process, the cropper needs to repeatedly replay the video to locate the moment of video cropping, which makes video processing cost more time and manpower cost.
[0004] Especially for videos with multiple interviewees, it is necessary to edit the videos according to the speeches or narrations of different interviewees, which will cost more time and manpower. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a video processing method, a processing device, an electronic device and a storage medium, which can solve the problem that for videos that need to be mixed, the editor needs to repeatedly play back the video and locate the moment of video editing, which makes video processing cost more time and manpower cost.
[0006] In a first aspect, an embodiment of the present application provides a video processing method, including: displaying a speech recognition result, the speech recognition result including at least two subtitles and a timestamp corresponding to each subtitle, the timestamp including a playback period of the subtitle in a first video; receiving a first input for a selected subtitle, the selected subtitle being one or more subtitles of at least two subtitles, the first input being used to edit the selected subtitle; in response to the first input, updating the timestamp corresponding to each subtitle based on the edited selected subtitle to obtain an updated timestamp; updating the first video based on the updated timestamp to obtain and output the updated first video.
[0007] In a second aspect, an embodiment of the present application provides a video processing device, including: a display module, used to display a speech recognition result, the speech recognition result includes at least two subtitles and a timestamp corresponding to each subtitle, the timestamp includes a playback period of the subtitle in a first video; a receiving module, used to receive a first input for a selected subtitle, the selected subtitle is one or more subtitles among at least two subtitles, and the first input is used to edit the selected subtitle; a first update module, used to update the timestamp corresponding to each subtitle based on the edited selected subtitle in response to the first input, to obtain an updated timestamp; a second update module, used to update the first video based on the updated timestamp, to obtain and output the updated first video.
[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the first aspect are implemented.
[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.
[0010] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect.
[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the first aspect.
[0012] In an embodiment of the present application, a video processing method is proposed, in which a speech recognition result obtained by performing speech recognition on a first video is displayed, wherein the speech recognition result includes at least two subtitles and a timestamp corresponding to each subtitle. The user can edit the selected subtitles, and after editing the selected subtitles, update the timestamp corresponding to each subtitle according to the selected subtitles after the editing process, and update the first video based on the updated timestamp to obtain the updated first video. In this process, the at least two subtitles displayed facilitate the editor to see the whole of the first video from a global perspective. Compared with viewing the subtitles sentence by sentence, there is a more global macro perspective. Through editing, the order between subtitles can be adjusted or subtitles can be deleted, and the video can be re-edited and arranged, thereby reducing the manpower cost and time cost of editing the video and improving the efficiency of editing. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 One of the flow charts of the video processing method provided in the embodiment of the present application is shown;
[0014] Figure 2 A schematic diagram of interaction of an electronic device proposed in an embodiment of the present application is shown;
[0015] Figure 3 A schematic diagram of interaction of an electronic device proposed in an embodiment of the present application is shown;
[0016] Figure 4 A schematic diagram of interaction of an electronic device proposed in an embodiment of the present application is shown;
[0017] Figure 5 A schematic diagram of interaction of an electronic device proposed in an embodiment of the present application is shown;
[0018] Figure 6 A schematic diagram of interaction of an electronic device proposed in an embodiment of the present application is shown;
[0019] Figure 7 The second flowchart of the video processing method provided in the embodiment of the present application is shown;
[0020] Figure 8 A schematic block diagram of a video processing device provided in an embodiment of the present application is shown;
[0021] Fig. 9 is a schematic block diagram of an electronic device in an embodiment of the present application;
[0022] Fig.10 It is a schematic diagram of the hardware structure of the electronic device in the embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the embodiments in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.
[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0025] The video processing method, processing device, electronic device and storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0026] In one embodiment, if Figure 1 As shown, a video processing method is proposed, comprising:
[0027] Step 102, displaying the speech recognition result, where the speech recognition result includes at least two subtitles and a timestamp corresponding to each subtitle, where the timestamp includes a playback period of the subtitle in the first video.
[0028] Among them, subtitles refer to non-image content such as dialogues in television, movies, and stage works displayed in text form, and also generally refer to text processed in the post-production of film and television works. The commentary text and various texts that appear below the movie screen or TV screen, such as the film title, cast list, lyrics, dialogues, descriptions, character introductions, place names, and years, are all called subtitles. In the embodiment of the present application, subtitles refer to the text obtained by performing voice recognition on the audio part of the first video.
[0029] Among them, the main purpose of the timestamp is to authenticate the time when the data is generated through certain technical means, so as to verify whether the data has been tampered with after it is generated. In the embodiment of the present application, the timestamp corresponding to each subtitle can be understood as the time corresponding to the start and end of each subtitle. Based on this, the timestamp includes the playback period of the subtitle in the first video, which can be understood as the playback time corresponding to the start of each subtitle and the playback time corresponding to the end of each subtitle during the process from the start to the end of the playback of the first video.
[0030] For example, the subtitle A identified in the first video is "I like the spring wind", then the playback time of "I" in "I like the spring wind" in the first video is 0:00:13, and the playback time of "wind" in "I like the spring wind" in the first video is 0:00:16, then the playback period of "I like the spring wind" in the first video is 0:00:13 to 0:00:16. At this time, the timestamp corresponding to the subtitle "I like the spring wind" is 0:00:13-0:00:16.
[0031] In some embodiments of the present application, an automatic speech recognition (ASR) model is used to recognize the first video to obtain a speech recognition result.
[0032] Step 104: receiving a first input of a selected subtitle, where the selected subtitle is one or more subtitles of at least two subtitles, and the first input is used to edit the selected subtitle.
[0033] In some embodiments of the present application, the selected subtitles are subtitles selected by the user.
[0034] For example, Figure 2 As shown, the selected subtitle can be a single subtitle "What do you think of this event?", or two adjacent subtitles "What do you think of this event?" and "I think it is very good", or non-adjacent subtitles.
[0035] In some embodiments of the present application, the editing process of the selected subtitles may be an adjustment process of adjusting the order of the selected subtitles in at least two subtitles; it may also be a deletion process of deleting the selected subtitles; or it may be a modification process of the selected subtitles.
[0036] In some embodiments of the present application, the first input may be a drag operation on the selected subtitle.
[0037] Specifically, the front and back order of the selected subtitle in the at least two subtitles may be adjusted by dragging the front and back positions of the selected subtitle in the at least two subtitles.
[0038] Specifically, the selected subtitles can be deleted by dragging the selected subtitles.
[0039] Specifically, the selected subtitles may be dragged to enable a modification function for the selected subtitles and implement modification of the selected subtitles.
[0040] In some embodiments of the present application, when at least two subtitles are displayed, a first control and a second control are also displayed. When the editing process of the selected subtitle is to adjust the order of the selected subtitle among the at least two subtitles, if the first control is selected once, the order of the selected subtitle among the at least two subtitles will be moved forward by one position, and conversely, when the second control is selected once, the order of the selected subtitle among the at least two subtitles will be moved backward by one position.
[0041] In some embodiments of the present application, the first input may be a double-click operation on the selected subtitle, or may be a long-press operation on the selected subtitle.
[0042] Specifically, when a double-click operation on the selected subtitle is received or a long-press operation on the selected subtitle is received, the selected subtitle is deleted.
[0043] Step 106 , in response to the first input, based on the edited selected subtitles, update the timestamp corresponding to each subtitle to obtain an updated timestamp.
[0044] In some embodiments of the present application, when the editing process for the selected subtitles is to delete the selected subtitles, the timestamps corresponding to the subtitles located after the selected subtitles are simultaneously reduced by a preset duration, wherein the preset duration is a duration determined based on the timestamp corresponding to the selected subtitles.
[0045] For example, the selected subtitle may be "What do you think of this event?", and the timestamp corresponding to the selected subtitle is 0:00:05-0:00:08, and the timestamp corresponding to the subtitle "I think it's very good" after the selected subtitle is 0:00:08-0:00:12. If the selected subtitle is deleted, the timestamp corresponding to "I think it's very good" is updated from 0:00:08-0:00:12 to 0:00:05-0:00:19.
[0046] In some embodiments of the present application, when the editing process of the selected subtitle is to adjust the order of the selected subtitle among at least two subtitles, the target order after adjusting the order of the selected subtitle among at least two subtitles is determined, the timestamp of the subtitle before the selected subtitle is selected, the timestamp corresponding to the selected subtitle is updated based on the timestamp of the subtitle before the selected subtitle, and the timestamp corresponding to the subtitle located after the selected subtitle is simultaneously reduced by a preset time length, wherein the preset time length is a time length determined based on the timestamp corresponding to the selected subtitle.
[0047] Exemplarily, the selected subtitle may be “What do you think of this event?”, and the timestamp corresponding to the selected subtitle is 0:00:05-0:00:08, and the timestamp corresponding to the subtitle “I think it is very good” before the selected subtitle is 0:00:01-0:00:05. After adjustment, “What do you think of this event?” and “I think it is very good” are replaced, and the timestamp of the subtitle before the selected subtitle is 0:00:00-0:00:01. Then, when the selected subtitle is adjusted, the timestamp corresponding to “What do you think of this event?” is updated from 0:00:05-0:00:08 to 0:00:01-0:00:05, and the timestamp corresponding to “I think it is very good” is changed from 0:00:01-0:00:05 to 0:00:06-0:00:10.
[0048] Step 108: Update the first video based on the updated timestamp, and obtain and output the updated first video.
[0049] In some embodiments of the present application, after obtaining the updated timestamp, the video segments corresponding to each subtitle in the first video before the update are spliced according to the updated timestamp to form the updated first video.
[0050] Exemplarily, taking the editing processing of the selected subtitles as an example, the selected subtitles may be "What do you think of this event?", the timestamp corresponding to the selected subtitles is 0:00:05-0:00:08, corresponding to the first video segment in the first video, the subtitles after the selected subtitles "I think it is very good" correspond to the timestamps 0:00:08-0:00:12, corresponding to the second video segment in the first video, then when the selected subtitles are deleted, the timestamp corresponding to "I think it is very good" is updated from 0:00:08-0:00:12 to 0:00:05-0:00:19, at this time, the second video segment is deleted in the updated first video.
[0051] For example, taking the editing of the selected subtitle as adjusting the order of the selected subtitle in at least two subtitles as an example, the selected subtitle may be "What do you think of this event?" The timestamp corresponding to the selected subtitle is 0:00:05-0:00:08, corresponding to the first video segment in the first video, and the timestamp corresponding to the subtitle "I think it's very good" before the selected subtitle is 0:00:01-0:00:05, corresponding to the second video segment in the first video. After the adjustment, "What do you think of this event?" and "I think it's very good" are in the same order. Very good" is replaced, and the timestamp of the previous subtitle of the selected subtitle is 0:00:00-0:00:01. When the selected subtitle is adjusted, the timestamp corresponding to "What do you think of this event" is updated from 0:00:05-0:00:08 to 0:00:01-0:00:05, and the timestamp corresponding to "I think it is very good" is changed from 0:00:01-0:00:05 to 0:00:06-0:00:10. At this time, in the updated first video, the second video segment is located before the first video segment.
[0052] In the video processing method, a speech recognition result obtained by performing speech recognition on a first video is displayed, wherein the speech recognition result includes at least two subtitles and a timestamp corresponding to each subtitle. A user can edit the selected subtitles, and after editing the selected subtitles, update the timestamp corresponding to each subtitle according to the selected subtitles after the editing process, and update the first video based on the updated timestamp to obtain an updated first video. In this process, the at least two subtitles displayed facilitate the editor to see the entire first video from a global perspective. Compared with viewing the subtitles sentence by sentence, it has a more global macro perspective. Through editing, the order between subtitles can be adjusted or subtitles can be deleted, and the video can be re-edited and arranged, thereby reducing the labor cost and time cost of editing the video and improving the efficiency of editing.
[0053] In some embodiments of the present application, each subtitle has an associated selection mark, and if the selection mark is selected, the subtitle is used as a selected subtitle.
[0054] For example, Figure 3 As shown, if the selection mark 300 is "□", the user can select the selected subtitles from the above subtitles according to actual needs.
[0055] In some embodiments of the present application, a first video includes a first sub-video and a second sub-video, at least two subtitles include at least two first subtitles and at least two second subtitles, and the selected subtitles include first selected subtitles and second selected subtitles; receiving a first input for the selected subtitles, specifically including: receiving a first input for the first selected subtitles and the second selected subtitles; in response to the first input, based on the edited selected subtitles, updating the timestamp corresponding to each subtitle to obtain an updated timestamp, specifically including: in response to the first input, based on the edited first selected subtitles, updating the timestamp of each first subtitle to obtain an updated first timestamp; and based on the edited second selected subtitles, updating the timestamp of each second subtitle to obtain an updated second timestamp; updating the first video based on the updated timestamps to obtain and output the updated first video, specifically including: updating the first sub-video based on the updated first timestamp, and updating the second sub-video based on the updated second timestamp; obtaining and outputting the updated first video based on the updated first sub-video and the updated second sub-video.
[0056] The first sub-video and the second sub-video can be understood as two video clips of the first video. It can be understood that the first video is a video obtained by splicing at least the first sub-video and the second sub-video.
[0057] Exemplarily, the first video includes a first interview video of a first interviewee and a second interview video of a second interviewee.
[0058] Based on this, at least two subtitles include at least two first subtitles and at least two second subtitles. It can be understood that at least two first subtitles are subtitles corresponding to the first sub-video, and at least two second subtitles are subtitles corresponding to the second sub-video, and the selected subtitles include first selected subtitles and second selected subtitles. It can be understood that the first selected subtitles are selected subtitles among the at least two first subtitles, and the second selected subtitles are selected subtitles among the at least two second subtitles. At this time, the first input to the selected subtitles can be understood as the first input to the first selected subtitles and the second selected subtitles respectively, and in response to the first input, an updated first timestamp and an updated first timestamp are obtained, so as to update the first sub-video and the second sub-video respectively.
[0059] Based on the updated first sub-video and the updated second sub-video, an updated first video is obtained and output. It can be understood that the updated first sub-video and the updated second sub-video are spliced according to the first splicing order to obtain and output the updated first video.
[0060] The first splicing order is the splicing order of the first sub-video and the second sub-video before updating.
[0061] Exemplarily, the first video before updating includes a first sub-video and a second sub-video, with the first sub-video in front and the second sub-video in the back. The first sub-video includes a first subtitle "I think it's very good", and the corresponding timestamp is 0:00:08-0:00:12, and the second sub-video includes a second subtitle "I think it's very good", and the corresponding timestamp is 0:30:08-0:30:12. The first subtitle "I think it's very good" and the second subtitle "I think it's very good" are respectively used as the first selected subtitle and the second selected subtitle, and after deletion, the video segment corresponding to "I think it's very good" is deleted from the first sub-video, and the video segment corresponding to "I think it's very good" is deleted from the second sub-video, and the first sub-video from which the video segment corresponding to "I think it's very good" is deleted and the second sub-video from which the video segment corresponding to "I think it's very good" is deleted are spliced together in the splicing order of the first sub-video in front and the second sub-video in the back to obtain the updated first video.
[0062] In this embodiment, multiple videos can be trimmed at the same time and an updated first video can be directly generated. At this time, there is no need for editors to trim each sub-video one by one and combine the trimmed sub-videos. Therefore, the manpower and time costs of video editing are reduced and the efficiency of editing is improved.
[0063] In some embodiments of the present application, the first sub-video and the second sub-video are videos recorded of different interviewees answering the same question.
[0064] In some embodiments of the present application, the first sub-video and the second sub-video are videos recorded of the same interviewee answering different questions.
[0065] In some embodiments of the present application, the video processing method also includes: receiving first labeling information for the first sub-video and second labeling information for the second sub-video; based on the updated first sub-video and the updated second sub-video, obtaining and outputting the updated first video, specifically including: processing the updated first sub-video and the updated second sub-video according to the first labeling information and the second labeling information, and obtaining and outputting the updated first video.
[0066] In this embodiment, the displayed first annotation information and second annotation information facilitate the editor to understand the first sub-video and the second sub-video according to the displayed first annotation information and second annotation information, and then edit the first subtitle and the second subtitle.
[0067] Exemplarily, the first annotation information is subject information related to the first sub-video, and the second annotation information is subject information related to the second sub-video.
[0068] In some embodiments of the present application, the subject information is an interviewee. In this case, the first annotation information is the name of the first interviewee, and the second annotation information is the name of the second interviewee.
[0069] In some embodiments of the present application, the subject information is an interview question. In this case, the first annotation information is the first interview question, and the second annotation information is the second interview question.
[0070] In some embodiments of the present application, the first annotation information and the second annotation information are information actively annotated by the editor, so that the editor can process the first sub-video and the second sub-video based on the first annotation information and the second annotation information to obtain an updated first video.
[0071] For example, Figure 4 As shown, when the video preview interface is displayed, if you click "Recognize Subtitles", the voice recognition results will be displayed. If you click Add Text or Add Topic, the first annotation information and the second annotation information will be received. If you click "All Text", the voice recognition results corresponding to multiple videos will be displayed.
[0072] In this embodiment, the display of speech recognition results, adding of first annotation information, adding of second annotation information, and display of speech recognition results corresponding to multiple videos can be realized in the video preview interface, thereby simplifying user operations and improving interaction efficiency.
[0073] In some embodiments of the present application, at least two subtitles include at least two subtitle bars, the subtitle bars are subtitles displayed in words, and each subtitle bar includes at least one word; receiving a first input for a selected subtitle specifically includes: receiving a first input for a first word, the first word is one or more words in the selected subtitle, and the first input is used to edit the first word; wherein editing the first word includes at least one of the following: deleting the first word, modifying the first word, and adjusting the order of the first word in the selected subtitle.
[0074] Among them, the subtitle bar can be understood as the subtitles are displayed in a bar-shaped manner, and the word segmentation display can be understood as dividing the subtitles into different parts according to the pre-set word segmentation rules, and the text contained in each part is regarded as a word segment.
[0075] For example, when the word segmentation is displayed, at least two subtitle bars corresponding to the speech recognition result are as follows: Figure 5 As shown, taking the subtitle "What do you think of this event" as an example, the subtitle displayed by word segmentation, that is, the subtitle bar is "What do you think of this event". At this time, the subtitle bar includes the subtitles "What do you think", "This event" and "What do you think". The first subtitle can be one of the subtitles "What do you think", "This event" and "What do you think", or all of them. The first input can be a click operation, a long press operation or a double click operation on the first subtitle.
[0076] Exemplarily, when the first input is a click operation on the first word segment, the first word segment is deleted, the first word segment is modified, and the order of the first word segment in the selected subtitle is adjusted.
[0077] Specifically, when the first participle is clicked, the first participle is deleted.
[0078] Specifically, when the first participle is clicked, the modification function is started, and the first participle is modified according to the input information.
[0079] Specifically, when the first word segment is clicked, the first word segment is moved up one position in the selected subtitles.
[0080] Exemplarily, when the first input is a long press operation on the first word segment, the first word segment is deleted, the first word segment is modified, and the order of the first word segment in the selected subtitle is adjusted.
[0081] Specifically, by long pressing the first participle, the first participle is deleted.
[0082] Specifically, by long pressing the first word segment, a modification function is started, and the first word segment is modified according to the input information.
[0083] Specifically, in a long-press operation on the first word segment, the first word segment is moved up one position in the order of the selected subtitles.
[0084] Exemplarily, when the first input is a double-click operation on the first word segment, the first word segment is deleted, the first word segment is modified, and the order of the first word segment in the selected subtitle is adjusted.
[0085] Specifically, in a double-click operation on the first participle, the first participle is deleted.
[0086] Specifically, when the first participle is double-clicked, the modification function is started, and the first participle is modified according to the input information.
[0087] Specifically, in a double-click operation on the first word segment, the first word segment is moved up one position in the order of the selected subtitles.
[0088] In this embodiment, the text big bang technology can be used to segment the subtitles and refine the granularity of the subtitles. At this time, each subtitle is displayed in the form of a subtitle bar, where each subtitle bar includes at least one subtitle. The editor can edit one or more subtitles in the selected subtitles according to actual usage needs. In this process, the editor can make fine adjustments to the subtitles so as to conveniently re-edit the video according to the content of the speech to form a more coherent and story-telling first video.
[0089] The granularity is determined based on semantic segmentation and the time of sound recognition, such as the length and pause of the voice in the first video. If the granularity is too large, it is not conducive to sentence segmentation. If the granularity is too small, there will be too many timestamps, which will be too fragmented.
[0090] In some embodiments of the present application, the deletion process can be understood as deleting the first word segment.
[0091] In some embodiments of the present application, the modification process can be understood as the correction of wrong characters and wrong characters in the first word segmentation.
[0092] In some embodiments of the present application, the selected subtitles include multiple participles, and the adjustment of the order of the first participle in the selected subtitles can be understood as adjusting the order of the first participle in the multiple participles.
[0093] For example, respondent 1's "desired activities" are added with respondent 2's "don't schedule on" "weekends".
[0094] In some embodiments of the present application, if there is a problem with the editing result, each segment can be fine-tuned. For example, the segment "Interviewee 1: What do you think" starts at 0:00:05 according to voice recognition, but it may actually start at 0:00:04, resulting in incomplete pronunciation of the sentence "What do you think" after it is cropped. At this time, adjust the starting position forward to make the entire segment complete. After fine-tuning, remind the editor whether to apply the fine-tuning to the timestamp corresponding to the subtitles, so that the editor can check it. The timestamp is displayed with correction traces, which is convenient for users to know that the timestamp corresponding to the subtitles has historical adjustments.
[0095] In some embodiments of the present application, the video processing method also includes: displaying a first interface, the first interface being displayed in a first display state; receiving a second input; in response to the second input, the first interface switching from the first display state to the second display state; wherein, in one of the first display state and the second display state, the first interface displays a first voice recognition result and a video preview interface, and in another of the first display state and the second display state, the first interface displays a first voice recognition result, the video preview interface is a preview interface of the first video, and the first voice recognition result is a voice recognition result of the first video.
[0096] In one of the first display state and the second display state, the first interface displays the first voice recognition result and the video preview interface; in the other display state between the first display state and the second display state, the first interface displays the first voice recognition result but does not display the video preview interface.
[0097] Exemplarily, in the first display state, the first interface displays the first voice recognition result and the video preview interface; in the second display state, the first interface displays the first voice recognition result but does not display the video preview interface.
[0098] Exemplarily, in the first display state, the first interface displays the first voice recognition result, but does not display the video preview interface; in the second display state, the first interface displays the first voice recognition result and the video preview interface.
[0099] In this embodiment, the editor can switch the display state of the first interface according to actual usage needs, thereby meeting the editing needs in different scenes.
[0100] Specifically, when the first interface displays the voice recognition results and the video preview interface, the editor can view and edit the voice recognition results without leaving the video preview interface, and view the effects in real time in the video preview interface, thereby improving editing efficiency.
[0101] When the voice recognition results are displayed on the first interface, more subtitles can be viewed, which makes it easier for editors to grasp more subtitle content and adjust the subtitles, thereby improving editing efficiency.
[0102] In some embodiments of the present application, the second input may be the state of a display screen in the electronic device. Specifically, when the display screen is in a folded state, the first interface displays the voice recognition results, and when the display screen is in an unfolded state, the first interface displays the voice recognition results and a video preview interface.
[0103] In some embodiments of the present application, when the display screen is in an expanded state, the voice recognition results and the video preview interface are displayed separately on two sub-screens in the display screen.
[0104] In this embodiment, the content displayed on the first interface can be automatically adjusted according to the state of the display screen to facilitate user observation and improve interaction efficiency.
[0105] Exemplarily, the speech recognition result is displayed on the left sub-screen, and the video preview interface is displayed on the right sub-screen.
[0106] In some embodiments of the present application, when the first interface displays the voice recognition result and the video preview interface, the voice recognition result and the video preview interface are displayed separately in the upper and lower areas of the display screen, respectively.
[0107] Exemplarily, the speech recognition result is displayed in the upper area of the display screen, and the video preview interface is displayed in the lower area of the display screen.
[0108] In some embodiments of the present application, the first interface also displays a switch control, and the second input can be a selection input of the switch control. When the switch control is selected, the first interface switches between the first display state and the second display state.
[0109] For example, Figure 6 As shown, the display screen includes a first screen and a second screen, and the second screen is connected to the first screen by a hinge, wherein the first screen is used to display the voice recognition result 602, and the second screen is used to display the video preview interface 604.
[0110] In some embodiments of the present application, the switch control 606 is a “<” or ">” button.
[0111] In some embodiments of the present application, a third input to a video preview interface is received, the video preview interface is a preview interface of a first video, and the third input is used to locate the playback progress of the first video; in response to the third input, the voice recognition result is updated to display a positioning identifier based on a third subtitle, the third subtitle is one of at least two subtitles, and the third subtitle is a subtitle corresponding to the located playback progress of the first video.
[0112] In this embodiment, the positioning mark in the speech recognition result can be dynamically changed according to the video playback progress. In this process, the subtitles can be quickly positioned, thereby improving the video editing efficiency.
[0113] In some embodiments of the present application, the third input is a selection operation on a certain playback progress in the video playback progress bar, such as a click operation on a certain playback progress in the video playback progress bar.
[0114] In some embodiments of the present application, the third input is a dragging operation of dragging the playback progress in the video playback progress bar. At this time, the positioning mark starts to scroll from the first subtitle of at least two subtitles until the third subtitle stops.
[0115] For example, Figure 2 The at least two subtitles shown, the third input locates the playback progress of the first video to be between 0:00:12-0:00:15, then in response to the third input, the positioning mark starts to scroll from "What do you think of this event" in the at least two subtitles and stops at "Any suggestions".
[0116] In some embodiments of the present application, a fourth input for a fourth subtitle is received, and the fourth subtitle is one of at least two subtitles; in response to the fourth input, a positioning identifier is displayed based on the fourth subtitle, and an image corresponding to the fourth subtitle is displayed based on the video preview interface.
[0117] In this embodiment, the video preview interface can be adjusted according to the selected subtitles. During this process, the video preview interface can be quickly updated and an image corresponding to the fourth subtitle can be displayed to facilitate editing by editors, thereby improving video editing efficiency.
[0118] In some embodiments of the present application, the fourth input is a click operation on the fourth subtitle, a double-click operation on the fourth subtitle, or a long press operation on the fourth subtitle.
[0119] Exemplarily, when a click operation on a fourth subtitle is received, a positioning mark is displayed based on the fourth subtitle, and an image corresponding to the fourth subtitle is displayed based on the video preview interface.
[0120] Exemplarily, when a double-click operation on the fourth subtitle is received, a positioning mark is displayed based on the fourth subtitle, and an image corresponding to the fourth subtitle is displayed based on the video preview interface.
[0121] Exemplarily, when a long press operation on the fourth subtitle is received, a positioning mark is displayed based on the fourth subtitle, and an image corresponding to the fourth subtitle is displayed based on the video preview interface.
[0122] In some embodiments of the present application, the positioning mark may be a pattern or a line displayed on one side of the third subtitle and the fourth subtitle.
[0123] For example, when the third subtitle is "What do you think of this event" and the fourth subtitle is "What suggestions do you have", the positioning mark is a star-shaped graphic "※" displayed on the right side of "What do you think of this event" and "What suggestions do you have", that is, "What do you think of this event※" and "What suggestions do you have※".
[0124] For example, when the third subtitle is "What do you think of this event" and the fourth subtitle is "What suggestions do you have", the positioning marker is the slash "\\" displayed on the right side of "What do you think of this event" and "What suggestions do you have", that is, "What do you think of this event\\" and "What suggestions do you have\\".
[0125] In some embodiments of the present application, the positioning mark may be the display color of the third subtitle and the fourth subtitle.
[0126] For example, when the third subtitle is "What do you think of this event" and the fourth subtitle is "What suggestions do you have", the positioning mark is to change the font color of "What do you think of this event" and "What suggestions do you have" from black to red.
[0127] For example, when the third subtitle is "What do you think of this event" and the fourth subtitle is "What suggestions do you have", the positioning mark is to change the font color of "What do you think of this event" and "What suggestions do you have" from black to green.
[0128] In some embodiments of the present application, Figure 7 As shown, the video processing method includes:
[0129] Step 702: The user uses artificial intelligence to recognize subtitles.
[0130] Among them, users use artificial intelligence to recognize subtitles, which is to enable the Figure 4 The "Recognize Subtitles" feature shown.
[0131] Step 704: The user manually adds the subject and subtitle.
[0132] Among them, users manually add themes and subtitles, which means enabling Figure 4 The "Add text or Add subject" feature shown.
[0133] Step 706: The user views all topics and subtitles.
[0134] Among them, users view all topics and subtitles, that is, enable Figure 4 The "All Text" feature shown.
[0135] Step 708, edit the text and order.
[0136] Among them, editing text and order, that is, in this application, receiving a first input of a selected subtitle, the selected subtitle is one or more subtitles of at least two subtitles, and the first input is used to edit the selected subtitle.
[0137] Step 710, subtitle explosion.
[0138] Among them, subtitle explosion, that is, in this application, at least two subtitles are displayed in the form of at least two subtitle bars, wherein the subtitle bars are subtitles displayed in words.
[0139] Step 712: The user rearranges the subtitles as needed.
[0140] The user rearranges the subtitles as needed, that is, in the present application, a first input of a first word segmentation is received, the first word segmentation is one or more words segmentation in the selected subtitles, and the first input is used to edit the first word segmentation; wherein the editing of the first word segmentation includes at least one of the following: deleting the first word segmentation, modifying the first word segmentation, and adjusting the order of the first word segmentation in the selected subtitles.
[0141] Step 714, re-edit the video according to the new subtitle order.
[0142] Among them, the video is re-edited according to the new subtitle order, that is, in this application, the first video is updated based on the updated timestamp.
[0143] Step 716, export the result video with one click.
[0144] Among them, the one-key export of the result video, that is, in this application, the output of the updated first video, simplifies the steps of outputting the updated first video by setting the one-key export, and improves the output efficiency of the video.
[0145] The video processing method provided in the embodiment of the present application can be executed by a video processing device. In the embodiment of the present application, the video processing device provided in the embodiment of the present application is described by taking the video processing method executed by the video processing device as an example.
[0146] In some embodiments of the present application, Figure 8 As shown, a video processing device 800 is provided, including: a display module 802, used to display a speech recognition result, the speech recognition result includes at least two subtitles and a timestamp corresponding to each subtitle, the timestamp includes a playback period of the subtitle in a first video; a receiving module 804, used to receive a first input of a selected subtitle, the selected subtitle is one or more subtitles of at least two subtitles, and the first input is used to edit the selected subtitle; a first updating module 806, used to update the timestamp corresponding to each subtitle based on the edited selected subtitle in response to the first input, to obtain an updated timestamp; a second updating module 808, used to update the first video based on the updated timestamp, to obtain and output the updated first video.
[0147] In an embodiment of the present application, a speech recognition result obtained by performing speech recognition on a first video is displayed, wherein the speech recognition result includes at least two subtitles and a timestamp corresponding to each subtitle. The user can edit the selected subtitles, and after editing the selected subtitles, update the timestamp corresponding to each subtitle according to the selected subtitles after editing, and update the first video based on the updated timestamp to obtain the updated first video. In this process, the at least two subtitles displayed facilitate the editor to see the entire first video from a global perspective. Compared with viewing the subtitles sentence by sentence, there is a more global macro perspective. Through editing, the order between subtitles can be adjusted or subtitles can be deleted, and the video can be re-edited and arranged, thereby reducing the labor cost and time cost of editing the video and improving the efficiency of editing.
[0148] In some embodiments of the present application, the first video includes a first sub-video and a second sub-video, the at least two subtitles include at least two first subtitles and at least two second subtitles, and the selected subtitles include first selected subtitles and second selected subtitles; the receiving module 804 is specifically used to receive a first input for the first selected subtitles and the second selected subtitles; the first updating module 806 is specifically used to: in response to the first input, based on the edited first selected subtitles, update the timestamp of each first subtitle to obtain an updated first timestamp; and based on the edited second selected subtitles, update the timestamp of each second subtitle to obtain an updated second timestamp; the second updating module 808 is specifically used to: update the first sub-video based on the updated first timestamp, and update the second sub-video based on the updated second timestamp; based on the updated first sub-video and the updated second sub-video, obtain and output the updated first video.
[0149] In some embodiments of the present application, the receiving module 804 is also used to: receive first labeling information for the first sub-video and second labeling information for the second sub-video; the second updating module 808 is specifically used to: process the updated first sub-video and the updated second sub-video according to the first labeling information and the second labeling information, and obtain and output the updated first video.
[0150] In some embodiments of the present application, at least two subtitles include at least two subtitle bars, the subtitle bars are subtitles displayed in words, and each subtitle bar includes at least one word; the receiving module 804 is specifically used to: receive a first input for a first word segmentation, the first word segmentation is one or more words in a selected subtitle, and the first input is used to edit the first word segmentation; wherein the editing of the first word segmentation includes at least one of the following: deleting the first word segmentation, modifying the first word segmentation, and adjusting the order of the first word segmentation in the selected subtitle.
[0151] In some embodiments of the present application, the display module 802 is also used to: display a first interface, the first interface is displayed in a first display state; the receiving module 804 is also used to: receive a second input; the display module 802 is also used to: in response to the second input, the first interface switches from the first display state to the second display state; wherein, in one display state between the first display state and the second display state, the first interface displays a first voice recognition result and a video preview interface, and in another display state between the first display state and the second display state, the first interface displays a first voice recognition result, the video preview interface is a preview interface of the first video, and the first voice recognition result is a voice recognition result of the first video.
[0152] In some embodiments of the present application, the receiving module 804 is further used to: receive a third input to the video preview interface, the video preview interface is a preview interface of the first video, and the third input is used to locate the playback progress of the first video; the display module 802 is further used to: respond to the third input, update the voice recognition result to display the positioning identifier based on the third subtitle, the third subtitle is one of at least two subtitles, and the third subtitle is a subtitle corresponding to the playback progress of the located first video.
[0153] In some embodiments of the present application, the receiving module 804 is further used to: receive a fourth input for a fourth subtitle, where the fourth subtitle is one of the at least two subtitles; the display module 802 is further used to: respond to the fourth input, display a positioning identifier based on the fourth subtitle, and display an image corresponding to the fourth subtitle based on the video preview interface.
[0154] The video processing device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0155] The video processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0156] The video processing device provided in the embodiment of the present application can achieve Figure 1 The various processes implemented by the video processing method embodiment can achieve the same technical effect. To avoid repetition, they will not be described here.
[0157] like Fig. 9 As shown, an embodiment of the present application further provides an electronic device 900, including a processor 902 and a memory 904, wherein the memory 904 stores programs or instructions that can be executed on the processor 902, and when the program or instructions are executed by the processor 902, the various steps of the above-mentioned video processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0158] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0159] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0160] like Fig.10 As shown, the electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0161] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0162] In some embodiments of the present application, the display unit 1006 is used to: display the speech recognition result, the speech recognition result includes at least two subtitles and a timestamp corresponding to each subtitle, the timestamp includes the playback period of the subtitle in the first video; the user input unit 1007 is used to: receive a first input for a selected subtitle, the selected subtitle is one or more subtitles among at least two subtitles, and the first input is used to edit the selected subtitle; the processor 1010 is used to: in response to the first input, based on the edited selected subtitle, update the timestamp corresponding to each subtitle to obtain an updated timestamp; update the first video based on the updated timestamp, and obtain and output the updated first video.
[0163] In some embodiments of the present application, the first video includes a first sub-video and a second sub-video, the at least two subtitles include at least two first subtitles and at least two second subtitles, and the selected subtitles include first selected subtitles and second selected subtitles; the user input unit 1007 is specifically used to: receive a first input for the first selected subtitles and the second selected subtitles; the processor 1010 is specifically used to: in response to the first input, based on the edited first selected subtitles, update the timestamp of each first subtitle to obtain an updated first timestamp; and based on the edited second selected subtitles, update the timestamp of each second subtitle to obtain an updated second timestamp; update the first sub-video based on the updated first timestamp, and update the second sub-video based on the updated second timestamp; based on the updated first sub-video and the updated second sub-video, obtain and output the updated first video.
[0164] In some embodiments of the present application, the user input unit 1007 is also used to: receive first annotation information for the first sub-video and second annotation information for the second sub-video; the processor 1010 is specifically used to: process the updated first sub-video and the updated second sub-video according to the first annotation information and the second annotation information, and obtain and output the updated first video.
[0165] In some embodiments of the present application, at least two subtitles include at least two subtitle bars, the subtitle bars are subtitles displayed in words, and each subtitle bar includes at least one word; the user input unit 1007 is specifically used to: receive a first input for a first word, the first word is one or more words in a selected subtitle, and the first input is used to edit the first word; wherein the editing of the first word includes at least one of the following: deleting the first word, modifying the first word, and adjusting the order of the first word in the selected subtitle.
[0166] In some embodiments of the present application, the display unit 1006 is also used to: display a first interface, the first interface is displayed in a first display state; the user input unit 1007 is also used to: receive a second input; the display unit 1006 is also used to: in response to the second input, the first interface switches from the first display state to the second display state; wherein, in one display state between the first display state and the second display state, the first interface displays a first voice recognition result and a video preview interface, and in another display state between the first display state and the second display state, the first interface displays a first voice recognition result, the video preview interface is a preview interface of the first video, and the first voice recognition result is a voice recognition result of the first video.
[0167] In some embodiments of the present application, the user input unit 1007 is also used to: receive a third input to the video preview interface, the video preview interface is a preview interface of the first video, and the third input is used to locate the playback progress of the first video; the display unit 1006 is also used to: respond to the third input, update the voice recognition result to display the positioning identifier based on a third subtitle, the third subtitle is one of at least two subtitles, and the third subtitle is a subtitle corresponding to the playback progress of the located first video.
[0168] In some embodiments of the present application, the user input unit 1007 is also used to: receive a fourth input for a fourth subtitle, where the fourth subtitle is one of the at least two subtitles; the display unit 1006 is also used to: respond to the fourth input, display a positioning identifier based on the fourth subtitle, and display an image corresponding to the fourth subtitle based on the video preview interface.
[0169] In an embodiment of the present application, a speech recognition result obtained by performing speech recognition on a first video is displayed, wherein the speech recognition result includes at least two subtitles and a timestamp corresponding to each subtitle. The user can edit the selected subtitles, and after editing the selected subtitles, update the timestamp corresponding to each subtitle according to the selected subtitles after editing, and update the first video based on the updated timestamp to obtain the updated first video. In this process, the at least two subtitles displayed facilitate the editor to see the entire first video from a global perspective. Compared with viewing the subtitles sentence by sentence, there is a more global macro perspective. Through editing, the order between subtitles can be adjusted or subtitles can be deleted, and the video can be re-edited and arranged, thereby reducing the labor cost and time cost of editing the video and improving the efficiency of editing.
[0170] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0171] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0172] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0173] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned video processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0174] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0175] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned video processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0176] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0177] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned video processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0178] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "including one" do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0179] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the embodiments of the present application are essentially or partly contributed to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0180] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A video processing method, characterized in that: include: Displaying a speech recognition result, wherein the speech recognition result includes at least two subtitles and a timestamp corresponding to each subtitle, wherein the timestamp includes a playback period of the subtitle in the first video; receiving a first input of a selected subtitle, wherein the selected subtitle is one or more subtitles of the at least two subtitles, and the first input is used to edit the selected subtitle; In response to the first input, based on the edited selected subtitles, a timestamp corresponding to each subtitle is updated to obtain the updated timestamp; The first video is updated based on the updated timestamp, and the updated first video is obtained and output.
2. The video processing method according to claim 1, characterized in that: The first video includes a first sub-video and a second sub-video, the at least two subtitles include at least two first subtitles and at least two second subtitles, and the selected subtitles include a first selected subtitle and a second selected subtitle; The receiving a first input of the selected subtitles specifically comprises: receiving a first input of the first selected subtitle and the second selected subtitle; The step of updating the timestamp corresponding to each subtitle based on the edited selected subtitle in response to the first input to obtain the updated timestamp specifically includes: In response to the first input, based on the edited first selected subtitle, the timestamp of each first subtitle is updated to obtain an updated first timestamp; and based on the edited second selected subtitle, the timestamp of each second subtitle is updated to obtain an updated second timestamp; The updating of the first video based on the updated timestamp to obtain and output the updated first video specifically includes: Updating the first sub-video based on the updated first timestamp, and updating the second sub-video based on the updated second timestamp; Based on the updated first sub-video and the updated second sub-video, an updated first video is obtained and output.
3. The video processing method according to claim 2, characterized in that: The video processing method further includes: Receiving first labeling information for the first sub-video and second labeling information for the second sub-video; The obtaining and outputting the updated first video based on the updated first sub-video and the updated second sub-video specifically includes: The updated first sub-video and the updated second sub-video are processed according to the first labeling information and the second labeling information to obtain and output an updated first video.
4. The video processing method according to any one of claims 1 to 3, characterized in that: The at least two subtitles include at least two subtitle bars, the subtitle bars are subtitles displayed in words, and each of the subtitle bars includes at least one word; The receiving a first input of the selected subtitles specifically comprises: Receiving a first input of a first word segmentation, where the first word segmentation is one or more words in the selected subtitle, and the first input is used to edit the first word segmentation; The editing process of the first word segmentation includes at least one of the following: The first word segment is deleted, the first word segment is modified, and the order of the first word segment in the selected subtitle is adjusted.
5. The video processing method according to any one of claims 1 to 3, characterized in that: The video processing method further includes: Displaying a first interface, wherein the first interface is displayed in a first display state; receiving a second input; In response to the second input, the first interface switches from the first display state to a second display state; Among them, in one of the first display state and the second display state, the first interface displays the first voice recognition result and the video preview interface, and in the other display state between the first display state and the second display state, the first interface displays the first voice recognition result, the video preview interface is the preview interface of the first video, and the first voice recognition result is the voice recognition result of the first video.
6. The video processing method according to any one of claims 1 to 3, characterized in that: The video processing method further includes: Receiving a third input to a video preview interface, where the video preview interface is a preview interface of the first video, and the third input is used to locate a playback progress of the first video; In response to the third input, the speech recognition result is updated to display a positioning mark based on a third subtitle, wherein the third subtitle is one of at least two of the subtitles, and the third subtitle is a subtitle corresponding to the playback progress of the located first video.
7. The video processing method according to any one of claims 1 to 3, characterized in that: The video processing method further includes: receiving a fourth input for a fourth subtitle, the fourth subtitle being one of the at least two subtitles; In response to the fourth input, a positioning mark is displayed based on the fourth subtitle, and an image corresponding to the fourth subtitle is displayed based on the video preview interface.
8. A video processing device, characterized in that: include: A display module, configured to display a speech recognition result, wherein the speech recognition result includes at least two subtitles and a timestamp corresponding to each subtitle, wherein the timestamp includes a playback period of the subtitle in the first video; A receiving module, configured to receive a first input of a selected subtitle, wherein the selected subtitle is one or more subtitles of the at least two subtitles, and the first input is used to edit the selected subtitle; A first updating module, configured to update a timestamp corresponding to each subtitle based on the edited selected subtitle in response to the first input, to obtain the updated timestamp; The second updating module is used to update the first video based on the updated timestamp, and obtain and output the updated first video.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the video processing method according to any one of claims 1 to 7 are implemented.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the video processing method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Video editing method and terminal
CN104135628A
Multimedia play progress control method and apparatus
CN104967910A
Subtitle editing method and device and electronic equipment
CN111970577A
Video playing progress adjusting method and device, electronic equipment and medium
CN113378001A
Subtitle editing method and device, electronic equipment and storage medium
CN114501159A
